/*
 * RUSTEAM - Team Finding Platform
 * Brand Design System
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors */
    --valencia: #F47A20;
    --valencia-dark: #C95E0F;
    --valencia-light: #FFA14D;

    --nugget: #F5A623;
    --nugget-dark: #cc861c;
    --nugget-light: #ffba4d;

    --astral: #3A6EA5;
    --astral-dark: #2f5b88;
    --astral-light: #4C82BF;

    /* Background shades */
    --bg-main: #3A3A3A;
    --bg-dark: #2F2F2F;
    --bg-darker: #262626;
    --bg-darkest: #1A1A1A;
    --bg-light: #505050;
    --bg-lighter: #666666;
    --bg-card: #242424;

    /* Semantic aliases (for component consistency) */
    --background: #1A1A1A;
    --surface: #242424;
    --border: #4B4B4B;
    --accent: #F47A20;
    --accent-secondary: #C09724;
    --success: #4ade80;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --text-muted: #888888;

    /* Status */
    --online-green: #4ade80;
    --offline-gray: #666666;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    background: var(--bg-darkest);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    line-height: 1.6;
    font-size: 14px;
}

/* Main content area */
main {
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
    padding-top: calc(94px + var(--announcement-offset, 0px)); /* Space for announcement + fixed nav + partners banner */
}

main.no-partners {
    padding-top: calc(60px + var(--announcement-offset, 0px));
}

/* On pages that show the partners banner (home/donate), avoid an extra black gap.
   Those pages handle content spacing internally (e.g. hero/page-header). */
main.with-partners {
    padding-top: 0;
}

/* Subtle grid pattern overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.02;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--valencia-dark);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--valencia);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

/* Navigation */
.nav {
    position: fixed;
    top: var(--announcement-offset, 0px);
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(31, 31, 31, 0.95);
    border-bottom: 1px solid #E25822;
    backdrop-filter: blur(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    box-shadow: none;
    object-fit: contain;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: transparent;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--valencia);
    box-shadow: none;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(90deg, #E25822 0%, #F47A20 55%, #CD412B 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.02em;
}

.logo-text span {
    color: inherit;
}

.nav-links {
    display: flex;
    gap: var(--space-sm);
    list-style: none;
    flex-shrink: 1;
    flex-wrap: nowrap;
    align-items: center;
    height: 44px;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    padding: var(--space-sm) var(--space-md);
    position: relative;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 36px;
    line-height: 1;
}

/* Nav dropdown for Tools menu */
.nav-dropdown-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    height: 36px;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    background: rgba(38, 38, 38, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 100;
    margin-top: var(--space-xs);
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover {
    background: rgba(244, 122, 32, 0.15);
    color: var(--valencia-light);
}

.nav-dropdown-menu a.active {
    color: var(--valencia);
    background: rgba(244, 122, 32, 0.1);
}

.nav-links a:hover {
    color: var(--valencia-light);
    background: rgba(244, 122, 32, 0.1);
    text-shadow: 0 0 8px rgba(244, 122, 32, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--valencia);
    transition: width 0.3s ease;
    border-radius: 1px;
}

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

/* Nav Plus highlight */
.nav-links a.nav-plus {
    color: var(--nugget);
    background: linear-gradient(135deg, rgba(192, 151, 36, 0.15) 0%, rgba(192, 151, 36, 0.05) 100%);
    border: 1px solid rgba(192, 151, 36, 0.3);
}

.nav-links a.nav-plus:hover {
    background: linear-gradient(135deg, rgba(192, 151, 36, 0.25) 0%, rgba(192, 151, 36, 0.1) 100%);
    color: var(--nugget-light);
    text-shadow: 0 0 12px rgba(192, 151, 36, 0.6);
}

/* Plus button active state - gold instead of red */
.nav-links a.nav-plus.active-gold {
    color: var(--nugget);
    background: linear-gradient(135deg, rgba(192, 151, 36, 0.25) 0%, rgba(192, 151, 36, 0.15) 100%);
    text-shadow: 0 0 12px rgba(192, 151, 36, 0.7), 0 0 24px rgba(192, 151, 36, 0.4);
    box-shadow: inset 0 0 12px rgba(192, 151, 36, 0.3);
    border-color: rgba(192, 151, 36, 0.6);
}

.nav-links a.nav-plus.active-gold::after {
    background: var(--nugget);
    box-shadow: 0 0 8px var(--nugget);
}

/* Nav Support link */
.nav-links a.nav-support {
    color: var(--valencia);
    background: linear-gradient(135deg, rgba(244, 122, 32, 0.15) 0%, rgba(244, 122, 32, 0.05) 100%);
    border: 1px solid rgba(244, 122, 32, 0.3);
}

.nav-links a.nav-support:hover {
    background: linear-gradient(135deg, rgba(244, 122, 32, 0.25) 0%, rgba(244, 122, 32, 0.1) 100%);
    color: #ff6b5a;
    text-shadow: 0 0 12px rgba(244, 122, 32, 0.6);
}

/* Nav dropdown trigger chevron */
.nav-dropdown-trigger svg {
    transition: transform 0.2s ease;
}

.nav-dropdown-wrapper:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu a::after {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: var(--radius-sm);
}

.btn-primary {
    background: linear-gradient(135deg, var(--valencia) 0%, var(--valencia-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(244, 122, 32, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 122, 32, 0.4);
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 2px solid var(--bg-lighter);
}

.btn-secondary:hover {
    border-color: var(--valencia);
    background: var(--bg-main);
}

.btn-steam {
    background: linear-gradient(135deg, #1b2838 0%, #0f171e 100%);
    color: #66c0f4;
    border: 2px solid #66c0f4;
}

.btn-steam:hover {
    background: #66c0f4;
    color: #1b2838;
}

.btn-gold {
    background: linear-gradient(135deg, var(--nugget) 0%, var(--nugget-dark) 100%);
    color: var(--bg-darkest);
    box-shadow: 0 4px 15px rgba(192, 151, 36, 0.25);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 151, 36, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--space-xl) var(--space-lg);
    padding-top: calc(var(--space-xl) + 130px); /* Extra space for partners banner */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(31, 31, 31, 0.7) 0%, rgba(31, 31, 31, 0.85) 50%, rgba(31, 31, 31, 0.95) 100%),
        radial-gradient(ellipse at 30% 20%, rgba(244, 122, 32, 0.2) 0%, transparent 50%),
        url('/static/img/Rusteam/rust_202409_ttk_heroimage.jpg');
    background-size: cover;
    background-position: center top;
}

/* Accent line at top */
.hero-bg::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(244, 122, 32, 0.15);
    border: 1px solid var(--valencia-dark);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--valencia-light);
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 rgba(244, 122, 32, 0); }
    50% { box-shadow: 0 0 20px rgba(244, 122, 32, 0.2); }
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: var(--online-green);
    border-radius: 50%;
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    animation: title-reveal 0.8s ease-out;
}

@keyframes title-reveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title span {
    display: block;
    background: linear-gradient(90deg, var(--valencia) 0%, var(--nugget) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: fade-in 0.8s ease-out 0.2s both;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes toastSlide {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fade-in 0.8s ease-out 0.4s both;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    max-width: 800px;
    margin: var(--space-xl) auto 0;
    flex-wrap: wrap;
    animation: slide-up 0.8s ease-out 0.6s both;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card {
    background: var(--bg-darker);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    min-width: 180px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--valencia);
    transform: translateY(-3px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--valencia), var(--nugget));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--valencia);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--space-xs);
}

/* Features Section */
.features {
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-dark);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bg-lighter), transparent);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--astral);
    letter-spacing: 0.15em;
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-darker);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: relative;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--nugget);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--astral) 0%, var(--astral-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 12px rgba(52, 109, 165, 0.3);
}

.feature-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Player Cards Section */
.players-section {
    padding: var(--space-xl) var(--space-lg);
    background: var(--bg-darkest);
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.player-card {
    background: var(--bg-darker);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--valencia);
}

.player-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-dark);
    border-bottom: 1px solid var(--bg-light);
}

.player-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    border: 2px solid var(--bg-lighter);
    background: var(--bg-main);
    object-fit: cover;
    transition: border-color 0.3s ease;
}

.player-card:hover .player-avatar {
    border-color: var(--valencia);
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.player-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--offline-gray);
}

.player-status.online {
    background: var(--online-green);
    box-shadow: 0 0 10px var(--online-green);
}

.player-hours {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.player-hours span {
    color: var(--nugget);
    font-weight: 700;
}

.player-body {
    padding: var(--space-md);
}

.player-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.tag {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(52, 109, 165, 0.2);
    border: 1px solid var(--astral-dark);
    border-radius: var(--radius-sm);
    color: var(--astral-light);
}

.tag.role {
    background: rgba(192, 151, 36, 0.2);
    border-color: var(--nugget-dark);
    color: var(--nugget-light);
}

.tag.playstyle {
    background: rgba(244, 122, 32, 0.15);
    border-color: var(--valencia-dark);
    color: var(--valencia-light);
}

.player-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--bg-light);
}

.player-stat {
    text-align: center;
}

.player-stat-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
}

.player-stat-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.player-actions {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-dark);
}

.player-actions .btn {
    flex: 1;
    justify-content: center;
    padding: var(--space-sm);
    font-size: 0.7rem;
}

/* Filters */
.filters {
    max-width: 1400px;
    margin: 0 auto var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-darker);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-md);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--bg-light);
}

.filters-title {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.filters-title::before {
    content: '◆';
    color: var(--valencia);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.filter-group {
    position: relative;
}

.filter-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-dark);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    transition: border-color 0.2s ease;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--valencia);
}

.filter-group select option {
    background: var(--bg-darker);
}

/* CTA Section */
.cta-section {
    padding: var(--space-lg) var(--space-lg);
    background:
        linear-gradient(180deg, rgba(31, 31, 31, 0.9) 0%, rgba(45, 45, 45, 0.95) 100%),
        url('/static/img/Rusteam/rust_frontiersman_hero_22.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    position: relative;
}

.cta-box {
    max-width: 650px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--bg-darker);
    border: 2px solid var(--valencia-dark);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--valencia), var(--nugget), var(--astral));
}

.cta-title {
    font-size: 2rem;
    margin-bottom: var(--space-md);
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    padding: var(--space-lg);
    background: var(--bg-darkest);
    border-top: 1px solid var(--bg-light);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s ease;
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 1px;
}

/* Hamburger animation when active */
.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
    }

    .nav {
        padding: var(--space-sm) var(--space-md);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: auto !important;
        background: #1a1a1a;
        border-bottom: 2px solid var(--valencia);
        flex-direction: column;
        padding: var(--space-sm) 0;
        gap: 0;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.show {
        display: flex;
        animation: slideDown 0.2s ease-out;
    }

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

    .nav-links li,
    .nav-links li.nav-dropdown-wrapper {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        display: block !important;
        height: auto !important;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 20px;
        font-size: 1.1rem;
        border-radius: 0;
        color: #fff;
        letter-spacing: 0.04em;
    }

    .nav-links .nav-dropdown-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    /* Disable desktop hover behavior on mobile */
    .nav-dropdown-wrapper:hover .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    /* Mobile dropdown - accordion behavior (works reliably on touch browsers) */
    .nav-dropdown-wrapper .nav-dropdown-menu {
        display: block;
        position: static;
        background: #141414;
        border: none;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        margin: 0;
        min-width: auto;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.22s ease;
    }

    .nav-dropdown-wrapper.open .nav-dropdown-menu {
        max-height: 320px;
    }

    .nav-dropdown-wrapper .nav-dropdown-menu a {
        padding: 14px 20px 14px 36px;
        font-size: 1.05rem;
        color: #ddd;
        border-left: 3px solid transparent;
        background: rgba(0, 0, 0, 0.25);
        display: block;
    }

    .nav-dropdown-wrapper .nav-dropdown-menu a:hover,
    .nav-dropdown-wrapper .nav-dropdown-menu a.active {
        border-left-color: var(--valencia);
        color: #fff;
        background: rgba(244, 122, 32, 0.12);
    }

    .nav-dropdown-trigger svg {
        transition: transform 0.2s ease;
    }

    .nav-dropdown-wrapper.open .nav-dropdown-trigger svg {
        transform: rotate(180deg);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.active {
        background: rgba(244, 122, 32, 0.2);
        border-left: 3px solid var(--valencia);
        color: #fff;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.06);
        color: #fff;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .user-info-compact,
    .dropdown-chevron {
        display: none !important;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }
}

/* Utility classes */
.text-valencia { color: var(--valencia); }
.text-nugget { color: var(--nugget); }
.text-astral { color: var(--astral); }
.text-muted { color: var(--text-muted); }
.bg-darker { background: var(--bg-darker); }

/* =====================================================
   ADDITIONAL COMPONENTS
   ===================================================== */

/* Nav Actions */
.nav-actions {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
    align-items: center;
}

.btn-sm {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.75rem;
}

/* Responsive nav - large screens */
@media (max-width: 1280px) {
    .nav-links {
        gap: var(--space-sm);
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: var(--space-xs) var(--space-sm);
    }
}

/* Responsive nav - medium screens */
@media (max-width: 1100px) {
    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        font-size: 0.65rem;
        padding: var(--space-xs) 4px;
    }

    .user-info-compact {
        display: none;
    }

    .user-menu-btn {
        padding: 4px 8px 4px 4px;
    }

    .dropdown-chevron {
        display: none;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }
}

.nav-links a.active {
    color: var(--valencia);
    background: rgba(244, 122, 32, 0.15);
    text-shadow: 0 0 12px rgba(244, 122, 32, 0.7), 0 0 24px rgba(244, 122, 32, 0.4);
    box-shadow: inset 0 0 12px rgba(244, 122, 32, 0.2);
}

.nav-links a.active::after {
    width: 80%;
    background: var(--valencia);
    box-shadow: 0 0 8px var(--valencia);
}

/* =====================================================
   PARTNERS & SPONSORS BANNER
   ===================================================== */

.partners-banner {
    position: fixed;
    top: calc(var(--announcement-offset, 0px) + var(--nav-height, 60px) - 1px);
    left: 0;
    right: 0;
    z-index: 999;
    background: #232323;
    border-top: none;
    border-bottom: 1px solid #E25822;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-height: 42px;
    overflow: hidden;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hide sub-pixel seam between fixed header and partners banner on tablets/mobile */
.partners-banner::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -2px;
    height: 2px;
    background: #232323;
    pointer-events: none;
}

.partners-banner.banner-hidden {
    transform: translateY(calc(-100% - 70px));
}

.partners-label {
    color: white;
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    margin: 0 !important;
    padding: 7px 0 0 0 !important;
    height: 16px;
    line-height: 9px;
    text-align: center;
}

.partners-track-wrapper {
    overflow: hidden;
    width: 100%;
    margin-top: 0 !important;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    line-height: 0;
    height: 40px;
}

.partners-track {
    display: flex;
    align-items: center;
    line-height: 0;
    height: 40px;
    width: max-content;
    will-change: transform;
    animation: partnersScroll 60s linear infinite;
    white-space: nowrap;
}

.partner-item,
.partner-item:link,
.partner-item:visited,
.partner-item:hover,
.partner-item:active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 var(--space-lg);
    text-decoration: none !important;
    border-bottom: none !important;
    color: inherit;
    transition: all 0.2s ease;
    opacity: 1;
}

.partner-item:hover {
    transform: scale(1.05);
    text-decoration: none !important;
}

.partner-item img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    object-fit: cover;
    filter: none;
    transition: all 0.2s ease;
    border: 2px solid rgba(192, 151, 36, 0.3);
}

.partner-item:hover img {
    filter: grayscale(0%);
    border-color: var(--nugget);
    box-shadow: 0 0 10px rgba(192, 151, 36, 0.4);
}

.partner-name {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.partner-item:hover .partner-name {
    color: var(--nugget);
}

.partner-separator {
    color: #E25822;
    font-size: 0.5rem;
    opacity: 0.8;
}

@keyframes partnersScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--partners-shift, 50%)));
    }
}

.partners-banner:hover .partners-track {
    animation-play-state: paused;
}

/* Tablet: force single compact partner row (no label row/gap) */
@media (max-width: 1024px) {
    .partners-track-wrapper {
        margin-top: 0 !important;
        height: 38px;
    }
    .partners-track {
        height: 38px;
    }
    .partner-item {
        height: 38px;
    }
}

/* Partners banner responsive adjustments */
@media (max-width: 768px) {
    .partners-track-wrapper {
        margin-top: 0 !important;
        height: 36px;
    }
    .partners-track {
        height: 36px;
    }
    .partners-banner.banner-hidden {
        transform: translateY(calc(-100% - 80px));
    }
    main {
        padding-top: 108px;
    }
    main.no-partners {
        padding-top: 68px;
    }
    main.with-partners {
        padding-top: 0;
    }
}

@media (max-width: 480px) {
    .partners-banner { padding: 0; }
    .partners-banner.banner-hidden {
        transform: translateY(calc(-100% - 75px));
    }
    .partner-name {
        display: none;
    }
    .partner-item img {
        height: 26px;
        width: 26px;
    }
    .partner-item {
        height: 34px;
    }
    main {
        padding-top: 98px;
    }
    main.no-partners {
        padding-top: 64px;
    }
    main.with-partners {
        padding-top: 0;
    }
}

/* =====================================================
   NOTIFICATION BELL
   ===================================================== */

.notification-bell {
    position: relative;
    margin-right: 12px;
}

.discord-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.22) 0%, rgba(45, 45, 45, 0.95) 100%);
    border: 1px solid rgba(88, 101, 242, 0.55);
    border-radius: 50%;
    color: #cfd4ff;
    text-decoration: none;
    transition: all 0.25s ease;
}

.discord-nav-btn:hover {
    transform: translateY(-1px);
    color: #ffffff;
    border-color: #5865F2;
    box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.16);
}

.notification-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(35, 35, 35, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-secondary);
    position: relative;
}

.notification-btn:hover {
    background: linear-gradient(135deg, rgba(55, 55, 55, 0.95) 0%, rgba(45, 45, 45, 1) 100%);
    border-color: rgba(244, 122, 32, 0.5);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.notification-btn.active {
    background: linear-gradient(135deg, rgba(244, 122, 32, 0.15) 0%, rgba(45, 45, 45, 1) 100%);
    border-color: var(--valencia);
    color: var(--valencia);
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 340px;
    max-height: 400px;
    background: linear-gradient(135deg, rgba(38, 38, 38, 0.98) 0%, rgba(28, 28, 28, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.notification-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
}

.mark-all-read {
    background: none;
    border: none;
    color: var(--valencia);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.mark-all-read:hover {
    background: rgba(244, 122, 32, 0.1);
}

.notification-list {
    max-height: 320px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.notification-item.unread {
    background: rgba(244, 122, 32, 0.05);
    border-left: 3px solid var(--valencia);
}

.notification-item.unread:hover {
    background: rgba(244, 122, 32, 0.1);
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--valencia) 0%, var(--valencia-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-avatar-icon {
    color: white;
    font-size: 1rem;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    line-height: 1.3;
}

.notification-message {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.notification-empty span {
    display: block;
}

/* =====================================================
   USER MENU - Spectacular Logged In State
   ===================================================== */

.user-menu {
    position: relative;
}

/* Main Button */
.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(45, 45, 45, 0.9) 0%, rgba(35, 35, 35, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-primary);
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.user-menu-btn:hover {
    background: linear-gradient(135deg, rgba(55, 55, 55, 0.95) 0%, rgba(45, 45, 45, 1) 100%);
    border-color: rgba(244, 122, 32, 0.5);
    box-shadow: 0 4px 20px rgba(244, 122, 32, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.user-menu-btn.active {
    background: linear-gradient(135deg, rgba(244, 122, 32, 0.15) 0%, rgba(45, 45, 45, 1) 100%);
    border-color: var(--valencia);
    box-shadow: 0 4px 24px rgba(244, 122, 32, 0.3);
}

/* Avatar Wrapper */
.user-avatar-wrapper {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--valencia) 0%, var(--nugget) 100%);
    padding: 2px;
    flex-shrink: 0;
}

.user-avatar-wrapper.premium,
.user-avatar-wrapper.plus {
    background: linear-gradient(135deg, var(--nugget) 0%, #FFD700 50%, var(--nugget-light) 100%);
    animation: plusGlow 3s ease-in-out infinite;
}

@keyframes plusGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(192, 151, 36, 0.4); }
    50% { box-shadow: 0 0 16px rgba(192, 151, 36, 0.7); }
}

/* Legacy alias */
@keyframes premiumGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(192, 151, 36, 0.4); }
    50% { box-shadow: 0 0 16px rgba(192, 151, 36, 0.7); }
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: var(--valencia);
    text-transform: uppercase;
}

.online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--online-green);
    border: 2px solid var(--bg-darker);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--online-green);
}

/* User Info */
.user-info-compact {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.user-name {
    font-size: 0.8rem;
    font-weight: 700;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.premium-tag,
.plus-tag {
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--nugget) 0%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dropdown-chevron {
    opacity: 0.5;
    transition: all 0.3s ease;
    margin-left: 2px;
}

.user-menu-btn:hover .dropdown-chevron {
    opacity: 0.8;
}

.user-menu-btn.active .dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* =====================================================
   DROPDOWN MENU - Spectacular Design
   ===================================================== */

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    background: linear-gradient(180deg, rgba(35, 35, 35, 0.98) 0%, rgba(28, 28, 28, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    z-index: 1000;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: rgba(35, 35, 35, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Dropdown Header */
.dropdown-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(244, 122, 32, 0.1) 0%, rgba(192, 151, 36, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-avatar-wrapper {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--valencia) 0%, var(--nugget) 100%);
    padding: 3px;
    flex-shrink: 0;
}

.dropdown-avatar-wrapper.premium,
.dropdown-avatar-wrapper.plus {
    background: linear-gradient(135deg, var(--nugget) 0%, #FFD700 50%, var(--nugget-light) 100%);
    box-shadow: 0 0 20px rgba(192, 151, 36, 0.4);
}

.dropdown-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.avatar-fallback-lg {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: var(--valencia);
    text-transform: uppercase;
}

.dropdown-user-info {
    flex: 1;
    min-width: 0;
}

.dropdown-username {
    font-weight: 800;
    font-size: 1rem;
    display: block;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-pill svg {
    color: var(--valencia);
    width: 8px;
    height: 8px;
}

.stat-pill.premium,
.stat-pill.plus {
    background: linear-gradient(135deg, rgba(192, 151, 36, 0.2) 0%, rgba(255, 215, 0, 0.15) 100%);
    color: var(--nugget-light);
}

/* Menu Items */
.dropdown-menu-items {
    padding: 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 10px;
    margin-bottom: 2px;
}

.dropdown-item svg {
    opacity: 0.6;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    transform: translateX(4px);
}

.dropdown-item:hover svg {
    opacity: 1;
    color: var(--valencia);
}

/* Plus Upgrade Link */
.dropdown-item.premium-upgrade,
.dropdown-item.plus-upgrade {
    background: linear-gradient(135deg, rgba(192, 151, 36, 0.1) 0%, rgba(255, 215, 0, 0.05) 100%);
    color: var(--nugget);
    border: 1px solid rgba(192, 151, 36, 0.2);
}

.dropdown-item.premium-upgrade svg,
.dropdown-item.plus-upgrade svg {
    opacity: 1;
    color: var(--nugget);
}

.dropdown-item.premium-upgrade:hover,
.dropdown-item.plus-upgrade:hover {
    background: linear-gradient(135deg, rgba(192, 151, 36, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-color: var(--nugget);
    color: var(--nugget-light);
    box-shadow: 0 4px 20px rgba(192, 151, 36, 0.2);
}

/* Footer / Logout */
.dropdown-footer {
    padding: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
}

.dropdown-item.logout {
    color: var(--text-muted);
}

.dropdown-item.logout:hover {
    background: rgba(244, 122, 32, 0.1);
    color: var(--valencia-light);
}

.dropdown-item.logout:hover svg {
    color: var(--valencia);
}

/* =====================================================
   NAV LOGIN BUTTON (Not Logged In)
   ===================================================== */

.btn-nav-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #E25822 0%, #C95E0F 100%);
    border: 1px solid #E25822;
    border-radius: 8px;
    color: #151515;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-nav-login svg {
    transition: transform 0.3s ease;
}

.btn-nav-login:hover {
    background: linear-gradient(135deg, #F47A20 0%, #E25822 100%);
    border-color: #F47A20;
    color: #0f0f0f;
    box-shadow: 0 4px 20px rgba(244, 122, 32, 0.32);
    transform: translateY(-2px);
}

.btn-nav-login:hover svg {
    transform: rotate(15deg) scale(1.1);
}

/* Enhanced Footer */
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl) var(--space-lg);
}

.footer-brand {
    max-width: 300px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
}

.footer-links-group h4 {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links-group a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: var(--space-sm);
    transition: color 0.2s ease;
}

.footer-links-group a:hover {
    color: var(--valencia);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-bottom {
    border-top: 1px solid var(--bg-light);
    padding: var(--space-lg);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Checkbox Styles */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-sm);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm);
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.2s ease;
}

.checkbox-item:hover {
    background: var(--bg-main);
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--valencia);
    cursor: pointer;
}

.checkbox-item label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    cursor: pointer;
    flex: 1;
}

/* Form Styles */
.form-section {
    margin-bottom: var(--space-xl);
}

.form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--valencia);
    border-radius: 2px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

/* Card Styles */
.card {
    background: var(--bg-darker);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.card-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--bg-light);
    background: var(--bg-dark);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.card-body {
    padding: var(--space-lg);
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-sm);
}

.badge-valencia {
    background: rgba(244, 122, 32, 0.2);
    color: var(--valencia-light);
    border: 1px solid var(--valencia-dark);
}

.badge-nugget {
    background: rgba(192, 151, 36, 0.2);
    color: var(--nugget-light);
    border: 1px solid var(--nugget-dark);
}

.badge-astral {
    background: rgba(52, 109, 165, 0.2);
    color: var(--astral-light);
    border: 1px solid var(--astral-dark);
}

.badge-premium,
.badge-plus {
    background: linear-gradient(135deg, var(--nugget) 0%, var(--nugget-dark) 100%);
    color: var(--bg-darkest);
}

.badge-online {
    background: rgba(74, 222, 128, 0.2);
    color: var(--online-green);
    border: 1px solid rgba(74, 222, 128, 0.5);
}

.badge-offline {
    background: var(--bg-light);
    color: var(--text-muted);
}

/* Plus Card Highlight */
.player-card.premium,
.player-card.plus {
    border-color: var(--nugget-dark);
    box-shadow: 0 0 20px rgba(192, 151, 36, 0.1);
}

.player-card.premium::before,
.player-card.plus::before {
    background: linear-gradient(90deg, var(--nugget), var(--nugget-dark));
}

/* Friends List */
.friend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    transition: all 0.2s ease;
}

.friend-item:hover {
    background: var(--bg-main);
}

.friend-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.friend-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--valencia);
}

.friend-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.friend-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.friend-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Giveaway Cards */
.giveaway-card {
    background: var(--bg-darker);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.3s ease;
}

.giveaway-card:hover {
    border-color: var(--nugget);
}

.giveaway-card.ended {
    opacity: 0.7;
}

.giveaway-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.giveaway-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
}

.giveaway-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.giveaway-meta span {
    display: block;
    margin-bottom: var(--space-xs);
}

/* Premium Page */
.pricing-card {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    border: 2px solid var(--nugget-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(135deg, var(--nugget) 0%, var(--nugget-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--nugget);
}

.pricing-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pricing-features {
    margin: var(--space-lg) 0;
    text-align: left;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pricing-feature::before {
    content: '✓';
    color: var(--online-green);
    font-weight: 700;
}

/* Feature Grid for Plus */
.premium-features-grid,
.plus-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.premium-feature-card,
.plus-feature-card {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    gap: var(--space-md);
}

.premium-feature-icon,
.plus-feature-icon {
    font-size: 1.5rem;
    color: var(--nugget);
}

.premium-feature-title,
.plus-feature-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.premium-feature-desc,
.plus-feature-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-darker);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bg-light);
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--valencia);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Page Header */
.page-header {
    padding: 120px var(--space-lg) var(--space-xl);
    text-align: center;
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--valencia), var(--nugget), var(--astral));
}

.page-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-sm);
}

.page-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: var(--space-xl);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    opacity: 0.5;
}

.empty-state-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.empty-state-desc {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 auto var(--space-lg);
}

/* Info Box */
.info-box {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}

.info-box h4 {
    font-size: 1rem;
    margin-bottom: var(--space-md);
}

.info-box ul {
    list-style: none;
}

.info-box li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: var(--space-xs) 0;
}

.info-box li::before {
    content: '•';
    color: var(--valencia);
    margin-right: var(--space-sm);
}

/* Two Column Layout */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-xl);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.two-col-layout.reverse {
    grid-template-columns: 350px 1fr;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Responsive for new components */
@media (max-width: 1024px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Keep nav-actions visible but compact on mobile */
    .nav-actions {
        flex-shrink: 0;
    }

    .user-info-compact {
        display: none;
    }

    .user-menu-btn {
        padding: 4px;
        border-radius: 50%;
    }

    .dropdown-chevron {
        display: none;
    }

    .btn-nav-login {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.7rem;
    }

    .btn-nav-login svg {
        width: 14px;
        height: 14px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: var(--space-lg);
    }

    .footer-brand {
        max-width: 100%;
        grid-column: 1 / -1;
    }

    .footer-links-group {
        text-align: left;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Player Card Responsive */
@media (max-width: 768px) {
    .player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }

    .player-header > div:last-child {
        width: 100%;
        display: flex;
    }

    .player-header > div:last-child .btn {
        flex: 1;
        justify-content: center;
    }

    .player-body > div:first-child {
        grid-template-columns: repeat(2, 1fr);
    }

    .player-card {
        padding: var(--space-md);
    }

    .player-info {
        width: 100%;
    }

    .player-name {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .nav {
        padding: var(--space-sm) var(--space-md);
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 250px;
    }

    .user-avatar-wrapper {
        width: 28px;
        height: 28px;
    }

    .footer-bottom {
        font-size: 0.75rem;
        padding: var(--space-md);
    }

    .player-body > div:first-child {
        grid-template-columns: 1fr;
    }

    .player-avatar {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.2rem !important;
    }

    .player-header > div:last-child .btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8rem;
    }

    .badge {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

/* ========================
   ADMIN PANEL STYLES
   ======================== */

.admin-nav {
    background: linear-gradient(180deg, var(--bg-darkest) 0%, var(--bg-darker) 100%);
    border-bottom: 2px solid var(--valencia);
}

.admin-badge {
    background: var(--valencia);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.1em;
}

.admin-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px var(--space-lg) var(--space-xl);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.admin-title {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.admin-subtitle {
    color: var(--text-muted);
}

.admin-header-actions {
    display: flex;
    gap: var(--space-sm);
}

/* Admin Stats Grid */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.admin-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.admin-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-stat-content {
    flex: 1;
}

.admin-stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
}

.admin-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-stat-change {
    font-size: 0.75rem;
    margin-top: var(--space-xs);
}

.admin-stat-change.positive {
    color: var(--online-green);
}

.admin-stat-change.negative {
    color: var(--valencia);
}

/* Admin Grid */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.admin-card {
    background: var(--bg-card);
}

/* Admin Tables */
.admin-table-container {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--bg-light);
}

.admin-table th {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: var(--bg-dark);
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--valencia) 0%, var(--valencia-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.user-avatar-sm.premium-avatar {
    box-shadow: 0 0 0 2px var(--nugget);
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.table-actions {
    display: flex;
    gap: var(--space-xs);
}

.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.btn-icon.warning:hover {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.btn-icon.danger:hover {
    background: rgba(244, 122, 32, 0.2);
    color: var(--valencia);
}

.text-muted {
    color: var(--text-muted);
}

.text-premium {
    color: var(--nugget);
    font-weight: 600;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Payment Method Badges */
.payment-method,
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.payment-method.stripe,
.payment-badge.stripe {
    background: rgba(99, 91, 255, 0.15);
    color: #635bff;
}

.payment-method.paypal,
.payment-badge.paypal {
    background: rgba(0, 48, 135, 0.15);
    color: #0070ba;
}

/* Chart Styles */
.chart-period-selector {
    display: flex;
    gap: var(--space-xs);
}

.chart-period {
    padding: var(--space-xs) var(--space-sm);
    border: none;
    background: var(--bg-dark);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chart-period:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.chart-period.active {
    background: var(--valencia);
    color: white;
}

.chart-container {
    height: 250px;
    display: flex;
    align-items: flex-end;
}

.chart-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: var(--space-md);
    width: 100%;
    height: 100%;
    padding-bottom: var(--space-lg);
}

.chart-bar-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, var(--valencia) 0%, var(--valencia-dark) 100%);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    min-height: 4px;
    transition: height 0.3s ease;
}

.chart-bar:hover {
    background: linear-gradient(180deg, var(--nugget) 0%, var(--nugget-dark) 100%);
}

.chart-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Quick Actions */
.admin-quick-actions {
    margin-top: var(--space-xl);
}

.quick-actions-title {
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-md);
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.quick-action-card:hover {
    border-color: var(--valencia);
    background: rgba(244, 122, 32, 0.05);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.quick-action-icon {
    font-size: 1.5rem;
}

.quick-action-card span {
    font-size: 0.85rem;
    text-align: center;
}

/* Admin Filters */
.admin-filters {
    display: flex;
    gap: var(--space-md);
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-input,
.filter-select {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-dark);
    border: 1px solid var(--bg-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    min-width: 200px;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--astral);
}

/* Pagination */
.admin-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--bg-light);
}

.pagination-pages {
    display: flex;
    gap: var(--space-xs);
}

.pagination-page {
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-dark);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-page:hover {
    background: var(--bg-light);
    color: var(--text-primary);
}

.pagination-page.active {
    background: var(--valencia);
    color: white;
}

.pagination-ellipsis {
    color: var(--text-muted);
    padding: 0 var(--space-sm);
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Subscription Stats */
.payment-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.payment-method-stat {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.payment-method-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
}

.payment-method-value {
    font-size: 1.5rem;
    font-weight: 800;
}

.payment-method-bar {
    height: 8px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.payment-method-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.payment-method-fill.stripe {
    background: #635bff;
}

.payment-method-fill.paypal {
    background: #0070ba;
}

.payment-method-percent {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Subscription Status */
.sub-status-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.sub-status-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-dark);
    border-radius: var(--radius-md);
}

.sub-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.sub-status-dot.active {
    background: var(--online-green);
}

.sub-status-dot.pending {
    background: var(--nugget);
}

.sub-status-dot.cancelled {
    background: var(--valencia);
}

.sub-status-dot.expired {
    background: var(--text-muted);
}

.sub-status-label {
    flex: 1;
    color: var(--text-secondary);
}

.sub-status-value {
    font-weight: 700;
}

/* Responsive Admin */
@media (max-width: 1200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-filters {
        flex-direction: column;
    }

    .filter-input,
    .filter-select {
        width: 100%;
        min-width: auto;
    }
}

/* ============================================
   ANNOUNCEMENT BANNERS
   ============================================ */

.announcement-banner {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.announcement-content {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
}

.announcement-icon {
    font-size: 1rem;
}

.announcement-text {
    line-height: 1.4;
}

.announcement-text strong {
    font-weight: 600;
}

.announcement-dismiss {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    padding: var(--space-xs);
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
}

.announcement-dismiss:hover {
    opacity: 1;
}

/* Announcement Types */
.announcement-info {
    background: linear-gradient(90deg, rgba(52, 109, 165, 0.9) 0%, rgba(52, 109, 165, 0.8) 100%);
    color: white;
}

.announcement-warning {
    background: linear-gradient(90deg, rgba(255, 152, 0, 0.9) 0%, rgba(255, 152, 0, 0.8) 100%);
    color: #1a1a1a;
}

.announcement-success {
    background: linear-gradient(90deg, rgba(76, 175, 80, 0.9) 0%, rgba(76, 175, 80, 0.8) 100%);
    color: white;
}

.announcement-error {
    background: linear-gradient(90deg, rgba(244, 122, 32, 0.9) 0%, rgba(244, 122, 32, 0.8) 100%);
    color: white;
}

/* Announcement banner mobile responsive */
@media (max-width: 768px) {
    .announcement-banner {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.8rem;
    }
    .announcement-content {
        gap: var(--space-xs);
    }
    .announcement-text {
        line-height: 1.3;
    }
    .announcement-icon {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .announcement-banner {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }
    .announcement-text strong {
        display: block;
        margin-bottom: 2px;
    }
}

/* ============================================
   ADSENSE BLOCKS
   ============================================ */

.adsense-wrap {
    margin: var(--space-lg) auto;
    width: 100%;
    position: relative;
}

.adsense-horizontal {
    max-width: 1100px;
}

.adsense-horizontal .adsbygoogle {
    min-height: 0;
}

.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

.adsense-card {
    max-width: 100%;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
}

.adsense-card .adsbygoogle {
    min-height: 250px;
}

.adsense-footer {
    margin-top: var(--space-md);
    margin-bottom: 0;
}

.adsense-header {
    margin-top: var(--space-md);
    margin-bottom: var(--space-lg);
}

.adsense-placeholder {
    display: none;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    width: 100%;
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.adsense-vertical {
    max-width: 180px;
}

.adsense-vertical .adsbygoogle {
    min-height: 420px;
}

.adsense-vertical-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin: var(--space-md) auto var(--space-xl);
}

@media (max-width: 768px) {
    .adsense-vertical {
        max-width: 100%;
    }

    .adsense-vertical .adsbygoogle {
        min-height: 160px;
    }

    .adsense-card .adsbygoogle {
        min-height: 160px;
    }
}
