/* ============================================
   CSS RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Праздничная */
    --color-primary: #1a1a2e;
    --color-accent: #FF6B6B;
    --color-secondary: #4ECDC4;
    --color-success: #95E1D3;
    --color-party: #FFE66D;
    --color-background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --color-text: #1A202C;
    --color-muted: #718096;
    --color-white: #FFFFFF;
    --color-error: #F56565;
    --color-border: #E2E8F0;
    
    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;
    --spacing-3xl: 48px;
    
    /* Typography */
    --font-base: 14px;
    --font-body: 18px;
    --font-h3: 20px;
    --font-h2: 24px;
    --font-h1: 32px;
    --line-height-body: 1.5;
    --line-height-heading: 1.2;
    
    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Z-index */
    --z-progress: 1000;
    --z-overlay: 2000;
    --z-card-stack: 100;
}

html {
    font-size: var(--font-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--font-body);
    line-height: var(--line-height-body);
    color: var(--color-text);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    /* Safe area for iPhone notch */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    position: relative;
}

/* ============================================
   PROGRESS BAR
   ============================================ */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-border);
    z-index: var(--z-progress);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B 0%, #FFE66D 50%, #95E1D3 100%);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ============================================
   APP CONTAINER & SCREENS
   ============================================ */

.app-container {
    min-height: 100vh;
    position: relative;
}

.screen {
    min-height: 100vh;
    opacity: 1;
}

.screen.hidden {
    display: none !important;
}

.screen-content {
    padding: var(--spacing-xl);
    padding-top: calc(var(--spacing-xl) + 10px);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.screen-content:has(.btn-back) {
    padding-top: calc(80px + env(safe-area-inset-top, 0px));
}

.screen-centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: var(--font-body);
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-height: 44px;
    touch-action: manipulation;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: var(--color-white);
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF8E53 0%, #FFA726 100%);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--color-primary);
    border: 2px solid rgba(255, 107, 107, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.btn-large {
    width: 100%;
    padding: var(--spacing-lg) var(--spacing-xl);
    font-size: 20px;
    min-height: 56px;
}

.btn-sticky {
    position: sticky;
    bottom: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.btn-text {
    background: transparent;
    color: var(--color-muted);
    padding: var(--spacing-sm);
    font-weight: 400;
}

.btn-text:hover {
    color: var(--color-accent);
}

.btn-back {
    position: absolute;
    top: calc(16px + env(safe-area-inset-top, 0px));
    left: var(--spacing-xl);
    background: var(--color-white);
    border: 1px solid rgba(0, 0, 0, 0.18);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-sm);
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.btn-icon {
    font-size: 24px;
}

/* ============================================
   REGISTRATION SCREEN
   ============================================ */

.registration-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-top: 20vh;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.branding {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.brand-title {
    font-size: var(--font-h1);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: var(--line-height-heading);
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.brand-subtitle {
    font-size: var(--font-h2);
    color: var(--color-muted);
    font-weight: 400;
}

.registration-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-size: var(--font-body);
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input {
    padding: var(--spacing-lg);
    font-size: var(--font-body);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease;
    min-height: 48px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-group input.error {
    border-color: var(--color-error);
}

.error-message {
    font-size: var(--font-base);
    color: var(--color-error);
    min-height: 20px;
}

/* ============================================
   POSTER SCREEN
   ============================================ */

.poster-hero {
    text-align: center;
    padding: calc(var(--spacing-3xl) * 1.15 + 10px) 0 var(--spacing-xl);
    position: relative;
}

.poster-hero::before {
    content: '🎂';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 60px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-20px); }
}

/* Personalized Greeting inline */
#intro-greeting {
    font-weight: 700;
}

.poster-title {
    font-size: 36px;
    font-weight: 700;
    line-height: var(--line-height-heading);
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 50%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.poster-date {
    font-size: var(--font-h3);
    color: var(--color-white);
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    padding: 8px 24px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.poster-intro {
    margin-bottom: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.poster-intro p {
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
    line-height: 1.6;
}

/* Hero Photo Single - centered circle */
.hero-photo-single {
    display: flex;
    justify-content: center;
    margin: var(--spacing-2xl) 0;
}

.hero-photo-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.9);
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #FFE66D 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-photo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.3);
}

.hero-photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder if no image */
.hero-photo-circle:not(:has(img[src]))::after {
    content: '📸';
    font-size: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Old hero-photos styles - keep for gallery if needed */
.hero-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.hero-photo {
    aspect-ratio: 3/4;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 50%, #FFE66D 100%);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-photo:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder styling when no image */
.hero-photo:not(:has(img[src])) {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.hero-photo-1:not(:has(img[src]))::after {
    content: '📸';
}

.hero-photo-2:not(:has(img[src]))::after {
    content: '🎉';
}

/* Wishlist Button */
.wishlist-button-container {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.poster-address {
    text-align: center;
    margin: var(--spacing-2xl) auto var(--spacing-3xl);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.address-label {
    font-size: var(--font-body);
    color: var(--color-muted);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.address-link {
    display: block;
    font-size: var(--font-h3);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.address-link:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.btn-wishlist {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-2xl);
    font-size: var(--font-h3);
    font-weight: 700;
    background: linear-gradient(135deg, #FFE66D 0%, #FFA726 100%);
    color: var(--color-primary);
    border: none;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(255, 230, 109, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-wishlist::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-wishlist:hover::before {
    width: 400px;
    height: 400px;
}

.btn-wishlist:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 230, 109, 0.7);
}

.btn-wishlist:active {
    transform: scale(0.98);
}

.poster-hero + .photo-cards {
    margin-top: var(--spacing-md);
}

/* Album-style photo frames (как на примере) */
.photo-cards {
    width: 100%;
    max-width: 520px;
    margin: var(--spacing-2xl) auto var(--spacing-3xl);
    padding: 28px 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 14px;
    place-items: center;
    position: relative;
}

/* Розовая линия/сердце фоном (не эмодзи) */
.photo-cards::before {
    content: "";
    position: absolute;
    inset: -10px -6px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.55;
    pointer-events: none;
    /* inline SVG, stroke=%23D7A1B3 */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 220'%3E%3Cpath d='M60 120 C 30 75, 70 30, 125 55 C 165 75, 170 120, 205 120 C 240 120, 250 70, 295 55 C 355 35, 395 80, 365 125 C 335 175, 260 190, 210 165 C 175 145, 150 145, 125 165 C 85 195, 35 175, 55 140' fill='none' stroke='%23D7A1B3' stroke-width='14' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.photo-card {
    /* Жёстко фиксируем размер, чтобы не растягивалось как на скрине */
    width: clamp(145px, 40vw, 185px);
    aspect-ratio: 1 / 1;

    background: #fff;
    border-radius: 22px;
    padding: 10px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    transition: transform 220ms ease, box-shadow 220ms ease;
    position: relative;
}

.photo-card-1 {
    transform: rotate(-6deg) translateY(-6px);
}

.photo-card-2 {
    transform: rotate(6deg) translateY(8px);
}

.photo-card-3 {
    transform: rotate(4deg) translateY(-4px);
}

.photo-card-4 {
    transform: rotate(-5deg) translateY(10px);
}

.photo-card:hover {
    transform: rotate(0deg) scale(1.03) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    z-index: 2;
}

.photo-card-frame {
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #f2f2f2;
}

.photo-card-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 340px) {
    .photo-cards {
        gap: 10px 10px;
    }
}

.program {
    margin-bottom: var(--spacing-3xl);
}

.program-title {
    font-size: var(--font-h2);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: #ff8b55;
}

.program-subtitle {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 80ch;
    line-height: 1.4;
}

.program-blocks {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.program-block {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid transparent;
    background-image: linear-gradient(white, white), 
                      linear-gradient(135deg, #FF6B6B, #4ECDC4);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: transform 0.3s ease;
}

.program-block:hover {
    transform: translateX(10px);
}

.program-icon {
    font-size: 32px;
    margin-bottom: var(--spacing-sm);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.program-time {
    font-size: var(--font-base);
    color: var(--color-muted);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.program-activity {
    font-size: var(--font-body);
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.program-desc {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-weight: 400;
    line-height: 1.35;
}

.gallery-title {
    font-size: var(--font-h2);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: #ff8b55;
}

/* Slider gallery */
.gallery-slider-wrap {
    position: relative;
    margin-bottom: var(--spacing-2xl);
    padding: 0 44px;
}

.gallery-slider {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    touch-action: pan-y pinch-zoom;
    aspect-ratio: 3 / 5;
    position: relative;
}

.gallery-slider-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease-out;
    will-change: transform;
}

.gallery-slide {
    flex: 0 0 100%;
    min-width: 0;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-slide img,
.gallery-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-slide video {
    background: #000;
}

.gallery-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    color: var(--color-primary);
    transition: background 0.2s, transform 0.2s;
}

.gallery-slider-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.08);
}

.gallery-slider-prev { left: 4px; }
.gallery-slider-next { right: 4px; }

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.gallery-dot.active {
    background: #ff8b55;
    transform: scale(1.2);
}

.poster-cta-container {
    margin-bottom: var(--spacing-2xl);
}

.btn-main-cta {
    width: 100%;
    padding: var(--spacing-xl) var(--spacing-2xl);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 10px 35px rgba(255, 107, 107, 0.45);
}

.btn-main-cta:hover {
    box-shadow: 0 14px 40px rgba(255, 107, 107, 0.55);
}

.btn-wishlist-small {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 167, 38, 0.3);
}

.btn-wishlist-small:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(255, 167, 38, 0.4);
}

/* ============================================
   WISHLIST SCREEN
   ============================================ */

#screen-wishlist .screen-content.screen-content-wishlist {
    max-width: 560px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    padding-top: 66px;
}

.wishlist-header {
    margin-top: 10px;
    margin-bottom: var(--spacing-lg);
}

#screen-wishlist .wishlist-title {
    color: #ffffff;
    background: none !important;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

#screen-wishlist .wishlist-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.wishlist-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.wishlist-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.wishlist-item-available {
    border-left: 4px solid var(--color-primary);
    background: rgba(255, 255, 255, 0.98);
}

.wishlist-item-reserved-by-me {
    border-left: 4px solid #4CAF50;
    background: linear-gradient(135deg, rgba(232, 245, 233, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.wishlist-item-reserved-by-other {
    border-left: 4px solid #cbd5e0;
    background: rgba(248, 248, 248, 0.95);
    opacity: 0.75;
}

.wishlist-item-title {
    font-weight: 700;
    font-size: var(--font-h3);
    color: #1a202c;
    margin-bottom: var(--spacing-xs);
}

.wishlist-comment {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: var(--spacing-md);
}

.wishlist-item-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--spacing-md);
    min-height: 2.75rem;
}

.wishlist-link {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
}

.wishlist-link:hover {
    background: rgba(102, 126, 234, 0.2);
    text-decoration: none;
}

.wishlist-reserved {
    color: #2f855a;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 8px;
    background: rgba(72, 187, 120, 0.15);
    border-radius: 4px;
}

.wishlist-reserved-other {
    color: #718096;
    font-weight: 600;
    font-style: normal;
    font-size: 0.9rem;
}

.btn-wishlist-cancel {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: transparent;
    border: 1px solid var(--color-muted);
    color: var(--color-text);
}

.btn-wishlist-cancel:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-wishlist-reserve {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

/* ============================================
   QUESTION SCREENS (Sauna, etc)
   ============================================ */

.question-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.question-title {
    font-size: var(--font-h1);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #ff8b55;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #ff8b55;
    background-clip: unset;
}

.question-subtitle {
    font-size: var(--font-body);
    color: #fff;
    margin-bottom: var(--spacing-2xl);
}

.question-container .question-subtitle {
    color: #1a1a2e;
}

.answer-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.btn-answer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 3px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--font-h3);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 72px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-answer:hover {
    border-color: var(--color-accent);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transform: scale(1.02);
}

.btn-answer:active {
    transform: scale(0.98);
}

.answer-icon {
    font-size: 28px;
}

.answer-text {
    font-weight: 600;
}

/* ============================================
   ALCOHOL SCREEN - SIMPLE VERSION
   ============================================ */

.tinder-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    padding: var(--spacing-xl);
}

.card-progress {
    text-align: center;
    font-size: var(--font-body);
    color: var(--color-muted);
    margin-bottom: var(--spacing-xl);
    font-weight: 600;
}

.alcohol-card-container {
    margin: var(--spacing-2xl) 0;
    text-align: center;
}

.alcohol-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border: 3px solid #FF6B6B;
    transition: all 0.3s ease;
}

.alcohol-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.card-icon {
    font-size: 80px;
    margin-bottom: var(--spacing-md);
    animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
}

.card-title {
    font-size: var(--font-lg);
    font-weight: 700;
    color: var(--color-primary);
}

.alcohol-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    margin-top: var(--spacing-xl);
}

.btn-no,
.btn-yes {
    flex: 1;
    max-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--font-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.btn-no {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-yes {
    background: linear-gradient(135deg, #4ECDC4 0%, #44A08D 100%);
    color: white;
    border: none;
    cursor: pointer;
}

.btn-no:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 68, 68, 0.4);
}

.btn-yes:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* Overlay for custom input */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-overlay);
    padding: var(--spacing-xl);
}

.overlay-content {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--spacing-2xl);
    max-width: 400px;
    width: 100%;
}

.overlay-content h3 {
    font-size: var(--font-h2);
    margin-bottom: var(--spacing-lg);
    color: var(--color-primary);
}

.overlay-content input {
    width: 100%;
    padding: var(--spacing-lg);
    font-size: var(--font-body);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-lg);
}

.overlay-content input:focus {
    outline: none;
    border-color: var(--color-accent);
}

.overlay-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.overlay-buttons .btn {
    flex: 1;
}

/* ============================================
   EXTRA DETAILS SCREEN
   ============================================ */

.extra-container {
    max-width: 500px;
    margin: 0 auto;
    padding-top: var(--spacing-3xl);
}

.extra-question {
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.extra-label {
    display: block;
    font-size: var(--font-h3);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
}

.extra-helper {
    font-size: var(--font-base);
    color: var(--color-muted);
    margin-bottom: var(--spacing-md);
}

.extra-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.btn-extra {
    flex: 1;
    min-width: 80px;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-extra:hover {
    border-color: var(--color-accent);
}

.btn-extra.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.toggle-container {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-toggle {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle:hover {
    border-color: var(--color-accent);
}

.btn-toggle.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

/* ============================================
   CALENDAR SCREEN
   ============================================ */

.calendar-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.calendar-icon {
    font-size: 80px;
    margin-bottom: var(--spacing-xl);
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.calendar-details {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    margin: var(--spacing-2xl) 0;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.calendar-detail {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-border);
    font-size: var(--font-body);
}

.calendar-detail:last-child {
    border-bottom: none;
}

.calendar-detail strong {
    color: var(--color-muted);
    display: inline-block;
    min-width: 80px;
}

.calendar-container .question-subtitle {
    color: #1a1a2e;
}

.calendar-location-link {
    color: var(--color-primary);
    text-decoration: underline;
}

.calendar-location-link:hover {
    color: var(--color-accent);
}

.btn-skip-calendar {
    display: block;
    margin-top: var(--spacing-lg);
    width: 100%;
}

/* ============================================
   MODAL / INSTRUCTION
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.modal-title {
    font-size: var(--font-h2);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.modal-text {
    font-size: var(--font-body);
    color: var(--color-text);
    margin-bottom: var(--spacing-xl);
    text-align: center;
    line-height: 1.6;
}

.instruction-steps {
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    font-size: var(--font-body);
}

.instruction-step:last-child {
    margin-bottom: 0;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}

.step-text {
    flex: 1;
    line-height: 1.5;
    padding-top: 4px;
}

.instruction-image {
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.instruction-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ============================================
   FINAL SCREEN
   ============================================ */

.final-container {
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.final-emoji {
    font-size: 80px;
    margin-bottom: var(--spacing-xl);
    animation: celebrate 1s ease-in-out infinite;
}

@keyframes celebrate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-10deg); }
    75% { transform: scale(1.2) rotate(10deg); }
}

.final-title {
    font-size: var(--font-h1);
    font-weight: 700;
    line-height: var(--line-height-heading);
    background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 50%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.final-subtitle {
    font-size: var(--font-h3);
    background: linear-gradient(135deg, #FF6B6B 0%, #4ECDC4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.final-text {
    font-size: var(--font-body);
    color: var(--color-muted);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

.final-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (min-width: 768px) {
    .screen-content {
        padding: var(--spacing-2xl);
    }
    
    .poster-title {
        font-size: 48px;
    }
    
    .gallery-slider-wrap {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.screen {
    /* No animation for instant screen switches */
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-lg); }
.mt-3 { margin-top: var(--spacing-xl); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-xl); }
