/*
    Theme Name: SweetMegan
    Description: Custom theme for SweetMegan - v2.3 Phase 1 Complete
    Version: 2.3
    Author: Gemini
*/

/*--------------------------------------------------------------
# VARIABLES & MIXINS
--------------------------------------------------------------*/
:root {
    --color-background: #0D0C12;
    --color-surface: rgba(26, 26, 41, 0.6);
    --color-surface-hover: rgba(36, 36, 51, 0.8);
    --color-border: rgba(255, 105, 180, 0.2);
    --color-text: #EAE6F0;
    --color-text-muted: #A09AAD;
    --color-primary: #FF69B4;
    --color-secondary: #8A2BE2;
    --color-accent: #FFD700;
    --font-body: 'Poppins', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --border-radius: 16px;
    --transition-speed: 0.3s;
    --header-height: 90px;
}

/*--------------------------------------------------------------
# BASE & TYPOGRAPHY
--------------------------------------------------------------*/
body {
    background-color: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.modal-open,
body.nav-open {
    overflow: hidden;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.section-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: white;
}

main {
    padding-top: var(--header-height);
}

/* Prevent content from hiding behind fixed header */

/*--------------------------------------------------------------
# HEADER & NAVIGATION
--------------------------------------------------------------*/
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    transition: background-color var(--transition-speed) ease, height var(--transition-speed) ease, transform var(--transition-speed) ease-out;
}

.site-header.scrolled {
    background: rgba(13, 12, 18, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    height: 70px;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.branding__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.branding__tagline {
    display: none;
}

/* Too much clutter */

/* Desktop Navigation */
.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.menu--primary {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu--primary a {
    text-transform: uppercase;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    position: relative;
    padding: 5px 0;
}

.menu--primary a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-speed) ease;
}

.menu--primary a:hover::after,
.menu--primary .current-menu-item>a::after {
    width: 100%;
}

.menu--primary a:hover,
.menu--primary .current-menu-item>a {
    color: white;
}

/* Mobile Nav Toggle (Hamburger) */
.nav-toggle {
    display: none;
    /* Hidden on desktop */
    position: relative;
    z-index: 9999;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: all var(--transition-speed) ease-in-out;
}

.nav-toggle__bar:nth-child(2) {
    margin: 6px 0;
}

.nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/*--------------------------------------------------------------
# MOBILE & RESPONSIVE STYLES
--------------------------------------------------------------*/
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-background);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateY(-100%);
        transition: transform var(--transition-speed) ease-in-out;
        visibility: hidden;
    }

    .nav-open .site-nav {
        transform: translateY(0);
        visibility: visible;
    }

    .menu--primary {
        flex-direction: column;
        text-align: center;
    }

    .menu--primary a {
        font-size: 2rem;
    }

    .nav-cta {
        display: block;
        margin-top: 2rem;
    }

    /* General Responsive */
    body {
        font-size: 16px;
    }

    .section {
        padding: 40px 10px;
        margin: 20px 10px;
    }

    .hero__headline {
        font-size: 3rem;
    }

    .pricing-table {
        grid-template-columns: 1fr;
    }

    .gallery-grid--teaser {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}


/*--------------------------------------------------------------
# HERO SECTION
--------------------------------------------------------------*/
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10vh 0;
    overflow: hidden;
}

.hero__media video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    filter: brightness(0.4) blur(4px);
}

.hero__content {
    z-index: 1;
}

.hero__eyebrow {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.hero__headline {
    background: linear-gradient(45deg, var(--color-primary), var(--color-accent), var(--color-secondary));
    background-size: 300% 300%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 10s ease infinite;
    font-size: clamp(3rem, 7vw, 6rem);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0.5rem 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero__subhead {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    max-width: 650px;
    margin: 1.5rem auto 2.5rem;
    color: var(--color-text-muted);
}

/*--------------------------------------------------------------
# BUTTONS
--------------------------------------------------------------*/
.cta-button,
.btn-primary {
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: var(--color-primary);
    color: white !important;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.4);
    transition: all var(--transition-speed) ease;
}

.cta-button:hover,
.btn-primary:hover {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.6);
}

/*--------------------------------------------------------------
# SECTIONS & SHORTCODES
--------------------------------------------------------------*/
.section {
    padding-block: 80px;
    position: relative;
}

.section__header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section--teaser,
.section--pricing,
.section--social-proof {
    background: var(--color-surface);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 40px;
    margin: 40px;
}

.gallery-grid--teaser {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    aspect-ratio: 9 / 12;
    cursor: pointer;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) saturate(120%);
    transform: scale(1.1);
    transition: all var(--transition-speed) ease;
}

.gallery-card figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-speed) ease;
    transform: translateY(25%);
    opacity: 0;
}

.gallery-card:hover img {
    filter: blur(10px) saturate(100%);
    transform: scale(1);
}

.gallery-card:hover figcaption {
    transform: translateY(0);
    opacity: 1;
}

.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
}

.pricing-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all var(--transition-speed) ease;
    transform: translateY(0);
}

.pricing-card.popular {
    transform: scale(1.05);
    border-width: 2px;
    border-color: var(--color-primary);
    box-shadow: 0 0 40px rgba(255, 105, 180, 0.4);
}

.pricing-card:hover:not(.popular) {
    transform: translateY(-10px);
}

.price {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.pricing-card__features {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.testimonial-slider__track {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-block: 1rem;
    scrollbar-width: none;
}

.testimonial-slider__track::-webkit-scrollbar {
    display: none;
}

.testimonial {
    flex: 0 0 80%;
    scroll-snap-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    border-radius: var(--border-radius);
}

.testimonial-slider__nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.platform-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    padding: 0;
}

/*--------------------------------------------------------------
# MODAL & AGE GATE
--------------------------------------------------------------*/
[aria-hidden="true"] {
    display: none !important;
}

.age-gate,
.welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(13, 12, 18, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.age-gate__card,
.welcome-modal__content {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.age-gate__actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.welcome-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: -1;
}

.welcome-modal__close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2.5rem;
    cursor: pointer;
}


/*==============================================================
  PHASE 2 - FEATURE IMPLEMENTATION
==============================================================*/

/*--------------------------------------------------------------
# Feature 1: Advanced Hover Effects & Accessibility Focus
--------------------------------------------------------------*/
.pricing-card,
.gallery-card,
.testimonial {
    transition: all var(--transition-speed) ease-in-out;
}

.pricing-card:hover,
.gallery-card:hover,
.testimonial:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

/* --- Accessibility Focus States --- */
a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 3px;
    box-shadow: 0 0 20px var(--color-accent);
    border-radius: 3px;
}


/*--------------------------------------------------------------
# Feature 2: Animated Gradient Borders
--------------------------------------------------------------*/
.section--pricing,
.section--social-proof {
    position: relative;
    z-index: 1;
}

.section--pricing::before,
.section--social-proof::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius);
    padding: 2px;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    background-size: 400% 400%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
    animation: gradientShift 15s ease infinite;
}


/*--------------------------------------------------------------
# Feature 3: Custom Themed Scrollbar
--------------------------------------------------------------*/
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--color-background);
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 20px;
    border: 3px solid var(--color-background);
}

::-webkit-scrollbar-thumb:hover {
    background-color: white;
}


/*--------------------------------------------------------------
# Feature 4: Custom Iconography
--------------------------------------------------------------*/
.pricing-card__features li {
    justify-content: flex-start;
    text-align: left;
}

.pricing-card__features .icon {
    color: unset;
    /* Unset the text color */
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") no-repeat center;
}


/*--------------------------------------------------------------
# Feature 5 & 6: Pre-Loader & Scroll Animations
--------------------------------------------------------------*/
.page-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-background);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--color-surface);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body.loaded .page-preloader {
    opacity: 0;
    pointer-events: none;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/*--------------------------------------------------------------
# Feature 7: Interactive "Glow" Cursor
--------------------------------------------------------------*/
.glow-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 105, 180, 0.2) 0%, rgba(255, 105, 180, 0) 60%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    /* Below modals but above content */
    margin-left: -200px;
    /* Center the cursor */
    margin-top: -200px;
    transition: transform 0.1s ease-out;
}

@media (max-width: 768px) {
    .glow-cursor {
        display: none;
    }
}

/*--------------------------------------------------------------
# Feature 10: Enhanced Form Styling (WPForms)
--------------------------------------------------------------*/
.surface.page-content {
    background: var(--color-surface);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 40px;
    margin-top: 40px;
}

.wpforms-container .wpforms-form .wpforms-field {
    padding: 0;
    border: none;
}

.wpforms-container .wpforms-form .wpforms-field-label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.wpforms-container .wpforms-form .wpforms-field input[type=text],
.wpforms-container .wpforms-form .wpforms-field input[type=email],
.wpforms-container .wpforms-form .wpforms-field textarea {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    padding: 12px 15px;
    width: 100%;
    transition: all var(--transition-speed) ease;
}

.wpforms-container .wpforms-form .wpforms-field input[type=text]:focus,
.wpforms-container .wpforms-form .wpforms-field input[type=email]:focus,
.wpforms-container .wpforms-form .wpforms-field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.5);
    background-color: transparent;
}

.wpforms-container .wpforms-form .wpforms-submit-container {
    text-align: right;
    padding-top: 1rem;
}

.wpforms-container .wpforms-form .wpforms-submit {
    /* Reuse the main button styles */
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: var(--color-primary) !important;
    color: white !important;
    padding: 16px 32px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 2px solid transparent !important;
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.4) !important;
    transition: all var(--transition-speed) ease !important;
    cursor: pointer;
}

.wpforms-container .wpforms-form .wpforms-submit:hover {
    background-color: transparent !important;
    border-color: var(--color-primary) !important;
    color: var(--color-primary) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.6) !important;
}

/*--------------------------------------------------------------
# Phase 5: Social Sharing
--------------------------------------------------------------*/
.social-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.social-share__title {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.social-share__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-share__link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text);
    transition: all var(--transition-speed) ease;
}

.social-share__link svg {
    width: 24px;
    height: 24px;
}

.social-share__link:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 105, 180, 0.3);
}

/*--------------------------------------------------------------
# Phase 6: Wow Feature - Interactive Timeline
--------------------------------------------------------------*/
.content-timeline {
    position: relative;
    padding: 2rem 0;
}

/* The central line */
.content-timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background-color: var(--color-border);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 1rem 2rem;
    margin-bottom: 2rem;
}

/* The dot on the line */
.timeline-item__connector {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: var(--color-primary);
    border: 3px solid var(--color-background);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item--left {
    left: 0;
}

.timeline-item--right {
    left: 50%;
}

.timeline-item--left .timeline-item__connector {
    right: -10px;
    /* (20px width / 2) */
}

.timeline-item--right .timeline-item__connector {
    left: -10px;
    /* (20px width / 2) */
}

.timeline-item__content {
    background: var(--color-surface);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.vip-drop__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 0.5rem;
}

.vip-drop__header h2 {
    font-size: 1.5rem;
    margin: 0;
}

.vip-drop__time {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    white-space: nowrap;
    margin-left: 1rem;
}

.badge {
    background-color: var(--color-secondary);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-left: 1rem;
}

.vip-drop__media video,
.vip-drop__media img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Responsive adjustments for the timeline */
@media (max-width: 768px) {
    .content-timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 0;
    }

    .timeline-item--right {
        left: 0;
    }

    .timeline-item--left .timeline-item__connector,
    .timeline-item--right .timeline-item__connector {
        left: 0;
    }
}



/*--------------------------------------------------------------
# Phase 7: Styling Overhaul (Quiz, Leaderboard, Countdown, Tips)
--------------------------------------------------------------*/

/* --- Quiz Section --- */
.section--quiz {
    background: radial-gradient(circle at center, rgba(138, 43, 226, 0.1) 0%, rgba(13, 12, 18, 0) 70%);
}

.quiz__intro {
    text-align: center;
    margin-bottom: 3rem;
}

.quiz__questions {
    display: grid;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.quiz__questions fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease;
}

.quiz__questions fieldset:hover {
    border-color: var(--color-primary);
}

.quiz__questions legend {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--color-accent);
    padding: 0 1rem;
    margin-bottom: 1rem;
}

.quiz__questions label {
    display: block;
    margin-bottom: 1rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quiz__questions label:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: translateX(5px);
}

.quiz__questions input[type="radio"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    position: relative;
}

.quiz__questions input[type="radio"]:checked {
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
}

.quiz__submit {
    display: block;
    margin: 0 auto;
    max-width: 400px;
}

/* --- Leaderboard (Hall of Fame) --- */
.sweetmegan-leaderboard {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-card {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.leaderboard-card:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--color-accent);
}

.leaderboard-card__rank {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-muted);
    margin-right: 2rem;
    min-width: 60px;
    text-align: center;
}

/* Top 3 Styling */
.leaderboard-card:nth-child(1) .leaderboard-card__rank {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.leaderboard-card:nth-child(2) .leaderboard-card__rank {
    color: #C0C0C0;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
}

.leaderboard-card:nth-child(3) .leaderboard-card__rank {
    color: #CD7F32;
    text-shadow: 0 0 10px rgba(205, 127, 50, 0.5);
}

.leaderboard-card__body {
    flex: 1;
}

.leaderboard-card__name {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: white;
}

.leaderboard-card__spend {
    color: var(--color-primary);
    font-weight: 600;
    margin: 0;
}

.leaderboard-card__note {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin: 0.5rem 0 0;
    font-style: italic;
}

/* --- Countdown Clock --- */
.section--countdown {
    text-align: center;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.countdown__block {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-primary);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 120px;
    box-shadow: 0 0 15px rgba(255, 105, 180, 0.2);
}

.countdown__value {
    display: block;
    font-family: 'Courier New', monospace;
    /* Digital look */
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    text-shadow: 0 0 10px var(--color-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.countdown__label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

/* --- Tip Jar --- */
.sweetmegan-tip-panel {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(138, 43, 226, 0.1));
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

.sweetmegan-tip-panel__intro h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.sweetmegan-tip-panel__buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.sweetmegan-tip-panel__buttons .button {
    min-width: 200px;
}

/* --- Platform Links --- */
.platform-links__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.platform-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.platform-link:hover {
    background: var(--color-surface-hover);
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.platform-link__label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.platform-link__cta {
    font-size: 0.9rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Footer Widgets --- */
.footer {
    background: rgba(13, 12, 18, 0.95);
    border-top: 1px solid var(--color-border);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer__columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.widget__title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.widget__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-primary);
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget li {
    margin-bottom: 0.8rem;
}

.widget a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}