/* ============================================================
   ELIXIR BANK — Professional Banking Design System
   Clean white/navy theme — premium banking aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Serif+Display&display=swap');

/* ── CSS Custom Properties ─────────────────────────────────── */
:root {
  /* Core palette */
  --navy:          #1a2744;
  --navy-dark:     #111b33;
  --navy-mid:      #243259;
  --navy-light:    #2e4080;
  --gold:          #c9a84c;
  --gold-light:    #e0c060;
  --gold-pale:     #f5ecd5;

  /* Backgrounds */
  --bg-page:       #f4f6f9;
  --bg-white:      #ffffff;
  --bg-subtle:     #f8f9fc;
  --bg-hover:      #f0f3f9;
  --bg-sidebar:    #1a2744;

  /* Text */
  --text-primary:  #1a2744;
  --text-body:     #374151;
  --text-secondary:#6b7280;
  --text-muted:    #9ca3af;
  --text-white:    #ffffff;
  --text-light:    #e5e9f5;

  /* Borders */
  --border:        #e5e7eb;
  --border-light:  #f3f4f6;
  --border-navy:   rgba(26,39,68,0.12);
  --border-gold:   rgba(201,168,76,0.35);

  /* Status colours */
  --green:         #059669;
  --green-bg:      #ecfdf5;
  --green-border:  #a7f3d0;
  --red:           #dc2626;
  --red-bg:        #fef2f2;
  --red-border:    #fecaca;
  --amber:         #d97706;
  --amber-bg:      #fffbeb;
  --blue:          #2563eb;
  --blue-bg:       #eff6ff;

  /* Shadows */
  --shadow-xs:     0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-navy:   0 4px 24px rgba(26,39,68,0.18);

  /* Radii */
  --radius-xs:     4px;
  --radius-sm:     8px;
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  /* Typography */
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:    'DM Serif Display', Georgia, serif;

  /* Transitions */
  --ease:          all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-slow:     all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.3); }
  50%       { box-shadow: 0 0 0 6px rgba(201,168,76,0); }
}

/* ── App Layout ─────────────────────────────────────────────── */
.app-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}

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

.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.logo-tagline {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Sidebar user block */
.sidebar-user {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  object-fit: cover;
}

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

.sidebar-username {
  font-size: 0.84rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-role {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 1px;
}

/* Sidebar nav */
.sidebar-nav { flex: 1; padding: 12px 0; }

.nav-section-label {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 24px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  transition: var(--ease);
  border-left: 3px solid transparent;
  cursor: pointer;
}

.nav-item:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
}

.nav-item.active {
  color: var(--gold-light);
  background: rgba(201,168,76,0.1);
  border-left-color: var(--gold);
}

.nav-icon {
  width: 18px;
  text-align: center;
  font-size: 0.88rem;
  flex-shrink: 0;
}

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

/* ── Topbar ─────────────────────────────────────────────────── */
.topbar {
  height: 60px;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-xs);
}

.topbar-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

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

/* ── Main Content ────────────────────────────────────────────── */
.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-area {
  flex: 1;
  padding: 28px 32px;
  animation: fade-up 0.3s ease;
}

/* ── Page Header ────────────────────────────────────────────── */
.page-header {
  margin-bottom: 24px;
}

.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.page-subtitle {
  font-size: 0.83rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--ease);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

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

.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.card-body { padding: 22px; }

/* Grid helpers */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Balance / Hero Card ────────────────────────────────────── */
.balance-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-navy);
}

.balance-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201,168,76,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.balance-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -20px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  pointer-events: none;
}

.balance-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 6px;
}

.balance-account {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  font-family: 'Courier New', monospace;
  letter-spacing: 0.05em;
}

.balance-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

/* ── Stat Cards ─────────────────────────────────────────────── */
.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  transition: var(--ease);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.stat-icon.green  { background: var(--green-bg); }
.stat-icon.red    { background: var(--red-bg); }
.stat-icon.blue   { background: var(--blue-bg); }
.stat-icon.gold   { background: var(--gold-pale); }

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.stat-value.green  { color: var(--green); }
.stat-value.red    { color: var(--red); }
.stat-value.blue   { color: var(--blue); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--ease);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.1px;
}

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

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26,39,68,0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(26,39,68,0.3);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(201,168,76,0.3);
}
.btn-gold:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 8px rgba(220,38,38,0.2);
}
.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--border);
}
.btn-outline:hover:not(:disabled) {
  background: var(--bg-hover);
  border-color: #d1d5db;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-sm  { padding: 7px 14px; font-size: 0.78rem; }
.btn-lg  { padding: 13px 28px; font-size: 0.9rem; }
.btn-block { width: 100%; }

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

label, .form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 6px;
  letter-spacing: -0.1px;
}

.form-control {
  width: 100%;
  background: var(--bg-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 10px 14px;
  transition: var(--ease);
  outline: none;
}

.form-control:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(26,39,68,0.1);
}

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

.form-control.subtle {
  background: var(--bg-subtle);
  border-color: var(--border-light);
}

textarea.form-control { min-height: 100px; resize: vertical; }

.form-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.5;
}

.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: none; flex: 1; }
.input-group .btn           { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

thead tr {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

thead th {
  padding: 12px 16px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: var(--ease);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--bg-subtle); }

tbody td {
  padding: 13px 16px;
  color: var(--text-body);
  vertical-align: middle;
}

.td-mono {
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-green  { background: var(--green-bg);  color: var(--green);  border: 1px solid var(--green-border); }
.badge-red    { background: var(--red-bg);    color: var(--red);    border: 1px solid var(--red-border); }
.badge-amber  { background: var(--amber-bg);  color: var(--amber);  border: 1px solid #fde68a; }
.badge-blue   { background: var(--blue-bg);   color: var(--blue);   border: 1px solid #bfdbfe; }
.badge-navy   { background: rgba(26,39,68,0.08); color: var(--navy); border: 1px solid rgba(26,39,68,0.15); }

/* ── Alerts ─────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  animation: fade-up 0.25s ease;
  border: 1px solid;
}

.alert-icon { flex-shrink: 0; font-size: 0.95rem; }

.alert-success { background: var(--green-bg); border-color: var(--green-border); color: #065f46; }
.alert-danger  { background: var(--red-bg);   border-color: var(--red-border);   color: #991b1b; }
.alert-warning { background: var(--amber-bg); border-color: #fde68a;             color: #92400e; }
.alert-info    { background: var(--blue-bg);  border-color: #bfdbfe;             color: #1e40af; }

/* ── Divider ────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 20px 0; }

.divider-text {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 20px 0;
}
.divider-text::before,
.divider-text::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(26,39,68,0.15);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

.spinner-white {
  border-color: rgba(255,255,255,0.25);
  border-top-color: #fff;
}

/* ── Upload Zone ─────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: var(--ease);
  background: var(--bg-subtle);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--navy-light);
  background: var(--blue-bg);
}
.upload-icon { font-size: 2rem; margin-bottom: 10px; color: var(--text-muted); }
.upload-text { font-size: 0.88rem; color: var(--text-secondary); font-weight: 500; }
.upload-sub  { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

/* ── Transaction amount colours ─────────────────────────────── */
.amount-credit { color: var(--green); font-weight: 600; }
.amount-debit  { color: var(--red);   font-weight: 600; }

/* ── Auth / Landing Page ────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 480px;
  background: var(--bg-white);
}

.auth-left {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 60%, #1e3a6e 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  overflow: hidden;
}

.auth-left-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(201,168,76,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.auth-left-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-icon {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-dark);
}

.auth-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.auth-brand-tagline {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.auth-headline {
  position: relative;
  z-index: 1;
}

.auth-headline h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  font-weight: 400;
}

.auth-headline h1 em {
  font-style: normal;
  color: var(--gold-light);
}

.auth-headline p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 400px;
  margin-bottom: 40px;
}

.auth-features {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}

.auth-feature-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* Auth right panel */
.auth-right {
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 44px;
  border-left: 1px solid var(--border);
  overflow-y: auto;
}

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.auth-tab {
  flex: 1;
  padding: 11px;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--ease);
  text-align: center;
  letter-spacing: -0.1px;
}

.auth-tab.active {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.auth-tab:hover:not(.active) { color: var(--text-body); }

.auth-form { display: none; animation: fade-up 0.25s ease; }
.auth-form.active { display: block; }

.auth-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Code Block (diagnostics) ───────────────────────────────── */
.terminal {
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: #94a3b8;
  white-space: pre-wrap;
  min-height: 120px;
  overflow-x: auto;
  line-height: 1.7;
}

/* ── Utilities ───────────────────────────────────────────────── */
.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-green     { color: var(--green) !important; }
.text-red       { color: var(--red) !important; }
.text-gold      { color: var(--gold) !important; }
.text-navy      { color: var(--navy) !important; }
.text-sm        { font-size: 0.78rem !important; }
.text-xs        { font-size: 0.7rem !important; }
.text-right     { text-align: right; }
.text-center    { text-align: center; }
.text-bold      { font-weight: 600; }
.text-mono      { font-family: 'Courier New', monospace; }

.d-flex           { display: flex; }
.align-center     { align-items: center; }
.justify-between  { justify-content: space-between; }
.flex-wrap        { flex-wrap: wrap; }
.gap-6  { gap: 6px; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.w-full  { width: 100%; }
.rounded { border-radius: var(--radius); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .app-layout { grid-template-columns: 220px 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { min-height: 100vh; padding: 36px 24px; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content-area { padding: 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
