/* ═══════════════════════════════════════════════════
   FOUNDER CHECKLIST — MODERN ADMIN DASHBOARD
   ═══════════════════════════════════════════════════ */

/* ─── VARIABLES ───────────────────────────────── */
:root {
  /* Core palette */
  --bg: #09090b;
  --bg-subtle: #0f0f12;
  --surface: #111114;
  --surface-2: #18181b;
  --surface-3: #1e1e22;
  --card: #151518;
  --card-hover: #1a1a1e;

  /* Borders */
  --border: rgba(255,255,255,.06);
  --border-2: rgba(255,255,255,.1);
  --border-focus: rgba(200,168,75,.4);

  /* Gold accent */
  --gold: #d4a843;
  --gold-hover: #e0bb5e;
  --gold-dim: #8a6e2f;
  --gold-glow: rgba(212,168,67,.15);
  --gold-bg: rgba(212,168,67,.06);

  /* Semantic colors */
  --red: #ef4444;
  --red-soft: rgba(239,68,68,.12);
  --amber: #f59e0b;
  --amber-soft: rgba(245,158,11,.12);
  --blue: #3b82f6;
  --blue-soft: rgba(59,130,246,.12);
  --green: #22c55e;
  --green-soft: rgba(34,197,94,.12);
  --purple: #a855f7;
  --purple-soft: rgba(168,85,247,.12);
  --cyan: #06b6d4;

  /* Text */
  --text: #fafafa;
  --text-2: #a1a1aa;
  --text-3: #52525b;
  --text-4: #3f3f46;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Sizing */
  --r: 10px;
  --r-lg: 14px;
  --r-sm: 6px;
  --sidebar-w: 260px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
}

/* ─── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

a { color: var(--gold); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--gold-hover); }

::selection { background: var(--gold); color: var(--bg); }

/* Focus ring */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ═══════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════ */
#sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .3s var(--ease);
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px;
  border-bottom: 1px solid var(--border);
}

.sb-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8922e 100%);
  color: var(--bg);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.5px;
  box-shadow: 0 2px 12px var(--gold-glow);
}

.sb-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  letter-spacing: -0.3px;
}

.sb-menu {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sb-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all .2s var(--ease);
  position: relative;
  border: 1px solid transparent;
}

.sb-item:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.sb-item.active {
  background: var(--gold-bg);
  color: var(--gold);
  border-color: rgba(212,168,67,.12);
  font-weight: 600;
}

.sb-item.active::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--gold);
  border-radius: 0 3px 3px 0;
}

.sb-icon {
  font-size: 17px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1;
}

.sb-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 6px;
}

.sb-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

.sb-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r);
  margin-top: 6px;
  transition: background .2s;
}

.sb-user:hover {
  background: var(--surface-2);
}

.sb-avatar {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--gold) 0%, #b8922e 100%);
  color: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(212,168,67,.2);
}

.sb-user-info { display: flex; flex-direction: column; }
.sb-user-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sb-user-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  font-family: var(--mono);
  font-weight: 400;
}

/* ═══════════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════════ */
#content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--bg);
}

#topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  height: 60px;
  background: rgba(9,9,11,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-2);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--r);
  cursor: pointer;
  font-size: 16px;
  transition: all .15s;
}

.menu-toggle:hover {
  background: var(--surface-2);
}

.page-title {
  font-size: 18px;
  font-weight: 700;
  flex: 1;
  letter-spacing: -0.3px;
}

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

.topbar-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: var(--r);
  border: 1px solid var(--border-2);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all .2s var(--ease);
}

.topbar-btn:hover {
  border-color: var(--text-3);
  color: var(--text);
  background: var(--surface-2);
}

.topbar-btn.warn:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-soft);
}

/* Notification Bell */
.notif-bell {
  position: relative;
  cursor: pointer;
  font-size: 18px;
  padding: 8px;
  border-radius: var(--r);
  transition: background .15s;
}

.notif-bell:hover { background: var(--surface-2); }

.notif-badge {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  font-family: var(--mono);
  min-width: 16px;
  text-align: center;
  line-height: 14px;
}

.notif-panel {
  position: fixed;
  top: 64px; right: 20px;
  width: 380px;
  max-height: 440px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px var(--border);
  z-index: 200;
  overflow: hidden;
  animation: slideDown .2s var(--ease);
}

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

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.notif-header strong { font-size: 14px; font-weight: 600; }

.notif-mark-all {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: color .15s;
}
.notif-mark-all:hover { color: var(--gold-hover); }

.notif-list { max-height: 360px; overflow-y: auto; }
.notif-empty { padding: 32px; text-align: center; color: var(--text-3); font-size: 13px; }

.notif-item {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.notif-item:hover { background: var(--surface-3); }
.notif-item.unread { border-left: 3px solid var(--gold); background: var(--gold-bg); }
.notif-item .notif-title { font-size: 13px; font-weight: 600; }
.notif-item .notif-msg { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
.notif-item .notif-time { font-size: 10px; color: var(--text-3); margin-top: 6px; font-family: var(--mono); }

/* Language Switch */
.lang-switch select {
  background: var(--surface-2);
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: 6px 10px;
  border-radius: var(--r);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.lang-switch select:hover {
  border-color: var(--text-3);
  background-color: var(--surface-3);
}

.page-content { padding: 28px; }

/* ═══════════════════════════════════════════════════
   ALERTS
   ═══════════════════════════════════════════════════ */
.alert {
  padding: 14px 18px;
  border-radius: var(--r);
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn .3s var(--ease);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.alert-error { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.alert-warning { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.alert-info { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }

/* ═══════════════════════════════════════════════════
   STAT CARDS
   ═══════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 20px;
  text-align: center;
  transition: all .25s var(--ease);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0;
  transition: opacity .25s;
}

.stat-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.stat-card:hover::before { opacity: 1; }

.stat-value {
  font-size: 34px;
  font-weight: 800;
  font-family: var(--font);
  color: var(--gold);
  line-height: 1.1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-3);
  margin-top: 8px;
  font-weight: 500;
}

.stat-card.danger .stat-value { color: var(--red); }
.stat-card.danger::before { background: linear-gradient(90deg, transparent, var(--red), transparent); }
.stat-card.warning .stat-value { color: var(--amber); }
.stat-card.warning::before { background: linear-gradient(90deg, transparent, var(--amber), transparent); }
.stat-card.success .stat-value { color: var(--green); }
.stat-card.success::before { background: linear-gradient(90deg, transparent, var(--green), transparent); }

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
  margin: 8px 0;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  border-radius: 3px;
  transition: width .8s var(--ease);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ═══════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════ */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  font-family: var(--font);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

td {
  padding: 14px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background .15s;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--card-hover); }

/* ═══════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════ */
.badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  white-space: nowrap;
}

.badge-now { color: var(--red); background: var(--red-soft); }
.badge-week { color: var(--amber); background: var(--amber-soft); }
.badge-month { color: var(--blue); background: var(--blue-soft); }
.badge-q1 { color: var(--green); background: var(--green-soft); }
.badge-dec { color: var(--gold); background: var(--gold-bg); }
.badge-info { color: var(--purple); background: var(--purple-soft); }

.badge-pending { color: var(--amber); background: var(--amber-soft); }
.badge-in_progress { color: var(--blue); background: var(--blue-soft); }
.badge-done { color: var(--green); background: var(--green-soft); }

.badge-admin { color: var(--gold); background: var(--gold-bg); }
.badge-manager { color: var(--blue); background: var(--blue-soft); }
.badge-member { color: var(--green); background: var(--green-soft); }
.badge-viewer { color: var(--text-3); background: rgba(255,255,255,.04); }

/* ═══════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  transition: all .2s var(--ease);
}

.form-control:hover {
  border-color: var(--text-4);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
  background: var(--surface);
}

.form-control::placeholder { color: var(--text-4); }

textarea.form-control { min-height: 110px; resize: vertical; line-height: 1.6; }

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23a1a1aa' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Checkbox styling */
.form-group label input[type="checkbox"] {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

/* ═══════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--r);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.1px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #b8922e);
  border-color: var(--gold);
  color: var(--bg);
  box-shadow: 0 2px 12px var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-hover), var(--gold));
  box-shadow: 0 4px 20px rgba(212,168,67,.25);
  transform: translateY(-1px);
}

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

.btn-secondary {
  background: var(--surface-2);
  border-color: var(--border-2);
  color: var(--text-2);
}

.btn-secondary:hover {
  border-color: var(--text-3);
  color: var(--text);
  background: var(--surface-3);
}

.btn-danger {
  background: transparent;
  border-color: rgba(239,68,68,.3);
  color: var(--red);
}

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

.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: var(--r-sm); }
.btn-group { display: flex; gap: 10px; margin-top: 20px; }

/* ═══════════════════════════════════════════════════
   MODALS
   ═══════════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(4px);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn .2s var(--ease);
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  width: 90%;
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  animation: modalIn .25s var(--spring);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.modal-close {
  background: var(--surface-3);
  border: 1px solid var(--border-2);
  color: var(--text-3);
  font-size: 18px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
}
.modal-close:hover { color: var(--text); background: var(--surface-2); border-color: var(--text-4); }

/* ═══════════════════════════════════════════════════
   SECTION PROGRESS CARDS
   ═══════════════════════════════════════════════════ */
.section-progress {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}

.sp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
  transition: all .25s var(--ease);
}

.sp-card:hover {
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

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

.sp-tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gold);
  font-weight: 600;
}

.sp-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
}

.sp-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
}

/* ═══════════════════════════════════════════════════
   ACTIVITY LOG
   ═══════════════════════════════════════════════════ */
.activity-list { list-style: none; }

.activity-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
  align-items: flex-start;
}

.activity-item:last-child { border-bottom: none; }

.activity-icon {
  width: 32px; height: 32px;
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.activity-icon.create { background: var(--green-soft); color: var(--green); }
.activity-icon.update { background: var(--blue-soft); color: var(--blue); }
.activity-icon.delete { background: var(--red-soft); color: var(--red); }
.activity-icon.restore { background: var(--gold-bg); color: var(--gold); }

.activity-text { flex: 1; line-height: 1.5; }
.activity-text strong { font-weight: 600; }
.activity-text em { color: var(--text-2); font-style: normal; }
.activity-time { font-size: 11px; color: var(--text-3); font-family: var(--mono); margin-top: 3px; }

/* ═══════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.auth-wrapper::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.auth-box {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  padding: 44px 40px;
  width: 100%;
  max-width: 440px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
}

.auth-logo {
  text-align: center;
  margin-bottom: 36px;
}

.auth-logo .logo-text {
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -1px;
  background: linear-gradient(135deg, var(--gold-hover), var(--gold), #b8922e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-logo .logo-sub {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-3);
  margin-top: 6px;
  font-weight: 500;
}

.auth-box h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
  letter-spacing: -0.3px;
}

.auth-error {
  background: var(--red-soft);
  border: 1px solid rgba(239,68,68,.3);
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--r);
  font-size: 13px;
  margin-bottom: 20px;
  font-weight: 500;
}

.auth-box .btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  padding: 12px 20px;
  font-size: 14px;
}

.auth-link {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
}

.pagination a, .pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 13px;
  font-family: var(--mono);
  transition: all .15s;
  color: var(--text-2);
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-bg);
}

.pagination .current {
  background: linear-gradient(135deg, var(--gold), #b8922e);
  border-color: var(--gold);
  color: var(--bg);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════════
   TRANSLATION EDITOR
   ═══════════════════════════════════════════════════ */
.trans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.trans-col-header {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════════════ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: 8px; }
.gap-md { gap: 12px; }
.gap-lg { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 20px; }
.mb-lg { margin-bottom: 32px; }
.mt-md { margin-top: 20px; }
.text-muted { color: var(--text-2); }
.text-dim { color: var(--text-3); }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.mono { font-family: var(--mono); }
.font-bold { font-weight: 600; }
.w-full { width: 100%; }

/* Page sections */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.page-header-info { color: var(--text-2); font-size: 14px; }

/* Detail card */
.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}

.detail-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.2px;
}

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

.detail-row:last-child { border-bottom: none; }
.detail-row-label { color: var(--text-2); font-weight: 500; }
.detail-row-value { color: var(--text); font-family: var(--mono); font-size: 12px; }

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

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

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

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

/* Status dot */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
}

.status-dot.active { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.inactive { background: var(--text-4); }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-3);
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: .5;
}

.empty-state-text {
  font-size: 14px;
  color: var(--text-3);
}

/* Inline form select (for status changes in tables) */
.inline-select {
  background: var(--bg);
  color: var(--text-2);
  border: 1px solid var(--border-2);
  padding: 5px 28px 5px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-family: var(--font);
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.inline-select:hover {
  border-color: var(--text-4);
}

.inline-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .grid-2-1, .grid-1-1 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  #sidebar {
    transform: translateX(-100%);
  }

  body.sb-open #sidebar {
    transform: translateX(0);
  }

  body.sb-open::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99;
  }

  #content {
    margin-left: 0;
  }

  .menu-toggle {
    display: flex;
  }

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

  .section-progress {
    grid-template-columns: 1fr;
  }

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

  .page-content {
    padding: 20px 16px;
  }

  #topbar {
    padding: 0 16px;
  }

  .notif-panel {
    right: 8px;
    left: 8px;
    width: auto;
  }

  .modal {
    margin: 16px;
    padding: 24px;
  }

  .auth-box {
    margin: 16px;
    padding: 32px 24px;
  }
}

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

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

  .topbar-actions .user-menu {
    display: none;
  }

  .page-title {
    font-size: 16px;
  }
}
