/* ==========================================================================
   Incento — Individual Verification Pilot
   Mobile-first, aligned with the main site brand tokens.
   ========================================================================== */

:root {
  --brand-teal: #03D5C6;
  --brand-yellow: #FFE100;
  --brand-teal-deep: #04B3A6;
  --brand-teal-ink: #006B63;
  --brand-gradient: linear-gradient(135deg, #03D5C6 0%, #FFE100 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(3,213,198,.14) 0%, rgba(255,225,0,.14) 100%);

  --ink-900: #0A1F1D;
  --ink-700: #223431;
  --ink-500: #4E6360;
  --ink-400: #6B7F7C;
  --ink-300: #9AAEAB;
  --ink-200: #CEDAD8;
  --ink-100: #E8EFEE;
  --ink-50:  #F4F8F7;
  --paper:   #FFFFFF;
  --bg:      #FBFDFC;

  --ok:    #16A34A;
  --warn:  #F59E0B;
  --bad:   #DC2626;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10,31,29,.06), 0 1px 1px rgba(10,31,29,.04);
  --shadow-md: 0 8px 24px rgba(10,31,29,.08);
  --shadow-lg: 0 20px 56px rgba(10,31,29,.12);
  --shadow-brand: 0 18px 40px rgba(3,213,198,.22);

  --font-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;

  --container: 720px;
  --nav-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .35em; line-height: 1.18; letter-spacing: -.015em; font-weight: 800; color: var(--ink-900); }
h1 { font-size: clamp(1.7rem, 6vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 4.4vw, 1.7rem); }
h3 { font-size: clamp(1.05rem, 3.2vw, 1.25rem); font-weight: 700; }
p  { margin: 0 0 .9em; color: var(--ink-700); }
.muted { color: var(--ink-500); }
.small { font-size: .85rem; }
.center { text-align: center; }
.text-shine { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Layout */
.shell {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px 120px;
}
@media (min-width: 720px) { .shell { padding: 0 24px 160px; } }

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid rgba(10,31,29,.06);
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 800;
}
/* Text block sized to exactly match the 32px logo badge so the "I" of
   Incento aligns with the top edge and the sub-label aligns with the bottom. */
.brand-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 32px;
  line-height: 1;
}
.brand .logo {
  width: 32px; height: 32px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-gradient);
  color: var(--ink-900);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: var(--shadow-brand);
}
.brand .name { font-size: 1.05rem; letter-spacing: -.01em; }
.brand .sub  { font-size: .68rem; color: var(--ink-500); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .98rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn.small { min-height: 40px; padding: 9px 16px; font-size: .88rem; }
.btn.block { width: 100%; }
.btn-primary { background: var(--brand-gradient); color: var(--ink-900); box-shadow: var(--shadow-brand); }
.btn-primary:hover { box-shadow: 0 22px 44px rgba(3,213,198,.28); }
.btn-secondary { background: var(--paper); color: var(--ink-900); border-color: var(--ink-200); }
.btn-secondary:hover { border-color: var(--brand-teal); }
.btn-ghost { background: transparent; color: var(--ink-900); border-color: transparent; }
.btn-ghost:hover { background: var(--ink-50); }
.btn-wa {
  background: #25D366; color: #fff; border-color: #25D366;
  box-shadow: 0 14px 30px rgba(37,211,102,.32);
}
.btn-wa:hover { background: #1FB957; border-color: #1FB957; }
.btn-link { background: transparent; border: none; padding: 0; min-height: 0; color: var(--brand-teal-deep); font-weight: 700; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }

/* Cards */
.card {
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}
@media (min-width: 720px) { .card { padding: 24px; } }
.card.soft { background: var(--ink-50); border-color: transparent; }
.card.brand-soft { background: var(--brand-gradient-soft); border: 1px solid rgba(3,213,198,.22); }
.card + .card { margin-top: 14px; }

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand-teal-ink);
  background: var(--brand-gradient-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

/* Forms */
.field { display: block; margin-bottom: 14px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field .hint { display: block; font-size: .78rem; color: var(--ink-500); margin-top: 6px; }
.field .err  { display: none; font-size: .8rem; color: var(--bad); margin-top: 6px; font-weight: 600; }
.field.is-invalid .err { display: block; }
.field.is-invalid .input,
.field.is-invalid .select,
.field.is-invalid .textarea { border-color: var(--bad); }

.input, .select, .textarea {
  width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 48px;
  font-size: 1rem;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(3,213,198,.14);
}
.textarea { min-height: 100px; resize: vertical; }
.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .row.cols-2 { grid-template-columns: 1fr 1fr; } }

/* Pills / chips */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.pill.ok    { background: rgba(22,163,74,.12);  color: var(--ok); }
.pill.warn  { background: rgba(245,158,11,.14); color: #B45309; }
.pill.bad   { background: rgba(220,38,38,.10);  color: var(--bad); }
.pill.flow  { background: rgba(3,213,198,.14);  color: var(--brand-teal-ink); }
.pill.muted { background: var(--ink-100);        color: var(--ink-500); }

/* Stepper (mobile-first vertical, becomes horizontal pills on wider) */
.stepper {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1px solid var(--ink-100);
  margin-bottom: 18px;
  overflow-x: auto;
}
.stepper .dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: .65rem;
  font-weight: 700;
  color: var(--ink-400);
  text-align: center;
}
.stepper .dot .num {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink-100);
  color: var(--ink-500);
  font-size: .75rem;
  font-weight: 800;
}
.stepper .dot.done .num { background: var(--brand-gradient); color: var(--ink-900); }
.stepper .dot.active .num {
  background: var(--brand-teal); color: var(--paper);
  box-shadow: 0 0 0 4px rgba(3,213,198,.18);
}
.stepper .dot.active { color: var(--ink-900); }

/* Step header */
.step-head { margin: 4px 0 16px; }
.step-head .eyebrow { margin-bottom: 8px; }

/* Persona / option grid (for service / vocation / id pickers) */
.opt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
@media (min-width: 600px) { .opt-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
.opt-grid.full { grid-template-columns: 1fr; }
.opt-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1.5px solid var(--ink-200);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .12s ease, background .15s ease;
}
.opt-card:hover { border-color: var(--brand-teal); transform: translateY(-1px); }
.opt-card .ico {
  font-size: 1.35rem;
  margin-bottom: 4px;
}
.opt-card strong { font-size: .98rem; color: var(--ink-900); }
.opt-card span { font-size: .8rem; color: var(--ink-500); line-height: 1.4; }
.opt-card[aria-checked="true"] {
  background: var(--brand-gradient-soft);
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(3,213,198,.12);
}

/* Process explainer list */
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.process-list li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  font-size: .92rem;
  color: var(--ink-700);
}
.process-list li .ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  font-size: 1rem;
}

/* Photo upload */
.photo-up {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1.5px dashed var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--ink-50);
  transition: border-color .15s ease, background .15s ease;
}
.photo-up:hover { border-color: var(--brand-teal); }
.photo-up .preview {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--paper) center/cover no-repeat;
  border: 1px solid var(--ink-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-300);
  font-size: 1.6rem;
  overflow: hidden;
}
.photo-up label.btn { cursor: pointer; }
.photo-up input[type="file"] { display: none; }

/* OTP boxes */
.otp-row {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
}
.otp-row input {
  width: 100%;
  height: 56px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-md);
  background: var(--paper);
}
.otp-row input:focus {
  outline: none;
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(3,213,198,.14);
}

/* Notice / banners */
.notice {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  border: 1px solid transparent;
}
.notice .ico { flex: 0 0 auto; font-size: 1.15rem; line-height: 1.2; }
.notice.info  { background: rgba(3,213,198,.10); border-color: rgba(3,213,198,.22); color: var(--brand-teal-ink); }
.notice.warn  { background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.22); color: #92400E; }
.notice.bad   { background: rgba(220,38,38,.08); border-color: rgba(220,38,38,.22); color: var(--bad); }
.notice.ok    { background: rgba(22,163,74,.10); border-color: rgba(22,163,74,.22); color: var(--ok); }

/* Cost block */
.cost {
  display: grid;
  gap: 8px;
}
.cost .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .95rem;
  color: var(--ink-700);
}
.cost .row.total {
  border-top: 1px dashed var(--ink-200);
  padding-top: 10px;
  margin-top: 4px;
  font-weight: 800;
  color: var(--ink-900);
  font-size: 1.1rem;
}

/* QR */
.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  border: 1px dashed var(--ink-200);
  text-align: center;
}
.qr-box .qr {
  width: 220px;
  height: 220px;
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--ink-100);
  padding: 12px;
}
.qr-box .upi-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9rem;
  color: var(--ink-700);
}

/* Timeline */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.timeline li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
}
.timeline li .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--ink-200);
  margin: 0 7px;
}
.timeline li.done .dot   { background: var(--ok); }
.timeline li.active .dot { background: var(--brand-teal); box-shadow: 0 0 0 4px rgba(3,213,198,.16); }
.timeline li .label { font-size: .92rem; font-weight: 700; color: var(--ink-900); }

/* Checklist */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.checklist li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  font-size: .9rem;
  color: var(--ink-700);
}
.checklist li .ico {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink-200);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: var(--ink-300);
}
.checklist li.done .ico { background: var(--brand-gradient); color: var(--ink-900); border-color: transparent; }
.checklist li.done .label { color: var(--ink-900); font-weight: 600; }

/* Floating WhatsApp */
.fab-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: #25D366;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(37,211,102,.34);
  border: 2px solid #fff;
}
.fab-wa:hover { text-decoration: none; background: #1FB957; }
.fab-wa .wa-ico { font-size: 1.2rem; }
@media (min-width: 720px) { .fab-wa { right: 24px; bottom: 24px; padding: 14px 20px; } }

/* Auth screen */
.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--paper);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink-50);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 4px;
  margin: 0 0 18px;
}
.auth-tabs button {
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .9rem;
  color: var(--ink-500);
  cursor: pointer;
}
.auth-tabs button.active {
  background: var(--paper);
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

/* Hero on splash */
.hero-splash {
  background: var(--brand-gradient-soft);
  border: 1px solid rgba(3,213,198,.18);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}
.hero-splash h1 { margin-bottom: 8px; }
.hero-splash p  { color: var(--ink-500); }
.hero-splash .pill-row {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 12px;
}

/* Hidden helper */
.is-hidden { display: none !important; }

/* Step navigation footer */
.step-nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}
.step-nav .btn { flex: 1; }

/* Refund result table */
.kv {
  display: grid;
  gap: 8px;
}
.kv .row {
  display: flex;
  justify-content: space-between;
  font-size: .92rem;
}
.kv .row .k { color: var(--ink-500); }
.kv .row .v { color: var(--ink-900); font-weight: 700; }

/* ==========================================================================
   ADMIN PANEL
   ========================================================================== */
.admin-shell {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}
@media (min-width: 720px) { .admin-shell { padding: 32px 28px 100px; } }

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 980px) {
  .admin-grid { grid-template-columns: 360px 1fr; align-items: start; }
}

.req-list {
  display: grid;
  gap: 10px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 4px;
}
.req-list .req {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--ink-100);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.req-list .req:hover { border-color: var(--brand-teal); }
.req-list .req.active { border-color: var(--brand-teal); background: var(--brand-gradient-soft); }
.req-list .req .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.req-list .req .who { font-weight: 800; font-size: .95rem; color: var(--ink-900); }
.req-list .req .meta { font-size: .78rem; color: var(--ink-500); }

.admin-section { margin-top: 18px; }
.admin-section h3 { margin-bottom: 10px; }

.admin-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) { .admin-grid-2 { grid-template-columns: 1fr 1fr; } }

.admin-empty {
  text-align: center;
  padding: 40px;
  color: var(--ink-500);
}

/* small responsive helpers */
.flex { display: flex; }
.between { justify-content: space-between; }
.center-y { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ID badge inline */
.id-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--ink-50);
  border-radius: var(--radius-md);
  font-size: .85rem;
  margin: 4px 4px 0 0;
}
.id-badge button {
  background: transparent; border: none; cursor: pointer; color: var(--bad); font-weight: 700;
}

/* Refund method tabs */
.method-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.method-tabs button {
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ink-200);
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-700);
}
.method-tabs button.active {
  border-color: var(--brand-teal);
  background: var(--brand-gradient-soft);
  color: var(--ink-900);
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,31,29,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
}
.modal-overlay.is-hidden { display: none !important; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: var(--ink-900);
  color: var(--paper);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: .9rem;
  font-weight: 600;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
