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

:root {
    --bg-primary: #06080f;
    --bg-secondary: #0d1117;
    --bg-tertiary: #161b22;
    --bg-card: rgba(13, 17, 23, 0.85);
    --bg-input: rgba(6, 8, 15, 0.6);
    --glass-border: rgba(48, 54, 61, 0.6);
    --glass-border-hover: rgba(80, 90, 110, 0.5);
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #484f58;
    --accent: #4f8cf7;
    --accent-light: #79b0ff;
    --accent-dark: #2f6feb;
    --accent-glow: rgba(79, 140, 247, 0.12);
    --accent-glow-strong: rgba(79, 140, 247, 0.25);
    --red-brand: #e5484d;
    --red-brand-hover: #f85149;
    --red-glow: rgba(229, 72, 77, 0.15);
    --success: #3fb950;
    --danger: #f85149;
    --danger-hover: #da3633;
    --warning: #d29922;
    --premium-gold: #e3b341;
    --gradient-brand: linear-gradient(135deg, #4f8cf7 0%, #a78bfa 50%, #e5484d 100%);
    --gradient-btn: linear-gradient(135deg, #4f8cf7, #6366f1);
    --gradient-btn-hover: linear-gradient(135deg, #6ea1ff, #818cf8);
    --card-shadow: 0 1px 3px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.2);
    --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.4), 0 16px 48px rgba(0,0,0,0.3);
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== AMBIENT BG ===== */
.bg-ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-orb { position: absolute; border-radius: 50%; filter: blur(100px); animation: orbFloat 25s infinite ease-in-out; }
.bg-orb:nth-child(1) { width: 600px; height: 600px; background: rgba(79,140,247,0.08); top: -15%; left: -10%; animation-delay: 0s; }
.bg-orb:nth-child(2) { width: 500px; height: 500px; background: rgba(139,92,246,0.06); top: 40%; right: -15%; animation-delay: -8s; }
.bg-orb:nth-child(3) { width: 450px; height: 450px; background: rgba(229,72,77,0.05); bottom: -10%; left: 25%; animation-delay: -16s; }
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -50px) scale(1.05); }
    66% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ===== SNOW ===== */
.snowflake { position: fixed; top: -5px; background: rgba(255,255,255,0.5); border-radius: 50%; pointer-events: none; z-index: 1; animation: snowDrop linear forwards; }
@keyframes snowDrop { 0% { opacity: 0.8; } 100% { transform: translateY(105vh) rotate(360deg); opacity: 0; } }

/* ===== MOUSE TRAIL ===== */
.trail { position: fixed; width: 6px; height: 6px; background: radial-gradient(circle, rgba(79,140,247,0.7), transparent); border-radius: 50%; pointer-events: none; z-index: 9999; transform: translate(-50%,-50%); animation: trailDie 0.5s ease-out forwards; }
@keyframes trailDie { to { opacity: 0; transform: translate(-50%,-50%) scale(0); } }

/* ===== LAYOUT ===== */
.page-center { position: relative; z-index: 10; min-height: 100vh; display: flex; justify-content: center; align-items: center; padding: 24px; }
.page-full { position: relative; z-index: 10; min-height: 100vh; padding: 24px; }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--card-shadow);
    padding: 24px;
    transition: var(--transition);
}
.card:hover { border-color: var(--glass-border-hover); }

.card-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* ===== AUTH ===== */
.auth-box { max-width: 400px; width: 100%; padding: 32px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 8px; }
.brand-icon { width: 38px; height: 38px; background: var(--gradient-brand); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: white; }
.brand h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.5px; }
.brand h1 span { color: var(--red-brand); }
.auth-sub { text-align: center; color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 28px; }

/* ===== FORMS ===== */
.fg { margin-bottom: 16px; }
.fg label { display: block; font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; transition: var(--transition); }
.input-icon input { padding-left: 40px; }

input, select, textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input-icon:focus-within i { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border: none; border-radius: var(--radius);
    font-family: 'Inter', sans-serif; font-size: 0.88rem; font-weight: 600;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-brand { background: var(--gradient-btn); color: white; box-shadow: 0 2px 12px rgba(79,140,247,0.25); }
.btn-brand:hover { background: var(--gradient-btn-hover); box-shadow: 0 4px 20px rgba(79,140,247,0.35); transform: translateY(-1px); }
.btn-brand:active { transform: translateY(0); }
.btn-full { width: 100%; }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text-secondary); border: 1px solid var(--glass-border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-glow); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; border-radius: 8px; }
.btn-ghost { background: transparent; color: var(--accent-light); padding: 8px 14px; }
.btn-ghost:hover { background: var(--accent-glow); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

.link-btn { background: none; border: none; color: var(--accent-light); font-family: 'Inter', sans-serif; font-size: 0.82rem; cursor: pointer; transition: var(--transition); margin-top: 16px; display: inline-block; }
.link-btn:hover { color: var(--accent); text-decoration: underline; }

/* ===== DASHBOARD LAYOUT ===== */
.dash-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 10;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    padding: 24px;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.mobile-header {
    display: none;
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 8px;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-item i { width: 20px; font-size: 1rem; }
.nav-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.nav-item.active { background: var(--accent-glow); color: var(--accent-light); border-color: var(--accent-glow-strong); }

.nav-group-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 20px 0 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-right: 15px;
}

.nav-group-title.collapsible {
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.nav-group-title.collapsible:hover {
    color: var(--text-secondary);
}

.nav-group-title i.fa-chevron-down {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.nav-group-title.collapsed i.fa-chevron-down {
    transform: rotate(-90deg);
}

.nav-group-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    max-height: 1000px;
}

.nav-group-content.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
}

.nav-submenu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 20px;
    margin-bottom: 10px;
}

.sub-item {
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.sub-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.sub-item.active { color: var(--accent-light); font-weight: 600; }

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-width: calc(100% - 280px);
}

.content-section { display: none; }
.content-section.active { display: block; animation: fadeIn 0.3s ease-out; }

/* ===== DASHBOARD GRID (Log Searcher) ===== */
.dash-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.sidebar .card { margin-bottom: 16px; }

.sidebar-title { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px; }

.search-input-wrap { position: relative; margin-bottom: 12px; }
.search-input-wrap input { padding-right: 14px; font-size: 0.9rem; }

.scan-btn { margin-top: 4px; }

.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(48,54,61,0.4); }
.stat-row:last-child { border-bottom: none; }
.stat-label { font-size: 0.82rem; color: var(--text-secondary); }
.stat-value { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }

/* ===== RESULTS PANEL ===== */
.results-panel h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.results-panel h3 i { color: var(--accent); font-size: 0.9rem; }

.results-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.results-toolbar-left { font-size: 0.8rem; color: var(--text-secondary); }
.results-toolbar-right { display: flex; gap: 8px; align-items: center; }
.results-toolbar-right select { width: 145px; padding: 8px 10px; font-size: 0.82rem; }

textarea.result-box {
    width: 100%;
    height: calc(100vh - 320px);
    min-height: 300px;
    background: var(--bg-primary);
    color: #c9d1d9;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 16px;
    resize: none;
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.6;
}

/* ===== ADMIN TABLE ===== */
.tbl-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
thead th { text-align: left; padding: 12px 14px; color: var(--text-muted); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--glass-border); white-space: nowrap; }
tbody td { padding: 11px 14px; border-bottom: 1px solid rgba(48,54,61,0.3); vertical-align: middle; }
tbody tr { transition: var(--transition); }
tbody tr:hover { background: rgba(79,140,247,0.04); }
tbody tr:last-child td { border-bottom: none; }
td select { width: 125px; padding: 5px 8px; font-size: 0.78rem; }
.status-ok { color: var(--success); font-weight: 600; font-size: 0.78rem; }
.status-ban { color: var(--danger); font-weight: 600; font-size: 0.78rem; }

/* ===== TOAST ===== */
.toast { position: fixed; top: 20px; right: 20px; z-index: 10000; padding: 12px 20px; border-radius: var(--radius); font-size: 0.85rem; font-weight: 500; color: white; box-shadow: var(--card-shadow-hover); display: flex; align-items: center; gap: 10px; animation: toastIn 0.35s ease-out, toastOut 0.35s ease-in 2.65s forwards; }
.toast-success { background: linear-gradient(135deg, #238636, #3fb950); }
.toast-error { background: linear-gradient(135deg, #da3633, #f85149); }
.toast-info { background: linear-gradient(135deg, #2f6feb, #4f8cf7); }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { opacity: 1; } to { transform: translateX(120%); opacity: 0; } }

/* ===== CHECKER UI ===== */
.checker-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 24px;
}

.checker-sidebar .card { margin-bottom: 20px; }

.checker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.proxy-badge {
    padding: 6px 12px;
    background: rgba(229, 72, 77, 0.1);
    color: var(--red-brand);
    border: 1px solid var(--red-brand);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 15px rgba(229, 72, 77, 0.2);
}

.checker-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* ===== NİHAİ FİLTRE TASARIMI (Filter Bar & Chips) ===== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(5px);
}

.filter-chip {
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.filter-chip i { font-size: 0.9rem; opacity: 0.7; }

/* HOVER & ACTIVE STATES (Mermi Seviyesi Parlama) */
.filter-chip:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

/* All / Toplam */
.filter-chip[data-status="ALL"].active { 
    background: rgba(79, 140, 247, 0.15); 
    border-color: var(--accent); 
    color: var(--accent-light);
    box-shadow: 0 0 15px rgba(79, 140, 247, 0.25);
}
/* Hits */
.filter-chip[data-status="HIT"].active { 
    background: rgba(63, 185, 80, 0.15); 
    border-color: var(--success); 
    color: var(--success);
    box-shadow: 0 0 15px rgba(63, 185, 80, 0.25);
}
/* 2FA / Custom */
.filter-chip[data-status="2FA"].active { 
    background: rgba(210, 153, 34, 0.15); 
    border-color: var(--warning); 
    color: var(--warning);
    box-shadow: 0 0 15px rgba(210, 153, 34, 0.25);
}
/* Fails */
.filter-chip[data-status="FAIL"].active { 
    background: rgba(248, 81, 73, 0.15); 
    border-color: var(--danger); 
    color: var(--danger);
    box-shadow: 0 0 15px rgba(248, 81, 73, 0.25);
}

.checker-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 15px;
}

.stat-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    text-align: center;
}

.stat-box .val { font-size: 1.2rem; font-weight: 800; display: block; color: var(--text-primary); }
.stat-box .lbl { font-size: 0.65rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }

/* SPINNER & OTHERS */
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.25); border-top-color: white; border-radius: 50%; animation: spin 0.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== BAN MODAL ===== */
.ban-overlay {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(6, 8, 15, 0.9);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: fadeIn 0.4s ease-out;
}
.ban-card {
    max-width: 450px; width: 100%;
    background: rgba(229, 72, 77, 0.1);
    border: 2px solid var(--danger);
    border-radius: var(--radius-xl);
    padding: 40px; text-align: center;
    box-shadow: 0 0 50px rgba(229, 72, 77, 0.3);
    animation: slideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ban-icon { font-size: 4rem; color: var(--danger); margin-bottom: 20px; animation: pulse 2s infinite; }
.ban-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.ban-reason-box {
    background: rgba(0,0,0,0.3); padding: 16px; border-radius: var(--radius);
    margin: 20px 0; border-left: 4px solid var(--danger);
    font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; color: var(--text-primary);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* ===== CHECKER TABLE (SOLID GRID) ===== */
.checker-table-wrap {
    display: block !important;
    width: 100% !important;
    max-height: 600px !important;
    overflow-y: auto !important;
}

.checker-table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    margin: 0 !important;
    padding: 0 !important;
}

.checker-table tr {
    display: table-row;
    height: 38px !important; /* Mermi boyu! */
    line-height: 38px !important;
}

.checker-table td {
    display: table-cell !important;
    padding: 0 15px !important;
    height: 38px !important;
    vertical-align: middle !important;
    border-bottom: 1px solid rgba(255,255,255,0.03) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.acc-text { font-family: 'JetBrains Mono', monospace; color: var(--accent-glow); font-weight: 500; font-size: 0.8rem; }
.cap-text { font-size: 0.75rem; color: var(--text-secondary); }
.badge { vertical-align: middle !important; }
/* MAINTENANCE MODE */
.maintenance-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--glass-border);
    border-radius: 24px;
    text-align: center;
    margin-top: 20px;
}

.maintenance-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.maintenance-content p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.maintenance-icon {
    font-size: 3rem;
    color: var(--warning);
    margin-bottom: 20px;
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; text-shadow: 0 0 0 rgba(210, 153, 34, 0); }
    50% { transform: scale(1.1); opacity: 0.8; text-shadow: 0 0 20px rgba(210, 153, 34, 0.5); }
    100% { transform: scale(1); opacity: 1; text-shadow: 0 0 0 rgba(210, 153, 34, 0); }
}

.maintenance-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.m-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-tag i {
    color: var(--warning);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .dash-grid, .checker-grid { grid-template-columns: 1fr; }
    .checker-sidebar { max-width: 100%; }
}

@media (max-width: 900px) {
    .mobile-header { display: flex !important; }
    
    .sidebar {
        position: fixed;
        left: 0;
        transform: translateX(-100%);
        box-shadow: 20px 0 50px rgba(0,0,0,0.5);
    }
    
    .sidebar.mobile-active {
        transform: translateX(0);
    }
    
    .sidebar-overlay.active {
        display: block;
    }

    .main-content {
        padding: 15px;
        max-width: 100%;
        width: 100%;
    }

    .dash-container {
        flex-direction: column;
    }

    .checker-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

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

@media (max-width: 600px) {
    .auth-box { padding: 24px 20px; width: 95%; margin: 0 auto; }
    .page-center { padding: 15px; }
    
    .brand h1 { font-size: 1.2rem; }
    
    .topbar { flex-direction: column; gap: 12px; padding: 14px; }
    .topbar-right { width: 100%; justify-content: space-between; }
    
    .results-toolbar { flex-direction: column; align-items: stretch; }
    .results-toolbar-right { flex-direction: column; }
    .results-toolbar-right select, .results-toolbar-right .btn { width: 100%; }
    
    .filter-bar { padding: 8px; gap: 5px; }
    .filter-chip { padding: 8px 14px; font-size: 0.75rem; }
    
    .stat-box .val { font-size: 1rem; }
    
    .steam-cap { gap: 8px; }
}

/* ===== DISCORD MODAL ===== */
.discord-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

.discord-card {
    max-width: 420px;
    width: 100%;
    background: linear-gradient(135deg, #1e2124 0%, #282b30 100%);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 24px;
    padding: 35px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(88, 101, 242, 0.15);
    animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.discord-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.discord-brand-icon {
    width: 70px;
    height: 70px;
    background: #5865F2;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
    animation: float 3s ease-in-out infinite;
}

.discord-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, #99aab5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.discord-text {
    color: #b9bbbe;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
}

.discord-btn-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-discord {
    background: #5865F2;
    color: white;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

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

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

.discord-close {
    background: transparent;
    border: none;
    color: #72767d;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}

.discord-close:hover {
    color: #fff;
    text-decoration: underline;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===== STEAM CAPTURE STYLES ===== */
.steam-cap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.steam-cap span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.steam-cap span:nth-child(1) { color: var(--premium-gold); } /* Balance */
.steam-cap span:nth-child(2) { color: var(--accent-light); } /* Level */
.steam-cap span:nth-child(3) { color: #a78bfa; } /* Games */
.steam-cap span:nth-child(4) { color: var(--success); } /* Prime */
.steam-cap span:nth-child(5) { color: #f472b6; } /* Items */
.steam-cap span:nth-child(6) { color: var(--danger); font-weight: 800; } /* Ban */

.steam-cap i {
    font-size: 0.85rem;
    opacity: 0.9;
}
