/* ════════════════════════════════════════════════════════════
   TOSUN WEB PANELİ — ANA STİL v5.0
   Modern glassmorphism + premium görünüm
   ════════════════════════════════════════════════════════════ */

:root {
  /* Arkaplan gamı — koyu lacivert tonları */
  --bg: #060912;
  --bg1: #0a0e1d;
  --bg2: #11172b;
  --bg3: #182142;
  --bg4: #1f2a55;
  --bg5: #283469;

  /* Lacivert aksan — signature renk */
  --acc: #4f7cff;
  /* parlak lacivert */
  --acc-light: #7d9fff;
  --acc-dark: #2c4cb5;
  --acc2: rgba(79, 124, 255, 0.13);
  --acc3: rgba(79, 124, 255, 0.25);
  --acc4: rgba(79, 124, 255, 0.38);
  --acc-glow: 0 0 20px rgba(79, 124, 255, 0.30);
  /* v5/v6 alias'ları */
  --acc-d: #2c4cb5;

  /* Kenar çizgileri */
  --bdr: rgba(79, 124, 255, 0.20);
  --bdr-h: rgba(79, 124, 255, 0.35);
  --bdr2: rgba(255, 255, 255, 0.06);
  --bdr3: rgba(255, 255, 255, 0.10);

  /* Ek renkler */
  --red: #ef4848;
  --red2: rgba(239, 72, 72, 0.12);
  --red3: rgba(239, 72, 72, 0.25);
  --grn: #30c566;
  --grn2: rgba(48, 197, 102, 0.12);
  --grn3: rgba(48, 197, 102, 0.25);
  --blu: #4798ff;
  --blu2: rgba(71, 152, 255, 0.12);
  --blu3: rgba(71, 152, 255, 0.25);
  --pur: #9860ff;
  --pur2: rgba(152, 96, 255, 0.12);
  --pur3: rgba(152, 96, 255, 0.25);
  --ora: #ff8830;
  --ora2: rgba(255, 136, 48, 0.12);
  --cya: #30d8d8;
  --cya2: rgba(48, 216, 216, 0.12);
  --pnk: #ff60a0;

  /* Metin — soğuk beyaz tonları */
  --txt: #e6ecff;
  --text: #e6ecff;
  --txt2: #b8c2dc;
  --muted: #7a8398;
  --dim: #4a5168;

  /* Fontlar */
  --fn: 'Rajdhani', 'Inter', system-ui, sans-serif;
  --fn2: 'Inter', system-ui, sans-serif;
  --mono: 'Share Tech Mono', 'Consolas', monospace;

  /* Şekiller */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;

  /* Gölgeler */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-acc: 0 4px 20px rgba(79, 124, 255, 0.30);

  /* Geçişler */
  --tr-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --tr: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --tr-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── TEMA: AÇIK (Light) ───────────────────────────────────── */
html[data-theme="light"] {
  --bg: #f4f6fb;
  --bg1: #ffffff;
  --bg2: #ffffff;
  --bg3: #eef1f8;
  --bg4: #e2e7f2;
  --bg5: #d1d8ea;
  --bdr: rgba(15, 30, 70, 0.12);
  --bdr-h: rgba(15, 30, 70, 0.22);
  --bdr2: rgba(15, 30, 70, 0.06);
  --bdr3: rgba(15, 30, 70, 0.10);
  --txt: #14213d;
  --text: #14213d;
  --txt2: #3a4a6e;
  --muted: #6a7691;
  --dim: #99a1b3;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.06);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.10);
}

html[data-theme="light"] body {
  background: var(--bg);
  color: var(--txt);
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: #e6eaf2;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: var(--acc);
  border-color: #e6eaf2;
}

/* Light theme: sidebar */
html[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(22px);
  border-right: 1px solid rgba(15, 30, 70, 0.08);
}

html[data-theme="light"] .sidebar-brand::before {
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.08), transparent 60%);
}

html[data-theme="light"] .sidebar-user {
  background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .brand-name {
  text-shadow: none;
}

html[data-theme="light"] .nav-item {
  color: #3a4a6e;
}

html[data-theme="light"] .nav-item:hover {
  color: var(--acc);
  background: rgba(79, 124, 255, 0.06);
}

html[data-theme="light"] .nav-item.active {
  background: linear-gradient(90deg, rgba(79, 124, 255, 0.08) 0%, transparent 100%);
}

html[data-theme="light"] .nav-logout {
  color: var(--red) !important;
}

/* Light theme: cards */
html[data-theme="light"] .card {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-color: rgba(15, 30, 70, 0.08);
}

html[data-theme="light"] .card::before {
  background: linear-gradient(90deg, transparent, rgba(15, 30, 70, 0.06), transparent);
}

html[data-theme="light"] .card-head {
  color: #14213d;
}

html[data-theme="light"] .stat-card {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(15, 30, 70, 0.08);
}

html[data-theme="light"] .stat-card::before {
  background: radial-gradient(circle at top right, rgba(79, 124, 255, 0.06) 0%, transparent 70%);
}

html[data-theme="light"] .stat-card:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(79, 124, 255, 0.08);
}

/* Light theme: dashboard hero */
html[data-theme="light"] .dash-hero {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(15, 30, 70, 0.08);
}

html[data-theme="light"] .dash-hero::after {
  background: radial-gradient(circle, rgba(79, 124, 255, 0.05) 0%, transparent 70%);
}

/* Light theme: body pseudo-elements */
html[data-theme="light"] body::before {
  background:
    radial-gradient(circle at 8% 18%, rgba(79, 124, 255, 0.04) 0%, transparent 38%),
    radial-gradient(circle at 92% 82%, rgba(71, 152, 255, 0.03) 0%, transparent 40%) !important;
}

html[data-theme="light"] body::after {
  opacity: 0.3;
}

/* Light theme: form controls */
html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select,
html[data-theme="light"] .form-textarea,
html[data-theme="light"] textarea.form-input {
  background: #f0f2f7 !important;
  border-color: rgba(15, 30, 70, 0.12) !important;
  color: #14213d !important;
}

html[data-theme="light"] .form-input:focus,
html[data-theme="light"] .form-select:focus {
  background: #fff !important;
  border-color: var(--acc) !important;
}

html[data-theme="light"] .form-input::placeholder {
  color: #99a1b3 !important;
}

/* Light theme: tables */
html[data-theme="light"] .tbl thead,
html[data-theme="light"] .table thead {
  background: rgba(15, 30, 70, 0.04);
}

html[data-theme="light"] .tbl-row:hover,
html[data-theme="light"] .table tbody tr:hover {
  background: rgba(79, 124, 255, 0.04);
}

html[data-theme="light"] .tbl td,
html[data-theme="light"] .table td {
  color: #14213d;
}

/* Light theme: buttons */
html[data-theme="light"] .btn-dark {
  background: rgba(15, 30, 70, 0.06) !important;
  border-color: rgba(15, 30, 70, 0.12) !important;
  color: #3a4a6e !important;
}

html[data-theme="light"] .btn-dark:hover {
  background: rgba(15, 30, 70, 0.10) !important;
  color: #14213d !important;
}

/* Light theme: topbar */
html[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(15, 30, 70, 0.08) !important;
}

html[data-theme="light"] .topbar-title {
  color: #14213d !important;
}

html[data-theme="light"] .topbar-sub {
  color: #6a7691 !important;
}

html[data-theme="light"] .topbar-icon {
  color: var(--acc);
}

/* Light theme: main-content */
html[data-theme="light"] .main-content {
  color: #14213d;
}

/* Light theme: badges */
html[data-theme="light"] .badge {
  border-color: rgba(15, 30, 70, 0.1);
}

/* Light theme: toggle rows */
html[data-theme="light"] .toggle-row {
  border-color: rgba(15, 30, 70, 0.06) !important;
  background: transparent;
}

html[data-theme="light"] .toggle-row:hover {
  background: rgba(79, 124, 255, 0.03);
}

html[data-theme="light"] .toggle-label {
  color: #14213d !important;
}

/* Light theme: lang selector */
html[data-theme="light"] .lang-select {
  background: #f0f2f7;
  color: #14213d;
  border-color: rgba(15, 30, 70, 0.12);
}

/* Light theme: mobile menu */
html[data-theme="light"] .mobile-menu-btn {
  background: #fff;
  border-color: rgba(15, 30, 70, 0.12);
}

/* Light theme: modals */
html[data-theme="light"] .modal {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 30, 70, 0.10);
}

html[data-theme="light"] .modal-head {
  border-color: rgba(15, 30, 70, 0.08);
  color: #14213d;
}

html[data-theme="light"] .modal-foot {
  border-color: rgba(15, 30, 70, 0.08);
  background: rgba(244, 246, 251, 0.8);
}

html[data-theme="light"] .modal-body {
  color: #14213d;
}

/* Light theme: notification panel */
html[data-theme="light"] .notif-panel {
  background: #fff !important;
  border-color: rgba(15, 30, 70, 0.10);
}

html[data-theme="light"] .notif-item.unread {
  background: rgba(79, 124, 255, 0.06);
}

html[data-theme="light"] .notif-panel-head {
  color: #14213d;
}

/* Light theme: profile */
html[data-theme="light"] .profile-banner {
  background: rgba(255, 255, 255, 0.9) !important;
}

html[data-theme="light"] .profile-banner-img::after {
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.95));
}

html[data-theme="light"] .profile-name-lg {
  text-shadow: none;
  color: #14213d;
  -webkit-text-fill-color: #14213d;
}

/* Light theme: empty state */
html[data-theme="light"] .empty-state {
  color: #6a7691;
}

/* Light theme: detail rows */
html[data-theme="light"] .detail-row {
  border-color: rgba(15, 30, 70, 0.06);
}

html[data-theme="light"] .detail-key {
  color: #6a7691;
}

html[data-theme="light"] .detail-val {
  color: #14213d;
}

/* Light theme: search input */
html[data-theme="light"] .search-input {
  background: #f0f2f7 !important;
  border-color: rgba(15, 30, 70, 0.12) !important;
  color: #14213d !important;
}

/* Light theme: settings theme picker */
html[data-theme="light"] .theme-pick {
  background: #f0f2f7;
  border-color: rgba(15, 30, 70, 0.12);
  color: #3a4a6e;
}

html[data-theme="light"] .theme-pick:hover {
  border-color: var(--acc);
}

html[data-theme="light"] .theme-pick.active {
  background: rgba(79, 124, 255, 0.1);
  color: var(--acc);
}

/* Light theme: switch / toggle */
html[data-theme="light"] .slider {
  background: #d1d8ea;
  border-color: rgba(15, 30, 70, 0.1);
}

html[data-theme="light"] .slider:before {
  background: #fff;
}

html[data-theme="light"] .toggle-switch .toggle-slider {
  background: #d1d8ea;
}

/* Light theme: toasts */
html[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(15, 30, 70, 0.10);
  color: #14213d;
}

/* Light theme: activity items */
html[data-theme="light"] .activity-item {
  background: transparent;
}

html[data-theme="light"] .activity-item:hover {
  background: rgba(79, 124, 255, 0.03);
}

html[data-theme="light"] .activity-title {
  color: #14213d;
}

html[data-theme="light"] .activity-sub {
  color: #6a7691;
}

/* Light theme: code elements */
html[data-theme="light"] code,
html[data-theme="light"] .code-sm {
  background: rgba(15, 30, 70, 0.06);
  color: #3a4a6e;
}

/* Light theme: social link cards in profile */
html[data-theme="light"] .social-link-card {
  background: rgba(15, 30, 70, 0.03);
  border-color: rgba(15, 30, 70, 0.08);
}

html[data-theme="light"] .social-link-card:hover {
  background: rgba(15, 30, 70, 0.05);
}

/* Light theme: premium input */
html[data-theme="light"] .premium-input {
  background: #f0f2f7 !important;
  border-color: rgba(15, 30, 70, 0.12) !important;
}

html[data-theme="light"] .premium-input:focus {
  background: #fff !important;
}

/* ── TEMA: GECE YARISI (Midnight) ─────────────────────────── */
html[data-theme="midnight"] {
  --bg: #02030a;
  --bg1: #04060f;
  --bg2: #070a18;
  --bg3: #0c1024;
  --bg4: #131933;
  --bg5: #1c2547;
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--fn);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--acc);
  text-decoration: none;
  transition: color var(--tr);
}

a:hover {
  color: var(--acc-light);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

input,
select,
textarea {
  font-family: inherit;
  color: inherit;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--acc-dark), var(--acc));
  border-radius: 4px;
  border: 2px solid var(--bg1);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--acc);
}

/* ── SELECTION ─────────────────────────────── */
::selection {
  background: var(--acc3);
  color: #fff;
}

::-moz-selection {
  background: var(--acc3);
  color: #fff;
}

/* ── ANIMATIONS ─────────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(18px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.82;
    transform: scale(1.04);
  }
}

@keyframes glow {

  0%,
  100% {
    box-shadow: 0 0 6px rgba(79, 124, 255, 0.22);
  }

  50% {
    box-shadow: 0 0 18px rgba(79, 124, 255, 0.55);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes floatY {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.animate-fade {
  animation: fadeIn 0.45s ease-out both;
}

.animate-up {
  animation: slideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-down {
  animation: slideDown 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── LAYOUT ─────────────────────────────── */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  overflow-x: hidden;
}

/* Dinamik arkaplan efekti */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(79, 124, 255, 0.07) 0%, transparent 38%),
    radial-gradient(circle at 92% 82%, rgba(71, 152, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(152, 96, 255, 0.03) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 124, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 124, 255, 0.022) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

/* ── MAIN CONTENT ─────────────────────────── */
.main {
  flex: 1;
  padding: 28px;
  min-width: 0;
  animation: fadeIn 0.4s ease-out;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--bdr2);
  flex-wrap: wrap;
  gap: 16px;
}

.page-head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-head h1 i {
  color: var(--acc);
  font-size: 22px;
}

.page-head .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.page-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* ── SIDEBAR ─────────────────────────────── */
.sidebar {
  width: 248px;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(17, 20, 30, 0.72) 0%, rgba(10, 12, 19, 0.85) 100%);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-right: 1px solid var(--bdr2);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  transition: transform var(--tr);
  z-index: 40;
  max-height: 100vh;
  overflow: hidden;
}

.sidebar-brand {
  padding: 20px 18px;
  border-bottom: 1px solid var(--bdr);
  display: flex;
  align-items: center;
  gap: 11px;
  position: relative;
}

.sidebar-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--acc2) 0%, transparent 60%);
  pointer-events: none;
}

.sidebar-brand>* {
  position: relative;
  z-index: 1;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-dark) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0c0c;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-acc), inset 0 1px 2px rgba(255, 255, 255, 0.25);
}

.brand-info {
  flex: 1;
  min-width: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--acc);
  text-shadow: 0 0 20px rgba(79, 124, 255, 0.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 500;
}

.brand-access {
  font-size: 9px;
  font-weight: 600;
  color: var(--acc);
  letter-spacing: 1px;
  padding: 3px 7px;
  background: var(--acc2);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  padding: 4px;
  cursor: pointer;
  display: none;
}

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0 14px;
}

.nav-section {
  padding: 14px 18px 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-section::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 1px;
  background: var(--dim);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 18px;
  color: var(--txt2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--tr);
  position: relative;
  border: none;
  background: transparent;
  width: 100%;
  text-align: start;
}

.nav-item i {
  width: 20px;
  font-size: 13.5px;
  text-align: center;
  color: var(--muted);
  transition: color var(--tr);
}

.nav-item span {
  flex: 1;
}

.nav-item:hover {
  color: var(--acc);
  background: var(--acc2);
  padding-left: 22px;
}

.nav-item:hover i {
  color: var(--acc);
}

.nav-item.active {
  color: var(--acc);
  background: linear-gradient(90deg, var(--acc2) 0%, transparent 100%);
  font-weight: 600;
}

.nav-item.active i {
  color: var(--acc);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--acc), var(--acc-dark));
  box-shadow: 0 0 8px var(--acc);
}

.nav-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 1.4s infinite;
}

.nav-logout {
  color: var(--red) !important;
}

.nav-logout i {
  color: var(--red) !important;
}

.nav-logout:hover {
  background: var(--red2) !important;
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid var(--bdr2);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
}

.nav-avatar,
.nav-avatar-ph {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--bdr);
  flex-shrink: 0;
}

.nav-avatar {
  object-fit: cover;
}

.nav-avatar-ph {
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-dark) 100%);
  color: #0c0c0c;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.sidebar-user-name {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.role-owner {
  background: var(--pur2);
  color: var(--pur);
  border: 1px solid var(--pur3);
}

.role-admin {
  background: var(--red2);
  color: var(--red);
  border: 1px solid var(--red3);
}

.role-mod {
  background: var(--blu2);
  color: var(--blu);
  border: 1px solid var(--blu3);
}

.role-sup {
  background: var(--grn2);
  color: var(--grn);
  border: 1px solid var(--grn3);
}

.role-user {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid var(--bdr2);
}

/* ── MOBILE MENU ─────────────────────── */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--bdr);
  color: var(--acc);
  font-size: 16px;
  box-shadow: var(--shadow);
  align-items: center;
  justify-content: center;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 39;
  opacity: 0;
  transition: opacity var(--tr);
}

.mobile-overlay.open {
  display: block;
  opacity: 1;
}

/* ── LANG SELECTOR ─────────────────────── */
.lang-selector {
  padding: 14px 18px 6px;
}

.lang-select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--bdr2);
  color: var(--txt);
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color var(--tr);
}

.lang-select:hover {
  border-color: var(--bdr);
}

.lang-select:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc2);
}

/* ── CARDS ───────────────────────── */
.card {
  background:
    linear-gradient(145deg, rgba(23, 27, 40, 0.78) 0%, rgba(17, 20, 30, 0.88) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bdr), transparent);
  opacity: 0.6;
}

.card:hover {
  border-color: var(--bdr);
  box-shadow: var(--shadow-lg);
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--acc);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.4px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--bdr2);
}

.card-title i {
  font-size: 16px;
  width: 24px;
  height: 24px;
  background: var(--acc2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-sub {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  margin-left: auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

/* ── STAT CARDS ─────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stat-card {
  background:
    linear-gradient(135deg, rgba(23, 27, 40, 0.85) 0%, rgba(17, 20, 30, 0.92) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: all var(--tr);
  cursor: default;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at top right, var(--acc2) 0%, transparent 70%);
  pointer-events: none;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--bdr);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(79, 124, 255, 0.12);
}

.stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.stat-icon.acc {
  background: var(--acc2);
  color: var(--acc);
  border: 1px solid var(--bdr);
}

.stat-icon.red {
  background: var(--red2);
  color: var(--red);
  border: 1px solid var(--red3);
}

.stat-icon.grn {
  background: var(--grn2);
  color: var(--grn);
  border: 1px solid var(--grn3);
}

.stat-icon.blu {
  background: var(--blu2);
  color: var(--blu);
  border: 1px solid var(--blu3);
}

.stat-icon.pur {
  background: var(--pur2);
  color: var(--pur);
  border: 1px solid var(--pur3);
}

.stat-icon.ora {
  background: var(--ora2);
  color: var(--ora);
  border: 1px solid rgba(255, 136, 48, 0.25);
}

.stat-icon.cya {
  background: var(--cya2);
  color: var(--cya);
  border: 1px solid rgba(48, 216, 216, 0.25);
}

.stat-trend {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
}

.stat-trend.up {
  background: var(--grn2);
  color: var(--grn);
}

.stat-trend.down {
  background: var(--red2);
  color: var(--red);
}

.stat-trend.flat {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-family: var(--fn);
  line-height: 1;
  margin-top: 4px;
  color: var(--txt);
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.3px;
  font-weight: 500;
  margin-top: 6px;
}

/* ── DASH HERO ─────────────────────── */
.dash-hero {
  padding: 26px 28px;
  background:
    linear-gradient(135deg, rgba(23, 27, 40, 0.85) 0%, rgba(11, 13, 20, 0.65) 100%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid var(--bdr2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  flex-wrap: wrap;
  gap: 18px;
}

.dash-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(79, 124, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: floatY 6s ease-in-out infinite;
}

.hero-welcome {
  position: relative;
  z-index: 1;
}

.hero-welcome h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--acc);
}

.hero-welcome p {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}

.hero-stats {
  display: flex;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.hero-stat-item {
  text-align: center;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius);
  border: 1px solid var(--bdr2);
  min-width: 80px;
}

.hero-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--acc);
  display: block;
  line-height: 1;
}

.hero-stat-lbl {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--dim);
  margin-top: 4px;
  font-weight: 600;
}

/* ── TABLES ─────────────────────── */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.tbl thead th {
  padding: 11px 14px;
  text-align: start;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--bdr);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.tbl tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--bdr2);
  vertical-align: middle;
}

.tbl tbody tr {
  transition: background-color var(--tr-fast);
}

.tbl tbody tr:hover {
  background: var(--acc2);
}

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

.tbl-container {
  background: rgba(17, 20, 30, 0.62);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius-lg);
  overflow: auto;
  max-width: 100%;
}

/* ── BADGES ─────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.badge-acc {
  background: var(--acc2);
  color: var(--acc);
  border: 1px solid var(--bdr);
}

.badge-red {
  background: var(--red2);
  color: var(--red);
  border: 1px solid var(--red3);
}

.badge-grn {
  background: var(--grn2);
  color: var(--grn);
  border: 1px solid var(--grn3);
}

.badge-blu {
  background: var(--blu2);
  color: var(--blu);
  border: 1px solid var(--blu3);
}

.badge-pur {
  background: var(--pur2);
  color: var(--pur);
  border: 1px solid var(--pur3);
}

.badge-ora {
  background: var(--ora2);
  color: var(--ora);
  border: 1px solid rgba(255, 136, 48, 0.25);
}

.badge-cya {
  background: var(--cya2);
  color: var(--cya);
  border: 1px solid rgba(48, 216, 216, 0.25);
}

.badge-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--bdr2);
}

.badge-dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}

.badge-lg {
  padding: 5px 12px;
  font-size: 12px;
}

/* ── BUTTONS ─────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: var(--txt);
  transition: all var(--tr);
  white-space: nowrap;
  text-decoration: none;
}

.btn i {
  font-size: 12px;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-dark) 100%);
  color: #0c0c0c;
  font-weight: 700;
  box-shadow: var(--shadow-acc);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(79, 124, 255, 0.38);
  color: #0c0c0c;
}

.btn-ghost {
  background: var(--bg2);
  border-color: var(--bdr2);
  color: var(--txt);
}

.btn-ghost:hover {
  border-color: var(--bdr);
  background: var(--bg3);
  color: var(--acc);
}

.btn-outline {
  background: transparent;
  border-color: var(--bdr);
  color: var(--acc);
}

.btn-outline:hover {
  background: var(--acc2);
}

.btn-danger {
  background: var(--red2);
  border-color: var(--red3);
  color: var(--red);
}

.btn-danger:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-success {
  background: var(--grn2);
  border-color: var(--grn3);
  color: var(--grn);
}

.btn-success:hover {
  background: var(--grn);
  color: #0c0c0c;
  border-color: var(--grn);
}

.btn-info {
  background: var(--blu2);
  border-color: var(--blu3);
  color: var(--blu);
}

.btn-info:hover {
  background: var(--blu);
  color: #fff;
  border-color: var(--blu);
}

.btn-purple {
  background: var(--pur2);
  border-color: var(--pur3);
  color: var(--pur);
}

.btn-purple:hover {
  background: var(--pur);
  color: #fff;
  border-color: var(--pur);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 20px;
  font-size: 14.5px;
}

.btn-icon {
  width: 34px;
  height: 34px;
  padding: 0;
  justify-content: center;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ── FORMS ─────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 7px;
}

.form-label.required::after {
  content: '*';
  color: var(--red);
  margin-left: 3px;
}

.form-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg2);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius);
  color: var(--txt);
  font-size: 13.5px;
  transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
  font-family: inherit;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-color: var(--bdr);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  background: var(--bg3);
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc2);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--dim);
}

.textarea {
  resize: vertical;
  min-height: 80px;
  font-family: var(--fn);
}

.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237a7560'%3e%3cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px;
}

.checkbox,
.radio {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox input,
.radio input {
  width: 17px;
  height: 17px;
  accent-color: var(--acc);
  cursor: pointer;
}

/* Modern switch (toggle) */
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 22px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--bg4);
  border: 1px solid var(--bdr2);
  border-radius: 999px;
  transition: all var(--tr);
}

.switch-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  bottom: 2px;
  background: var(--muted);
  border-radius: 50%;
  transition: all var(--tr);
}

.switch input:checked+.switch-slider {
  background: var(--acc2);
  border-color: var(--acc);
}

.switch input:checked+.switch-slider::before {
  transform: translateX(20px);
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
}

/* ── ALERTS ─────────────────────── */
.alert {
  padding: 13px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  border: 1px solid;
  animation: slideDown 0.4s ease-out;
}

.alert i {
  font-size: 16px;
  flex-shrink: 0;
}

.alert-success {
  background: var(--grn2);
  color: var(--grn);
  border-color: var(--grn3);
}

.alert-error {
  background: var(--red2);
  color: var(--red);
  border-color: var(--red3);
}

.alert-warning {
  background: var(--ora2);
  color: var(--ora);
  border-color: rgba(255, 136, 48, 0.3);
}

.alert-info {
  background: var(--blu2);
  color: var(--blu);
  border-color: var(--blu3);
}

/* ── TOAST NOTIFICATIONS ─────────────────────── */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background:
    linear-gradient(145deg, rgba(23, 27, 40, 0.95) 0%, rgba(17, 20, 30, 0.98) 100%);
  backdrop-filter: blur(18px);
  border: 1px solid var(--bdr);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  min-width: 250px;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  transform: translateX(120%);
  opacity: 0;
  transition: all var(--tr);
  pointer-events: all;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast i {
  font-size: 16px;
  flex-shrink: 0;
}

.toast-success {
  border-left: 3px solid var(--grn);
}

.toast-success i {
  color: var(--grn);
}

.toast-error {
  border-left: 3px solid var(--red);
}

.toast-error i {
  color: var(--red);
}

.toast-warning {
  border-left: 3px solid var(--ora);
}

.toast-warning i {
  color: var(--ora);
}

.toast-info {
  border-left: 3px solid var(--blu);
}

.toast-info i {
  color: var(--blu);
}

/* ── MODALS ─────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.25s ease-out;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  background:
    linear-gradient(145deg, rgba(23, 27, 40, 0.98) 0%, rgba(17, 20, 30, 1) 100%);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(79, 124, 255, 0.1);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-lg {
  max-width: 860px;
}

.modal-xl {
  max-width: 1100px;
}

.modal-sm {
  max-width: 440px;
}

.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--bdr2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--acc);
  display: flex;
  align-items: center;
  gap: 9px;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
}

.modal-close:hover {
  background: var(--red2);
  color: var(--red);
}

.modal-body {
  padding: 22px;
}

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

/* ── TABS ─────────────────────── */
.tabs {
  display: flex;
  gap: 2px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px;
  border-radius: var(--radius);
  border: 1px solid var(--bdr2);
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--tr);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab:hover {
  color: var(--acc);
  background: var(--acc2);
}

.tab.active {
  background: var(--acc);
  color: #0c0c0c;
  box-shadow: var(--shadow-acc);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

/* ── PROGRESS BARS ─────────────────────── */
.progress {
  width: 100%;
  height: 6px;
  background: var(--bg2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--acc), var(--acc-light));
  border-radius: 999px;
  transition: width 0.4s ease-out;
  box-shadow: 0 0 8px var(--acc);
}

.progress-bar.red {
  background: linear-gradient(90deg, var(--red), #ff7070);
  box-shadow: 0 0 8px var(--red);
}

.progress-bar.grn {
  background: linear-gradient(90deg, var(--grn), #60e090);
  box-shadow: 0 0 8px var(--grn);
}

.progress-bar.blu {
  background: linear-gradient(90deg, var(--blu), #70aaff);
  box-shadow: 0 0 8px var(--blu);
}

/* ── PAGINATION ─────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.pag-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: var(--bg2);
  border: 1px solid var(--bdr2);
  color: var(--txt);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
  text-decoration: none;
}

.pag-btn:hover {
  background: var(--acc2);
  border-color: var(--bdr);
  color: var(--acc);
}

.pag-btn.active {
  background: var(--acc);
  border-color: var(--acc);
  color: #0c0c0c;
  font-weight: 700;
}

.pag-btn:disabled,
.pag-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── SEARCH BAR ─────────────────────── */
.search-bar {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-bar i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.search-bar input {
  padding-left: 36px;
}

/* ── EMPTY STATE ─────────────────────── */
.empty-state {
  padding: 60px 30px;
  text-align: center;
  color: var(--muted);
}

.empty-state i {
  font-size: 52px;
  color: var(--dim);
  margin-bottom: 16px;
  display: block;
}

.empty-state h3 {
  font-size: 18px;
  color: var(--txt2);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 13px;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── LOADING ─────────────────────── */
.loader {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--bdr);
  border-top-color: var(--acc);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-lg {
  width: 38px;
  height: 38px;
  border-width: 3px;
}

.loader-container {
  padding: 40px;
  text-align: center;
  color: var(--muted);
}

/* ── ACTION BUTTON LIST ─────────────────────── */
.act-list {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.act-btn {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--bdr2);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all var(--tr);
  cursor: pointer;
}

.act-btn:hover {
  background: var(--acc2);
  color: var(--acc);
  border-color: var(--bdr);
}

.act-btn.red:hover {
  background: var(--red2);
  color: var(--red);
  border-color: var(--red3);
}

.act-btn.grn:hover {
  background: var(--grn2);
  color: var(--grn);
  border-color: var(--grn3);
}

.act-btn.blu:hover {
  background: var(--blu2);
  color: var(--blu);
  border-color: var(--blu3);
}

.act-btn.pur:hover {
  background: var(--pur2);
  color: var(--pur);
  border-color: var(--pur3);
}

/* ── PLAYER CARD ─────────────────────── */
.player-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius);
  transition: all var(--tr);
}

.player-card:hover {
  border-color: var(--bdr);
  background: rgba(79, 124, 255, 0.04);
}

.player-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc) 0%, var(--acc-dark) 100%);
  color: #0c0c0c;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.player-info {
  flex: 1;
  min-width: 0;
}

.player-name {
  font-weight: 700;
  color: var(--txt);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-sub {
  font-size: 11.5px;
  color: var(--muted);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── CHIP / TAG ─────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: var(--bg3);
  border: 1px solid var(--bdr2);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--txt2);
}

.chip i {
  font-size: 10px;
}

.chip-remove {
  margin-left: 2px;
  padding: 0 2px;
  color: var(--muted);
  cursor: pointer;
}

.chip-remove:hover {
  color: var(--red);
}

/* ── CODE / PRE ─────────────────────── */
code,
.code {
  font-family: var(--mono);
  font-size: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--bdr2);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--acc);
}

pre {
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius);
  padding: 14px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--txt2);
}

/* ── DETAIL ROWS ─────────────────────── */
.detail-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius);
  font-size: 13px;
}

.detail-lbl {
  color: var(--muted);
  font-weight: 500;
  flex-shrink: 0;
}

.detail-val {
  color: var(--txt);
  font-weight: 600;
  text-align: end;
  word-break: break-all;
}

/* ── TOOLBAR ─────────────────────── */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  padding: 14px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius-lg);
}

.toolbar>* {
  flex-shrink: 0;
}

.toolbar .search-bar {
  flex: 1;
  min-width: 200px;
}

/* ── AC SPECIFIC ─────────────────────── */
.ac-panel {
  display: grid;
  gap: 16px;
}

.detection-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius);
  border-left: 3px solid var(--red);
  align-items: center;
}

.detection-sev {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--red2);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

/* ── PROTECTED RESOURCE BADGE ─────────────────────── */
.resource-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg3);
  border: 1px solid var(--bdr2);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
}

.resource-badge.protected {
  background: var(--grn2);
  color: var(--grn);
  border-color: var(--grn3);
}

.resource-badge.suspicious {
  background: var(--red2);
  color: var(--red);
  border-color: var(--red3);
}

.resource-badge.unknown {
  background: var(--ora2);
  color: var(--ora);
  border-color: rgba(255, 136, 48, 0.3);
}

.resource-badge.whitelisted {
  background: var(--blu2);
  color: var(--blu);
  border-color: var(--blu3);
}

/* ── LIVE DOT ─────────────────────── */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 1.4s infinite;
}

.live-dot.grn {
  background: var(--grn);
  box-shadow: 0 0 8px var(--grn);
}

/* ── TOOLTIP ─────────────────────── */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 10px;
  background: var(--bg4);
  border: 1px solid var(--bdr);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  color: var(--txt);
  white-space: nowrap;
  pointer-events: none;
  z-index: 100;
  font-weight: 500;
  animation: fadeIn 0.2s ease-out;
}

/* ── UTILITY ─────────────────────── */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

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

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.gap-1 {
  gap: 4px;
}

.gap-2 {
  gap: 8px;
}

.gap-3 {
  gap: 12px;
}

.gap-4 {
  gap: 16px;
}

.gap-6 {
  gap: 24px;
}

.mt-2 {
  margin-top: 8px;
}

.mt-3 {
  margin-top: 12px;
}

.mt-4 {
  margin-top: 16px;
}

.mb-2 {
  margin-bottom: 8px;
}

.mb-3 {
  margin-bottom: 12px;
}

.mb-4 {
  margin-bottom: 16px;
}

.w-full {
  width: 100%;
}

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

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

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

.text-acc {
  color: var(--acc);
}

.text-red {
  color: var(--red);
}

.text-grn {
  color: var(--grn);
}

.text-blu {
  color: var(--blu);
}

.text-sm {
  font-size: 12px;
}

.text-xs {
  font-size: 11px;
}

.text-lg {
  font-size: 15px;
}

.text-xl {
  font-size: 17px;
}

.font-mono {
  font-family: var(--mono);
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── RESPONSIVE ─────────────────────── */
@media (max-width: 1024px) {
  .main {
    padding: 20px;
  }

  .dash-hero {
    padding: 20px;
  }

  .hero-welcome h1 {
    font-size: 24px;
  }

  .stat-value {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    transform: translateX(-100%);
    width: 280px;
    z-index: 45;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  [dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    transform: translateX(100%);
  }

  [dir="rtl"] .sidebar.open {
    transform: translateX(0);
  }

  .mobile-overlay {
    display: block;
  }

  .sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main {
    padding: 16px;
    padding-top: 70px;
  }

  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-head h1 {
    font-size: 22px;
  }

  .dash-hero {
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-around;
    gap: 8px;
  }

  .hero-stat-item {
    min-width: auto;
    flex: 1;
    padding: 8px;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 10.5px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .tbl {
    font-size: 12.5px;
  }

  .tbl thead th,
  .tbl tbody td {
    padding: 9px 10px;
  }

  .toast-container {
    left: 10px;
    right: 10px;
    top: 10px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }

  .toolbar {
    padding: 10px;
  }

  .modal-body {
    padding: 16px;
  }

  .modal-head {
    padding: 14px 16px;
  }

  .modal-foot {
    padding: 12px 16px;
    flex-direction: column-reverse;
  }

  .modal-foot .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 7px 11px;
    font-size: 12px;
  }

  .page-head h1 {
    font-size: 19px;
  }

  .brand-name {
    font-size: 14px;
  }
}

/* ════════════════════════════════════════════════════════════
   v5.0 — EKSİK SINIFLARIN TANIMLARI
   Bu blok yeni v5 sayfalarının çalışması için gerekli sınıfları
   ekler: .main-content, .topbar, .table, .modal-dialog vb.
   ════════════════════════════════════════════════════════════ */

/* Ana içerik alanı — sidebar'ın yanına flex:1 ile yerleşir */
.main-content {
  flex: 1;
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow-x: hidden;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--bdr);
  background: rgba(15, 18, 26, 0.55);
  backdrop-filter: blur(14px) saturate(160%);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: rgba(79, 124, 255, .12);
  border: 1px solid rgba(79, 124, 255, .3);
  color: var(--acc);
}

.topbar-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.4px;
  line-height: 1.1;
}

.topbar-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.topbar>div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

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

/* Page body — topbar altındaki içerik alanı */
.page-body {
  padding: 24px 26px 40px;
  flex: 1;
  max-width: 100%;
}

/* Card */
.card {
  background: rgba(20, 24, 33, 0.55);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  overflow: hidden;
  margin-bottom: 18px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bdr);
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}

.card-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--acc);
}

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

.card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Table */
.table-wrap {
  overflow-x: auto;
  background: transparent;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.table thead th {
  text-align: left;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--bdr);
}

.table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bdr2);
  color: var(--text);
}

.table tbody tr:hover td {
  background: rgba(79, 124, 255, 0.04);
}

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

.empty-row {
  text-align: center;
  padding: 30px 16px !important;
  color: var(--muted);
  font-style: italic;
}

/* Search input */
.search-input {
  background: rgba(20, 24, 33, 0.65);
  border: 1px solid var(--bdr);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  min-width: 240px;
  transition: border-color 0.18s;
}

.search-input:focus {
  outline: none;
  border-color: var(--acc);
}

/* Btn row */
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(6px);
}

.modal.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 540px;
  background: rgba(18, 22, 30, 0.96);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
}

.modal-dialog.modal-sm {
  max-width: 420px;
}

.modal-dialog.modal-lg {
  max-width: 720px;
}

.modal-dialog.modal-xl {
  max-width: 960px;
}

.modal-content {
  display: contents;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--bdr);
}

.modal-head h3 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-head h3 i {
  color: var(--acc);
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0 4px;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 14px 20px;
  border-top: 1px solid var(--bdr);
  background: rgba(0, 0, 0, 0.15);
}

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

.stat-card {
  background: rgba(20, 24, 33, 0.6);
  border: 1px solid var(--bdr);
  border-radius: 13px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--bdr-h);
}

.stat-card .stat-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.stat-card .stat-value {
  font-family: 'Rajdhani', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
  margin-top: 6px;
}

.stat-card .stat-delta {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 4px;
}

.stat-card .stat-icon {
  position: absolute;
  right: 16px;
  top: 16px;
  font-size: 28px;
  opacity: 0.15;
}

.stat-card.stat-r {
  border-color: rgba(255, 110, 110, .22);
}

.stat-card.stat-r .stat-value {
  color: #ff8e8e;
}

.stat-card.stat-g {
  border-color: rgba(110, 220, 150, .22);
}

.stat-card.stat-g .stat-value {
  color: #6edc96;
}

.stat-card.stat-y {
  border-color: rgba(79, 124, 255, .22);
}

.stat-card.stat-y .stat-value {
  color: var(--acc);
}

.stat-card.stat-b {
  border-color: rgba(96, 144, 224, .22);
}

.stat-card.stat-b .stat-value {
  color: #6090e0;
}

.stat-card.stat-p {
  border-color: rgba(170, 110, 224, .22);
}

.stat-card.stat-p .stat-value {
  color: #aa6ee0;
}

.stat-card.stat-o {
  border-color: rgba(255, 150, 80, .22);
}

.stat-card.stat-o .stat-value {
  color: #ff9650;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  background: rgba(20, 24, 33, 0.45);
  border: 1px solid var(--bdr);
  border-radius: 11px;
  padding: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab {
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.tab:hover {
  color: var(--text);
}

.tab.active {
  background: rgba(79, 124, 255, 0.12);
  color: var(--acc);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Form group */
.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 18, 26, 0.65);
  border: 1px solid var(--bdr);
  border-radius: 9px;
  padding: 10px 13px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.18s;
}

.input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px rgba(79, 124, 255, 0.12);
}

textarea.input {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
}

select.input {
  cursor: pointer;
}

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bdr);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.chip i {
  font-size: 11px;
}

.chip-g {
  background: rgba(110, 220, 150, .10);
  border-color: rgba(110, 220, 150, .3);
  color: #6edc96;
}

.chip-r {
  background: rgba(255, 110, 110, .10);
  border-color: rgba(255, 110, 110, .3);
  color: #ff8e8e;
}

.chip-y {
  background: rgba(79, 124, 255, .10);
  border-color: rgba(79, 124, 255, .3);
  color: var(--acc);
}

.chip-b {
  background: rgba(96, 144, 224, .10);
  border-color: rgba(96, 144, 224, .3);
  color: #6090e0;
}

/* Badge — alias for existing chip-style */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.badge-g {
  background: rgba(110, 220, 150, .18);
  color: #6edc96;
}

.badge-r {
  background: rgba(255, 110, 110, .18);
  color: #ff8e8e;
}

.badge-y {
  background: rgba(79, 124, 255, .18);
  color: var(--acc);
}

.badge-b {
  background: rgba(96, 144, 224, .18);
  color: #6090e0;
}

.badge-o {
  background: rgba(255, 150, 80, .18);
  color: #ff9650;
}

.badge-p {
  background: rgba(170, 110, 224, .18);
  color: #aa6ee0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bdr);
  border-radius: 9px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  font-family: inherit;
  line-height: 1;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--bdr-h);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn i {
  font-size: 12px;
}

.btn-primary {
  background: var(--acc);
  color: #0c0d11;
  border-color: var(--acc);
}

.btn-primary:hover {
  background: var(--acc-d, #2c4cb5);
  border-color: var(--acc-d, #2c4cb5);
}

.btn-success {
  background: rgba(110, 220, 150, 0.15);
  border-color: rgba(110, 220, 150, 0.4);
  color: #6edc96;
}

.btn-success:hover {
  background: rgba(110, 220, 150, 0.25);
}

.btn-danger {
  background: rgba(255, 110, 110, 0.15);
  border-color: rgba(255, 110, 110, 0.4);
  color: #ff8e8e;
}

.btn-danger:hover {
  background: rgba(255, 110, 110, 0.25);
}

.btn-warning {
  background: rgba(255, 150, 80, 0.15);
  border-color: rgba(255, 150, 80, 0.4);
  color: #ff9650;
}

.btn-warning:hover {
  background: rgba(255, 150, 80, 0.25);
}

.btn-info {
  background: rgba(96, 144, 224, 0.15);
  border-color: rgba(96, 144, 224, 0.4);
  color: #6090e0;
}

.btn-info:hover {
  background: rgba(96, 144, 224, 0.25);
}

.btn-outline {
  background: transparent;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

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

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 11px;
  font-size: 12px;
}

.btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

/* Code */
code,
.code-sm {
  font-family: 'Share Tech Mono', monospace;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.35);
  padding: 1.5px 6px;
  border-radius: 4px;
  color: #ffe49b;
}

.code-sm {
  font-size: 11px;
}

/* Toast */
#toast-container,
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  background: rgba(25, 30, 40, 0.95);
  border: 1px solid var(--bdr);
  border-left: 3px solid var(--acc);
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--text);
  font-size: 13.5px;
  min-width: 240px;
  max-width: 380px;
  transform: translateX(120%);
  transition: transform 0.3s ease-out;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.toast.show {
  transform: translateX(0);
}

.toast-success {
  border-left-color: #6edc96;
}

.toast-error {
  border-left-color: #ff8e8e;
}

.toast-warning {
  border-left-color: #ff9650;
}

.toast-info {
  border-left-color: #6090e0;
}

/* Live dot */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #6edc96;
  border-radius: 50%;
  margin-right: 5px;
  box-shadow: 0 0 0 0 rgba(110, 220, 150, 0.6);
  animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(110, 220, 150, 0.6);
  }

  70% {
    box-shadow: 0 0 0 8px rgba(110, 220, 150, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(110, 220, 150, 0);
  }
}

/* Card grids */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

/* Detail rows (used in player detail drawer) */
.detail-section {
  margin-bottom: 18px;
}

.detail-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--acc);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--bdr);
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  gap: 16px;
  border-bottom: 1px solid var(--bdr2);
  font-size: 13px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-key {
  color: var(--muted);
  font-weight: 500;
}

.detail-val {
  color: var(--text);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* Muted helper */
.muted {
  color: var(--muted);
  font-size: 13px;
}

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

.empty-state i {
  font-size: 48px;
  color: var(--bdr);
  margin-bottom: 14px;
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .topbar {
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .page-body {
    padding: 16px;
  }

  .topbar-title {
    font-size: 18px;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .search-input {
    min-width: 0;
    width: 100%;
  }

  .modal-dialog {
    max-width: calc(100vw - 24px);
  }
}

/* ════════════════════════════════════════════════════════════
   v6.0 — DRAWER (sağ kenardan açılan panel)
   Varsayılan KAPALI; .open class'ı eklenince görünür.
   ════════════════════════════════════════════════════════════ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 92vw;
  background: rgba(15, 19, 36, 0.97);
  border-left: 1px solid var(--bdr);
  backdrop-filter: blur(20px) saturate(170%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.30s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.45);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--bdr);
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.drawer-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fn);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.drawer-name {
  font-family: var(--fn);
  font-size: 17px;
  font-weight: 700;
  color: var(--txt);
}

.drawer-id {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.drawer-head>div:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bdr2);
  color: var(--txt2);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.drawer-close:hover {
  background: var(--red2);
  color: var(--red);
  border-color: var(--red3);
}

.drawer-body {
  flex: 1;
  padding: 18px 20px;
  overflow-y: auto;
}

.drawer-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--bdr);
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* form-input ve form-select alias'ları (live.php kullanıyor) */
.form-input,
.form-select {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 19, 36, 0.65);
  border: 1px solid var(--bdr);
  border-radius: 9px;
  padding: 10px 13px;
  color: var(--txt);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.18s;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc2);
}

/* Live grid (live.php) */
.live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* Player card (live.php) */
.pc {
  background: rgba(20, 26, 48, 0.6);
  border: 1px solid var(--bdr2);
  border-radius: 12px;
  padding: 14px;
  cursor: pointer;
  transition: all var(--tr-fast);
  position: relative;
}

.pc:hover {
  border-color: var(--bdr);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.pc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.pc-av {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--acc), var(--acc-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fn);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}

.pc-name {
  font-family: var(--fn);
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
}

.pc-id {
  font-size: 11.5px;
  color: var(--muted);
}

.pc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
}

.pc-info-item {
  color: var(--muted);
}

.pc-info-item span {
  color: var(--txt);
  margin-left: 4px;
}

.pc-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--bdr2);
}

/* btn-xs — extra small */
.btn-xs {
  padding: 5px 9px;
  font-size: 11.5px;
  flex: 1;
}

/* btn aliases (live.php uses btn-grn/btn-acc/btn-blu/btn-red/btn-dark) */
.btn-acc {
  background: rgba(79, 124, 255, 0.14);
  color: var(--acc-light);
  border-color: rgba(79, 124, 255, 0.30);
}

.btn-acc:hover {
  background: rgba(79, 124, 255, 0.22);
  border-color: rgba(79, 124, 255, 0.45);
}

.btn-grn {
  background: var(--grn2);
  color: var(--grn);
  border-color: var(--grn3);
}

.btn-grn:hover {
  background: var(--grn3);
}

.btn-blu {
  background: var(--blu2);
  color: var(--blu);
  border-color: var(--blu3);
}

.btn-blu:hover {
  background: var(--blu3);
}

.btn-red {
  background: var(--red2);
  color: var(--red);
  border-color: var(--red3);
}

.btn-red:hover {
  background: var(--red3);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--bdr2);
}

.btn-dark:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* w-full helper */
.w-full {
  width: 100%;
}

/* Modal sm/lg/xl alias for live.php watch-modal */
.modal-title {
  font-family: var(--fn);
  font-size: 18px;
  font-weight: 700;
  color: var(--txt);
}

/* Live watch frame */
#watch-frame {
  max-width: 100%;
  border-radius: 8px;
}

#watch-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

/* RTL support */
html[dir="rtl"] .drawer {
  left: 0;
  right: auto;
  transform: translateX(-100%);
  border-left: 0;
  border-right: 1px solid var(--bdr);
}

html[dir="rtl"] .drawer.open {
  transform: translateX(0);
}

/* Mobile drawer */
@media (max-width: 768px) {
  .drawer {
    width: 100%;
  }
}

/* ════════════════════════════════════════════════════════════
   v6.0 — KAYIP CSS SINIFLARI (kritik)
   ════════════════════════════════════════════════════════════ */

/* Modal-overlay (eski isim) — .modal alias'ı */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

/* Modal-overlay içindeki .modal'a düzgün animasyon ver */
.modal-overlay>.modal,
.modal-overlay .modal-content {
  animation: modalIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from {
    transform: translateY(20px) scale(0.96);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* CRITICAL FIX: .modal-overlay içindeki .modal gerçek dialog kutusu olarak göster.
   .modal base rule'u position:fixed;display:none tanımladığı için override gerekiyor. */
.modal-overlay.open>.modal {
  display: flex !important;
  flex-direction: column;
  position: relative !important;
  inset: auto !important;
  background: var(--bg2, rgba(18, 22, 30, 0.98));
  border: 1px solid var(--bdr);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  max-height: calc(100vh - 40px);
  width: 100%;
  max-width: 560px;
  padding: 0;
  backdrop-filter: none;
  z-index: auto;
}

/* Tablo aliases (tbl, tbl-row) */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.tbl thead th {
  text-align: left;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--bdr);
}

.tbl tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--bdr2);
  color: var(--txt);
}

.tbl tbody tr.tbl-row {
  cursor: pointer;
  transition: background 0.12s;
}

.tbl tbody tr.tbl-row:hover td {
  background: rgba(79, 124, 255, 0.05);
}

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

/* Tablo cell aliases */
.t-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.t-mono {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--txt2);
}

.t-muted {
  color: var(--muted);
  font-size: 12.5px;
}

/* Page button (pagination) */
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--bdr2);
  border-radius: 7px;
  color: var(--txt2);
  cursor: pointer;
  font-size: 13px;
  margin: 0 2px;
  text-decoration: none;
  transition: all var(--tr-fast);
}

.page-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--txt);
}

.page-btn.active {
  background: var(--acc);
  color: #0a0e1d;
  border-color: var(--acc);
  font-weight: 700;
}

/* Toggle switch (settings) */
.toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--bdr2);
  gap: 16px;
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-label {
  color: var(--txt);
  font-weight: 600;
  font-size: 14px;
}

.toggle-desc {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 3px;
}

.toggle-switch {
  position: relative;
  width: 46px;
  height: 24px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s;
  flex-shrink: 0;
}

.toggle-switch.on,
.toggle-switch:has(input:checked) {
  background: var(--acc);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
}

.toggle-switch.on .toggle-slider,
.toggle-switch:has(input:checked) .toggle-slider {
  left: 25px;
}

.toggle-switch input {
  display: none;
}

/* Card head dots */
.card-head-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.cd-r {
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.cd-g {
  background: var(--grn);
  box-shadow: 0 0 8px var(--grn);
}

.cd-b,
.cd-blu {
  background: var(--blu);
  box-shadow: 0 0 8px var(--blu);
}

.cd-y {
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
}

.cd-p {
  background: var(--pur);
  box-shadow: 0 0 8px var(--pur);
}

.card-head-meta {
  color: var(--muted);
  font-size: 12px;
}

.card-head-right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Stat value/label/icon (ac_dashboard uses these) */
.stat-r {
  border-color: rgba(239, 72, 72, .22);
}

.stat-r .stat-value {
  color: #ff8e8e;
}

.stat-y {
  border-color: rgba(79, 124, 255, .22);
}

.stat-y .stat-value {
  color: var(--acc);
}

.stat-g {
  border-color: rgba(48, 197, 102, .22);
}

.stat-g .stat-value {
  color: #6edc96;
}

.stat-b {
  border-color: rgba(71, 152, 255, .22);
}

.stat-b .stat-value {
  color: #6090e0;
}

.stat-p {
  border-color: rgba(152, 96, 255, .22);
}

.stat-p .stat-value {
  color: #aa6ee0;
}

.stat-o {
  border-color: rgba(255, 136, 48, .22);
}

.stat-o .stat-value {
  color: #ff9650;
}

/* Button purple */
.btn-pur {
  background: var(--pur2);
  color: var(--pur);
  border-color: var(--pur3);
}

.btn-pur:hover {
  background: var(--pur3);
}

/* Form helpers */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 720px) {

  .form-grid-2,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Dynamic form */
.dynamic-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Premium input */
.premium-input {
  width: 100%;
  box-sizing: border-box;
  background: rgba(15, 19, 36, 0.65);
  border: 1px solid var(--bdr);
  border-radius: 9px;
  padding: 11px 14px;
  color: var(--txt);
  font-size: 14px;
  transition: all 0.18s;
}

.premium-input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 3px var(--acc2);
}

/* Search panel */
.search-panel {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(20, 26, 48, 0.55);
  border: 1px solid var(--bdr);
  border-radius: 11px;
  padding: 6px 12px;
  flex: 1;
}

.search-icon {
  color: var(--muted);
  font-size: 13px;
}

.search-wrap,
.search-panel-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--txt);
  font-size: 14px;
  padding: 8px 0;
}

/* Profile page */
.profile-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  background: rgba(20, 26, 48, 0.6);
  border: 1px solid var(--bdr);
  backdrop-filter: blur(12px);
}

.profile-banner-img {
  height: 160px;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  position: relative;
}

.profile-banner-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
}

.profile-info-glass {
  padding: 18px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-avatar-large,
.profile-avatar-placeholder {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acc), var(--acc-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fn);
  font-size: 36px;
  font-weight: 700;
  border: 3px solid var(--bg2);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  flex-shrink: 0;
}

.profile-avatar-large {
  object-fit: cover;
}

.profile-name-lg {
  font-family: var(--fn);
  font-size: 24px;
  font-weight: 700;
  color: var(--txt);
  line-height: 1.2;
}

.profile-role-badge {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 12px;
  background: var(--acc2);
  color: var(--acc);
  border: 1px solid var(--acc3);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-details {
  flex: 1;
  min-width: 200px;
}

/* Social link cards */
.social-link-card {
  background: rgba(20, 26, 48, 0.5);
  border: 1px solid var(--bdr2);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.social-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.social-discord {
  background: rgba(88, 101, 242, 0.15);
  color: #5865F2;
  border: 1px solid rgba(88, 101, 242, .3);
}

.social-steam {
  background: rgba(102, 192, 244, 0.15);
  color: #66c0f4;
  border: 1px solid rgba(102, 192, 244, .3);
}

.social-fivem {
  background: var(--acc2);
  color: var(--acc);
  border: 1px solid var(--acc3);
}

.social-info {
  flex: 1;
  min-width: 0;
}

.social-title {
  font-weight: 600;
  color: var(--txt);
  font-size: 13.5px;
}

.social-sub {
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 2px;
}

/* Buttons connect */
.btn-connect {
  padding: 6px 14px;
  font-size: 11.5px;
  border-radius: 7px;
}

/* Banner */
.banner {
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--acc2);
  border: 1px solid var(--acc3);
  color: var(--txt);
  margin-bottom: 16px;
}

.banner-danger {
  background: var(--red2);
  border-color: var(--red3);
  color: #ff8e8e;
}

.danger-card {
  background: rgba(239, 72, 72, 0.05);
  border: 1px solid var(--red3);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
}

/* Risk bar */
.risk-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.risk-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.risk-fill {
  height: 100%;
  transition: width 0.4s;
}

.risk-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--txt);
  min-width: 50px;
  text-align: right;
}

.risk-low {
  background: var(--grn);
}

.risk-mid {
  background: var(--acc);
}

.risk-high {
  background: var(--red);
}

/* Activity */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(20, 26, 48, 0.4);
  border: 1px solid var(--bdr2);
  border-radius: 8px;
}

.activity-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acc);
  margin-top: 6px;
  flex-shrink: 0;
}

.activity-text {
  flex: 1;
  color: var(--txt);
  font-size: 13px;
}

.activity-time {
  color: var(--muted);
  font-size: 11.5px;
}

/* Inventory grid */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.inventory-card {
  background: rgba(20, 26, 48, 0.55);
  border: 1px solid var(--bdr2);
  border-radius: 10px;
  overflow: hidden;
}

.inventory-card-head {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--bdr2);
}

.inventory-card-title {
  font-weight: 700;
  color: var(--acc);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.inventory-card-meta {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}

.inventory-card-name {
  font-weight: 600;
  color: var(--txt);
  font-size: 13px;
}

.inventory-card-foot {
  padding: 8px 12px;
  border-top: 1px solid var(--bdr2);
  color: var(--muted);
  font-size: 11.5px;
}

.inventory-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--bdr2);
}

.inventory-slot:last-child {
  border-bottom: none;
}

/* Stats grid compact */
.stats-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

/* Metric chip */
.metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(20, 26, 48, 0.6);
  border: 1px solid var(--bdr2);
  border-radius: 8px;
  font-size: 12px;
}

.metric-chip-label {
  color: var(--muted);
  font-size: 11px;
}

/* Command/code blocks */
.cmd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.cmd-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--bdr2);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12px;
}

.code-preview {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bdr2);
  border-radius: 8px;
  padding: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: #a8e0ff;
  overflow-x: auto;
  white-space: pre;
}

/* Control hero (ac dashboard) */
.control-shell,
.control-shell-tight {
  background: rgba(20, 26, 48, 0.6);
  border: 1px solid var(--bdr);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}

.control-shell-tight {
  padding: 14px 18px;
}

.control-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.control-kicker {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.control-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

/* Player card avatar */
.pc-avatar {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--acc), var(--acc-dark));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fn);
  font-weight: 700;
  font-size: 19px;
  flex-shrink: 0;
}

.player-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Empty state sub */
.empty-state-sub {
  color: var(--dim);
  font-size: 12px;
  margin-top: 8px;
}

/* Badge variations */
.badge-dim {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

/* Folder/icon helpers */
.flex-shrink-0 {
  flex-shrink: 0;
}

/* Mobile menu button */
.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--bdr2);
  color: var(--txt);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  margin-right: 8px;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* Toast container at top-right */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#toast-container .toast {
  background: rgba(20, 26, 48, 0.97);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bdr);
  border-left: 3px solid var(--acc);
  color: var(--txt);
  padding: 12px 18px;
  border-radius: 10px;
  min-width: 240px;
  max-width: 380px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  animation: toastSlide 0.3s ease-out;
  transition: opacity 0.3s;
}

@keyframes toastSlide {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#toast-container .toast i {
  font-size: 16px;
  flex-shrink: 0;
}

#toast-container .toast-success {
  border-left-color: var(--grn);
}

#toast-container .toast-success i {
  color: var(--grn);
}

#toast-container .toast-error {
  border-left-color: var(--red);
}

#toast-container .toast-error i {
  color: var(--red);
}

#toast-container .toast-warning {
  border-left-color: var(--ora);
}

#toast-container .toast-warning i {
  color: var(--ora);
}

#toast-container .toast-info {
  border-left-color: var(--blu);
}

#toast-container .toast-info i {
  color: var(--blu);
}

/* ═══════════════════════════════════════════════════════
   v7.0 VISUAL ENHANCEMENTS
═══════════════════════════════════════════════════════ */

/* Stat card shimmer + glow on hover */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
  transform: rotate(30deg);
  transition: left 0.6s;
  pointer-events: none;
}

.stat-card:hover::before {
  left: 130%;
}

/* Stat card gradient borders */
.stat-g {
  box-shadow: inset 0 0 0 1px rgba(48, 192, 96, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-b {
  box-shadow: inset 0 0 0 1px rgba(64, 144, 232, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-r {
  box-shadow: inset 0 0 0 1px rgba(232, 64, 64, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-y {
  box-shadow: inset 0 0 0 1px rgba(232, 160, 32, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3);
}

.stat-p {
  box-shadow: inset 0 0 0 1px rgba(144, 96, 224, 0.25), 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Sidebar glow on active nav item */
.nav-item.active {
  background: linear-gradient(90deg, rgba(232, 160, 32, 0.12), transparent) !important;
  border-left: 3px solid var(--acc);
  padding-left: calc(var(--nav-px, 14px) - 3px);
}

/* Card head accent line */
.card-head {
  position: relative;
}

/* Banner styles */
.banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 12px;
}

.banner-danger {
  background: rgba(232, 64, 64, 0.1);
  border: 1px solid rgba(232, 64, 64, 0.25);
  color: var(--red);
}

.banner-info {
  background: rgba(64, 144, 232, 0.1);
  border: 1px solid rgba(64, 144, 232, 0.25);
  color: var(--blu);
}

/* Search panel layout */
.search-panel {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-panel-input {
  flex: 1;
  position: relative;
}

.search-panel-input i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.search-panel-input .form-input {
  padding-left: 36px;
}

/* Inventory grid improvements */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 12px;
  padding: 16px;
}

.inventory-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--bdr);
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color 0.2s, background 0.2s;
}

.inventory-card:hover {
  border-color: rgba(232, 160, 32, 0.3);
  background: rgba(232, 160, 32, 0.04);
}

.inventory-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.inventory-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100px;
}

.inventory-card-name {
  font-size: 10px;
  font-family: var(--mono);
  color: var(--muted);
  margin-bottom: 8px;
}

.inventory-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: var(--acc);
}

.inventory-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

.inventory-slot {
  font-size: 9px;
  font-family: var(--mono);
  color: var(--dim);
  background: rgba(255, 255, 255, 0.04);
  padding: 1px 5px;
  border-radius: 4px;
}

/* Metric chip */
.metric-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.metric-chip-label {
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-chip strong {
  font-size: 18px;
  font-weight: 700;
  color: var(--acc);
  font-family: var(--mono);
}

/* Form hint */
.form-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* w-full helper */
.w-full {
  width: 100%;
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Pulse dot for live indicator */
.live-dot,
.nav-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grn);
  box-shadow: 0 0 0 0 rgba(48, 192, 96, 0.5);
  animation: livePulse 1.5s infinite;
  vertical-align: middle;
  margin-left: 4px;
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(48, 192, 96, 0.5);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(48, 192, 96, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(48, 192, 96, 0);
  }
}

/* Smooth page transitions */
.main-content {
  animation: fadeInPage 0.25s ease-out;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile bottom nav: varsayılan olarak gizli; sadece telefonda görünür */
.mobile-bottom-nav { display: none; }

/* ════════════════════════════════════════════════════════════
   v9 — TELEFON / TABLET ENTEGRASYONU
   Hem dar ekranlar (≤480px) hem de tablet (481-820px) için
   ek geliştirmeler. Topbar, modal, drawer, tablo, form, watch
   modalı, oyuncu kartları ve tab bar'ı mobile-first hale getirir.
   ════════════════════════════════════════════════════════════ */

/* Tablet ve üstü için yumuşak optimizasyon */
@media (max-width: 820px) {
  .topbar {
    padding: 12px 16px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .topbar-icon { width: 38px; height: 38px; font-size: 16px; }
  .topbar-title { font-size: 15px; }
  .topbar-sub   { font-size: 11px; }
  .topbar-right { margin-left: auto; gap: 6px; flex-wrap: wrap; }

  /* Modal genişliği dar ekranda taşmasın */
  .modal-overlay > .modal,
  .modal-overlay .modal-content,
  .modal {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    margin: 8px !important;
    border-radius: 10px !important;
  }
  .modal-body { padding: 14px; max-height: 70vh; overflow-y: auto; }
  .modal-foot { flex-direction: column-reverse; gap: 8px; padding: 12px 14px; }
  .modal-foot .btn { width: 100%; }

  /* Drawer mobile (oyuncu detay) */
  .drawer {
    width: 92vw !important;
    max-width: 92vw !important;
  }
  .drawer-body { padding: 14px; }

  /* Live grid: 2 sütundan 1'e */
  .live-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  /* Player card kompakt */
  .player-card { padding: 12px; }
  .player-card-head { gap: 8px; }
  .pc-name { font-size: 13px; }
  .pc-info { grid-template-columns: 1fr 1fr; gap: 4px; font-size: 11px; }

  /* Tablolar yatay scroll */
  .tbl-wrap, .table-wrap, .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tbl, .table {
    min-width: 600px;
  }

  /* Watch modal ekran kaplasın */
  #watch-modal .modal {
    width: 96vw !important;
    max-width: 96vw !important;
  }
  #watch-modal .modal-body {
    min-height: 220px !important;
    max-height: 60vh;
  }
  #watch-frame { max-height: 56vh !important; width: 100%; object-fit: contain; }

  /* Form alanları parmak dostu */
  .form-input, .form-select, .form-textarea, input[type=text], input[type=number], input[type=password], input[type=email], textarea, select {
    font-size: 16px !important;     /* iOS Safari zoom önleme */
    padding: 10px 12px !important;
    min-height: 42px;
  }

  /* Buton tap-target boyutu */
  .btn { min-height: 38px; padding: 8px 13px; }
  .btn-xs, .btn-sm { min-height: 30px; padding: 6px 10px; }

  /* Notif toast'lar telefonda dar ve full-width */
  .toast-container {
    left: 8px !important; right: 8px !important; top: 8px !important;
    width: calc(100% - 16px);
  }
  .toast { width: 100%; max-width: 100%; }

  /* Topbar'a sıkışan butonlar */
  .topbar-right .btn { font-size: 12px; padding: 6px 10px; }
  .topbar-right .btn span { display: none; } /* mobilde sadece ikon */
  .topbar-right .btn i + span { display: inline; } /* fakat label'lı butonlarda göster */
}

/* Ekstra dar ekran (telefon dik) */
@media (max-width: 480px) {
  .main, .main-content { padding: 12px; padding-top: 64px; }
  .topbar { padding: 10px 12px; }
  .topbar-title { font-size: 14px; }
  .pc-actions { gap: 4px; }
  .pc-actions .btn { padding: 6px 9px; }
  .nav-avatar, .nav-avatar-ph { width: 30px; height: 30px; font-size: 12px; }

  /* Player card'da info'yu tek sütun */
  .pc-info { grid-template-columns: 1fr; }

  /* Drawer foot butonları tek sütun */
  .drawer-foot {
    grid-template-columns: 1fr !important;
    padding: 12px !important;
  }
  .drawer-foot > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Sidebar telefonda %85 genişlik */
  .sidebar { width: 86vw !important; }

  /* Page head üstte boşluk */
  .page-head h1 { font-size: 18px; }
  .page-head p  { font-size: 12px; }

  /* Tab bar (alt) — telefonda sticky bottom navigation */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--bg1);
    border-top: 1px solid var(--bdr);
    padding: 6px 4px calc(env(safe-area-inset-bottom, 6px) + 6px);
    z-index: 40;
    justify-content: space-around;
  }
  .mobile-bottom-nav a {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    color: var(--muted);
    text-decoration: none;
    font-size: 10px;
  }
  .mobile-bottom-nav a i { display: block; font-size: 16px; margin-bottom: 2px; }
  .mobile-bottom-nav a.active { color: var(--acc); }

  /* Bottom nav varken main-content'in alt boşluğu */
  body.has-bottom-nav .main-content {
    padding-bottom: 76px;
  }
}

/* PWA standalone modunda ekstra boşluk (notch / safe area) */
@media (display-mode: standalone) {
  .topbar { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
  .main-content { padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 12px); }
}

/* iOS Safari için viewport bug düzeltme — gerçek 100vh */
@supports (height: 100dvh) {
  .sidebar { height: 100dvh; }
}

/* Touch cihazda hover stillerini bastır (sticky-hover bug'ı) */
@media (hover: none) {
  .player-card:hover,
  .stat-card:hover,
  .nav-item:hover,
  .btn:hover {
    transform: none !important;
  }
}

/* ════════════════════════════════════════════════════════════
   v11 — KAPSAMLI MOBİL DÜZELTMELER
   iPhone SE (375px) → iPhone 14 Pro Max (430px) → tablet (768px)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {

  /* ── TOPBAR ────────────────── */
  .topbar {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .topbar-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 8px;
  }
  .topbar-title {
    font-size: 16px;
  }
  .topbar-sub {
    font-size: 11px;
    display: none;
  }
  .topbar-right {
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
    margin-top: 4px;
  }
  .topbar-right .btn {
    font-size: 11px;
    padding: 5px 8px;
  }
  .topbar-right .badge {
    font-size: 10px;
    padding: 3px 7px;
  }

  /* ── PAGE BODY ────────────── */
  .page-body {
    padding: 14px 12px 30px;
  }
  .main-content {
    min-height: 100dvh;
  }

  /* ── LIVE GRID ────────────── */
  .live-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .player-card {
    padding: 12px !important;
  }
  .player-card .pc-name {
    font-size: 14px;
  }
  .player-card .pc-info {
    font-size: 11.5px;
    gap: 4px;
  }
  .pc-actions {
    gap: 4px !important;
  }
  .pc-actions .btn {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  /* ── DRAWER ────────────────── */
  .drawer {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 0 !important;
  }
  .drawer-body {
    padding: 14px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .drawer-foot {
    padding: 12px !important;
    gap: 8px;
  }
  .drawer-foot .btn {
    font-size: 12px;
    padding: 8px 10px;
  }
  .detail-section {
    margin-bottom: 12px;
  }
  .detail-section-title {
    font-size: 12px;
  }
  .detail-row {
    padding: 8px 10px;
    font-size: 12px;
    gap: 8px;
  }
  .detail-key {
    font-size: 11px;
    min-width: 70px;
  }
  .detail-val {
    font-size: 12px;
    word-break: break-all;
  }

  /* ── MODAL ──────────────────── */
  .modal-overlay {
    padding: 8px !important;
  }
  .modal-overlay .modal {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 94vh;
    border-radius: 12px;
  }
  .modal-head {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 6px;
  }
  .modal-title {
    font-size: 14px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .modal-body {
    padding: 12px;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* ── WATCH MODAL (Live İzleme) ── */
  #watch-modal .modal {
    max-width: 100% !important;
    width: 100% !important;
    border-radius: 8px;
  }
  #watch-modal .modal-body {
    min-height: 220px !important;
    padding: 0 !important;
  }
  #watch-modal #watch-video {
    max-height: 50vh !important;
  }
  #watch-modal #watch-canvas {
    max-height: 50vh !important;
  }

  /* ── SS PREVIEW MODAL ────── */
  #ss-preview-modal .modal {
    max-width: 100% !important;
    max-height: 90vh !important;
  }
  #ss-preview-modal .modal-body img {
    max-height: 70vh !important;
  }

  /* ── TABLE ──────────────────── */
  .table-wrap,
  .card-body:has(.table),
  .card:has(.tbl) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table,
  .tbl {
    font-size: 12px;
    min-width: 500px;
  }
  .table thead th,
  .table tbody td,
  .tbl thead th,
  .tbl tbody td {
    padding: 8px 10px;
    white-space: nowrap;
  }

  /* ── CARD ────────────────────── */
  .card {
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .card-head {
    padding: 12px 14px;
    gap: 8px;
  }
  .card-title {
    font-size: 14px;
  }
  .card-body {
    padding: 14px;
  }

  /* ── SEARCH INPUT ────────── */
  .search-input {
    min-width: 0;
    width: 100%;
  }

  /* ── FILTER BAR ──────────── */
  .page-body > div:first-child {
    flex-direction: column;
  }

  /* ── FORM ELEMENTS ──────── */
  .form-input,
  .form-select {
    font-size: 16px !important; /* iOS zoom önleme */
    padding: 10px 12px;
  }

  /* ── STAT GRID ──────────── */
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-value {
    font-size: 20px;
  }
  .stat-label {
    font-size: 10px;
  }

  /* ── EMPTY STATE ─────────── */
  .empty-state {
    padding: 30px 16px;
    font-size: 13px;
  }
  .empty-state i {
    font-size: 28px;
  }

  /* ── TABS ─────────────────── */
  .nav-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    gap: 4px;
  }
  .nav-tabs .nav-link {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 12px;
  }

  /* ── GRID HELPER ─────────── */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {

  /* ── EXTRA KÜÇÜK EKRAN ──── */
  .topbar {
    padding: 10px 10px;
  }
  .topbar-title {
    font-size: 14px;
  }
  .topbar-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .page-body {
    padding: 10px 8px 24px;
  }

  /* Live kart */
  .player-card-head {
    gap: 8px;
  }
  .pc-avatar {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  /* Drawer butonlar */
  .drawer-foot > div {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }
  .drawer-foot .btn {
    font-size: 11px;
    padding: 7px 6px;
  }

  /* Stat grid tek sütun */
  .stat-grid {
    grid-template-columns: 1fr;
  }

  /* Hero stats */
  .hero-stats {
    gap: 4px;
  }
  .hero-stat-item {
    padding: 6px 4px;
  }
  .hero-stat-val {
    font-size: 16px;
  }

  /* Dashboard welcome */
  .hero-welcome h1 {
    font-size: 18px;
  }
  .hero-welcome p {
    font-size: 12px;
  }
}