/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0 2rem;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: var(--bg-nav);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
    transition: background-color 0.4s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 200px;
    width: auto;
    object-fit: contain;
    margin: -75px -20px;
}

.logo-icon {
    display: none;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.18em;
    background: linear-gradient(180deg, #f5d982 0%, #c9a84c 35%, #8b6914 65%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 1px 3px rgba(201, 168, 76, 0.5));
    text-transform: uppercase;
}

.logo-accent {
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--gold-light);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.65rem 1.6rem;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--text-on-dark-bg);
    border-radius: 6px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(201, 168, 76, 0.3);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.45);
}


/* ---------- BODY SCROLL LOCK ---------- */
body.no-scroll {
    overflow: hidden;
}


/* ---------- NAV SIGN IN ---------- */
/* ---------- NAV ACTIONS GROUP ---------- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ---------- LANGUAGE DROPDOWN ---------- */
.lang-dropdown {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 0.4rem 0.7rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(201, 168, 76, 0.35);
}

.lang-globe {
    font-size: 0.95rem;
    line-height: 1;
}

.lang-current {
    letter-spacing: 0.06em;
}

.lang-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.lang-dropdown.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    list-style: none;
    background: rgba(15, 25, 50, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    z-index: 1001;
}

.lang-dropdown.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-menu li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-menu li:hover {
    background: rgba(201, 168, 76, 0.12);
    color: var(--text-on-dark-bg);
}

.lang-menu li.active {
    color: var(--gold-light);
    background: rgba(201, 168, 76, 0.08);
}

.lang-menu li.active::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--gold-primary);
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}

/* ---------- SIGN IN BUTTON ---------- */
.nav-signin {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    padding: 0.4rem 0.9rem 0.4rem 0.65rem;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.nav-signin:hover {
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.4);
    color: var(--gold-light);
    box-shadow: 0 0 16px rgba(201, 168, 76, 0.15);
    transform: translateY(-1px);
}

.signin-icon {
    font-size: 1rem;
    line-height: 1;
}

.signin-label {
    line-height: 1;
}

/* =============================================
   PHASE 5: RESPONSIVENESS & FINAL POLISH
   ============================================= */

/* ---------- HAMBURGER BUTTON ---------- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.ham-line {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animated X on open */
.hamburger.open .ham-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open .ham-line:nth-child(2) {
    opacity: 0;
}

.hamburger.open .ham-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---------- NAVBAR SCROLLED STATE ---------- */
.navbar.scrolled {
    background: rgba(15, 40, 80, 0.88);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    padding: 0 2rem;
}

/* ---------- SCROLL-TO-TOP BUTTON ---------- */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: var(--text-on-dark-bg);
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top:hover {
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.5);
    transform: translateY(-3px);
}

/* ---------- FOOTER ---------- */
.site-footer {
    background: linear-gradient(180deg, #0f1923, #0a0f14);
    border-top: 3px solid var(--gold-primary);
    padding: 4rem 2rem 0;
    color: rgba(255, 255, 255, 0.6);
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.footer-logo .logo-img {
    height: 160px;
    margin: -55px -15px;
}

.footer-logo .logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    background: linear-gradient(180deg, #f5d982 0%, #c9a84c 35%, #8b6914 65%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.footer-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1.2rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 0.6rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
    transition: background 0.3s, transform 0.3s;
}

.social-link:hover {
    background: rgba(201, 168, 76, 0.2);
    transform: translateY(-2px);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
}

/* ---------- FOCUS OUTLINES ---------- */
*:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

.nav-links a:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    color: var(--gold-light);
}

.nav-links a:focus-visible::after {
    width: 100%;
}

.nav-cta:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.45);
}

.lang-toggle:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(201, 168, 76, 0.35);
}

.nav-signin:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    background: rgba(201, 168, 76, 0.12);
    border-color: rgba(201, 168, 76, 0.4);
    color: var(--gold-light);
    box-shadow: 0 0 16px rgba(201, 168, 76, 0.15);
}

.scroll-top:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.5);
}

.social-link:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    background: rgba(201, 168, 76, 0.2);
    transform: translateY(-2px);
}

.footer-links a:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    color: var(--gold-light);
}

.modal-close:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-on-dark-bg);
}

.btn-modal-primary:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
}

.auth-tab:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- RESPONSIVE: 1024px ---------- */
@media (max-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero {
        padding: 6rem 1.5rem 4rem;
    }

    .footer-container {
        gap: 2rem;
    }
}

/* ---------- RESPONSIVE: 768px ---------- */
@media (max-width: 768px) {

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    /* Hide desktop links at mobile */
    .nav-links {
        display: none;
    }

    /* Flatten nav-actions so all items participate in parent flex */
    .nav-actions {
        display: contents;
    }

    .nav-container {
        justify-content: space-between;
        gap: 0;
    }

    /* Mobile nav action buttons — uniform circles */
    .nav-actions {
        gap: 0.5rem;
    }

    .lang-toggle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
        font-size: 1rem;
    }

    .lang-current,
    .lang-arrow {
        display: none;
    }

    .lang-globe {
        font-size: 1.1rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 50%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
    }

    .nav-signin {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        border-radius: 50%;
        padding: 0;
        justify-content: center;
    }

    .nav-signin .signin-label {
        display: none;
    }

    .nav-signin .signin-icon {
        font-size: 1.1rem;
    }

    .hamburger {
        order: 99;
        margin-left: 0.3rem;
    }

    /* Mobile nav overlay */
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(15, 40, 80, 0.95);
        backdrop-filter: blur(16px);
        padding: 1.5rem 2rem 2rem;
        gap: 0;
        z-index: 999;
        animation: slideDown 0.3s ease;
    }

    /* nav-actions always visible on mobile, no overlay needed */

    .nav-links.mobile-open li {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links.mobile-open li a {
        font-size: 1rem;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hero adjustments */
    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
    }

    .island-img {
        width: 95vw;
    }

    .hero-cta-area {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .game-icon {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .game-icon .tooltip {
        display: none;
    }

    /* Teaser */
    .teaser-inner {
        flex-direction: column;
        gap: 1.5rem;
    }

    .teaser-pattern-left,
    .teaser-pattern-right {
        width: 100%;
        height: 30px;
    }

    .sparkle {
        display: none;
    }

    /* Events */
    .events {
        padding: 3.5rem 1.5rem 4rem;
    }

    .events-title {
        font-size: 1.8rem;
    }

    .countdown-strip {
        flex-direction: column;
        gap: 0.8rem;
        padding: 1.2rem;
    }

    .filter-tabs {
        gap: 0.3rem;
    }

    .filter-tab {
        padding: 0.5rem 0.9rem;
        font-size: 0.65rem;
    }

    /* Footer */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-tagline {
        max-width: none;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-links ul,
    .footer-contact ul {
        text-align: center;
    }
}

/* ---------- RESPONSIVE: 480px ---------- */
@media (max-width: 480px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 5rem 1rem 3rem;
    }

    .nav-cta {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }

    .scroll-top {
        width: 40px;
        height: 40px;
        bottom: 1.2rem;
        right: 1.2rem;
        font-size: 1.1rem;
    }
}

/* =============================================
   AUTH MODAL (shared across all pages)
   ============================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal-overlay);
    background: rgba(10, 10, 20, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    position: relative;
    width: 95%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #1e1e2f, #16213e);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transform: translateY(30px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-overlay.open .modal-panel {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-on-dark-bg);
}

.modal-heading {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-dark-bg);
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 0.4rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-on-dark-bg);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.form-input.error {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px var(--color-error-bg);
}

.btn-modal-primary {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-on-dark-bg);
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.25);
}

.btn-modal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.4);
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.auth-tab {
    flex: 1;
    padding: 0.8rem 0;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.auth-tab:hover {
    color: rgba(255, 255, 255, 0.7);
}

.auth-tab.active {
    color: var(--gold-light);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.form-checkbox input[type="checkbox"] {
    accent-color: var(--gold-primary);
}

.auth-form.hidden,
.auth-success.hidden {
    display: none;
}

.confirm-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-success-dark), var(--color-success));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-on-dark-bg);
    animation: confirmBounce 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes confirmBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.confirm-note {
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .modal-panel {
        width: 100%;
        max-width: none;
        border-radius: 16px 16px 0 0;
        padding: 2rem 1.5rem;
        max-height: 85vh;
    }

    .modal-overlay {
        align-items: flex-end;
    }
}

/* ---------- Auth Modal Utility Classes ---------- */
.auth-btn-google {
    background: var(--color-google-bg);
    color: var(--color-google-text);
    border: 1px solid var(--color-google-border);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 500;
}

/* Google button dark mode handled by CSS variables in base.css */

.auth-btn-apple {
    background: var(--color-apple);
    margin: 0.5rem 0 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

/* Apple button dark mode handled by CSS variables in base.css */

.auth-btn-phone {
    background: var(--color-phone);
    color: var(--text-on-gold);
    margin: 0.5rem 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 500;
}

.auth-btn-phone:hover {
    background: color-mix(in srgb, var(--color-phone) 85%, #000);
}

[data-theme="dark"] .auth-btn-phone {
    background: #22c55e;
}

[data-theme="dark"] .auth-btn-phone:hover {
    background: #1db954;
}

.phone-input-wrapper {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.phone-country-code {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    flex: 0 0 80px;
    text-align: center;
    padding: 0.6rem 0.3rem;
    font-size: 0.85rem;
}

.phone-number-input {
    flex: 1 1 auto;
    min-width: 0;
}

.otp-input {
    text-align: center;
    font-size: 1.4rem;
    letter-spacing: 0.5rem;
    font-weight: 600;
    font-family: monospace;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 1rem;
}

.auth-divider hr {
    flex: 1;
    border: none;
    border-top: 1px solid var(--border-gold);
    opacity: 0.3;
}

.auth-divider span {
    font-size: 0.78rem;
    color: var(--text-mid);
    opacity: 0.6;
}

.auth-error-msg {
    display: none;
    background: var(--color-error-bg);
    border: 1px solid var(--color-error-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.82rem;
    color: var(--color-error);
    margin-bottom: 1rem;
}

.auth-forgot-wrapper {
    text-align: right;
    margin: -0.5rem 0 0.8rem;
}

.auth-forgot-link {
    font-size: 0.78rem;
    color: var(--gold-primary);
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-reset-info {
    font-size: 0.85rem;
    color: var(--text-mid);
    margin-bottom: 1rem;
}

.auth-back-wrapper {
    text-align: center;
    margin-top: 0.8rem;
}

.auth-consent {
    margin: 0.5rem 0 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.auth-consent input[type="checkbox"] {
    margin-top: 3px;
}

.auth-consent span {
    font-size: 0.8rem;
    color: var(--text-mid);
    line-height: 1.4;
}

.auth-kvkk-link {
    color: var(--gold-primary);
    text-decoration: underline;
}

/* ---------- AUTH BRAND ---------- */
.auth-brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-brand-icon {
    font-size: 2rem;
    margin-bottom: 0.3rem;
    color: var(--gold-primary);
}

.auth-brand-title {
    font-family: var(--font-hero);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: linear-gradient(180deg, #f5d982 0%, #c9a84c 50%, #8b6914 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- AUTH SOCIAL BUTTONS ---------- */
.auth-social-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-social-google {
    background: var(--color-google-bg);
    color: var(--color-google-text);
    border-color: var(--color-google-border);
}

.auth-social-phone {
    background: var(--color-phone);
    color: var(--text-on-gold);
}

[data-theme="dark"] .auth-social-phone {
    background: #22c55e;
}

/* ---------- AUTH STEP HEADER ---------- */
.auth-step-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.auth-step-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-step-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-on-dark-bg);
    margin: 0;
}

/* ---------- FORM INPUT ICON ---------- */
.form-input-icon {
    position: relative;
}

.form-input-icon .input-icon {
    position: absolute;
    left: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.4;
    pointer-events: none;
}

.form-input-icon .form-input {
    padding-left: 2.4rem;
}

/* ---------- FORM ROW (side by side) ---------- */
.form-row {
    display: flex;
    gap: 0.8rem;
}

.form-row .form-group {
    flex: 1;
}

/* ---------- PASSWORD STRENGTH ---------- */
.password-strength {
    height: 3px;
    border-radius: 2px;
    margin-top: 4px;
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
}

.password-strength.strength-weak {
    background: linear-gradient(90deg, #e74c3c 0%, #e74c3c 33%, rgba(255,255,255,0.06) 33%);
}

.password-strength.strength-medium {
    background: linear-gradient(90deg, #f39c12 0%, #f39c12 66%, rgba(255,255,255,0.06) 66%);
}

.password-strength.strength-strong {
    background: #27ae60;
}

/* ---------- USER DROPDOWN MENU ---------- */
.user-dropdown-menu {
    position: fixed;
    z-index: 10000;
    min-width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: 14px;
    box-shadow: 0 12px 40px var(--shadow-soft);
    padding: 0.5rem 0;
    animation: slideDown 0.2s ease;
    backdrop-filter: blur(16px);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-mid);
    cursor: pointer;
    transition: background 0.2s;
}

.user-dropdown-item:hover {
    background: rgba(201, 168, 76, 0.08);
}

.user-dropdown-header {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-gold);
    padding-bottom: 0.8rem;
    margin-bottom: 0.3rem;
    cursor: default;
}

.user-dropdown-info {
    font-size: 0.78rem;
    opacity: 0.6;
    cursor: default;
}

.user-dropdown-info:hover {
    background: none;
}

.user-dropdown-danger {
    color: #e74c3c;
}

.user-dropdown-danger:hover {
    background: rgba(231, 76, 60, 0.06);
}

.dropdown-icon {
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}

/* ---------- TICKETS MODAL ---------- */
.tickets-panel {
    max-width: 600px;
}

.tickets-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tickets-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-mid);
    opacity: 0.7;
    margin: 0;
}

.tickets-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-mid);
}

.tickets-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(201, 168, 76, 0.2);
    border-top-color: var(--gold-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 0.8rem;
}

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

.tickets-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-mid);
}

.tickets-empty-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tickets-explore-btn {
    margin-top: 1rem;
    max-width: 240px;
}

/* Ticket Card */
.ticket-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 0.8rem;
    transition: border-color 0.2s;
}

.ticket-card:hover {
    border-color: rgba(201, 168, 76, 0.3);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.ticket-event-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-on-dark-bg);
    margin: 0;
}

.ticket-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 20px;
}

.ticket-status-confirmed {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.ticket-status-pending {
    background: rgba(243, 156, 18, 0.15);
    color: #f39c12;
}

.ticket-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

.ticket-detail {
    font-size: 0.8rem;
    color: var(--text-mid);
    opacity: 0.8;
}

.ticket-card-contact {
    font-size: 0.75rem;
    color: var(--text-mid);
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.5rem;
    margin-top: 0.3rem;
}