/* ═══════════════════════════════════════════
   İşMatch - AI Destekli İş Eşleştirme Platformu
   Modern Dark Theme with Amber Accents
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --bg-primary: #07070d;
    --bg-secondary: #0f0f1a;
    --bg-card: #141425;
    --bg-card-hover: #1a1a30;
    --bg-input: #0d0d1a;
    --border-primary: #1e1e3a;
    --border-accent: #f59e0b33;
    --text-primary: #f0f0f5;
    --text-secondary: #8888aa;
    --text-muted: #555570;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --accent-dark: #d97706;
    --accent-glow: #f59e0b22;
    --success: #34d399;
    --success-bg: #0d3320;
    --danger: #f87171;
    --danger-bg: #3b1111;
    --info: #60a5fa;
    --info-bg: #0c1f3d;
    --warning: #fbbf24;
    --gradient-accent: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-card: linear-gradient(145deg, #141425, #0f0f1a);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(245,158,11,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-main: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-primary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h3 { font-size: 1.125rem; }

a { color: var(--accent); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--accent-light); }

/* ─── App Container ─── */
#app {
    min-height: 100vh;
    min-height: 100dvh;
}

/* ─── Loading ─── */
.loader-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; gap: 20px;
    transition: opacity 0.5s;
}
.loader-overlay.hidden { opacity: 0; pointer-events: none; }
.loader-spinner {
    width: 48px; height: 48px;
    border: 3px solid var(--border-primary);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { color: var(--text-secondary); font-size: 0.875rem; }

/* ─── Navbar ─── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(7,7,13,0.85);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-primary);
    padding: 0 24px; height: 64px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.25rem; font-weight: 800; color: var(--text-primary);
}
.nav-brand .brand-icon {
    width: 36px; height: 36px;
    background: var(--gradient-accent);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; color: #000;
}
.nav-brand span { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-user {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border-primary);
    cursor: pointer; transition: 0.2s; font-size: 0.875rem;
}
.nav-user:hover { border-color: var(--accent); }
.nav-user .user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: var(--gradient-accent);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.75rem; color: #000;
}
.notif-btn {
    position: relative;
    width: 40px; height: 40px;
    border-radius: 50%; border: 1px solid var(--border-primary);
    background: var(--bg-card); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s; font-size: 1.1rem;
}
.notif-btn:hover { border-color: var(--accent); color: var(--accent); }
.notif-badge {
    position: absolute; top: -4px; right: -4px;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--danger); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* ─── Main Content ─── */
.main-content {
    padding-top: 64px;
    min-height: 100vh; min-height: 100dvh;
}

/* ─── Auth Pages ─── */
.auth-page {
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
    position: relative; overflow: hidden;
}
.auth-page::before {
    content: '';
    position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(245,158,11,0.06) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(96,165,250,0.04) 0%, transparent 40%);
    animation: authBgFloat 20s ease-in-out infinite;
}
@keyframes authBgFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-2%, -2%); }
}
.auth-container {
    position: relative; z-index: 1;
    width: 100%; max-width: 440px;
}
.auth-header {
    text-align: center; margin-bottom: 32px;
}
.auth-header .logo {
    width: 64px; height: 64px; margin: 0 auto 16px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: #000;
    box-shadow: var(--shadow-glow);
}
.auth-header h1 {
    font-size: 1.75rem; margin-bottom: 8px;
}
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }

.auth-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.role-tabs {
    display: flex; gap: 8px; margin-bottom: 24px;
    background: var(--bg-primary);
    padding: 4px; border-radius: var(--radius-md);
}
.role-tab {
    flex: 1; padding: 10px; border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-weight: 600; font-size: 0.875rem;
    cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.role-tab.active {
    background: var(--accent);
    color: #000;
}

.tab-switch {
    display: flex; gap: 8px; margin-bottom: 24px;
    background: var(--bg-primary);
    padding: 4px; border-radius: var(--radius-md);
}
.tab-switch-btn {
    flex: 1; padding: 10px; border: none;
    border-radius: var(--radius-sm);
    background: transparent; color: var(--text-secondary);
    font-family: var(--font-main); font-weight: 600;
    font-size: 0.875rem; cursor: pointer; transition: 0.2s;
}
.tab-switch-btn.active { background: var(--bg-card); color: var(--text-primary); }

/* ─── Form Elements ─── */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; margin-bottom: 6px;
    font-size: 0.8rem; font-weight: 600;
    color: var(--text-secondary); text-transform: uppercase;
    letter-spacing: 0.05em;
}
.form-input {
    width: 100%; padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: 0.2s;
    outline: none;
}
.form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-muted); }

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888aa' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px;
    border: none; border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer; transition: all 0.2s;
    text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
    background: var(--gradient-accent);
    color: #000;
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--accent); }
.btn-success { background: var(--success); color: #000; }
.btn-danger { background: var(--danger); color: #000; }
.btn-ghost {
    background: transparent; color: var(--text-secondary);
    padding: 8px 16px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-icon {
    width: 36px; height: 36px; padding: 0;
    border-radius: var(--radius-sm);
}

/* ─── Chat / Interview ─── */
.chat-container {
    max-width: 720px; margin: 0 auto;
    padding: 20px; min-height: calc(100vh - 64px); min-height: calc(100dvh - 64px);
    display: flex; flex-direction: column;
}
.chat-header {
    text-align: center; padding: 24px 0;
}
.chat-header h2 { margin-bottom: 8px; }
.chat-header p { color: var(--text-secondary); font-size: 0.9rem; }

.chat-messages {
    flex: 1; overflow-y: auto;
    padding: 16px 0;
    display: flex; flex-direction: column; gap: 16px;
}
.chat-bubble {
    max-width: 85%; padding: 14px 18px;
    border-radius: var(--radius-lg);
    font-size: 0.925rem; line-height: 1.6;
    animation: bubbleIn 0.3s ease;
}
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.ai {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-bottom-left-radius: 4px;
}
.chat-bubble.ai .bubble-label {
    font-size: 0.7rem; font-weight: 700;
    color: var(--accent); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 6px;
    display: flex; align-items: center; gap: 6px;
}
.chat-bubble.user {
    align-self: flex-end;
    background: var(--accent);
    color: #000;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 16px 0;
    position: sticky; bottom: 0;
    background: linear-gradient(to top, var(--bg-primary) 80%, transparent);
    padding-top: 30px;
}
.chat-input-wrap {
    display: flex; gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 6px;
    transition: 0.2s;
}
.chat-input-wrap:focus-within { border-color: var(--accent); }
.chat-input-wrap input {
    flex: 1; background: none; border: none;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem; padding: 10px 12px;
    outline: none;
}
.chat-input-wrap input::placeholder { color: var(--text-muted); }
.chat-send-btn {
    width: 44px; height: 44px;
    background: var(--gradient-accent);
    border: none; border-radius: var(--radius-md);
    color: #000; font-size: 1.1rem;
    cursor: pointer; transition: 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.chat-send-btn:hover { transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.4; transform: none; cursor: not-allowed; }

.typing-indicator {
    display: flex; gap: 4px; padding: 10px;
}
.typing-indicator span {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* ─── Summary Card ─── */
.summary-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: 28px;
    margin: 20px 0;
    box-shadow: var(--shadow-glow);
}
.summary-card-header {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-primary);
}
.summary-card-header h3 {
    font-size: 1.25rem; margin-bottom: 6px;
    color: var(--accent);
}
.summary-card-header p { color: var(--text-secondary); font-size: 0.85rem; }

.summary-section { margin-bottom: 18px; }
.summary-section-title {
    font-size: 0.75rem; font-weight: 700;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
}
.summary-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
}
.summary-tag {
    padding: 4px 12px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    font-size: 0.8rem; color: var(--accent-light);
}
.summary-item {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-primary);
    font-size: 0.9rem;
}
.summary-item:last-child { border-bottom: none; }
.summary-item strong { color: var(--accent); font-weight: 600; }

.summary-actions {
    display: flex; gap: 12px; margin-top: 24px;
}
.summary-actions .btn { flex: 1; }

/* ─── Dashboard ─── */
.dashboard {
    max-width: 1000px; margin: 0 auto;
    padding: 24px 20px;
}
.dashboard-header {
    margin-bottom: 32px;
}
.dashboard-header h1 { margin-bottom: 4px; }
.dashboard-header p { color: var(--text-secondary); }

.profile-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    padding: 24px;
    margin-bottom: 24px;
}
.profile-card-top {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 16px;
}
.profile-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gradient-accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 800; color: #000;
}
.profile-info h3 { margin-bottom: 2px; }
.profile-info p { color: var(--text-secondary); font-size: 0.85rem; }

.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px; margin-bottom: 24px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    padding: 16px; text-align: center;
}
.stat-card .stat-value {
    font-size: 1.75rem; font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-card .stat-label {
    font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-top: 4px;
}

.section-title {
    font-size: 1rem; font-weight: 700;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text-primary);
}
.section-title .badge {
    background: var(--accent);
    color: #000; font-size: 0.7rem;
    padding: 2px 8px; border-radius: 10px;
    font-weight: 700;
}

/* ─── Notifications ─── */
.notification-list { display: flex; flex-direction: column; gap: 8px; }
.notification-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    transition: 0.2s;
}
.notification-item.unread { border-left: 3px solid var(--accent); }
.notification-item .notif-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; flex-shrink: 0;
}
.notification-item .notif-icon.match { background: var(--success-bg); color: var(--success); }
.notification-item .notif-icon.info { background: var(--info-bg); color: var(--info); }
.notification-item .notif-content h4 { font-size: 0.9rem; margin-bottom: 2px; }
.notification-item .notif-content p { font-size: 0.825rem; color: var(--text-secondary); }
.notification-item .notif-time { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; margin-left: auto; }

/* ─── Admin Panel ─── */
.admin-layout {
    display: flex; min-height: calc(100vh - 64px);
}
.admin-sidebar {
    width: 240px; flex-shrink: 0;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-primary);
    padding: 20px 12px;
}
.admin-nav { display: flex; flex-direction: column; gap: 4px; }
.admin-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: var(--radius-sm);
    color: var(--text-secondary); font-size: 0.875rem;
    font-weight: 500; cursor: pointer; transition: 0.2s;
    border: none; background: none; font-family: var(--font-main);
    text-align: left; width: 100%;
}
.admin-nav-item:hover { background: var(--bg-card); color: var(--text-primary); }
.admin-nav-item.active { background: var(--accent-glow); color: var(--accent); }

.admin-content {
    flex: 1; padding: 24px;
    overflow-y: auto;
}

/* ─── Tables ─── */
.data-table {
    width: 100%; border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.data-table th, .data-table td {
    padding: 12px 16px; text-align: left;
    font-size: 0.85rem;
}
.data-table th {
    background: var(--bg-secondary);
    font-weight: 700; color: var(--text-muted);
    text-transform: uppercase; font-size: 0.7rem;
    letter-spacing: 0.05em;
}
.data-table td { border-top: 1px solid var(--border-primary); }
.data-table tr:hover td { background: var(--bg-card-hover); }

/* ─── Match Card ─── */
.match-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    transition: 0.2s;
}
.match-card:hover { border-color: var(--border-accent); }
.match-card-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 12px;
}
.match-score {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.85rem;
}
.match-score.high { background: var(--success-bg); color: var(--success); border: 2px solid var(--success); }
.match-score.medium { background: rgba(251,191,36,0.1); color: var(--warning); border: 2px solid var(--warning); }
.match-score.low { background: var(--danger-bg); color: var(--danger); border: 2px solid var(--danger); }

.match-details { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.match-detail-box {
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
}
.match-detail-box .label {
    font-size: 0.7rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em;
    margin-bottom: 4px;
}
.match-detail-box .value { font-size: 0.85rem; font-weight: 600; }

.match-actions {
    display: flex; gap: 8px; margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-primary);
}

/* ─── Toast ─── */
.toast-container {
    position: fixed; top: 76px; right: 20px;
    z-index: 9999; display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    min-width: 280px;
}
.toast.success { background: var(--success-bg); border: 1px solid var(--success); color: var(--success); }
.toast.error { background: var(--danger-bg); border: 1px solid var(--danger); color: var(--danger); }
.toast.info { background: var(--info-bg); border: 1px solid var(--info); color: var(--info); }
@keyframes toastIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center; padding: 48px 24px;
    color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: 0.4; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; }

/* ─── Pill / Badge ─── */
.pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 20px;
    font-size: 0.7rem; font-weight: 600;
}
.pill-success { background: var(--success-bg); color: var(--success); }
.pill-warning { background: rgba(251,191,36,0.1); color: var(--warning); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-info { background: var(--info-bg); color: var(--info); }

/* ─── Modal ─── */
.modal-overlay {
    position: fixed; inset: 0; z-index: 500;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; pointer-events: none;
    transition: 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-xl);
    width: 100%; max-width: 500px;
    max-height: 80vh; overflow-y: auto;
    transform: translateY(20px); transition: 0.3s;
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-primary);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { font-size: 1rem; }
.modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--border-primary);
    background: var(--bg-card); color: var(--text-secondary);
    cursor: pointer; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-primary);
    display: flex; gap: 8px; justify-content: flex-end;
}

/* ─── Filter Bar ─── */
.filter-bar {
    display: flex; gap: 8px; flex-wrap: wrap;
    margin-bottom: 20px;
}
.filter-bar select, .filter-bar input {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.8rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-layout.sidebar-open .admin-sidebar {
        display: block; position: fixed;
        top: 64px; left: 0; bottom: 0;
        z-index: 200; width: 260px;
    }
    .match-details { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .summary-actions { flex-direction: column; }
    .auth-card { padding: 24px; }
    .data-table { font-size: 0.8rem; }
    .data-table th, .data-table td { padding: 8px 10px; }
    .table-responsive { overflow-x: auto; }
}

@media (max-width: 480px) {
    .navbar { padding: 0 14px; }
    .nav-user span { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Utility ─── */
.hidden { display: none !important; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.gap-2 { gap: 8px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
