/*
 * ═══════════════════════════════════════════════════════════
 *  ARKANODIA — Dark Fantasy / Cyber Fantasy Design System
 *  Neon purple-green palette  ·  Glassmorphism  ·  Glow FX
 * ═══════════════════════════════════════════════════════════
 */

/* ── CSS Custom Properties (Design Tokens) ──────────────── */
:root {
    /* Background layers */
    --bg-void:            #050510;
    --bg-dark:            #0a0a16;
    --bg-panel:           #0e0e1e;
    --bg-panel-alt:       #121228;
    --bg-panel-hover:     #18183a;
    --bg-input:           #0c0c1c;
    --bg-header:          rgba(8, 8, 20, 0.92);

    /* Borders */
    --border-dim:         rgba(100, 80, 160, 0.15);
    --border-subtle:      rgba(120, 90, 200, 0.25);
    --border-active:      rgba(155, 77, 255, 0.6);

    /* Accent: Purple */
    --accent-purple:      #9b4dff;
    --accent-purple-deep: #6a1fb0;
    --accent-purple-soft: #c084fc;
    --accent-purple-dim:  rgba(155, 77, 255, 0.15);

    /* Accent: Neon Green / Lime */
    --accent-green-neon:  #39ff14;
    --accent-lime:        #7fff00;
    --accent-green-dim:   rgba(57, 255, 20, 0.12);
    --accent-green-soft:  #6bff4a;

    /* Accent: Cyan (supplementary) */
    --accent-cyan:        #00f0ff;

    /* Status colors */
    --color-success:      #22c55e;
    --color-danger:       #ef4444;
    --color-warning:      #f59e0b;

    /* Text */
    --text-primary:       #e8e6f0;
    --text-secondary:     #9a98b8;
    --text-muted:         #5a5878;
    --text-inverse:       #0a0a16;

    /* Gradients */
    --gradient-main:      linear-gradient(135deg, #9b4dff 0%, #39ff14 100%);
    --gradient-purple:    linear-gradient(135deg, #6a1fb0 0%, #9b4dff 100%);
    --gradient-panel:     linear-gradient(180deg, rgba(155,77,255,0.06) 0%, rgba(57,255,20,0.03) 100%);
    --gradient-banner:    linear-gradient(180deg, transparent 0%, rgba(5,5,16,0.7) 60%, var(--bg-void) 100%);

    /* Glow / Shadow */
    --glow-purple:        0 0 20px rgba(155, 77, 255, 0.35), 0 0 60px rgba(155, 77, 255, 0.1);
    --glow-green:         0 0 20px rgba(57, 255, 20, 0.35), 0 0 60px rgba(57, 255, 20, 0.1);
    --glow-combined:      0 0 12px rgba(155, 77, 255, 0.25), 0 0 30px rgba(57, 255, 20, 0.1);
    --glow-input-focus:   0 0 0 2px rgba(155, 77, 255, 0.3), 0 0 20px rgba(155, 77, 255, 0.15);
    --shadow-card:        0 4px 24px rgba(0, 0, 0, 0.5), 0 1px 4px rgba(0, 0, 0, 0.3);
    --shadow-elevated:    0 8px 40px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 0, 0, 0.4);

    /* Typography */
    --font-display:       'Orbitron', sans-serif;
    --font-body:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sizing */
    --radius-sm:          6px;
    --radius-md:          10px;
    --radius-lg:          16px;
    --sidebar-width:      260px;
    --header-height:      64px;
    --content-max:        1400px;

    /* Transitions */
    --ease-out:           cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast:    150ms var(--ease-out);
    --transition-normal:  250ms var(--ease-out);
    --transition-slow:    400ms var(--ease-out);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-void);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(155, 77, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(57, 255, 20, 0.03) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 90%, rgba(106, 31, 176, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--accent-purple-soft);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-green-neon);
}

img { max-width: 100%; height: auto; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-purple-deep), var(--accent-purple));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-purple); }


/* ═══════════════════════════════════════════════════════════
 *  HEADER
 * ═══════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-dim);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    filter: drop-shadow(0 0 8px rgba(155, 77, 255, 0.5));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Server Status Bar */
.server-status-bar {
    display: flex;
    gap: 16px;
    align-items: center;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dim);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-online .status-dot {
    background: var(--accent-green-neon);
    box-shadow: 0 0 8px var(--accent-green-neon), 0 0 16px rgba(57, 255, 20, 0.3);
    animation: pulse-green 2s ease-in-out infinite;
}

.status-offline .status-dot {
    background: var(--color-danger);
    box-shadow: 0 0 8px var(--color-danger);
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }


/* ═══════════════════════════════════════════════════════════
 *  HERO BANNER
 * ═══════════════════════════════════════════════════════════ */
.hero-banner {
    position: relative;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: height 0.4s ease-in-out;
}

@media (min-width: 769px) {
    .hero-banner:hover {
        height: 340px;
    }
}

.banner-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-banner);
    z-index: 1;
}




/* ═══════════════════════════════════════════════════════════
 *  FLASH MESSAGES
 * ═══════════════════════════════════════════════════════════ */
.flash-message {
    max-width: var(--content-max);
    margin: 16px auto;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: flash-in 0.4s var(--ease-out);
    position: relative;
}

.flash-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #6ee7a0;
}

.flash-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.flash-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.flash-success .flash-icon { background: rgba(34, 197, 94, 0.2); }
.flash-error .flash-icon   { background: rgba(239, 68, 68, 0.2); }

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
    padding: 0 4px;
    transition: opacity var(--transition-fast);
}

.flash-close:hover { opacity: 1; }

.flash-hide { animation: flash-out 0.5s var(--ease-out) forwards; }

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


/* ═══════════════════════════════════════════════════════════
 *  PAGE GRID (3-Column Layout)
 * ═══════════════════════════════════════════════════════════ */
.page-grid {
    max-width: var(--content-max);
    margin: 24px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    gap: 24px;
    align-items: start;
}


/* ═══════════════════════════════════════════════════════════
 *  SIDEBARS (Shared Styles)
 * ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

/* ── Panel Header ────────────────────────────────────────── */
.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: var(--gradient-panel);
    border-bottom: 1px solid var(--border-dim);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.panel-header h2,
.panel-header h3 {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.panel-header-icon {
    font-size: 1rem;
    filter: grayscale(40%);
}


/* ═══════════════════════════════════════════════════════════
 *  LEFT SIDEBAR — Navigation
 * ═══════════════════════════════════════════════════════════ */
.nav-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.nav-list {
    list-style: none;
    padding: 8px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: var(--bg-panel-hover);
    color: var(--text-primary);
    border-left-color: var(--accent-purple);
}

.nav-link.active {
    background: var(--accent-purple-dim);
    color: var(--accent-purple-soft);
    border-left-color: var(--accent-purple);
}

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

.nav-divider {
    height: 1px;
    margin: 6px 18px;
    background: var(--border-dim);
}

.nav-discord:hover { color: #5865F2; border-left-color: #5865F2; }
.nav-admin:hover   { color: var(--accent-green-neon); border-left-color: var(--accent-green-neon); }
.nav-logout:hover  { color: var(--color-danger); border-left-color: var(--color-danger); }


/* ═══════════════════════════════════════════════════════════
 *  RIGHT SIDEBAR — Widgets
 * ═══════════════════════════════════════════════════════════ */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.widget {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.widget-body {
    padding: 16px 18px;
}

.widget-footer {
    padding: 10px 18px;
    border-top: 1px solid var(--border-dim);
    text-align: center;
}

.widget-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-purple-soft);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.widget-link:hover { color: var(--accent-green-neon); }

/* Quick Login Widget */
.quick-login-form {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-login-form .input-field {
    padding: 10px 12px;
    font-size: 0.85rem;
}

/* Account Widget */
.widget-welcome {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.widget-username {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-purple-soft);
    margin-bottom: 14px;
}

/* Discord Widget */
.widget-discord {
    border-color: rgba(88, 101, 242, 0.25);
}

.discord-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Server Info Widget */
.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-dim);
    font-size: 0.85rem;
}

.info-list li:last-child { border-bottom: none; }

.info-label { color: var(--text-muted); }
.info-value { color: var(--text-primary); font-weight: 500; }


/* ═══════════════════════════════════════════════════════════
 *  MAIN CONTENT AREA
 * ═══════════════════════════════════════════════════════════ */
.content-area {
    min-height: 60vh;
}

.section-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-dim);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

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


/* ═══════════════════════════════════════════════════════════
 *  NEWS CARDS
 * ═══════════════════════════════════════════════════════════ */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.news-card:hover {
    border-color: var(--border-subtle);
    box-shadow: var(--glow-combined), var(--shadow-card);
    transform: translateY(-2px);
}

.news-card-header {
    padding: 20px 24px 14px;
    border-bottom: 1px solid var(--border-dim);
    background: var(--gradient-panel);
}

.news-thumbnail {
    width: 100%;
    max-height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-dim);
}
.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-category {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1px;
    border: 1px solid currentColor;
}
.category-update { color: var(--color-success); background: rgba(34, 197, 94, 0.1); }
.category-event { color: var(--accent-purple-soft); background: rgba(192, 132, 252, 0.1); }
.category-maintenance { color: var(--color-warning); background: rgba(245, 158, 11, 0.1); }
.category-patch { color: var(--accent-cyan); background: rgba(0, 240, 255, 0.1); }
.category-other { color: var(--text-secondary); background: rgba(154, 152, 184, 0.1); }

.news-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.news-meta strong {
    color: var(--accent-purple-soft);
    font-weight: 500;
}

.news-body {
    padding: 20px 24px;
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.news-footer {
    padding: 10px 24px;
    border-top: 1px solid var(--border-dim);
}

.news-edited {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.5;
}


/* ═══════════════════════════════════════════════════════════
 *  FORMS
 * ═══════════════════════════════════════════════════════════ */
.form-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.form {
    padding: 28px 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.input-field {
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

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

.input-field:focus {
    border-color: var(--accent-purple);
    box-shadow: var(--glow-input-focus);
}

.input-field:hover:not(:focus) {
    border-color: var(--border-active);
}

.textarea-large {
    resize: vertical;
    min-height: 200px;
    line-height: 1.6;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.form-hint code {
    background: rgba(155, 77, 255, 0.1);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.82em;
    color: var(--accent-purple-soft);
}

.form-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border-dim);
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.link-accent {
    color: var(--accent-purple-soft);
    font-weight: 600;
}

.link-accent:hover {
    color: var(--accent-green-neon);
}

/* 2FA Inputs */
.two-factor-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

.input-2fa {
    width: 48px;
    height: 56px;
    font-size: 1.5rem;
    text-align: center;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

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


/* ═══════════════════════════════════════════════════════════
 *  BUTTONS
 * ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--gradient-purple);
    color: #fff;
    border-color: var(--accent-purple);
    box-shadow: 0 2px 12px rgba(155, 77, 255, 0.25);
}

.btn-primary:hover {
    box-shadow: var(--glow-purple);
    transform: translateY(-1px);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Glow effect element inside button */
.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover .btn-glow {
    transform: translateX(100%);
}

.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.btn-outline:hover {
    background: var(--bg-panel-hover);
    color: var(--text-primary);
    border-color: var(--accent-purple);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.4);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.25);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: #fff;
    border-color: #5865F2;
}

.btn-discord:hover {
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

.btn-sm { padding: 8px 14px; font-size: 0.8rem; }
.btn-full { width: 100%; }

.btn-text {
    position: relative;
    z-index: 1;
}


/* ═══════════════════════════════════════════════════════════
 *  ACCOUNT DASHBOARD
 * ═══════════════════════════════════════════════════════════ */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.info-card-body {
    padding: 20px;
}

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

.info-table tr {
    border-bottom: 1px solid var(--border-dim);
}

.info-table tr:last-child { border-bottom: none; }

.info-table td {
    padding: 10px 0;
    font-size: 0.88rem;
}

.info-table .info-label {
    color: var(--text-muted);
    width: 40%;
    font-weight: 500;
}

.info-table .info-value {
    color: var(--text-primary);
    font-weight: 500;
}

.actions-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* ═══════════════════════════════════════════════════════════
 *  ADMIN PANEL
 * ═══════════════════════════════════════════════════════════ */
.admin-toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.table-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

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

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

.data-table thead {
    background: var(--gradient-panel);
}

.data-table th {
    padding: 14px 16px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border-dim);
}

.data-table td {
    padding: 12px 16px;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--border-dim);
    color: var(--text-secondary);
}

.data-table tbody tr:hover {
    background: var(--bg-panel-hover);
}

.data-table tbody tr:last-child td { border-bottom: none; }

.col-id { color: var(--text-muted); font-family: monospace; width: 60px; }
.col-date { white-space: nowrap; font-size: 0.82rem; color: var(--text-muted); }
.col-actions {
    white-space: nowrap;
    text-align: right;
    width: 180px;
}

.col-actions .btn { margin-left: 6px; }

.inline-form { display: inline; }


/* ═══════════════════════════════════════════════════════════
 *  RULES PAGE
 * ═══════════════════════════════════════════════════════════ */
.rules-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 28px;
}

.rule-section {
    margin-bottom: 28px;
}

.rule-section:last-child { margin-bottom: 0; }

.rule-heading {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-purple-soft);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.rule-list {
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rule-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rule-list li::marker {
    color: var(--accent-purple);
}


/* ═══════════════════════════════════════════════════════════
 *  ERROR PAGES
 * ═══════════════════════════════════════════════════════════ */
.error-page {
    text-align: center;
    padding: 80px 20px;
}

.error-code {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(155, 77, 255, 0.3));
    margin-bottom: 12px;
    line-height: 1;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}


/* ═══════════════════════════════════════════════════════════
 *  FOOTER
 * ═══════════════════════════════════════════════════════════ */
.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border-dim);
    background: var(--bg-panel);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    opacity: 0.7;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-purple-soft);
}


/* ═══════════════════════════════════════════════════════════
 *  RESPONSIVE BREAKPOINTS
 * ═══════════════════════════════════════════════════════════ */

/* Tablet: stack right sidebar below content */
@media (max-width: 1100px) {
    .page-grid {
        grid-template-columns: var(--sidebar-width) 1fr;
    }

    .sidebar-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
        position: static;
    }
}

/* Mobile: single column */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
    }

    .page-grid {
        grid-template-columns: 1fr;
        padding: 0 16px;
        gap: 16px;
    }

    /* Header */
    .mobile-menu-toggle { display: flex; }
    .server-status-bar { display: none; }

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

    /* Banner */
    .hero-banner { height: 220px; }
    .banner-title { font-size: 2rem; letter-spacing: 3px; }
    .banner-tagline { font-size: 0.9rem; letter-spacing: 1.5px; }

    /* Left sidebar as mobile drawer */
    .sidebar-left {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 280px;
        height: calc(100vh - var(--header-height));
        z-index: 999;
        transform: translateX(-100%);
        transition: transform var(--transition-normal);
        overflow-y: auto;
        background: var(--bg-dark);
        border-right: 1px solid var(--border-dim);
    }

    .sidebar-left.sidebar-open {
        transform: translateX(0);
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.6);
    }

    .nav-panel {
        border-radius: 0;
        border: none;
    }

    /* Account grid */
    .account-grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .form {
        padding: 20px 16px;
    }

    .form-footer {
        padding: 14px 16px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    /* Admin table */
    .admin-toolbar {
        flex-direction: column;
    }

    .admin-toolbar .btn {
        width: 100%;
    }

    /* Footer */
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .banner-title { font-size: 1.6rem; }
    .banner-tagline { font-size: 0.78rem; }
    .hero-banner { height: 180px; }

    .section-title { font-size: 1.2rem; }
}


/* ═══════════════════════════════════════════════════════════
 *  ANIMATIONS & UTILITIES
 * ═══════════════════════════════════════════════════════════ */

/* Subtle entrance animation for cards */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.news-card,
.form-card,
.info-card,
.table-card,
.rules-card {
    animation: fade-up 0.5s var(--ease-out) both;
}

.news-card:nth-child(2) { animation-delay: 0.08s; }
.news-card:nth-child(3) { animation-delay: 0.16s; }
.news-card:nth-child(4) { animation-delay: 0.24s; }
.news-card:nth-child(5) { animation-delay: 0.32s; }

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(155, 77, 255, 0.3);
    color: #fff;
}
