/* ============================================
   ALMA NEGRA — Dark Fantasy Theme
   Lineage 2 Interlude Private Server
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-card: rgba(18, 16, 30, 0.85);
    --bg-glass: rgba(25, 22, 45, 0.65);
    --gold: #c9a84c;
    --gold-bright: #e8c95a;
    --gold-dim: #8a7235;
    --purple: #7b2d8e;
    --purple-dark: #4a1a55;
    --purple-light: #a84dc9;
    --text: #e8e8e8;
    --text-muted: #a0a0a0;
    --danger: #8b1a1a;
    --danger-light: #c0392b;
    --success: #2d7b3a;
    --success-light: #27ae60;
    --border: rgba(201, 168, 76, 0.2);
    --border-hover: rgba(201, 168, 76, 0.5);
    --glow-gold: 0 0 20px rgba(201, 168, 76, 0.3);
    --glow-purple: 0 0 20px rgba(123, 45, 142, 0.3);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(123, 45, 142, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(123, 45, 142, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Georgia', serif;
    color: var(--gold);
    letter-spacing: 0.02em;
}

/* --- Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.badge-online { background: var(--success); color: #fff; }
.badge-offline { background: var(--danger); color: #fff; }
.badge-gm { background: var(--gold); color: #000; }
.badge-player { background: var(--purple); color: #fff; }
.badge-banned { background: var(--danger-light); color: #fff; }
.badge-admin { background: linear-gradient(135deg, var(--gold), var(--purple)); color: #fff; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Cinzel', serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dim));
    color: #000;
    box-shadow: var(--glow-gold);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    box-shadow: 0 0 30px rgba(201, 168, 76, 0.5);
    transform: translateY(-2px);
    color: #000;
}
.btn-secondary {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}
.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: var(--danger-light);
    transform: translateY(-1px);
}
.btn-success {
    background: var(--success);
    color: #fff;
}
.btn-success:hover {
    background: var(--success-light);
}
.btn-sm {
    padding: 6px 14px;
    font-size: 0.8rem;
}
.btn-icon {
    padding: 8px;
    min-width: 36px;
    justify-content: center;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
}
.card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--glow-gold);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.card-header h3 {
    font-size: 1.1rem;
}

/* --- Stat Cards --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--glow-gold);
    border-color: var(--border-hover);
}
.stat-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.stat-value {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}
.stat-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}
.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(201, 168, 76, 0.4);
    letter-spacing: 0.1em;
}
.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all var(--transition);
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}
.nav-links a:hover {
    color: var(--gold);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-admin {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    color: var(--gold) !important;
}
.nav-admin:hover {
    background: rgba(201, 168, 76, 0.2);
    border-color: var(--gold);
}
.nav-admin::after { display: none !important; }
.nav-cta {
    background: linear-gradient(135deg, var(--gold), #b8942f);
    color: #000 !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
}
.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 12px rgba(201,168,76,0.4);
}
.nav-cta::after { display: none !important; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(123, 45, 142, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 30% 70%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        var(--bg-dark);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}
.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-dim));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(201, 168, 76, 0.3));
    margin-bottom: 16px;
    line-height: 1.1;
}
.hero-subtitle {
    font-family: 'Cinzel', serif;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}
.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.hero-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
}
.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}
.status-dot.online {
    background: var(--success-light);
    box-shadow: 0 0 10px var(--success-light);
}
.status-dot.offline {
    background: var(--danger-light);
    box-shadow: 0 0 10px var(--danger-light);
    animation: none;
}

/* Floating Particles */
.particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 1;
}
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: float-up linear infinite;
}
.particle:nth-child(1)  { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2)  { left: 20%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3)  { left: 30%; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4)  { left: 40%; animation-duration: 14s; animation-delay: 1s; }
.particle:nth-child(5)  { left: 50%; animation-duration: 11s; animation-delay: 3s; }
.particle:nth-child(6)  { left: 60%; animation-duration: 13s; animation-delay: 5s; }
.particle:nth-child(7)  { left: 70%; animation-duration: 16s; animation-delay: 0.5s; }
.particle:nth-child(8)  { left: 80%; animation-duration: 12s; animation-delay: 2.5s; }
.particle:nth-child(9)  { left: 90%; animation-duration: 14s; animation-delay: 4.5s; }
.particle:nth-child(10) { left: 15%; animation-duration: 11s; animation-delay: 1.5s; }
.particle:nth-child(11) { left: 35%; animation-duration: 13s; animation-delay: 3.5s; }
.particle:nth-child(12) { left: 55%; animation-duration: 15s; animation-delay: 0.8s; }
.particle:nth-child(13) { left: 75%; animation-duration: 12s; animation-delay: 2.8s; }
.particle:nth-child(14) { left: 85%; animation-duration: 10s; animation-delay: 4.2s; }
.particle:nth-child(15) { left: 45%; animation-duration: 16s; animation-delay: 1.2s; }

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-20vh) scale(1.5);
        opacity: 0;
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}
.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.05rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.03), transparent);
    transition: left 0.6s ease;
}
.feature-card:hover::before {
    left: 100%;
}
.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--glow-gold);
}
.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}
.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Server Status Section */
.status-section {
    background:
        linear-gradient(180deg, transparent, rgba(123, 45, 142, 0.05), transparent);
}
.status-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
}
.status-card .status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.3rem;
    margin-bottom: 30px;
}
.status-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.status-detail {
    text-align: center;
}
.status-detail-value {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
}
.status-detail-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Download Section */
.download-section {
    text-align: center;
}
.download-card {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(123, 45, 142, 0.15), rgba(201, 168, 76, 0.08));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 50px 40px;
}
.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}
.download-card p {
    color: var(--text-muted);
    margin-bottom: 30px;
}
.download-badge {
    display: inline-block;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* ============================================
   NEWS SECTION
   ============================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}
.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    backdrop-filter: blur(10px);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--purple));
}
.news-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--glow-gold);
}
.news-pinned {
    border-color: var(--gold-dim);
}
.news-pinned::before {
    height: 4px;
    background: linear-gradient(90deg, var(--gold-bright), var(--gold), var(--gold-dim));
}
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.news-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(123, 45, 142, 0.15);
    border: 1px solid rgba(123, 45, 142, 0.3);
    color: var(--purple-light);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.news-date {
    color: var(--text-muted);
    font-size: 0.8rem;
}
.news-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
    line-height: 1.3;
}
.pin-badge {
    font-size: 0.7rem;
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 6px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}
.news-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 12px;
}
.news-author {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* ============================================
   RANKINGS SECTION
   ============================================ */
.rankings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.ranking-card {
    padding: 24px;
}
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ranking-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.ranking-item:hover {
    background: rgba(201, 168, 76, 0.05);
}
.ranking-pos {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 32px;
    text-align: center;
}
.ranking-item:nth-child(1) .ranking-pos { color: #ffd700; font-size: 1.3rem; }
.ranking-item:nth-child(2) .ranking-pos { color: #c0c0c0; }
.ranking-item:nth-child(3) .ranking-pos { color: #cd7f32; }
.ranking-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ranking-name {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ranking-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
}
.ranking-value {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold);
    white-space: nowrap;
}

/* Metrics Bar */
.metrics-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 30px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}
.metric {
    text-align: center;
}
.metric-value {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}
.metric-label {
    color: var(--text-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}
.metric-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ============================================
   RANKINGS PAGE (Public)
   ============================================ */
.rankings-page-header {
    padding: 120px 0 40px;
    text-align: center;
    position: relative;
    z-index: 1;
    background:
        radial-gradient(ellipse at center, rgba(123, 45, 142, 0.1) 0%, transparent 60%),
        var(--bg-dark);
}
.rankings-page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
}
.rankings-page-header p {
    color: var(--text-muted);
}
.rankings-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.rankings-tab {
    padding: 10px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.rankings-tab:hover,
.rankings-tab.active {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}
.rankings-section {
    padding: 40px 0;
    position: relative;
    z-index: 1;
}
.rankings-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}
.footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-top: 12px;
    list-style: none;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-links a:hover {
    color: var(--gold);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: rgba(12, 10, 22, 0.98);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}
.sidebar-logo {
    text-align: center;
    padding: 0 20px 24px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.sidebar-logo h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 15px rgba(201, 168, 76, 0.3);
}
.sidebar-logo small {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.sidebar-nav {
    list-style: none;
}
.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all var(--transition);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover,
.sidebar-nav a.active {
    color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
    border-left-color: var(--gold);
}
.sidebar-nav a .nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Main Content */
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    position: relative;
    z-index: 1;
}
.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.admin-header h1 {
    font-size: 1.6rem;
}
.admin-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
thead {
    background: rgba(201, 168, 76, 0.08);
}
th {
    padding: 14px 16px;
    text-align: left;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.08);
    color: var(--text);
}
tr:hover td {
    background: rgba(201, 168, 76, 0.03);
}
tr:last-child td {
    border-bottom: none;
}
.table-actions {
    display: flex;
    gap: 6px;
}

/* Search / Filter Bar */
.toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.search-input {
    flex: 1;
    min-width: 250px;
    padding: 10px 16px;
    background: rgba(18, 16, 30, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}
.search-input:focus {
    border-color: var(--gold);
}
.search-input::placeholder {
    color: var(--text-muted);
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}
.modal h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}
.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.form-control {
    width: 100%;
    padding: 10px 14px;
    background: rgba(18, 16, 30, 0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition);
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.1);
}
select.form-control {
    cursor: pointer;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at center, rgba(123, 45, 142, 0.12) 0%, transparent 60%),
        var(--bg-dark);
}
.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
    text-align: center;
}
.login-card h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.login-card .login-subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.9rem;
}
.login-error {
    background: rgba(139, 26, 26, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger-light);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.85rem;
}
.login-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* Alert Messages */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.alert-success {
    background: rgba(45, 123, 58, 0.2);
    border: 1px solid var(--success);
    color: var(--success-light);
}
.alert-error {
    background: rgba(139, 26, 26, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger-light);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}
.pagination a,
.pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.pagination a:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.1);
}
.pagination .active {
    background: var(--gold);
    color: #000;
    border-color: var(--gold);
    font-weight: 600;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: rgba(10, 10, 15, 0.98);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .hero-title { font-size: 2.8rem; }

    .features-grid,
    .news-grid,
    .rankings-grid {
        grid-template-columns: 1fr;
    }
    .status-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .metrics-bar {
        gap: 20px;
        padding: 24px 20px;
    }
    .metric-divider {
        display: none;
    }
    .metric-value {
        font-size: 1.4rem;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .admin-main {
        margin-left: 0;
        padding: 20px;
    }
    .admin-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .toolbar {
        flex-direction: column;
    }
    .search-input {
        min-width: 100%;
    }
}
