/* ═══════════════════════════════════════════════════════════════
   SkyBreak RP Portal — Dark Glass Theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────────── */
:root {
    /* ── SkyBreak Brand Colours ── */
    --skybreak-black:      #000000;
    --skybreak-deep-navy:  #0A0F1F;
    --skybreak-mid-blue:   #1A2A4A;
    --skybreak-primary:    #1E90FF;
    --skybreak-cyan:       #00E5FF;
    --skybreak-teal:       #00B8D9;

    /* ── Mapped Theme Vars ── */
    --bg:           #000000;
    --bg-surface:   #0A0F1F;
    --bg-card:      rgba(26,42,74,0.5);
    --bg-card-hover:rgba(26,42,74,0.75);
    --bg-input:     rgba(26,42,74,0.6);

    /* Primary accent = SkyBreak primary blue */
    --purple:       #1E90FF;
    --purple-dark:  #1565C0;
    --purple-light: #00E5FF;
    --purple-glow:  rgba(30,144,255,0.35);

    --blue:         #00B8D9;
    --blue-dark:    #0083A8;
    --green:        #00E676;
    --red:          #FF3D57;
    --yellow:       #FFD740;
    --orange:       #FF9100;
    --discord:      #5865F2;

    --text:         #FFFFFF;
    --text-muted:   #5A7A9E;
    --text-dim:     #8BA8C8;

    --border:       rgba(30,144,255,0.15);
    --border-hover: rgba(0,229,255,0.4);

    --radius-sm:    8px;
    --radius:       12px;
    --radius-lg:    16px;
    --radius-xl:    24px;

    --nav-height:   64px;
    --sidebar-w:    240px;

    --transition:   0.2s ease;
    --transition-slow: 0.4s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: var(--text);
}
ul { list-style: none; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ── Container ───────────────────────────────────────────────── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 999;
    background: rgba(0,10,20,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 24px;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-logo-mark {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
}

.brand-rp {
    color: var(--purple);
    font-weight: 900;
}

/* Nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
    white-space: nowrap;
}

.nav-link svg { width: 15px; height: 15px; }

.nav-link:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.nav-link.active {
    color: var(--purple-light);
    background: rgba(30,144,255,0.12);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* User pill */
.user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: .85rem;
    font-weight: 500;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* Burger */
.nav-burger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px;
    color: var(--text-muted);
    transition: color var(--transition), background var(--transition);
}
.nav-burger:hover { color: var(--text); background: var(--bg-card); }
.nav-burger svg { width: 18px; height: 18px; }

/* ── Mobile drawer ───────────────────────────────────────────── */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #0A0F1F;
    border-right: 1px solid var(--border);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    transition: left 0.3s ease;
}
.mobile-drawer.open { left: 0; }

.drawer-brand {
    padding: 8px 4px 20px;
    font-size: 1.1rem;
    font-weight: 800;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .9rem;
    font-weight: 500;
    transition: all var(--transition);
}
.drawer-link svg { width: 16px; height: 16px; }
.drawer-link:hover, .drawer-link.active {
    color: var(--purple-light);
    background: rgba(30,144,255,0.12);
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1099;
    display: none;
}
.drawer-overlay.open { display: block; }

/* ══════════════════════════════════════════════════════════════
   MAIN / TAB SYSTEM
   ══════════════════════════════════════════════════════════════ */
#main-content {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.tab-section { display: none; }
.tab-section.active { display: block; }

/* ══════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px;
    overflow: hidden;
}

/* Grid overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(30,144,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,144,255,0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Glows */
.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}
.hero-glow-1 {
    width: 600px; height: 600px;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(30,144,255,0.18) 0%, transparent 70%);
}
.hero-glow-2 {
    width: 400px; height: 400px;
    bottom: 0; left: 10%;
    background: radial-gradient(circle, rgba(0,184,217,0.12) 0%, transparent 70%);
}
.hero-glow-3 {
    width: 300px; height: 300px;
    top: 20%; right: 10%;
    background: radial-gradient(circle, rgba(30,144,255,0.08) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(30,144,255,0.12);
    border: 1px solid rgba(30,144,255,0.3);
    color: var(--purple-light);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s infinite;
}

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

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--text);
}

.hero-title-highlight {
    background: linear-gradient(135deg, var(--purple-light) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-btn {
    padding: 13px 28px;
    font-size: 1rem;
    font-weight: 600;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    animation: bounce 2s infinite;
}
.hero-scroll-indicator svg { width: 22px; height: 22px; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ── Feature strip ───────────────────────────────────────────── */
.features-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    border-right: 1px solid var(--border);
    transition: background var(--transition);
}
.feature-card:last-child { border-right: none; }
.feature-card:hover { background: var(--bg-card); }

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(30,144,255,0.12);
    border: 1px solid rgba(30,144,255,0.25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-title {
    font-size: .9rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.feature-sub {
    font-size: .8rem;
    color: var(--text-muted);
}

/* ── Section grid ─────────────────────────────────────────────── */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 60px;
    padding-bottom: 60px;
}

/* ══════════════════════════════════════════════════════════════
   CARDS
   ══════════════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color var(--transition), transform var(--transition);
}
.card:hover { border-color: rgba(30,144,255,0.2); }

.card-welcome { padding: 28px; }

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
}
.card-icon {
    width: 36px;
    height: 36px;
    background: rgba(30,144,255,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-light);
    flex-shrink: 0;
}
.card-icon svg { width: 16px; height: 16px; }

.card-body p {
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 12px;
}
.card-body p:last-child { margin-bottom: 0; }

/* Rules list */
.rules-list {
    list-style: decimal;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rules-list li {
    color: var(--text-dim);
    font-size: .9rem;
    line-height: 1.6;
    padding-left: 4px;
}

/* ── Discord banner ───────────────────────────────────────────── */
.discord-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: rgba(30,144,255, 0.1);
    border: 1px solid rgba(30,144,255, 0.25);
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
}
.discord-banner-icon { color: #00B8D9; flex-shrink: 0; }
.discord-banner-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.discord-banner-text strong { font-weight: 700; }
.discord-banner-text span { color: var(--text-muted); font-size: .85rem; }

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.footer-brand { font-size: 1.2rem; font-weight: 800; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: .875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-muted); font-size: .8rem; }

/* ══════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: .875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.btn-primary {
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue-dark) 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(30,144,255,0.3);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(30,144,255,0.45);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: rgba(30,144,255,0.5);
    background: rgba(30,144,255,0.08);
    color: var(--purple-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-card-hover);
    color: var(--text);
    border-color: rgba(255,255,255,0.15);
}

.btn-discord {
    background: var(--discord);
    color: #fff;
}
.btn-discord:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-success:hover { background: rgba(16, 185, 129, 0.25); }

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover { background: rgba(239, 68, 68, 0.25); }

.btn-warning {
    background: rgba(245,158,11,0.15);
    color: #FCD34D;
    border: 1px solid rgba(245,158,11,0.3);
}
.btn-warning:hover { background: rgba(245,158,11,0.25); }

.btn-lg { padding: 13px 28px; font-size: 1rem; }

.btn-inline {
    background: none;
    border: none;
    color: var(--purple-light);
    font-weight: 600;
    cursor: pointer;
    font-size: inherit;
    text-decoration: underline;
    padding: 0 4px;
}

/* ══════════════════════════════════════════════════════════════
   BADGES
   ══════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: .75rem;
    font-weight: 600;
    text-transform: capitalize;
}
.badge-open    { background: rgba(0,229,255,0.12); color: #00E5FF; border: 1px solid rgba(0,229,255,0.3); }
.badge-claimed { background: rgba(245,158,11,0.15); color: #FCD34D; border: 1px solid rgba(245,158,11,0.3); }
.badge-closed  { background: rgba(100,116,139,0.15); color: var(--text-muted); border: 1px solid rgba(100,116,139,0.3); }
.badge-linked  { background: rgba(16,185,129,0.15); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }
.badge-active  { background: rgba(239,68,68,0.15); color: #FCA5A5; border: 1px solid rgba(239,68,68,0.3); }

/* ══════════════════════════════════════════════════════════════
   FORM ELEMENTS
   ══════════════════════════════════════════════════════════════ */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}
.form-field label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input[type="text"], input[type="password"], input[type="email"],
textarea, select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    resize: vertical;
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: rgba(30,144,255,0.5);
    box-shadow: 0 0 0 3px rgba(30,144,255,0.1);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }

select option { background: #1A2A4A; }

.form-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius-sm);
    color: #FCA5A5;
    padding: 10px 14px;
    font-size: .875rem;
    margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════════
   SUPPORT PAGE
   ══════════════════════════════════════════════════════════════ */

/* Login screen */
.support-login-screen {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.support-login-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: rgba(10,15,31,0.8);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    text-align: center;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.slc-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(30,144,255,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.slc-icon {
    width: 72px;
    height: 72px;
    background: rgba(30,144,255,0.15);
    border: 1px solid rgba(30,144,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: #00B8D9;
}

.staff-slc-icon {
    background: rgba(30,144,255,0.15);
    border-color: rgba(30,144,255,0.3);
    color: var(--purple-light);
}

.support-login-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.support-login-card p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: .9rem;
}

.slc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}
.slc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.slc-step-num {
    width: 32px;
    height: 32px;
    background: rgba(30,144,255,0.15);
    border: 1px solid rgba(30,144,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    color: var(--purple-light);
}
.slc-step-text {
    font-size: .7rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.slc-step-arrow { color: var(--text-muted); }
.slc-step-arrow svg { width: 14px; height: 14px; }

/* Login form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    text-align: left;
}

/* Support header */
.support-header {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 32px 0 20px;
}
.support-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.support-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.support-sub { color: var(--text-muted); font-size: .875rem; }
.support-header-actions { display: flex; gap: 10px; align-items: center; }

/* Notice */
.notice {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(245,158,11,0.08);
    border-top: 1px solid rgba(245,158,11,0.2);
    border-bottom: 1px solid rgba(245,158,11,0.2);
    color: #FCD34D;
    font-size: .875rem;
}
.notice svg { width: 15px; height: 15px; flex-shrink: 0; }

.link-code-box {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30,144,255,0.08);
    border-bottom: 1px solid rgba(30,144,255,0.2);
    font-size: .875rem;
    color: var(--purple-light);
}
.link-code-box svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Ticket list */
.ticket-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 16px;
}
.ticket-toolbar h2 { font-size: 1.1rem; font-weight: 700; }

/* Ticket card */
.ticket-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition);
}
.ticket-card:hover {
    border-color: rgba(30,144,255,0.3);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
}

.ticket-card-id {
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}
.ticket-card-body { flex: 1; min-width: 0; }
.ticket-card-title {
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}
.ticket-card-sub {
    font-size: .78rem;
    color: var(--text-muted);
}
.ticket-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.ticket-card-time {
    font-size: .75rem;
    color: var(--text-muted);
}

/* Thread */
.thread-layout { padding: 24px 0; }
.back-btn { margin-bottom: 16px; }
.thread-main {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.thread-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    flex-wrap: wrap;
}
.thread-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 420px;
    min-height: 200px;
}
.thread-reply {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    align-items: flex-start;
}
.thread-reply textarea {
    flex: 1;
    resize: none;
    min-height: 60px;
    margin: 0;
}

/* Message bubbles */
.message-bubble {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    max-width: 80%;
    align-self: flex-start;
}
.message-bubble.staff {
    background: rgba(30,144,255,0.08);
    border-color: rgba(30,144,255,0.2);
    align-self: flex-end;
}
.bubble-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: .75rem;
    color: var(--text-muted);
}
.bubble-name { font-weight: 700; color: var(--text); }
.bubble-name.is-staff { color: var(--purple-light); }
.bubble-text { font-size: .9rem; line-height: 1.6; color: var(--text-dim); }

/* ══════════════════════════════════════════════════════════════
   MODAL
   ══════════════════════════════════════════════════════════════ */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
}
.modal-backdrop.open { display: flex; }

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0A0F1F;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    z-index: 1300;
    display: none;
    flex-direction: column;
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}
.modal.open {
    display: flex;
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    flex-shrink: 0;
}
.modal-close:hover { color: var(--text); background: var(--bg-card-hover); }
.modal-close svg { width: 18px; height: 18px; }

.modal-body {
    padding: 24px 28px;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 28px;
    border-top: 1px solid var(--border);
}

/* Category buttons */
.modal-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}
.cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
    font-size: .75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.cat-btn svg { width: 18px; height: 18px; }
.cat-btn:hover {
    border-color: rgba(30,144,255,0.4);
    color: var(--purple-light);
    background: rgba(30,144,255,0.08);
}
.cat-btn.active {
    border-color: var(--purple);
    color: var(--purple-light);
    background: rgba(30,144,255,0.15);
    box-shadow: 0 0 0 1px rgba(30,144,255,0.3);
}

/* ══════════════════════════════════════════════════════════════
   DONATE / STORE
   ══════════════════════════════════════════════════════════════ */
.page-hero-mini {
    position: relative;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.page-hero-mini-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(30,144,255,0.12) 0%, transparent 70%);
}
.page-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
}
.page-sub { color: var(--text-muted); font-size: .95rem; }

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all var(--transition);
}
.package-card:hover {
    border-color: rgba(30,144,255,0.3);
    transform: translateY(-2px);
}
.package-card.featured {
    border-color: rgba(30,144,255,0.5);
    background: rgba(30,144,255,0.06);
}
.pkg-category { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--purple-light); font-weight: 700; }
.pkg-name { font-size: 1.1rem; font-weight: 700; }
.pkg-price { font-size: 1.8rem; font-weight: 900; }
.pkg-price span { font-size: .85rem; font-weight: 400; color: var(--text-muted); }
.pkg-desc { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

.tebex-fallback { border-radius: var(--radius-lg); overflow: hidden; }
.tebex-fallback iframe { width: 100%; height: 700px; border: none; }

/* ══════════════════════════════════════════════════════════════
   STAFF PANEL
   ══════════════════════════════════════════════════════════════ */
.staff-layout {
    display: flex;
    height: calc(100vh - var(--nav-height));
    overflow: hidden;
}

/* Sidebar */
.staff-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: linear-gradient(180deg, #0A0F1F 0%, #0A0F1F 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    font-size: 1rem;
    font-weight: 800;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-user {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    flex-shrink: 0;
}
.sidebar-user-name { font-size: .875rem; font-weight: 700; }
.sidebar-user-role { font-size: .75rem; color: var(--purple-light); }

.sidebar-nav {
    flex: 1;
    padding: 12px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow-y: auto;
}

.sidebar-nav-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    padding: 12px 8px 6px;
    font-weight: 700;
}

.snav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: .875rem;
    font-weight: 500;
    transition: all var(--transition);
    position: relative;
}
.snav svg { width: 16px; height: 16px; flex-shrink: 0; }
.snav span:not(.snav-badge) { flex: 1; }
.snav:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.snav.active {
    color: var(--purple-light);
    background: rgba(30,144,255,0.15);
    font-weight: 600;
}
.snav.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: var(--purple);
    border-radius: 0 2px 2px 0;
}

.snav-badge {
    background: var(--red);
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    min-width: 18px;
    text-align: center;
}

.sidebar-footer {
    padding: 16px 12px 20px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-online-label {
    font-size: .65rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

#sidebar-online-staff {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.online-staff-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-dim);
    padding: 4px 0;
}
.online-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--green);
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    background: rgba(239,68,68,0.08);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: var(--radius-sm);
    color: #FCA5A5;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.btn-logout:hover { background: rgba(239,68,68,0.15); }
.btn-logout svg { width: 15px; height: 15px; }

/* Staff main content */
.staff-content {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    background: var(--bg);
}

/* View title */
.view-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.view-sub {
    color: var(--text-muted);
    font-size: .875rem;
    margin-bottom: 24px;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    backdrop-filter: blur(12px);
    transition: all var(--transition);
    cursor: default;
}
.stat-card:hover { border-color: rgba(30,144,255,0.25); transform: translateY(-1px); }

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}
.stat-icon svg { width: 18px; height: 18px; }

.stat-card.accent .stat-icon { background: rgba(30,144,255,0.15); color: var(--purple-light); }
.stat-card.blue   .stat-icon { background: rgba(0,184,217,0.15); color: #00B8D9; }
.stat-card.red    .stat-icon { background: rgba(239,68,68,0.15); color: #FCA5A5; }
.stat-card.yellow .stat-icon { background: rgba(245,158,11,0.15); color: #FCD34D; }
.stat-card.green  .stat-icon { background: rgba(16,185,129,0.15); color: #34D399; }
.stat-card.orange .stat-icon { background: rgba(249,115,22,0.15); color: #FB923C; }

.stat-value { font-size: 2rem; font-weight: 900; line-height: 1; }
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* Ticket filter tabs */
.ticket-filter-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 99px;
    margin-bottom: 20px;
    width: fit-content;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 7px 18px;
    border-radius: 99px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.filter-tab:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.filter-tab.active {
    background: linear-gradient(135deg, var(--purple) 0%, var(--blue-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(30,144,255,0.4);
}

/* Staff ticket cards */
.staff-ticket-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all var(--transition);
}
.staff-ticket-card:hover {
    border-color: rgba(30,144,255,0.3);
    background: var(--bg-card-hover);
    transform: translateX(2px);
}

.stc-id {
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    font-family: monospace;
    white-space: nowrap;
    min-width: 65px;
}
.stc-body { flex: 1; min-width: 0; }
.stc-title {
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.stc-sub { font-size: .78rem; color: var(--text-muted); }
.stc-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}
.stc-time { font-size: .75rem; color: var(--text-muted); }
.stc-team {
    font-size: .72rem;
    font-weight: 700;
    color: var(--purple-light);
}

/* Staff ticket detail (split view) */
.staff-ticket-detail {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-top: 20px;
}

.std-main { display: flex; flex-direction: column; gap: 0; }
.std-side { display: flex; flex-direction: column; gap: 16px; }

.std-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.std-card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
}

.std-card-body { padding: 16px 18px; }

.std-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: .85rem;
}
.std-info-row:last-child { border-bottom: none; }
.std-info-label { color: var(--text-muted); }
.std-info-val { font-weight: 600; text-align: right; }

.std-actions { display: flex; flex-direction: column; gap: 8px; }
.std-actions .btn { justify-content: center; }

/* Toolbar / search */
.toolbar {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.search-input {
    flex: 1;
    max-width: 400px;
    margin: 0;
}

/* Data table */
.data-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}
.data-table thead th {
    padding: 12px 16px;
    text-align: left;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    font-weight: 700;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.data-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
    cursor: pointer;
}
.data-table tbody tr:last-child { border-bottom: none; }
.data-table tbody tr:hover { background: var(--bg-card-hover); }
.data-table td { padding: 12px 16px; vertical-align: middle; }
.name-col { font-weight: 600; }

/* Player profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}
.profile-avatar {
    width: 60px;
    height: 60px;
    background: rgba(30,144,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}
.profile-name { font-size: 1.1rem; font-weight: 800; }
.profile-license { font-size: .75rem; color: var(--text-muted); font-family: monospace; margin: 2px 0; }

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.section-title {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.warn-item, .ban-item, .note-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.warn-item:last-of-type, .ban-item:last-of-type, .note-item:last-of-type { border-bottom: none; }
.item-reason { font-size: .875rem; margin-bottom: 3px; }
.item-meta { font-size: .75rem; color: var(--text-muted); }

/* Chat */
.chat-wrap {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-height) - 160px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-input-row {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}
.chat-input-row input { flex: 1; margin: 0; }
.chat-msg {
    display: flex;
    gap: 8px;
    align-items: baseline;
    font-size: .875rem;
    flex-wrap: wrap;
}
.chat-msg-name { font-weight: 700; flex-shrink: 0; }
.chat-msg-text { color: var(--text-dim); flex: 1; }
.chat-msg-time { font-size: .72rem; color: var(--text-muted); white-space: nowrap; }

/* Settings */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 640px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}
.settings-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}
.settings-form input, .settings-form textarea { margin: 0; }

/* Thread card in staff view */
.thread-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ══════════════════════════════════════════════════════════════
   MISC / UTILS
   ══════════════════════════════════════════════════════════════ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-muted);
}
.empty-state svg { width: 40px; height: 40px; opacity: 0.4; }
.empty-state p { font-size: .9rem; }

.loading-spin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 48px;
    color: var(--text-muted);
    font-size: .875rem;
}
.loading-spin svg { width: 18px; height: 18px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 600;
    backdrop-filter: blur(12px);
    border: 1px solid;
    animation: slideIn 0.3s ease;
    max-width: 340px;
}
.toast.success { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.3); color: #34D399; }
.toast.error   { background: rgba(239,68,68,0.15);  border-color: rgba(239,68,68,0.3);  color: #FCA5A5; }
.toast.info    { background: rgba(0,229,255,0.12);   border-color: rgba(0,229,255,0.3);   color: #00E5FF; }

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

.mt-auto { margin-top: auto; }
.full-width { width: 100%; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .features-strip { grid-template-columns: repeat(2, 1fr); }
    .section-grid { grid-template-columns: 1fr; }
    .staff-ticket-detail { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-burger { display: flex; }

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

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

    .staff-layout { flex-direction: column; }
    .staff-sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        overflow-x: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .sidebar-nav { flex-direction: row; padding: 8px; }
    .sidebar-brand, .sidebar-user, .sidebar-footer { display: none; }
    .staff-content { padding: 16px; }

    .support-login-card { padding: 32px 24px; }
    .slc-steps { flex-direction: column; gap: 8px; }
    .slc-step-arrow { transform: rotate(90deg); }

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

    .ticket-filter-tabs { border-radius: var(--radius-lg); }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2.4rem; }
    .hero-actions { flex-direction: column; }
    .hero-btn { width: 100%; justify-content: center; }
    .modal-category-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
