/* ===== Design Tokens ===== */
:root {
  --navy-900: #060f2a;
  --navy-800: #0a1f44;
  --navy-700: #122b5c;
  --navy-600: #1e3a8a;
  --navy-500: #2c4a9c;
  --navy-50: #eef2fb;
  --gold-600: #b8941f;
  --gold-500: #d4af37;
  --gold-400: #e6c553;
  --gold-300: #f1d774;
  --gold-100: #fbf2d8;
  --cream: #f8f5ec;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #94a3b8;
  --border: #e5e7eb;
  --border-2: #f1f5f9;
  --success: #10b981;
  --success-bg: #d1fae5;
  --warn: #f59e0b;
  --warn-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --info: #3b82f6;
  --info-bg: #dbeafe;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px -8px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px -16px rgba(10, 31, 68, .25);
  --grad-navy: linear-gradient(135deg, #0a1f44 0%, #122b5c 50%, #1e3a8a 100%);
  --grad-gold: linear-gradient(135deg, #d4af37 0%, #f1d774 100%);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; }
img { display: block; max-width: 100%; }

/* ===== Utilities ===== */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-muted { color: var(--text-2); }
.text-mute2 { color: var(--text-3); }
.text-sm { font-size: 12px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 22px; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--navy-50); color: var(--navy-700);
}
.badge-gold { background: var(--gold-100); color: var(--gold-600); }
.badge-success { background: var(--success-bg); color: #065f46; }
.badge-warn { background: var(--warn-bg); color: #92400e; }
.badge-danger { background: var(--danger-bg); color: #991b1b; }
.badge-info { background: var(--info-bg); color: #1e40af; }
.badge-dot::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 13px;
  transition: all .18s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-700); box-shadow: var(--shadow); }
.btn-gold { background: var(--grad-gold); color: var(--navy-800); }
.btn-gold:hover { box-shadow: 0 8px 20px -4px rgba(212,175,55,.5); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--navy-50); border-color: var(--navy-500); }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger-bg); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
}
.card-flat { box-shadow: none; }
.card-pad-sm { padding: 14px; }

.input, .select, .textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, .12);
}
.label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; color: var(--text-2); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== Landing / Role Select ===== */
.landing {
  min-height: 100vh;
  background: var(--grad-navy);
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.landing::before, .landing::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
}
.landing::before { width: 480px; height: 480px; background: var(--gold-500); top: -160px; right: -160px; }
.landing::after { width: 600px; height: 600px; background: var(--navy-500); bottom: -260px; left: -200px; }

.landing-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.landing-inner {
  position: relative; z-index: 2;
  width: 100%; max-width: 1100px;
  text-align: center;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #fff;
  font-weight: 600; font-size: 13px;
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.brand .logo {
  width: 28px; height: 28px;
  background: var(--grad-gold);
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--navy-800); font-weight: 800;
}

.landing h1 {
  color: #fff;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.landing h1 .accent { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing p.lead {
  color: rgba(255,255,255,.75);
  font-size: 17px;
  max-width: 660px; margin: 0 auto 40px;
}

.role-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 22px; max-width: 880px; margin: 0 auto;
}
.role-card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: left;
  cursor: pointer;
  transition: all .25s ease;
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.role-card:hover { transform: translateY(-4px); border-color: var(--gold-400); }
.role-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(212,175,55,.15), transparent 60%);
  opacity: 0; transition: opacity .25s;
}
.role-card:hover::after { opacity: 1; }
.role-icon {
  width: 56px; height: 56px;
  background: var(--grad-gold);
  border-radius: 16px;
  display: grid; place-items: center;
  color: var(--navy-800);
  margin-bottom: 22px;
}
.role-card h3 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.role-card p { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 22px; }
.role-card ul { list-style: none; margin-bottom: 26px; }
.role-card li {
  color: rgba(255,255,255,.85); font-size: 13px;
  padding: 6px 0; display: flex; align-items: center; gap: 10px;
}
.role-card li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-400);
}
.role-card .enter {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-400); font-weight: 600; font-size: 14px;
}
.role-card.admin-card .role-icon { background: var(--grad-gold); }
.role-card.agent-card .role-icon { background: linear-gradient(135deg, #fff, #cbd5e1); }

.landing-foot {
  margin-top: 56px; color: rgba(255,255,255,.45); font-size: 12px;
}

@media (max-width: 720px) {
  .landing h1 { font-size: 38px; }
  .role-grid { grid-template-columns: 1fr; }
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d6dbe7; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: #b3bccd; }
