:root {
  --gold-50: #fffbeb;
  --gold-100: #fef3c7;
  --gold-500: #f59e0b;
  --gold-600: #d97706;
  --gold-700: #b45309;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --green-50: #f0fdf4;
  --green-500: #10b981;
  --green-600: #059669;
  --blue-600: #2563eb;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --wa-green: #25d366;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--slate-100);
  color: var(--slate-800);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.5;
}

/* ========================================================================= */
/* AUTH / LANDING SCREEN                                                     */
/* ========================================================================= */
.auth-screen {
  min-height: 100vh;
  background: radial-gradient(circle at top left, #1e293b 0%, #0f172a 55%, #111827 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
}

.auth-container {
  max-width: 1120px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}

.auth-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.auth-hero {
  color: #f8fafc;
}

.auth-brand-pill {
  display: inline-block;
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  margin-bottom: 18px;
}

.auth-hero h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 0 0 16px 0;
  font-weight: 800;
  color: #ffffff;
}

.auth-lead {
  font-size: 16px;
  color: #cbd5e1;
  margin: 0 0 28px 0;
}

.auth-feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
}

.feat-icon {
  font-size: 24px;
  line-height: 1;
}

.auth-feature-item strong {
  display: block;
  color: #fbbf24;
  font-size: 14px;
  margin-bottom: 2px;
}

.auth-feature-item p {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
}

.auth-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--slate-100);
  padding: 5px;
  border-radius: 10px;
  margin-bottom: 22px;
}

.auth-tab-btn {
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--slate-600);
  transition: all 0.15s;
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--slate-900);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.auth-form h2 {
  margin: 0 0 6px 0;
  font-size: 22px;
  color: var(--slate-900);
}

.auth-sub {
  margin: 0 0 18px 0;
  font-size: 13px;
  color: var(--slate-600);
}

.pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-wrap .sokmo-input {
  padding-right: 40px;
}

.pw-toggle-btn {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--slate-700);
  cursor: pointer;
}

.auth-switch-hint {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--slate-600);
}

.auth-switch-hint a {
  color: var(--gold-700);
  font-weight: 700;
  text-decoration: none;
}

.form-alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ========================================================================= */
/* APP SHELL (SIDEBAR + MAIN CONTENT)                                        */
/* ========================================================================= */
.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 265px;
  background: var(--slate-900);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px 20px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-logo {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
}

.brand-company {
  margin-top: 4px;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
}

.sidebar-user-card {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 14px 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-600);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}

.user-meta {
  min-width: 0;
}

.user-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-email {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.role-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.18);
  color: #fbbf24;
}

.sidebar-nav {
  flex: 1;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  width: 100%;
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 10px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item.active {
  background: var(--gold-600);
  color: #ffffff;
}

.nav-count {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 700;
}

.nav-count.gold {
  background: rgba(251, 191, 36, 0.22);
  color: #fde68a;
}

.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.main-content {
  flex: 1;
  min-width: 0;
  padding: 24px 28px 60px;
}

.mobile-header {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

/* ========================================================================= */
/* REUSABLE COMPONENTS (GOLD & SLATE MODERN UI)                              */
/* ========================================================================= */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 18px 22px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 14px;
}

.page-header h1 {
  margin: 0 0 4px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--slate-600);
}

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

.badge-gold {
  background: var(--gold-100);
  color: var(--gold-700);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.badge-green {
  background: #dcfce7;
  color: #166534;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.alert-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.alert-gold {
  background: var(--gold-50);
  border: 1px solid #fde68a;
  color: #92400e;
}

.alert-green {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.alert-blue {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.alert-red {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.metric-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.metric-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

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

.card-stat {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.stat-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--slate-600);
  margin-bottom: 6px;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-number.gold { color: var(--gold-600); }
.stat-number.red { color: var(--red-500); }
.stat-number.green { color: var(--green-600); }
.stat-number.blue { color: var(--blue-600); }

.stat-desc {
  font-size: 12px;
  color: var(--slate-400);
}

.box-panel {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  margin-bottom: 18px;
}

.panel-head {
  padding: 14px 18px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.panel-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--slate-900);
}

.panel-body {
  padding: 18px;
}

.badge-sub {
  background: #e2e8f0;
  color: var(--slate-700);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}

.filter-bar {
  display: flex;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 145px;
}

.filter-item.grow {
  flex: 1;
  min-width: 200px;
}

.filter-item label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate-600);
}

/* Inputs & Buttons */
.form-row {
  margin-bottom: 14px;
}

.form-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 5px;
}

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

.form-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.sokmo-input,
.sokmo-select,
.sokmo-textarea {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 13.5px;
  color: var(--slate-800);
  background: #ffffff;
  font-family: inherit;
}

.sokmo-input:focus,
.sokmo-select:focus,
.sokmo-textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.sokmo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.15s;
}

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

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

.sokmo-btn-block {
  width: 100%;
}

.sokmo-btn-primary {
  background: var(--gold-600);
  color: #ffffff;
}

.sokmo-btn-primary:hover:not(:disabled) {
  background: var(--gold-700);
}

.sokmo-btn-outline {
  background: #ffffff;
  color: var(--slate-700);
  border-color: var(--slate-200);
}

.sokmo-btn-outline:hover:not(:disabled) {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.sokmo-btn-wa {
  background: var(--wa-green);
  color: #ffffff;
}

.sokmo-btn-wa:hover:not(:disabled) {
  background: #1eb857;
}

.sokmo-btn-danger {
  background: var(--red-600);
  color: #ffffff;
}

.sokmo-btn-danger-outline {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.sokmo-btn-danger-outline:hover {
  background: var(--red-600);
  color: #ffffff;
}

.btn-group {
  display: inline-flex;
  gap: 5px;
  flex-wrap: nowrap;
}

.btn-mini {
  padding: 4px 9px;
  font-size: 12px;
  border-radius: 5px;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-700);
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-mini:hover {
  background: var(--slate-100);
}

.btn-mini.wa {
  background: var(--wa-green);
  color: #ffffff;
  border-color: var(--wa-green);
}

.btn-mini.warn {
  background: #fffbeb;
  color: #b45309;
  border-color: #fcd34d;
}

.btn-mini.danger {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
}

/* Tables & Dual Top-Bottom Horizontal Scrollbars */
.sokmo-top-scrollbar {
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  height: 16px;
  margin-bottom: 6px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  scrollbar-color: var(--gold-600) var(--slate-100);
  scrollbar-width: thin;
}

.sokmo-top-scrollbar::-webkit-scrollbar {
  height: 12px;
}

.sokmo-top-scrollbar::-webkit-scrollbar-track {
  background: var(--slate-100);
  border-radius: 8px;
}

.sokmo-top-scrollbar::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
  border: 2px solid var(--slate-100);
}

.sokmo-top-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--gold-600);
}

.sokmo-top-scrollbar-inner {
  height: 1px;
}

.card-table {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

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

.sokmo-table th {
  background: var(--slate-50);
  color: var(--slate-600);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 700;
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--slate-200);
  white-space: nowrap;
}

.sokmo-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--slate-100);
  vertical-align: middle;
}

.sokmo-table tr:hover td {
  background: #f8fafc;
}

.sokmo-table tr.row-selected td {
  background: #fef2f2 !important;
}

.subtext {
  font-size: 11.5px;
  color: var(--slate-600);
  margin-top: 2px;
}

/* Badges & Tags */
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--slate-100);
  color: var(--slate-700);
}

.tag-baru { background: #e0f2fe; color: #0369a1; }
.tag-berulang { background: #dcfce7; color: #15803d; }
.tag-vip { background: #fef3c7; color: #b45309; }
.tag-elit { background: #f3e8ff; color: #7e22ce; }

.tag-aktif { background: #dcfce7; color: #166534; }
.tag-sejuk { background: #ffedd5; color: #9a3412; }
.tag-hilang { background: #fee2e2; color: #991b1b; }

.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12px;
}

.priority-1 { background: #fee2e2; color: #dc2626; border: 2px solid #ef4444; }
.priority-2 { background: #e0e7ff; color: #4338ca; border: 1px solid #6366f1; }
.priority-3 { background: #dcfce7; color: #15803d; border: 1px solid #22c55e; }
.priority-4 { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; }

.script-code {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 12px;
  background: #dbeafe;
  color: #1e40af;
}

.script-code.bantahan { background: #fed7aa; color: #9a3412; }
.script-code.referral { background: #fbcfe8; color: #9d174d; }

.bhi-ya {
  background: #10b981;
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.bhi-tidak {
  background: var(--slate-100);
  color: var(--slate-400);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid var(--slate-200);
  background: #ffffff;
  padding: 9px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
}

.tab-btn.active {
  background: var(--slate-900);
  color: #fbbf24;
  border-color: var(--slate-900);
}

/* Bulk Bar */
.bulk-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  padding: 10px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.bulk-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Team Quota & Builder */
.quota-bar-wrap {
  background: var(--slate-100);
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
  margin: 8px 0;
}

.quota-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--green-500));
  transition: width 0.25s ease;
}

.team-builder-row {
  display: grid;
  grid-template-columns: 36px 1.1fr 1.3fr 1fr 1fr 40px;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  margin-bottom: 8px;
}

.row-idx {
  font-weight: 800;
  color: var(--gold-700);
  text-align: center;
  font-size: 13px;
}

/* Scripts Grid */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.script-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.script-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.script-textarea-display {
  width: 100%;
  min-height: 130px;
  border: 1px solid var(--slate-200);
  border-radius: 8px;
  padding: 10px;
  font-size: 12.5px;
  background: var(--slate-50);
  resize: vertical;
  font-family: inherit;
}

/* Dashboard Cards */
.metric-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--slate-200);
}

.tier-item {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--slate-50);
  border-left: 4px solid var(--gold-600);
  margin-bottom: 10px;
}

.tier-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-700);
  text-transform: uppercase;
}

.tier-title {
  font-weight: 700;
  font-size: 14px;
  margin: 2px 0;
}

.tier-desc {
  font-size: 12.5px;
  color: var(--slate-600);
}

/* Modals */
.sokmo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sokmo-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

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

.sokmo-modal > form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sokmo-modal-header {
  padding: 16px 20px;
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.sokmo-modal-header h3 {
  margin: 0;
  font-size: 16px;
}

.sokmo-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: var(--slate-600);
}

.sokmo-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.sokmo-modal-footer {
  padding: 14px 20px;
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.log-info-box {
  background: var(--gold-50);
  border: 1px solid #fde68a;
  padding: 10px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 13px;
}

.radio-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
}

.green-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 12px;
  border-radius: 8px;
}

.muted {
  color: var(--slate-600);
  font-weight: 400;
}

.empty-state {
  text-align: center;
  padding: 42px 20px;
  color: var(--slate-600);
}

/* Toast */
#toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sokmo-toast {
  background: var(--slate-900);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  max-width: 380px;
}

.sokmo-toast.error {
  background: var(--red-600);
}

/* Console Blast */
.blast-console {
  background: var(--slate-900);
  color: #f8fafc;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--slate-700);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.progress-fill {
  height: 100%;
  background: var(--green-500);
  transition: width 0.2s;
}

.live-log {
  max-height: 180px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 12px;
  line-height: 1.6;
}

/* ========================================================================= */
/* RESPONSIVE                                                                */
/* ========================================================================= */
@media (max-width: 980px) {
  .auth-container {
    grid-template-columns: 1fr;
  }
  .metric-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-2col {
    grid-template-columns: 1fr;
  }
  .team-builder-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    flex-direction: column;
  }
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--slate-900);
    color: #fbbf24;
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 50;
  }
  .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 20px;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
  }
  .mobile-brand {
    font-weight: 800;
    font-size: 16px;
  }
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 100;
    transition: left 0.2s ease;
  }
  .sidebar.open {
    left: 0;
  }
  .sidebar-backdrop.open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 90;
  }
  .main-content {
    padding: 16px 14px 48px;
  }
  .metric-grid-4,
  .metric-grid-3,
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================= */
/* ADMIN UTAMA (SUPER ADMIN) PORTAL & AUTH FOOTER LINK                       */
/* ========================================================================= */
.auth-super-footer {
  margin-top: 12px;
  text-align: center;
  font-size: 11.5px;
  color: #64748b;
}

.auth-super-footer a,
.auth-super-footer a:visited {
  color: #94a3b8;
  text-decoration: none;
  font-weight: 500;
  font-size: 11.5px;
  transition: color 0.15s;
}

.auth-super-footer a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.sa-shell {
  min-height: 100vh;
  background: var(--slate-100);
}

.sa-header {
  background: var(--slate-900);
  color: #ffffff;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.sa-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}

.sa-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

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

.sa-user-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #fbbf24;
}

.sa-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.act-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.act-very { background: #dcfce7; color: #166534; }
.act-active { background: #dbeafe; color: #1e40af; }
.act-low { background: #fef3c7; color: #92400e; }
.act-none { background: #f1f5f9; color: #64748b; }

.feat-bar-row {
  margin-bottom: 10px;
}

.feat-bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 4px;
}

.feat-bar-track {
  background: var(--slate-100);
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
}

.feat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

/* Multi-Staff Task Picker */
.staff-multi-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 112px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--slate-300, #cbd5e1);
  border-radius: 8px;
  background: #f8fafc;
}

.staff-chip-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.staff-chip-option:has(input:checked) {
  background: #fef3c7;
  border-color: #d97706;
  color: #92400e;
  font-weight: 600;
}

.staff-tags-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.bulk-assign-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bulk-assign-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 40;
  min-width: 240px;
  max-width: 320px;
  max-height: 240px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.bulk-assign-dropdown.open {
  display: flex;
}

.bulk-assign-dropdown label.bulk-staf-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  margin: 0;
}

.bulk-assign-dropdown label.bulk-staf-item:hover {
  background: #f1f5f9;
}

.cf-turnstile-slot {
  margin: 10px 0 12px;
  display: none;
  min-height: 65px;
}
