@import url('theme.css');
/* =========================================
   CWL ESPORTS PLATFORM - GLOBAL STYLES
   END-TO-END OVERHAUL
========================================= */

@font-face {
    font-family: 'Quantify';
    src: url('../fonts/quantify/Quantify.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


:root {
    /* Pure Black & Charcoal Framework (Mapped to theme.css) */
    --bg-black: var(--theme-bg-main);
    --bg-charcoal: var(--theme-bg-charcoal);
    --bg-surface: var(--theme-bg-surface);
    --bg-card: var(--theme-bg-card);

    --fg-white: var(--theme-text-main);
    --fg-muted: var(--theme-text-muted);

    /* Neons & Interactive Limits */
    --blue-main: var(--theme-accent-blue);
    --blue-sec: var(--theme-accent-blue);
    --lime-main: var(--theme-accent-yellow);
    --lime-sec: var(--theme-accent-yellow-dark);

    /* Overwatch/Dignitas Slanted/Gradient Accents */
    --accent-orange: var(--lime-dark);
    --grad-primary: linear-gradient(to bottom right, var(--blue-main) 0%, var(--blue-sec) 50%, var(--lime-main) 100%);

    /* Typography Token Setup */
    --font-heading: 'Montserrat', sans-serif;
    --font-primary: 'Exo 2', sans-serif;
    --font-body: 'Karla', sans-serif;
    --font-cta: 'Quantify', sans-serif;

    /* Premium Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    /* very dark glass */
    --glass-hover: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 214, 31, 0.15);
    /* lime tinted border */
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);

    --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* =========================================
   BASE RESET
 ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    background-color: var(--theme-bg-main) !important;
    background: var(--theme-bg-main) !important;
}

body {
    background-color: var(--theme-bg-main) !important;
    color: var(--fg-white);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: scroll;
    /* Force scrollbar to prevent layout shift */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 5px;
    /* Prompt requirement: +5% tracking */
    text-transform: uppercase;
}

a {
    color: var(--lime-main);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--lime-sec);
    text-shadow: 0 0 8px var(--lime-main);
}

ul {
    list-style: none;
}

/* Utilities */
.text-lime {
    color: var(--lime-main) !important;
    text-shadow: 0 0 5px var(--lime-main);
}

.text-blue {
    color: var(--blue-main) !important;
}

.text-muted {
    color: var(--fg-muted) !important;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

/* =========================================
   WATERMARK BACKGROUNDS (DIGNITAS STYLE)
========================================= */
.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 15vw;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    letter-spacing: 15px;
}

/* =========================================
   STICKY NAVBAR
========================================= */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 10, 0.85);
    /* Charcoal transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Ensure nav-right doesn't collapse when auth items flicker */
.nav-right {
    justify-content: flex-end;
}

/* Stable wrapper for Auth + Divider */
.auth-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 220px;
    /* Anchors the right-most area */
    justify-content: flex-start;
    /* Keeps divider on the left of this block */
}

/* Vertical divider for the auth section */
.nav-divider {
    width: 2px;
    height: 24px;
    background: var(--lime-main);
    box-shadow: var(--theme-shadow-divider);
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* Auth containers visibility (JS will toggle) */
#auth-logged-out {
    display: flex;
}

#auth-logged-in {
    display: none;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--fg-white);
    letter-spacing: 2px;
}

.nav-logo span {
    color: var(--blue-main);
}

.logo-link {
    display: flex;
    align-items: center;
    transform: translateY(1px);
}

.nav-link {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--fg-muted);
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link.active,
.nav-link:hover {
    color: var(--fg-white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--lime-main);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--lime-main);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* =========================================
   SLANTED BUTTONS (OVERWATCH CLIP-PATH)
========================================= */
.btn {
    font-family: var(--font-cta);
    padding: 1rem 2rem;
    border: none;
    background: var(--glass-bg);
    color: var(--fg-white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    /* SLANTED EDGE */
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-left: 2px solid var(--lime-main);
    border-right: 2px solid var(--lime-main);
    opacity: 0.5;
    transition: var(--transition);
}

.btn:hover, a.btn:hover {
    background: var(--glass-hover);
    transform: translateY(-2px);
    text-shadow: none !important;
}

.btn:hover::before {
    opacity: 1;
    box-shadow: 0 0 15px var(--lime-main);
}

.btn-primary {
    background: var(--theme-btn-primary-bg, var(--lime-main));
    color: var(--theme-btn-primary-text, var(--bg-black));
    font-weight: bold;
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
}

.btn-primary::before {
    display: none;
}

.btn-primary:hover, a.btn-primary:hover {
    background: var(--theme-btn-primary-hover-bg, var(--theme-accent-blue)) !important;
    color: var(--theme-btn-primary-hover-text, #FFFFFF) !important;
    text-shadow: none !important;
    box-shadow: 0 0 20px var(--theme-btn-primary-hover-bg, var(--theme-accent-blue));
}

.btn-accent {
    background: var(--theme-btn-accent-bg, var(--lime-main));
    color: var(--theme-btn-accent-text, var(--bg-black));
}

.btn-accent::before {
    display: none;
}

.btn-accent:hover, a.btn-accent:hover {
    background: var(--theme-btn-accent-hover-bg, var(--theme-accent-blue)) !important;
    color: var(--theme-btn-accent-hover-text, #FFFFFF) !important;
    text-shadow: none !important;
    box-shadow: 0 0 20px var(--theme-btn-accent-hover-bg, var(--theme-accent-blue)) !important;
}

/* CTA & MODAL BUTTONS */
.cta-btn {
    font-family: var(--font-cta);
    background: var(--lime-main);
    color: var(--bg-black);
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    clip-path: polygon(15px 0, 100% 0, calc(100% - 15px) 100%, 0 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 2.5rem;
    min-height: 55px;
    box-shadow: 0 0 0 rgba(255, 214, 31, 0);
}

.cta-btn:hover:not(:disabled) {
    background: var(--theme-accent-blue) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 20px var(--theme-accent-blue);
    transform: translateY(-2px);
}

.cta-btn:active:not(:disabled) {
    transform: translateY(0);
}

.cta-btn:disabled {
    background: var(--theme-bg-surface);
    color: var(--theme-text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none !important;
    transform: none !important;
}

/* Custom Modal Button Hover */
.btn-create-confirm:hover {
    background: var(--theme-accent-blue) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 20px var(--theme-accent-blue) !important;
    border-color: var(--theme-accent-blue) !important;
}


/* =========================================
   GLASS PANELS & GRID (BENTO BOX)
========================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

/* Corner Bracket Accents used in Dignitas */
.corner-brackets::before,
.corner-brackets::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid var(--lime-main);
    transition: var(--transition);
}

.corner-brackets::before {
    top: -1px;
    left: -1px;
    border-bottom: none;
    border-right: none;
}

.corner-brackets::after {
    bottom: -1px;
    right: -1px;
    border-top: none;
    border-left: none;
}

.glass-panel:hover {
    background: var(--glass-hover);
    border-color: var(--lime-main);
    box-shadow: 0 0 20px rgba(255, 214, 31, 0.1);
}

/* =========================================
   VIEW ARCHITECTURE (ROUTER CONTENT)
========================================= */
.main-view {
    display: none;
    min-height: calc(100vh - 80px);
    padding: 4rem 2rem;
    position: relative;
    animation: fadeUp 0.5s ease forwards;
}

.main-view.active-view {
    display: block;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   SPECIFIC VIEWS
========================================= */

/* HERO LANDING */
.hero-section {
    position: relative;
    height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    margin: 0;
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.4;
    filter: brightness(0.6) contrast(1.2);
}

.hero-title {
    font-size: 6rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 30px rgba(255, 214, 31, 0.4);
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
}

/* NEWS GRID (Pathtoesports style) */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    z-index: 1;
    position: relative;
}

.news-card {
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.news-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    transition: var(--transition);
}

.news-card:hover::before {
    background: linear-gradient(to top, rgba(255, 214, 31, 0.2) 0%, rgba(0, 0, 0, 0) 100%);
}

.news-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem 1.5rem 1rem 1.5rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 10;
}

.news-content h3 {
    font-size: 1.5rem;
    text-transform: none;
    font-family: var(--font-primary);
}

/* STANDINGS / BRACKET */
.bracket-container {
    display: flex;
    gap: 4rem;
    overflow-x: auto;
    padding: 2rem 0;
}

.bracket-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
}

.b-match {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    width: 220px;
    border-radius: 4px;
    position: relative;
}

/* Neon tracer connection lines */
.b-match::after {
    content: '';
    position: absolute;
    right: -2rem;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: var(--glass-border);
}

.b-match.neon-trace::after {
    background: var(--lime-main);
    box-shadow: 0 0 10px var(--lime-main);
}

.b-team {
    padding: 10px 15px;
    border-bottom: 1px solid var(--theme-bg-surface);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-primary);
}

.b-team:last-child {
    border-bottom: none;
}

.b-team span.win {
    color: var(--lime-main);
    font-weight: bold;
}

/* PLAY PAGE (STEPPER) */
.stepper-container {
    max-width: 600px;
    margin: 0 auto;
}

.step-tracker {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.step-tracker::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--theme-bg-surface);
    z-index: -1;
}

.step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--theme-bg-surface);
    border: 2px solid var(--theme-bg-surface);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-cta);
    transition: var(--transition);
}

.step-dot.active {
    border-color: var(--lime-main);
    color: var(--lime-main);
    box-shadow: 0 0 15px var(--lime-main);
}

.step-form {
    display: none;
}

.step-form.active {
    display: block;
    animation: fadeUp 0.4s ease;
}

input,
select {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: #FFFFFF;
    font-family: var(--font-body);
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    outline: none;
}

input:focus {
    border-color: var(--blue-main);
}

/* SHOP BENTO BOX */
.shop-bento {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: auto;
    gap: 2rem;
}

.shop-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 6px;
    transition: var(--transition);
    min-height: 320px;
}

.shop-item:hover {
    border-color: var(--lime-main);
    box-shadow: 0 0 20px rgba(255, 214, 31, 0.1);
}

.shop-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
}

.shop-item.large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 500px;
}

.shop-item h3 {
    font-size: 1.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-break: break-word;
}

.shop-item .item-description {
    font-size: 0.8rem;
    color: var(--fg-muted);
    margin: 0.5rem 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.shop-price {
    font-family: var(--font-cta);
    font-size: 1.5rem;
    color: var(--lime-main);
}

/* PLAYER OP.GG VIEW (FEARLESS DRAFT) */
.player-search {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.player-search input {
    width: 400px;
    margin-bottom: 0;
    margin-right: 1rem;
    clip-path: none !important;
    border-radius: 6px;
}

.draft-pool {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.champ-icon {
    width: 60px;
    height: 60px;
    border: 2px solid var(--glass-border);
    clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
    position: relative;
    background-size: cover;
}

.champ-icon.banned {
    opacity: 0.3;
    border-color: red;
}

.champ-icon.banned::after {
    content: 'X';
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: red;
    font-family: var(--font-heading);
    font-size: 2rem;
    text-shadow: 0 0 5px red;
}

/* =========================================
   VIDEO LOADING SCREEN (Retained)
========================================= */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease, visibility 1s ease;
    will-change: opacity, transform;
}

#loading-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#loading-screen.loading-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

.skip-loading #loading-screen {
    display: none !important;
}

/* =========================================
   GLOBAL FOOTER
========================================= */
.site-footer {
    background: var(--theme-bg-main);
    border-top: 1px solid var(--glass-border);
    padding: 3rem 2rem 2rem 2rem;
    margin-top: auto;
    font-family: var(--font-body);
}

.site-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    height: 45px;
    width: auto;
    filter: none;
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    color: var(--fg-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--lime-main);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    color: var(--fg-muted);
    font-size: 1.5rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    color: var(--lime-main);
    transform: translateY(-2px);
}

.footer-copyright {
    color: var(--fg-dim);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .site-footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
    }

    .footer-right {
        align-items: center;
    }
}

/* Tournament Buttons */
.btn-tournament {
    background: var(--theme-accent-yellow) !important;
    color: var(--theme-bg-surface) !important;
    border: none !important;
    transition: all 0.3s ease;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-heading);
}

.btn-tournament:hover {
    background: var(--theme-accent-blue) !important;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--theme-accent-blue) !important;
}

/* =========================================
   AUTH MODAL & DROPDOWN (SHARED)
========================================= */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.auth-modal-overlay.show {
    display: flex !important;
}

.auth-modal {
    background: var(--theme-bg-surface);
    border: 1px solid rgba(255, 214, 31, 0.15);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    height: 720px;
    text-align: center;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 214, 31, 0.05);
}

.auth-modal h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: var(--lime-main);
    margin-bottom: 1.5rem;
}

.auth-modal input,
.auth-modal select {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: #FFFFFF;
    font-family: var(--font-body);
    border-radius: 4px;
    outline: none;
    clip-path: none !important;
}

.auth-modal input:focus {
    border-color: var(--lime-main);
}

.auth-modal .auth-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-modal .auth-tab {
    flex: 1;
    padding: 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--fg-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.auth-modal .auth-tab.active {
    color: var(--lime-main);
    border-bottom-color: var(--lime-main);
}

.auth-dropdown {
    position: relative;
}

.auth-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 180px;
    display: none;
    z-index: 200;
    margin-top: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.auth-dropdown-menu.show {
    display: block;
}

.auth-dropdown-item {
    display: block;
    padding: 0.7rem 1.2rem;
    color: var(--fg-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: left;
}

.auth-dropdown-item:hover {
    color: var(--fg-white);
    background: rgba(255, 255, 255, 0.05);
}

/* Navbar Auth Buttons */
#auth-logged-out,
#auth-logged-in {
    display: none;
}

.auth-btn {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: var(--fg-white);
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.auth-btn:hover {
    border-color: var(--lime-main);
    box-shadow: 0 0 10px var(--lime-main);
}

.auth-btn-primary {
    background: var(--lime-main);
    color: var(--theme-bg-surface);
    border-color: var(--lime-main);
}

.auth-btn-primary:hover {
    background: var(--theme-accent-blue) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 15px var(--theme-accent-blue);
    border-color: var(--theme-accent-blue) !important;
}

/* Header Adjustments */
header.profile-topbar {
    height: 80px;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}



/* Lang Switcher Base */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: bold;
}

/* Lang Dropdown */
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    width: 140px;
    display: none;
    z-index: 1000;
    margin-top: 10px;
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lang-dropdown.show {
    display: block !important;
}

.lang-dropdown div {
    padding: 8px 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
    color: var(--fg-muted);
}

.lang-dropdown div:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--fg-white);
}

/* ========== ACCOUNT SETTINGS MODAL ========== */
.settings-modal {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.settings-modal h2 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    letter-spacing: 3px;
    color: var(--lime-main);
    margin: 0 0 0.5rem;
    text-transform: uppercase;
}

.settings-modal .settings-subtitle {
    font-size: 0.8rem;
    color: var(--fg-muted);
    margin-bottom: 1.5rem;
}

.settings-section {
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}

.settings-section:hover {
    border-color: rgba(255, 214, 31, 0.25);
}

.settings-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.settings-section-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--fg-white);
    text-transform: uppercase;
}

.settings-section-icon {
    color: var(--fg-muted);
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.settings-section.open .settings-section-icon {
    transform: rotate(180deg);
}

.settings-section-body {
    display: none;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.settings-section.open .settings-section-body {
    display: block;
}

.settings-modal input {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    color: #FFFFFF;
    font-family: var(--font-body);
    border-radius: 4px;
    outline: none;
    font-size: 0.85rem;
}

.settings-modal input:focus {
    border-color: var(--lime-main);
}

.settings-modal label {
    display: block;
    font-size: 0.75rem;
    color: var(--fg-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    border: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.settings-btn-primary {
    background: var(--lime-main);
    color: var(--theme-bg-surface);
}

.settings-btn-primary:hover {
    background: var(--theme-accent-blue) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 15px var(--theme-accent-blue);
    transform: translateY(-1px);
}

.settings-btn-danger {
    background: transparent;
    border: 1px solid var(--theme-accent-red);
    color: var(--theme-accent-red);
}

.settings-btn-danger:hover {
    background: rgba(255, 74, 74, 0.1);
}

.settings-msg {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    display: none;
}

.settings-msg.success {
    display: block;
    color: var(--lime-main);
    background: rgba(255, 214, 31, 0.08);
    border: 1px solid rgba(255, 214, 31, 0.2);
}

.settings-msg.error {
    display: block;
    color: var(--theme-accent-red);
    background: rgba(255, 74, 74, 0.08);
    border: 1px solid rgba(255, 74, 74, 0.2);
}

.settings-close-link {
    display: block;
    text-align: center;
    margin-top: 1.25rem;
    color: var(--fg-muted);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.settings-close-link:hover {
    color: var(--fg-white);
}

.auth-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 0.35rem 0;
}