/* ════════════════════════════════════════
   GameMachine – Admin Panel Stylesheet
════════════════════════════════════════ */

:root {
  --bg:       #05050f;
  --bg2:      #0a0a1e;
  --bg3:      #0f0f28;
  --card:     #0d0d22;
  --card2:    #12122e;
  --border:   rgba(0,212,255,0.12);
  --border2:  rgba(255,255,255,0.06);
  --cyan:     #00d4ff;
  --purple:   #7b2fff;
  --gold:     #ffd700;
  --green:    #00ff88;
  --red:      #ff4757;
  --orange:   #ff9f43;
  --text:     #e0e0f0;
  --text2:    #8888aa;
  --sidebar:  220px;
  --font-h:   'Orbitron', sans-serif;
  --font-b:   'Rajdhani', sans-serif;
  --rad:      10px;
  --rad-s:    8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-b); font-size: 15px; line-height: 1.5; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: rgba(0,212,255,0.3); border-radius: 3px; }
::selection { background: var(--cyan); color: var(--bg); }

/* ════ LOGIN ════ */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.login-screen::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, transparent 70%);
  top: -200px; left: -200px;
  border-radius: 50%;
}
.login-screen::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(123,47,255,0.06) 0%, transparent 70%);
  bottom: -150px; right: -150px;
  border-radius: 50%;
}
.login-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-h);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 24px;
}
.login-logo i { font-size: 28px; color: var(--cyan); }
.login-card h2 { font-family: var(--font-h); font-size: 18px; color: var(--text); margin-bottom: 6px; }
.login-card p { color: var(--text2); font-size: 14px; margin-bottom: 32px; }
.lf-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; text-align: left; }
.lf-group label {
  font-size: 13px;
  color: var(--text2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: .3px;
}
.lf-group label i { color: var(--cyan); font-size: 12px; }
.lf-group input {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rad-s);
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 15px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.lf-group input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,212,255,0.1); }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 44px; }
.pw-toggle {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--text2); cursor: pointer;
  font-size: 15px; padding: 4px;
  transition: color .25s;
}
.pw-toggle:hover { color: var(--cyan); }
.lf-error {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,71,87,0.1);
  border: 1px solid rgba(255,71,87,0.3);
  color: var(--red);
  border-radius: var(--rad-s);
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
}
.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--font-b);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all .3s;
  margin-top: 8px;
  letter-spacing: .5px;
}
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,212,255,0.35); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text2);
  font-size: 13px;
  text-decoration: none;
  margin-top: 24px;
  transition: color .25s;
}
.back-link:hover { color: var(--cyan); }

/* ════ ADMIN LAYOUT ════ */
.admin-panel {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar);
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  transition: transform .3s;
}
.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sb-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-h);
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
}
.sb-logo i { color: var(--cyan); font-size: 18px; }
.sb-close { display: none; background: none; border: none; color: var(--text2); cursor: pointer; font-size: 16px; padding: 4px; }

.sb-nav { flex: 1; padding: 12px 0; }
.sb-section {
  font-size: 10px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: 2px;
  padding: 12px 16px 4px;
  text-transform: uppercase;
}
.sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  position: relative;
  border-left: 3px solid transparent;
}
.sb-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.sb-link.active {
  color: var(--cyan);
  background: rgba(0,212,255,0.07);
  border-left-color: var(--cyan);
}
.sb-link i { width: 16px; text-align: center; }
.sb-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  min-width: 20px;
  text-align: center;
}
.sb-badge[data-val="0"], .sb-badge:empty { display: none; }

.sb-footer {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

/* ── Main area ── */
.admin-main {
  flex: 1;
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.menu-toggle {
  background: none; border: none;
  color: var(--text2); cursor: pointer;
  font-size: 18px; padding: 4px;
  display: none;
  transition: color .25s;
}
.menu-toggle:hover { color: var(--cyan); }
.ah-title {
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.ah-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ah-user {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text2);
  font-size: 13px;
}
.ah-user i { color: var(--cyan); }

.panel-content { padding: 24px; flex: 1; }
.panel { animation: fadeIn .3s ease; }
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-header h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-h);
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
}
.panel-header h2 i { color: var(--cyan); }
.ph-actions { display: flex; gap: 8px; }

/* ════ BUTTONS ════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-b);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  letter-spacing: .3px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,212,255,0.3); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
}
.btn-secondary:hover { border-color: rgba(0,212,255,0.4); color: var(--cyan); }
.sync-banner {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: var(--rad-m);
  border: 1px solid var(--border);
  background: rgba(255,159,67,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sync-banner.sync-ok {
  background: rgba(0,255,136,0.08);
  border-color: rgba(0,255,136,0.25);
}
.sync-banner.sync-warn {
  background: rgba(255,159,67,0.08);
  border-color: rgba(255,159,67,0.3);
}
.sync-banner-text {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text2);
  font-size: 13px;
  line-height: 1.5;
  flex: 1;
  min-width: 220px;
}
.sync-banner-text i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.sync-banner.sync-ok .sync-banner-text i { color: var(--green); }
.sync-banner-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg3);
  color: var(--text2);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: var(--font-b);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  text-decoration: none;
}
.btn-sm:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(0,212,255,0.05); }
.btn-sm.danger { border-color: rgba(255,71,87,0.3); color: var(--red); }
.btn-sm.danger:hover { background: rgba(255,71,87,0.1); border-color: var(--red); }
.btn-icon {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  cursor: pointer;
  font-size: 13px;
  transition: all .2s;
}
.btn-icon:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-icon.del:hover { border-color: var(--red); color: var(--red); background: rgba(255,71,87,0.08); }

/* ════ DASHBOARD ════ */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.ds-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.ds-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
}
.ds-icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.ds-info strong {
  display: block;
  font-family: var(--font-h);
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.ds-info span { font-size: 12px; color: var(--text2); font-weight: 500; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dash-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 20px;
}
.dash-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-h);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: .5px;
}
.dash-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border2);
  font-size: 13px;
}
.dash-item:last-child { border-bottom: none; }
.dash-item-icon {
  width: 32px; height: 32px;
  background: var(--bg3);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.dash-item-info { flex: 1; min-width: 0; }
.dash-item-info strong { display: block; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-item-info span { color: var(--text2); font-size: 12px; }
.status-badge {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}
.status-new { background: rgba(0,255,136,0.12); color: var(--green); border: 1px solid rgba(0,255,136,0.25); }
.status-done { background: rgba(0,212,255,0.1); color: var(--cyan); border: 1px solid rgba(0,212,255,0.2); }
.status-read { background: rgba(0,212,255,0.1); color: var(--cyan); border: 1px solid rgba(0,212,255,0.2); }
.status-unread { background: rgba(255,71,87,0.1); color: var(--red); border: 1px solid rgba(255,71,87,0.2); }

/* ════ SETTINGS ════ */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  overflow: hidden;
}
.form-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-h);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 1px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,212,255,0.04);
}
.fc-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 6px; }
.fg label {
  font-size: 12px;
  color: var(--text2);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .3px;
}
.fg label i { color: rgba(0,212,255,0.5); font-size: 11px; }
.fg input, .fg select, .fg textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--rad-s);
  padding: 10px 14px;
  color: var(--text);
  font-family: var(--font-b);
  font-size: 14px;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0,212,255,0.1);
}
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Logo upload */
.logo-upload-area {
  border: 2px dashed rgba(0,212,255,0.2);
  border-radius: var(--rad);
  cursor: pointer;
  transition: border-color .25s;
  overflow: hidden;
}
.logo-upload-area:hover { border-color: var(--cyan); }
.logo-preview {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text2);
  font-size: 13px;
  text-align: center;
  min-height: 100px;
  justify-content: center;
}
.logo-preview i { font-size: 28px; color: rgba(0,212,255,0.4); }
.logo-preview small { font-size: 11px; opacity: .6; }
.logo-preview img { max-height: 80px; max-width: 100%; object-fit: contain; }

/* ════ ITEMS LIST ════ */
.items-list { display: flex; flex-direction: column; gap: 12px; }
.list-item {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: border-color .2s;
}
.list-item:hover { border-color: rgba(0,212,255,0.25); }
.li-thumb {
  width: 56px; height: 42px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
}
.li-thumb img { width: 100%; height: 100%; object-fit: cover; }
.li-info { flex: 1; min-width: 0; }
.li-name { font-weight: 600; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.li-sub { color: var(--text2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.li-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 10px;
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--cyan);
}
.li-actions { display: flex; gap: 6px; }

/* References admin grid */
.refs-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.ref-admin-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 16px;
  text-align: center;
  transition: border-color .2s;
}
.ref-admin-card:hover { border-color: rgba(0,212,255,0.3); }
.rac-logo {
  width: 64px; height: 48px;
  margin: 0 auto 10px;
  background: var(--bg3);
  border-radius: 7px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 20px;
  border: 1px solid var(--border);
}
.rac-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rac-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.rac-sector { font-size: 11px; color: var(--text2); margin-bottom: 10px; }
.rac-actions { display: flex; gap: 6px; justify-content: center; }

/* ════ TABLE ════ */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  background: var(--bg3);
  color: var(--text2);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .8px;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border2);
  color: var(--text2);
  vertical-align: middle;
}
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
.admin-table td:first-child { color: var(--text); font-weight: 600; }

/* ════ MODAL ════ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(6px);
  animation: fadeIn .2s ease;
}
.modal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: slideUp .3s cubic-bezier(.34,1.56,.64,1);
}
.modal-card.wide { max-width: 720px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 {
  font-family: var(--font-h);
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
}
.modal-close {
  width: 32px; height: 32px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  cursor: pointer;
  font-size: 14px;
  transition: all .2s;
}
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-body {
  padding: 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Image upload box */
.img-upload-box {
  border: 2px dashed rgba(0,212,255,0.2);
  border-radius: var(--rad);
  cursor: pointer;
  overflow: hidden;
  min-height: 90px;
  transition: border-color .25s;
  position: relative;
}
.img-upload-box:hover { border-color: var(--cyan); }
.iub-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px;
  color: var(--text2);
  font-size: 13px;
  min-height: 90px;
  text-align: center;
}
.iub-placeholder i { font-size: 24px; color: rgba(0,212,255,0.35); }
.img-upload-box img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  display: block;
  padding: 8px;
  background: var(--bg2);
}
.img-upload-box-lg {
  min-height: 200px;
}
.img-upload-box-lg img {
  max-height: 280px;
  object-fit: cover;
}
.img-upload-box-lg .iub-placeholder small {
  font-size: 11px;
  opacity: 0.75;
}
.fg-full { grid-column: 1 / -1; }

/* ════ EMPTY STATE ════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text2);
}
.empty-state i { font-size: 48px; color: rgba(0,212,255,0.2); margin-bottom: 16px; display: block; }
.empty-state p { font-size: 15px; }

/* ════ TOAST ════ */
.a-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--card2);
  border: 1px solid var(--green);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  transform: translateX(200%);
  transition: transform .4s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.a-toast.show { transform: translateX(0); }
.a-toast i { color: var(--green); font-size: 16px; }
.a-toast.error { border-color: var(--red); }
.a-toast.error i { color: var(--red); }

/* ════ KEYFRAMES ════ */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ════ RESPONSIVE ════ */
@media (max-width: 1200px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .refs-admin-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); }
  .sb-close { display: flex; align-items: center; justify-content: center; }
  .admin-main { margin-left: 0; }
  .menu-toggle { display: flex; }
  .refs-admin-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-table { font-size: 12px; }
  .fg2, .fg3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .panel-content { padding: 16px; }
  .modal-card { border-radius: 12px; }
  .modal-body { padding: 16px; }
}
