﻿/* =============================================================
   WoW Emulation Hub — Base Stylesheet
   Layout, components, utilities.
   Colour values come from per-expansion theme files in
   assets/css/themes/*.css — loaded at runtime by each page.
   ============================================================= */

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

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

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
    --font-ui:      'Open Sans', 'Segoe UI', Arial, sans-serif;
    --font-display: 'Cinzel', Georgia, serif;

    /* Default fallback palette (overridden by theme files) */
    --exp-primary:   #88bfff;
    --exp-secondary: #2255a0;
    --exp-accent:    #c8e8ff;
    --exp-text:      #d0e8ff;
    --exp-bg:        #030810;
    --exp-bg2:       #060d18;
    --exp-border:    rgba(136, 191, 255, 0.28);
    --exp-glow:      rgba(136, 191, 255, 0.30);
    --exp-muted:     #3a6090;

    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  16px;
    --transition: 0.28s ease;
    --shadow-sm:  0 2px 8px  rgba(0,0,0,0.45);
    --shadow:     0 6px 28px rgba(0,0,0,0.60);
    --shadow-lg:  0 12px 48px rgba(0,0,0,0.70);
    --nav-h:      68px;
}

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

body {
    font-family: var(--font-ui);
    background: var(--exp-bg);
    color: var(--exp-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ══════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.site-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--nav-h);
    background: rgba(4, 4, 10, 0.93);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    display: flex;
    align-items: center;
    padding: 0 2.5rem;
    gap: 2rem;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    white-space: nowrap;
    background: linear-gradient(135deg, var(--exp-primary), var(--exp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    margin-left: auto;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.03em;
    transition: color var(--transition), background var(--transition), border-color var(--transition);
    border: 1px solid transparent;
}

.nav-links a:hover {
    color: var(--exp-accent);
    background: rgba(255,255,255,0.06);
}

.nav-links a.active {
    color: var(--exp-accent);
    background: rgba(255,255,255,0.05);
    border-color: var(--exp-border);
}

/* Register pill button in nav */
.nav-links a.nav-btn {
    color: #fff;
    background: var(--exp-primary);
    border-color: transparent;
    font-weight: 600;
}

.nav-links a.nav-btn:hover {
    background: var(--exp-accent);
    color: #000;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    margin-left: auto;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: rgba(255,255,255,0.6);
    border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 580px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
    background-size: cover;
    background-position: center 20%;
}

.hero-slide.active { opacity: 1; }

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.08) 0%,
        rgba(0,0,0,0.00) 30%,
        rgba(0,0,0,0.55) 75%,
        rgba(0,0,0,0.88) 100%
    );
    z-index: 1;
}

.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,0.50) 100%);
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    z-index: 10;
    padding: 0 2.5rem 8.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--exp-primary);
    margin-bottom: 0.9rem;
    padding: 0.32rem 0.9rem;
    border: 1px solid var(--exp-border);
    border-radius: 20px;
    background: rgba(0,0,0,0.40);
    backdrop-filter: blur(6px);
}

.hero-eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--exp-primary);
    box-shadow: 0 0 8px var(--exp-primary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 24px rgba(0,0,0,0.9);
    margin-bottom: 1rem;
}

.hero-sub {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,0.65);
    line-height: 1.65;
    max-width: 500px;
    margin-bottom: 2.2rem;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.75);
    width: 44px; height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(6px);
}

.hero-arrow:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.30);
}

.hero-arrow.prev { left: 1.5rem; }
.hero-arrow.next { right: 1.5rem; }

.hero-dots {
    position: absolute;
    bottom: 3.5rem;
    left: 2.5rem;
    display: flex;
    gap: 0.45rem;
    z-index: 20;
}

.hero-dot {
    width: 28px; height: 3px;
    border-radius: 2px;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    border: none;
    transition: all var(--transition);
}

.hero-dot.active {
    background: var(--exp-primary);
    width: 48px;
    box-shadow: 0 0 8px var(--exp-glow);
}

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.72rem 1.8rem;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--exp-secondary), var(--exp-primary));
    color: #fff;
    box-shadow: 0 4px 18px var(--exp-glow);
}

.btn-primary:hover {
    filter: brightness(1.14);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--exp-glow);
}

.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
    transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════════════════ */
.stats-bar {
    background: rgba(255,255,255,0.025);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.6rem 1rem;
    text-align: center;
    position: relative;
}

.stat-item + .stat-item::before {
    content: '';
    position: absolute;
    left: 0; top: 22%; bottom: 22%;
    width: 1px;
    background: rgba(255,255,255,0.07);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--exp-primary);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255,255,255,0.32);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════ */
.section {
    padding: 5.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--exp-primary);
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.5vw, 2.5rem);
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.35);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-divider {
    height: 1px;
    border: none;
    margin: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 20%, rgba(255,255,255,0.07) 80%, transparent);
}

/* ══════════════════════════════════════════════════════════════
   REALM CARDS
   ══════════════════════════════════════════════════════════════ */
.realms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.6rem;
}

.realm-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--exp-border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}

.realm-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px var(--exp-glow);
    border-color: var(--exp-primary);
}

.realm-card-banner {
    height: 180px;
    background-size: cover;
    background-position: center 25%;
    position: relative;
    flex-shrink: 0;
}

.realm-card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.85) 100%);
}

.realm-exp-tag {
    position: absolute;
    top: 1rem; left: 1rem;
    z-index: 2;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    border: 1px solid var(--exp-border);
    color: var(--exp-accent);
}

.realm-status-tag {
    position: absolute;
    top: 1rem; right: 1rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.28rem 0.7rem;
    border-radius: 20px;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
}

.realm-status-tag .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.realm-status-tag.online  { color: #50e080; border: 1px solid rgba(80,224,128,0.35); }
.realm-status-tag.online .dot  { background: #50e080; box-shadow: 0 0 6px #50e080; }
.realm-status-tag.offline { color: #e05050; border: 1px solid rgba(224,80,80,0.30); }
.realm-status-tag.offline .dot { background: #e05050; }

.realm-card-body {
    padding: 1.4rem 1.6rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.realm-name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.2rem;
}

.realm-exp-label {
    font-size: 0.78rem;
    color: var(--exp-muted);
    margin-bottom: 1rem;
}

.realm-meta { display: flex; gap: 1.5rem; margin-bottom: 1.3rem; }
.realm-meta-item { display: flex; flex-direction: column; gap: 0.15rem; }
.realm-meta-key { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.25); font-weight: 600; }
.realm-meta-val { font-size: 0.83rem; font-weight: 600; color: rgba(255,255,255,0.65); }

.realm-card-footer { margin-top: auto; }

.realm-card-footer .btn {
    width: 100%;
    background: linear-gradient(135deg, var(--exp-secondary), var(--exp-primary));
    color: #fff;
    box-shadow: 0 3px 14px var(--exp-glow);
    font-size: 0.82rem;
    padding: 0.72rem;
}

.realm-card-footer .btn:hover {
    filter: brightness(1.14);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px var(--exp-glow);
}

/* ══════════════════════════════════════════════════════════════
   FEATURES SECTION
   ══════════════════════════════════════════════════════════════ */
.features-bg {
    background: rgba(255,255,255,0.015);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.4rem;
}

.feature-card {
    padding: 2rem 1.6rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--exp-border);
}

.feature-icon { font-size: 1.9rem; margin-bottom: 1rem; color: var(--exp-primary); display: block; }
.feature-title { font-family: var(--font-display); font-size: 0.98rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.feature-desc { font-size: 0.83rem; color: rgba(255,255,255,0.38); line-height: 1.65; }

/* ══════════════════════════════════════════════════════════════
   HOW TO CONNECT
   ══════════════════════════════════════════════════════════════ */
.connect-wrap { max-width: 680px; margin: 0 auto; }

.connect-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.connect-card-head {
    padding: 1.3rem 2rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.connect-card-head .ch-icon { font-size: 1.1rem; color: var(--exp-primary); }
.connect-card-head h3 { font-family: var(--font-display); font-size: 1rem; color: #fff; font-weight: 600; }

.connect-steps {
    padding: 1.8rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.connect-step { display: flex; align-items: flex-start; gap: 1rem; }

.step-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--exp-secondary), var(--exp-primary));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 8px var(--exp-glow);
}

.step-text { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.65; padding-top: 2px; }
.step-text strong { color: rgba(255,255,255,0.82); font-weight: 600; }
.step-text code {
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    background: rgba(255,255,255,0.08);
    padding: 0.1em 0.5em;
    border-radius: 4px;
    color: var(--exp-accent);
}

/* ══════════════════════════════════════════════════════════════
   HERO BANNER  — compact, not full-screen
   ══════════════════════════════════════════════════════════════ */
.hero-banner {
    position: relative;
    width: 100%;
    height: 420px;          /* default height on homepage */
    overflow: hidden;
    margin-top: var(--nav-h);
    flex-shrink: 0;
}

/* Shorter banner on inner pages (account, armory, login, etc.) */
.hero-banner--compact {
    height: 280px;
}

/* Even shorter on pages that only need a background strip */
.hero-banner--slim {
    height: 180px;
}

.hero-banner .hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.4s ease;
    background-size: cover;
    background-position: center 30%;
}

.hero-banner .hero-slide.active { opacity: 1; }

.hero-banner .hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0.10) 0%,
        rgba(0,0,0,0.40) 55%,
        rgba(0,0,0,0.82) 100%
    );
    z-index: 1;
}

.hero-banner .hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%);
    z-index: 1;
}

.hero-banner-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    padding: 0 0 3rem;
}

.hero-banner-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.hero-banner-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 2px 20px rgba(0,0,0,0.9);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.hero-banner-title--custom { text-shadow: 0 2px 20px rgba(0,0,0,0.80); }

.hero-banner-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.62);
    margin-bottom: 1.2rem;
    max-width: 520px;
}

/* Breadcrumb inside hero */
.hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.32);
    margin-bottom: 0.9rem;
}
.hero-breadcrumb a {
    color: rgba(255,255,255,0.42);
    text-decoration: none;
    transition: color var(--transition);
}
.hero-breadcrumb a:hover { color: #fff; }
.hero-breadcrumb span   { color: rgba(255,255,255,0.18); }

/* Arrow + dot controls reused from hero slider */
.hero-banner .hero-arrow { top: 50%; }
.hero-banner .hero-dots  { bottom: 1.2rem; left: 2.5rem; }

/* ══════════════════════════════════════════════════════════════
   PAGE BODY WRAPPER
   ══════════════════════════════════════════════════════════════ */
.page-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

/* ── Two-column layout: main + sidebar ───────────────────────── */
.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.8rem;
    align-items: start;
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    min-width: 0;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}

/* ══════════════════════════════════════════════════════════════
   CONTENT CARD  (shared wrapper for every main-column section)
   ══════════════════════════════════════════════════════════════ */
.content-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 1.6rem;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.card-head-icon { font-size: 1rem; }

.card-head-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.03em;
}

.card-body { padding: 1.6rem; }

/* ══════════════════════════════════════════════════════════════
   SERVER STATUS  SECTION
   ══════════════════════════════════════════════════════════════ */
.status-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--exp-border);
    transition: border-color var(--transition), background var(--transition);
    gap: 1rem;
    flex-wrap: wrap;
}

.status-row:hover {
    background: rgba(255,255,255,0.04);
    border-color: var(--exp-primary);
}

.status-row-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.status-dot-lg {
    width: 11px; height: 11px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot-lg.online  { background: #50e080; box-shadow: 0 0 8px #50e080; }
.status-dot-lg.offline { background: #e05050; }

.status-realm-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-realm-exp {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.1rem;
}

.status-row-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.status-badge {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
}

.status-badge.online  { color: #50e080; background: rgba(80,224,128,0.10); border: 1px solid rgba(80,224,128,0.25); }
.status-badge.offline { color: #e05050; background: rgba(224,80,80,0.10); border: 1px solid rgba(224,80,80,0.20); }

.status-players {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}
.status-players-num   { font-size: 1.1rem; font-weight: 700; color: var(--exp-primary); }
.status-players-label { font-size: 0.7rem; color: rgba(255,255,255,0.35); }

.status-capacity {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.30);
}

.btn-xs {
    padding: 0.3rem 0.9rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════════════════════
   NEWS  SECTION
   ══════════════════════════════════════════════════════════════ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
}

.news-item {
    padding: 1.4rem 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    transition: background var(--transition);
}

.news-item:last-child { border-bottom: none; }

.news-item:hover { background: rgba(255,255,255,0.025); }

.news-item.pinned { background: rgba(255,255,255,0.025); }

.news-pin-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--exp-primary);
    margin-bottom: 0.5rem;
}

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

.news-cat {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--exp-primary);
    background: rgba(255,255,255,0.06);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

.news-date {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.32);
}

.news-author {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    margin-left: auto;
}

.news-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.news-content {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.45);
    line-height: 1.65;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: rgba(255,255,255,0.25);
}

.empty-icon { display: block; font-size: 2rem; margin-bottom: 0.75rem; }

/* ══════════════════════════════════════════════════════════════
   ABOUT  SECTION
   ══════════════════════════════════════════════════════════════ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.about-card {
    padding: 1.4rem;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color var(--transition);
}

.about-card:hover { border-color: var(--exp-border); }

.about-icon { font-size: 1.6rem; display: block; margin-bottom: 0.6rem; }

.about-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.4rem;
}

.about-text {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.40);
    line-height: 1.65;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR CARDS
   ══════════════════════════════════════════════════════════════ */
.sidebar-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
}

.sidebar-card-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

/* ── Sidebar Server Status card ─────────────────────────────── */
.sidebar-status { padding: 0; overflow: hidden; }

.sidebar-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.sidebar-status-summary {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.40);
    font-weight: 600;
    letter-spacing: 0.03em;
}

.sss-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.sss-dot.online  { background: #50e080; box-shadow: 0 0 5px #50e080; }
.sss-dot.offline { background: #e05050; }

.sidebar-status-empty {
    padding: 1rem 1.2rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.28);
}

.sidebar-status-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ssl-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background var(--transition);
}

.ssl-item:last-child { border-bottom: none; }
.ssl-item:hover { background: rgba(255,255,255,0.03); }

.ssl-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ssl-dot.online  { background: #50e080; box-shadow: 0 0 6px #50e080; }
.ssl-dot.offline { background: #666; }

.ssl-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.ssl-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ssl-exp {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ssl-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ssl-count {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--exp-primary);
}

.ssl-count small {
    font-size: 0.68rem;
    font-weight: 400;
    color: rgba(255,255,255,0.28);
}

.ssl-pop {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.18rem 0.5rem;
    border-radius: 8px;
}
.ssl-pop-low    { color: #50e080; background: rgba(80,224,128,0.10); }
.ssl-pop-medium { color: #e0c850; background: rgba(224,200,80,0.10); }
.ssl-pop-high   { color: #e08040; background: rgba(224,128,64,0.10); }
.ssl-pop-full   { color: #e05050; background: rgba(224,80,80,0.10); }

.ssl-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: 10px;
}
.ssl-badge.online  { color: #50e080; background: rgba(80,224,128,0.10); border: 1px solid rgba(80,224,128,0.20); }
.ssl-badge.offline { color: #888; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }

/* ── Quick Register CTA ──────────────────────────────────────── */
.sidebar-cta {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.04) 0%,
        rgba(255,255,255,0.02) 100%
    );
    border-color: var(--exp-border);
}

.sidebar-cta-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.sidebar-cta-sub {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.38);
    margin-bottom: 1.2rem;
    line-height: 1.55;
}

/* ── Discord Panel ───────────────────────────────────────────── */
.sidebar-discord {
    padding: 0;
    overflow: hidden;
    border-color: rgba(88, 101, 242, 0.35);
}

.discord-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.2rem 1.4rem;
    background: rgba(88, 101, 242, 0.12);
    border-bottom: 1px solid rgba(88, 101, 242, 0.18);
}

.discord-logo {
    width: 28px; height: 28px;
    fill: #5865F2;
    flex-shrink: 0;
}

.discord-head-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
}

.discord-head-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.38);
    margin-top: 0.1rem;
}

.discord-invite-block { padding: 1.2rem 1.4rem; }

.discord-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.discord-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
}

.dc-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
}
.dc-dot.online { background: #50e080; box-shadow: 0 0 5px #50e080; }

.discord-desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.6;
}

.discord-widget-frame {
    display: block;
    border: none;
    margin: 0;
    min-height: 0;
}

.btn-discord {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: calc(100% - 2.8rem);
    margin: 0 1.4rem 1.4rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius);
    background: #5865F2;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-transform: none;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88,101,242,0.40);
}

/* ── Quick Info card ─────────────────────────────────────────── */
.sidebar-info-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.sidebar-info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.sil-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.sil-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.28);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.sil-value {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

.sil-code {
    font-family: 'Consolas', monospace;
    font-size: 0.78rem;
    color: var(--exp-accent);
    word-break: break-all;
}

/* ── Expansion quick-links ───────────────────────────────────── */
.sidebar-realm-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.srl-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--exp-border);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.srl-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--exp-primary);
    transform: translateX(3px);
}

.srl-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.srl-dot.online  { background: #50e080; box-shadow: 0 0 5px #50e080; }
.srl-dot.offline { background: #e05050; }

.srl-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.srl-exp {
    font-size: 0.68rem;
    color: var(--exp-primary);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.srl-arrow {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    transition: color var(--transition);
}

.srl-item:hover .srl-arrow { color: var(--exp-primary); }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE  — collapse sidebar on smaller screens
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .content-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    .sidebar-discord { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    .content-sidebar { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .hero-banner { height: 300px; }
    .page-body { padding: 1.5rem 1rem 3rem; }
}
/* ══════════════════════════════════════════════════════════════
   AUTH PAGES  (login.php + register.php)
   Full-screen background + centred glassmorphism card
   ══════════════════════════════════════════════════════════════ */

/* Fixed full-screen background image */
.auth-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
}

.auth-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.72) 100%
    );
    backdrop-filter: blur(2px);
}

/* Transparent nav variant for auth pages */
.site-nav--transparent {
    background: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

/* Scrollable page shell */
.auth-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-top: calc(var(--nav-h) + 2rem);
    padding-bottom: 3rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ── Glassmorphism card ───────────────────────────────────────── */
.auth-card {
    width: 100%;
    max-width: 780px;
    background: rgba(8, 12, 28, 0.82);
    backdrop-filter: blur(24px) saturate(1.4);
    -webkit-backdrop-filter: blur(24px) saturate(1.4);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 20px;
    padding: 3rem 3.5rem 2.5rem;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.04) inset,
        0 24px 64px rgba(0,0,0,0.70),
        0 4px 16px rgba(0,0,0,0.40);
}

/* Narrow variant for login (2-field form needs less width) */
.auth-card--narrow {
    max-width: 480px;
}

/* ── Card header ─────────────────────────────────────────────── */
.auth-card-header {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-card-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--exp-primary);
    padding: 0.28rem 0.9rem;
    border: 1px solid var(--exp-border);
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    margin-bottom: 1rem;
}

.auth-card-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.auth-card-sub {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}

/* ── Form elements ───────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.71rem;
    font-weight: 700;
    color: rgba(255,255,255,0.38);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    margin-bottom: 0.48rem;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.9rem;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.20);
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

.input-wrap .form-control { padding-left: 2.5rem; }

.input-toggle-pw {
    position: absolute;
    right: 0.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.20);
    font-size: 0.88rem;
    padding: 0;
    line-height: 1;
    transition: color var(--transition);
    z-index: 1;
}
.input-toggle-pw:hover { color: rgba(255,255,255,0.55); }

.input-select-wrap .form-control { padding-left: 2.5rem; appearance: none; cursor: pointer; }

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.92);
    font-size: 0.92rem;
    font-family: var(--font-ui);
    outline: none;
    box-sizing: border-box;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-control::placeholder { color: rgba(255,255,255,0.15); }

.form-control:focus {
    border-color: var(--exp-primary);
    background: rgba(255,255,255,0.07);
    box-shadow: 0 0 0 3px var(--exp-glow);
}

.form-control.input-error { border-color: rgba(224,80,80,0.55); }
.form-control.input-ok    { border-color: rgba(80,224,128,0.40); }
.form-control option      { background: #0d1020; color: #d0d0e0; }

.form-hint     { font-size: 0.71rem; color: rgba(255,255,255,0.18); margin-top: 0.38rem; line-height: 1.5; }
.form-hint-ok  { color: #50e080 !important; }
.form-hint-err { color: #e05050 !important; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

.form-divider { border: none; border-top: 1px solid rgba(255,255,255,0.06); margin: 1.5rem 0; }

/* Strength bar */
.strength-wrap { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.strength-bar-track { flex: 1; height: 3px; background: rgba(255,255,255,0.07); border-radius: 2px; overflow: hidden; }
.strength-bar-fill  { height: 100%; border-radius: 2px; width: 0; transition: width 0.4s ease, background 0.4s ease; }
.strength-label     { font-size: 0.67rem; font-weight: 700; color: rgba(255,255,255,0.22); min-width: 36px; text-align: right; transition: color 0.3s; letter-spacing: 0.04em; }

/* Submit button */
.btn-auth-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.92rem 1.5rem;
    margin-top: 1.8rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--exp-secondary), var(--exp-primary));
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 4px 22px var(--exp-glow);
    transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
    text-decoration: none;
}

.btn-auth-submit:hover {
    filter: brightness(1.14);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--exp-glow);
    color: #fff;
}

/* Alert banners */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.55;
}
.alert-icon    { font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: rgba(64,200,96,0.10);  border: 1px solid rgba(64,200,96,0.28);  color: #70e090; }
.alert-error   { background: rgba(224,64,64,0.10);  border: 1px solid rgba(224,64,64,0.28);  color: #f09090; }

/* Post-register success state */
.auth-success-box { text-align: center; padding: 1.5rem 0 0.5rem; }
.auth-success-icon { font-size: 2.8rem; display: block; margin-bottom: 1rem; }
.auth-success-box h3 { font-family: var(--font-display); font-size: 1.4rem; color: #fff; margin-bottom: 0.6rem; }
.auth-success-box p  { font-size: 0.85rem; color: rgba(255,255,255,0.35); margin-bottom: 1.5rem; }

/* Switch link (sign in / register) */
.auth-switch {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.25);
    margin-top: 1.6rem;
}
.auth-switch a              { color: var(--exp-primary); font-weight: 600; }
.auth-switch a:hover        { color: var(--exp-accent); }

/* ── Server status strip inside login card ───────────────────── */
.auth-realm-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    padding: 0.9rem 1rem;
    margin: 1.4rem 0 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius);
}

.ars-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
}

.ars-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ars-dot.online  { background: #50e080; box-shadow: 0 0 5px #50e080; }
.ars-dot.offline { background: #555; }

.ars-name   { color: rgba(255,255,255,0.55); font-weight: 600; }
.ars-status { color: rgba(255,255,255,0.22); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 860px) {
    .auth-card { padding: 2.5rem 2rem 2rem; }
}

@media (max-width: 640px) {
    .auth-page  { padding-top: calc(var(--nav-h) + 1.2rem); padding-left: 1rem; padding-right: 1rem; }
    .auth-card  { padding: 2rem 1.4rem 1.8rem; border-radius: 14px; }
    .form-row   { grid-template-columns: 1fr; gap: 0; }
    .auth-card-title { font-size: 1.6rem; }
}

/* ══════════════════════════════════════════════════════════════
   ACCOUNT DASHBOARD  (wide, professional)
   ══════════════════════════════════════════════════════════════ */

/* ── Page wrapper: wider than default page-body ────────────────── */
.dash-page {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2.5rem 2.5rem 5rem;
}

/* ── Profile banner ─────────────────────────────────────────────── */
.dash-banner {
    background: linear-gradient(160deg,
        rgba(255,255,255,0.045) 0%,
        rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.dash-banner-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.2rem 2.8rem;
    flex-wrap: wrap;
}

.dash-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.dash-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--exp-secondary), var(--exp-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 6px 28px var(--exp-glow);
    text-transform: uppercase;
    border: 3px solid rgba(255,255,255,0.10);
}

.dash-avatar-status {
    position: absolute;
    bottom: 4px; right: 4px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 2.5px solid var(--exp-bg);
    background: #555;
}
.dash-avatar-status.online { background: #50e080; box-shadow: 0 0 8px #50e080; }
.dash-avatar-status.locked { background: #e05050; }

.dash-banner-info { flex: 1; min-width: 0; }

.dash-banner-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.dash-banner-name {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.dash-pill {
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.24rem 0.7rem;
    border-radius: 20px;
}
.dash-pill--active { color: #50e080; background: rgba(80,224,128,0.10); border: 1px solid rgba(80,224,128,0.25); }
.dash-pill--locked { color: #e05050; background: rgba(224,80,80,0.10);  border: 1px solid rgba(224,80,80,0.25); }
.dash-pill--admin  { color: var(--exp-accent); background: rgba(255,255,255,0.06); border: 1px solid var(--exp-border); }

.dash-banner-email {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.65rem;
}

.dash-banner-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.38);
}
.dash-banner-meta strong { color: rgba(255,255,255,0.65); font-weight: 600; }
.dash-meta-sep { margin: 0 0.55rem; opacity: 0.25; }
.dash-ip { font-family: 'Consolas', monospace; font-size: 0.76rem; color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.05); padding: 0.1rem 0.4rem; border-radius: 4px; }

.dash-banner-logout {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.82rem;
    align-self: flex-start;
}

/* Stats bar */
.dash-stats-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0 2.8rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.12);
}

.dash-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 1.05rem 2.2rem 1.05rem 0;
    min-width: 110px;
}

.dash-stat-div {
    width: 1px;
    height: 36px;
    background: rgba(255,255,255,0.07);
    margin: 0 2.2rem 0 0;
    flex-shrink: 0;
}

.dash-stat-val {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.dash-stat-online { color: #50e080; }

.dash-stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
}
.dash-stat-lbl--online { color: #50e080; }

.dash-stat-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin-left: auto;
    padding: 1rem 0;
}

/* ── Body container ──────────────────────────────────────────────── */
.dash-body { /* no extra styling needed, layout handled by dash-layout */ }

/* ── Two-column layout ───────────────────────────────────────────── */
.dash-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: start;
}

.dash-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.dash-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: sticky;
    top: calc(var(--nav-h) + 1.5rem);
}

/* ── Section wrapper ─────────────────────────────────────────────── */
.dash-section {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.dash-section-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.dash-section-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255,255,255,0.65);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex: 1;
}

.dash-section-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--exp-primary);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--exp-border);
    padding: 0.18rem 0.55rem;
    border-radius: 10px;
}

/* ── Empty state ─────────────────────────────────────────────────── */
.dash-empty {
    text-align: center;
    padding: 3.5rem 2rem;
}
.dash-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; opacity: 0.4; }
.dash-empty p { font-size: 0.88rem; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.dash-empty-realmlist {
    display: inline-block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius);
    padding: 0.5rem 1rem;
}
.dash-empty-realmlist code { color: var(--exp-primary); }

/* ── Character card grid ─────────────────────────────────────────── */
.char-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1px;
    background: rgba(255,255,255,0.05);
}

.char-card {
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.022);
    padding: 1.3rem 1.5rem;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition);
    cursor: pointer;
}
.char-card:hover {
    background: rgba(255,255,255,0.055);
    transform: translateY(-1px);
}

.char-card-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.char-portrait {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
}
.char-portrait img { width: 100%; height: 100%; object-fit: cover; }
.char-portrait-fallback {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
}
.char-level-badge {
    position: absolute;
    bottom: -3px; right: -3px;
    background: var(--exp-bg);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    font-size: 0.64rem;
    font-weight: 700;
    color: rgba(255,255,255,0.70);
    padding: 0 4px;
    line-height: 1.55;
}

.char-card-info { flex: 1; min-width: 0; }

.char-name {
    font-size: 1.02rem;
    font-weight: 700;
    font-family: var(--font-display);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.char-online-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #50e080;
    box-shadow: 0 0 5px #50e080;
    flex-shrink: 0;
    display: inline-block;
}

.char-spec-row {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.38);
    margin-top: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.char-dot { opacity: 0.35; }

.char-realm-tag {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.20);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.char-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
    gap: 0.5rem;
}

.char-level-row {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.30);
}
.char-level-row strong { color: rgba(255,255,255,0.60); }

.char-gold-row {
    display: flex;
    gap: 0.25rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.char-view-btn {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--exp-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.65;
    transition: opacity var(--transition);
    flex-shrink: 0;
}
.char-card:hover .char-view-btn { opacity: 1; }

/* ── Account details grid ────────────────────────────────────────── */
.dash-details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ddg-item {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    border-right: 1px solid rgba(255,255,255,0.04);
}
.ddg-item:nth-child(4n)          { border-right: none; }
.ddg-item:nth-last-child(-n+4)   { border-bottom: none; }

.ddg-label {
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.20);
    margin-bottom: 0.35rem;
    display: block;
}
.ddg-value { font-size: 0.88rem; color: rgba(255,255,255,0.72); font-weight: 500; word-break: break-all; }
.ddg-mono  { font-family: 'Consolas', monospace; font-size: 0.8rem; }
.ddg-warn  { color: #e08040; }

/* ── Connect steps ───────────────────────────────────────────────── */
.connect-steps { display: flex; flex-direction: column; gap: 1.1rem; padding: 1.5rem 1.8rem; }

.connect-step { display: flex; align-items: flex-start; gap: 1rem; }

.step-num {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--exp-secondary), var(--exp-primary));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px var(--exp-glow);
}

.step-text { font-size: 0.87rem; color: rgba(255,255,255,0.45); line-height: 1.65; padding-top: 0.26rem; }
.step-text code { font-family:'Consolas',monospace; font-size:0.8rem; color:rgba(255,255,255,0.60); background:rgba(255,255,255,0.06); padding:0.1rem 0.4rem; border-radius:4px; }

.realmlist-val {
    display: inline-block;
    margin-top: 0.3rem;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    color: var(--exp-accent);
    background: rgba(255,255,255,0.05);
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.08);
}

/* ── Sidebar cards ───────────────────────────────────────────────── */
.sidebar-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.sidebar-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.02);
}

.sidebar-card-icon { font-size: 1rem; opacity: 0.75; }

.sidebar-card-title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.60);
    flex: 1;
}

/* Points card */
.sidebar-card--points { border-color: var(--exp-border); }

.sidebar-points-val {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--exp-primary);
    text-align: center;
    padding: 1.4rem 1.4rem 0.2rem;
    line-height: 1;
    text-shadow: 0 0 30px var(--exp-glow);
}

.sidebar-points-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.22);
    text-align: center;
    padding-bottom: 1.2rem;
}

.sidebar-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.2rem 1.2rem;
}

.sidebar-card-actions .btn {
    flex: 1 1 auto;
    min-width: fit-content;
    text-align: center;
    white-space: nowrap;
    font-size: 0.74rem;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
}

/* Status badge */
.sidebar-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}
.sidebar-status-badge.online { color: #50e080; background: rgba(80,224,128,0.10); border: 1px solid rgba(80,224,128,0.22); }
.sidebar-status-badge.offline { color: rgba(255,255,255,0.30); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); }

.sidebar-empty {
    padding: 1.2rem 1.4rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.28);
}

/* Status list */
.ssl-list { list-style: none; }

.ssl-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ssl-item:last-child { border-bottom: none; }

.ssl-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.ssl-dot.online  { background: #50e080; box-shadow: 0 0 6px #50e080; }
.ssl-dot.offline { background: #555; }

.ssl-info { flex: 1; min-width: 0; }
.ssl-name { font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.70); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ssl-exp  { font-size: 0.67rem; color: rgba(255,255,255,0.24); text-transform: uppercase; letter-spacing: 0.07em; }

.ssl-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.2rem; flex-shrink: 0; }

.ssl-pop { font-size: 0.64rem; color: rgba(255,255,255,0.28); }

.ssl-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
}
.ssl-badge.online  { color: #50e080; background: rgba(80,224,128,0.10); border: 1px solid rgba(80,224,128,0.20); }
.ssl-badge.offline { color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }

/* ── Wealth sidebar list ─────────────────────────────────────────── */
.wealth-list { list-style: none; }

.wealth-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.72rem 1.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    gap: 0.5rem;
}
.wealth-item:last-child { border-bottom: none; }

.wealth-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.72rem 1.4rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255,255,255,0.38);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wealth-name { font-size: 0.83rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wealth-coins { display: flex; gap: 0.25rem; align-items: center; flex-shrink: 0; }

/* ── Gold coins ──────────────────────────────────────────────────── */
.coin {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    white-space: nowrap;
}
.coin.gold   { color: #ffd700; background: rgba(255,215,0,0.10);  }
.coin.silver { color: #c0c0c0; background: rgba(192,192,192,0.10); }
.coin.copper { color: #cd7f32; background: rgba(205,127,50,0.10);  }
.coin-label  { font-size: 0.68rem; color: rgba(255,255,255,0.20); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .dash-layout { grid-template-columns: 1fr 290px; }
    .dash-details-grid { grid-template-columns: repeat(2, 1fr); }
    .ddg-item:nth-child(4n)        { border-right: 1px solid rgba(255,255,255,0.04); }
    .ddg-item:nth-last-child(-n+4) { border-bottom: 1px solid rgba(255,255,255,0.04); }
    .ddg-item:nth-child(2n)        { border-right: none; }
    .ddg-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 900px) {
    .dash-page   { padding: 1.8rem 1.5rem 3.5rem; }
    .dash-layout { grid-template-columns: 1fr; }
    .dash-sidebar { position: static; }
    .dash-stats-bar { gap: 0; padding: 0 1.5rem; }
}
@media (max-width: 640px) {
    .dash-page          { padding: 1.2rem 1rem 3rem; }
    .dash-banner-inner  { padding: 1.5rem 1.4rem; gap: 1.2rem; }
    .dash-banner-name   { font-size: 1.45rem; }
    .dash-stats-bar     { flex-wrap: wrap; }
    .dash-stat          { min-width: 42%; padding: 0.9rem 0; }
    .dash-stat-div      { display: none; }
    .dash-stat-actions  { width: 100%; padding: 0.8rem 0; }
    .dash-details-grid  { grid-template-columns: 1fr; }
    .ddg-item           { border-right: none !important; }
    .ddg-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.04); }
    .ddg-item:last-child           { border-bottom: none; }
    .dash-banner-logout { display: none; }
    .char-grid          { grid-template-columns: 1fr; }
}

/* ── Legacy dash-header rules (kept for old markup) ────────────── */
.dash-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0 1.8rem;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}

.dash-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--exp-secondary), var(--exp-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 20px var(--exp-glow);
    text-transform: uppercase;
}

.dash-header-info { flex: 1; min-width: 0; }

.dash-username {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.dash-email {
    font-size: 0.84rem;
    color: rgba(255,255,255,0.30);
    margin-bottom: 0.6rem;
}

.dash-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.dash-badge {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.22rem 0.65rem;
    border-radius: 12px;
}

.dash-badge.active    { color: #50e080; background: rgba(80,224,128,0.10); border: 1px solid rgba(80,224,128,0.22); }
.dash-badge.locked    { color: #e05050; background: rgba(224,80,80,0.10);  border: 1px solid rgba(224,80,80,0.22); }
.dash-badge.expansion { color: var(--exp-primary); background: rgba(255,255,255,0.05); border: 1px solid var(--exp-border); }

.dash-logout-btn { margin-left: auto; flex-shrink: 0; }

/* Dashboard two-column layout */
.dash-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.8rem;
    align-items: start;
}

.dash-main {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    min-width: 0;
}



/* =============================================================
   ARMORY PAGE
   ============================================================= */

/* â”€â”€ Full-bleed hero banner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.armory-hero {
    position: relative;
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
}

.armory-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25) 0%,
        rgba(0,0,0,0.60) 55%,
        rgba(0,0,0,0.88) 100%
    );
}

.armory-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2.5rem;
}

.armory-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    margin-bottom: 1.5rem;
}
.armory-breadcrumb a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color var(--transition);
}
.armory-breadcrumb a:hover { color: #fff; }

.armory-hero-content {
    display: flex;
    align-items: flex-end;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.armory-hero-portrait {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.18);
    background: rgba(0,0,0,0.45);
    box-shadow: 0 4px 24px rgba(0,0,0,0.55);
}
.armory-hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.armory-portrait-fallback {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
}
.armory-online-pip {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #50e080;
    border: 2px solid rgba(0,0,0,0.65);
    box-shadow: 0 0 6px #50e080;
}

.armory-hero-info { flex: 1; min-width: 0; }

.armory-hero-tags {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    margin-bottom: 0.55rem;
}
.armory-tag {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.42);
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.11);
    padding: 0.18rem 0.65rem;
    border-radius: 20px;
}
.armory-tag--online {
    color: #50e080;
    background: rgba(80,224,128,0.10);
    border-color: rgba(80,224,128,0.22);
}

.armory-hero-name {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 0.4rem;
    text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}

.armory-hero-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.50);
    margin-bottom: 1.2rem;
}

.armory-hero-stats {
    display: inline-flex;
    align-items: center;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 0.6rem 0;
    flex-wrap: wrap;
    gap: 0;
    backdrop-filter: blur(6px);
}
.armory-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.1rem;
    transition: transform var(--transition);
}
.armory-stat:hover { transform: translateY(-1px); }
.armory-stat-sep {
    width: 1px;
    height: 30px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.armory-stat-val {
    font-size: 0.97rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
}
.armory-stat-of {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.28);
}
.armory-stat-lbl {
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-top: 0.15rem;
}

/* â”€â”€ Page body below hero â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.armory-body {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.armory-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.6rem;
    align-items: start;
}

/* â”€â”€ Card shell â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.armory-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.015) 100%);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}
.armory-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--char-colour, var(--exp-primary)) 50%, transparent 100%);
    opacity: 0.75;
}

.armory-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.3rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.22);
}
.armory-card-head-badges {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.armory-card-title {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.55);
    position: relative;
    padding-left: 0.7rem;
}
.armory-card-title::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 12px;
    border-radius: 2px;
    background: var(--char-colour, var(--exp-primary));
}
.armory-card-badge {
    font-size: 0.67rem;
    font-weight: 700;
    color: var(--exp-primary);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--exp-border);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
    white-space: nowrap;
}
.armory-card-badge--accent {
    color: var(--char-colour, var(--exp-primary));
    background: color-mix(in srgb, var(--char-colour, var(--exp-primary)) 14%, transparent);
    border-color: color-mix(in srgb, var(--char-colour, var(--exp-primary)) 40%, transparent);
}

/* â”€â”€ Paperdoll three-column grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.paperdoll {
    display: grid;
    grid-template-columns: 1fr 196px 1fr;
    gap: 0;
    padding: 1.2rem 0.8rem;
}

.pd-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* â”€â”€ Icon frame (shared across all slots) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pd-frame {
    position: relative;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.45);
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.40);
    transition: filter var(--transition), box-shadow var(--transition), transform var(--transition);
}
.pd-frame.has-quality {
    border-color: var(--qc, rgba(255,255,255,0.15));
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.40), 0 0 8px -2px var(--qc, transparent);
}
.pd-frame--lg { width: 46px; height: 46px; }
.pd-frame--sm { width: 36px; height: 36px; border-radius: 5px; }
.pd-frame--empty {
    border-color: rgba(255,255,255,0.06);
    border-style: dashed;
    background: rgba(0,0,0,0.20);
    box-shadow: none;
}

.pd-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Quality corner triangle */
.pd-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
    opacity: 0.9;
}

/* â”€â”€ Slot row (left column: icon left, text right) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pd-slot { border-radius: 6px; }
.pd-slot.filled:hover .pd-frame { filter: brightness(1.2); transform: scale(1.05); }

.pd-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    text-decoration: none;
    border-radius: 6px;
    transition: background var(--transition);
}
.pd-row:hover { background: rgba(255,255,255,0.04); }
.pd-row--right { flex-direction: row-reverse; }
.pd-row--empty { opacity: 0.32; pointer-events: none; }

.pd-txt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}
.pd-txt--right { align-items: flex-end; text-align: right; }

.pd-sname {
    font-size: 0.59rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255,255,255,0.24);
    white-space: nowrap;
    margin-bottom: 2px;
}
.pd-iname {
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.pd-iname--empty {
    color: rgba(255,255,255,0.18);
    font-style: italic;
    font-weight: 400;
}

/* â”€â”€ Centre: character model â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pd-centre {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 6px;
}

.pd-model-wrap {
    position: relative;
    width: 180px;
    height: 260px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background:
        radial-gradient(ellipse at center 38%, color-mix(in srgb, var(--char-colour, #fff) 10%, transparent) 0%, transparent 55%),
        radial-gradient(ellipse at center 80%, rgba(255,255,255,0.05) 0%, rgba(0,0,0,0.55) 100%);
    box-shadow: 0 6px 32px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
}

.pd-model-glow {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    opacity: 0.45;
    pointer-events: none;
    /* Class colour glow set via inline style background */
}

.pd-model-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 108px;
    height: 108px;
    transform: translate(-50%, -58%);
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--char-colour, rgba(255,255,255,0.14));
    box-shadow: 0 0 0 6px rgba(0,0,0,0.35), 0 0 22px -4px var(--char-colour, transparent), 0 8px 28px rgba(0,0,0,0.55);
}
.pd-model-race {
    position: absolute;
    top: calc(50% + 62px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.34);
    white-space: nowrap;
}

/* Mannequin overlay: glowing markers showing real equipped gear on the body */
.pd-mannequin-points {
    position: absolute;
    inset: 0;
    z-index: 2;
}
.pd-mpoint {
    position: absolute;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--qc, #fff);
    box-shadow: 0 0 8px var(--qc, #fff), 0 0 0 2px rgba(0,0,0,0.55);
    animation: pdPulse 2.6s ease-in-out infinite;
    transition: transform var(--transition), box-shadow var(--transition), z-index 0s;
}
.pd-mpoint:hover {
    transform: translate(-50%, -50%) scale(1.4);
    box-shadow: 0 0 16px var(--qc, #fff), 0 0 0 2px rgba(0,0,0,0.7);
    z-index: 5;
    animation-play-state: paused;
}
.pd-mpoint img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@keyframes pdPulse {
    0%, 100% { box-shadow: 0 0 6px var(--qc, #fff), 0 0 0 2px rgba(0,0,0,0.55); }
    50%      { box-shadow: 0 0 14px var(--qc, #fff), 0 0 0 2px rgba(0,0,0,0.55); }
}

.pd-model-plate {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
    padding: 1rem 0.6rem 0.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    z-index: 3;
}
.pd-model-plate span {
    font-family: var(--font-display);
    font-size: 0.80rem;
    font-weight: 700;
}
.pd-model-plate small {
    font-size: 0.60rem;
    color: rgba(255,255,255,0.32);
}

/* Weapons row below model */
.pd-weapons {
    display: flex;
    gap: 6px;
    justify-content: center;
    width: 100%;
}
.pd-weapon-slot { flex: 1; max-width: 62px; }
.pd-weapon-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}
.pd-weapon-inner:hover .pd-frame { filter: brightness(1.18); }
.pd-weapon-inner--empty { opacity: 0.28; pointer-events: none; }
.pd-weapon-name {
    font-size: 0.57rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 62px;
}
.pd-weapon-name--empty { color: rgba(255,255,255,0.22); }

/* Rings / trinkets row */
.pd-rings {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}
.pd-ring-slot a,
.pd-ring-slot div { display: block; }
.pd-ring-slot a:hover .pd-frame { filter: brightness(1.18); }

/* â”€â”€ Item list panel (right column) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.armory-item-list { list-style: none; }

.ail-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem 0.65rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background var(--transition);
}
.ail-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0.4rem; bottom: 0.4rem;
    width: 3px;
    border-radius: 2px;
    background: var(--qc, rgba(255,255,255,0.15));
    opacity: 0.85;
}
.ail-row:last-child { border-bottom: none; }
.ail-row:hover { background: rgba(255,255,255,0.035); }

.ail-icon-wrap { flex-shrink: 0; }

.ail-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ail-slot {
    font-size: 0.61rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.20);
}
.ail-name {
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: filter var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ail-name:hover { filter: brightness(1.25); }
.ail-quality {
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    flex-shrink: 0;
}
.ail-ilvl {
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    padding: 0.12rem 0.4rem;
    flex-shrink: 0;
}

/* â”€â”€ Armory responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1050px) {
    .armory-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .armory-hero-name { font-size: 1.8rem; }
    .paperdoll { grid-template-columns: 1fr 150px 1fr; }
    .pd-model-wrap { width: 144px; height: 215px; }
    .pd-iname { max-width: 100px; }
}
@media (max-width: 540px) {
    .armory-hero-stats { padding: 0.45rem 0; }
    .armory-stat { padding: 0 0.65rem; }
    .armory-stat-val { font-size: 0.82rem; }
    .paperdoll { grid-template-columns: 1fr 120px 1fr; }
    .pd-model-wrap { width: 116px; height: 185px; }
    .pd-iname { max-width: 80px; }
    .pd-frame--lg { width: 38px; height: 38px; }
    .pd-weapon-name { display: none; }
}
@media (max-width: 400px) {
    .paperdoll { grid-template-columns: 1fr 90px 1fr; }
    .pd-model-wrap { width: 88px; height: 150px; }
    .pd-frame { width: 34px; height: 34px; }
    .pd-iname { display: none; }
    .armory-card-head-badges { flex-wrap: wrap; justify-content: flex-end; }
}
    /* ══════════════════════════════════════════════════════════════
       FOOTER

       ══════════════════════════════════════════════════════════════ */


.site-footer {
    margin-top: auto;
    background: rgba(0,0,0,0.55);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--exp-primary), var(--exp-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.25); line-height: 1.7; max-width: 300px; }

.footer-col h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.28); margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.55rem; }
.footer-col ul a { font-size: 0.84rem; color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-col ul a:hover { color: var(--exp-accent); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.4rem 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-bottom p { font-size: 0.76rem; color: rgba(255,255,255,0.18); }
.footer-bottom a { color: rgba(255,255,255,0.26); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--exp-accent); }

/* ══════════════════════════════════════════════════════════════
   UTILITIES
   ══════════════════════════════════════════════════════════════ */
.text-center { text-align: center; }
.sr-only { position: absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    :root { --nav-h: 60px; }

    .site-nav { padding: 0 1.2rem; }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-h);
        left: 0; right: 0;
        background: rgba(4,4,12,0.97);
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        gap: 0.3rem;
    }

    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }

    .hero-content { padding: 0 1.2rem 7rem; }
    .hero-arrow { display: none; }
    .hero-dots { left: 50%; transform: translateX(-50%); }
    .hero-dot { width: 18px; }

    .stats-bar-inner { flex-wrap: wrap; }
    .stat-item { flex: 1 1 45%; }

    .section { padding: 3.5rem 1.2rem; }
    .form-row { grid-template-columns: 1fr; }
    .register-box { padding: 2rem 1.4rem; }

    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .realms-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   STORE — Auction House Style
   ══════════════════════════════════════════════════════════════ */

.store-page {
    width: 95%;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.8rem 0 4rem;
}

/* ── Alert banner ────────────────────────────────────────────── */
.store-alert {
    margin-bottom: 1.2rem;
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
}
.store-alert--success {
    background: rgba(80,224,128,0.10);
    border-color: rgba(80,224,128,0.30);
    color: #50e080;
}
.store-alert--error {
    background: rgba(224,80,80,0.10);
    border-color: rgba(224,80,80,0.30);
    color: #e05050;
}

/* ── Two-column layout ───────────────────────────────────────── */
.store-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.8rem;
    align-items: start;
}

/* ══ SIDEBAR ══════════════════════════════════════════════════ */
.store-sidebar {
    position: sticky;
    top: calc(var(--nav-h) + 1.2rem);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Points card */
.store-points-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    margin-bottom: 0.3rem;
}
.store-points-icon { font-size: 1.5rem; flex-shrink: 0; }
.store-points-val  { font-size: 1.15rem; font-weight: 700; color: #fff; line-height: 1.1; }
.store-points-lbl  { font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
                     letter-spacing: 0.1em; color: rgba(255,255,255,0.32); }

/* Search */
.store-search-form {
    display: flex;
    gap: 0;
    margin-bottom: 0.3rem;
}
.store-search-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-right: none;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    padding: 0.5rem 0.75rem;
    color: #fff;
    font-size: 0.83rem;
    outline: none;
    transition: border-color var(--transition);
}
.store-search-input:focus { border-color: var(--exp-primary); }
.store-search-input::placeholder { color: rgba(255,255,255,0.25); }
.store-search-btn {
    background: var(--exp-primary);
    border: 1px solid var(--exp-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0 0.75rem;
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: opacity var(--transition);
}
.store-search-btn:hover { opacity: 0.80; }

/* Sidebar section */
.store-sidebar-section {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.store-sidebar-head {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.30);
    padding: 0.6rem 0.9rem;
    background: rgba(0,0,0,0.20);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.store-sidebar-head-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--transition);
    width: 100%;
}
.store-sidebar-head-link:hover,
.store-sidebar-head-link.active { color: var(--exp-primary); }

/* Category list */
.store-cat-list { list-style: none; padding: 0.3rem 0; }
.store-cat-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.9rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.48);
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    border-radius: 0;
    position: relative;
}
.store-cat-link:hover { background: rgba(255,255,255,0.04); color: #fff; }
.store-cat-link.active {
    color: var(--exp-primary);
    background: rgba(255,255,255,0.05);
}
.store-cat-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--exp-primary);
    border-radius: 0 2px 2px 0;
}
.store-cat-icon { font-size: 1rem; flex-shrink: 0; }
.store-cat-count {
    margin-left: auto;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.22);
}
.store-cat-list--sub .store-cat-link { padding-left: 1.5rem; font-size: 0.78rem; }

/* ══ MAIN CONTENT ══════════════════════════════════════════════ */

/* Toolbar */
.store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}
.store-toolbar-left  { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.store-toolbar-right { display: flex; align-items: center; gap: 0.5rem; }

.store-section-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.store-item-count {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.28);
    font-weight: 400;
}
.store-search-tag {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    color: rgba(255,255,255,0.55);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.store-clear-search {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    font-size: 0.7rem;
    transition: color var(--transition);
}
.store-clear-search:hover { color: #fff; }

.store-sort-label  { font-size: 0.75rem; color: rgba(255,255,255,0.32); }
.store-sort-form   { display: flex; }
.store-sort-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-sm);
    padding: 0.4rem 0.65rem;
    color: rgba(255,255,255,0.70);
    font-size: 0.80rem;
    cursor: pointer;
    outline: none;
}
.store-sort-select:focus { border-color: var(--exp-primary); }
.store-sort-select option { background: #1a1a2e; }

/* Empty state */
.store-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem;
    text-align: center;
    color: rgba(255,255,255,0.28);
}
.store-empty-icon { font-size: 3rem; }
.store-empty p    { font-size: 0.9rem; }

/* ══ ITEM GRID ══════════════════════════════════════════════════ */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.1rem;
}

/* ── Store card ──────────────────────────────────────────────── */
.store-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: border-color var(--transition), transform 0.18s ease, box-shadow 0.18s ease;
}
.store-card:hover {
    border-color: rgba(255,255,255,0.18);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.40);
}
.store-card--featured {
    border-color: var(--qc, var(--exp-border));
    background: rgba(255,255,255,0.05);
    box-shadow: 0 0 0 1px var(--qc, transparent) inset;
}
.store-card--featured:hover { border-color: var(--qc, var(--exp-primary)); }

/* Badges */
.store-card-badges {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 2;
}
.store-badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.45rem;
    border-radius: 20px;
    border: 1px solid transparent;
    line-height: 1.4;
}
.store-badge--featured {
    color: #f0c040;
    background: rgba(240,192,64,0.12);
    border-color: rgba(240,192,64,0.28);
}
.store-badge--new {
    color: #50e080;
    background: rgba(80,224,128,0.12);
    border-color: rgba(80,224,128,0.28);
}
.store-badge--sale {
    color: #ff6060;
    background: rgba(255,96,96,0.12);
    border-color: rgba(255,96,96,0.28);
}

/* Icon area */
.store-card-icon-wrap {
    background: rgba(0,0,0,0.30);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    padding: 0.75rem 0 0.55rem;
}

/* Quality-coloured icon frame */
.store-icon-frame {
    position: relative;
    border: 2px solid #555;
    border-radius: 12px;
    padding: 3px;
    background: rgba(0,0,0,0.45);
    transition: box-shadow 0.2s ease;
    flex-shrink: 0;
}
.store-icon-link {
    display: block;
    line-height: 0;
}
.store-icon-link:focus { outline: none; }
.store-icon-frame--noitem {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Small quality-colour triangle in bottom-right corner of frame */
.store-icon-corner {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 0 0 8px 0;
    opacity: 0.85;
}

.store-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    transition: transform 0.18s ease;
}
.store-card:hover .store-card-icon { transform: scale(1.06); }

.store-card-icon-fallback {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

/* Quality pill beneath icon */
.store-quality-pill {
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    padding: 0.12rem 0.55rem;
    border-radius: 20px;
    border: 1px solid transparent;
    line-height: 1.5;
    white-space: nowrap;
}

/* Body */
.store-card-body {
    padding: 0.8rem 0.9rem 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.store-card-type {
    font-size: 0.60rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    opacity: 0.85;
}
.store-card-name {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.store-card-desc {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.36);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer: price + buy */
.store-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.15);
    flex-wrap: wrap;
}
.store-card-price { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.store-price {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}
.store-price--sale { color: #ff6060; }
.store-price-old {
    font-size: 0.70rem;
    color: rgba(255,255,255,0.28);
    text-decoration: line-through;
}

.store-buy-btn {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.38rem 0.85rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--exp-primary);
    background: transparent;
    color: var(--exp-primary);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}
.store-buy-btn:hover {
    background: var(--exp-primary);
    color: #fff;
}
.store-buy-btn--disabled {
    border-color: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.22);
    cursor: not-allowed;
}
.store-buy-btn--login {
    border-color: rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.40);
}
.store-buy-btn--login:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

/* ══ PURCHASE MODAL ════════════════════════════════════════════ */
.store-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}
.store-modal-backdrop.open {
    opacity: 1;
    pointer-events: all;
}
.store-modal {
    background: var(--exp-bg);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.8rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.70);
    transform: translateY(12px);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    text-align: center;
}
.store-modal-backdrop.open .store-modal { transform: translateY(0); }

.store-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.35);
    font-size: 1rem;
    cursor: pointer;
    transition: color var(--transition);
    line-height: 1;
    padding: 0.2rem 0.4rem;
}
.store-modal-close:hover { color: #fff; }

.store-modal-icon-wrap { margin-bottom: 0.3rem; }
.store-modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.14);
    object-fit: cover;
}
.store-modal-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.store-modal-item-name {
    color: var(--exp-primary);
    font-weight: 600;
    font-size: 1rem;
    margin: 0;
}
.store-modal-cost {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}
.store-modal-cost strong { color: #fff; }
.store-modal-balance { font-size: 0.75rem; color: rgba(255,255,255,0.30); }

.store-modal-form { width: 100%; }
.store-modal-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.8rem 0 1.2rem;
    text-align: left;
}
.store-modal-field label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.35);
}
.store-modal-select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color var(--transition);
    width: 100%;
}
.store-modal-select:focus { border-color: var(--exp-primary); }
.store-modal-select option { background: #1a1a2e; }

.store-modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

/* ── Store responsive ────────────────────────────────────────── */
@media (max-width: 1050px) {
    .store-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 780px) {
    .store-layout  { grid-template-columns: 1fr; }
    .store-sidebar { position: static; }
    .store-grid    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}
@media (max-width: 500px) {
    .store-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .store-card-icon-wrap { height: 100px; }
    .store-card-icon { width: 60px; height: 60px; }
}

/* ============================================================
   NEWS: clickable titles & footer actions
   ============================================================ */
.news-title-link { color: inherit; text-decoration: none; }
.news-title-link:hover { color: var(--exp-primary); }

.news-footer {
    display: flex; align-items: center; gap: 1rem;
    margin-top: 0.75rem; padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-wrap: wrap;
}
.news-read-more { color: var(--exp-primary); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.news-read-more:hover { text-decoration: underline; }
.news-comments-badge { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.news-admin-actions { display: flex; gap: 0.5rem; margin-left: auto; }

/* ── News detail page ──────────────────────────────────────── */
/* ── News Detail Page ──────────────────────────────────────── */
.nd-page { width: 95%; max-width: 1400px; margin: 0 auto; padding: 2rem 0 3rem; }
.nd-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }

/* Post card */
.nd-post-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; overflow: hidden;
}
.nd-banner { position: relative; width: 100%; max-height: 420px; overflow: hidden; }
.nd-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nd-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.6)); }

.nd-post-inner { padding: 2rem 2.5rem; }

.nd-meta-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.nd-cat {
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    padding: 0.25rem 0.75rem; border-radius: 999px;
    background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.1);
}
.nd-pinned { font-size: 0.75rem; font-weight: 700; padding: 0.25rem 0.75rem; border-radius: 999px; background: rgba(255,193,7,0.15); color: #ffd54f; border: 1px solid rgba(255,193,7,0.25); }
.nd-edit-btn { margin-left: auto; }

.nd-title { font-size: 2rem; font-weight: 800; color: #fff; margin: 0 0 1.25rem; line-height: 1.25; }

.nd-author-row { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; }
.nd-author-avatar {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--exp-primary), var(--exp-glow, var(--exp-primary)));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.1rem;
}
.nd-author-info { display: flex; flex-direction: column; gap: 0.15rem; }
.nd-author-name { font-size: 0.95rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.nd-author-date { font-size: 0.8rem; color: rgba(255,255,255,0.4); }

.nd-divider { height: 1px; background: rgba(255,255,255,0.08); margin-bottom: 1.75rem; }

.nd-body { font-size: 1.05rem; line-height: 1.85; color: rgba(255,255,255,0.85); }
.nd-body h1,.nd-body h2,.nd-body h3 { margin: 1.5rem 0 0.6rem; color: #fff; }
.nd-body ul,.nd-body ol { padding-left: 1.6rem; margin: 0.5rem 0 1rem; }
.nd-body li { margin-bottom: 0.3rem; }
.nd-body blockquote { border-left: 3px solid var(--exp-primary); margin: 1rem 0; padding: 0.6rem 1rem; background: rgba(255,255,255,0.04); border-radius: 0 6px 6px 0; color: rgba(255,255,255,0.7); }
.nd-body pre { background: rgba(0,0,0,0.45); padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: 0.88rem; color: #a5d6a7; }
.nd-body img { max-width: 100%; border-radius: 8px; margin: 0.5rem 0; }
.nd-body a { color: var(--exp-primary); text-decoration: underline; }
.nd-body strong { color: #fff; }

.nd-post-footer {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    margin-top: 2rem; padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* Comments section */
.nd-comments { margin-top: 1.5rem; }
.nd-comments-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin: 0 0 1.25rem; }

.nd-no-comments {
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px; padding: 1.5rem; text-align: center;
    color: rgba(255,255,255,0.45); font-size: 0.95rem; margin-bottom: 1.5rem;
}
.nd-no-comments a { color: var(--exp-primary); }

.nd-comment-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.nd-comment {
    display: flex; gap: 1rem; align-items: flex-start;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px; padding: 1rem 1.25rem;
    transition: border-color 0.2s;
}
.nd-comment:hover { border-color: rgba(255,255,255,0.13); }
.nd-comment-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--exp-primary), var(--exp-glow, var(--exp-primary)));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.nd-comment-content { flex: 1; min-width: 0; }
.nd-comment-header { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.nd-comment-author { font-size: 0.9rem; font-weight: 700; color: var(--exp-primary); }
.nd-comment-date { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.nd-comment-delete { display: inline; margin-left: auto; }
.nd-comment-text { font-size: 0.93rem; color: rgba(255,255,255,0.78); line-height: 1.65; }

/* Reply box */
.nd-reply-box {
    display: flex; gap: 1rem; align-items: flex-start;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 1.25rem 1.5rem; margin-top: 1rem;
}
.nd-reply-avatar {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--exp-primary), var(--exp-glow, var(--exp-primary)));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
}
.nd-reply-form-wrap { flex: 1; min-width: 0; }
.nd-reply-label { font-size: 0.82rem; color: rgba(255,255,255,0.45); margin-bottom: 0.6rem; }
.nd-reply-label strong { color: rgba(255,255,255,0.75); }
.nd-reply-textarea {
    background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px; color: #fff; padding: 0.75rem 1rem;
    font-size: 0.95rem; font-family: inherit; line-height: 1.6;
    resize: vertical; transition: border-color 0.2s; min-height: 110px;
}
.nd-reply-textarea:focus { outline: none; border-color: var(--exp-primary); }
.nd-reply-actions { display: flex; gap: 0.75rem; margin-top: 0.75rem; }

.nd-login-prompt {
    text-align: center; padding: 2rem 1rem; margin-top: 1rem;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px; display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.nd-login-prompt p { color: rgba(255,255,255,0.5); margin: 0 0 0.25rem; font-size: 0.95rem; }

/* Sidebar */
.nd-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 1.5rem; }
.nd-sidebar-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px; padding: 1.25rem 1.4rem;
}
.nd-sidebar-card-title {
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.45); margin: 0 0 1rem;
    padding-bottom: 0.6rem; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nd-info-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.65rem; }
.nd-info-list li { display: flex; justify-content: space-between; align-items: center; font-size: 0.88rem; }
.nd-info-label { color: rgba(255,255,255,0.4); }
.nd-info-val { color: rgba(255,255,255,0.85); font-weight: 600; text-align: right; }
.nd-pinned-badge { color: #ffd54f; }
.nd-sidebar-links { display: flex; flex-direction: column; gap: 0.6rem; }

@media (max-width: 900px) {
    .nd-layout { grid-template-columns: 1fr; }
    .nd-sidebar { position: static; }
    .nd-post-inner { padding: 1.25rem 1.25rem; }
    .nd-title { font-size: 1.5rem; }
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-panel { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }

.admin-tabs { display: flex; gap: 0; border-bottom: 2px solid rgba(255,255,255,0.1); }
.admin-tab {
    padding: 0.65rem 1.4rem; color: rgba(255,255,255,0.55); text-decoration: none;
    font-weight: 600; font-size: 0.9rem; border-bottom: 2px solid transparent; margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.admin-tab:hover { color: rgba(255,255,255,0.85); }
.admin-tab.active { color: var(--exp-primary); border-bottom-color: var(--exp-primary); }

.admin-section {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; padding: 1.5rem;
}
.admin-section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.25rem; color: rgba(255,255,255,0.85); }

/* Admin form elements */
.admin-form { display: flex; flex-direction: column; gap: 1rem; }
.af-group { display: flex; flex-direction: column; gap: 0.35rem; }
.af-group.af-grow { flex: 1; }
.af-group.af-shrink { flex-shrink: 0; }
.af-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.af-label { font-size: 0.83rem; font-weight: 600; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.04em; }
.af-req { color: #e07b54; }
.af-hint { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.af-hint-inline { font-size: 0.78rem; color: rgba(255,255,255,0.35); font-weight: 400; text-transform: none; }
.af-input {
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
    color: #fff; padding: 0.55rem 0.8rem; font-size: 0.95rem; transition: border-color 0.2s;
}
.af-input:focus { outline: none; border-color: var(--exp-primary); }
.af-textarea {
    background: rgba(0,0,0,0.35); border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
    color: #fff; padding: 0.7rem 0.9rem; font-size: 0.95rem; resize: vertical;
    font-family: inherit; line-height: 1.6; transition: border-color 0.2s;
}
.af-textarea:focus { outline: none; border-color: var(--exp-primary); }
.af-checkrow { align-items: center; flex-wrap: wrap; gap: 1.25rem; }
.af-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.92rem; color: rgba(255,255,255,0.75); }
.af-check input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--exp-primary); cursor: pointer; }
.af-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.admin-table th {
    text-align: left; padding: 0.5rem 0.75rem; background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em;
}
.admin-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.row-unpublished td { opacity: 0.5; }
.at-actions { display: flex; gap: 0.5rem; white-space: nowrap; }

/* Admin action buttons */
.btn-admin-edit, .btn-admin-delete, .btn-admin-view {
    background: none; border: none; cursor: pointer; font-size: 1rem;
    padding: 0.25rem 0.4rem; border-radius: 5px; text-decoration: none;
    line-height: 1; display: inline-flex; align-items: center; justify-content: center; transition: background 0.15s;
}
.btn-admin-edit   { color: var(--exp-primary); }
.btn-admin-delete { color: #e07b54; }
.btn-admin-view   { color: rgba(255,255,255,0.55); }
.btn-admin-edit:hover   { background: rgba(255,255,255,0.08); }
.btn-admin-delete:hover { background: rgba(224,123,84,0.15); }
.btn-admin-view:hover   { background: rgba(255,255,255,0.08); }
.btn-xs { font-size: 0.82rem; padding: 0.15rem 0.3rem; }

/* Badges */
.badge { font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; text-transform: uppercase; }
.badge-green { background: rgba(76,175,80,0.2); color: #81c784; }
.badge-grey  { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.45); }

/* Alert messages */
.alert { padding: 0.8rem 1rem; border-radius: 8px; font-size: 0.92rem; }
.alert-success { background: rgba(76,175,80,0.15); border: 1px solid rgba(76,175,80,0.3); color: #a5d6a7; }
.alert-error   { background: rgba(239,83,80,0.15); border: 1px solid rgba(239,83,80,0.3); color: #ef9a9a; }

/* Small button variant */
.btn-sm { padding: 0.35rem 0.8rem !important; font-size: 0.82rem !important; }

/* ============================================================
   ADMIN MODALS  (am- prefix)
   ============================================================ */
.am-backdrop {
    display: none;
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
    padding: 1rem;
}
.am-backdrop.am-open { display: flex; }

.am-dialog {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    width: 100%; max-width: 640px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    animation: am-slide-in 0.22s ease;
}
.am-dialog--wide { max-width: 900px; }

@keyframes am-slide-in {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: none; }
}

.am-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 1.4rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.am-title { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0; }
.am-close {
    background: none; border: none; cursor: pointer;
    color: rgba(255,255,255,0.45); font-size: 1.1rem;
    padding: 0.3rem 0.5rem; border-radius: 6px; line-height: 1;
    transition: color 0.15s, background 0.15s;
}
.am-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.am-body {
    flex: 1; overflow-y: auto; padding: 1.25rem 1.4rem;
    display: flex; flex-direction: column; gap: 1rem;
}

.am-footer {
    display: flex; justify-content: flex-end; gap: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}

/* Admin panel toolbar row */
.admin-section-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.1rem;
}
.admin-section-toolbar .admin-section-title { margin-bottom: 0; }

/* ── Quill editor dark theme overrides ───────────────────── */
.quill-wrap .ql-toolbar {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0;
}
.quill-wrap .ql-container {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.14) !important;
    border-radius: 0 0 8px 8px;
    color: #fff;
    font-size: 0.97rem;
    font-family: inherit;
}
.quill-wrap .ql-editor { min-height: 260px; color: #e8e8e8; line-height: 1.7; }
.quill-wrap--short .ql-editor { min-height: 140px; }
.quill-wrap .ql-editor.ql-blank::before { color: rgba(255,255,255,0.3); font-style: normal; }

/* Toolbar icons/buttons white */
.quill-wrap .ql-toolbar .ql-stroke { stroke: rgba(255,255,255,0.7) !important; }
.quill-wrap .ql-toolbar .ql-fill   { fill:   rgba(255,255,255,0.7) !important; }
.quill-wrap .ql-toolbar .ql-picker-label { color: rgba(255,255,255,0.7) !important; }
.quill-wrap .ql-toolbar button:hover .ql-stroke,
.quill-wrap .ql-toolbar button.ql-active .ql-stroke { stroke: var(--exp-primary) !important; }
.quill-wrap .ql-toolbar button:hover .ql-fill,
.quill-wrap .ql-toolbar button.ql-active .ql-fill   { fill:   var(--exp-primary) !important; }
.quill-wrap .ql-toolbar .ql-picker-label:hover,
.quill-wrap .ql-toolbar .ql-picker-item:hover        { color: var(--exp-primary) !important; }

/* Quill dropdowns */
.quill-wrap .ql-picker-options {
    background: #1e1e32 !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 6px;
}
.quill-wrap .ql-picker-item { color: rgba(255,255,255,0.75) !important; }

/* News detail body now renders Quill HTML — styles live in nd-body above */

/* About section now renders HTML too */
.about-text h1,.about-text h2,.about-text h3 { font-size: 1rem; margin: 0.5rem 0 0.25rem; }
.about-text ul,.about-text ol { padding-left: 1.3rem; margin: 0.25rem 0; }
.about-text p { margin: 0 0 0.4rem; }

.about-admin-actions {
    display: flex; align-items: center; gap: 0.5rem;
    margin-top: 0.75rem; padding-top: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}

/* ============================================================
   ADMIN PANEL  (ap- prefix)
   ============================================================ */
.ap-wrap {
    max-width: 1300px; margin: 0 auto; padding: 2rem 1.5rem;
}

/* Tab bar */
.ap-tabs {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.08);
    padding-bottom: 0.5rem;
}
.ap-tabs--sub {
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 1.25rem; padding-bottom: 0.4rem;
}
.ap-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    padding: 0.5rem 1.15rem; border-radius: 8px;
    cursor: pointer; font-size: 0.9rem;
    transition: all 0.15s;
}
.ap-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.ap-tab.active {
    background: var(--exp-primary);
    border-color: var(--exp-primary);
    color: #fff; font-weight: 600;
}

/* Panel visibility */
.ap-panel { display: none; }
.ap-panel.active { display: block; }
.ap-subtab { display: none; }
.ap-subtab.active { display: block; }

/* Panel head row */
.ap-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.1rem; flex-wrap: wrap; gap: 0.75rem;
}
.ap-panel-title {
    font-size: 1.1rem; font-weight: 700; color: #fff; margin: 0;
    display: flex; align-items: center; gap: 0.6rem;
}
.ap-count {
    background: var(--exp-primary); color: #fff;
    font-size: 0.78rem; font-weight: 700;
    padding: 0.1rem 0.55rem; border-radius: 999px;
}

/* Scrollable table wrapper */
.ap-table-wrap { overflow-x: auto; }

/* Extra small button */
.btn-xs { padding: 0.25rem 0.6rem !important; font-size: 0.78rem !important; }

/* IP code */
.ap-ip { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* Account search form */
.ap-search-form { display: flex; gap: 0.5rem; align-items: center; }
.ap-search-input { min-width: 220px; }

/* Action grid inside modals */
.ap-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}
.ap-action-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px; padding: 1rem;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.ap-action-card h4 {
    margin: 0 0 0.25rem; font-size: 0.95rem; color: #fff;
}
.ap-modal-sub {
    color: rgba(255,255,255,0.5); font-size: 0.88rem; margin: 0 0 1rem;
}

/* Console */
.ap-console-wrap {
    background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px; padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem;
}
.ap-console-history {
    font-family: 'Courier New', monospace; font-size: 0.88rem;
    display: flex; flex-direction: column; gap: 0.35rem;
    max-height: 300px; overflow-y: auto;
    padding: 0.75rem 1rem; background: rgba(0,0,0,0.4);
    border-radius: 6px; border: 1px solid rgba(255,255,255,0.07);
}
.ap-console-line { white-space: pre-wrap; color: rgba(255,255,255,0.8); }
.ap-console-cmd  { color: var(--exp-primary); }
.ap-console-err  { color: #ff6b6b; }
.ap-console-input-row {
    display: flex; align-items: center; gap: 0.6rem;
}
.ap-console-prompt {
    color: var(--exp-primary); font-family: monospace; font-size: 1rem; flex-shrink: 0;
}
.ap-console-input {
    flex: 1; background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 6px;
    color: #fff; padding: 0.55rem 0.85rem;
    font-family: 'Courier New', monospace; font-size: 0.95rem;
    outline: none;
}
.ap-console-input:focus { border-color: var(--exp-primary); }
.ap-console-hints { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.ap-hint-btn {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.65); border-radius: 5px; padding: 0.2rem 0.55rem;
    font-size: 0.78rem; cursor: pointer; font-family: monospace;
    transition: background 0.15s, color 0.15s;
}
.ap-hint-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* Admin nav link highlight */
a.nav-admin { color: var(--exp-primary) !important; font-weight: 600; }

/* ============================================================
   ADMIN PANEL  (adm- prefix)  — multi-page layout
   ============================================================ */

/* Two-column shell: sidebar + main */
.adm-layout {
    display: flex;
    min-height: calc(100vh - 420px); /* hero height approx */
    background: transparent;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.adm-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: rgba(10,10,20,0.85);
    backdrop-filter: blur(12px);
    border-right: 1px solid rgba(255,255,255,0.07);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 0 1rem;
}
.adm-sidebar-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 0.75rem;
}
.adm-sidebar-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: var(--exp-primary);
}
.adm-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.adm-sidebar-sub {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}
.adm-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 0.75rem;
    flex: 1;
}
.adm-nav-group-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    padding: 0.9rem 0.6rem 0.25rem;
}
.adm-nav-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.adm-nav-item:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}
.adm-nav-item.active {
    background: var(--exp-primary);
    color: #fff;
    font-weight: 600;
}
.adm-nav-icon { font-size: 1rem; flex-shrink: 0; }

/* Nav badge (e.g. open ticket count) */
.adm-nav-badge {
    margin-left: auto;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    background: #e05050;
    color: #fff;
    line-height: 1.4;
}

.adm-sidebar-footer {
    padding: 1rem 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    margin-top: 0.75rem;
}
.adm-back-link {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.15s;
}
.adm-back-link:hover { color: rgba(255,255,255,0.8); }

/* ── Main content area ───────────────────────────────────── */
.adm-main {
    flex: 1;
    padding: 2rem 2.5rem;
    min-width: 0;
}

/* ── Page head ───────────────────────────────────────────── */
.adm-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.adm-page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.adm-page-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.45);
}
.adm-count {
    background: var(--exp-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.55rem;
    border-radius: 999px;
    vertical-align: middle;
}

/* ── Stat grid ───────────────────────────────────────────── */
.adm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    margin-bottom: 1.75rem;
}
.adm-stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: background 0.15s;
}
.adm-stat-card:hover { background: rgba(255,255,255,0.07); }
.adm-stat-icon {
    font-size: 1.5rem;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    flex-shrink: 0;
}
.adm-stat-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.adm-stat-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin-top: 0.2rem;
}

/* ── Two-column layout ───────────────────────────────────── */
.adm-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .adm-two-col { grid-template-columns: 1fr; } }

/* ── Cards ───────────────────────────────────────────────── */
.adm-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
}
.adm-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.adm-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}
.adm-card-link {
    font-size: 0.82rem;
    color: var(--exp-primary);
    text-decoration: none;
}
.adm-card-link:hover { text-decoration: underline; }
.adm-empty {
    padding: 1.5rem 1.25rem;
    color: rgba(255,255,255,0.35);
    font-size: 0.88rem;
    text-align: center;
    margin: 0;
}

/* ── Quick actions grid ──────────────────────────────────── */
.adm-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    padding: 1rem 1.25rem;
}
.adm-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.adm-quick-btn span { font-size: 1.5rem; }
.adm-quick-btn:hover {
    background: rgba(255,255,255,0.09);
    color: #fff;
    border-color: var(--exp-primary);
}

/* ── Tables ──────────────────────────────────────────────── */
.adm-table-wrap { overflow-x: auto; }
.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.adm-table thead th {
    padding: 0.65rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    white-space: nowrap;
}
.adm-table tbody td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.85);
    vertical-align: middle;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table--hover tbody tr:hover td { background: rgba(255,255,255,0.03); }
.adm-row-inactive td { opacity: 0.45; }
.adm-muted { color: rgba(255,255,255,0.4) !important; }
.adm-ip, .adm-code {
    font-family: 'Courier New', monospace;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}
.adm-level {
    display: inline-block;
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    padding: 0.1rem 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}
.adm-row-actions {
    display: flex;
    gap: 0.35rem;
    align-items: center;
}

/* ── Icon buttons ────────────────────────────────────────── */
.adm-btn-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.adm-btn-icon--edit:hover { background: rgba(99,179,237,.2); color: #63b3ed; border-color:#63b3ed; }
.adm-btn-icon--del:hover  { background: rgba(245,101,101,.2); color: #f56565; border-color:#f56565; }

/* ── Badges ──────────────────────────────────────────────── */
.adm-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.adm-badge--green { background: rgba(72,187,120,.15); color: #48bb78; }
.adm-badge--blue  { background: rgba(99,179,237,.15); color: #63b3ed; }
.adm-badge--red   { background: rgba(245,101,101,.15); color: #f56565; }
.adm-badge--grey  { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }

/* ── Alerts ──────────────────────────────────────────────── */
.adm-alert {
    padding: 0.8rem 1.1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
    border-left: 3px solid;
}
.adm-alert--ok  { background: rgba(72,187,120,.1);  border-color: #48bb78; color: #9ae6b4; }
.adm-alert--err { background: rgba(245,101,101,.1); border-color: #f56565; color: #fed7d7; }

/* ── Sub nav (store tabs) ────────────────────────────────── */
.adm-subnav {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.25rem;
}
.adm-subnav-item {
    padding: 0.5rem 1.1rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.55);
    font-size: 0.88rem;
    text-decoration: none;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.adm-subnav-item:hover { background: rgba(255,255,255,0.09); color: #fff; }
.adm-subnav-item.active {
    background: var(--exp-primary);
    border-color: var(--exp-primary);
    color: #fff;
    font-weight: 600;
}

/* ── Search form ─────────────────────────────────────────── */
.adm-search-form { display: flex; gap: 0.5rem; align-items: center; }
.adm-search-input { min-width: 260px; }

/* ── Empty state ─────────────────────────────────────────── */
.adm-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem 1rem;
    color: rgba(255,255,255,0.35);
}
.adm-empty-icon { font-size: 2.5rem; }

/* ── Action grid inside modals ───────────────────────────── */
.adm-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.adm-action-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 10px;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.adm-action-card h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
}
.adm-action-card p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}
.adm-action-card-icon {
    font-size: 1.6rem;
    line-height: 1;
    margin-bottom: 0.15rem;
}
.adm-modal-sub {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    margin: 0 0 1rem;
}

/* ── Console ─────────────────────────────────────────────── */
.adm-console-card {
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
}
.adm-console-output {
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
    min-height: 180px;
    max-height: 380px;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.adm-console-line { white-space: pre-wrap; color: rgba(255,255,255,0.8); }
.adm-console-cmd  { color: var(--exp-primary); font-weight: 700; }
.adm-console-err  { color: #fc8181; }
.adm-console-placeholder { color: rgba(255,255,255,0.2); font-style: italic; }
.adm-console-form {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0.9rem 1.25rem;
}
.adm-console-input-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.adm-console-prompt {
    color: var(--exp-primary);
    font-family: monospace;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.adm-console-input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 7px;
    color: #fff;
    padding: 0.6rem 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s;
}
.adm-console-input:focus { border-color: var(--exp-primary); }
.adm-console-hints {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.adm-console-hints-label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
    margin-right: 0.25rem;
}
.adm-hint-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    border-radius: 5px;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    cursor: pointer;
    font-family: monospace;
    transition: background 0.15s, color 0.15s;
}
.adm-hint-btn:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ── Command reference ───────────────────────────────────── */
.adm-cmd-ref-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    padding: 1rem 1.25rem 1.25rem;
}
.adm-cmd-ref-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.adm-cmd-ref-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--exp-primary);
    margin-bottom: 0.25rem;
}
.adm-cmd-ref-group code {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.04);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    display: block;
}

/* ── Responsive sidebar ──────────────────────────────────── */
@media (max-width: 768px) {
    .adm-layout { flex-direction: column; }
    .adm-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; padding: 0.75rem; }
    .adm-sidebar-header { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
    .adm-nav { flex-direction: row; flex-wrap: wrap; padding: 0; }
    .adm-nav-group-label { display: none; }
    .adm-sidebar-footer { display: none; }
    .adm-main { padding: 1rem; }
}

/* btn-warning & btn-danger helpers */
.btn-warning {
    background: rgba(237,137,54,.2);
    border: 1px solid rgba(237,137,54,.4);
    color: #ed8936;
}
.btn-warning:hover { background: rgba(237,137,54,.35); color: #fff; }
.btn-danger {
    background: rgba(245,101,101,.2);
    border: 1px solid rgba(245,101,101,.4);
    color: #f56565;
}
.btn-danger:hover { background: rgba(245,101,101,.35); color: #fff; }

/* ============================================================
   ADMIN NEWS & ABOUT  (admin_news.php)
   ============================================================ */

/* ── News post card list ──────────────────────────────────── */
.news-post-list {
    display: flex;
    flex-direction: column;
}
.news-post-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
    position: relative;
}
.news-post-row:last-child { border-bottom: none; }
.news-post-row:hover { background: rgba(255,255,255,0.02); }
.news-post-row--draft { opacity: 0.65; }
.news-post-row--draft::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 0;
}
.news-post-row:not(.news-post-row--draft)::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--exp-primary);
    border-radius: 0;
}

/* Thumbnail */
.news-post-thumb {
    width: 90px;
    min-height: 80px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    margin: 0.75rem 0 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.07);
}
.news-post-thumb--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.2);
}

/* Body */
.news-post-body {
    flex: 1;
    padding: 0.9rem 1.1rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.news-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.news-post-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--exp-primary);
}
.news-post-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
}
.news-post-badge--pin      { background: rgba(236,201,75,.15); color: #ecc94b; }
.news-post-badge--draft    { background: rgba(255,255,255,.08); color: rgba(255,255,255,.45); }
.news-post-badge--comments { background: rgba(99,179,237,.12); color: #63b3ed; }

.news-post-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-post-excerpt {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.news-post-footer {
    display: flex;
    gap: 1rem;
    margin-top: 0.2rem;
}
.news-post-author,
.news-post-date {
    font-size: 0.76rem;
    color: rgba(255,255,255,0.35);
}

/* Actions column */
.news-post-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    flex-shrink: 0;
}

/* ── About section card list ─────────────────────────────── */
.about-section-list {
    display: flex;
    flex-direction: column;
}
.about-section-row {
    display: flex;
    align-items: center;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.15s;
    position: relative;
}
.about-section-row:last-child { border-bottom: none; }
.about-section-row:hover { background: rgba(255,255,255,0.02); }
.about-section-row--inactive { opacity: 0.55; }
.about-section-row::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--exp-primary);
}
.about-section-row--inactive::before { background: rgba(255,255,255,0.12); }
.about-section-icon {
    font-size: 2rem;
    width: 72px;
    text-align: center;
    flex-shrink: 0;
    padding: 0 0.5rem;
}
.about-section-body {
    flex: 1;
    padding: 0.9rem 1.1rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* ============================================================
   BUG / ISSUE TRACKER
   ============================================================ */

/* ── Status colours ─────────────────────────────────────────── */
.bug-status-dot          { width:.6rem;height:.6rem;border-radius:50%;display:inline-block;flex-shrink:0; }
.status-open             { background:#3b82f6; }
.status-confirmed        { background:#8b5cf6; }
.status-progress         { background:#f59e0b; }
.status-resolved         { background:#10b981; }
.status-wontfix          { background:#6b7280; }
.status-duplicate        { background:#9ca3af; }

.bug-status-pill         { display:inline-flex;align-items:center;gap:.3rem;padding:.18rem .6rem;border-radius:999px;font-size:.72rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em; }
.bug-status-pill.status-open       { background:rgba(59,130,246,.18);color:#93c5fd; }
.bug-status-pill.status-confirmed  { background:rgba(139,92,246,.18);color:#c4b5fd; }
.bug-status-pill.status-progress   { background:rgba(245,158,11,.18);color:#fcd34d; }
.bug-status-pill.status-resolved   { background:rgba(16,185,129,.18);color:#6ee7b7; }
.bug-status-pill.status-wontfix    { background:rgba(107,114,128,.18);color:#9ca3af; }
.bug-status-pill.status-duplicate  { background:rgba(156,163,175,.18);color:#d1d5db; }

/* ── Priority badges ────────────────────────────────────────── */
.bug-priority            { display:inline-block;padding:.18rem .55rem;border-radius:4px;font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em; }
.pri-low                 { background:rgba(100,200,100,.15);color:#6ee7b7; }
.pri-med                 { background:rgba(245,158,11,.15);color:#fcd34d; }
.pri-high                { background:rgba(239,68,68,.15);color:#fca5a5; }
.pri-crit                { background:rgba(239,68,68,.35);color:#fca5a5;box-shadow:0 0 6px rgba(239,68,68,.4); }

/* ── Category tag ───────────────────────────────────────────── */
.bug-cat-tag             { display:inline-block;padding:.18rem .55rem;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1);border-radius:4px;font-size:.72rem;color:rgba(255,255,255,.65); }

/* ── Page wrapper ───────────────────────────────────────────── */
.bug-page                { width:95%;max-width:1800px;margin:0 auto;padding:2rem 0 4rem; }
.bug-topbar              { display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1.5rem;flex-wrap:wrap; }
.bug-page-title          { font-size:1.6rem;font-weight:700;color:#f1f5f9;margin:0 0 .25rem;display:flex;align-items:center;gap:.6rem;flex-wrap:wrap; }
.bug-page-sub            { color:rgba(255,255,255,.5);font-size:.9rem;margin:0; }
.bug-count-badge         { display:inline-block;padding:.2rem .7rem;background:rgba(59,130,246,.2);color:#93c5fd;border-radius:999px;font-size:.8rem;font-weight:600; }

/* ── Two-column layout ──────────────────────────────────────── */
.bug-layout              { display:grid;grid-template-columns:280px 1fr;gap:2.2rem;align-items:start; }
@media(max-width:960px)  { .bug-layout { grid-template-columns:1fr; } }

/* ── Sidebar ─────────────────────────────────────────────────── */
.bug-sidebar             { background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:1rem;position:sticky;top:1rem; }
.bug-search-wrap         { position:relative;display:flex;align-items:center;margin-bottom:.2rem; }
.bug-search-icon         { position:absolute;left:.65rem;opacity:.45;font-size:.85rem; }
.bug-search-input        { width:100%;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:8px;padding:.45rem .7rem .45rem 2rem;color:#f1f5f9;font-size:.85rem;outline:none;transition:border .2s; }
.bug-search-input:focus  { border-color:rgba(139,92,246,.5); }
.bug-search-form         { margin-bottom:.8rem; }
.bug-sidebar-section     { margin-top:.9rem; }
.bug-sidebar-heading     { font-size:.7rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:rgba(255,255,255,.35);margin-bottom:.4rem; }
.bug-filter-item         { display:flex;align-items:center;gap:.4rem;padding:.35rem .55rem;border-radius:7px;font-size:.84rem;color:rgba(255,255,255,.6);text-decoration:none;transition:background .15s,color .15s;cursor:pointer; }
.bug-filter-item:hover   { background:rgba(255,255,255,.07);color:#f1f5f9; }
.bug-filter-item.active  { background:rgba(139,92,246,.15);color:#c4b5fd;font-weight:600; }
.bug-filter-count        { margin-left:auto;background:rgba(255,255,255,.09);border-radius:999px;padding:.05rem .45rem;font-size:.72rem; }

/* ── List header ─────────────────────────────────────────────── */
.bug-list-header         { display:flex;justify-content:space-between;align-items:center;margin-bottom:.7rem;font-size:.84rem;color:rgba(255,255,255,.45); }

/* ── Bug item card ───────────────────────────────────────────── */
.bug-list                { display:flex;flex-direction:column;gap:.6rem; }
.bug-item                { display:flex;gap:1rem;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:1rem 1.1rem;text-decoration:none;transition:background .18s,border .18s,transform .15s; }
.bug-item:hover          { background:rgba(255,255,255,.07);border-color:rgba(139,92,246,.35);transform:translateY(-1px); }
.bug-item--closed        { opacity:.6; }
.bug-item-votes          { display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:48px;background:rgba(255,255,255,.05);border-radius:8px;padding:.5rem .4rem; }
.bug-vote-count          { font-size:1.2rem;font-weight:700;color:#f1f5f9;line-height:1; }
.bug-vote-label          { font-size:.62rem;color:rgba(255,255,255,.4);margin-top:.1rem; }
.bug-item-body           { flex:1;min-width:0;display:flex;flex-direction:column;gap:.35rem; }
.bug-item-top            { display:flex;align-items:center;gap:.4rem;flex-wrap:wrap; }
.bug-item-title          { font-size:1rem;font-weight:600;color:#f1f5f9; }
.bug-item-desc           { font-size:.83rem;color:rgba(255,255,255,.45);white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.bug-item-meta           { display:flex;gap:.9rem;font-size:.77rem;color:rgba(255,255,255,.35); }

/* ── Empty state ─────────────────────────────────────────────── */
.bug-empty               { text-align:center;padding:3rem 1rem;color:rgba(255,255,255,.4); }
.bug-empty-icon          { font-size:3rem;margin-bottom:.8rem; }

/* ── Pagination ──────────────────────────────────────────────── */
.bug-pagination          { display:flex;gap:.35rem;flex-wrap:wrap;margin-top:1rem; }
.bug-page-btn            { padding:.35rem .7rem;border-radius:7px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:rgba(255,255,255,.6);font-size:.82rem;text-decoration:none;transition:background .15s; }
.bug-page-btn:hover,.bug-page-btn.active { background:rgba(139,92,246,.25);color:#c4b5fd;border-color:rgba(139,92,246,.4); }

/* ── Submit form page ────────────────────────────────────────── */
.bug-form-page           { width:95%;max-width:1100px;margin:0 auto;padding:2rem 0 4rem; }
.bug-form-card           { background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:16px;padding:2rem 2.2rem; }
.bug-form-header         { margin-bottom:1.5rem; }
.bug-form-header h1      { font-size:1.5rem;font-weight:700;color:#f1f5f9;margin:0 0 .35rem; }
.bug-form-header p       { color:rgba(255,255,255,.45);font-size:.9rem;margin:0; }
.bug-form                { display:flex;flex-direction:column;gap:1.1rem; }
.bug-form-group          { display:flex;flex-direction:column;gap:.3rem; }
.bug-form-label          { font-size:.84rem;font-weight:600;color:rgba(255,255,255,.7); }
.bug-required            { color:#f87171; }
.bug-form-input,
.bug-form-select,
.bug-form-textarea       { background:#1e2130;border:1px solid rgba(255,255,255,.1);border-radius:9px;padding:.6rem .85rem;color:#f1f5f9;font-size:.9rem;outline:none;transition:border .2s;font-family:inherit;resize:vertical; }
.bug-form-input:focus,
.bug-form-select:focus,
.bug-form-textarea:focus { border-color:rgba(139,92,246,.5);background:#1a1d2e; }
.bug-form-select option  { background:#1e2130;color:#f1f5f9; }
.bug-form-hint           { font-size:.78rem;color:rgba(255,255,255,.35); }
.bug-form-row            { display:grid;grid-template-columns:1fr 1fr;gap:1rem; }
@media(max-width:540px)  { .bug-form-row { grid-template-columns:1fr; } }
.bug-form-actions        { display:flex;justify-content:flex-end;gap:.7rem;padding-top:.4rem;flex-wrap:wrap; }

/* ── Detail page ─────────────────────────────────────────────── */
.bug-detail-page         { width:95%;max-width:1200px;margin:0 auto;padding:2rem 0 4rem; }
.bug-detail-wrap         { display:flex;flex-direction:column;gap:1.4rem; }
.bug-back-link           { display:inline-flex;align-items:center;gap:.35rem;font-size:.85rem;color:rgba(255,255,255,.5);text-decoration:none;transition:color .15s; }
.bug-back-link:hover     { color:#f1f5f9; }
.bug-detail-card         { background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:1.5rem 1.8rem;display:flex;flex-direction:column;gap:1rem; }
.bug-detail-header       { display:flex;flex-direction:column;gap:.5rem; }
.bug-detail-meta-top     { display:flex;align-items:center;gap:.5rem;flex-wrap:wrap; }
.bug-detail-id           { font-size:.78rem;color:rgba(255,255,255,.3);margin-left:.2rem; }
.bug-detail-title        { font-size:1.45rem;font-weight:700;color:#f1f5f9;margin:0; }
.bug-detail-submeta      { display:flex;gap:1rem;font-size:.82rem;color:rgba(255,255,255,.4);flex-wrap:wrap; }
.bug-detail-section      { display:flex;flex-direction:column;gap:.5rem; }
.bug-detail-section-label{ font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:rgba(255,255,255,.35); }
.bug-detail-body         { font-size:.92rem;color:rgba(255,255,255,.75);line-height:1.65;white-space:pre-wrap;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);border-radius:8px;padding:.75rem 1rem; }
.bug-steps               { font-family:monospace;font-size:.86rem; }
.bug-detail-actions      { display:flex;align-items:center;gap:.7rem;padding-top:.4rem;border-top:1px solid rgba(255,255,255,.07);flex-wrap:wrap; }

/* ── Vote button ─────────────────────────────────────────────── */
.bug-vote-btn            { display:inline-flex;align-items:center;gap:.4rem;padding:.45rem 1rem;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.05);color:rgba(255,255,255,.65);font-size:.88rem;cursor:pointer;transition:background .18s,border .18s,color .18s; }
.bug-vote-btn:hover      { background:rgba(59,130,246,.15);border-color:rgba(59,130,246,.35);color:#93c5fd; }
.bug-vote-btn.voted      { background:rgba(59,130,246,.2);border-color:rgba(59,130,246,.5);color:#93c5fd; }
.bug-vote-btn.disabled   { cursor:default;opacity:.5; }

/* ── Comments section ────────────────────────────────────────── */
.bug-comments-section    { display:flex;flex-direction:column;gap:1rem; }
.bug-comments-title      { font-size:1rem;font-weight:600;color:#f1f5f9;margin:0; }
.bug-no-comments         { color:rgba(255,255,255,.35);font-size:.88rem;padding:.6rem 0; }
.bug-comment             { display:flex;gap:.9rem;padding:.9rem 1rem;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);border-radius:12px; }
.bug-comment--staff      { background:rgba(139,92,246,.06);border-color:rgba(139,92,246,.2); }
.bug-comment-avatar      { width:36px;height:36px;flex-shrink:0;border-radius:50%;background:linear-gradient(135deg,rgba(139,92,246,.4),rgba(59,130,246,.4));display:flex;align-items:center;justify-content:center;font-weight:700;font-size:.9rem;color:#f1f5f9; }
.bug-comment--staff .bug-comment-avatar { background:linear-gradient(135deg,rgba(245,158,11,.5),rgba(239,68,68,.4)); }
.bug-comment-body        { flex:1;min-width:0; }
.bug-comment-meta        { display:flex;align-items:center;gap:.55rem;font-size:.8rem;color:rgba(255,255,255,.4);flex-wrap:wrap;margin-bottom:.35rem; }
.bug-comment-meta strong { color:rgba(255,255,255,.75); }
.bug-comment-time        { font-size:.75rem; }
.bug-staff-badge         { background:rgba(245,158,11,.15);color:#fcd34d;border-radius:4px;padding:.1rem .4rem;font-size:.7rem;font-weight:700; }
.bug-comment-text        { font-size:.88rem;color:rgba(255,255,255,.7);line-height:1.6;white-space:pre-wrap; }
.bug-delete-comment      { background:none;border:none;color:rgba(255,255,255,.25);cursor:pointer;font-size:.85rem;padding:.1rem .25rem;border-radius:4px;transition:color .15s; }
.bug-delete-comment:hover{ color:#f87171; }
.bug-reply-wrap          { background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:1.2rem 1.4rem;width:100%;box-sizing:border-box; }
.bug-reply-title         { font-size:.95rem;font-weight:600;color:rgba(255,255,255,.65);margin:0 0 .7rem; }
.bug-reply-wrap .bug-form-textarea { width:100%;min-height:130px;box-sizing:border-box; }
.bug-login-prompt        { text-align:center;padding:1.5rem;color:rgba(255,255,255,.35);font-size:.9rem; }

/* ── Danger btn modifier ─────────────────────────────────────── */
.btn-danger              { color:#fca5a5 !important;border-color:rgba(239,68,68,.3) !important; }
.btn-danger:hover        { background:rgba(239,68,68,.15) !important;border-color:rgba(239,68,68,.5) !important; }

/* ── Admin bug layout ────────────────────────────────────────── */
.bug-adm-layout               { display:grid;grid-template-columns:1fr;gap:1.2rem; }
.bug-adm-layout.bug-adm-layout--split { grid-template-columns:400px 1fr; }
@media(max-width:1100px)      { .bug-adm-layout.bug-adm-layout--split { grid-template-columns:1fr; } }

.bug-adm-toolbar              { display:flex;flex-direction:column;gap:.4rem;margin-bottom:.8rem; }
.bug-adm-search-form          { display:flex; }
.bug-adm-filters              { display:flex;gap:.35rem;flex-wrap:wrap; }
.bug-adm-list                 { display:flex;flex-direction:column;gap:.4rem; }
.bug-adm-item                 { display:block;padding:.7rem .9rem;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:10px;text-decoration:none;transition:background .15s,border .15s; }
.bug-adm-item:hover           { background:rgba(255,255,255,.07); }
.bug-adm-item.active          { background:rgba(139,92,246,.12);border-color:rgba(139,92,246,.35); }
.bug-adm-item-top             { display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;margin-bottom:.3rem; }
.bug-adm-item-title           { font-size:.88rem;font-weight:600;color:#f1f5f9;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.bug-adm-item-meta            { font-size:.75rem;color:rgba(255,255,255,.35);margin-top:.2rem; }

.bug-adm-detail-col           { background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.07);border-radius:12px;padding:1.2rem 1.4rem;display:flex;flex-direction:column;gap:1rem; }
.bug-adm-detail-empty         { align-items:center;justify-content:center;text-align:center;color:rgba(255,255,255,.3);min-height:260px; }
.bug-adm-detail-head          { display:flex;flex-direction:column;gap:.4rem;border-bottom:1px solid rgba(255,255,255,.07);padding-bottom:.9rem; }
.bug-adm-triage               { display:flex;flex-direction:column;gap:.5rem;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);border-radius:9px;padding:.75rem .9rem; }
.bug-adm-triage-form          { display:flex;flex-direction:column;gap:.3rem; }
.bug-adm-triage-row           { display:flex;align-items:center;gap:.5rem;flex-wrap:wrap; }
.bug-adm-comments             { display:flex;flex-direction:column;gap:.5rem; }
.bug-adm-reply-form           { background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);border-radius:9px;padding:.8rem .9rem;display:flex;flex-direction:column;gap:.4rem; }
.bug-adm-list-col             { min-width:0; }

/* ── Admin shared form controls (adm-input / adm-label) ─────── */
.adm-label               { display:block;font-size:.82rem;font-weight:600;color:rgba(255,255,255,.65);margin-bottom:.3rem; }
.adm-input               { width:100%;background:#1e2130;border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:.5rem .75rem;color:#f1f5f9;font-size:.88rem;font-family:inherit;outline:none;transition:border .2s,background .2s;resize:vertical; }
.adm-input:focus         { border-color:rgba(139,92,246,.5);background:#1a1d2e; }
.adm-input option        { background:#1e2130;color:#f1f5f9; }




/* ══════════════════════════════════════════════════════════════
   DONATION PAGE  (donate.php)
   ══════════════════════════════════════════════════════════════ */

.donate-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

/* Notice bar */
.donate-notice {
    padding: .85rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.75rem;
    font-size: .95rem;
}
.donate-notice--warn {
    background: rgba(234,179,8,.12);
    border: 1px solid rgba(234,179,8,.35);
    color: #fde68a;
}

/* Login prompt */
.donate-login-prompt {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    margin: 2rem 0;
}
.donate-login-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.donate-login-prompt h2 { font-size: 1.7rem; color: #e8e8e8; margin-bottom: .5rem; }
.donate-login-prompt p  { color: #a0a0a0; margin-bottom: 1.75rem; }
.donate-login-prompt .btn + .btn { margin-left: .75rem; }

/* Section headings */
.donate-section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e8e8e8;
    margin-bottom: .5rem;
}
.donate-section-sub {
    color: #a0a0a0;
    font-size: .95rem;
    margin-bottom: 2rem;
    max-width: 680px;
}

/* ── Package cards ───────────────────────────────────────────── */
.donate-packages {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.donate-pkg {
    position: relative;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 1.75rem 1.5rem 1.5rem;
    text-align: center;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    cursor: pointer;
}
.donate-pkg:hover {
    border-color: rgba(196,150,60,.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.donate-pkg--popular {
    border-color: #c4963c;
    background: rgba(196,150,60,.08);
    box-shadow: 0 0 0 1px rgba(196,150,60,.4), 0 6px 24px rgba(0,0,0,.3);
}
.donate-pkg--selected {
    border-color: #4ade80 !important;
    background: rgba(74,222,128,.06) !important;
    box-shadow: 0 0 0 2px rgba(74,222,128,.3) !important;
}

.donate-pkg-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #b8860b, #d4a830);
    color: #0a0a0a;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .75rem;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .02em;
}
.donate-pkg-label {
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #a0a0a0;
    margin-bottom: .6rem;
}
.donate-pkg-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: #e8e8e8;
    line-height: 1;
    margin-bottom: .9rem;
}
.donate-pkg-points {
    background: rgba(255,255,255,.06);
    border-radius: 8px;
    padding: .55rem .5rem;
    margin-bottom: .6rem;
}
.donate-pts-num {
    display: block;
    font-size: 1.45rem;
    font-weight: 700;
    color: #c4963c;
}
.donate-pts-label {
    font-size: .75rem;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.donate-pkg-bonus {
    font-size: .78rem;
    color: #4ade80;
    font-weight: 600;
    margin-bottom: .85rem;
}
.donate-pkg-btn {
    width: 100%;
    margin-top: .5rem;
}

/* ── Payment panel ───────────────────────────────────────────── */
.donate-payment-panel {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}
.donate-payment-inner {
    max-width: 480px;
    margin: 0 auto;
}
.donate-payment-summary {
    background: rgba(196,150,60,.08);
    border: 1px solid rgba(196,150,60,.25);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}
.donate-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .3rem;
}
.donate-summary-pkg { color: #e8e8e8; font-size: 1rem; }
.donate-summary-price { font-size: 1.3rem; font-weight: 700; color: #c4963c; }
.donate-summary-pts { font-size: .9rem; color: #a0a0a0; }
.donate-summary-bonus { color: #4ade80; font-weight: 600; margin-left: .5rem; }

.donate-payment-methods {
    margin-bottom: 1.25rem;
    text-align: center;
}
.donate-methods-title { font-size: .9rem; font-weight: 600; color: #c0c0c0; margin-bottom: .6rem; }
.donate-methods-icons { display: flex; justify-content: center; gap: .75rem; margin-bottom: .6rem; }
.donate-method-icon {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 6px;
    padding: .35rem .75rem;
    font-size: .85rem;
    font-weight: 600;
    color: #e8e8e8;
}
.donate-methods-note { font-size: .82rem; color: #808080; line-height: 1.5; }

#paypal-button-container { margin: 0 auto 1rem; }

.donate-payment-disclaimer {
    font-size: .78rem;
    color: #666;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1rem;
}
.donate-change-btn {
    display: block;
    width: 100%;
    text-align: center;
    font-size: .85rem;
}

/* ── Donation history ────────────────────────────────────────── */
.donate-history-section { margin: 3rem 0 2rem; }
.donate-history-table-wrap { overflow-x: auto; }
.donate-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}
.donate-history-table th {
    text-align: left;
    padding: .65rem 1rem;
    background: rgba(255,255,255,.05);
    color: #a0a0a0;
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.donate-history-table td {
    padding: .65rem 1rem;
    color: #c8c8c8;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.donate-history-table tr:last-child td { border-bottom: none; }
.donate-status { font-size: .8rem; font-weight: 600; padding: .2rem .55rem; border-radius: 20px; }
.donate-status--ok      { background: rgba(74,222,128,.12); color: #4ade80; }
.donate-status--pending { background: rgba(234,179,8,.12);  color: #fde047; }
.donate-status--fail    { background: rgba(248,113,113,.12);color: #f87171; }

/* ── Trust strip ─────────────────────────────────────────────── */
.donate-trust-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255,255,255,.07);
}
.donate-trust-item { text-align: center; padding: 1.25rem 1rem; }
.donate-trust-icon { font-size: 2rem; margin-bottom: .6rem; }
.donate-trust-label { font-weight: 700; color: #e8e8e8; margin-bottom: .3rem; }
.donate-trust-desc { font-size: .83rem; color: #808080; line-height: 1.5; }

/* ── Result page (donate_return.php) ────────────────────────── */
.donate-result {
    max-width: 520px;
    margin: 2rem auto;
    text-align: center;
    background: rgba(255,255,255,.03);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255,255,255,.1);
}
.donate-result--success { border-color: rgba(74,222,128,.3); }
.donate-result--error   { border-color: rgba(248,113,113,.3); }
.donate-result-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.donate-result h2 { font-size: 1.8rem; color: #e8e8e8; margin-bottom: .75rem; }
.donate-result p  { color: #a0a0a0; margin-bottom: 1rem; }
.donate-result-pts {
    font-size: 2.8rem;
    font-weight: 800;
    color: #c4963c;
    margin: 1.25rem 0;
    line-height: 1;
}
.donate-result-pts span { display: block; font-size: .85rem; font-weight: 500; color: #808080; margin-top: .3rem; }
.donate-result-sub { font-size: .9rem; color: #a0a0a0; margin-bottom: 1.75rem; }
.donate-result-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 900px) {
    .donate-packages { grid-template-columns: repeat(2, 1fr); }
    .donate-trust-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .donate-packages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
    .donate-packages { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   GM TICKETS  (admin_tickets.php)
   ══════════════════════════════════════════════════════════════ */

.adm-badge-open {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.22rem 0.7rem;
    border-radius: 10px;
    background: rgba(224,80,80,0.15);
    color: #e05050;
    border: 1px solid rgba(224,80,80,0.25);
}

/* Two-column split layout */
.tkt-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.tkt-layout--split {
    grid-template-columns: 360px 1fr;
    align-items: start;
}

/* ── Ticket list ──────────────────────────────────────────── */
.tkt-list-wrap {
    min-width: 0;
}
.tkt-list {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.tkt-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-decoration: none;
    background: rgba(255,255,255,0.02);
    transition: background 0.15s;
    cursor: pointer;
}
.tkt-item:last-child  { border-bottom: none; }
.tkt-item:hover       { background: rgba(255,255,255,0.05); }
.tkt-item.active      { background: rgba(255,255,255,0.07); border-left: 3px solid var(--exp-primary); }
.tkt-item.closed      { opacity: 0.6; }

.tkt-item-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.tkt-id     { font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.30); font-family: 'Consolas',monospace; }
.tkt-realm  { font-size: 0.68rem; color: rgba(255,255,255,0.22); margin-left: auto; }

.tkt-status {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.15rem 0.5rem;
    border-radius: 8px;
}
.tkt-status.open    { color: #68d391; background: rgba(104,211,145,0.12); border: 1px solid rgba(104,211,145,0.2); }
.tkt-status.replied { color: #63b3ed; background: rgba(99,179,237,0.12);  border: 1px solid rgba(99,179,237,0.2); }
.tkt-status.closed  { color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); }
.tkt-status--lg { font-size: 0.72rem; padding: 0.22rem 0.65rem; }

.tkt-player { font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.75); }
.tkt-desc   { font-size: 0.78rem; color: rgba(255,255,255,0.35); line-height: 1.5; }
.tkt-meta   { display: flex; gap: 0.75rem; flex-wrap: wrap; font-size: 0.68rem; color: rgba(255,255,255,0.22); }
.tkt-escalated { color: #f6ad55; }
.tkt-has-reply { color: #63b3ed; }

/* ── Ticket detail ────────────────────────────────────────── */
.tkt-detail {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-width: 0;
}

.tkt-detail--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: rgba(255,255,255,0.25);
    font-size: 0.88rem;
    text-align: center;
}

.tkt-detail-head {
    padding: 1.3rem 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
}
.tkt-detail-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.4rem;
}
.tkt-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.30);
}

/* Player info bar */
.tkt-player-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(255,255,255,0.015);
    flex-wrap: wrap;
}
.tkt-player-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--exp-secondary), var(--exp-primary));
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-size: 1.1rem; font-weight: 700; color: #fff;
    flex-shrink: 0;
}
.tkt-player-name { font-size: 1rem; font-weight: 700; color: rgba(255,255,255,0.80); }
.tkt-player-info { font-size: 0.75rem; color: rgba(255,255,255,0.35); display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.tkt-player-sep  { opacity: 0.3; }
.tkt-player-loc  { margin-left: auto; font-size: 0.72rem; color: rgba(255,255,255,0.22); font-family: 'Consolas',monospace; }

/* Chat bubbles */
.tkt-bubble {
    margin: 1.2rem 1.6rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
}
.tkt-bubble-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
}
.tkt-bubble-body {
    padding: 0.9rem 1rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}
.tkt-bubble--player { border-color: rgba(104,211,145,0.15); }
.tkt-bubble--player .tkt-bubble-label { color: #68d391; background: rgba(104,211,145,0.06); }
.tkt-bubble--gm     { border-color: rgba(99,179,237,0.18); }
.tkt-bubble--gm     .tkt-bubble-label { color: #63b3ed; background: rgba(99,179,237,0.07); }
.tkt-bubble--note   { border-color: rgba(246,173,85,0.18); }
.tkt-bubble--note   .tkt-bubble-label { color: #f6ad55; background: rgba(246,173,85,0.07); }

/* Reply form */
.tkt-actions { padding: 1.2rem 1.6rem 1.6rem; }
.tkt-reply-form { display: flex; flex-direction: column; gap: 0.75rem; }
.tkt-reply-textarea { min-height: 110px; resize: vertical; }
.tkt-reply-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.tkt-close-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    cursor: pointer;
}
.tkt-close-check input { accent-color: var(--exp-primary); }

/* Responsive */
@media (max-width: 900px) {
    .tkt-layout--split { grid-template-columns: 1fr; }
    .tkt-player-loc    { display: none; }
}

