/* ==========================================================================
   JOBITRA TEMPLATE #4: THE CELEBRATION JOURNEY (INDIAN BIRTHDAY)
   Style Sheet - Story-Based Interactive Indian Celebration Experience
   ========================================================================== */

/* 1. COLOR VARIABLES & THEME PRESETS */
:root {
    --ivory: #FFF9EF;
    --cream: #FFF2D8;
    --terracotta: #D9785B;
    --coral: #E88975;
    --saffron: #EBAE3F;
    --turmeric: #F4C95D;
    --rose: #D96C86;
    --leaf-green: #789B70;
    --peacock: #5F9EA5;
    --gold: #C9A44C;
    --gold-light: #F4E8C1;
    
    --bg-page: #F5EFEB;
    --bg-container: #FFF9EF;
    --bg-card: #FFFFFF;
    --bg-card-alt: #FFF2D8;
    
    --text-primary: #4B3D3A;
    --text-secondary: #7C6A65;
    --text-muted: #A0908C;
    
    --border-color: #EBDCCB;
    --border-gold: #C9A44C;
    
    --accent: var(--saffron);
    --accent-vibrant: var(--terracotta);
    
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Poppins', -apple-system, sans-serif;
    
    --shadow-soft: 0 8px 24px rgba(75, 61, 58, 0.05);
    --shadow-card: 0 10px 30px rgba(217, 120, 91, 0.08);
    --shadow-ticket: 0 12px 36px rgba(201, 164, 76, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* AGE ACCENT PRESETS */
.theme-warm-saffron {
    --accent: var(--saffron);
    --accent-vibrant: var(--terracotta);
}

.theme-baby-soft {
    --accent: #FFD4C2;
    --accent-vibrant: #E88975;
    --bg-container: #FFFAF5;
}

.theme-kids-playful {
    --accent: var(--turmeric);
    --accent-vibrant: var(--rose);
}

.theme-teen-youth {
    --accent: var(--peacock);
    --accent-vibrant: var(--coral);
}

.theme-golden-milestone {
    --accent: var(--gold);
    --accent-vibrant: var(--terracotta);
}

/* 2. BASE RESET & BODY SETUP */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* 3. DESKTOP CENTERED WRAPPER & MOBILE VIEWPORT */
.invitation-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 30px 15px;
    background-color: var(--bg-page);
}

.mobile-viewport {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-container);
    border-radius: 36px;
    box-shadow: 0 20px 60px rgba(75, 61, 58, 0.1), 0 0 0 12px rgba(255, 255, 255, 0.7);
    overflow: hidden;
    position: relative;
    padding: 24px 20px 40px 20px;
}

@media (max-width: 520px) {
    .invitation-wrapper {
        padding: 0;
        background-color: var(--bg-container);
    }
    .mobile-viewport {
        max-width: 100%;
        border-radius: 0;
        box-shadow: none;
        padding: 20px 16px 36px 16px;
    }
}

/* SUBTLE TEXTILE BACKGROUND OVERLAY */
.textile-pattern-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--gold) 0.75px, transparent 0.75px);
    background-size: 16px 16px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 1;
}

/* 4. CELEBRATION PATH NAVIGATION (Right Side Vertical Line) */
.celebration-path-nav {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 900;
}

.path-line {
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold), var(--terracotta));
    z-index: -1;
}

.path-marker {
    position: relative;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.marker-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--bg-card);
    border: 2px solid var(--gold);
    transition: all var(--transition-fast);
}

.path-marker.active .marker-dot,
.path-marker:hover .marker-dot {
    background-color: var(--terracotta);
    border-color: var(--terracotta);
    transform: scale(1.4);
    box-shadow: 0 0 10px rgba(217, 120, 91, 0.4);
}

.marker-tooltip {
    position: absolute;
    right: 24px;
    background-color: var(--text-primary);
    color: #FFFFFF;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    transform: translateX(6px);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.path-marker:hover .marker-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 600px) {
    .celebration-path-nav { right: 8px; }
    .marker-tooltip { display: none; }
}

/* 5. OPENING INVITATION ENVELOPE MODAL (Screen 1) */
.opening-envelope-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(75, 61, 58, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.opening-envelope-backdrop.closed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.envelope-card-container {
    width: 100%;
    max-width: 420px;
    background-color: var(--ivory);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gold);
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    padding: 36px 24px;
    text-align: center;
}

.envelope-pattern-overlay {
    position: absolute;
    inset: 0;
    border: 8px solid var(--cream);
    pointer-events: none;
}

.envelope-inner-card {
    position: relative;
    z-index: 2;
}

.envelope-emblem {
    font-size: 2rem;
    color: var(--terracotta);
    margin-bottom: 12px;
}

.envelope-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--text-secondary);
    display: block;
}

.envelope-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0 8px 0;
}

.envelope-sub {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.btn-open-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--terracotta);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(217, 120, 91, 0.3);
    transition: transform var(--transition-fast);
}

.btn-open-card:hover {
    transform: scale(1.05);
}

.btn-skip-intro {
    display: block;
    margin: 16px auto 0 auto;
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

/* 6. HERO SECTION (POSTER DESIGN) */
.hero-poster-section {
    position: relative;
    padding-top: 12px;
    padding-bottom: 32px;
    text-align: center;
    z-index: 2;
}

.poster-arch-frame {
    background-color: var(--cream);
    border-radius: 180px 180px 24px 24px;
    border: 2px solid var(--gold);
    padding: 24px 16px 28px 16px;
    box-shadow: var(--shadow-card);
    position: relative;
}

.poster-inner-border {
    border: 1px dashed var(--gold);
    border-radius: 170px 170px 16px 16px;
    padding: 20px 12px;
}

.poster-tagline {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--terracotta);
    display: block;
    margin-bottom: 16px;
}

/* PORTRAIT CIRCLE OVERLAPPING ARCH */
.poster-portrait-wrapper {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 16px auto;
}

.portrait-arch-bg {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    background-color: var(--ivory);
}

.poster-portrait-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.poster-age-block {
    margin-bottom: 12px;
}

.poster-big-age {
    font-family: var(--font-heading);
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 0.9;
    color: var(--terracotta);
    display: block;
}

.poster-age-caption {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    display: block;
    margin-top: 4px;
}

.poster-name-block {
    margin-bottom: 16px;
}

.poster-name {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.poster-celebrating-text {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.poster-date-pill {
    display: inline-block;
    background-color: var(--bg-card);
    border: 1px solid var(--gold);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.scroll-down-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-decoration: none;
    margin-top: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(6px); }
    60% { transform: translateY(3px); }
}

/* 7. JOURNEY SECTIONS & HEADERS */
.journey-section {
    position: relative;
    margin-top: 36px;
    z-index: 2;
}

.section-header {
    margin-bottom: 20px;
}

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

.section-kicker {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--terracotta);
    display: block;
    margin-bottom: 4px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

/* 8. MEET THE STAR & FLOATING FACT CHIPS */
.star-facts-composition {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.star-center-photo {
    width: 220px;
    height: 260px;
    margin: 0 auto;
    border-radius: 120px 120px 16px 16px;
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-card);
}

.star-center-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.star-chips-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.chip-fact {
    position: absolute;
    background-color: var(--ivory);
    border: 1.5px solid var(--gold);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    animation: floatChip 4s ease-in-out infinite alternate;
}

.chip-fact:nth-child(1) { top: 10px; left: 10px; }
.chip-fact:nth-child(2) { top: 70px; right: 10px; animation-delay: -1s; }
.chip-fact:nth-child(3) { bottom: 60px; left: 0px; animation-delay: -2s; }
.chip-fact:nth-child(4) { bottom: 10px; right: 10px; animation-delay: -3s; }

@keyframes floatChip {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

.star-message-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.star-quote {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-primary);
}

.star-signature {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--terracotta);
    margin-top: 8px;
}

/* 9. THEN → NOW PHOTO SLIDER */
.then-now-slider-wrapper {
    position: relative;
    width: 100%;
}

.then-now-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 2px solid var(--gold);
    box-shadow: var(--shadow-card);
}

.slider-img-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slider-img-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-then {
    width: 50%;
    overflow: hidden;
    border-right: 2px solid var(--gold);
    z-index: 2;
}

.slider-badge {
    position: absolute;
    bottom: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: #FFFFFF;
}

.badge-then { left: 12px; background-color: var(--terracotta); }
.badge-now { right: 12px; background-color: var(--peacock); }

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--gold);
}

.handle-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--ivory);
    border: 2px solid var(--gold);
    color: var(--terracotta);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.then-now-range {
    width: 100%;
    margin-top: 12px;
    accent-color: var(--terracotta);
    cursor: pointer;
}

/* 10. DIGITAL MEMORY WALL */
.memory-wall-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.memory-pin-card {
    background-color: #FFFFFF;
    padding: 10px 10px 16px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform var(--transition-smooth);
}

.memory-pin-card:nth-child(odd) { transform: rotate(-1.5deg); }
.memory-pin-card:nth-child(even) { transform: rotate(1.5deg); }
.memory-pin-card:hover { transform: rotate(0deg) scale(1.03); z-index: 5; }

.memory-pin-dot {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--terracotta);
}

.memory-img-box {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 4px;
    margin-top: 8px;
}

.memory-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.memory-caption-block {
    margin-top: 8px;
    text-align: center;
}

.memory-year {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--terracotta);
}

.memory-caption {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-primary);
}

/* 11. LIFE CHAPTERS (HORIZONTAL SWIPEABLE) */
.chapters-horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}

.chapter-card-slide {
    min-width: 260px;
    scroll-snap-align: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.chapter-num-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--terracotta);
}

.chapter-slide-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0;
}

.chapter-slide-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.swipe-hint {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    text-align: center;
    margin-top: 6px;
}

/* 12. CIRCULAR COUNTDOWN */
.circular-countdown-card {
    background-color: var(--bg-card);
    border: 1.5px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.clock-circle-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 16px auto;
}

.clock-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.clock-bg-ring {
    fill: none;
    stroke: var(--cream);
    stroke-width: 10;
}

.clock-progress-ring {
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 553;
    stroke-dashoffset: 140;
    transition: stroke-dashoffset 1s ease;
}

.clock-center-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.clock-kicker {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.clock-days-val {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.clock-days-lbl {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--terracotta);
}

.clock-sub-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.metric-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-num {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-lbl {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.metric-sep {
    color: var(--terracotta);
}

/* 13. EVENT PASS TICKET */
.event-ticket-card {
    background-color: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-ticket);
    position: relative;
}

.ticket-header-stub {
    background-color: var(--cream);
    padding: 12px;
    text-align: center;
    border-bottom: 2px dashed var(--gold);
    position: relative;
}

.stub-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--terracotta);
}

.stub-notch {
    position: absolute;
    bottom: -10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--bg-container);
    border: 2px solid var(--gold);
}

.notch-left { left: -12px; }
.notch-right { right: -12px; }

.ticket-body {
    padding: 24px 20px;
    text-align: center;
}

.ticket-row { margin: 10px 0; }

.ticket-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--terracotta);
    display: block;
    margin-bottom: 2px;
}

.ticket-val-large {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ticket-val-medium {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ticket-address {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.ticket-perforation {
    height: 1px;
    border-bottom: 1px dashed var(--border-color);
    margin: 14px 0;
}

.ticket-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px 24px 20px;
}

/* BUTTON STYLES */
.btn-indian {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    width: 100%;
}

.btn-primary {
    background-color: var(--terracotta);
    color: #FFFFFF;
}

.btn-primary:hover {
    background-color: #C06449;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 120, 91, 0.3);
}

.btn-secondary {
    background-color: var(--cream);
    color: var(--text-primary);
    border: 1px solid var(--gold);
}

.btn-secondary:hover {
    background-color: var(--gold-light);
}

.btn-block { width: 100%; }

/* 14. PARTY FLOW TIMELINE */
.timeline-thread-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    padding-left: 24px;
}

.timeline-thread-container::before {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--terracotta));
}

.flow-node-item {
    position: relative;
    background-color: var(--bg-card);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.flow-node-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--terracotta);
    border: 2px solid var(--bg-container);
}

.flow-time {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--terracotta);
}

.flow-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.flow-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* 15. FAVORITE THINGS & FAMILY */
.favorites-icons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.favorite-icon-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
}

.fav-emoji { font-size: 1.5rem; margin-bottom: 4px; }
.fav-lbl { font-size: 0.68rem; font-weight: 700; color: var(--text-secondary); }
.fav-val { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-primary); }

.family-avatars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.family-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 12px;
    border-radius: var(--radius-md);
    text-align: center;
}

.family-initial {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--cream);
    border: 1.5px solid var(--gold);
    color: var(--terracotta);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
}

.family-rel { font-size: 0.65rem; font-weight: 800; color: var(--terracotta); }
.family-name { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; color: var(--text-primary); }

/* 16. WISH WALL */
.wish-notes-board {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.wish-paper-note {
    background-color: var(--cream);
    border: 1px solid var(--gold-light);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    box-shadow: var(--shadow-soft);
}

.wish-text {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    color: var(--text-primary);
}

.wish-author {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--terracotta);
    margin-top: 6px;
}

.wish-form-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.wish-form-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* 17. RSVP FORM */
.rsvp-indian-card {
    background-color: var(--bg-card);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    box-shadow: var(--shadow-card);
}

.rsvp-options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.rsvp-opt-btn {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-card-alt);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rsvp-opt-btn.active {
    background-color: var(--cream);
    border-color: var(--terracotta);
    color: var(--terracotta);
}

.form-group { margin-bottom: 14px; }
.form-group label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--ivory);
    color: var(--text-primary);
    outline: none;
}

.form-input:focus {
    border-color: var(--terracotta);
    background-color: #FFFFFF;
}

.guest-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-color: var(--ivory);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 16px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: #FFFFFF;
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
}

.counter-num {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
}

.rsvp-success-box {
    display: none;
    text-align: center;
    padding: 20px 10px;
}

.rsvp-success-box.active { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 8px; }
.success-title { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--text-primary); }
.success-sub { font-size: 0.85rem; color: var(--text-secondary); margin: 6px 0 20px 0; }

/* 18. GIFT & FINAL REVEAL */
.gift-card-simple {
    background-color: var(--cream);
    border: 1px dashed var(--gold);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.gift-message-text { font-size: 0.9rem; color: var(--text-primary); margin-top: 4px; }

.final-reveal-card {
    background-color: var(--cream);
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.final-pattern-border {
    border: 1px dashed var(--gold);
    padding: 20px 12px;
    border-radius: var(--radius-md);
}

.final-headline {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.final-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--terracotta);
}

.final-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin: 4px 0 12px 0;
}

.final-with-love {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--terracotta);
}

.indian-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.7rem;
    color: var(--text-muted);
}

.jobitra-branding strong { color: var(--text-primary); }

/* 19. FLOATING ACTION BUTTONS & SHARE SHEET */
.music-fab, .share-fab {
    position: fixed;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--ivory);
    border: 1.5px solid var(--gold);
    color: var(--terracotta);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
}

.music-fab { bottom: 24px; left: 20px; }
.share-fab { bottom: 24px; left: 76px; }

.waveform-bars { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.waveform-bars .bar { width: 3px; background-color: var(--terracotta); border-radius: 2px; }
.bar-1 { height: 8px; }
.bar-2 { height: 16px; }
.bar-3 { height: 10px; }

.music-fab.playing .bar-1 { animation: wave 0.8s infinite alternate; }
.music-fab.playing .bar-2 { animation: wave 0.6s infinite alternate; }
.music-fab.playing .bar-3 { animation: wave 1s infinite alternate; }

@keyframes wave { 0% { height: 4px; } 100% { height: 16px; } }

/* SHARE SHEET MODAL */
.share-sheet-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(75, 61, 58, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
}

.share-sheet-backdrop.active { display: flex; align-items: flex-end; }

.share-sheet-content {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 24px;
    animation: slideUp 0.3s ease;
}

.share-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.btn-close-sheet { background: none; border: none; font-size: 1.4rem; cursor: pointer; }

.share-sheet-body { display: flex; flex-direction: column; gap: 10px; }

.share-option-btn {
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

.btn-wa { background-color: #25D366; color: #FFFFFF; border: none; }
.btn-copy { background-color: var(--cream); color: var(--text-primary); border-color: var(--gold); }

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* 20. DEMO SWITCHER WIDGET */
.demo-widget {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 999;
}

.demo-widget-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--text-primary);
    color: #FFFFFF;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.demo-panel {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    width: 320px;
    background-color: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    padding: 16px;
}

.demo-panel.active { display: block; }
.demo-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }

.lang-selector-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.lang-label { font-size: 0.7rem; font-weight: 700; }
.lang-btn {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--ivory);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
}

.lang-btn.active { background-color: var(--terracotta); color: #FFFFFF; border-color: var(--terracotta); }

.demo-preset-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.preset-btn {
    padding: 6px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--ivory);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
}

.preset-btn.active { background-color: var(--cream); border-color: var(--gold); }

/* 21. CONFETTI CANVAS & ANIMATION OBSERVER */
#confetti-canvas {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
