/* ============================================================
   TRAINUNITY AMBASSADOR PORTAL — STYLESHEET
   ============================================================ */

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

/* ---- Variables ---- */
:root {
  --navy:        #192675;
  --navy-dark:   #111a56;
  --navy-mid:    #1e2e88;
  --navy-light:  #2a3ea0;
  --cyan:        #21c7d2;
  --cyan-dark:   #18a8b2;
  --cyan-light:  #4dd8e2;
  --cyan-pale:   #e6f9fa;
  --navy-pale:   #eef0f9;

  --bg:          #f5f6fa;
  --surface:     #ffffff;
  --border:      #e4e7ef;
  --border-soft: #edf0f7;
  --text:        #0f1535;
  --text-mid:    #374160;
  --text-muted:  #6b7399;
  --text-light:  #9ba3c4;

  --success:     #16a34a;
  --success-bg:  #dcfce7;
  --warning:     #b45309;
  --warning-bg:  #fef3c7;
  --danger:      #dc2626;
  --danger-bg:   #fee2e2;
  --info:        #1d4ed8;
  --info-bg:     #dbeafe;

  --sidebar-w:   256px;
  --radius:      10px;
  --radius-sm:   6px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --shadow-sm:   0 1px 3px rgba(25,38,117,.08), 0 1px 2px rgba(25,38,117,.04);
  --shadow:      0 2px 8px rgba(25,38,117,.10), 0 1px 3px rgba(25,38,117,.06);
  --shadow-md:   0 4px 16px rgba(25,38,117,.12), 0 2px 6px rgba(25,38,117,.06);
  --shadow-lg:   0 8px 32px rgba(25,38,117,.14), 0 4px 8px rgba(25,38,117,.06);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: 1.75rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
h3 { font-size: 1rem;    font-weight: 600; line-height: 1.4; }
h4 { font-size: .875rem; font-weight: 600; }
p  { line-height: 1.65; }

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

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--navy);
  overflow-y: auto;
  z-index: 40;
  transition: transform .28s ease;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--cyan);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--navy);
  flex-shrink: 0;
}
.logo-text .brand { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.logo-text .sub   { font-size: 11px; color: var(--cyan-light); }

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.60);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  cursor: pointer;
}
.nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.90); }
.nav-item.active {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
}

.sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-footer .nav-item { color: rgba(255,255,255,.40); }
.sidebar-footer .nav-item:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.65); }

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 39;
}

/* Main content area */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.topbar-menu-btn {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--text-muted);
}
.topbar-menu-btn:hover { background: var(--bg); color: var(--text); }
.topbar-menu-btn svg { width: 20px; height: 20px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb .sep { color: var(--text-light); }
.breadcrumb .current { color: var(--text); font-weight: 600; }
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.notif-btn {
  position: relative;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all .15s;
}
.notif-btn:hover { background: var(--bg); color: var(--text); }
.notif-btn svg { width: 18px; height: 18px; }
.notif-dot {
  position: absolute;
  top: 7px; right: 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid var(--surface);
}
.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}
.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.user-name  { font-size: 13px; font-weight: 600; line-height: 1.2; }
.user-role  { font-size: 11px; color: var(--cyan-dark); font-weight: 500; }

/* Page content */
.page-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}
.page-header { margin-bottom: 20px; }
.page-header h1 { font-size: 1.4rem; }
.page-header p  { color: var(--text-muted); font-size: 13px; margin-top: 2px; }

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-body { padding: 20px; }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
  font-weight: 600;
}
.card-header a { font-size: 12px; color: var(--cyan-dark); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.card-header a:hover { opacity: .7; }

/* Stat card */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
  transition: box-shadow .2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.stat-icon svg { width: 20px; height: 20px; }
.stat-value { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: all .15s;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary   { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-cyan      { background: var(--cyan); color: var(--navy); }
.btn-cyan:hover { background: var(--cyan-dark); }
.btn-outline   { background: transparent; border: 1px solid var(--border); color: var(--text-mid); }
.btn-outline:hover { background: var(--bg); }
.btn-ghost     { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-full { padding: 11px 20px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 800;
  font-weight: 600;
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-info    { background: var(--info-bg);     color: var(--info); }
.badge-navy    { background: var(--navy-pale);   color: var(--navy); }
.badge-cyan    { background: var(--cyan-pale);   color: var(--cyan-dark); }

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.form-control:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(25,38,117,.10);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 11px; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 11px; color: var(--danger); margin-top: 5px; display: none; }

/* Input group */
.input-group { display: flex; gap: 8px; }
.input-group .form-control { flex: 1; }

/* Code pill */
.code-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-pale);
  border-radius: 6px;
  padding: 7px 14px;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .06em;
}

/* Alert / notice */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.55;
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-left: 3px solid var(--info); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-left: 3px solid var(--warning); }
.alert-success { background: var(--success-bg); color: var(--success); border-left: 3px solid var(--success); }
.alert-navy    { background: var(--navy-pale);  color: var(--navy);    border-left: 3px solid var(--navy); }

/* Table */
.table-wrap { overflow-x: auto; }
table th, table td {
  padding: 11px 18px;
  text-align: left;
  white-space: nowrap;
}
table thead tr { background: var(--bg); border-bottom: 1px solid var(--border); }
table thead th { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
table tbody tr { border-bottom: 1px solid var(--border-soft); transition: background .12s; }
table tbody tr:last-child { border-bottom: none; }
table tbody tr:hover { background: #f9faff; }
table td { font-size: 13px; color: var(--text-mid); }
table td.mono { font-family: 'Menlo', 'Consolas', monospace; letter-spacing: .04em; }
table td.pts-positive { color: var(--success); font-weight: 700; }
table td.pts-negative  { color: var(--danger);  font-weight: 700; }
table td.td-right { text-align: right; }

/* Progress bar */
.progress {
  height: 6px;
  background: var(--border-soft);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  border-radius: 999px;
  background: var(--navy);
  transition: width .4s ease;
}
.progress-bar.cyan { background: var(--cyan); }

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

/* Section label */
.section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

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

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.flex-1 { flex: 1; }
.shrink-0 { flex-shrink: 0; }

/* Spacing */
.mb-4  { margin-bottom:  4px; }
.mb-8  { margin-bottom:  8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mt-4  { margin-top:     4px; }
.mt-8  { margin-top:     8px; }
.mt-12 { margin-top:    12px; }
.mt-20 { margin-top:    20px; }

/* Text utilities */
.text-sm    { font-size: 12px; }
.text-muted { color: var(--text-muted); }
.text-navy  { color: var(--navy); }
.text-cyan  { color: var(--cyan-dark); }
.text-right { text-align: right; }
.font-mono  { font-family: 'Menlo', 'Consolas', monospace; }
.font-bold  { font-weight: 700; }
.font-semibold { font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.50);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 480px;
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { transform: scale(.95); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 14px; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: all .15s;
}
.modal-close:hover { background: var(--bg); color: var(--text); }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 20px; }
.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* File upload area */
.upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--cyan);
  background: var(--cyan-pale);
}
.upload-area svg { width: 28px; height: 28px; color: var(--text-light); margin: 0 auto 8px; }
.upload-area p { font-size: 13px; color: var(--text-muted); }
.upload-area .file-name { font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 4px; }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing { background: #f5f6fa; }

/* Landing header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.landing-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lh-logo { display: flex; align-items: center; gap: 10px; }
.lh-logo .logo-text .brand { font-size: 14px; font-weight: 700; color: #fff; }
.lh-logo .logo-text .sub   { font-size: 11px; color: var(--cyan-light); }
.lh-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(33,199,210,.15);
  color: var(--cyan-light);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.lh-badge svg { width: 12px; height: 12px; }

/* Hero */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, #1e2e88 55%, #2a3ea0 100%);
  padding: 80px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(33,199,210,.12) 0%, transparent 70%);
  top: -150px; left: -150px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(33,199,210,.10) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  pointer-events: none;
}
.hero-inner { max-width: 720px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(33,199,210,.18);
  color: var(--cyan-light);
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-badge svg { width: 12px; height: 12px; }
.hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 16px; }
.hero h1 span { color: var(--cyan-light); }
.hero p { color: rgba(255,255,255,.70); font-size: 1.05rem; max-width: 540px; margin: 0 auto 28px; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* Stats strip */
.stats-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.stats-strip-inner {
  max-width: 860px; margin: 0 auto;
  padding: 22px 24px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 16px;
}
.strip-stat .value { font-size: 1.55rem; font-weight: 800; color: var(--navy); }
.strip-stat .label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* Landing sections */
.landing-section { padding: 64px 24px; }
.landing-section.alt { background: var(--surface); }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { color: var(--navy); margin-bottom: 8px; }
.section-head p  { color: var(--text-muted); }

/* How it works steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px 20px;
}
.step-num {
  position: absolute;
  top: -11px; left: 18px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.step-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  background: var(--cyan-pale);
  color: var(--cyan-dark);
}
.step-icon svg { width: 22px; height: 22px; }
.step-card h3 { margin-bottom: 6px; }
.step-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* Rewards grid */
.rewards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reward-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.reward-pts { font-size: 1.5rem; font-weight: 800; color: var(--cyan-dark); margin-bottom: 4px; }
.reward-card h3 { font-size: 14px; margin-bottom: 6px; color: var(--navy); }
.reward-card p  { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* Two col feature */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.feature-list { display: flex; flex-direction: column; gap: 0; }
.feature-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.feature-item:last-child { border-bottom: none; }
.feature-item svg { width: 15px; height: 15px; color: var(--cyan-dark); flex-shrink: 0; }
.feature-item span { font-size: 13px; color: var(--text-mid); }

/* Exclusive callout */
.exclusive-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1e2e88 100%);
  border-radius: var(--radius-xl);
  padding: 44px 36px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
  margin: 0 auto;
}
.exclusive-box svg { width: 36px; height: 36px; color: var(--cyan-light); margin: 0 auto 16px; }
.exclusive-box h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.exclusive-box p  { color: rgba(255,255,255,.65); line-height: 1.7; }

/* OTP login card */
.login-section { background: var(--bg); padding: 60px 24px; }
.login-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
}
.login-card-head { text-align: center; margin-bottom: 24px; }
.login-icon {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.login-icon svg { width: 22px; height: 22px; color: #fff; }
.login-card-head h2 { font-size: 1.1rem; margin-bottom: 4px; }
.login-card-head p  { font-size: 12px; color: var(--text-muted); }
.otp-step { display: none; }
.otp-step.active { display: block; }
.otp-sent-notice {
  display: flex; align-items: center; gap: 8px;
  background: var(--success-bg); color: var(--success);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 12px; font-weight: 500;
  margin-bottom: 14px;
}
.otp-sent-notice svg { width: 14px; height: 14px; flex-shrink: 0; }
.error-hint {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 12px;
  line-height: 1.55;
  margin: 14px 0;
  padding: 11px 13px;
}
.otp-whatsapp-link {
  align-items: center;
  color: #128c4a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  margin-top: 9px;
  text-decoration: none;
}
.otp-whatsapp-link:hover { color: #0f7a40; text-decoration: underline; }
.otp-whatsapp-icon {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}
.login-note {
  margin-top: 18px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.change-email { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 10px; cursor: pointer; }
.change-email:hover { color: var(--navy); }

/* Landing footer */
.landing-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Career success section */
.career-section {
  background: var(--bg);
  padding: 56px 24px;
  text-align: center;
}
.career-section svg { width: 40px; height: 40px; color: var(--cyan-dark); margin: 0 auto 16px; }
.career-section h2 { color: var(--navy); margin-bottom: 12px; }
.career-section p  { color: var(--text-muted); max-width: 620px; margin: 0 auto; line-height: 1.7; }

/* ============================================================
   DASHBOARD PAGE
   ============================================================ */
.referral-code-box {
  background: var(--navy-pale);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pts-bar { display: flex; flex-direction: column; gap: 6px; }
.pts-bar-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 4px; }
.pts-bar-row .label { color: var(--text-muted); }
.pts-bar-row .val   { font-weight: 600; }

/* Active badge */
.active-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--cyan-pale);
  color: var(--cyan-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.active-badge svg { width: 12px; height: 12px; }

/* ============================================================
   COUPONS PAGE
   ============================================================ */
.referral-hero {
  background: linear-gradient(135deg, var(--navy), #1e2e88);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.referral-hero .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.50); margin-bottom: 4px; }
.referral-hero .code  { font-family: 'Menlo', 'Consolas', monospace; font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: .06em; }
.referral-hero .desc  { font-size: 12px; color: rgba(255,255,255,.45); margin-top: 4px; }
.coupon-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow .2s;
}
.coupon-card:hover { box-shadow: var(--shadow-md); }
.coupon-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.coupon-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--navy-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.coupon-icon svg { width: 18px; height: 18px; color: var(--navy); }
.coupon-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.35; }
.coupon-code-row { display: flex; align-items: center; gap: 8px; background: var(--navy-pale); border-radius: 6px; padding: 8px 12px; }
.coupon-code-row .code { font-family: 'Menlo', monospace; font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .05em; flex: 1; }
.copy-btn {
  background: none; border: none; cursor: pointer;
  color: var(--navy); padding: 2px;
  transition: opacity .15s;
}
.copy-btn:hover { opacity: .6; }
.copy-btn svg { width: 14px; height: 14px; display: block; }
.coupon-meta { display: flex; justify-content: space-between; font-size: 12px; }
.coupon-meta .muted { color: var(--text-muted); }
.coupon-meta .pts   { color: var(--cyan-dark); font-weight: 700; }
.coupon-actions { display: flex; gap: 8px; }

/* ============================================================
   MISSIONS PAGE
   ============================================================ */
.mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow .2s;
}
.mission-card:hover { box-shadow: var(--shadow-md); }
.mission-card.completed { border-color: #bbf7d0; }
.mission-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mission-icon svg { width: 22px; height: 22px; }
.mission-body { flex: 1; min-width: 0; }
.mission-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mission-title { font-size: 14px; font-weight: 600; color: var(--text); }
.mission-desc { font-size: 12px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.mission-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.mission-pts { font-size: 14px; font-weight: 800; color: var(--cyan-dark); }
.mission-deadline { font-size: 11px; color: var(--text-light); display: flex; align-items: center; gap: 4px; }
.mission-deadline svg { width: 11px; height: 11px; }

/* ============================================================
   WALLET PAGE
   ============================================================ */
.wallet-summary {
  background: linear-gradient(135deg, var(--navy), #1e2e88);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
  margin-bottom: 20px;
}
.wallet-stat .wlabel { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.50); margin-bottom: 6px; }
.wallet-stat .wvalue { font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.wallet-stat .wsub   { font-size: 11px; color: rgba(255,255,255,.40); margin-top: 4px; }
.wallet-divider { width: 1px; background: rgba(255,255,255,.12); margin: 0 auto; }

/* ============================================================
   REDEEM PAGE
   ============================================================ */
.redeem-balance {
  background: linear-gradient(135deg, var(--navy), #1e2e88);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.redeem-balance .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.50); margin-bottom: 4px; }
.redeem-balance .value { font-size: 2.5rem; font-weight: 800; color: #fff; }
.redeem-balance .sub   { font-size: 12px; color: rgba(255,255,255,.40); margin-top: 4px; }
.redeem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.redeem-rate {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy-pale); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 12px; margin-bottom: 16px;
}
.redeem-rate .label { color: var(--navy); }
.redeem-rate .val   { font-weight: 700; color: var(--navy); }
.convert-preview {
  font-size: 12px; font-weight: 600; color: var(--cyan-dark); margin-top: 6px; display: none;
}
.error-hint { font-size: 11px; color: var(--danger); margin-top: 5px; display: none; }

/* ============================================================
   RULES PAGE
   ============================================================ */
.toc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.toc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-mid);
  transition: background .12s;
}
.toc-item:hover { background: var(--bg); }
.toc-item svg { width: 13px; height: 13px; color: var(--text-light); }
.rule-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.rule-section-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-soft);
}
.rule-section-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rule-section-icon svg { width: 18px; height: 18px; }
.rule-section-title { font-size: 14px; font-weight: 700; }
.rule-list { padding: 14px 20px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rule-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-mid); line-height: 1.6; }
.rule-bullet { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 7px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .steps-grid   { grid-template-columns: 1fr 1fr; }
  .grid-4       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .sidebar {
    position: fixed;
    inset: 0;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform .28s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-overlay.open { display: block; }
  .topbar-menu-btn { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .wallet-summary { grid-template-columns: 1fr; }
  .steps-grid   { grid-template-columns: 1fr; }
  .rewards-grid { grid-template-columns: 1fr; }
  .toc-grid     { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .referral-hero { flex-direction: column; align-items: flex-start; }
  .stats-strip-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .page-content { padding: 16px; }
  .topbar { padding: 0 16px; }
  .login-card { padding: 24px 20px; }
}
