/* =============================================
   SOCIBIT ADMIN PANEL — admin.css
   ============================================= */

/* ===== VARIABLES ===== */
:root {
  --bg:        #0d0d0d;
  --bg2:       #111111;
  --bg3:       #171717;
  --bg4:       #1e1e1e;
  --border:    rgba(255,255,255,0.07);
  --border2:   rgba(255,255,255,0.12);
  --text:      #f0f0f0;
  --text-2:    #a0a0a0;
  --text-muted:#666;
  --accent:    #8b5cf6;
  --accent-2:  #a78bfa;
  --cyan:      #22d3ee;
  --green:     #10b981;
  --red:       #ef4444;
  --yellow:    #f59e0b;
  --sidebar-w: 240px;
  --topbar-h:  54px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
.hidden { display: none !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* =============================================
   LOGIN SCREEN
   ============================================= */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 30% 20%, rgba(139,92,246,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(67,56,202,0.1) 0%, transparent 60%),
              var(--bg);
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 40px 36px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(139,92,246,0.08);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.login-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}
.login-brand span { color: var(--accent-2); }

.login-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.login-sub {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 28px;
}

.login-err {
  background: rgba(239,68,68,0.12);
  border: 1px solid rgba(239,68,68,0.25);
  color: #fca5a5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: none;
}
.login-err:not(:empty) { display: block; }

.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.adm-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.adm-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
textarea.adm-input { resize: vertical; min-height: 80px; }

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #8b5cf6, #4338ca);
  border: none;
  border-radius: 11px;
  color: #fff;
  font-size: 0.97rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(139,92,246,0.4); }
.btn-login:disabled { opacity: 0.6; transform: none; cursor: not-allowed; }

.login-note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* =============================================
   ADMIN LAYOUT
   ============================================= */
.admin-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ===== SIDEBAR ===== */
.adm-sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  transition: transform 0.25s ease;
}

.adm-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.adm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.adm-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.adm-logo-text span { color: var(--accent-2); }

.sidebar-close-btn {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1rem;
  padding: 4px;
  display: none;
  transition: color 0.2s;
}
.sidebar-close-btn:hover { color: var(--text); }

.adm-nav { flex: 1; padding: 12px 8px; overflow-y: auto; }

.adm-nav-group { margin-bottom: 6px; }

.adm-nav-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 8px 10px 4px;
}

.anav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  transition: all 0.15s;
  position: relative;
}
.anav-link i { width: 18px; text-align: center; font-size: 0.9rem; flex-shrink: 0; }
.anav-link span:first-of-type { flex: 1; }
.anav-link:hover { background: rgba(255,255,255,0.05); color: var(--text); }
.anav-link.active {
  background: rgba(139,92,246,0.15);
  color: var(--accent-2);
  font-weight: 600;
}
.anav-link.active i { color: var(--accent); }

.anav-count {
  background: rgba(255,255,255,0.08);
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  color: var(--text-2);
}
.anav-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
}

.adm-sidebar-foot {
  padding: 10px 8px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.adm-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: none;
  border: none;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
}
.adm-logout-btn:hover { background: rgba(239,68,68,0.1); }
.adm-logout-btn i { width: 18px; text-align: center; }

/* ===== MAIN WRAP ===== */
.adm-main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ===== TOPBAR ===== */
.adm-topbar {
  height: var(--topbar-h);
  background: linear-gradient(135deg, #0f0f0f, #1a1a2e 50%, #0f0f0f);
  border-bottom: 1px solid rgba(139,92,246,0.2);
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 14px;
  flex-shrink: 0;
  position: relative;
}
.adm-topbar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), rgba(99,102,241,0.4), transparent);
}

.adm-toggle {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  padding: 7px 9px;
  border-radius: 8px;
  display: none;
  transition: all 0.2s;
}
.adm-toggle:hover { background: rgba(255,255,255,0.1); color: #fff; }

.adm-topbar-title {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

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

.adm-topbar-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
}

.adm-ava {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  border: 2px solid rgba(139,92,246,0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(139,92,246,0.25);
  transition: box-shadow 0.2s;
}
.adm-ava:hover { box-shadow: 0 0 18px rgba(139,92,246,0.45); }

/* ===== MAIN CONTENT ===== */
.adm-main {
  flex: 1;
  overflow-y: auto;
  padding: 26px 28px;
}

/* =============================================
   STAT CARDS
   ============================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.stat-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover { border-color: var(--border2); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  flex-shrink: 0;
}
.stat-info { flex: 1; min-width: 0; }
.stat-val { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.stat-lbl { font-size: 0.78rem; color: var(--text-2); margin-top: 2px; }
.stat-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 99px;
  white-space: nowrap;
  align-self: flex-start;
}
.stat-badge.good { background: rgba(16,185,129,0.12); color: #34d399; border: 1px solid rgba(16,185,129,0.2); }
.stat-badge.info { background: rgba(34,211,238,0.1); color: var(--cyan); border: 1px solid rgba(34,211,238,0.15); }
.stat-badge.danger { background: rgba(239,68,68,0.1); color: #fca5a5; border: 1px solid rgba(239,68,68,0.2); }

/* =============================================
   PANELS
   ============================================= */
.panel {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.mt16 { margin-top: 16px; }

.panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  gap: 12px;
}
.panel-hdr span { display: flex; align-items: center; gap: 8px; }
.panel-hdr i { color: var(--accent-2); }

.panel-body-pad { padding: 18px; }

.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 0;
}

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

/* =============================================
   TABLES
   ============================================= */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table thead tr {
  border-bottom: 1px solid var(--border);
}
.data-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.data-table td {
  padding: 11px 16px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: rgba(255,255,255,0.02); }
.text-muted { color: var(--text-2) !important; font-size: 0.83rem; }
.empty-row { text-align: center; color: var(--text-muted); padding: 30px 16px !important; font-size: 0.88rem; }

.user-cell { display: flex; align-items: center; gap: 9px; }
.u-ava {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #8b5cf6, #4f46e5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* =============================================
   BADGES & TAGS
   ============================================= */
.badge-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-done {
  display: inline-flex;
  padding: 3px 9px;
  background: rgba(255,255,255,0.05);
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-banned {
  display: inline-flex;
  padding: 3px 9px;
  background: rgba(239,68,68,0.12);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.2);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(139,92,246,0.12);
  color: var(--accent-2);
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: capitalize;
}

.plat-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 600;
}

.coin-val {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fbbf24;
  font-weight: 600;
  font-size: 0.85rem;
}
.coin-val i { font-size: 0.78rem; }

/* =============================================
   PROGRESS BAR
   ============================================= */
.prog-wrap { display: flex; align-items: center; gap: 8px; min-width: 100px; }
.prog-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.06); border-radius: 99px; overflow: hidden; }
.prog-fill { height: 100%; background: linear-gradient(90deg, #8b5cf6, #06b6d4); border-radius: 99px; transition: width 0.3s; }
.prog-text { font-size: 0.75rem; color: var(--text-2); white-space: nowrap; }

/* =============================================
   SEARCH
   ============================================= */
.search-input {
  padding: 7px 12px;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.84rem;
  outline: none;
  width: 220px;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }

/* =============================================
   ACTIVITY LOG
   ============================================= */
.activity-list { padding: 4px 0; max-height: 260px; overflow-y: auto; }
.activity-full { padding: 4px 0; }

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.activity-item:last-child { border-bottom: none; }
.activity-item:hover { background: rgba(255,255,255,0.02); }

.act-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.act-info { flex: 1; min-width: 0; }
.act-success { background: var(--green); }
.act-danger { background: var(--red); }
.act-info-dot { background: var(--cyan); }
.act-auth { background: var(--accent); }
.act-info { background: var(--cyan); }

.act-dot.act-success { background: var(--green); }
.act-dot.act-danger { background: var(--red); }
.act-dot.act-info { background: var(--cyan); }
.act-dot.act-auth { background: var(--accent); }

.act-msg { font-size: 0.85rem; color: var(--text); }
.act-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn-sm {
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 7px;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-sm:hover { background: rgba(255,255,255,0.1); color: var(--text); }

.btn-primary-sm {
  padding: 7px 14px;
  background: linear-gradient(135deg, #8b5cf6, #4338ca);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 0.83rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(139,92,246,0.2);
  white-space: nowrap;
}
.btn-primary-sm:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,92,246,0.35); }

.btn-danger-sm {
  padding: 7px 14px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 8px;
  color: #fca5a5;
  font-size: 0.83rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-danger-sm:hover { background: rgba(239,68,68,0.18); border-color: rgba(239,68,68,0.4); }

.action-btns { display: flex; gap: 6px; }

.btn-action {
  width: 30px; height: 30px;
  border-radius: 7px;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  transition: all 0.15s;
}
.btn-edit { color: var(--cyan); }
.btn-edit:hover { background: rgba(34,211,238,0.1); border-color: rgba(34,211,238,0.3); }
.btn-ban { color: var(--yellow); }
.btn-ban:hover { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); }
.btn-unban { color: var(--green); }
.btn-unban:hover { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); }
.btn-delete { color: var(--red); }
.btn-delete:hover { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); }

/* =============================================
   FORMS
   ============================================= */
.modal-field { margin-bottom: 14px; }
.modal-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.form-input {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg4);
  border: 1px solid var(--border2);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139,92,246,0.12); }
select.form-input option { background: var(--bg3); }
textarea.form-input { resize: vertical; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 10px; margin-top: 16px; }
.form-err { color: #fca5a5; font-size: 0.82rem; margin-top: 8px; min-height: 18px; }
.field-hint { font-size: 0.84rem; color: var(--text-2); margin-bottom: 14px; line-height: 1.6; }
.mt16 { margin-top: 16px; }

/* =============================================
   ANNOUNCEMENTS
   ============================================= */
.announce-preview {
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 0.88rem;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}
.announce-preview.empty { color: var(--text-muted); background: var(--bg4); border-color: var(--border); }

/* ===== TOGGLE SWITCH ===== */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}
.toggle-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* =============================================
   SETTINGS GRID
   ============================================= */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.data-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.data-action-row:last-child { border-bottom: none; }
.danger-row .data-action-title { color: #fca5a5; }

.data-action-title { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.data-action-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }

.sys-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.sys-row {
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 0.85rem;
}
.sys-row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.sys-row span { color: var(--text-2); }
.sys-row strong { color: var(--text); }

/* =============================================
   MODAL
   ============================================= */
.adm-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  backdrop-filter: blur(4px);
}
.adm-modal-box {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-inner { padding: 26px; }
.modal-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-inner p { font-size: 0.9rem; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; }
.modal-inner p strong { color: var(--text); }
.modal-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.modal-icon.danger { background: rgba(239,68,68,0.15); color: var(--red); }

.modal-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.btn-modal-cancel {
  padding: 9px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border2);
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-modal-cancel:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.btn-modal-primary {
  padding: 9px 18px;
  background: linear-gradient(135deg, #8b5cf6, #4338ca);
  border: none;
  border-radius: 9px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(139,92,246,0.25);
}
.btn-modal-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(139,92,246,0.4); }
.btn-modal-danger {
  padding: 9px 18px;
  background: var(--red);
  border: none;
  border-radius: 9px;
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-modal-danger:hover { background: #dc2626; transform: translateY(-1px); }

/* =============================================
   TOAST
   ============================================= */
.toast-zone {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
  max-width: 340px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast-success { background: rgba(16,185,129,0.15); border: 1px solid rgba(16,185,129,0.3); color: #6ee7b7; }
.toast-error   { background: rgba(239,68,68,0.15);  border: 1px solid rgba(239,68,68,0.3);  color: #fca5a5; }
.toast-info    { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3); color: var(--accent-2); }

/* =============================================
   URL CELL
   ============================================= */
.url-cell { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

code {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.82rem;
  color: var(--accent-2);
  font-family: monospace;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1200px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .adm-sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    box-shadow: 4px 0 24px rgba(0,0,0,0.4);
  }
  .adm-sidebar.open { transform: translateX(0); }
  .adm-toggle { display: flex; }
  .sidebar-close-btn { display: flex; }
  .dash-row { grid-template-columns: 1fr; }
  .adm-main { padding: 18px; }
}

@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .adm-main { padding: 14px; }
  .adm-topbar { padding: 0 14px; }
  .data-table { font-size: 0.8rem; }
  .data-table th, .data-table td { padding: 8px 10px; }
  .form-row-2 { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

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