/* ============================================================
   PandoraSF Landing Page — Design System (matches shop UI)
   Dark slate glassmorphism · purple/indigo · amber gold glow
   ============================================================ */

:root {
    /* Palette (from shop) */
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;

    --purple-600: #9333ea;
    --purple-500: #a855f7;
    --indigo-600: #4f46e5;
    --indigo-500: #6366f1;

    --amber-500: #f59e0b;
    --amber-400: #fbbf24;

    --teal-400: #2dd4bf;

    /* Semantic */
    --bg-page: var(--slate-950);
    --text-main: var(--slate-200);
    --text-muted: var(--slate-400);

    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-bg-soft: rgba(15, 23, 42, 0.5);
    --glass-border: rgba(51, 65, 85, 0.5);

    --grad-purple: linear-gradient(135deg, var(--purple-600), var(--indigo-600));
    --grad-purple-hover: linear-gradient(135deg, var(--purple-500), var(--indigo-500));
    --grad-gold: linear-gradient(135deg, #d97706, var(--amber-500));
    --grad-gold-hover: linear-gradient(135deg, var(--amber-500), var(--amber-400));

    --glow-purple: 0 0 25px rgba(147, 51, 234, 0.35);
    --glow-gold: 0 0 25px rgba(245, 158, 11, 0.35);

    --radius-lg: 1rem;   /* rounded-2xl */
    --radius-md: 0.75rem;
    --radius-pill: 9999px;

    --font-body: 'Inter', sans-serif;
    --font-display: 'Poetsen One', 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: url('../img/cursor.cur'), auto;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.container--narrow { max-width: 900px; }

.text-gold   { color: var(--amber-400); }
.text-purple { color: var(--purple-500); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--slate-900); }
::-webkit-scrollbar-thumb {
    background: var(--grad-purple);
    border-radius: 10px;
    border: 2px solid var(--slate-900);
}

/* ============================================================
   SHARED GLASS CARD (shop style)
   ============================================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   BUTTONS (shop style)
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    padding: 0.7rem 1.4rem;
    font-size: 0.85rem;
    color: #fff;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
}

.btn--sm { padding: 0.5rem 1rem; font-size: 0.75rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }

.btn--primary {
    background: var(--grad-purple);
    box-shadow: 0 10px 15px -3px rgba(79, 70, 229, 0.3);
}
.btn--primary:hover {
    background: var(--grad-purple-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--glow-purple);
}

.btn--gold {
    background: var(--grad-gold);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.35);
    border-color: rgba(251, 191, 36, 0.4);
}
.btn--gold:hover {
    background: var(--grad-gold-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--glow-gold);
}

/* Amber pulse (from shop pulse-slow) */
@keyframes pulse-slow {
    0%, 100% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.25); transform: scale(1); }
    50%      { box-shadow: 0 0 40px rgba(245, 158, 11, 0.45); transform: scale(1.01); }
}
.glow-pulse { animation: pulse-slow 3s ease-in-out infinite; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav__logo { height: 52px; width: auto; transition: var(--transition); }
.nav__brand:hover .nav__logo { transform: scale(1.05); filter: drop-shadow(0 0 12px rgba(147, 51, 234, 0.5)); }

.nav__menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav__link {
    position: relative;
    padding: 0.5rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--slate-300);
    border-radius: var(--radius-pill);
    transition: var(--transition);
}
.nav__link:hover {
    color: var(--purple-500);
    background: rgba(147, 51, 234, 0.12);
}
.nav__link.is-active { color: var(--amber-400); }
.nav__link.is-active::after {
    content: '';
    position: absolute;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    width: 55%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--amber-500), transparent);
    border-radius: 2px;
}

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }

.nav__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--slate-300);
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 0.35rem 0.75rem;
}
.nav__badge i { color: var(--amber-400); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
}
.nav__toggle span {
    width: 24px; height: 2px;
    background: var(--slate-200);
    border-radius: 2px;
    transition: var(--transition);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../img/bg.png') center / cover no-repeat fixed;
    padding: 7rem 0 4rem;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(147, 51, 234, 0.15), transparent 60%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.75) 0%, rgba(2, 6, 23, 0.55) 45%, var(--slate-950) 100%);
}

.hero__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__logo {
    max-height: 170px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.6));
    animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 400;
    line-height: 1.15;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    max-width: 850px;
    margin-bottom: 2.2rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.4rem;
}

.hero__servers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
}

.server-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-200);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 0.45rem 1rem;
    backdrop-filter: blur(8px);
    transition: var(--transition);
}
.server-chip:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.3);
    transform: translateY(-2px);
}
.server-chip--gold { color: var(--amber-400); border-color: rgba(245, 158, 11, 0.35); }
.server-chip--gold:hover { border-color: var(--amber-400); box-shadow: 0 0 15px rgba(245, 158, 11, 0.3); }

/* Selectable chip (button) — hero server picker */
.server-chip--select {
    font: inherit;
    cursor: pointer;
}
.server-chip--select.is-active {
    color: var(--amber-400);
    border-color: rgba(251, 191, 36, 0.7);
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
    transform: translateY(-2px);
}

/* Live online-count badge inside hero chips */
.server-chip__count {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: var(--radius-pill);
    padding: 0.12rem 0.55rem;
    margin-left: 0.15rem;
    border: 1px solid transparent;
    transition: var(--transition);
}
.server-chip__count.is-loading {
    color: var(--slate-400);
    background: rgba(51, 65, 85, 0.5);
    border-color: var(--glass-border);
    animation: count-pulse 1.2s ease-in-out infinite;
}
.server-chip__count.is-online {
    color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.35);
}
.server-chip__count.is-offline {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.35);
}
@keyframes count-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.35; }
}

.server-chip__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.server-chip__dot--green  { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.server-chip__dot--purple { background: var(--purple-500); box-shadow: 0 0 8px var(--purple-500); }
.server-chip__dot--teal   { background: var(--teal-400); box-shadow: 0 0 8px var(--teal-400); }
.server-chip__dot--offline { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

.hero__scroll {
    position: absolute;
    bottom: 1.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    color: var(--slate-400);
    font-size: 1.2rem;
    animation: bounce-soft 2s infinite;
    transition: var(--transition);
}
.hero__scroll:hover { color: var(--amber-400); }
@keyframes bounce-soft {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 8px); }
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: 5.5rem 0; position: relative; }

.section--alt {
    background:
        radial-gradient(ellipse at 20% 0%, rgba(147, 51, 234, 0.07), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(79, 70, 229, 0.07), transparent 55%),
        rgba(15, 23, 42, 0.45);
    border-top: 1px solid rgba(51, 65, 85, 0.3);
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.section__head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 3rem;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--purple-500);
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.35rem 1rem;
    margin-bottom: 1rem;
}

.section__title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 400;
    color: #fff;
    margin-bottom: 0.8rem;
}

.section__desc { color: var(--text-muted); font-size: 1rem; }

/* ============================================================
   SERVER SELECTOR (unified tabs — drives Play Now + data)
   ============================================================ */
.server-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.25rem;
}

.server-selector__label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.server-selector__label i { color: var(--amber-400); }

.server-selector__tabs {
    display: inline-flex;
    gap: 0.35rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 0.35rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.server-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-300);
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.server-tab:hover { background: rgba(147, 51, 234, 0.15); color: #fff; }
.server-tab.is-active {
    background: var(--grad-purple);
    color: #fff;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.45);
}

/* ============================================================
   NEWS
   ============================================================ */
.news__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--glass-bg-soft);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}
.news-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--purple-600), var(--amber-500));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
    z-index: 1;
}
.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(147, 51, 234, 0.18);
}
.news-card:hover::before { transform: scaleX(1); }

.news-card__image {
    width: 100%;
    height: 160px;
    object-fit: cover;
    filter: brightness(0.85);
    transition: var(--transition);
}
.news-card:hover .news-card__image { filter: brightness(1); }

.news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.4rem 1.5rem 1.5rem;
}

.news-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--amber-400);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.7rem;
}

.news-card__tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--purple-500);
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.7rem;
}

.news-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.news-card__excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
    margin-bottom: 1.1rem;
}

.news-card__btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--purple-500);
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.35);
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.news-card__btn:hover {
    color: #fff;
    background: var(--grad-purple);
    border-color: transparent;
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

/* Loading / status boxes */
.loading-box,
.status-box {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--glass-bg-soft);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
}
.loading-box i { color: var(--amber-400); margin-right: 0.4rem; }
.status-box--error { color: #f87171; border-color: rgba(248, 113, 113, 0.35); }
.status-box i { margin-right: 0.4rem; }

/* Pagination */
.news__pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 2.25rem;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-300);
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    padding: 0 0.6rem;
}
.page-btn:hover { border-color: rgba(168, 85, 247, 0.55); color: #fff; transform: translateY(-2px); }
.page-btn.is-active {
    background: var(--grad-purple);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 15px rgba(147, 51, 234, 0.4);
}

/* ============================================================
   RANKINGS
   ============================================================ */
.rankings__toggle {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
}

.rankings-type {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--slate-300);
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}
.rankings-type:hover { border-color: rgba(245, 158, 11, 0.45); color: #fff; }
.rankings-type.is-active {
    background: var(--grad-gold);
    border-color: rgba(251, 191, 36, 0.5);
    color: #fff;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

.rankings__panel { display: none; overflow: hidden; }
.rankings__panel.is-active { display: block; animation: panel-fade 0.4s ease; }
@keyframes panel-fade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.table-wrap { overflow-x: auto; }

.rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 560px;
}

.rank-table th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--slate-300);
    text-align: left;
    background: rgba(147, 51, 234, 0.14);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.9rem 1.25rem;
    white-space: nowrap;
}

.rank-table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
    color: var(--slate-200);
    white-space: nowrap;
}

.rank-table tbody tr { transition: background 0.2s ease; }
.rank-table tbody tr:nth-child(even) { background: rgba(30, 41, 59, 0.35); }
.rank-table tbody tr:hover { background: rgba(147, 51, 234, 0.14); }

.rank-col { width: 70px; }
.num-col { text-align: right; }
.rank-table th.num-col { text-align: right; }

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate-300);
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0 0.45rem;
}
.rank-badge--1 {
    color: #1a1207;
    background: linear-gradient(135deg, #fde68a, var(--amber-500));
    border-color: rgba(251, 191, 36, 0.7);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.5);
}
.rank-badge--2 {
    color: #0f172a;
    background: linear-gradient(135deg, #f1f5f9, #94a3b8);
    border-color: rgba(203, 213, 225, 0.6);
    box-shadow: 0 0 12px rgba(203, 213, 225, 0.35);
}
.rank-badge--3 {
    color: #1a1207;
    background: linear-gradient(135deg, #d8a37a, #b45309);
    border-color: rgba(180, 83, 9, 0.6);
    box-shadow: 0 0 12px rgba(180, 83, 9, 0.4);
}

.class-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
}
.class-cell img {
    width: 30px; height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(147, 51, 234, 0.45);
    box-shadow: 0 0 8px rgba(147, 51, 234, 0.3);
}

.guild-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--purple-500);
    background: rgba(147, 51, 234, 0.1);
    border: 1px solid rgba(147, 51, 234, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.15rem 0.65rem;
}
.guild-tag--none {
    color: var(--slate-400);
    background: rgba(30, 41, 59, 0.5);
    border-color: var(--glass-border);
}

.table-status {
    text-align: center;
    color: var(--text-muted);
    padding: 2.25rem 1rem !important;
}
.table-status i { color: var(--amber-400); margin-right: 0.4rem; }
.table-status--error { color: #f87171; }
.table-status--error i { color: #f87171; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.accordion__item {
    background: var(--glass-bg-soft);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}
.accordion__item:hover { border-color: rgba(168, 85, 247, 0.4); }
.accordion__item.is-open {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.12);
}

.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--slate-200);
    background: none;
    border: none;
    padding: 1.15rem 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}
.accordion__trigger:hover { color: var(--amber-400); }
.accordion__item.is-open .accordion__trigger { color: var(--amber-400); }

.accordion__icon {
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--purple-500);
    transition: transform 0.35s ease;
}
.accordion__item.is-open .accordion__icon { transform: rotate(180deg); color: var(--amber-400); }

.accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion__content {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding: 0 1.4rem 1.3rem;
    border-top: 1px solid rgba(51, 65, 85, 0.3);
    padding-top: 1rem;
    margin: 0 0.2rem;
}
.accordion__content strong { color: var(--amber-400); }

.accordion__img {
    margin-top: 0.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

/* ============================================================
   RULES
   ============================================================ */
.rules__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.rule-card {
    background: var(--glass-bg-soft);
    backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.6rem 1.4rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.rule-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--amber-500), var(--purple-600));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.rule-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.5), 0 0 18px rgba(147, 51, 234, 0.15);
}
.rule-card:hover::before { transform: scaleX(1); }

.rule-card__head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.rule-card__num {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--amber-400);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    min-width: 46px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
    flex-shrink: 0;
}

.rule-card__head h3 {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
}
.rule-card__head h3 i { color: var(--purple-500); margin-right: 0.4rem; }

.rule-card__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.rule-card__list li {
    position: relative;
    font-size: 0.87rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 1.1rem;
}
.rule-card__list li::before {
    content: '';
    position: absolute;
    left: 0; top: 0.55em;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--amber-500);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
    position: relative;
    padding: 6rem 0;
    background: url('../img/bg.png') center / cover no-repeat fixed;
}
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(147, 51, 234, 0.2), transparent 65%),
        linear-gradient(180deg, var(--slate-950) 0%, rgba(2, 6, 23, 0.7) 50%, var(--slate-950) 100%);
}

.cta__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
}
.cta__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
    margin-bottom: 0.8rem;
}
.cta__text { color: var(--slate-300); margin-bottom: 2rem; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8); }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: rgba(2, 6, 23, 0.9);
    border-top: 1px solid var(--glass-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
}

.footer__logo { height: 60px; width: auto; margin-bottom: 1rem; }
.footer__text { font-size: 0.88rem; color: var(--text-muted); max-width: 300px; }

.footer__col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--amber-400);
    margin-bottom: 1rem;
}
.footer__col a {
    display: block;
    font-size: 0.88rem;
    color: var(--text-muted);
    padding: 0.28rem 0;
    transition: var(--transition);
}
.footer__col a:hover { color: var(--purple-500); transform: translateX(4px); }

.footer__status {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.28rem 0;
}
.footer__status-body {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}
.footer__status-text { color: var(--slate-300); }
.footer__status-sub {
    font-size: 0.72rem;
    color: var(--slate-400);
    opacity: 0.85;
}

.footer__bottom { border-top: 1px solid rgba(51, 65, 85, 0.35); padding: 1.25rem 0; }
.footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--slate-400);
}
.footer__disclaimer { opacity: 0.7; }

/* ============================================================
   MODAL (custom, shop glass style)
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.is-open { visibility: visible; opacity: 1; }

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(6px);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.35s ease;
}
.modal.is-open .modal__dialog { transform: translateY(0) scale(1); }

.modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(90deg, rgba(147, 51, 234, 0.3), rgba(79, 70, 229, 0.2));
    border-bottom: 1px solid var(--glass-border);
    padding: 1.1rem 1.5rem;
}
.modal__header h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }

.modal__close {
    width: 34px; height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--slate-300);
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.modal__close:hover { color: #fff; background: rgba(220, 38, 38, 0.5); border-color: rgba(248, 113, 113, 0.5); }

.modal__body {
    padding: 1.5rem;
    overflow-y: auto;
    font-size: 0.92rem;
    color: var(--slate-300);
    line-height: 1.75;
}
.modal__image img {
    margin-top: 1.1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(147, 51, 234, 0.08);
    padding: 0.9rem 1.5rem;
}
.modal__date {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.modal__date i { color: var(--amber-400); }

body.modal-open { overflow: hidden; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-group .reveal:nth-child(6) { transition-delay: 0.4s; }

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

@media (max-width: 768px) {
    .hero { background-attachment: scroll; padding-top: 6rem; }
    .cta  { background-attachment: scroll; }

    .nav__badge { display: none; }

    .nav__menu {
        position: fixed;
        top: 68px; right: 1rem; left: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-lg);
        padding: 1rem;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: var(--transition);
    }
    .nav__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav__link { text-align: center; padding: 0.75rem; }
    .nav__toggle { display: flex; }

    .rules__grid { grid-template-columns: 1fr; }
    .section { padding: 4rem 0; }

    .server-selector { flex-direction: column; gap: 0.6rem; }
    .server-selector__tabs { width: 100%; justify-content: center; }
    .server-tab { flex: 1; justify-content: center; padding: 0.5rem 0.5rem; font-size: 0.72rem; }

    .hero__cta .btn { width: 100%; max-width: 340px; }
    .cta__buttons .btn { width: 100%; max-width: 340px; }

    .rank-table { font-size: 0.82rem; }
    .rank-table th, .rank-table td { padding: 0.65rem 0.8rem; }
}

@media (max-width: 520px) {
    .news__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom-inner { justify-content: center; text-align: center; }
    .hero__logo { max-height: 120px; }
    .modal__footer { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}
