/* ==========================================================================
   Secret Santa – Modern Festive Christmas Theme
   Palette: Christmas Red, Pine Green, Gold, Warm Cream, Snow White
   ========================================================================== */

:root {
    --santa-red: #b91c1c;
    --santa-red-bright: #dc2626;
    --santa-red-dark: #881313;
    --pine-green: #14532d;
    --pine-green-deep: #0b361d;
    --pine-green-mid: #166534;
    --festive-gold: #d4af37;
    --festive-gold-warm: #f59e0b;
    --festive-gold-soft: #fef3c7;
    --warm-cream: #fffbf2;
    --warm-cream-alt: #fdf3dc;
    --snow-white: #ffffff;
    --ink-dark: #1f2937;
    --ink-muted: #52606d;
    --card-border: rgba(212, 175, 55, 0.25);
    --shadow-soft: 0 12px 32px rgba(15, 45, 25, 0.08);
    --shadow-hover: 0 18px 40px rgba(15, 45, 25, 0.14);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--warm-cream);
    color: var(--ink-dark);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    position: relative;
}

h1, h2, h3, .font-festive {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    letter-spacing: -0.01em;
}

/* ==========================================================================
   Subtle Snowfall Layer
   ========================================================================== */

.snowfall-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.snowflake {
    position: absolute;
    top: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 70%, transparent 100%);
    pointer-events: none;
    will-change: transform, opacity;
    animation-name: snowfall-drift;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

@keyframes snowfall-drift {
    0% {
        transform: translate3d(0, -10px, 0);
        opacity: 0;
    }
    10% {
        opacity: var(--flake-opacity, 0.65);
    }
    90% {
        opacity: var(--flake-opacity, 0.65);
    }
    100% {
        transform: translate3d(var(--flake-drift, 28px), 102vh, 0);
        opacity: 0;
    }
}

/* ==========================================================================
   Festive Navigation Bar
   ========================================================================== */

.navbar-festive {
    background: rgba(255, 251, 242, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.28);
    position: sticky;
    top: 0;
    z-index: 1020;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--pine-green-deep);
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.35rem;
}

.brand-mark:hover {
    color: var(--santa-red);
}

.brand-logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.brand-mark:hover .brand-logo-img {
    transform: translateY(-1px);
    opacity: 0.92;
}

.brand-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--santa-red-bright), var(--santa-red-dark));
    color: var(--snow-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(185, 28, 28, 0.28);
    border: 2px solid rgba(254, 243, 199, 0.85);
}

.navbar-festive .nav-link {
    color: var(--ink-dark);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.navbar-festive .nav-link:hover,
.navbar-festive .nav-link.active {
    color: var(--santa-red);
    background-color: rgba(185, 28, 28, 0.08);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn-santa {
    background: linear-gradient(135deg, var(--santa-red-bright) 0%, var(--santa-red) 100%);
    color: var(--snow-white);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.85rem 1.85rem;
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-santa:hover,
.btn-santa:focus {
    color: var(--snow-white);
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(185, 28, 28, 0.42);
    filter: brightness(1.05);
}

.btn-santa-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d4af37 50%, #b8860b 100%);
    color: #1f1606;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.9rem 2rem;
    box-shadow: 0 10px 26px rgba(212, 175, 55, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-santa-gold:hover,
.btn-santa-gold:focus {
    color: #1f1606;
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(212, 175, 55, 0.52);
    filter: brightness(1.04);
}

.btn-pine {
    background: linear-gradient(135deg, var(--pine-green-mid) 0%, var(--pine-green-deep) 100%);
    color: var(--snow-white);
    border: none;
    border-radius: 999px;
    font-weight: 700;
    padding: 0.8rem 1.6rem;
    box-shadow: 0 8px 20px rgba(20, 83, 45, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pine:hover,
.btn-pine:focus {
    color: var(--snow-white);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20, 83, 45, 0.38);
}

.btn-outline-cream {
    color: var(--warm-cream);
    border: 2px solid rgba(254, 243, 199, 0.65);
    border-radius: 999px;
    font-weight: 600;
    padding: 0.85rem 1.7rem;
    background: rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline-cream:hover {
    color: var(--snow-white);
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--festive-gold-soft);
    transform: translateY(-2px);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-christmas {
    position: relative;
    background:
        radial-gradient(circle at 18% 20%, rgba(220, 38, 38, 0.38) 0%, transparent 45%),
        radial-gradient(circle at 82% 28%, rgba(212, 175, 55, 0.24) 0%, transparent 42%),
        linear-gradient(135deg, var(--pine-green-deep) 0%, var(--pine-green) 48%, #5f1116 100%);
    color: var(--snow-white);
    padding: 5.25rem 0 6rem;
    overflow: hidden;
}

.hero-christmas::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 44px;
    background: var(--warm-cream);
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(254, 243, 199, 0.14);
    border: 1px solid rgba(254, 243, 199, 0.35);
    color: var(--festive-gold-soft);
    padding: 0.45rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.85rem);
    font-weight: 800;
    line-height: 1.12;
    color: var(--snow-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.hero-title .text-gold {
    color: #fde047;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: rgba(255, 251, 242, 0.9);
    line-height: 1.65;
    max-width: 560px;
}

.hero-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-top: 2rem;
    color: rgba(255, 251, 242, 0.85);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-trust-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-trust-pills i {
    color: #fde047;
}

.hero-scene-card {
    position: relative;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(254, 243, 199, 0.25);
    border-radius: 2rem;
    padding: 2rem 1.75rem 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
}

.hero-illustration {
    width: 100%;
    max-width: 410px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.25));
}

/* Swinging Santa Hanging Below Hero Curve */
.hero-swing-anchor {
    position: relative;
    height: 0;
    z-index: 5;
    pointer-events: none;
}

.swinging-santa-hang {
    position: absolute;
    top: -42px;
    right: 20.8%;
    transform: translateX(50%);
    width: 228px;
    height: 228px;
    pointer-events: none;
}

.swinging-santa-lottie {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 16px rgba(20, 83, 45, 0.16));
}

@media (max-width: 1199.98px) {
    .swinging-santa-hang {
        top: -39px;
        right: 15%;
        width: 196px;
        height: 196px;
    }
}

@media (max-width: 991.98px) {
    .swinging-santa-hang {
        top: -32px;
        right: 3%;
        transform: none;
        width: 136px;
        height: 136px;
    }
}

@media (max-width: 767.98px) {
    .swinging-santa-hang {
        top: -26px;
        right: 0.5rem;
        width: 104px;
        height: 104px;
    }
}

.float-gentle {
    animation: float-gentle 4.5s ease-in-out infinite;
}

.twinkle-star {
    animation: twinkle 2.8s ease-in-out infinite;
    transform-origin: center;
}

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

@keyframes twinkle {
    0%, 100% {
        opacity: 0.85;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.12);
    }
}

/* ==========================================================================
   Section Styling & Feature Cards
   ========================================================================== */

.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--santa-red);
    background: rgba(185, 28, 28, 0.09);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    margin-bottom: 0.85rem;
}

.section-heading {
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 700;
    color: var(--pine-green-deep);
}

.feature-card {
    background: var(--snow-white);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    padding: 2.15rem 1.85rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--santa-red), var(--festive-gold), var(--pine-green));
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.55);
}

.feature-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
}

.feature-icon-red {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: var(--santa-red);
}

.feature-icon-green {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: var(--pine-green);
}

.feature-icon-gold {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
}

/* ==========================================================================
   How It Works Section
   ========================================================================== */

.how-it-works-section {
    background: linear-gradient(180deg, var(--warm-cream-alt) 0%, var(--warm-cream) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.22);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.step-card {
    background: var(--snow-white);
    border: 1px solid rgba(20, 83, 45, 0.1);
    border-radius: 1.35rem;
    padding: 1.8rem 1.5rem;
    height: 100%;
    box-shadow: 0 8px 24px rgba(15, 45, 25, 0.06);
    transition: transform 0.2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--santa-red-bright), var(--santa-red));
    color: var(--snow-white);
    font-weight: 800;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--festive-gold-soft);
    box-shadow: 0 6px 14px rgba(185, 28, 28, 0.25);
    margin-bottom: 1rem;
}

.cta-banner {
    background: linear-gradient(135deg, var(--santa-red) 0%, #8f1414 55%, var(--pine-green-deep) 100%);
    border-radius: 1.75rem;
    color: var(--snow-white);
    padding: 3rem 2.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 44px rgba(136, 19, 19, 0.24);
}

/* ==========================================================================
   Event Creation & Organizer Pages
   ========================================================================== */

.page-header-festive {
    background: linear-gradient(135deg, var(--pine-green-deep) 0%, var(--pine-green) 60%, #7f1d1d 100%);
    color: var(--snow-white);
    padding: 3rem 0 4.5rem;
    position: relative;
}

.page-content-lift {
    margin-top: -2.75rem;
    position: relative;
    z-index: 3;
}

.festive-card {
    background: var(--snow-white);
    border: 1px solid var(--card-border);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.festive-card-header {
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.55), rgba(255, 251, 242, 0.95));
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding: 1.35rem 1.75rem;
}

.form-label-festive {
    font-weight: 600;
    color: var(--pine-green-deep);
    margin-bottom: 0.45rem;
    font-size: 0.94rem;
}

.form-control,
.form-select {
    border-radius: 0.85rem;
    border: 1.5px solid #d9e2ec;
    padding: 0.72rem 0.95rem;
    font-size: 0.96rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--pine-green-mid);
    box-shadow: 0 0 0 0.22rem rgba(20, 83, 45, 0.14);
}

.input-group-text-festive {
    background-color: var(--warm-cream-alt);
    border: 1.5px solid #d9e2ec;
    border-right: none;
    border-top-left-radius: 0.85rem;
    border-bottom-left-radius: 0.85rem;
    color: var(--pine-green-deep);
    font-weight: 700;
}

.private-link-box {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px dashed var(--festive-gold);
    border-radius: 1.25rem;
    padding: 1.4rem 1.5rem;
}

.status-badge-draft {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
    font-weight: 700;
}

.status-badge-drawn {
    background-color: #dcfce7;
    color: var(--pine-green);
    border: 1px solid #86efac;
    font-weight: 700;
}

/* ==========================================================================
   Participant Management Styles
   ========================================================================== */

.event-stat-pill {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(254, 243, 199, 0.28);
    border-radius: 1rem;
    padding: 0.7rem 1.05rem;
    color: var(--snow-white);
    min-width: 145px;
    backdrop-filter: blur(6px);
}

.event-stat-pill .stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--festive-gold-soft);
    font-weight: 600;
}

.event-stat-pill .stat-value {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
}

.participant-item {
    background: var(--snow-white);
    border: 1px solid rgba(20, 83, 45, 0.12);
    border-radius: 1.1rem;
    padding: 1rem 1.15rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.participant-item:hover {
    border-color: rgba(212, 175, 55, 0.55);
    box-shadow: 0 8px 20px rgba(15, 45, 25, 0.07);
}

.participant-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--santa-red-bright), var(--santa-red));
    color: var(--snow-white);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--festive-gold-soft);
    box-shadow: 0 4px 10px rgba(185, 28, 28, 0.2);
}

.participant-item:nth-child(even) .participant-avatar {
    background: linear-gradient(135deg, var(--pine-green-mid), var(--pine-green-deep));
    box-shadow: 0 4px 10px rgba(20, 83, 45, 0.2);
}

.participant-contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    color: var(--ink-muted);
    background: var(--warm-cream);
    border: 1px solid rgba(212, 175, 55, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.btn-action-edit {
    color: var(--pine-green);
    background-color: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 0.7rem;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-action-edit:hover {
    background-color: var(--pine-green);
    color: var(--snow-white);
}

.btn-action-delete {
    color: var(--santa-red);
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.7rem;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-action-delete:hover {
    background-color: var(--santa-red);
    color: var(--snow-white);
}

.continue-stage-bar {
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.45), rgba(220, 252, 231, 0.35));
    border-top: 1px solid rgba(212, 175, 55, 0.28);
    padding: 1.25rem 1.75rem;
}

.btn-continue-disabled {
    opacity: 0.55;
    pointer-events: none;
    box-shadow: none;
}

.progress-festive {
    height: 8px;
    border-radius: 999px;
    background-color: #e5e7eb;
    overflow: hidden;
}

.progress-festive .progress-bar {
    background: linear-gradient(90deg, var(--santa-red), var(--festive-gold), var(--pine-green-mid));
    transition: width 0.35s ease;
}

/* ==========================================================================
   Secret Draw Review & Christmas Celebration Animation
   ========================================================================== */

.draw-review-metric {
    background: var(--warm-cream);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 1.15rem;
    padding: 1.15rem 1.25rem;
    height: 100%;
}

.draw-review-metric .metric-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-muted);
    margin-bottom: 0.35rem;
}

.draw-review-metric .metric-value {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--pine-green-deep);
}

.confirm-box-festive {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.55);
    border-radius: 1.15rem;
    padding: 1.15rem 1.35rem;
}

.confirm-box-festive .form-check-input {
    width: 1.3rem;
    height: 1.3rem;
    margin-top: 0.12rem;
    cursor: pointer;
    border-color: var(--pine-green);
}

.confirm-box-festive .form-check-input:checked {
    background-color: var(--pine-green);
    border-color: var(--pine-green);
}

.draw-success-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(254, 243, 199, 0.65) 0%, transparent 58%),
        linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

.celebration-stage {
    position: relative;
    width: 148px;
    height: 148px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.celebration-ring {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 3px dashed rgba(212, 175, 55, 0.65);
    animation: spin-slow 18s linear infinite;
}

.celebration-ring-inner {
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.14) 0%, rgba(20, 83, 45, 0.08) 70%, transparent 100%);
    animation: pulse-glow 2.6s ease-in-out infinite;
}

.celebration-gift-svg {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    animation: gift-celebrate 2.2s ease-in-out infinite;
    filter: drop-shadow(0 12px 18px rgba(185, 28, 28, 0.24));
}

.confetti-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.privacy-shield-banner {
    background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 1.15rem;
    padding: 1rem 1.25rem;
    color: var(--pine-green-deep);
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        transform: scale(0.95);
        opacity: 0.75;
    }
    50% {
        transform: scale(1.06);
        opacity: 1;
    }
}

@keyframes gift-celebrate {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-7px) rotate(-3deg) scale(1.04);
    }
    50% {
        transform: translateY(-2px) rotate(3deg) scale(1.02);
    }
    75% {
        transform: translateY(-6px) rotate(-2deg) scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .celebration-ring,
    .celebration-ring-inner,
    .celebration-gift-svg {
        animation: none !important;
    }
}

/* ==========================================================================
   Participant Private Result Page & Gift Unwrap Animation
   ========================================================================== */

.reveal-card-stage {
    position: relative;
    overflow: visible;
    background:
        radial-gradient(circle at 50% 0%, rgba(254, 243, 199, 0.72) 0%, transparent 56%),
        linear-gradient(180deg, #fffdf7 0%, #ffffff 100%);
}

.reveal-card-stage .confetti-canvas {
    border-radius: inherit;
}

.gift-box-stage {
    position: relative;
    z-index: 4;
    width: 100%;
    max-width: 460px;
    height: 205px;
    margin: 0 auto 1.1rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    overflow: visible;
}

.gift-snow-floor {
    position: absolute;
    z-index: 0;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(212, 175, 55, 0.22) 0%, rgba(20, 83, 45, 0.08) 55%, transparent 78%);
    pointer-events: none;
}

.gift-glow-backdrop {
    position: absolute;
    z-index: 0;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 224, 71, 0.36) 0%, rgba(220, 38, 38, 0.12) 58%, transparent 74%);
    animation: pulse-glow-centered 3s ease-in-out infinite;
    pointer-events: none;
}

.interactive-gift-svg {
    position: relative;
    z-index: 3;
    width: 162px;
    height: 162px;
    filter: drop-shadow(0 16px 24px rgba(136, 19, 19, 0.24));
    transition: transform 0.25s ease;
    transform-origin: center bottom;
}

.gift-box-stage:hover .interactive-gift-svg {
    transform: translateY(-4px) scale(1.03);
}

.gift-box-lid {
    transform-origin: 90px 76px;
    transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.55s ease;
}

.gift-box-sparkles {
    opacity: 0.45;
    transform-origin: 90px 65px;
    transition: transform 0.65s ease, opacity 0.5s ease;
}

.gift-box-stage.is-shaking .interactive-gift-svg {
    animation: gift-wiggle 0.45s ease-in-out infinite;
}

.gift-box-stage.is-impact .interactive-gift-svg {
    animation: gift-impact-squish 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.gift-box-stage.is-opened .gift-box-lid {
    transform: translate(26px, -42px) rotate(26deg);
    opacity: 0.94;
}

.gift-box-stage.is-opened .gift-box-sparkles {
    opacity: 1;
    transform: scale(1.26) translateY(-10px);
}

/* Running & Jumping Santa Lottie Actor */
.walking-santa-actor {
    position: absolute;
    left: calc(50% - 52vw);
    bottom: 16px;
    width: 124px;
    height: 124px;
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transform-origin: center bottom;
}

/* Placed behind the red gift box front wall so Santa looks like he drops inside the box */
.gift-box-stage.is-behind-box .walking-santa-actor {
    z-index: 1;
}

.walking-santa-lottie {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 12px rgba(20, 83, 45, 0.18));
}

.gift-box-stage.is-santa-entering .walking-santa-actor {
    animation: santa-walk-and-jump 3.65s linear forwards;
}

/* Keeps Santa tucked cozily inside the red gift box once he lands */
.gift-box-stage.is-santa-inside .walking-santa-actor {
    left: calc(50% - 62px);
    bottom: 26px;
    z-index: 1;
    opacity: 1;
    transform: scale(0.48);
}

/* POP Burst Ring */
.gift-pop-burst {
    position: absolute;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-pop-burst .pop-ring {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 4px solid var(--festive-gold-warm);
    box-shadow: 0 0 18px rgba(253, 224, 71, 0.85);
    opacity: 0;
}

.gift-box-stage.is-popping .pop-ring {
    animation: pop-ring-expand 0.72s ease-out forwards;
}

/* Flying Secret Santa Name Pill (pops out from inside the box, then smoothly falls & blurs into the reveal slot) */
.pop-name-pill {
    position: absolute;
    left: 50%;
    bottom: 132px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 1rem);
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    background-color: #fef3c7;
    border: 2px solid var(--festive-gold);
    box-shadow: 0 10px 24px rgba(185, 28, 28, 0.24);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 96px) scale(0.32);
    transform-origin: center center;
    will-change: transform, opacity;
}

.pop-name-pill.is-pill-front {
    z-index: 12;
}

.pop-name-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 2.4vw, 1.38rem);
    font-weight: 700;
    color: var(--santa-red);
    line-height: 1.25;
    word-break: break-word;
    filter: blur(0px);
    opacity: 1;
    user-select: none;
}

.pop-name-pill.is-pill-popping {
    animation: name-pill-pop-out 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pop-name-pill.is-pill-falling {
    z-index: 12;
    opacity: 1;
    animation: name-pill-fall-to-slot 0.86s cubic-bezier(0.32, 0.04, 0.22, 1) forwards;
}

.pop-name-pill.is-pill-falling .pop-name-text {
    animation: name-pill-blur-on-land 0.86s ease-in-out forwards;
}

@keyframes pulse-glow-centered {
    0%, 100% {
        transform: translateX(-50%) scale(0.95);
        opacity: 0.75;
    }
    50% {
        transform: translateX(-50%) scale(1.06);
        opacity: 1;
    }
}

@keyframes santa-walk-and-jump {
    0% {
        left: calc(50% - 52vw);
        bottom: 26px;
        opacity: 0;
        transform: scale(0.62);
    }
    6% {
        left: calc(50% - 46vw);
        bottom: 24px;
        opacity: 1;
        transform: scale(0.68);
    }
    38% {
        left: calc(50% - 28vw);
        bottom: 18px;
        opacity: 1;
        transform: scale(0.84);
    }
    68% {
        left: calc(50% - 128px);
        bottom: 12px;
        opacity: 1;
        transform: scale(1);
    }
    /* Quick anticipation crouch right beside the red gift box */
    74% {
        left: calc(50% - 120px);
        bottom: 10px;
        opacity: 1;
        transform: scale(1.05, 0.86);
    }
    /* High joyful leap over the red gift box lid (limbs frozen here by JS) */
    86% {
        left: calc(50% - 62px);
        bottom: 132px;
        opacity: 1;
        transform: scale(1.02) rotate(8deg);
    }
    /* Drops smoothly behind the front wall into the red box and stays inside! */
    100% {
        left: calc(50% - 62px);
        bottom: 26px;
        opacity: 1;
        transform: scale(0.48) rotate(0deg);
    }
}

@keyframes gift-impact-squish {
    0% {
        transform: scale(1, 1);
    }
    35% {
        transform: scale(1.16, 0.8) translateY(5px);
    }
    65% {
        transform: scale(0.94, 1.08) translateY(-4px);
    }
    100% {
        transform: scale(1, 1) translateY(0);
    }
}

@keyframes pop-ring-expand {
    0% {
        opacity: 0.95;
        transform: scale(0.4);
    }
    100% {
        opacity: 0;
        transform: scale(4.8);
    }
}

@keyframes name-pill-pop-out {
    0% {
        opacity: 0;
        transform: translate(-50%, 96px) scale(0.32);
    }
    16% {
        opacity: 1;
        transform: translate(-50%, 48px) scale(0.68);
    }
    54% {
        opacity: 1;
        transform: translate(-50%, -14px) scale(1.1);
    }
    78% {
        opacity: 1;
        transform: translate(-50%, 2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0px) scale(1.03);
    }
}

@keyframes name-pill-fall-to-slot {
    0% {
        opacity: 1;
        transform: translate(-50%, 0px) scale(1.03);
        background-color: #fef3c7;
        border-color: var(--festive-gold);
        box-shadow: 0 10px 24px rgba(185, 28, 28, 0.24);
    }
    16% {
        opacity: 1;
        transform: translate(
            calc(-50% + var(--pill-fall-dx, 0px) * 0.12),
            calc(var(--pill-fall-dy, 180px) * 0.08 - 6px)
        ) scale(1.04);
        background-color: #fef3c7;
        border-color: var(--festive-gold);
        box-shadow: 0 12px 26px rgba(185, 28, 28, 0.2);
    }
    84% {
        opacity: 1;
        transform: translate(
            calc(-50% + var(--pill-fall-dx, 0px)),
            calc(var(--pill-fall-dy, 180px) + 5px)
        ) scale(0.98);
        background-color: rgba(255, 255, 255, 0.9);
        border-color: rgba(185, 28, 28, 0.36);
        box-shadow: 0 6px 16px rgba(185, 28, 28, 0.1);
    }
    100% {
        opacity: 1;
        transform: translate(
            calc(-50% + var(--pill-fall-dx, 0px)),
            var(--pill-fall-dy, 180px)
        ) scale(1);
        background-color: rgba(255, 255, 255, 0.85);
        border-color: rgba(185, 28, 28, 0.32);
        box-shadow: none;
    }
}

@keyframes name-pill-blur-on-land {
    0% {
        filter: blur(0px);
        opacity: 1;
    }
    28% {
        filter: blur(0px);
        opacity: 1;
    }
    86% {
        filter: blur(7px);
        opacity: 0.78;
    }
    100% {
        filter: blur(7px);
        opacity: 0.78;
    }
}

@keyframes recipient-slot-landed {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.52);
    }
    65% {
        box-shadow: 0 0 0 10px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.recipient-reveal-panel {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 52%, #ecfdf5 100%);
    border: 2px solid var(--festive-gold);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 18px 40px rgba(20, 83, 45, 0.14);
    animation: reveal-pop 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.recipient-name-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1.5px dashed rgba(185, 28, 28, 0.32);
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.recipient-name-box.is-awaiting-landing {
    opacity: 0;
    pointer-events: none;
}

.recipient-name-box.is-just-landed {
    animation: recipient-slot-landed 0.48s ease-out;
}

.recipient-name-box:hover,
.recipient-name-box:focus-visible,
.recipient-name-box.is-peeking {
    border-color: var(--santa-red);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(185, 28, 28, 0.12);
    outline: none;
}

.recipient-name-display {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 2.4vw, 1.38rem);
    font-weight: 700;
    color: var(--santa-red);
    line-height: 1.25;
    word-break: break-word;
    filter: blur(7px);
    opacity: 0.78;
    user-select: none;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.recipient-name-box:hover .recipient-name-display,
.recipient-name-box:focus-visible .recipient-name-display,
.recipient-name-box.is-peeking .recipient-name-display {
    filter: blur(0);
    opacity: 1;
}

.peek-hint-text {
    font-size: 0.78rem;
    color: var(--ink-muted);
}

/* Playful "Know Your Secret Santa" Curiosity Easter Egg */
.santa-curiosity-box {
    border-top: 1.5px dashed rgba(212, 175, 55, 0.45);
}

.btn-santa-peek {
    background: linear-gradient(135deg, var(--santa-red-bright), var(--santa-red));
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 0.82rem;
    box-shadow: 0 4px 12px rgba(185, 28, 28, 0.22);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-santa-peek:hover,
.btn-santa-peek:focus {
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.32);
    filter: brightness(1.06);
}

.santa-peek-stage {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 1.1rem;
    padding: 1.1rem 1rem;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
}

.santa-sleigh-loader-wrap {
    width: 100%;
    max-width: 320px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.santa-sleigh-loader-lottie {
    width: min(290px, 84vw);
    height: min(290px, 84vw);
    flex-shrink: 0;
}

.santa-wheel-wrap {
    position: relative;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.santa-spinning-wheel {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        #dc2626 0deg 45deg,
        #fde047 45deg 90deg,
        #166534 90deg 135deg,
        #ffffff 135deg 180deg,
        #dc2626 180deg 225deg,
        #fde047 225deg 270deg,
        #166534 270deg 315deg,
        #ffffff 315deg 360deg
    );
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
    animation: spin-slow 1.15s linear infinite;
}

.santa-bobbing-icon {
    width: 62px;
    height: 62px;
    position: relative;
    z-index: 2;
    animation: santa-jiggle 0.9s ease-in-out infinite;
}

.santa-peek-punchline {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
    border: 1.5px solid rgba(220, 38, 38, 0.28);
    border-radius: 1.1rem;
    padding: 1rem 1.25rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.08);
    animation: reveal-pop 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.santa-peek-sticker-wrap {
    width: 116px;
    height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.santa-peek-sticker-lottie {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 6px 12px rgba(185, 28, 28, 0.14));
}

.santa-peek-punchline .punchline-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--santa-red);
}

@keyframes santa-jiggle {
    0%, 100% {
        transform: translateY(0) rotate(-3deg);
    }
    50% {
        transform: translateY(-4px) rotate(3deg);
    }
}

.waiting-envelope-stage {
    width: 132px;
    height: 132px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 3px dashed rgba(185, 28, 28, 0.32);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-gentle 4s ease-in-out infinite;
}

.participant-link-row {
    background: var(--snow-white);
    border: 1px solid rgba(20, 83, 45, 0.12);
    border-radius: 1rem;
    padding: 0.85rem 1.1rem;
}

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

@keyframes reveal-pop {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.94);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gift-glow-backdrop,
    .gift-box-stage.is-shaking .interactive-gift-svg,
    .recipient-reveal-panel,
    .waiting-envelope-stage,
    .pop-name-pill,
    .pop-name-text,
    .recipient-name-box.is-just-landed {
        animation: none !important;
    }
    .gift-box-lid,
    .gift-box-sparkles {
        transition: none !important;
    }
}

/* ==========================================================================
   Organizer Dashboard & Sharing Table Styles
   ========================================================================== */

.organizer-nav-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(254, 243, 199, 0.25);
    padding: 0.35rem;
    border-radius: 999px;
}

.organizer-nav-pills .org-tab {
    color: rgba(255, 251, 242, 0.9);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.organizer-nav-pills .org-tab:hover {
    background: rgba(255, 255, 255, 0.16);
    color: var(--snow-white);
}

.organizer-nav-pills .org-tab.active {
    background: var(--snow-white);
    color: var(--pine-green-deep);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.dashboard-kpi-card {
    background: var(--snow-white);
    border: 1px solid var(--card-border);
    border-radius: 1.25rem;
    padding: 1.3rem 1.35rem;
    height: 100%;
    box-shadow: var(--shadow-soft);
}

.kpi-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.table-festive {
    margin-bottom: 0;
}

.table-festive thead th {
    background-color: var(--warm-cream);
    color: var(--pine-green-deep);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.95rem 1rem;
    white-space: nowrap;
}

.table-festive tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: rgba(212, 175, 55, 0.16);
}

.table-festive tbody tr:hover {
    background-color: rgba(255, 251, 242, 0.75);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border: none;
    border-radius: 0.65rem;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    transition: filter 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    color: #ffffff;
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.btn-copy-link {
    background-color: #ecfdf5;
    color: var(--pine-green);
    border: 1px solid #a7f3d0;
    border-radius: 0.65rem;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 0.4rem 0.75rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.btn-copy-link:hover,
.btn-copy-link:focus {
    background-color: var(--pine-green);
    color: #ffffff;
}

.invitation-link-input {
    font-size: 0.78rem;
    min-width: 190px;
    max-width: 240px;
    border-radius: 0.65rem !important;
    padding: 0.38rem 0.65rem;
}

/* ==========================================================================
   Mobile Responsiveness Refinements
   ========================================================================== */

@media (max-width: 575.98px) {
    .hero-christmas {
        padding: 3.5rem 0 4.5rem;
    }

    .page-header-festive {
        padding: 2.25rem 0 3.75rem;
    }

    .event-stat-pill {
        flex: 1 1 130px;
        min-width: 0;
        padding: 0.65rem 0.85rem;
    }

    .organizer-nav-pills {
        width: 100%;
        justify-content: center;
        border-radius: 1rem;
    }

    .organizer-nav-pills .org-tab {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .invitation-link-input {
        min-width: 145px;
        max-width: 100%;
    }

    .cta-banner {
        padding: 2.25rem 1.35rem;
    }
}

/* ==========================================================================
   Festive Footer
   ========================================================================== */

.footer-festive {
    background: linear-gradient(180deg, var(--pine-green-deep) 0%, #072313 100%);
    color: rgba(255, 251, 242, 0.86);
    border-top: 4px solid var(--festive-gold);
    position: relative;
    z-index: 2;
}

.footer-festive a {
    color: var(--festive-gold-soft);
    text-decoration: none;
}

.footer-festive a:hover {
    color: var(--snow-white);
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .snowflake,
    .float-gentle,
    .twinkle-star {
        animation: none !important;
    }
    html {
        scroll-behavior: auto;
    }
}
