/* ============================================
   DEVIXY STYLE — discord-verify-guard
   Dark theme with purple accent, glassmorphism
   ============================================ */

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

:root {
    --bg-primary: #1B1B1C;
    --bg-secondary: #242426;
    --bg-overlay: rgba(255, 255, 255, 0.05);

    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: #6B7280;

    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-medium: rgba(255, 255, 255, 0.2);

    --brand-primary: #8B5CF6;
    --brand-hover: rgba(139, 92, 246, 0.2);
    --brand-active: #7C3AED;
    --brand-glow: rgba(139, 92, 246, 0.3);

    --success: #22C55E;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;

    /* Legacy aliases for index.php inline styles */
    --bg-color: var(--bg-primary);
    --surface-color: var(--bg-secondary);
    --surface-hover: #2a2a2c;
    --accent-purple: var(--brand-primary);
    --accent-teal: #14b8a6;
    --accent-blue: #3b82f6;
    --text-color: var(--text-primary);
    --border-color: rgba(255, 255, 255, 0.1);
    --radius-lg: 16px;
    --radius-md: 12px;
}

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

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 26px 26px;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    min-height: 100vh;
}

/* Subtle animated background radial glow */
body::before {
    content: '';
    position: fixed;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* ─── Scrollbar ─────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(139, 92, 246, 0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 92, 246, 0.7); }

/* ─── Navbar ────────────────────────────────── */
.navbar {
    background: rgba(27, 27, 28, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 7.6923%;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
    background: linear-gradient(
        120deg,
        #ffffff 0%,
        #ffffff 20%,
        #c4b5fd 35%,
        #ffffff 50%,
        #ffffff 65%,
        #a78bfa 80%,
        #ffffff 100%
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: logoShimmer 4s ease-in-out infinite;
}

@keyframes logoShimmer {
    0%   { background-position: 200% center; filter: drop-shadow(0 0 0px rgba(139, 92, 246, 0)); }
    30%  { background-position: 100% center; filter: drop-shadow(0 0 0px rgba(139, 92, 246, 0)); }
    45%  { background-position: 60%  center; filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.55)); }
    55%  { background-position: 40%  center; filter: drop-shadow(0 0 16px rgba(139, 92, 246, 0.85)); }
    70%  { background-position: 10%  center; filter: drop-shadow(0 0 4px rgba(139, 92, 246, 0.25)); }
    100% { background-position: -100% center; filter: drop-shadow(0 0 0px rgba(139, 92, 246, 0)); }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ─── Container ─────────────────────────────── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* ─── Typography ─────────────────────────────── */
h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    background: none;
    -webkit-text-fill-color: unset;
}

h2 {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

p { color: var(--text-secondary); }

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

/* ─── Buttons ────────────────────────────────── */
.btn {
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1.2;
    white-space: nowrap;
    border: none;
}

.btn-primary {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 2px 12px rgba(139, 92, 246, 0.25);
}

.btn-primary:hover {
    background: var(--brand-active);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.45);
    transform: translateY(-2px);
    color: #fff;
}

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

.btn-outline {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-medium);
    transform: translateY(-1px);
    color: var(--text-primary);
}

/* ─── Cards ──────────────────────────────────── */
.card {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(59, 130, 246, 0.04) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08);
}

/* ─── Home hero feature cards ─────────────────── */
.card[style*="text-align: center"] {
    background: rgba(255, 255, 255, 0.03);
}

/* ─── Forms ──────────────────────────────────── */
input[type="email"],
input[type="password"],
input[type="text"],
input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    width: 100%;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

/* ─── Tables ─────────────────────────────────── */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.9rem;
}

th {
    text-align: left;
    padding: 0.85rem 1rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-subtle);
}

td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ─── Badges ─────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
}

/* ─── FAQ ────────────────────────────────────── */
.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: var(--brand-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.12);
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(139, 92, 246, 0.2);
    background: rgba(139, 92, 246, 0.03);
}

.faq-item.active {
    border-color: rgba(139, 92, 246, 0.3);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(59, 130, 246, 0.03) 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.08);
}

.faq-trigger {
    width: 100%;
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
}

.faq-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.faq-icon { font-size: 1.3rem; }

.faq-chevron {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    flex-shrink: 0;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.95rem;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.faq-content a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: opacity 0.2s;
}

.faq-content a:hover { opacity: 0.75; text-decoration: underline; }

/* ─── Inline flag/risk colors ─────────────────── */
.flag-warning { color: var(--warning); font-weight: 700; }
.flag-danger  { color: var(--danger);  font-weight: 700; }

.badge-id {
    font-family: 'SFMono-Regular', Consolas, monospace;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-muted);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.8rem;
}

/* ─── Logs ───────────────────────────────────── */
.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

.data-dump {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.72rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.6rem;
    border-radius: 10px;
    max-height: 200px;
    overflow-y: auto;
    color: #94a3b8;
    border: 1px solid var(--border-subtle);
}

.match-card {
    border-left: 3px solid var(--danger);
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 0 10px 10px 0;
}

.log-entry {
    font-size: 0.8rem;
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-type { font-weight: 700; margin-right: 0.4rem; }
.log-INFO    { color: var(--info); }
.log-SUCCESS { color: var(--success); }
.log-WARN    { color: var(--warning); }
.log-ERROR   { color: var(--danger); }
.log-ADMIN   { color: var(--brand-primary); }

/* ─── Verify banner ──────────────────────────── */
.verify-banner {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

/* ─── Discord button override ─────────────────── */
.btn[style*="background: #5865F2"],
.btn[style*="background:#5865F2"] {
    background: #5865F2 !important;
    color: #fff !important;
    box-shadow: 0 2px 12px rgba(88, 101, 242, 0.3);
}

.btn[style*="background: #5865F2"]:hover,
.btn[style*="background:#5865F2"]:hover {
    background: #4752c4 !important;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.5);
    transform: translateY(-2px);
}

/* ─── Home hero section centering ─────────────── */
[style*="text-align: center"][style*="margin-top: 4rem"] h1 {
    background: linear-gradient(135deg, #ffffff 0%, rgba(139, 92, 246, 0.9) 60%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Hamburger Menu ─────────────────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    cursor: pointer;
    padding: 0 8px;
    flex-shrink: 0;
}

.nav-hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.25s ease;
    transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(27, 27, 28, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    z-index: 99;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu .btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1.25rem;
        position: relative;
    }

    /* Hide desktop nav links, show hamburger */
    .nav-links { display: none; }
    .nav-hamburger { display: flex; }

    .container { padding: 2rem 1rem; }

    h1 { font-size: 2.5rem; letter-spacing: -1px; }
    h2 { font-size: 1.35rem; }

    /* Cards: reduce padding on mobile */
    .card { padding: 1.25rem; }

    /* Verify banner: stack vertically on small screens */
    .verify-banner { font-size: 0.82rem; }

    /* Table: horizontal scroll wrapper */
    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrap table { min-width: 580px; }

    /* Stats row: 2 columns on tablet */
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.2rem; }

    .navbar { height: 60px; }
    .nav-mobile-menu { top: 60px; }

    .logo { font-size: 18px; }

    .container { padding: 1.5rem 0.875rem; }

    /* Cards tighter */
    .card { padding: 1rem; border-radius: 12px; }

    /* Verify banner: smaller gap */
    .verify-banner {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.85rem 1rem;
    }

    /* Dashboard discord row: stack on very small screens */
    .discord-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .discord-actions {
        flex-direction: row;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    /* Buttons */
    .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }

    /* Stats row: still 2 cols but smaller */
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat-value { font-size: 1.3rem; }

    /* Admin: full width table, tighter padding */
    .admin-layout { padding: 0.875rem; gap: 1rem; }
    .table-wrap th, .table-wrap td { padding: 0.65rem 0.75rem; font-size: 0.8rem; }

    /* Action buttons: allow wrap */
    .action-group { flex-wrap: wrap; }

    /* FAQ */
    .faq-trigger { padding: 1.1rem 1.25rem; font-size: 0.9rem; }
    .faq-content { font-size: 0.875rem; }

    /* Search bar: stack fields */
    .search-bar { flex-direction: column; gap: 0.6rem; }
    .search-field { min-width: unset; width: 100%; }

    /* Log entries: tighter */
    .log-entry { padding: 0.5rem 0.875rem; gap: 0.4rem; font-size: 0.75rem; }
}

@media (max-width: 360px) {
    h1 { font-size: 1.75rem; }
    .container { padding: 1.25rem 0.75rem; }
    .card { padding: 0.875rem; }
}

/* ─── Particle canvas (injected by JS) ─────────── */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* ════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ════════════════════════════════════════════════ */

/* ─── Utility colors ─────────────────────────── */
.text-success { color: #22c55e; }
.text-warning { color: #f59e0b; }
.text-danger  { color: #ef4444; }
.text-muted   { color: var(--text-muted); }
.text-purple  { color: var(--brand-primary); }

.flag-warning { color: #f59e0b; font-weight: 700; font-size: 0.78rem; }
.flag-danger  { color: #ef4444; font-weight: 700; font-size: 0.78rem; }

/* ─── Banned row ──────────────────────────────── */
.banned-row td { background: rgba(239,68,68,0.06) !important; }
.banned-row td:first-child { border-left: 3px solid #ef4444; }

/* ─── Admin two-column layout ─────────────────── */
.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: calc(100vh - 72px);
    position: relative;
    z-index: 1;
}

/* ─── Sidebar ─────────────────────────────────── */
.admin-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-self: start;
    position: sticky;
    top: 88px;
}

.sidebar-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.6rem 0.75rem 0.3rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    border-radius: 9px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.18s;
    border: 1px solid transparent;
}

.sidebar-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.08);
}

.sidebar-link.active {
    background: rgba(139,92,246,0.12);
    color: var(--brand-primary);
    border-color: rgba(139,92,246,0.22);
    font-weight: 600;
}

.sidebar-link svg { flex-shrink: 0; opacity: 0.75; }

/* ─── Admin main ──────────────────────────────── */
.admin-main { min-width: 0; }

/* ─── Page header ─────────────────────────────── */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
}

.page-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ─── Stats row ───────────────────────────────── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stat-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    transition: border-color 0.2s;
}

.stat-card:hover { border-color: rgba(139,92,246,0.25); }

.stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
    font-size: 1rem;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 0.1rem;
}

/* ─── Search bar ──────────────────────────────── */
.search-bar {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 150px;
}

.search-field label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.search-field input {
    padding: 0.45rem 0.75rem;
    font-size: 0.875rem;
    height: 36px;
}

/* ─── Table wrap ──────────────────────────────── */
.table-wrap {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
}

.table-wrap table { border-collapse: collapse; }

.table-wrap th {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 0.8rem 1.1rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.table-wrap td {
    padding: 0.85rem 1.1rem;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    vertical-align: middle;
}

.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: rgba(255,255,255,0.025); }

/* ─── User cell helpers ───────────────────────── */
.user-email { font-weight: 600; font-size: 0.875rem; margin-bottom: 0.12rem; }
.user-meta  { font-size: 0.7rem; color: var(--text-muted); line-height: 1.4; }
.user-discord { font-size: 0.7rem; color: #5b8dd9; margin-top: 0.1rem; }

/* ─── Status pills ────────────────────────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.status-pill::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pill-verified   { background: rgba(34,197,94,0.1);  color: #22c55e; }
.pill-verified::before   { background: #22c55e; }
.pill-unverified { background: rgba(245,158,11,0.1); color: #f59e0b; }
.pill-unverified::before { background: #f59e0b; }
.pill-banned     { background: rgba(239,68,68,0.12); color: #ef4444; }
.pill-banned::before     { background: #ef4444; }

/* ─── Action buttons xs ───────────────────────── */
.action-group { display: flex; gap: 0.4rem; flex-wrap: nowrap; }

.btn-xs {
    padding: 0.28rem 0.6rem;
    font-size: 0.72rem;
    border-radius: 7px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.18s;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}

.btn-xs-ghost {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
}
.btn-xs-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.btn-xs-warn {
    background: rgba(245,158,11,0.12);
    border: 1px solid rgba(245,158,11,0.25);
    color: #f59e0b;
}
.btn-xs-warn:hover { background: rgba(245,158,11,0.22); }

.btn-xs-danger {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.25);
    color: #ef4444;
}
.btn-xs-danger:hover { background: rgba(239,68,68,0.22); }

/* ─── Logs panel ──────────────────────────────── */
.logs-panel {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    margin-top: 1.5rem;
}

.logs-panel-header {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.02);
}

.logs-panel-title { font-size: 0.875rem; font-weight: 700; color: var(--text-primary); }

.log-entry {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.78rem;
    transition: background 0.15s;
}

.log-entry:last-child { border-bottom: none; }
.log-entry:hover { background: rgba(255,255,255,0.02); }

.log-type {
    font-weight: 700;
    font-size: 0.68rem;
    min-width: 58px;
    text-align: center;
    padding: 0.12rem 0.35rem;
    border-radius: 5px;
    flex-shrink: 0;
}

.log-INFO    { background: rgba(59,130,246,0.12);  color: #3b82f6; }
.log-SUCCESS { background: rgba(34,197,94,0.12);   color: #22c55e; }
.log-WARN    { background: rgba(245,158,11,0.12);  color: #f59e0b; }
.log-ERROR   { background: rgba(239,68,68,0.12);   color: #ef4444; }
.log-ADMIN   { background: rgba(139,92,246,0.12);  color: #8b5cf6; }

.log-time { color: var(--text-muted); font-size: 0.68rem; white-space: nowrap; flex-shrink: 0; }
.log-msg  { color: var(--text-secondary); flex: 1; }
.log-user { color: var(--text-muted); font-size: 0.68rem; }

/* ─── Detail cards grid ───────────────────────── */
.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.detail-card {
    background: rgba(255,255,255,0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1.3rem 1.4rem;
    transition: border-color 0.2s;
}

.detail-card:hover { border-color: rgba(139,92,246,0.18); }

.detail-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* ─── Match card ──────────────────────────────── */
.match-card {
    border-left: 3px solid #ef4444;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.5rem;
    background: rgba(239,68,68,0.04);
    border-radius: 0 10px 10px 0;
}

/* ─── Pagination ──────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
}

/* ─── Responsive admin ────────────────────────── */
@media (max-width: 1024px) {
    .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    .details-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .admin-layout { padding: 1rem; }
    .details-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .action-group { flex-wrap: wrap; }
}

/* ─── Admin responsive overrides (mobile-complete) ── */
@media (max-width: 960px) {
    .admin-layout { padding: 1.5rem 1.25rem; }
    .admin-sidebar {
        position: static !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.35rem;
    }
    .sidebar-section-label { display: none; }
    .sidebar-link { font-size: 0.8rem; padding: 0.45rem 0.7rem; }
}

@media (max-width: 640px) {
    .admin-layout { padding: 0.875rem !important; gap: 0.875rem; }
    .page-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .table-wrap table { min-width: 600px; }
    .table-wrap th, .table-wrap td { padding: 0.65rem 0.75rem; font-size: 0.8rem; }
}