@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,900&display=swap');

/* ============================================================
   ZamaSU Design System — forest green, light/dark, mobile-first
   ============================================================ */

:root {
  /* Base palette */
  --c-bg:        #fafdf9;
  --c-surface:   #ffffff;
  --c-surface-2: #f4f8f1;
  --c-surface-3: #ecf4e7;
  --c-ink:       #0d1a12;
  --c-ink-2:     #2d3a30;
  --c-ink-soft:  #5b6a5f;
  --c-muted:     #7a8a7d;
  --c-line:      #e1ebd9;
  --c-line-2:    #ecf2e6;

  --c-primary:        #27ae60;
  --c-primary-strong: #1e8b4d;
  --c-primary-soft:   #e8f7ee;
  --c-primary-glow:   #27ae6022;

  --c-accent:        #f39c12;
  --c-accent-2:      #f1c40f;
  --c-accent-soft:   #fef5db;

  --c-success:      #27ae60;
  --c-success-soft: #e8f7ee;
  --c-warn:         #d97706;
  --c-warn-soft:    #fef3c7;
  --c-error:        #c62828;
  --c-error-soft:   #fef2f2;
  --c-info:         #2563eb;
  --c-info-soft:    #eff6ff;

  /* Radii */
  --r-1: 8px;
  --r-2: 12px;
  --r-3: 16px;
  --r-4: 20px;
  --r-pill: 999px;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;

  /* Type scale */
  --t-xs: .75rem;  --t-sm: .875rem;  --t-md: 1rem;
  --t-lg: 1.125rem; --t-xl: 1.25rem; --t-2xl: 1.5rem;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(13,26,18,.05);
  --shadow-2: 0 1px 3px rgba(13,26,18,.08), 0 4px 12px rgba(13,26,18,.06);
  --shadow-3: 0 4px 12px rgba(13,26,18,.1), 0 16px 40px rgba(13,26,18,.08);
  --shadow-glow: 0 0 0 4px var(--c-primary-glow);

  /* Timing */
  --duration:      .25s;
  --duration-fast: .15s;
  --duration-slow: .4s;
  --easing:        cubic-bezier(.4,0,.2,1);
  --easing-spring: cubic-bezier(.34,1.56,.64,1);
}

/* ========== Dark theme ========== */
[data-theme="dark"] {
  --c-bg:        #0d1a12;
  --c-surface:   #111d15;
  --c-surface-2: #16241a;
  --c-surface-3: #1c2d22;
  --c-ink:       #f0faf2;
  --c-ink-2:     #e8f5e9;
  --c-ink-soft:  rgba(232,245,233,.72);
  --c-muted:     rgba(232,245,233,.55);
  --c-line:      rgba(46,204,113,.15);
  --c-line-2:    rgba(46,204,113,.08);

  --c-primary:        #2ecc71;
  --c-primary-strong: #27ae60;
  --c-primary-soft:   rgba(46,204,113,.12);
  --c-primary-glow:   rgba(46,204,113,.4);

  --c-accent:        #f1c40f;
  --c-accent-2:      #f39c12;
  --c-accent-soft:   rgba(241,196,15,.12);

  --c-success:      #2ecc71;
  --c-success-soft: rgba(46,204,113,.12);
  --c-warn:         #fbbf24;
  --c-warn-soft:    rgba(251,191,36,.12);
  --c-error:        #f87171;
  --c-error-soft:   rgba(248,113,113,.12);
  --c-info:         #38bdf8;
  --c-info-soft:    rgba(56,189,248,.12);

  --shadow-1: 0 1px 2px rgba(0,0,0,.3);
  --shadow-2: 0 1px 3px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.25);
  --shadow-3: 0 4px 16px rgba(0,0,0,.5), 0 16px 48px rgba(0,0,0,.35);
}

/* ========== Crazy reset & base ========== */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: var(--t-md);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background var(--duration) var(--easing), color var(--duration) var(--easing);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', 'DM Sans', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--c-ink);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--s-4); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--s-3); }
h3 { font-size: 1.25rem; margin-bottom: var(--s-2); font-weight: 700; }
h4 { font-size: 1.1rem; margin-bottom: var(--s-2); font-weight: 700; }
p { margin-bottom: var(--s-3); }
p:last-child { margin-bottom: 0; }
a { color: var(--c-primary); text-decoration: none; transition: color var(--duration-fast) var(--easing); position: relative; }
a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%; height: 2px;
  background: var(--c-primary);
  transition: width var(--duration) var(--easing-spring);
}
a:hover { color: var(--c-primary-strong); }
a:hover::after { width: 100%; }
small { font-size: var(--t-xs); }
.muted { color: var(--c-muted); }
.small { font-size: var(--t-sm); }
.tiny { font-size: var(--t-xs); }
code, pre { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: .9em; }
code { background: var(--c-surface-2); padding: .15em .4em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-4) 0; }

::selection { background: var(--c-primary-glow); color: var(--c-ink); }

/* ========== Buttons — extreme hover glow & effects ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: .75rem 1.5rem;
  border-radius: var(--r-2);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-md);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--easing-spring), box-shadow 0.2s var(--easing-spring), 
              filter 0.2s var(--easing-spring), background 0.2s var(--easing-spring), 
              border-color 0.2s var(--easing-spring);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  transform: skewX(-20deg) translateX(-100%);
}
.btn:hover::after { opacity: 1; transform: skewX(-20deg) translateX(100%); transition: transform 0.6s ease, opacity 0.3s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn[disabled]:hover { transform: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--c-primary-strong), var(--c-primary));
  color: #fff;
  box-shadow: 0 2px 10px rgba(46,204,113,.25);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 4px 18px rgba(46,204,113,.4);
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--c-line);
  color: var(--c-ink);
}
.btn-ghost:hover {
  background: var(--c-surface-2);
  border-color: var(--c-primary);
  color: var(--c-ink);
  box-shadow: 0 0 20px rgba(46,204,113,.1);
}

body.public .btn-ghost {
  background: rgba(255,255,255,.7);
  border-color: var(--c-line);
  color: var(--c-ink);
  backdrop-filter: blur(8px);
}
body.public .btn-ghost:hover {
  background: #fff;
  border-color: var(--c-primary);
  color: var(--c-primary-strong);
}

.btn-link {
  background: transparent;
  color: var(--c-primary);
  padding: 0;
  border: 0;
  box-shadow: none;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.btn-link:hover { transform: none; color: var(--c-primary-strong); text-decoration-color: currentColor; }

.btn-sm  { padding: .5rem 1rem;    font-size: var(--t-sm); }
.btn-lg  { padding: 1rem 2rem;     font-size: var(--t-lg); }
.btn-block { display: flex; width: 100%; }

.btn-loading {
  color: transparent !important;
  pointer-events: none;
}
.btn-loading::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 20px; height: 20px;
  margin: -10px 0 0 -10px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: crazySpin 0.8s linear infinite;
}
@keyframes crazySpin { 
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); } 
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
  box-shadow: 0 0 20px rgba(37,211,102,.4);
}
.btn-whatsapp:hover { 
  background: #1da851; 
  border-color: #1da851; 
  color: #fff;
  box-shadow: 0 0 35px rgba(37,211,102,.6);
}

/* ========== Inputs with animated focus ========== */
input, select, textarea {
  width: 100%;
  padding: .75rem .9rem;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-surface);
  color: var(--c-ink);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-md);
  transition: border-color 0.2s, box-shadow 0.3s, background 0.2s, transform 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-glow);
}
textarea { resize: vertical; min-height: 100px; }
input[readonly] { background: var(--c-surface-2); cursor: default; }
input[type="checkbox"], input[type="radio"] { width: auto; }
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea {
  color-scheme: dark;
}

label {
  display: block;
  margin-bottom: var(--s-3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink-2);
}
label > input, label > select, label > textarea {
  margin-top: var(--s-1);
  display: block;
}
label > small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  color: var(--c-muted);
}

.form { display: flex; flex-direction: column; gap: var(--s-4); }
.form > label { margin-bottom: 0; }

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-4);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3);
}

.input-money { display: flex; align-items: stretch; }
.input-money::before {
  content: 'R';
  display: flex; align-items: center; padding: 0 .9rem;
  background: var(--c-surface-2);
  border: 1.5px solid var(--c-line);
  border-right: 0;
  border-radius: var(--r-2) 0 0 var(--r-2);
  color: var(--c-muted);
  font-weight: 600;
}
.input-money input { border-radius: 0 var(--r-2) var(--r-2) 0; }

.quick-amounts {
  display: flex; flex-wrap: wrap; gap: var(--s-2);
  margin-top: -var(--s-2);
}

/* ========== Cards & surfaces with wild hover ========== */
.card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--easing-spring), box-shadow 0.25s var(--easing-spring),
              border-color 0.25s, background 0.25s;
  position: relative;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--c-line);
}

.card > h2, .card > h3 { margin-top: 0; }
.card-inset {
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
}

.balance-banner {
  display: flex; align-items: center; gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-3) var(--s-4);
  animation: fadeSlideIn 0.6s var(--easing-spring);
}
.balance-banner strong { font-size: var(--t-xl); color: var(--c-primary); font-weight: 700; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Status pills with subtle pulse */
.status {
  display: inline-block;
  padding: .25em .75em;
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: .02em;
}
.status-pending,    .status-draft,         .status-pending_approval,
.status-eft_pending { background: var(--c-warn-soft); color: var(--c-warn); }
.status-posted,     .status-accepted,      .status-completed,
.status-paid,       .status-verified,      .status-approved,
.status-active      { background: var(--c-success-soft); color: var(--c-success); }
.status-failed,     .status-rejected,      .status-disputed,
.status-cancelled   { background: var(--c-error-soft); color: var(--c-error); }
.status-in_progress,.status-awaiting_completion { background: var(--c-info-soft); color: var(--c-info); }

.status-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: .3em .8em;
  border-radius: var(--r-pill);
  font-size: var(--t-xs); font-weight: 600;
  background: var(--c-surface-2); color: var(--c-ink-2);
  border: 1px solid var(--c-line);
}

.cat-tag {
  display: inline-block;
  padding: .25em .65em;
  border-radius: var(--r-1);
  background: var(--c-primary-soft);
  color: var(--c-primary);
  font-size: var(--t-xs);
  font-weight: 600;
}

.tag-hv {
  background: var(--c-accent-soft); color: var(--c-accent);
  padding: .25em .65em; border-radius: var(--r-1);
  font-size: var(--t-xs); font-weight: 700;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
  border-radius: var(--r-2);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.table th, .table td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--c-line-2);
  vertical-align: middle;
}
.table th {
  background: var(--c-surface-2);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.table tbody tr { transition: background 0.2s; }
.table tbody tr:hover { background: var(--c-surface-2); }
.table tbody tr:last-child td { border-bottom: 0; }

.flash {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-2);
  margin-bottom: var(--s-4);
  border-left: 4px solid var(--c-primary);
  background: var(--c-surface);
  box-shadow: var(--shadow-1);
  display: flex; align-items: flex-start; gap: var(--s-3);
  animation: slideDownFade 0.4s var(--easing-spring);
}
.flash-success { border-left-color: var(--c-success); }
.flash-success::before { content: '✓'; color: var(--c-success); font-weight: 700; font-size: 1.2em; }
.flash-info { border-left-color: var(--c-info); }
.flash-info::before { content: 'i'; color: var(--c-info); font-style: italic; font-weight: 700; font-size: 1.1em; }
.flash-warning { border-left-color: var(--c-warn); }
.flash-warning::before { content: '!'; color: var(--c-warn); font-weight: 700; font-size: 1.2em; }
.flash-error { border-left-color: var(--c-error); background: var(--c-error-soft); }
.flash-error::before { content: '✕'; color: var(--c-error); font-weight: 700; font-size: 1.1em; }
.flash > div { flex: 1; }

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== Crazy keyframes collection ========== */
@keyframes orb1 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(60px,-40px)} 66%{transform:translate(-40px,50px)} }
@keyframes orb2 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(-80px,30px)} 66%{transform:translate(50px,-60px)} }
@keyframes orb3 { 0%,100%{transform:translate(0,0)} 33%{transform:translate(40px,60px)} 66%{transform:translate(-60px,-30px)} }
@keyframes pulseRing { 0%{transform:scale(.85);opacity:.7} 70%{transform:scale(1.15);opacity:0} 100%{transform:scale(.85);opacity:0} }
@keyframes slideUp { from {opacity:0;transform:translateY(40px)} to {opacity:1;transform:translateY(0)} }
@keyframes fadeIn { from {opacity:0} to {opacity:1} }
@keyframes shimmer { 0%{background-position:-200% center} 100%{background-position:200% center} }
@keyframes counterUp { from {opacity:0;transform:translateY(12px)} to {opacity:1;transform:translateY(0)} }
@keyframes spin360 { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }
@keyframes starPop { 0%,100%{transform:scale(1) rotate(0deg)} 50%{transform:scale(1.3) rotate(20deg)} }
@keyframes textGlow { 0%,100%{text-shadow:0 0 20px rgba(241,196,15,.5)} 50%{text-shadow:0 0 40px rgba(241,196,15,.9),0 0 80px rgba(241,196,15,.3)} }
@keyframes borderGlow { 0%,100%{box-shadow:0 0 0 0 rgba(46,204,113,.4)} 50%{box-shadow:0 0 0 10px rgba(46,204,113,0)} }
@keyframes waveX { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes pop-in { 0%{transform:scale(.4);opacity:0} 70%{transform:scale(1.1)} 100%{transform:scale(1);opacity:1} }
@keyframes slide-up { from {opacity:0;transform:translateY(20px)} to {opacity:1;transform:translateY(0)} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes glitch { 0%{transform:translate(0)} 20%{transform:translate(-2px,2px)} 40%{transform:translate(-2px,-2px)} 60%{transform:translate(2px,2px)} 80%{transform:translate(2px,-2px)} 100%{transform:translate(0)} }
@keyframes confettiFall { 0%{transform:translateY(-10%) rotate(0deg)} 100%{transform:translateY(110vh) rotate(720deg)} }

/* ========== PUBLIC PAGES — light identity ========== */
body.public {
  --c-primary:        #16a34a;
  --c-primary-strong: #15803d;
  --c-primary-soft:   #dcfce7;
  --c-primary-glow:   rgba(22,163,74,.18);
  --c-navy:           #1e3a5f;
  --c-navy-dk:        #0f2541;
  background:
    radial-gradient(circle at 15% 10%, rgba(22,163,74,.10), transparent 35%),
    radial-gradient(circle at 85% 90%, rgba(30,58,95,.12), transparent 40%),
    linear-gradient(180deg, #f7fbf8 0%, #eef6f1 100%);
  color: var(--c-ink);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body.public > *:not(.public-footer) { flex: 1; }
body.public h1, body.public h2, body.public h3 {
  font-family: 'Fraunces', 'DM Sans', serif;
  font-weight: 900;
  letter-spacing: -.03em;
}

.public-hero, .public-shell {
  position: relative;
  padding: 4rem 1.25rem 3rem;
  overflow: hidden;
}
.public-hero {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding-top: 5rem;
}

.hero-orb3 {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  top: -160px; right: -160px;
  background: radial-gradient(circle, rgba(187,247,208,.55) 0%, transparent 65%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22,163,74,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22,163,74,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-inner, .public-shell-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem 1rem;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  border: 1px solid rgba(22,163,74,.3);
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-primary-strong);
  margin-bottom: 1.75rem;
  animation: slideUp .6s ease both;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c-primary);
  box-shadow: 0 0 0 0 rgba(22,163,74,.5);
  animation: pulseRing 1.8s ease-out infinite;
}

.public-hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  color: var(--c-ink);
  animation: slideUp .7s .1s ease both;
  margin-bottom: 0;
}
.public-hero h1 .accent {
  display: block;
  color: var(--c-primary);
}

.public-shell h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }

.lead {
  margin: 1.5rem auto 2.25rem;
  max-width: 600px;
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--c-ink-soft);
  animation: slideUp .7s .25s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  animation: slideUp .7s .35s ease both;
}

body.public .btn-primary {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 10px 26px rgba(22,163,74,.22);
  border-radius: var(--r-pill);
  font-weight: 800;
}
body.public .btn-primary:hover { box-shadow: 0 14px 34px rgba(22,163,74,.3); filter: brightness(1.04); transform: translateY(-2px); }

/* Numbered steps (welcome, become-provider, EFT instructions) */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}
.step {
  position: relative;
  padding: 1.75rem 1.5rem;
  border-radius: var(--r-3);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-1);
  transition: transform 0.25s var(--easing-spring), box-shadow 0.25s, border-color 0.25s;
}
.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--c-primary);
}
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--c-primary-strong), var(--c-primary));
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem; font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(22,163,74,.3);
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--c-muted); font-size: .95rem; line-height: 1.6; margin-bottom: 0; }

.public-footer {
  margin-top: auto;
  position: relative;
  z-index: 1;
  padding: 2.4rem 1.4rem;
  text-align: center;
  background: linear-gradient(135deg, var(--c-navy-dk, #0f2541), var(--c-navy, #1e3a5f));
  color: rgba(255,255,255,.85);
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .92rem;
}
.public-footer::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,163,74,.25), transparent 70%);
  top: -120px; right: -120px;
  filter: blur(40px);
  opacity: .7;
  pointer-events: none;
}
.public-footer p { margin: .3rem 0; color: rgba(255,255,255,.72); position: relative; z-index: 1; }
.public-footer .brand-row {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  margin-bottom: .6rem;
  position: relative; z-index: 1;
}
.public-footer .brand-row img { width: 38px; height: 38px; border-radius: 12px; object-fit: cover; box-shadow: 0 10px 24px rgba(0,0,0,.25); }
.public-footer .brand-row strong { font-family: 'Fraunces', serif; font-weight: 900; letter-spacing: -.02em; color: #fff; font-size: 1.15rem; }
.footer-links {
  margin-top: 1rem;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem;
  position: relative; z-index: 1;
}
.footer-links a {
  color: #86efac;
  font-weight: 600;
  padding: .55rem .95rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  transition: background var(--duration-fast), color var(--duration-fast), transform var(--duration-fast);
}
.footer-links a:hover { background: rgba(255,255,255,.12); color: #dcfce7; transform: translateY(-2px); }
.footer-links a::after { display: none; }
.footer-copy { margin-top: 1.1rem; font-size: .82rem !important; opacity: .7; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 0.6s ease, transform 0.6s var(--easing-spring); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ========== Auth shell — light glass ========== */
.public-shell.auth-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 1rem;
}
.auth-card {
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1.5px solid rgba(22,163,74,.16);
  border-radius: 34px;
  padding: 2.4rem 2rem;
  box-shadow: 0 22px 50px -18px rgba(22,163,74,.18), 0 0 0 1px rgba(255,255,255,.7) inset;
  animation: slideUp .7s var(--easing) both;
}
.auth-card .brand-mark-wrap {
  display: flex; justify-content: center;
  margin-bottom: 1.2rem;
}
.auth-card .brand-mark-wrap img {
  height: 54px; width: auto;
  filter: drop-shadow(0 10px 22px rgba(22,163,74,.12));
}
.auth-card h1 {
  text-align: center;
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: .4rem;
}
.auth-card .auth-sub {
  text-align: center;
  color: var(--c-ink-soft);
  font-size: .95rem;
  margin-bottom: 1.6rem;
  line-height: 1.6;
}
.auth-card input {
  background: #fff;
  border-color: #d1fae5;
  border-radius: 14px;
}
.auth-card input:focus { border-color: var(--c-primary); box-shadow: 0 0 0 4px rgba(22,163,74,.12); }
.auth-card .btn-primary { width: 100%; border-radius: var(--r-pill); font-weight: 800; }
.auth-card .auth-divider {
  text-align: center;
  margin: 1.2rem 0;
  color: var(--c-muted);
  font-size: var(--t-xs);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  position: relative;
}
.auth-card .auth-divider::before, .auth-card .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%; width: 35%;
  height: 1px;
  background: var(--c-line);
}
.auth-card .auth-divider::before { left: 0; }
.auth-card .auth-divider::after { right: 0; }
.auth-card .auth-footer {
  text-align: center;
  margin-top: 1.6rem;
  font-size: var(--t-sm);
  color: var(--c-ink-soft);
}
.auth-card .auth-footer a { color: var(--c-primary); font-weight: 800; }
@media (max-width: 480px) {
  .auth-card { padding: 2rem 1.2rem; border-radius: 28px; }
}

.btn-google {
  background: #fff;
  color: #1f1f1f;
  border: 1.5px solid rgba(0,0,0,.1);
}
.btn-google:hover { background: #f5f5f5; color: #1f1f1f; }

/* ========== Top bar & nav — extra polish ========== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-line);
  padding: 0 var(--s-4);
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0,0,0,.05);
}
[data-theme="dark"] .top-bar { background: rgba(13,26,18,.85); }

.top-bar .brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--c-ink);
  text-decoration: none;
}
.top-bar .brand img {
  height: 36px; width: auto;
  border-radius: 50%;
  box-shadow: 0 0 15px var(--c-primary-glow);
}
.top-bar-actions { display: flex; align-items: center; gap: var(--s-2); }

.notif-icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  color: var(--c-ink-soft);
  transition: background 0.2s, transform 0.2s var(--easing-spring);
}
.notif-icon:hover { background: var(--c-surface-2); color: var(--c-ink); transform: scale(1.1); }
.badge-count {
  position: absolute;
  top: 6px; right: 6px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--c-error);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  animation: pulseBadge 1.5s ease infinite;
}
@keyframes pulseBadge {
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.2); }
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--c-ink-soft);
  transition: all 0.2s var(--easing-spring);
}
.theme-toggle:hover { background: var(--c-surface-2); color: var(--c-ink); border-color: var(--c-line); transform: rotate(15deg); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* theme toggle inside the dark admin / merchant top bars */
.admin-bar .theme-toggle,
.ret-bar .theme-toggle { color: rgba(255,255,255,.88); flex-shrink: 0; }
.admin-bar .theme-toggle:hover,
.ret-bar .theme-toggle:hover { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.3); }
.ret-bar .ret-theme-toggle { width: 34px; height: 34px; }

.main {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--s-5) var(--s-4) calc(var(--s-7) + 80px);
  min-height: calc(100vh - 60px);
}
.main::before {
  content: '';
  position: fixed;
  top: -80px; right: 0;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c-primary-glow) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
  opacity: .5;
}
.main > * { position: relative; z-index: 1; }

.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--c-surface);
  border-top: 1px solid var(--c-line);
  display: flex;
  padding: var(--s-2) 0 calc(var(--s-2) + env(safe-area-inset-bottom, 0));
  backdrop-filter: blur(16px);
  box-shadow: 0 -8px 30px rgba(0,0,0,.08);
}
[data-theme="dark"] .bottom-nav { background: rgba(13,26,18,.92); }
.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--s-2) 0;
  color: var(--c-muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: color 0.2s, transform 0.2s var(--easing-spring);
}
.bottom-nav a svg { width: 22px; height: 22px; transition: transform 0.2s; }
.bottom-nav a.active, .bottom-nav a:hover { color: var(--c-primary); }
.bottom-nav a.active { background: linear-gradient(to top, var(--c-primary-soft), transparent); }
.bottom-nav a.active svg { transform: scale(1.2); }

/* Dashboard hero – more neon */
.dashboard-hero {
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-strong) 100%);
  color: #fff;
  padding: var(--s-5) var(--s-5);
  border-radius: var(--r-3);
  margin-bottom: var(--s-5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(46,204,113,.3);
}
.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241,196,15,.3), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
.dashboard-hero h1 { color: #fff; margin-bottom: var(--s-2); text-shadow: 0 2px 10px rgba(0,0,0,.2); }
.dashboard-hero .muted { color: rgba(255,255,255,.9); }

/* Action tiles */
.action-tile {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--s-2);
  padding: var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 0.2s var(--easing-spring), box-shadow 0.2s, border-color 0.2s;
}
.action-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-2), 0 0 20px rgba(46,204,113,.1);
  border-color: var(--c-primary);
  color: var(--c-ink);
}
.action-tile strong { font-family: 'Syne', sans-serif; font-size: var(--t-md); }
.action-tile span, .action-tile small { color: var(--c-muted); font-size: var(--t-xs); }
.action-tile .emoji { font-size: 1.5rem; }

.job-card {
  display: block;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: var(--s-4);
  text-decoration: none;
  color: var(--c-ink);
  margin-bottom: var(--s-3);
  transition: transform 0.2s var(--easing-spring), box-shadow 0.2s, border-color 0.2s;
}
.job-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), 0 0 25px rgba(46,204,113,.15); border-color: var(--c-primary); color: var(--c-ink); }
.job-card h3 { margin-bottom: var(--s-2); }
.job-card .meta { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-sm); color: var(--c-muted); }

.job-detail .job-head { margin-bottom: var(--s-5); }
.job-detail .job-head h1 { margin: var(--s-2) 0; }
.job-detail .job-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: var(--t-sm); color: var(--c-muted); }
.job-body { display: grid; grid-template-columns: 2fr 1fr; gap: var(--s-4); }
@media (max-width: 760px) { .job-body { grid-template-columns: 1fr; } }
.job-main { display: flex; flex-direction: column; gap: var(--s-4); }
.job-desc { white-space: pre-wrap; }
.pic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: var(--s-2); }
.pic-tile {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--c-surface-2);
}
.pic-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.pic-tile:hover img { transform: scale(1.08); }

.bid-list { display: flex; flex-direction: column; gap: var(--s-3); }
.bid-card {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-surface);
  transition: box-shadow 0.2s;
}
.bid-card:hover { box-shadow: var(--shadow-2); }

/* Chat stream */
.chat-stream {
  display: flex; flex-direction: column;
  gap: var(--s-3);
  max-height: 400px;
  overflow-y: auto;
  padding: var(--s-3);
  background: var(--c-surface-2);
  border-radius: var(--r-2);
}
.msg { padding: var(--s-3); background: var(--c-surface); border-radius: var(--r-2); max-width: 80%; box-shadow: var(--shadow-1); animation: fadeIn 0.3s; }
.msg-mine { background: var(--c-primary-soft); margin-left: auto; }
.msg strong { display: block; font-size: var(--t-xs); color: var(--c-muted); margin-bottom: 2px; }

/* Wallet hero — holographic */
.wallet-hero {
  position: relative;
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-3);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-strong) 100%);
  color: #fff;
  margin-bottom: var(--s-5);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(46,204,113,.3);
}
.wallet-hero::before, .wallet-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none !important;
}
.wallet-hero::before {
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(241,196,15,.35), transparent 70%);
  filter: blur(50px);
}
.wallet-hero::after {
  bottom: -40px; left: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 70%);
  filter: blur(40px);
}
.wallet-hero .label { font-size: var(--t-sm); opacity: .85; text-transform: uppercase; letter-spacing: .06em; position: relative; z-index: 2; }
.wallet-hero .balance {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin: var(--s-2) 0 var(--s-4);
  position: relative; z-index: 2;
  text-shadow: 0 0 20px rgba(255,255,255,.3);
}
.wallet-hero .balance .ccy { font-size: .55em; vertical-align: top; opacity: .8; }
.wallet-hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--s-5);
  position: relative; z-index: 2;
  margin-bottom: var(--s-4);
}
.wallet-hero-meta .meta-label { font-size: var(--t-xs); opacity: .8; display: block; }
.wallet-hero-meta .meta-value { font-weight: 700; font-family: 'Syne', sans-serif; }
.wallet-hero-actions {
  display: flex; gap: var(--s-2);
  position: relative; z-index: 5;
}
.wallet-hero-actions .btn {
  position: relative;
  z-index: 6;
  pointer-events: auto !important;
}
.wallet-hero-actions .btn-primary { background: #fff; color: var(--c-primary-strong); animation: none; box-shadow: 0 8px 25px rgba(0,0,0,.2); }
.wallet-hero-actions .btn-primary:hover { background: rgba(255,255,255,.95); color: var(--c-primary-strong); transform: scale(1.05); }
.wallet-hero-actions .btn-ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.wallet-hero-actions .btn-ghost:hover { background: rgba(255,255,255,.22); border-color: rgba(255,255,255,.5); color: #fff; }

.money { font-family: 'Syne', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; }
.ccy { color: var(--c-muted); }

.fee-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--s-2) 0;
  border-bottom: 1px dashed var(--c-line-2);
  font-size: var(--t-sm);
}
.fee-row:last-child, .fee-row.total {
  border-bottom: 0;
  padding-top: var(--s-3);
  font-size: var(--t-md);
  border-top: 1px solid var(--c-line);
}

.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--c-line-2);
  display: flex; gap: var(--s-2); flex-wrap: wrap;
  align-items: baseline;
  font-size: var(--t-sm);
  transition: background 0.2s;
}
.check-list li:hover { background: var(--c-surface-2); }
.check-list li:last-child { border-bottom: 0; }

/* Receipt page – celebration */
.receipt-page { max-width: 480px; margin: 0 auto; text-align: center; padding: var(--s-5) var(--s-3); }
.receipt-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--s-4);
  animation: pop-in var(--duration-slow) var(--easing-spring);
}
.receipt-icon-success { background: var(--c-success-soft); color: var(--c-success); box-shadow: 0 0 30px rgba(46,204,113,.4); }
.receipt-icon-info    { background: var(--c-info-soft); color: var(--c-info); box-shadow: 0 0 20px rgba(56,189,248,.3); }
.receipt-icon svg { width: 40px; height: 40px; stroke-width: 2.5; }
.receipt-amount {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--c-primary);
  margin: var(--s-2) 0 var(--s-4);
  text-shadow: 0 0 15px var(--c-primary-glow);
}
.receipt-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  text-align: left;
  margin: var(--s-4) 0;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.receipt-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-line-2);
  font-size: var(--t-sm);
  transition: background 0.15s;
}
.receipt-row:hover { background: var(--c-surface-2); }
.receipt-row:last-child { border-bottom: 0; }
.receipt-row .label { color: var(--c-muted); }
.receipt-row .value { font-weight: 600; font-variant-numeric: tabular-nums; font-family: 'Syne', sans-serif; }
.receipt-actions { display: flex; flex-direction: column; gap: var(--s-2); margin-top: var(--s-5); }

/* Onboarding */
.onboarding-shell { max-width: 600px; margin: 0 auto; }
.onboarding-progress { display: flex; gap: var(--s-2); margin-bottom: var(--s-6); }
.onboarding-progress .step-dot {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--c-line);
  transition: background var(--duration) var(--easing);
}
.onboarding-progress .step-dot.active { background: var(--c-primary); }
.onboarding-progress .step-dot.done   { background: var(--c-primary); opacity: .5; }

.intent-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
.intent-tile {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-2);
  padding: var(--s-5) var(--s-3);
  background: var(--c-surface);
  border: 2px solid var(--c-line);
  border-radius: var(--r-3);
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--easing-spring);
}
.intent-tile:hover { border-color: var(--c-primary); background: var(--c-primary-soft); transform: scale(1.03); }
.intent-tile svg { width: 40px; height: 40px; color: var(--c-primary); }
.intent-tile strong { font-size: var(--t-md); }
.intent-tile span { font-size: var(--t-xs); color: var(--c-muted); }
.intent-tile input { display: none; }
.intent-tile:has(input:checked) {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  box-shadow: 0 0 0 4px var(--c-primary-glow), 0 0 20px rgba(46,204,113,.3);
}

/* PWA prompt – bounce */
.pwa-prompt {
  position: fixed;
  bottom: 80px;
  left: var(--s-3); right: var(--s-3);
  background: #0d1a12;
  color: #fff;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-3);
  display: flex; align-items: center; gap: var(--s-3);
  z-index: 70;
  box-shadow: var(--shadow-3);
  animation: slide-up var(--duration-slow) var(--easing-spring);
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid rgba(46,204,113,.2);
  backdrop-filter: blur(12px);
}
@media (min-width: 720px) {
  .pwa-prompt { bottom: var(--s-5); left: 50%; right: auto; transform: translateX(-50%); width: 380px; }
}
.pwa-prompt .pwa-icon {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.pwa-prompt .pwa-text { flex: 1; }
.pwa-prompt .pwa-text strong { display: block; font-size: var(--t-sm); }
.pwa-prompt .pwa-text span { font-size: var(--t-xs); color: rgba(255,255,255,.7); }
.pwa-prompt .pwa-actions { display: flex; gap: var(--s-2); }
.pwa-prompt .btn-install {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  border: 0;
  padding: .5em 1em;
  border-radius: var(--r-1);
  font: inherit;
  font-size: var(--t-xs);
  font-weight: 700;
  cursor: pointer;
}
.pwa-prompt .btn-dismiss {
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.6);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}

/* Admin */
.admin {
  background: var(--c-bg);
  min-height: 100vh;
}
.admin-bar {
  background: var(--c-ink);
  color: #fff;
  padding: 0 var(--s-4);
  height: 56px;
  display: flex; align-items: center; gap: var(--s-3);
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  position: sticky;
  top: 0;
  z-index: 60;
}
.admin-menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 6px;
  margin-right: -4px;
  border-radius: var(--r-1);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.admin-menu-toggle:hover { background: rgba(255,255,255,.12); }
.admin-bar .brand { margin-right: auto; }
.admin-drawer-backdrop {
  display: none;
}
.admin-bar .brand {
  display: flex; align-items: center; gap: var(--s-2);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
.admin-bar .brand img { height: 32px; width: auto; border-radius: 50%; }
.admin-bar .who { font-size: var(--t-sm); color: rgba(255,255,255,.85); }
.role-tag {
  display: inline-block;
  margin-left: var(--s-2);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--c-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 56px);
}
.admin-side {
  background: var(--c-surface);
  border-right: 1px solid var(--c-line);
  padding: var(--s-4) 0;
}
.admin-side nav { display: flex; flex-direction: column; }
.admin-side a {
  padding: var(--s-3) var(--s-4);
  color: var(--c-ink-2);
  font-size: var(--t-sm);
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.admin-side a:hover, .admin-side a.active {
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border-left-color: var(--c-primary);
}
.admin-region-chip {
  margin: 0 var(--s-3) var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--c-primary-soft);
  border-radius: var(--r-1);
  font-size: var(--t-xs);
  color: var(--c-primary-strong);
}
.admin-side-note {
  padding: var(--s-1) var(--s-4);
  font-size: .72rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: var(--s-3);
}
.admin-main {
  padding: var(--s-5);
  max-width: 1200px;
  width: 100%;
  min-width: 0;
}
@media (max-width: 900px) {
  .admin-menu-toggle { display: inline-flex; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 272px;
    max-width: 84vw;
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 55;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-right: 1px solid var(--c-line);
    box-shadow: 4px 0 28px rgba(0,0,0,.22);
  }
  .admin-shell.drawer-open .admin-side { transform: translateX(0); }
  .admin-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 56px 0 0 0;
    background: rgba(0,0,0,.45);
    z-index: 54;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
  }
  .admin-shell.drawer-open .admin-drawer-backdrop { opacity: 1; pointer-events: auto; }
  .admin-main { padding: var(--s-4) var(--s-3); min-width: 0; }
}

/* ── Admin nav groups ────────────────────────────────── */
.admin-nav-group {
  padding: var(--s-3) var(--s-4) var(--s-1);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: var(--s-2);
}
.admin-nav-group:first-child { margin-top: 0; }

/* ── Admin page chrome ───────────────────────────────── */
.adm-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.adm-page-head h1 { margin-bottom: .15rem; }
.adm-head-actions { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; flex-shrink: 0; }

.adm-section { margin-bottom: var(--s-6); }
.adm-section-title {
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--s-3);
}
.adm-section-warn { color: var(--c-warn); }
.adm-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-3);
}
.adm-section-head .adm-section-title { margin-bottom: 0; }

/* ── Admin stat cards ────────────────────────────────── */
.adm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--s-3);
}
.adm-stat-card {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: var(--s-4) var(--s-4);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--duration-fast), border-color var(--duration-fast);
}
a.adm-stat-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 4px 16px rgba(39,174,96,.12);
}
.adm-stat-label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.adm-stat-value {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--c-ink);
}
.adm-stat-sub { font-size: var(--t-xs); color: var(--c-muted); }
.adm-stat-success .adm-stat-value { color: var(--c-success); }
.adm-stat-warn    .adm-stat-value { color: var(--c-warn); }
.adm-stat-danger  .adm-stat-value { color: var(--c-error); }
.adm-stat-success { border-color: rgba(39,174,96,.25); }
.adm-stat-warn    { border-color: rgba(243,156,18,.3);  }
.adm-stat-danger  { border-color: rgba(231,76,60,.3);   }

/* ── Accounting ──────────────────────────────────────── */
.acct-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
}
.acct-filter-bar label { display: flex; flex-direction: column; gap: .25rem; font-size: var(--t-sm); font-weight: 600; }
.acct-filter-bar input[type="date"] { padding: .45rem .6rem; font-size: var(--t-sm); }
.acct-summary-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: var(--s-5); }
.pos { color: var(--c-success); font-weight: 600; }
.neg { color: var(--c-error);   font-weight: 600; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── Contracts ───────────────────────────────────────── */
.contract-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.contract-draft     { background: rgba(149,165,166,.18); color: #606060; }
.contract-sent      { background: rgba(41,128,185,.15);  color: #1a6ea0; }
.contract-signed    { background: rgba(39,174,96,.15);   color: var(--c-success); }
.contract-expired   { background: rgba(243,156,18,.15);  color: #a06800; }
.contract-cancelled { background: rgba(231,76,60,.15);   color: var(--c-error); }

.contract-body {
  white-space: pre-wrap;
  font-size: var(--t-sm);
  line-height: 1.75;
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-1);
  padding: var(--s-4);
  background: var(--c-bg);
  max-height: 60vh;
  overflow-y: auto;
}

.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: .35rem var(--s-3); font-size: var(--t-sm); }
.detail-list dt { color: var(--c-muted); font-weight: 600; }
.detail-list dd { margin: 0; }

.action-col { display: flex; flex-direction: column; gap: var(--s-2); }
.btn-block  { width: 100%; text-align: center; }

/* ── Two-column layout for contract detail ───────────── */
.adm-two-col {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s-4);
  align-items: start;
}
@media (max-width: 860px) { .adm-two-col { grid-template-columns: 1fr; } }

/* ── Company edit form rows ──────────────────────────── */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

/* ── Insights charts ─────────────────────────────────── */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}
.insights-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: var(--s-4);
}
.insights-card h3 {
  font-size: var(--t-sm);
  font-weight: 700;
  margin-bottom: var(--s-3);
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.insights-card canvas { height: 240px !important; }
.insights-wide { grid-column: 1 / -1; }
.insights-wide canvas { height: 280px !important; }
@media (max-width: 860px) {
  .insights-grid { grid-template-columns: 1fr; }
  .insights-wide { grid-column: 1; }
}

/* ── card p-0 utility ────────────────────────────────── */
.card.p-0 { padding: 0; }
.card.p-0 .table { margin: 0; }

.inline-form { display: inline-block; }

.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-1);
  background: var(--c-surface-2);
  color: var(--c-ink-2);
  font-size: var(--t-xs);
  font-weight: 600;
}

.payment-method-fs {
  border: 0;
  padding: 0;
  margin: 0;
}
.payment-method-fs legend { font-size: var(--t-sm); color: var(--c-muted); margin-bottom: var(--s-2); }
.radio-tile {
  display: flex; gap: var(--s-3); align-items: flex-start;
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-2);
  border: 2px solid var(--c-line);
  border-radius: var(--r-2);
  cursor: pointer;
  transition: all 0.2s var(--easing-spring);
}
.radio-tile:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); box-shadow: 0 0 15px var(--c-primary-glow); }
.radio-tile input { width: auto; margin-top: 4px; }
.radio-tile strong { display: block; }
.radio-tile span { font-size: var(--t-xs); color: var(--c-muted); display: block; }

.check-item { display: flex; align-items: center; gap: var(--s-2); }
.check-item input { width: auto; }

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.welcome-hero { text-align: center; padding: var(--s-6) var(--s-3) var(--s-5); animation: fadeIn 0.8s; }
.welcome-hero h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: var(--s-3); }
.welcome-shell { max-width: 720px; margin: 0 auto; }
.welcome-cta { text-align: center; margin-top: var(--s-5); }

.btn-block { display: flex; width: 100%; }

/* Responsive adjustments */
@media (max-width: 600px) {
  .hero-stats li:not(:last-child)::after { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -1.4rem; transform: translateX(-50%); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .public-hero .hero-actions .btn { width: 100%; justify-content: center; }
  .public-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .main { padding: var(--s-4) var(--s-3) calc(var(--s-7) + 80px); }
  .wallet-hero { padding: var(--s-5) var(--s-4); }
  .wallet-hero-meta { gap: var(--s-3); }
}
/* ==========================================================================
   v6 TOP-BAR MOBILE FIX
   The layout uses .top-bar-inner but that class had no CSS definition.
   These rules make it a proper responsive three-column grid that
   collapses cleanly on narrow screens.
   ========================================================================== */

.top-bar { padding: 0; min-height: 60px; height: auto; }

.top-bar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0 var(--s-2);
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--s-2) var(--s-4);
  width: 100%;
}

/* Brand (left column) */
.top-bar .brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: var(--c-ink);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(.9rem, 3vw, 1.1rem);
  white-space: nowrap;
  flex-shrink: 0;
}
.top-bar .brand img.brand-logo {
  width:  clamp(36px, 9vw, 46px);
  height: clamp(36px, 9vw, 46px);
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--c-primary-glow);
  outline: 2px solid rgba(46,204,113,.25);
  outline-offset: 2px;
}
.top-bar .brand .brand-name {
  display: inline;
  font-size: clamp(.85rem, 2.8vw, 1.1rem);
}
.top-bar .brand .brand-mark {
  display: none;
  width:  38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-strong));
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 900;
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Centre nav (hidden on narrow mobile, bottom-nav handles it) */
.top-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  min-width: 0;
  overflow: hidden;
}
.top-nav-links a {
  display: inline-flex;
  align-items: center;
  padding: .4rem .75rem;
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--duration-fast), background var(--duration-fast);
}
.top-nav-links a:hover { color: var(--c-ink); background: var(--c-surface-2); }
.top-nav-links a.active { color: var(--c-primary); background: var(--c-primary-soft); }

/* Right action buttons */
.top-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  flex-shrink: 0;
}
.top-bar-actions .inline-form { margin: 0; display: inline-flex; }

/* Shared icon-button */
.icon-btn,
.top-bar-actions .theme-toggle,
.top-bar-actions .notif-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width:  40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--c-ink-soft);
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
  padding: 0;
  flex-shrink: 0;
}
.icon-btn:hover,
.top-bar-actions .theme-toggle:hover,
.top-bar-actions .notif-icon:hover {
  background: var(--c-surface-2);
  border-color: var(--c-line);
  color: var(--c-ink);
}
.icon-btn svg { display: block; }

/* Sun/moon swap */
#theme-toggle .icon-sun  { display: none; }
#theme-toggle .icon-moon { display: block; }
[data-theme="dark"] #theme-toggle .icon-moon { display: none; }
[data-theme="dark"] #theme-toggle .icon-sun  { display: block; }

/* Notification badge */
.top-bar-actions .notif-icon .badge-count {
  position: absolute;
  top: 5px; right: 5px;
  min-width: 16px; height: 16px;
  padding: 0 3px;
  background: var(--c-error);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ── BREAKPOINTS ── */

/* 900px: collapse centre nav (bottom-nav handles it on mobile) */
@media (max-width: 900px) {
  .top-nav-links { display: none; }
  .top-bar-inner { grid-template-columns: auto auto; }
}

/* 480px: shrink actions gap, hide brand text, show brand mark */
@media (max-width: 480px) {
  .top-bar-inner { padding: var(--s-2) var(--s-3); gap: 0; }
  .top-bar .brand .brand-name { display: none; }
  .top-bar .brand .brand-mark { display: inline-flex; }
  .top-bar .brand img.brand-logo { width: 34px; height: 34px; }
  .icon-btn,
  .top-bar-actions .theme-toggle,
  .top-bar-actions .notif-icon { width: 36px; height: 36px; }
  .top-bar-actions { gap: 2px; }
}

/* ==========================================================================
   v6 MILESTONE ROWS
   ========================================================================== */
.milestone-row {
  padding: var(--s-3) var(--s-4);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-surface);
  transition: border-color .2s;
}
.milestone-row:hover { border-color: var(--c-primary); }
.ms-status-released { border-color: var(--c-success); background: var(--c-success-soft); }
.ms-status-submitted { border-color: var(--c-primary); background: var(--c-primary-soft); }

.milestone-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-2);
}
.milestone-seq {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: .85rem;
  flex-shrink: 0;
}
.ms-status-released .milestone-seq { background: var(--c-success); }
.milestone-label { font-weight: 700; font-size: .95rem; color: var(--c-ink); }
.milestone-amount { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--c-primary-strong); white-space: nowrap; }

.milestone-photos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin: var(--s-2) 0;
}
.ms-photo-thumb {
  display: block;
  width: 80px; height: 80px;
  border-radius: var(--r-1);
  overflow: hidden;
  border: 1px solid var(--c-line);
  flex-shrink: 0;
}
.ms-photo-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.ms-action-form { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--c-line); }

/* ==========================================================================
   v6.2 LEAFLET / OPENSTREETMAP MAP STYLES
   ========================================================================== */
.map-canvas { width: 100%; height: 320px; border-radius: var(--r-2, 16px); overflow: hidden; background: #e6f0e9; }
.map-static { width: 100%; height: 200px; border-radius: var(--r-2, 16px); overflow: hidden; background: #e6f0e9; }
.map-picker { position: relative; }
.leaflet-container { font: inherit; }
.leaflet-container a { color: var(--c-primary-strong, #0d7c66); }
.addr-suggest div:last-child { border-bottom: none !important; }
.gps-feedback { display: none; margin-left: .5rem; font-size: .82rem; color: var(--c-primary-strong, #0d7c66); font-weight: 600; }

/* ==========================================================================
   v6.2 BID "WHAT I BRING" FIELDS
   ========================================================================== */
.brings-list { display: flex; flex-direction: column; gap: .5rem; margin: .35rem 0 .5rem; }
.brings-row { display: flex; gap: .5rem; align-items: center; }
.brings-row input { flex: 1; }
.brings-row .brings-remove { flex-shrink: 0; line-height: 1; padding: .35rem .7rem; font-size: 1.1rem; }
.bid-brings { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; }
.bid-brings-label { font-size: .8rem; font-weight: 700; color: var(--c-muted); }
.bring-chip {
  display: inline-block; background: var(--c-primary-soft); color: var(--c-primary-strong);
  border: 1px solid var(--c-line); border-radius: var(--r-pill, 999px);
  padding: .2rem .7rem; font-size: .8rem; font-weight: 600;
}

/* ==========================================================================
   v7 UNIFIED DESIGN SYSTEM — shared components
   All page-level <style> blocks were consolidated here. Everything below
   uses the design tokens so light/dark and theming hold automatically.
   ========================================================================== */

/* Page header */
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.page-head h1 { margin-bottom: 0; }
.page-head .page-sub { color: var(--c-muted); font-size: var(--t-sm); width: 100%; margin: 0; }
.page-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* Filter bar (admin lists + browse) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: var(--s-3);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--s-4);
}
.filter-bar input,
.filter-bar select {
  width: auto;
  flex: 1 1 160px;
  min-width: 0;
  padding: .6rem .8rem;
  font-size: var(--t-sm);
}
.filter-bar input[type="date"] { flex: 0 1 150px; }
.filter-bar .btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .filter-bar input, .filter-bar select { flex-basis: 100%; }
  .filter-bar .btn { flex: 1; }
}

/* Responsive table wrapper — tables scroll horizontally on small screens */
.table-wrap {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--s-4);
}
.table-wrap .table { box-shadow: none; border-radius: 0; min-width: 640px; }
.table .actions-cell { display: flex; gap: var(--s-1); flex-wrap: wrap; align-items: center; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.stat {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
}
.stat .label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--s-1);
}
.stat .value {
  font-family: 'Syne', sans-serif;
  font-size: var(--t-2xl);
  font-weight: 800;
  color: var(--c-ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat .value.pos { color: var(--c-success); }
.stat .value.neg { color: var(--c-error); }
.stat .delta { font-size: var(--t-xs); color: var(--c-muted); }

/* Empty state */
.empty,
.empty-state {
  text-align: center;
  padding: var(--s-7) var(--s-4);
  color: var(--c-muted);
  background: var(--c-surface);
  border: 1px dashed var(--c-line);
  border-radius: var(--r-2);
}
.empty .empty-icon,
.empty-state .empty-icon { font-size: 2.5rem; display: block; margin-bottom: var(--s-3); }
.empty h3, .empty-state h3 { color: var(--c-ink-2); }

/* Detail meta grids (admin detail pages) */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.detail-item {
  background: var(--c-surface-2);
  border-radius: var(--r-1);
  padding: var(--s-2) var(--s-3);
}
.detail-item .label,
.claim-meta-label,
.meta-label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.detail-item .value,
.claim-meta-value,
.meta-value { font-weight: 600; color: var(--c-ink); word-break: break-word; }
.claim-meta, .meta-item { background: var(--c-surface-2); border-radius: var(--r-1); padding: var(--s-2) var(--s-3); }

/* Status pill extensions used across admin */
.status-banned, .status-suspended { background: var(--c-error-soft); color: var(--c-error); }
.status-awaiting_pop, .status-pop_submitted, .status-submitted,
.status-requested { background: var(--c-warn-soft); color: var(--c-warn); }
.status-released, .status-settled, .status-confirmed,
.status-resolved, .status-trusted, .status-basic { background: var(--c-success-soft); color: var(--c-success); }
.status-expired, .status-withdrawn, .status-none,
.status-refunded { background: var(--c-surface-2); color: var(--c-muted); }
.status-funded, .status-scheduled, .status-wallet_paid,
.status-eft_confirmed { background: var(--c-info-soft); color: var(--c-info); }

/* Trust / score badges */
.trust-pill, .trust-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--r-1);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-size: var(--t-xs);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Avatars */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-surface-2);
  flex-shrink: 0;
}
.avatar-lg { width: 72px; height: 72px; }
.avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-weight: 700;
  flex-shrink: 0;
}

/* OTP / code inputs */
.otp-row { display: flex; gap: var(--s-2); justify-content: center; }
.otp-input, .otp-b {
  width: 48px; height: 56px;
  text-align: center;
  font-size: var(--t-xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.code-display {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: var(--t-xl);
  font-weight: 700;
  letter-spacing: .25em;
  text-align: center;
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
}

/* Document/KYC badges */
.doc-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: .25em .7em;
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 600;
  background: var(--c-surface-2);
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
}
.doc-badge.ok { background: var(--c-success-soft); color: var(--c-success); border-color: transparent; }
.doc-badge.missing { background: var(--c-warn-soft); color: var(--c-warn); border-color: transparent; }
.doc-badge.rejected { background: var(--c-error-soft); color: var(--c-error); border-color: transparent; }

/* Pagination */
.pagination {
  display: flex; gap: var(--s-1); flex-wrap: wrap;
  justify-content: center;
  margin: var(--s-5) 0;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px;
  padding: 0 var(--s-2);
  border-radius: var(--r-1);
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-ink-2);
  font-size: var(--t-sm);
  font-weight: 600;
}
.pagination a:hover { border-color: var(--c-primary); color: var(--c-primary); }
.pagination .current { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.pagination a::after { display: none; }

/* Section labelling inside cards */
.section-title { font-size: var(--t-lg); font-weight: 700; margin-bottom: var(--s-2); }
.section-label {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: var(--s-2);
  display: block;
}
.section-desc { color: var(--c-muted); font-size: var(--t-sm); margin-bottom: var(--s-3); }
.card-sub { color: var(--c-muted); font-size: var(--t-sm); margin-top: calc(-1 * var(--s-2)); margin-bottom: var(--s-3); }

/* Action rows (button groups) */
.action-row { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }
.checkbox-row { display: flex; align-items: center; gap: var(--s-2); font-weight: 500; }
.checkbox-row input { width: auto; }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: .25em .75em;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  color: var(--c-ink-2);
  font-size: var(--t-xs);
  font-weight: 600;
}
.chip-green { background: var(--c-primary-soft); color: var(--c-primary-strong); border-color: transparent; }
.chip-amber { background: var(--c-accent-soft); color: var(--c-accent); border-color: transparent; }

/* Bank rows (profile + withdraw) */
.bank-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px dashed var(--c-line-2);
  font-size: var(--t-sm);
}
.bank-row:last-child { border-bottom: 0; }
.bank-row .bl { color: var(--c-muted); }
.bank-row .bv { font-weight: 600; text-align: right; word-break: break-word; }

/* Progress steps (KYC / onboarding style) */
.progress-steps { display: flex; gap: var(--s-2); margin-bottom: var(--s-4); }
.progress-step { flex: 1; text-align: center; }
.progress-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-line);
  color: var(--c-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--t-xs); font-weight: 700;
  margin-bottom: var(--s-1);
}
.progress-step.done .progress-dot,
.progress-step.active .progress-dot { background: var(--c-primary); color: #fff; }
.progress-label { font-size: var(--t-xs); color: var(--c-muted); display: block; }
.progress-step.active .progress-label { color: var(--c-primary-strong); font-weight: 700; }

/* Utilities */
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--s-1); }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-5 { margin-bottom: var(--s-5); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.w-full { width: 100%; }
.hide-mobile { display: revert; }
.warn { color: var(--c-warn); }
.danger { color: var(--c-error); }
.success { color: var(--c-success); }
.nowrap { white-space: nowrap; }
.break-word { word-break: break-word; }
@media (max-width: 600px) {
  .hide-mobile { display: none !important; }
}

/* Touch targets — mobile usability */
@media (max-width: 760px) {
  .btn { padding: .8rem 1.4rem; }
  .btn-sm { padding: .6rem 1rem; }
  input, select, textarea { font-size: 16px; }
  .table th, .table td { padding: var(--s-2) var(--s-3); }
}

/* Reduced motion — accessibility & battery */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Registration role tiles */
.role-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.role-intro { font-weight: 800; font-size: .9rem; margin-bottom: .6rem; text-align: center; }
.role-hint { font-size: .75rem; color: var(--c-muted); margin: .6rem 0 0; text-align: center; opacity: .8; }
.role-label-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 1.2rem .75rem;
  border: 2px solid var(--c-line);
  border-radius: 18px;
  cursor: pointer;
  transition: transform .25s var(--easing), border-color .25s, background .25s, box-shadow .25s;
  background: var(--c-surface);
  position: relative;
  text-align: center;
  margin-bottom: 0;
}
.role-label-tile input { position: absolute; opacity: 0; pointer-events: none; }
.role-label-tile .role-emoji { font-size: 2rem; transition: transform .3s var(--easing-spring); }
.role-label-tile strong { font-size: .95rem; margin-top: .2rem; }
.role-label-tile .role-desc { font-size: .72rem; color: var(--c-muted); line-height: 1.3; }
.role-label-tile:hover {
  transform: translateY(-3px);
  border-color: var(--c-primary-soft);
  box-shadow: 0 10px 20px rgba(22,163,74,.08);
}
.role-label-tile:hover .role-emoji { transform: scale(1.18) rotate(-5deg); }
.role-label-tile.selected,
.role-label-tile:has(input:checked) {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(22,163,74,.12);
}
@media (max-width: 480px) {
  .role-label-tile { padding: 1rem .5rem; }
}

/* Auth extras (verify-phone, welcome) */
.auth-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.auth-wrap .auth-card { width: 100%; max-width: 440px; position: relative; z-index: 1; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 1.25rem; }
.auth-logo img { height: 52px; width: auto; filter: drop-shadow(0 8px 18px rgba(22,163,74,.12)); }
.auth-icon { display: flex; justify-content: center; margin-bottom: 1.1rem; }
.auth-icon-inner {
  width: 70px; height: 70px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, #dcfce7 100%);
  border: 1.5px solid #bbf7d0;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 24px rgba(22,163,74,.08);
}
.phone-label { text-align: center; color: var(--c-ink-soft); font-size: .95rem; line-height: 1.65; margin-bottom: 1.35rem; }
.phone-number { color: var(--c-primary); font-weight: 800; }
.send-form { margin-bottom: 1.35rem; display: flex; justify-content: center; }
.divider-text {
  text-align: center;
  font-size: .78rem;
  color: var(--c-muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 800;
}
.otp-row { flex-wrap: wrap; margin-bottom: 1.25rem; }
.otp-input {
  border-radius: 16px;
  border-width: 2px;
  font-family: 'Fraunces', serif;
  font-weight: 900;
  caret-color: var(--c-primary);
}
@media (max-width: 380px) {
  .otp-input, .otp-b { width: 42px; height: 52px; font-size: 1.2rem; }
}
.admin-note {
  margin-top: 1.25rem;
  padding: .95rem 1rem;
  border-radius: 18px;
  background: var(--c-warn-soft);
  border: 1.5px solid #fde68a;
  font-size: .82rem;
  color: var(--c-ink-soft);
  line-height: 1.6;
  text-align: center;
}
.admin-note strong { color: var(--c-warn); }
[data-theme="dark"] .admin-note { border-color: rgba(251,191,36,.3); }

/* Welcome / verification checklist page */
.welcome-bg { min-height: 100svh; padding: 1rem 0 3rem; position: relative; }
.welcome-shell { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.welcome-hero { text-align: center; padding: 2.2rem 1rem 1.6rem; animation: fadeSlideIn .6s var(--easing) both; }
.welcome-logo { margin-bottom: 1.4rem; }
.welcome-logo img { height: 52px; width: auto; filter: drop-shadow(0 8px 18px rgba(0,0,0,.08)); }
.welcome-icon-wrap { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.welcome-icon-circle {
  width: 78px; height: 78px;
  border-radius: 22px;
  background: linear-gradient(135deg, #0f2541, var(--c-primary));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 40px -18px rgba(22,163,74,.25);
  border: 1px solid rgba(255,255,255,.2);
}
.welcome-icon-circle svg { width: 40px; height: 40px; color: #fff; }
.welcome-hero h1 { font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 4.8vw, 2.6rem); font-weight: 900; }
.welcome-hero h1 span { color: var(--c-primary); }
.welcome-hero .lead { font-size: 1rem; max-width: 520px; margin: 0 auto; }

.progress-track { display: flex; align-items: center; gap: .6rem; margin: 2rem auto 2.5rem; max-width: 360px; }
.progress-line { flex: 1; height: 2px; background: var(--c-line); border-radius: 2px; }
.progress-line.done { background: linear-gradient(90deg, var(--c-primary), #4ade80); }
.progress-dot.done { background: var(--c-primary); color: #fff; }
.progress-dot.active { background: var(--c-primary-soft); color: var(--c-primary-strong); border: 1.5px solid var(--c-primary); }
.progress-label.done { color: var(--c-primary-strong); }

.step-grid { display: flex; flex-direction: column; gap: 1.1rem; }
.check-step {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  padding: 1.6rem;
  box-shadow: var(--shadow-1);
  transition: border-color .25s, background .25s;
}
.check-step.done { border-color: rgba(22,163,74,.25); background: linear-gradient(180deg, var(--c-primary-soft), var(--c-surface)); }
.check-step.kyc-step { border-left: 3px solid var(--c-warn); }
.check-step-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.check-step-num {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-family: 'Fraunces', serif;
  background: var(--c-surface-2);
  color: var(--c-muted);
  flex-shrink: 0;
}
.check-step.done .check-step-num { background: var(--c-primary); color: #fff; }
.check-step-head h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.check-step-head p { font-size: .85rem; color: var(--c-muted); margin-bottom: 0; }
.check-step-head .status-verified { margin-left: auto; }

.otp-boxes { display: flex; gap: .45rem; }
.btn-ghost-sm {
  padding: .65rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  color: var(--c-muted);
  font-weight: 600;
  cursor: pointer;
}
.btn-ghost-sm:hover { border-color: var(--c-primary); color: var(--c-primary-strong); }

.doc-list { list-style: none; margin: .8rem 0 1rem; display: flex; flex-direction: column; gap: .6rem; padding: 0; }
.doc-list li { padding: .9rem 1rem; border-radius: 12px; background: var(--c-surface-2); border: 1px solid var(--c-line); }
.doc-list strong { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; margin-bottom: .3rem; }
.doc-list span { font-size: .78rem; color: var(--c-muted); }
.doc-badge.required { background: var(--c-primary-soft); color: var(--c-primary-strong); }
.doc-badge.optional { background: var(--c-surface-2); color: var(--c-muted); }

.welcome-cta { margin-top: 1.5rem; padding: 1.6rem; border-radius: 18px; text-align: center; }
.welcome-cta.all-done { background: var(--c-primary-soft); border: 1px solid rgba(22,163,74,.25); }
.welcome-cta.pending { background: var(--c-surface); border: 1px solid var(--c-line); }
.welcome-cta h3 { font-weight: 800; margin-bottom: .5rem; }
.welcome-cta p { color: var(--c-muted); font-size: .9rem; }
.pending-msg { color: var(--c-warn); font-weight: 600; }

/* Tables scroll horizontally on small screens without needing a wrapper */
@media (max-width: 760px) {
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Status color map — declared last so colors always beat .status-pill neutral */
.status-pending, .status-draft, .status-pending_approval, .status-eft_pending,
.status-awaiting_pop, .status-pop_submitted, .status-submitted, .status-requested,
.status-unverified { background: var(--c-warn-soft); color: var(--c-warn); border-color: transparent; }
.status-posted, .status-accepted, .status-completed, .status-paid, .status-verified,
.status-approved, .status-active, .status-released, .status-settled, .status-confirmed,
.status-resolved, .status-trusted, .status-basic { background: var(--c-success-soft); color: var(--c-success); border-color: transparent; }
.status-failed, .status-rejected, .status-disputed, .status-cancelled, .status-banned,
.status-suspended { background: var(--c-error-soft); color: var(--c-error); border-color: transparent; }
.status-in_progress, .status-awaiting_completion, .status-funded, .status-scheduled,
.status-wallet_paid, .status-eft_confirmed { background: var(--c-info-soft); color: var(--c-info); border-color: transparent; }
.status-expired, .status-withdrawn, .status-none, .status-refunded,
.status-unpaid { background: var(--c-surface-2); color: var(--c-muted); border-color: transparent; }

/* ==========================================================================
   Admin page aliases — class names kept from former per-page styles,
   now mapped onto the token system.
   ========================================================================== */

.claims-wrap, .eft-wrap, .kyc-wrap, .payfast-wrap, .ledger-container,
.audit-container, .disputes-page, .withdrawals-page, .claim-page,
.admin-dispute-page, .review-queue { max-width: 1200px; margin: 0 auto; }

.claims-hero, .disputes-hero, .dispute-hero, .withdrawals-header,
.audit-header, .claim-header {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.claims-hero-content, .disputes-hero-inner, .dispute-hero-inner,
.withdrawals-title-wrap { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.claims-hero h1, .disputes-hero h1, .dispute-hero h1,
.withdrawals-header h1, .audit-header h1, .claim-header h1 { margin-bottom: 0; }

.disputes-kicker, .dispute-eyebrow, .terminal-header {
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--c-muted);
}
.dispute-title, .kyc-title, .payfast-title { margin-bottom: var(--s-2); }
.dispute-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); color: var(--c-muted); font-size: var(--t-sm); }
.disputes-count { font-weight: 800; font-variant-numeric: tabular-nums; }
.disputes-count-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: .3em .9em;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-weight: 700;
  font-size: var(--t-sm);
}

.disputes-toolbar, .filter-card, .filter-bar-custom, .filter-pill-box {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: var(--s-3);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--s-4);
}
.disputes-toolbar input, .disputes-toolbar select,
.filter-card input, .filter-card select, .filter-select,
.filter-bar-custom input, .filter-bar-custom select {
  width: auto; flex: 1 1 160px; min-width: 0;
  padding: .6rem .8rem; font-size: var(--t-sm);
}

.disputes-table-wrap, .withdrawals-table-wrap, .table-scroll, .table-card-wrapper {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  box-shadow: var(--shadow-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: var(--s-4);
}
.table-custom {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-surface);
}
.table-custom th, .table-custom td {
  padding: var(--s-3) var(--s-4);
  text-align: left;
  border-bottom: 1px solid var(--c-line-2);
  vertical-align: middle;
}
.table-custom th {
  background: var(--c-surface-2);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.table-custom tbody tr:hover { background: var(--c-surface-2); }

.btn-action, .btn-approve, .btn-reject, .btn-view, .btn-finance,
.btn-filter-custom, .reveal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-1);
  padding: .5rem 1rem;
  border-radius: var(--r-2);
  font-family: 'DM Sans', sans-serif;
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform var(--duration-fast), box-shadow var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast);
  white-space: nowrap;
  line-height: 1;
}
.btn-action:hover, .btn-approve:hover, .btn-reject:hover, .btn-view:hover,
.btn-finance:hover, .btn-filter-custom:hover, .reveal-btn:hover { transform: translateY(-1px); }
.btn-approve, .btn-finance, .btn-filter-custom {
  background: linear-gradient(135deg, var(--c-primary-strong), var(--c-primary));
  color: #fff;
  box-shadow: 0 2px 10px rgba(46,204,113,.25);
}
.btn-approve:hover, .btn-finance:hover, .btn-filter-custom:hover { color: #fff; box-shadow: 0 4px 14px rgba(46,204,113,.35); }
.btn-reject { background: var(--c-error-soft); color: var(--c-error); border-color: transparent; }
.btn-reject:hover { background: var(--c-error); color: #fff; }
.btn-action, .btn-view, .reveal-btn { background: var(--c-surface); border-color: var(--c-line); color: var(--c-ink); }
.btn-action:hover, .btn-view:hover, .reveal-btn:hover { border-color: var(--c-primary); color: var(--c-primary-strong); }

.type-pill, .date-pill, .claim-badge, .entity-badge, .action-badge,
.role-tag-custom, .type-tag, .status-badge, .status-indicator {
  display: inline-flex; align-items: center; gap: 4px;
  padding: .25em .7em;
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  background: var(--c-surface-2);
  color: var(--c-ink-2);
  border: 1px solid var(--c-line);
  text-transform: capitalize;
  white-space: nowrap;
}

.user-link, .job-link, .dispute-link { font-weight: 700; }
.amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.reason-cell, .reason-text { color: var(--c-muted); font-size: var(--t-sm); max-width: 340px; }
.job-icon { font-size: 1.2rem; }
.ip-text, .reveal-target { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: var(--t-xs); color: var(--c-muted); }
.time-block { font-size: var(--t-xs); color: var(--c-muted); white-space: nowrap; }
.actor-block { display: flex; flex-direction: column; gap: 2px; }
.actor-name { font-weight: 700; }
.gradient-text { color: var(--c-primary-strong); }

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-line-2);
}
.card-header.gradient {
  background: linear-gradient(135deg, var(--c-primary-soft), transparent);
  border-radius: var(--r-2) var(--r-2) 0 0;
  padding: var(--s-3) var(--s-4);
  margin: calc(-1 * var(--s-5)) calc(-1 * var(--s-5)) var(--s-3);
  border-bottom: 1px solid var(--c-line);
}
.card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px dashed var(--c-line-2);
  font-size: var(--t-sm);
}
.card-row:last-child { border-bottom: 0; }
.form-group { margin-bottom: var(--s-4); }
.switch-row { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }

.details-card, .doc-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: var(--s-4);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--s-3);
}
.doc-info { font-weight: 600; }
.doc-meta { color: var(--c-muted); font-size: var(--t-xs); }
.action-area, .reject-form { display: flex; gap: var(--s-2); flex-wrap: wrap; align-items: center; }

.claim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.claim-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-4);
  align-items: start;
}
@media (max-width: 860px) { .claim-layout { grid-template-columns: 1fr; } }
.claim-main, .claim-sidebar { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.claim-description { white-space: pre-wrap; }

.cat-row-child td { background: var(--c-surface-2); }

.stat > span {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: var(--s-1);
}
.stat > strong {
  font-family: 'Syne', sans-serif;
  font-size: var(--t-2xl);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-accent-success { border-top: 4px solid var(--c-success); }
.stat-accent-warn { border-top: 4px solid var(--c-warn); }
.pos { color: var(--c-success); }
.neg { color: var(--c-error); }
.memo-cell { max-width: 250px; line-height: 1.4; }

.card-error { border-color: var(--c-error) !important; background: var(--c-error-soft); }
.card-success { border-color: var(--c-success) !important; background: var(--c-success-soft); }
.card-warn { border-color: var(--c-warn) !important; }
.card-primary { border-color: var(--c-primary) !important; }
.card-primary-soft { border-color: var(--c-primary) !important; background: var(--c-primary-soft); }
.card-flush { padding: 0; overflow: hidden; }
.form-narrow { max-width: 560px; }
.plain-list { margin: 0; padding-left: 1.2rem; }
.mono-tiny { font-family: ui-monospace, monospace; font-size: 11px; }
.code-block {
  background: var(--c-surface-2);
  padding: 1rem;
  border-radius: var(--r-1);
  overflow: auto;
  font-size: .8rem;
}
.loose-lines { line-height: 1.9; }

/* ==== PAGE: DASHBOARD (.db scope) ==== */
/* ════════════════════════════════════════════════════
   ZAMASU DASHBOARD — FLUID RESPONSIVE VERSION
════════════════════════════════════════════════════ */

.db{
  --green:#16a34a;
  --green-dk:#14532d;
  --green-lt:#dcfce7;
  --green-mid:#bbf7d0;
  --green-pale:#f0fdf4;
  --green-glow:rgba(22,163,74,.25);
  --navy:#1e3a5f;
  --navy-dk:#0f2541;
  --navy-mid:#1e4d8c;
  --navy-pale:#eff6ff;
  --red:#dc2626;
  --red-lt:#fee2e2;
  --yellow:#d97706;
  --yellow-lt:#fef3c7;
  --text:#1a2e1a;
  --text-body:#263626;
  --muted:#4a6050;
  --bg:#f0f7f2;
  --white:#ffffff;
  --border:#d1fae5;
  --shadow-sm:0 6px 20px rgba(22,163,74,.07);
  --shadow:0 16px 40px -10px rgba(22,163,74,.16);
  --shadow-lg:0 28px 56px -18px rgba(22,163,74,.22);
  --shadow-navy:0 20px 44px -14px rgba(15,37,65,.35);
  --spring:cubic-bezier(0.34,1.4,0.64,1);
  --ease:cubic-bezier(0.22,1,0.36,1);
  --r-sm:20px;
  --r:32px;
  --r-lg:44px;
  --r-pill:999px;

  width:100%;
  max-width:1600px;
  margin:0 auto;
  padding:clamp(.8rem,2vw,2rem);
  font-family:'DM Sans',sans-serif;
  box-sizing:border-box;
}

.db *,
.db *::before,
.db *::after{
  box-sizing:border-box;
}

/* ── Greeting ─────────────────────────────────────── */

.db-greeting{
  margin-bottom:clamp(1.2rem,2vw,2rem);
  animation:db-fade-in .6s var(--ease) both;
}

.db-greeting h1{
  font-family:'Fraunces',serif;
  font-size:clamp(1.8rem,4vw,3rem);
  font-weight:900;
  line-height:1.08;
  letter-spacing:-.03em;
  color:var(--text);
  margin:0 0 .4rem;
  overflow-wrap:anywhere;
}

.db-greeting .gradient-text{
  background:linear-gradient(130deg,var(--green),#4ade80 60%,#86efac);
  background-size:200% auto;
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  animation:shimmer 5s linear infinite;
}

@keyframes shimmer{
  to{background-position:200% center;}
}

.db-greeting .db-sub{
  color:var(--muted);
  font-size:clamp(.92rem,1.5vw,1rem);
  font-weight:500;
}

/* ── Wallet Hero ──────────────────────────────────── */

.db-wallet-hero{
  background:linear-gradient(130deg,var(--navy-dk) 0%,var(--navy-mid) 55%,#1d6b5a 100%);
  border-radius:clamp(24px,3vw,44px);
  padding:clamp(1.2rem,3vw,2.6rem);
  color:#fff;
  position:relative;
  overflow:hidden;
  box-shadow:var(--shadow-navy);
  margin-bottom:clamp(1rem,2vw,1.8rem);
  animation:db-fade-in .7s var(--ease) .1s both;
}

.db-wallet-hero::before{
  content:'';
  position:absolute;
  inset:0;
  background-image:radial-gradient(circle at 20% 50%,rgba(255,255,255,.055) 1.5px,transparent 1.5px);
  background-size:26px 26px;
  pointer-events:none;
}

.db-wallet-hero::after{
  content:'';
  position:absolute;
  top:-80px;
  right:-80px;
  width:min(320px,60vw);
  height:min(320px,60vw);
  background:radial-gradient(circle,rgba(74,222,128,.2) 0%,transparent 70%);
  pointer-events:none;
}

.db-wallet-inner{
  position:relative;
  z-index:1;
}

.db-wallet-label{
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:rgba(255,255,255,.6);
  margin-bottom:.5rem;
}

.db-wallet-balance{
  font-family:'Fraunces',serif;
  font-size:clamp(2.3rem,7vw,4.3rem);
  font-weight:900;
  line-height:1;
  letter-spacing:-.04em;
  color:#fff;
  margin-bottom:clamp(1rem,2vw,1.6rem);
  overflow-wrap:anywhere;
}

.db-wallet-balance .ccy{
  font-size:.55em;
  font-weight:700;
  vertical-align:super;
  color:#86efac;
  line-height:1;
}

.db-wallet-stats{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:.9rem;
  margin-bottom:1.5rem;
}

.db-stat{
  min-width:0;
  background:rgba(255,255,255,.1);
  backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.18);
  border-radius:var(--r-pill);
  padding:.85rem 1rem;
  display:flex;
  align-items:center;
  gap:.7rem;
  transition:all .3s var(--spring);
}

.db-stat:hover{
  background:rgba(255,255,255,.2);
  transform:translateY(-2px);
}

.db-stat-label{
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:rgba(255,255,255,.65);
}

.db-stat-value{
  font-family:'Fraunces',serif;
  font-size:clamp(1rem,2vw,1.3rem);
  font-weight:900;
  color:#bef264;
  line-height:1.15;
  overflow-wrap:anywhere;
}

.db-wallet-actions{
  display:flex;
  flex-wrap:wrap;
  gap:.8rem;
}

.db-btn-primary,
.db-btn-ghost{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.5rem;
  text-decoration:none;
  transition:all .3s var(--spring);
  text-align:center;
}

.db-btn-primary{
  padding:.82rem 1.5rem;
  border-radius:var(--r-pill);
  font-weight:800;
  font-size:.92rem;
  background:var(--green);
  color:#fff;
  box-shadow:0 6px 18px rgba(0,0,0,.2),0 0 0 2px rgba(134,239,172,.3);
}

.db-btn-primary:hover{
  background:#15803d;
  transform:translateY(-3px) scale(1.02);
  box-shadow:0 12px 26px rgba(0,0,0,.25);
}

.db-btn-ghost{
  padding:.82rem 1.5rem;
  border-radius:var(--r-pill);
  font-weight:700;
  font-size:.9rem;
  background:rgba(255,255,255,.1);
  color:rgba(255,255,255,.88);
  border:1.5px solid rgba(255,255,255,.3);
}

.db-btn-ghost:hover{
  background:rgba(255,255,255,.2);
  border-color:rgba(255,255,255,.6);
  transform:translateY(-2px);
}

/* ── Action Tiles ─────────────────────────────────── */

.db-action-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:1rem;
  margin-bottom:1.8rem;
  animation:db-fade-in .7s var(--ease) .2s both;
}

.db-action-tile{
  min-width:0;
  min-height:180px;
  background:var(--white);
  border-radius:var(--r);
  padding:1.4rem 1.2rem;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:.5rem;
  text-decoration:none;
  color:var(--text);
  border:1.5px solid var(--border);
  box-shadow:var(--shadow-sm);
  transition:all .38s var(--spring);
  position:relative;
  overflow:hidden;
}

.db-action-tile::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 80% 80%,rgba(22,163,74,.06),transparent 70%);
  pointer-events:none;
  opacity:0;
  transition:opacity .3s;
}

.db-action-tile:hover{
  transform:translateY(-8px) scale(1.02);
  border-color:var(--green);
  box-shadow:var(--shadow);
}

.db-action-tile:hover::before{
  opacity:1;
}

.db-action-tile.featured{
  border-color:rgba(22,163,74,.5);
  background:var(--green-pale);
}

.db-tile-emoji{
  width:48px;
  height:48px;
  border-radius:18px;
  background:var(--green-lt);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.35rem;
  margin-bottom:.3rem;
  transition:transform .3s var(--spring);
  flex-shrink:0;
}

.db-action-tile:hover .db-tile-emoji{
  transform:scale(1.15) rotate(-4deg);
}

.db-action-tile.featured .db-tile-emoji{
  background:rgba(22,163,74,.2);
}

.db-action-tile strong{
  font-weight:800;
  font-size:1rem;
  color:var(--text);
  line-height:1.25;
}

.db-action-tile span{
  font-size:.84rem;
  color:var(--muted);
  line-height:1.5;
}

/* ── Cards ────────────────────────────────────────── */

.db-cards-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:1.4rem;
  animation:db-fade-in .7s var(--ease) .3s both;
}

.db-card{
  min-width:0;
  background:var(--white);
  border-radius:var(--r);
  padding:clamp(1rem,2vw,1.6rem);
  border:1.5px solid #e6f4eb;
  box-shadow:var(--shadow-sm);
  display:flex;
  flex-direction:column;
  transition:transform .35s var(--spring),box-shadow .35s;
  overflow:hidden;
}

.db-card:hover{
  transform:translateY(-5px);
  box-shadow:var(--shadow);
}

.db-card-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:.8rem;
  margin-bottom:1.2rem;
  flex-wrap:wrap;
}

.db-card-header h3{
  font-family:'Fraunces',serif;
  font-size:1.05rem;
  font-weight:700;
  color:var(--text);
  margin:0;
  line-height:1.3;
}

.db-btn-link{
  flex-shrink:0;
  font-size:.82rem;
  font-weight:700;
  color:var(--green);
  text-decoration:none;
  padding:.42rem .9rem;
  border-radius:999px;
  background:var(--green-pale);
  border:1px solid var(--green-lt);
  transition:all .25s;
}

.db-btn-link:hover{
  background:var(--green-lt);
  border-color:var(--green-mid);
}

/* ── Lists ────────────────────────────────────────── */

.db-list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.6rem;
}

.db-list-item{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.8rem .9rem;
  border-radius:var(--r-sm);
  background:var(--green-pale);
  border:1px solid var(--green-lt);
  transition:all .25s var(--spring);
  min-width:0;
}

.db-list-item:hover{
  border-color:var(--green-mid);
  background:var(--green-lt);
  transform:translateX(4px);
}

.db-list-item a{
  flex:1;
  min-width:0;
  font-weight:700;
  font-size:.88rem;
  color:var(--text);
  text-decoration:none;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.db-money{
  font-family:'Fraunces',serif;
  font-size:.88rem;
  font-weight:700;
  color:var(--green);
  white-space:nowrap;
}

/* ── Status ───────────────────────────────────────── */

.db-status{
  padding:.3rem .75rem;
  border-radius:999px;
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  white-space:nowrap;
  flex-shrink:0;
}

.db-status-open{
  background:var(--green-lt);
  color:var(--green-dk);
  border:1px solid var(--green-mid);
}

.db-status-in_progress{
  background:#dbeafe;
  color:#1e3a5f;
  border:1px solid #bfdbfe;
}

.db-status-pending_review{
  background:var(--yellow-lt);
  color:#78350f;
  border:1px solid #fde68a;
}

.db-status-completed{
  background:var(--green-lt);
  color:var(--green-dk);
  border:1px solid var(--green-mid);
}

.db-status-disputed{
  background:var(--red-lt);
  color:#7f1d1d;
  border:1px solid #fca5a5;
}

.db-status-cancelled{
  background:#f3f4f6;
  color:#374151;
  border:1px solid #d1d5db;
}

/* ── Notifications ───────────────────────────────── */

.db-notif{
  padding:.8rem .95rem;
  border-radius:var(--r-sm);
  border:1px solid var(--green-lt);
  transition:all .25s var(--spring);
}

.db-notif:hover{
  transform:translateX(4px);
}

.db-notif.unread{
  background:var(--green-pale);
  border-color:var(--green-mid);
  border-left:3px solid var(--green);
}

.db-notif.read{
  background:var(--white);
}

.db-notif a{
  text-decoration:none;
  color:var(--text);
  display:block;
}

.db-notif-title{
  font-weight:700;
  font-size:.88rem;
  color:var(--text);
  display:block;
  margin-bottom:.2rem;
  line-height:1.45;
}

.db-notif-time{
  font-size:.75rem;
  color:var(--muted);
}

/* ── Empty States ────────────────────────────────── */

.db-empty{
  text-align:center;
  padding:2rem 1rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.75rem;
}

.db-empty-icon{
  font-size:2rem;
  opacity:.5;
}

.db-empty p{
  font-size:.88rem;
  color:var(--muted);
}

.db-btn-sm{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.58rem 1.2rem;
  border-radius:999px;
  font-weight:700;
  font-size:.85rem;
  text-decoration:none;
  background:var(--green);
  color:#fff;
  box-shadow:0 4px 12px rgba(22,163,74,.3);
  transition:all .3s var(--spring);
}

.db-btn-sm:hover{
  background:var(--green-dk);
  transform:translateY(-2px);
}

/* ── Animations ───────────────────────────────────── */

@keyframes db-fade-in{
  from{
    opacity:0;
    transform:translateY(18px);
  }
  to{
    opacity:1;
    transform:none;
  }
}

/* ── Ultra Responsive ────────────────────────────── */

@media (max-width:900px){

  .db-wallet-actions{
    flex-direction:column;
  }

  .db-btn-primary,
  .db-btn-ghost{
    width:100%;
  }

  .db-list-item{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .db-status,
  .db-money{
    margin-top:.2rem;
  }
}

@media (max-width:640px){

  .db{
    padding:.8rem;
  }

  .db-wallet-hero{
    border-radius:28px;
  }

  .db-action-grid{
    grid-template-columns:1fr;
  }

  .db-cards-grid{
    grid-template-columns:1fr;
  }

  .db-wallet-stats{
    grid-template-columns:1fr;
  }

  .db-card{
    border-radius:24px;
  }

  .db-action-tile{
    min-height:auto;
  }

  .db-list-item{
    padding:.75rem;
  }

  .db-list-item a{
    white-space:normal;
    overflow:visible;
    text-overflow:unset;
    line-height:1.45;
  }

  .db-card-header{
    flex-direction:column;
    align-items:flex-start;
  }

  .db-btn-link{
    width:100%;
    text-align:center;
  }
}

@media (max-width:420px){

  .db-wallet-balance{
    font-size:2rem;
  }

  .db-greeting h1{
    font-size:1.7rem;
  }

  .db-stat{
    padding:.8rem;
  }

  .db-status{
    font-size:.62rem;
    padding:.28rem .58rem;
  }
}


/* ==== PAGE: PROFILE EDIT (.pf scope) ==== */
/* ════════════════════════════════════════════════════
   ZAMASU PROFILE PAGE — green/navy theme
════════════════════════════════════════════════════ */
.pf {
  --green:      #16a34a;
  --green-dk:   #14532d;
  --green-lt:   #dcfce7;
  --green-mid:  #bbf7d0;
  --green-pale: #f0fdf4;
  --navy:       #1e3a5f;
  --navy-dk:    #0f2541;
  --navy-mid:   #1e4d8c;
  --red:        #dc2626;
  --red-lt:     #fee2e2;
  --yellow:     #d97706;
  --yellow-lt:  #fef3c7;
  --text:       #1a2e1a;
  --text-body:  #263626;
  --muted:      #4a6050;
  --bg:         #f0f7f2;
  --white:      #ffffff;
  --border:     #d1fae5;
  --shadow-sm:  0 6px 20px rgba(22,163,74,.07);
  --shadow:     0 16px 40px -10px rgba(22,163,74,.16);
  --shadow-lg:  0 28px 56px -18px rgba(22,163,74,.22);
  --shadow-navy:0 20px 44px -14px rgba(15,37,65,.32);
  --spring:     cubic-bezier(0.34,1.4,0.64,1);
  --ease:       cubic-bezier(0.22,1,0.36,1);
  --r-sm:       16px;
  --r:          28px;
  --r-lg:       40px;
  --r-pill:     999px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* ── Page heading ──────────────────────────────── */
.pf-heading {
  animation: pf-in .55s var(--ease) both;
}
.pf-heading h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 900; letter-spacing: -.025em;
  color: var(--text); margin-bottom: .2rem;
}
.pf-heading p { color: var(--muted); font-size: .95rem; }

/* ── Warning flash ─────────────────────────────── */
.pf-flash {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--yellow-lt); border: 1.5px solid #fde68a;
  border-left: 4px solid var(--yellow);
  border-radius: var(--r); padding: 1.1rem 1.4rem;
  font-size: .92rem; color: #78350f;
  animation: pf-in .55s var(--ease) .05s both;
}
.pf-flash-icon { font-size: 1.4rem; flex-shrink: 0; }
.pf-flash strong { display: block; font-weight: 800; margin-bottom: .2rem; }

/* ── Shared card shell ─────────────────────────── */
.pf-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--spring), box-shadow .35s;
}
.pf-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.pf-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--text); margin-bottom: .25rem;
}
.pf-card-sub { font-size: .85rem; color: var(--muted); }

/* ── Setup / verification card ─────────────────── */
.pf-setup { animation: pf-in .6s var(--ease) .1s both; }

.pf-setup-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; flex-wrap: wrap;
  gap: 1.2rem; margin-bottom: 1.6rem;
}
.pf-setup-meta { display: flex; flex-direction: column; gap: .2rem; }
.pf-trust-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--green-lt); border: 1.5px solid var(--green-mid);
  border-radius: var(--r-pill); padding: .35rem 1rem;
  font-size: .8rem; font-weight: 800; color: var(--green-dk);
  letter-spacing: .04em; text-transform: uppercase;
  margin-top: .4rem;
}
.pf-trust-score {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem; font-weight: 900; color: var(--green);
}

/* progress ring + bar */
.pf-progress-wrap {
  display: flex; flex-direction: column; align-items: flex-end; gap: .4rem;
  flex-shrink: 0;
}
.pf-progress-ring { position: relative; width: 70px; height: 70px; }
.pf-progress-ring svg { transform: rotate(-90deg); }
.pf-progress-ring circle { transition: stroke-dashoffset 1s var(--ease); }
.pf-ring-pct {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-size: 1rem; font-weight: 900;
  color: var(--green);
}

/* checklist rows */
.pf-check-list { display: flex; flex-direction: column; gap: .7rem; }
.pf-check-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; border-radius: 24px;
  border: 1.5px solid var(--border);
  background: var(--green-pale);
  transition: all .3s var(--spring);
}
.pf-check-row:hover { border-color: var(--green-mid); transform: translateX(4px); }
.pf-check-row.done  { background: var(--green-lt); border-color: var(--green-mid); }
.pf-check-row.pending { background: #fff; }

.pf-check-icon-wrap {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.done  .pf-check-icon-wrap { background: var(--green); }
.pending .pf-check-icon-wrap { background: #f3f4f6; }

.pf-check-icon-wrap svg { width: 16px; height: 16px; stroke: #fff; }
.pf-check-emoji { font-size: 1.1rem; }

.pf-check-body { flex: 1; min-width: 0; }
.pf-check-body strong {
  display: flex; align-items: center; gap: .5rem;
  font-weight: 800; font-size: .9rem; color: var(--text);
}
.pf-optional-tag {
  font-size: .7rem; font-weight: 700; color: var(--muted);
  background: #f3f4f6; border-radius: 999px; padding: .15rem .55rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.pf-check-help { font-size: .8rem; color: var(--muted); margin-top: .15rem; line-height: 1.5; }

.pf-check-cta {
  display: inline-flex; align-items: center;
  padding: .5rem 1.1rem; border-radius: var(--r-pill);
  font-weight: 800; font-size: .8rem; text-decoration: none;
  background: var(--green); color: #fff; white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(22,163,74,.3);
  transition: all .3s var(--spring);
}
.pf-check-cta:hover { background: var(--green-dk); transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 18px rgba(22,163,74,.35); }

.pf-done-badge {
  display: flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 800; color: var(--green);
  white-space: nowrap; flex-shrink: 0;
}
.pf-done-badge::before { content: '✓'; font-size: 1rem; }

/* ── Avatar section ────────────────────────────── */
.pf-avatar-card { animation: pf-in .6s var(--ease) .15s both; }
.pf-avatar-row {
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
  margin-top: 1.2rem;
}
.pf-avatar-img {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  object-fit: cover;
  border: 3px solid var(--green-mid);
  box-shadow: 0 0 0 4px var(--green-lt);
}
.pf-avatar-placeholder {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-pale); border: 2px dashed var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
}
.pf-avatar-meta strong { display: block; font-weight: 800; color: var(--text); margin-bottom: .3rem; }
.pf-avatar-meta p { font-size: .83rem; color: var(--muted); margin-bottom: .75rem; line-height: 1.5; }
.pf-btn-upload {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.4rem; border-radius: var(--r-pill);
  font-weight: 700; font-size: .88rem; cursor: pointer;
  background: var(--white); color: var(--navy);
  border: 2px solid var(--navy);
  transition: all .3s var(--spring);
}
.pf-btn-upload:hover { background: var(--navy); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-navy); }

/* ── Profile form card ─────────────────────────── */
.pf-form-card { animation: pf-in .6s var(--ease) .2s both; }
.pf-form { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 1.4rem; }
.pf-field { display: flex; flex-direction: column; gap: .4rem; }
.pf-field label {
  font-weight: 800; font-size: .88rem; color: var(--text);
  display: flex; align-items: center; gap: .5rem;
}
.pf-field-tag {
  font-size: .72rem; font-weight: 700; color: var(--muted);
  background: #f3f4f6; border-radius: 999px; padding: .15rem .6rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.pf-field input,
.pf-field textarea {
  width: 100%; padding: .8rem 1.1rem;
  border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--green-pale); color: var(--text);
  font-family: 'DM Sans', sans-serif; font-size: .95rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
  outline: none;
}
.pf-field input:focus,
.pf-field textarea:focus {
  border-color: var(--green); background: #fff;
  box-shadow: 0 0 0 3px rgba(22,163,74,.15);
}
.pf-field input::placeholder,
.pf-field textarea::placeholder { color: #9fafa0; }
.pf-field small { font-size: .78rem; color: var(--muted); line-height: 1.5; }

.pf-submit {
  width: 100%; padding: 1rem;
  border-radius: var(--r-pill); border: none;
  font-family: 'DM Sans', sans-serif; font-weight: 800;
  font-size: 1rem; cursor: pointer;
  background: var(--green); color: #fff;
  box-shadow: 0 6px 20px rgba(22,163,74,.35);
  transition: all .35s var(--spring);
}
.pf-submit:hover { background: var(--green-dk); transform: translateY(-3px) scale(1.01); box-shadow: 0 12px 28px rgba(22,163,74,.4); }

/* ── Provider CTA cards ────────────────────────── */
.pf-provider-card {
  text-align: center; padding: 2rem 1.8rem;
  animation: pf-in .6s var(--ease) .25s both;
}
.pf-provider-card.is-provider {
  background: linear-gradient(130deg, var(--navy-dk), var(--navy-mid));
  border-color: rgba(134,239,172,.25); color: #fff;
}
.pf-provider-card.is-provider::before {
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background-image: radial-gradient(circle at 80% 20%, rgba(74,222,128,.15) 0%, transparent 60%);
  pointer-events: none;
}
.pf-provider-card.not-provider {
  background: var(--green-pale); border-color: var(--green-mid);
}
.pf-provider-icon { font-size: 2.4rem; display: block; margin-bottom: .8rem; }
.pf-provider-card strong {
  display: block;
  font-family: 'Fraunces', serif; font-size: 1.2rem; font-weight: 700;
  margin-bottom: .4rem;
}
.pf-provider-card.is-provider strong { color: #fff; }
.pf-provider-card.not-provider strong { color: var(--text); }
.pf-provider-card p { font-size: .88rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.6; }
.pf-provider-card.is-provider p { color: rgba(255,255,255,.7); }

.pf-btn-provider {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.8rem; border-radius: var(--r-pill);
  font-weight: 800; font-size: .88rem; text-decoration: none;
  transition: all .3s var(--spring);
}
.is-provider .pf-btn-provider { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.is-provider .pf-btn-provider:hover { background: #15803d; transform: translateY(-2px); }
.not-provider .pf-btn-provider { background: var(--green); color: #fff; box-shadow: 0 6px 18px rgba(22,163,74,.3); }
.not-provider .pf-btn-provider:hover { background: var(--green-dk); transform: translateY(-2px); }

/* ── Animations ────────────────────────────────── */
@keyframes pf-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
  .pf-card { padding: 1.5rem 1.2rem; }
  .pf-setup-header { flex-direction: column; align-items: stretch; }
  .pf-progress-wrap { align-items: flex-start; flex-direction: row; align-items: center; gap: .8rem; }
  .pf-check-row { flex-wrap: wrap; }
  .pf-avatar-row { flex-direction: column; align-items: flex-start; }
}


/* ==== PAGE: NOTIFICATIONS (.ntf scope) ==== */
/* ════════════════════════════════════════════════════
   ZAMASU NOTIFICATIONS — MODAL EXPERIENCE
════════════════════════════════════════════════════ */

.ntf {
  --green: #16a34a;
  --green-dk: #14532d;
  --green-lt: #dcfce7;
  --green-pale: #f0fdf4;
  --navy: #1e3a5f;
  --navy-dk: #0f2541;
  --text: #1a2e1a;
  --muted: #4a6050;
  --border: #d1fae5;
  --shadow: 0 18px 40px -14px rgba(22,163,74,.18);
  --shadow-lg: 0 30px 80px rgba(15,37,65,.25);
  --r: 32px;
  --r-lg: 44px;
  --spring: cubic-bezier(.34,1.4,.64,1);
  font-family: 'DM Sans', sans-serif;
}

/* Header */
.ntf-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  margin-bottom:1.4rem;
  animation:fadeIn .6s ease both;
}

.ntf-head h1 {
  font-family:'Fraunces',serif;
  font-size:clamp(1.8rem,4vw,2.4rem);
  font-weight:900;
  color:var(--text);
  letter-spacing:-.02em;
}

/* Button */
.ntf-btn {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.55rem 1.2rem;
  border-radius:999px;
  font-size:.85rem;
  font-weight:800;
  border:2px solid var(--green);
  background:var(--green);
  color:#fff;
  cursor:pointer;
  transition:all .3s var(--spring);
  text-decoration:none;
}

.ntf-btn:hover {
  transform:translateY(-2px);
  background:var(--green-dk);
}

/* Card */
.ntf-card {
  background:#fff;
  border-radius:var(--r-lg);
  border:2px solid #e6f4eb;
  box-shadow:var(--shadow);
  overflow:hidden;
}

/* Empty state */
.ntf-empty {
  text-align:center;
  padding:3rem 1.5rem;
  background:linear-gradient(180deg,#fff,var(--green-pale));
  border-radius:var(--r-lg);
  border:2px solid var(--green-lt);
}

.ntf-empty svg {
  width:52px;
  height:52px;
  stroke:var(--green);
  margin-bottom:.8rem;
}

.ntf-empty h3 {
  font-family:'Fraunces',serif;
  font-size:1.4rem;
  margin-bottom:.4rem;
  color:var(--text);
}

.ntf-empty p {
  color:var(--muted);
  font-size:.95rem;
}

/* List */
.ntf-list {
  list-style:none;
  margin:0;
  padding:.5rem;
  display:flex;
  flex-direction:column;
  gap:.6rem;
}

.ntf-item {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
  padding:1rem 1.1rem;
  border-radius:22px;
  background:#fff;
  border:1.5px solid #e6f4eb;
  transition:all .3s var(--spring);
  position:relative;
}

.ntf-item:hover {
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(22,163,74,.12);
  border-color:var(--green-lt);
}

.ntf-item.unread {
  background:var(--green-pale);
  border-left:4px solid var(--green);
}

/* Clickable body */
.ntf-link {
  flex:1;
  cursor:pointer;
  color:var(--text);
}

.ntf-link strong {
  display:block;
  font-weight:800;
  font-size:.95rem;
  margin-bottom:.25rem;
}

.ntf-link p {
  font-size:.85rem;
  color:var(--muted);
  margin-bottom:.3rem;
}

.ntf-meta {
  font-size:.75rem;
  color:var(--muted);
}

.ntf-action {
  display:inline-flex;
  align-items:center;
  background:transparent;
  border:none;
  font-size:.75rem;
  font-weight:800;
  color:var(--green);
  cursor:pointer;
  padding:.3rem .6rem;
  border-radius:999px;
  transition:all .25s ease;
}

.ntf-action:hover {
  background:var(--green-lt);
}

/* Modal */
.ntf-modal {
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:1.2rem;
  opacity:0;
  visibility:hidden;
  transition:all .28s ease;
}

.ntf-modal.show {
  opacity:1;
  visibility:visible;
}

.ntf-modal-backdrop {
  position:absolute;
  inset:0;
  background:rgba(15,37,65,.55);
  backdrop-filter:blur(6px);
}

.ntf-modal-card {
  position:relative;
  width:100%;
  max-width:520px;
  background:#fff;
  border-radius:32px;
  padding:2rem;
  border:1.5px solid var(--border);
  box-shadow:var(--shadow-lg);
  transform:translateY(18px) scale(.96);
  transition:all .35s var(--spring);
  z-index:1;
}

.ntf-modal.show .ntf-modal-card {
  transform:translateY(0) scale(1);
}

.ntf-modal-close {
  position:absolute;
  top:1rem;
  right:1rem;
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:#f3f4f6;
  color:#111827;
  cursor:pointer;
  font-size:1.15rem;
  font-weight:900;
  transition:all .25s ease;
}

.ntf-modal-close:hover {
  background:#e5e7eb;
  transform:rotate(90deg);
}

.ntf-modal-badge {
  display:inline-flex;
  align-items:center;
  gap:.4rem;
  padding:.45rem .85rem;
  border-radius:999px;
  background:var(--green-pale);
  color:var(--green-dk);
  border:1px solid var(--green-lt);
  font-size:.75rem;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
  margin-bottom:1rem;
}

.ntf-modal-title {
  font-family:'Fraunces',serif;
  font-size:1.7rem;
  line-height:1.15;
  font-weight:900;
  color:var(--text);
  margin-bottom:1rem;
  letter-spacing:-.03em;
}

.ntf-modal-body {
  font-size:.97rem;
  line-height:1.75;
  color:var(--muted);
  margin-bottom:1.4rem;
  white-space:pre-wrap;
}

.ntf-modal-footer {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:1rem;
  flex-wrap:wrap;
}

.ntf-modal-time {
  font-size:.8rem;
  color:var(--muted);
}

.ntf-modal-link {
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.8rem 1.3rem;
  border-radius:999px;
  background:linear-gradient(135deg,#1e8b4d,#27ae60);
  color:#fff;
  font-size:.88rem;
  font-weight:800;
  text-decoration:none;
  transition:all .3s var(--spring);
}

.ntf-modal-link:hover {
  transform:translateY(-2px);
  box-shadow:0 10px 24px rgba(22,163,74,.22);
}

/* Animation */
@keyframes fadeIn {
  from { opacity:0; transform:translateY(14px); }
  to { opacity:1; transform:none; }
}

@media (max-width:640px){
  .ntf-modal-card{
    padding:1.5rem 1.2rem;
    border-radius:26px;
  }

  .ntf-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .ntf-action{
    margin-left:auto;
  }
}


/* ==== PAGE: WALLET INDEX ==== */
.wm { --green:#16a34a; --green-dk:#14532d; --green-lt:#dcfce7; --green-mid:#bbf7d0; --navy:#1e3a5f; --navy-dk:#0f2541; --bg:#f0f7f2; --text:#1a2e1a; --muted:#4a6050; --r:28px; --r-lg:40px; --r-pill:999px; --shadow:0 20px 40px -12px rgba(22,163,74,.18); --shadow-navy:0 20px 40px -12px rgba(30,58,95,.25); font-family:'DM Sans',sans-serif; color:var(--text); } /* page base */ .wm h1{ font-family:'Fraunces',serif; font-weight:900; font-size:clamp(2rem,4vw,2.6rem); margin:1rem 0 1.2rem; letter-spacing:-.02em; } /* flash */ .wm .flash{ background:#fff; border:1.5px solid var(--green-lt); border-radius:var(--r); padding:1rem 1.2rem; box-shadow:0 8px 24px rgba(0,0,0,.05); margin-bottom:1.2rem; } .wm .flash-info{ background:linear-gradient(135deg,#fff,#f0fdf4); border-color:var(--green-mid); } .wm .status{ padding:.25rem .7rem; border-radius:999px; font-size:.75rem; font-weight:800; text-transform:uppercase; } .wm .status-none{background:#f3f4f6;color:#374151} .wm .status-pending{background:#fef3c7;color:#78350f} .wm .status-verified{background:var(--green-lt);color:var(--green-dk)} .wm .status-rejected{background:#fee2e2;color:#7f1d1d} /* wallet hero */ .wm .wallet-hero{ background:linear-gradient(135deg,var(--navy-dk),var(--navy),#1d6b5a); color:#fff; border-radius:var(--r-lg); padding:2.2rem 2rem; position:relative; overflow:hidden; box-shadow:var(--shadow-navy); margin-bottom:1.4rem; } .wm .wallet-hero::before{ content:''; position:absolute;inset:0; background:radial-gradient(circle at 20% 30%,rgba(255,255,255,.08),transparent 60%); } .wm .wallet-hero .label{ font-size:.75rem; letter-spacing:.12em; text-transform:uppercase; color:rgba(255,255,255,.7); font-weight:800; } .wm .wallet-hero .balance{ font-family:'Fraunces',serif; font-size:3rem; font-weight:900; margin:.6rem 0 1.2rem; } .wm .wallet-hero .ccy{color:#86efac;margin-right:.2rem} .wm .wallet-hero-meta{ display:flex; flex-wrap:wrap; gap:1rem; margin-bottom:1.4rem; } .wm .wallet-hero-meta > div{ background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); border-radius:var(--r-pill); padding:.7rem 1.2rem; backdrop-filter:blur(10px); } .wm .meta-label{ display:block; font-size:.7rem; text-transform:uppercase; letter-spacing:.08em; color:rgba(255,255,255,.65); } .wm .meta-value{ display:block; font-family:'Fraunces',serif; font-weight:800; color:#bef264; margin-top:.2rem; } .wm .wallet-hero-actions{ display:flex; gap:.8rem; flex-wrap:wrap; } .wm .btn{ display:inline-flex; align-items:center; justify-content:center; padding:.75rem 1.4rem; border-radius:999px; font-weight:800; text-decoration:none; transition:.3s; } .wm .btn-primary{ background:var(--green); color:#fff; box-shadow:0 10px 24px rgba(0,0,0,.25); } .wm .btn-primary:hover{transform:translateY(-3px);background:#15803d} .wm .btn-ghost{ background:rgba(255,255,255,.12); border:1.5px solid rgba(255,255,255,.3); color:rgba(255,255,255,.9); } .wm .btn-ghost:hover{background:rgba(255,255,255,.2)} /* cards */ .wm .card{ background:#fff; border:1.5px solid #e6f4eb; border-radius:var(--r); padding:1.4rem; margin:1rem 0; box-shadow:0 10px 26px rgba(0,0,0,.05); } .wm .card h3{ font-family:'Fraunces',serif; font-weight:800; margin-bottom:1rem; } /* list */ .wm .check-list{ list-style:none; display:flex; flex-direction:column; gap:.6rem; padding:0; } .wm .check-list li{ background:#f0fdf4; border:1px solid #dcfce7; padding:.7rem .9rem; border-radius:18px; display:flex; gap:.6rem; flex-wrap:wrap; align-items:center; } .wm .money{font-weight:900;color:var(--green)} .wm .muted{color:var(--muted)} .wm .small{font-size:.85rem} /* table redesign */ .wm .table{ width:100%; border-collapse:separate; border-spacing:0 .6rem; } .wm .table thead th{ text-align:left; font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); padding:.5rem .6rem; } .wm .table tbody tr{ background:#fff; box-shadow:0 10px 20px rgba(0,0,0,.04); } .wm .table tbody td{ padding:.8rem .6rem; } .wm .table tbody tr td:first-child{ border-radius:12px 0 0 12px; } .wm .table tbody tr td:last-child{ border-radius:0 12px 12px 0; } .wm .entry-type{ background:var(--green-lt); color:var(--green-dk); padding:.25rem .6rem; border-radius:999px; font-size:.7rem; font-weight:800; } .wm .money.pos{color:var(--green-dk);font-weight:900} .wm .money.neg{color:#b91c1c;font-weight:900} /* empty */ .wm .empty{ text-align:center; padding:2rem 1rem; color:var(--muted); } .wm .empty svg{ width:42px; height:42px; margin-bottom:.6rem; opacity:.5; } .wm .empty h3{ font-family:'Fraunces',serif; margin:.4rem 0; }


/* ==== PAGE: WALLET DEPOSIT (top-up) ==== */
/* Scoped helpers that build on the global design tokens (no theme override) */
.input-prefix { display: flex; align-items: stretch; margin-top: .3rem; }
.input-prefix-tag {
  display: flex; align-items: center; padding: 0 1rem;
  background: var(--c-primary-soft); border: 1.5px solid var(--c-line); border-right: none;
  border-radius: var(--r-1, 10px) 0 0 var(--r-1, 10px); color: var(--c-primary-strong); font-weight: 700;
}
.input-prefix input {
  flex: 1; border-radius: 0 var(--r-1, 10px) var(--r-1, 10px) 0;
  border: 1.5px solid var(--c-line); padding: .7rem 1rem; font-size: 1.1rem; font-weight: 600;
}
.input-prefix input:focus { border-color: var(--c-primary); outline: none; box-shadow: 0 0 0 3px var(--c-primary-soft); }
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  background: var(--c-surface-2); border: 1.5px solid var(--c-line); color: var(--c-ink);
  font-weight: 700; padding: .45rem 1.15rem; border-radius: var(--r-pill, 999px); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--c-primary); transform: translateY(-2px); }
.chip.active-amount { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.option-tiles { display: grid; gap: .6rem; }
.option-tile {
  display: flex; align-items: flex-start; gap: .85rem; padding: 1rem 1.1rem;
  background: var(--c-surface); border: 1.5px solid var(--c-line); border-radius: var(--r-2, 14px); cursor: pointer; transition: all .2s;
}
.option-tile:hover { border-color: var(--c-primary); }
.option-tile.selected { border-color: var(--c-primary); background: var(--c-primary-soft); }
.option-tile input { margin-top: .25rem; accent-color: var(--c-primary); }
.option-tile .ot-icon { font-size: 1.6rem; line-height: 1; }
.option-tile .ot-body strong { display: block; font-size: 1rem; margin-bottom: 2px; }
.option-tile .ot-body span { font-size: .82rem; }


/* ==== PAGE: WALLET EFT INSTRUCTIONS ==== */
.bank-row .bv .copy-btn {
  margin-left: 0.5rem;
  background: var(--c-primary-soft);
  border: 1px solid var(--c-primary);
  color: var(--c-primary-strong);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.7rem;
  cursor: pointer;
}
.ref-highlight {
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-accent-soft));
  border: 1.5px dashed var(--c-primary);
  border-radius: 12px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
}
.ref-highlight .rh-ref {
  font-family: 'Syne', monospace;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--c-primary-strong);
  letter-spacing: 1px;
}
.amount-badge {
  display: inline-block;
  background: var(--c-primary-soft);
  border: 1px solid var(--c-primary);
  border-radius: 30px;
  padding: 0.4rem 1.2rem;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--c-primary-strong);
  font-family: 'Syne', sans-serif;
  margin: 0.5rem 0;
}
.pop-drop {
  border: 2px dashed var(--c-primary);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--c-surface-2);
}
.pop-drop:hover { border-color: var(--c-primary-strong); background: var(--c-primary-soft); }
ol.steps { padding-left: 1.2rem; line-height: 1.8; display: block; max-width: none; }
ol.steps strong { color: var(--c-primary-strong); }


/* ==== PAGE: JOB CARD PARTIAL ==== */
.job-card{
  display:flex;
  flex-direction:column;
  gap:.8rem;
  padding:1.25rem 1.2rem;
  border-radius:26px;
  background:rgba(255,255,255,.9);
  border:1.5px solid #e6f4eb;
  box-shadow:0 10px 24px rgba(22,163,74,.08);
  text-decoration:none;
  color:#1a2e1a;
  transition:transform .28s cubic-bezier(0.34,1.4,0.64,1), box-shadow .28s, border-color .28s;
  position:relative;
  overflow:hidden;
}

.job-card::before{
  content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 80% 20%, rgba(22,163,74,.08), transparent 60%);
  opacity:0;
  transition:opacity .3s ease;
  pointer-events:none;
}

.job-card:hover{
  transform:translateY(-6px);
  box-shadow:0 18px 40px rgba(22,163,74,.16);
  border-color:#bbf7d0;
}

.job-card:hover::before{
  opacity:1;
}

.job-card-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.6rem;
}

.cat-tag{
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding:.3rem .7rem;
  border-radius:999px;
  background:#f0fdf4;
  color:#14532d;
  border:1px solid #bbf7d0;
}

.tag-hv{
  font-size:.7rem;
  font-weight:900;
  padding:.28rem .65rem;
  border-radius:999px;
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:#fff;
  box-shadow:0 8px 18px rgba(22,163,74,.18);
}

.job-card h3{
  font-family:'Fraunces',serif;
  font-size:1.1rem;
  font-weight:900;
  line-height:1.2;
  margin:0;
  color:#1a2e1a;
}

.job-snippet{
  font-size:.88rem;
  color:#4a6050;
  line-height:1.55;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.job-card-foot{
  display:flex;
  flex-wrap:wrap;
  gap:.7rem;
  align-items:center;
  font-size:.78rem;
  color:#4a6050;
  margin-top:.2rem;
}

.meta-item{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.25rem .55rem;
  border-radius:999px;
  background:#f0f7f2;
  border:1px solid #d1fae5;
  font-weight:700;
}

.meta-item svg{
  width:14px;
  height:14px;
  color:#16a34a;
}

@media (max-width:480px){
  .job-card{
    padding:1.1rem 1rem;
    border-radius:22px;
  }
  .job-card h3{
    font-size:1rem;
  }
}


/* ==== PAGE: FEE BREAKDOWN PARTIAL ==== */
.fee-breakdown{
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #d1fae5;
  border-radius: 24px;
  padding: 1.2rem 1.3rem;
  box-shadow: 0 10px 28px rgba(22,163,74,.08);
  font-family: 'DM Sans', sans-serif;
  animation: fadeInFee .5s cubic-bezier(0.22,1,0.36,1) both;
  position: relative;
  overflow: hidden;
}

.fee-breakdown::before{
  content:'';
  position:absolute;
  inset:-2px;
  background: radial-gradient(circle at 20% 20%, rgba(22,163,74,.08), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(30,58,95,.06), transparent 45%);
  pointer-events:none;
}

@keyframes fadeInFee{
  from{opacity:0; transform:translateY(14px) scale(.98);}
  to{opacity:1; transform:translateY(0) scale(1);}
}

.fee-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:.6rem 0;
  position:relative;
  z-index:1;
  border-bottom:1px dashed rgba(22,163,74,.12);
}

.fee-row:last-child{
  border-bottom:none;
  padding-top:.9rem;
}

.fee-row.total{
  margin-top:.4rem;
}

.muted{
  color:#4a6050;
  font-size:.9rem;
  font-weight:600;
}

.money{
  font-family:'Fraunces', serif;
  font-weight:800;
  color:#1a2e1a;
  letter-spacing:-.02em;
}

.fee-row .money{
  font-size:1rem;
}

.fee-row.total .money{
  font-size:1.25rem;
  color:#16a34a;
}

.fee-row.total span{
  font-weight:800;
  color:#1e3a5f;
}

.fee-row:hover{
  background: rgba(22,163,74,.04);
  border-radius: 12px;
  padding-left:.4rem;
  padding-right:.4rem;
  transition:.25s ease;
}

.money.muted{
  color:#14532d;
}

@media(max-width:480px){
  .fee-breakdown{
    padding:1rem;
    border-radius:18px;
  }
  .fee-row.total .money{
    font-size:1.1rem;
  }
}


/* ==== DARK MODE for scoped page palettes (.db .pf .ntf .wm) ==== */
[data-theme="dark"] .db,
[data-theme="dark"] .pf,
[data-theme="dark"] .ntf,
[data-theme="dark"] .wm {
  --green: #2ecc71;
  --green-dk: #86efac;
  --green-lt: rgba(46,204,113,.16);
  --green-mid: rgba(46,204,113,.3);
  --green-pale: rgba(46,204,113,.08);
  --navy: #b9d4f5;
  --navy-dk: #e8f0fb;
  --navy-mid: #9cc0ec;
  --navy-pale: rgba(56,120,200,.12);
  --red: #f87171;
  --red-lt: rgba(248,113,113,.14);
  --yellow: #fbbf24;
  --yellow-lt: rgba(251,191,36,.12);
  --text: #f0faf2;
  --text-body: #e8f5e9;
  --muted: rgba(232,245,233,.6);
  --bg: #0d1a12;
  --white: #16241a;
  --border: rgba(46,204,113,.18);
  --shadow-sm: 0 6px 20px rgba(0,0,0,.3);
  --shadow: 0 16px 40px -10px rgba(0,0,0,.45);
  --shadow-lg: 0 28px 56px -18px rgba(0,0,0,.5);
  --shadow-navy: 0 20px 44px -14px rgba(0,0,0,.55);
}

[data-theme="dark"] .job-card {
  background: var(--c-surface);
  border-color: var(--c-line);
  color: var(--c-ink);
}
[data-theme="dark"] .fee-breakdown {
  background: var(--c-surface);
  border-color: var(--c-line);
}

/* ==== PUBLIC BROWSE (/browse, /browse/{id}) — light identity ==== */
.public-hero--compact { min-height: auto; padding: 5rem 1.25rem 2rem; }
.hero-inner--narrow { max-width: 760px; }
.public-feed-shell { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem 4rem; position: relative; z-index: 1; }
.public-job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.public-job-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: 22px;
  padding: 1.1rem;
  box-shadow: 0 10px 24px rgba(22,163,74,.07);
  color: var(--c-ink);
  transition: transform .25s var(--easing-spring), box-shadow .25s, border-color .25s;
  overflow: hidden;
}
.public-job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(22,163,74,.14);
  border-color: var(--c-primary);
  color: var(--c-ink);
}
.public-job-card::after { display: none; }
.public-job-card h3 { font-size: 1.05rem; margin-bottom: 0; }
.pjc-photo {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 14px;
  background: var(--c-surface-2);
}
.pjc-photo-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 14px;
  background: var(--c-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.pjc-cat {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .25em .75em;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-size: var(--t-xs);
  font-weight: 700;
}
.pjc-meta { display: flex; flex-wrap: wrap; gap: .4rem; color: var(--c-muted); font-size: var(--t-sm); }
.pjc-poster { display: flex; align-items: center; gap: .45rem; color: var(--c-muted); font-size: var(--t-xs); margin-top: auto; }
.pjc-fox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  font-size: 14px;
  flex-shrink: 0;
}
.pjc-fox--mini { width: 20px; height: 20px; font-size: 11px; vertical-align: middle; }

.public-job-detail { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; width: 100%; }
.pjd-card {
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: 26px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 16px 40px -14px rgba(22,163,74,.14);
}
.pjd-card h1 { margin: 1rem 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.pjd-desc { white-space: pre-wrap; line-height: 1.7; margin-bottom: 1.5rem; color: var(--c-ink-2); }
.pjd-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6rem;
  margin-top: .75rem;
}
.pjd-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: var(--c-surface-2);
}
.pjd-cta-banner, .cta-box {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  background: var(--c-primary-soft);
  border: 1px solid rgba(22,163,74,.25);
  border-radius: var(--r-3);
}
.pjd-cta-banner p, .cta-box p { color: var(--c-ink-soft); }
.back-link { color: var(--c-muted); font-size: .9rem; }
.back-link:hover { color: var(--c-primary-strong); }

/* ==== Small utilities (view sweep) ==== */
.mt-5 { margin-top: var(--s-5); }
.mb-0 { margin-bottom: 0 !important; }
.m-0 { margin: 0 !important; }
.mt-tight { margin: .25rem 0 0; }
.my-2 { margin-top: var(--s-2); margin-bottom: var(--s-2); }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; min-width: 0; }
.min-w-0 { min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.cell-grow { flex: 1; min-width: 200px; }
.cell-1 { flex: 1; min-width: 120px; }
.cell-2 { flex: 2; min-width: 140px; }
.cell-sm { flex: 1; min-width: 90px; }
.fw-normal { font-weight: 400; }
.fw-semi { font-weight: 600; }
.emoji-lg { font-size: 2rem; line-height: 1; }
.icon-lg { font-size: 1.5rem; line-height: 1; }
.pre-wrap { white-space: pre-wrap; }
.block { display: block; }
.rel-clip { position: relative; overflow: hidden; }
.bg-primary-glow { background: var(--c-primary-glow); }
.maps-fallback { padding: 1rem; text-align: center; color: var(--c-warn); font-size: 13px; line-height: 1.5; }
.map-placeholder {
  width: 100%;
  height: 240px;
  border-radius: var(--r-2);
  background: var(--c-surface-2);
  margin-top: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-muted);
  font-size: 13px;
}
.price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem;
  background: var(--c-surface-2);
  border-radius: var(--r-1);
  margin: .75rem 0;
}

/* ==== PAGE: LANDING (.lp scope) ==== */
.lp { --green:#16a34a; --green-dk:#14532d; --green-lt:#dcfce7; --green-mid:#bbf7d0; --green-pale:#f0fdf4;
      --navy:#1e3a5f; --navy-dk:#0f2541; --red:#dc2626; --red-lt:#fee2e2; --bg:#f0f7f2; --text:#1a2e1a;
      --text-body:#263626; --muted:#4a6050; --shadow-sm:0 8px 24px rgba(22,163,74,.07); --shadow:0 20px 40px -12px rgba(22,163,74,.18);
      --shadow-lg:0 32px 64px -20px rgba(22,163,74,.22); --shadow-navy:0 20px 40px -12px rgba(30,58,95,.25);
      --spring:cubic-bezier(0.34,1.4,0.64,1); --ease-out:cubic-bezier(0.22,1,0.36,1);
      font-family:'DM Sans',system-ui,sans-serif; background:var(--bg); color:var(--text); line-height:1.65; display:block; }
    .lp h1,.lp h2,.lp h3,.lp h4 { font-family:'Fraunces','DM Sans',serif; }

    .lp .reveal { opacity:0; transform:translateY(28px) scale(.98); transition:opacity .7s var(--ease-out), transform .7s var(--ease-out); }
    .lp .reveal-left { opacity:0; transform:translateX(-40px); transition:opacity .65s var(--spring), transform .65s var(--spring); }
    .lp .reveal-right { opacity:0; transform:translateX(40px); transition:opacity .65s var(--spring), transform .65s var(--spring); }
    .lp .reveal.visible,.lp .reveal-left.visible,.lp .reveal-right.visible { opacity:1; transform:none; }

    .lp .hero { background:linear-gradient(130deg,var(--navy-dk) 0%,#1e4d8c 42%,#1d6b5a 100%); color:#fff;
      margin:1rem 1rem 0; border-radius:56px 56px 44px 44px; padding:clamp(3rem,8vw,5.5rem) clamp(2rem,6vw,4rem) 0;
      position:relative; overflow:hidden; box-shadow:var(--shadow-navy); }
    .lp .hero::before { content:''; position:absolute; inset:0; z-index:1; background-image:radial-gradient(circle at 20% 40%,rgba(255,255,255,.07) 1.5px,transparent 1.5px); background-size:30px 30px; pointer-events:none; }
    .lp .hero::after { content:''; position:absolute; top:-80px; right:-80px; width:400px; height:400px; background:radial-gradient(circle,rgba(74,222,128,.18) 0%,transparent 70%); pointer-events:none; z-index:1; }
    .lp .hero-inner { display:grid; grid-template-columns:1.15fr .85fr; gap:2rem; position:relative; z-index:3; align-items:center; }
    .lp .hero-text { padding-bottom:3rem; }
    /* Logo row on hero */
    .hero-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 0.8rem; flex-wrap: wrap; }
    .hero-logo { width: 56px; height: 56px; background: white; border-radius: 60px; padding: 6px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); border: 2px solid #f5b81b; object-fit: contain; }
    .hero-badge-text { background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); padding: 0.4rem 1rem; border-radius: 60px; font-size: 0.8rem; font-weight: 600; }
    .lp .hero-tagline { display:inline-flex; align-items:center; gap:.5rem; background:rgba(255,255,255,.12); backdrop-filter:blur(10px); border-radius:999px; padding:.45rem 1.3rem; font-weight:700; font-size:.83rem; letter-spacing:.04em; margin-bottom:1.8rem; border:1px solid rgba(255,255,255,.22); }
    .lp .hero h1 { font-size:clamp(2.8rem,6.5vw,4.2rem); font-weight:900; line-height:1.08; letter-spacing:-.025em; margin-bottom:1.2rem; }
    .lp .hero h1 em { color:#86efac; font-style:normal; }
    .lp .hero-sub { font-size:1.08rem; max-width:500px; color:rgba(255,255,255,.82); margin-bottom:2rem; line-height:1.72; }
    .lp .hero-trust { display:flex; flex-wrap:wrap; gap:.6rem; margin-bottom:2.2rem; }
    .lp .trust-pill { background:rgba(255,255,255,.1); backdrop-filter:blur(4px); border-radius:999px; padding:.45rem 1.1rem; font-weight:600; font-size:.83rem; border:1px solid rgba(255,255,255,.18); transition:all .3s; }
    .lp .trust-pill:hover { background:rgba(255,255,255,.2); transform:translateY(-3px); }
    .lp .hero-ctas { display:flex; gap:1rem; flex-wrap:wrap; }
    .lp .btn-hero-primary { padding:1rem 2.2rem; border-radius:999px; font-weight:800; font-size:1rem; text-decoration:none; color:#fff; background:var(--green); box-shadow:0 8px 24px rgba(0,0,0,.25),0 0 0 3px rgba(134,239,172,.3); transition:all .35s var(--spring); }
    .lp .btn-hero-primary:hover { background:#15803d; transform:translateY(-5px) scale(1.02); }
    .lp .btn-hero-secondary { padding:1rem 2.2rem; border-radius:999px; font-weight:700; font-size:1rem; text-decoration:none; color:#fff; background:rgba(255,255,255,.1); border:2px solid rgba(255,255,255,.4); transition:all .35s var(--spring); }
    .lp .btn-hero-secondary:hover { background:rgba(255,255,255,.2); border-color:#fff; transform:translateY(-3px); }
    .lp .hero-badge-stack { display:flex; flex-direction:column; gap:1.2rem; align-items:stretch; padding-bottom:2rem; }
    .lp .hero-badge { background:rgba(255,255,255,.1); backdrop-filter:blur(14px); border-radius:28px; padding:1.4rem 1.8rem; border:1px solid rgba(255,255,255,.22); transition:all .4s var(--spring); display:flex; align-items:center; justify-content:space-between; gap:1.2rem; }
    .lp .hero-badge:hover { transform:translateX(8px) scale(1.02); background:rgba(255,255,255,.2); }
    .lp .hero-badge .num { font-size:2.6rem; font-weight:900; color:#bef264; line-height:1; white-space:nowrap; }
    .lp .hero-badge .lbl { font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.1em; color:rgba(255,255,255,.75); }
    .lp .hero-wave svg { display:block; }

    .lp .escrow-banner { background:var(--navy); margin:0 1rem 2.5rem; border-radius:999px; padding:1.1rem 2rem; display:flex; align-items:center; justify-content:center; gap:1.2rem; flex-wrap:wrap; box-shadow:0 12px 28px rgba(30,58,95,.25); }
    .lp .escrow-banner p { color:rgba(255,255,255,.9); font-size:.95rem; }
    .lp .escrow-banner strong { color:#fff; }
    .lp .lock-wrap { background:var(--green); border-radius:50%; width:46px; height:46px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:1.3rem; animation:lpPulse 2.8s infinite; }
    @keyframes lpPulse { 0%{box-shadow:0 0 0 0 rgba(74,222,128,.5);} 70%{box-shadow:0 0 0 12px rgba(74,222,128,0);} 100%{box-shadow:0 0 0 0 rgba(74,222,128,0);} }

    .lp .section { text-align:center; padding:0 1rem 2rem; max-width:800px; margin:0 auto; }
    .lp .section-label { display:inline-block; background:var(--green-lt); color:var(--green-dk); padding:.35rem 1.1rem; border-radius:999px; font-weight:800; font-size:.78rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:.9rem; border:1.5px solid var(--green-mid); }
    .lp .section-title { font-size:clamp(1.9rem,4.5vw,2.7rem); font-weight:900; line-height:1.15; color:var(--text); letter-spacing:-.02em; margin-bottom:.6rem; }
    .lp .section-desc { font-size:1rem; color:var(--muted); max-width:560px; margin:0 auto; line-height:1.7; }

    .lp .ps-outer { padding:2rem 1rem 3rem; }
    .lp .ps-breakout { display:grid; grid-template-columns:1fr 1fr; gap:2rem; max-width:1300px; margin:0 auto; }
    .lp .ps-card { border-radius:48px; padding:2.4rem; transition:all .45s var(--spring); position:relative; }
    .lp .ps-card-problem { background:#fff8f8; border:2px solid #fecaca; transform:rotate(-1.2deg); }
    .lp .ps-card-solution { background:#fff; border:2px solid var(--green-mid); transform:rotate(.8deg); box-shadow:var(--shadow); }
    .lp .ps-card:hover { transform:rotate(0deg) scale(1.015); box-shadow:var(--shadow-lg); }
    .lp .ps-badge { display:inline-block; padding:.35rem 1.2rem; border-radius:999px; font-weight:800; font-size:.82rem; letter-spacing:.04em; margin-bottom:1.4rem; }
    .lp .ps-group { margin-top:1.4rem; }
    .lp .ps-group-title { font-weight:800; font-size:.9rem; color:var(--text); margin-bottom:.5rem; text-transform:uppercase; letter-spacing:.06em; }
    .lp .ps-list { list-style:none; display:flex; flex-direction:column; gap:.5rem; padding:0; }
    .lp .ps-list li { color:var(--text-body); font-size:.95rem; padding-left:1.5rem; position:relative; }
    .lp .ps-card-problem .ps-list li::before { content:'✗'; position:absolute; left:0; color:var(--red); font-weight:900; }
    .lp .ps-list-solution li::before { content:'✓'; position:absolute; left:0; color:var(--green); font-weight:900; }
    .lp .ps-card-solution h3 { font-size:1.2rem; font-weight:700; color:var(--text); line-height:1.4; margin-bottom:1.2rem; }
    .lp .service-chip { background:var(--green-lt); color:var(--green-dk); padding:.32rem .9rem; border-radius:999px; font-size:.82rem; font-weight:700; border:1px solid var(--green-mid); display:inline-block; }

    .lp .steps-section { background:#fff; border-radius:56px; margin:2rem 1rem; padding:3.5rem 1.5rem; box-shadow:var(--shadow-sm); }
    .lp .steps-unique { display:flex; flex-wrap:wrap; gap:1rem; justify-content:center; margin-top:.5rem; position:relative; }
    .lp .steps-unique::before { content:''; position:absolute; top:44px; left:10%; right:10%; height:2px; background:linear-gradient(90deg,transparent,var(--green-mid),transparent); pointer-events:none; }
    .lp .step-card { flex:1 1 130px; max-width:160px; background:var(--green-pale); border-radius:40px; padding:1.6rem 1rem; text-align:center; border:2px solid var(--green-lt); transition:all .4s var(--spring); position:relative; z-index:1; }
    .lp .step-card:hover { transform:translateY(-14px) scale(1.04); border-color:var(--green); box-shadow:var(--shadow); background:#fff; }
    .lp .step-num { background:var(--navy); color:#fff; width:48px; height:48px; border-radius:24px; display:flex; align-items:center; justify-content:center; font-weight:900; font-size:1.2rem; margin:0 auto .8rem; box-shadow:0 4px 12px rgba(30,58,95,.25); }
    .lp .step-icon { font-size:1.6rem; display:block; margin-bottom:.5rem; }
    .lp .step-card h3 { font-size:.9rem; font-weight:800; color:var(--text); margin-bottom:.3rem; }
    .lp .step-card p { font-size:.78rem; color:var(--muted); line-height:1.5; }

    .lp .cat-section { padding:2.5rem 1rem; }
    .lp .cat-fluid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1.6rem; max-width:1300px; margin:0 auto; }
    .lp .cat-card { background:#fff; border-radius:44px; padding:1.8rem 1.6rem; border:2px solid #e6f4eb; transition:all .4s var(--spring); display:flex; flex-direction:column; gap:1rem; }
    .lp .cat-card:hover { transform:translateY(-10px) rotate(.4deg); border-color:var(--green); box-shadow:var(--shadow); }
    .lp .cat-icon { font-size:2.2rem; display:block; }
    .lp .cat-card h3 { font-size:1.12rem; font-weight:700; color:var(--text); }
    .lp .cat-card p { color:var(--muted); font-size:.9rem; }

    .lp .jobs-section { padding:2.5rem 1rem 3rem; }
    .lp .jobs-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.4rem; max-width:1300px; margin:1.5rem auto 0; }
    .lp .job-card { background:#fff; border-radius:36px; border:2px solid #e6f4eb; overflow:hidden; text-decoration:none; color:var(--text); display:flex; flex-direction:column; transition:all .4s var(--spring); }
    .lp .job-card:hover { transform:translateY(-8px); border-color:var(--green); box-shadow:var(--shadow); }
    .lp .job-thumb { width:100%; aspect-ratio:16/9; object-fit:cover; background:var(--green-pale); display:block; }
    .lp .job-thumb-ph { width:100%; aspect-ratio:16/9; display:flex; align-items:center; justify-content:center; font-size:2.6rem; background:linear-gradient(135deg,var(--green-lt),var(--green-pale)); }
    .lp .job-body { padding:1.3rem 1.4rem 1.5rem; display:flex; flex-direction:column; gap:.6rem; flex:1; }
    .lp .job-cat { align-self:flex-start; background:var(--green-lt); color:var(--green-dk); border:1px solid var(--green-mid); border-radius:999px; padding:.25rem .8rem; font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
    .lp .job-title { font-size:1.05rem; font-weight:700; line-height:1.35; color:var(--text); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    .lp .job-meta { display:flex; flex-wrap:wrap; gap:.5rem; font-size:.82rem; color:var(--muted); margin-top:auto; }
    .lp .job-poster { display:flex; align-items:center; gap:.5rem; padding-top:.7rem; border-top:1px solid #e6f4eb; font-size:.82rem; color:var(--muted); }
    .lp .job-fox { width:30px; height:30px; border-radius:50%; background:var(--green-pale); border:1px solid var(--green-lt); display:inline-flex; align-items:center; justify-content:center; font-size:15px; flex-shrink:0; }
    .lp .jobs-empty { grid-column:1/-1; text-align:center; padding:2.5rem 1rem; color:var(--muted); background:#fff; border-radius:36px; border:2px dashed var(--green-mid); }
    .lp .jobs-more { text-align:center; margin-top:2rem; }
    .lp .btn-jobs-more { display:inline-block; padding:.9rem 2rem; border-radius:999px; font-weight:800; text-decoration:none; background:var(--navy); color:#fff; transition:all .35s var(--spring); }
    .lp .btn-jobs-more:hover { background:var(--navy-dk); transform:translateY(-3px); box-shadow:var(--shadow-navy); }

    .lp .cta-section { background:radial-gradient(circle at 15% 35%,#14532d,#0a2e19); border-radius:56px; margin:2rem 1rem; padding:4.5rem 2rem; text-align:center; position:relative; overflow:hidden; }
    .lp .cta-section::before { content:''; position:absolute; inset:0; background-image:radial-gradient(circle at 70% 60%,rgba(134,239,172,.12) 1px,transparent 1px); background-size:28px 28px; pointer-events:none; }
    .lp .cta-inner { position:relative; z-index:2; max-width:700px; margin:0 auto; }
    .lp .cta-tag { display:inline-block; background:rgba(134,239,172,.2); color:#86efac; border:1.5px solid rgba(134,239,172,.35); padding:.4rem 1.2rem; border-radius:999px; font-weight:800; font-size:.8rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:1.4rem; }
    .lp .cta-section h2 { font-size:clamp(2rem,5vw,3rem); font-weight:900; color:#fff; margin-bottom:.8rem; line-height:1.1; }
    .lp .cta-inner > p { color:rgba(255,255,255,.75); font-size:1rem; margin-bottom:2rem; }
    .lp .cta-btns { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap; }
    .lp .btn-cta-main { padding:1rem 2.2rem; border-radius:999px; font-weight:800; font-size:1rem; text-decoration:none; background:var(--green); color:#fff; box-shadow:0 8px 24px rgba(0,0,0,.25),0 0 0 3px rgba(134,239,172,.25); transition:all .35s var(--spring); }
    .lp .btn-cta-main:hover { background:#15803d; transform:translateY(-5px) scale(1.02); }
    .lp .btn-cta-ghost { padding:1rem 2.2rem; border-radius:999px; font-weight:700; font-size:1rem; text-decoration:none; color:rgba(255,255,255,.85); background:rgba(255,255,255,.1); border:2px solid rgba(255,255,255,.3); transition:all .35s var(--spring); }
    .lp .btn-cta-ghost:hover { background:rgba(255,255,255,.2); border-color:rgba(255,255,255,.6); transform:translateY(-3px); }

    .lp .workers-showcase { max-width:1100px; margin:0 auto 3rem; padding:0 1rem; }
    .lp .workers-container { background:#fff; border-radius:48px; padding:1.8rem; box-shadow:var(--shadow-sm); text-align:center; border:1px solid var(--green-mid); position:relative; overflow:hidden; }
    .lp .workers-title { font-size:1.2rem; font-weight:800; color:var(--navy); margin-bottom:1rem; letter-spacing:-.3px; display:flex; align-items:center; justify-content:center; gap:.6rem; }
    .lp .workers-title span { background:var(--green-lt); padding:.2rem .8rem; border-radius:999px; font-size:.8rem; }
    .lp .worker-slider { position:relative; height:130px; display:flex; justify-content:center; align-items:center; }
    .lp .worker-item { position:absolute; top:0; left:0; right:0; bottom:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.4rem; opacity:0; transition:opacity 0.8s ease-in-out; pointer-events:none; }
    .lp .worker-item.active { opacity:1; position:relative; pointer-events:auto; }
    .lp .worker-emoji { font-size:3.5rem; filter:drop-shadow(0 6px 10px rgba(22,163,74,.2)); }
    .lp .worker-name { font-weight:800; color:var(--green-dk); background:var(--green-lt); padding:.2rem 1rem; border-radius:999px; font-size:.9rem; }
    .lp .worker-desc { font-size:.8rem; color:var(--muted); }

    /* ----- MODAL POPUP STYLES (R200 Promo) ----- */
    .promo-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(6px);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 10000;
      visibility: hidden;
      opacity: 0;
      transition: visibility 0.2s ease, opacity 0.25s ease;
      font-family: 'Inter', system-ui, sans-serif;
    }
    .promo-modal-overlay.active {
      visibility: visible;
      opacity: 1;
    }
    .promo-modal-container {
      background: linear-gradient(145deg, #ffffff, #f0f7f2);
      max-width: 520px;
      width: 90%;
      border-radius: 2.5rem;
      box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(22, 163, 74, 0.25);
      transform: scale(0.92);
      transition: transform 0.3s cubic-bezier(0.2, 0.95, 0.4, 1.1);
      overflow: hidden;
      position: relative;
    }
    .promo-modal-overlay.active .promo-modal-container {
      transform: scale(1);
    }
    .promo-modal-header {
      background: linear-gradient(105deg, #14532d, #16a34a);
      padding: 1.8rem 1.5rem 1rem;
      text-align: center;
      position: relative;
    }
    .promo-logo {
      display: flex;
      justify-content: center;
      margin-bottom: 0.8rem;
    }
    .promo-logo img {
      max-width: 90px;
      height: auto;
      background: white;
      border-radius: 60px;
      padding: 8px;
      box-shadow: 0 6px 14px rgba(0,0,0,0.2);
      border: 2px solid #4ade80;
    }
    .promo-badge {
      background: rgba(255,255,255,.95);
      color: #14532d;
      font-weight: 800;
      font-size: 0.8rem;
      display: inline-block;
      padding: 0.3rem 1rem;
      border-radius: 60px;
      letter-spacing: 0.5px;
      margin-top: 0.5rem;
    }
    .promo-modal-header h3 {
      color: white;
      font-size: 1.9rem;
      font-weight: 800;
      margin: 0.5rem 0 0.2rem;
      letter-spacing: -0.5px;
    }
    .promo-modal-header p {
      color: #bbf7d0;
      font-weight: 500;
    }
    .promo-modal-body {
      padding: 2rem 1.8rem;
      text-align: center;
    }
    .promo-credit-amount {
      font-size: 3.2rem;
      font-weight: 800;
      background: linear-gradient(135deg, #14532d, #22c55e);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      line-height: 1;
      margin-bottom: 0.5rem;
    }
    .promo-credit-amount small {
      font-size: 1rem;
      font-weight: 600;
      color: #64748b;
    }
    .promo-timer {
      background: #e8f7ee;
      border-radius: 60px;
      padding: 0.6rem 1rem;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
      color: #14532d;
      margin: 1rem 0;
      border: 1px solid #86efac;
    }
    .promo-feature-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      justify-content: center;
      margin: 1.2rem 0;
    }
    .promo-feature-list span {
      background: var(--green-lt);
      padding: 0.4rem 1rem;
      border-radius: 40px;
      font-size: 0.8rem;
      font-weight: 600;
      color: #14532d;
    }
    .btn-promo-claim {
      background: #16a34a;
      border: none;
      padding: 1rem 2rem;
      border-radius: 999px;
      font-weight: 800;
      font-size: 1.1rem;
      color: white;
      width: 100%;
      cursor: pointer;
      transition: all 0.25s;
      margin-top: 0.8rem;
      box-shadow: 0 8px 20px rgba(22,163,74,0.3);
      text-decoration: none;
      display: inline-block;
      text-align: center;
    }
    .btn-promo-claim:hover {
      background: #0f7a3b;
      transform: translateY(-3px);
      box-shadow: 0 12px 24px rgba(22,163,74,0.4);
    }
    /* Dismiss button (secondary) */
    .btn-dismiss-modal {
      background: transparent;
      border: 1px solid #cbd5e1;
      padding: 0.7rem 1.2rem;
      border-radius: 999px;
      font-weight: 600;
      font-size: 0.85rem;
      color: #4b5563;
      cursor: pointer;
      transition: all 0.2s;
      margin-top: 0.8rem;
      width: 100%;
    }
    .btn-dismiss-modal:hover {
      background: #f1f5f9;
      border-color: #94a3b8;
    }
    .promo-modal-close {
      position: absolute;
      top: 16px;
      right: 20px;
      background: rgba(0,0,0,0.3);
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: white;
      font-size: 1.2rem;
      transition: 0.2s;
      border: none;
    }
    .promo-modal-close:hover {
      background: rgba(0,0,0,0.55);
      transform: rotate(90deg);
    }
    @media (max-width: 550px) {
      .promo-modal-header h3 { font-size: 1.5rem; }
      .promo-credit-amount { font-size: 2.5rem; }
      .promo-modal-body { padding: 1.5rem; }
    }

    .lp .sound-toggle { position:fixed; bottom:24px; right:24px; z-index:9999; background:var(--navy); color:white; border:none; width:52px; height:52px; border-radius:52px; font-size:1.6rem; cursor:pointer; box-shadow:0 6px 16px rgba(0,0,0,.2); transition:all .3s var(--spring); display:flex; align-items:center; justify-content:center; backdrop-filter:blur(4px); background:rgba(30,58,95,0.85); border:1px solid rgba(255,255,255,.25); }
    .lp .sound-toggle:hover { transform:scale(1.08); background:var(--green); }
    @media (max-width:900px) {
      .lp .hero-inner { grid-template-columns:1fr; }
      .lp .hero-badge-stack { flex-direction:row; flex-wrap:wrap; }
      .lp .hero-badge { flex:1 1 140px; }
      .lp .ps-breakout { grid-template-columns:1fr; }
      .lp .ps-card { transform:none !important; }
      .lp .worker-slider { height:150px; }
    }
    @media (max-width:600px) {
      .lp .step-card { flex-basis:calc(50% - .6rem); max-width:none; }
      .lp .steps-unique::before { display:none; }
      .lp .hero { margin:.6rem; border-radius:36px; }
      .lp .cta-section { padding:3rem 1.4rem; }
      .lp .sound-toggle { bottom:16px; right:16px; width:44px; height:44px; font-size:1.3rem; }
    }
    .lp .hero::before{animation:lpStars 18s linear infinite;}
    .lp .hero::after{animation:lpGlow 10s ease-in-out infinite;}
    .lp .hero-badge,.lp .cat-card,.lp .job-card,.lp .step-card{will-change:transform;}
    .lp .hero-tagline{animation:lpFloat 4s ease-in-out infinite;}
    .lp .sound-toggle.playing{animation:lpPulseMusic 2s infinite;}
    @keyframes lpAmbient{0%{transform:translateY(0) rotate(0deg);}100%{transform:translateY(-40px) rotate(1deg);}}
    @keyframes lpFloat{0%,100%{transform:translateY(0);}50%{transform:translateY(-8px);}}
    @keyframes lpGlow{0%,100%{transform:scale(1);opacity:.7;}50%{transform:scale(1.15);opacity:1;}}
    @keyframes lpStars{from{background-position:0 0;}to{background-position:120px 120px;}}
    @keyframes lpPulseMusic{0%,100%{box-shadow:0 0 0 0 rgba(74,222,128,.4);}50%{box-shadow:0 0 0 14px rgba(74,222,128,0);}}


/* Landing helpers (formerly inline) */
.lp-link-strong { color: var(--green, #16a34a); font-weight: 700; }
.ps-badge-problem { background: var(--red, #dc2626); color: #fff; }
.ps-badge-solution { background: var(--green, #16a34a); color: #fff; }
.service-chip-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.promo-headline { color: #4ade80; }
.promo-subline { color: #bbf7d0; }
.promo-note { font-weight: 600; color: #1e2a3e; }

/* ==== STANDALONE LEGAL PAGES (terms.php, privacy.php) ==== */
.zsu-navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  font-family: 'DM Sans', sans-serif;
}
.zsu-nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.zsu-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.zsu-brand img { width: 52px; height: 52px; object-fit: contain; }
.zsu-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.zsu-brand-title { font-size: 28px; font-weight: 800; letter-spacing: -1px; color: #0f172a; }
.zsu-brand-title span { color: #16a34a; }
.zsu-brand-sub { font-size: 13px; color: #64748b; font-weight: 500; }
.zsu-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 14px;
  font-weight: 700;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 8px 20px rgba(22,163,74,.25);
}
.zsu-home-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,163,74,.35); color: #fff; }
.zsu-home-btn::after, .zsu-brand::after { display: none; }
@media (max-width: 768px) {
  .zsu-brand-title { font-size: 22px; }
  .zsu-brand-sub { display: none; }
  .zsu-home-btn { padding: 10px 14px; font-size: 14px; }
  .zsu-brand img { width: 44px; height: 44px; }
}

body.legal-page {
  margin: 0;
  background: #f4f7fb;
  font-family: 'DM Sans', sans-serif;
  color: #1f2937;
  line-height: 1.7;
}
.legal-container { max-width: 1000px; margin: auto; padding: 40px 20px; }
.legal-card {
  background: #fff;
  padding: clamp(24px, 5vw, 40px);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.legal-card h1 { font-size: clamp(30px, 6vw, 42px); color: #0f172a; font-family: 'DM Sans', sans-serif; }
.legal-card h2 { margin-top: 40px; color: #16a34a; font-family: 'DM Sans', sans-serif; }
.legal-card ul { padding-left: 20px; }
.legal-card a { color: #16a34a; }
.legal-card .small { color: #64748b; }
.legal-card .notice {
  background: #ecfdf5;
  padding: 15px;
  border-left: 5px solid #16a34a;
  border-radius: 10px;
  margin: 20px 0;
}
.legal-card .notice.notice-important {
  background: #fffbeb;
  border-left-color: #d97706;
}
.legal-card h3 { margin-top: 28px; color: #0f172a; font-size: 1.05rem; }
.legal-nav-links {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.legal-nav-links a {
  display: inline-block;
  padding: .45rem .9rem;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.legal-nav-links a:hover { border-color: #16a34a; color: #16a34a; }
.legal-nav-links a.active { background: #16a34a; border-color: #16a34a; color: #fff; }
.dispute-steps { display: flex; flex-direction: column; gap: 1rem; margin: 1.25rem 0; }
.dispute-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid rgba(15,23,42,.07);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.dispute-step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .9rem;
}
.dispute-step-body strong { display: block; margin-bottom: .2rem; color: #0f172a; }
.dispute-step-body p { margin: 0; font-size: .93rem; color: #475569; }
.ret-footer {
  text-align: center;
  padding: 1.25rem 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--c-line);
  background: var(--c-surface);
}
.ret-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem .75rem; font-size: .82rem; }
.ret-footer-links a { color: var(--c-muted); text-decoration: none; }
.ret-footer-links a:hover { color: var(--c-primary); }
.ret-footer-links span { color: var(--c-muted); }
.ret-footer-copy { font-size: .78rem; color: var(--c-muted); margin-top: .35rem; }

/* ==== Retailer profile map (saved location preview) ==== */
.ret-profile-map {
  height: 220px;
  border-radius: 0 0 var(--r-3) var(--r-3);
}

/* ==== Voucher request page ==== */
.vou-req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 720px) {
  .vou-req-grid { grid-template-columns: 1fr; }
}
.vou-retailer-map {
  height: 340px;
  border-radius: var(--r-3) var(--r-3) 0 0;
  background: var(--c-surface-2);
}
.vou-map-footer {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  padding: .6rem .9rem .75rem;
  border-top: 1px solid var(--c-line);
}
.vou-map-footer .muted { margin-left: auto; }

/* ==== Voucher detail map ==== */
.vou-detail-map {
  height: 200px;
  border-radius: 0 0 var(--r-3) var(--r-3);
}

/* ==== Final polish: components that were never styled ==== */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-footer {
  text-align: center;
  padding: var(--s-4);
  color: var(--c-muted);
  font-size: var(--t-xs);
}
.bottom-nav a.post-cta {
  color: #fff;
  position: relative;
}
.bottom-nav a.post-cta svg {
  background: linear-gradient(135deg, var(--c-primary-strong), var(--c-primary));
  border-radius: 50%;
  width: 40px; height: 40px;
  padding: 9px;
  margin-top: -14px;
  box-shadow: 0 6px 16px rgba(46,204,113,.35);
  color: #fff;
}
.bottom-nav a.post-cta span { color: var(--c-primary-strong); }

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--s-6) var(--s-4);
  gap: var(--s-3);
}
.error-page h1 { font-size: clamp(3rem, 10vw, 5rem); color: var(--c-primary); margin-bottom: 0; }
.error-list { margin: var(--s-1) 0 0; padding-left: 1.2rem; }

.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--s-3);
}
.card-tight { padding: var(--s-3) var(--s-4); }

.job-side { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.bid-row {
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-surface);
  margin-bottom: var(--s-2);
}
.bid-amount { font-family: 'Syne', sans-serif; font-weight: 800; color: var(--c-primary-strong); font-size: var(--t-lg); }
.bid-msg { color: var(--c-ink-2); font-size: var(--t-sm); margin: var(--s-1) 0; white-space: pre-wrap; }
.bid-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-2); }
.actions-stack { display: flex; flex-direction: column; gap: var(--s-2); }
.chat-form { display: flex; gap: var(--s-2); margin-top: var(--s-3); }
.chat-form input, .chat-form textarea { flex: 1; }
.dispute-toggle { cursor: pointer; }
.fomo-card {
  background: linear-gradient(135deg, var(--c-accent-soft), var(--c-surface));
  border: 1px solid var(--c-accent);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  font-size: var(--t-sm);
}
.attr-remove, .ms-remove, .brings-remove {
  flex-shrink: 0;
  background: var(--c-error-soft);
  color: var(--c-error);
  border: 0;
  border-radius: var(--r-1);
  padding: .35rem .7rem;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}
.attr-remove:hover, .ms-remove:hover, .brings-remove:hover { background: var(--c-error); color: #fff; }
.ms-amount-input { max-width: 160px; }

.method-fields {
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  margin: var(--s-2) 0;
}
.eft-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  padding: var(--s-5);
  box-shadow: var(--shadow-1);
  margin-bottom: var(--s-4);
}
.kv { display: flex; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: 1px dashed var(--c-line-2); font-size: var(--t-sm); }
.kv:last-child { border-bottom: 0; }
.big-num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  color: var(--c-primary-strong);
  font-variant-numeric: tabular-nums;
}

.cat-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--s-2);
  margin: var(--s-3) 0;
}
.step-num-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  font-weight: 800;
  font-size: var(--t-xs);
  margin-right: var(--s-2);
  flex-shrink: 0;
}

/* ==========================================================================
   v7.1 PREMIUM FEATURES — Boost, Urgent, Provider Pro
   ========================================================================== */
.badge-urgent {
  display: inline-flex; align-items: center; gap: 3px;
  padding: .25em .7em;
  border-radius: var(--r-pill);
  background: var(--c-error-soft);
  color: var(--c-error);
  font-size: var(--t-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-boost {
  display: inline-flex; align-items: center; gap: 3px;
  padding: .25em .7em;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--c-accent-soft), var(--c-primary-soft));
  color: var(--c-accent);
  font-size: var(--t-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.job-card-boosted {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 1px var(--c-accent), var(--shadow-2);
  position: relative;
}
.job-card-boosted:hover { border-color: var(--c-accent); }

.pro-badge {
  display: inline-flex; align-items: center; gap: 2px;
  padding: .2em .6em;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #1e3a5f, #2d5486);
  color: #f1c40f;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  vertical-align: middle;
}
.bid-row-pro {
  border-color: var(--c-accent);
  background: linear-gradient(135deg, var(--c-surface), var(--c-accent-soft));
}

.upsell-card { border-color: var(--c-primary); }
.upsell-card > strong { display: block; margin-bottom: var(--s-1); }

.pjc-flags {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  display: flex; gap: 4px;
}
.public-job-card { position: relative; }

/* ==========================================================================
   v7.2 UX FIXES — clickable affordance + map placeholder
   ========================================================================== */
.table td a:not(.btn) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: .3em .7em;
  border-radius: var(--r-1);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-weight: 600;
  border: 1px solid transparent;
  transition: background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
.table td a:not(.btn)::after { display: none; }
.table td a:not(.btn):hover {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  transform: translateY(-1px);
}
.table td a:not(.btn) strong { color: inherit; }

button, [role="button"], input[type="submit"] { cursor: pointer; }

.map-canvas .map-loading-msg {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--c-muted);
  font-size: var(--t-sm);
}

.job-card .meta-item.money { color: var(--c-primary-strong); font-weight: 800; }

/* ==========================================================================
   v7.3 FIRST-ACTION CTA CARDS
   ========================================================================== */
.first-cta {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-surface));
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-5);
  box-shadow: var(--shadow-2);
}
.first-cta-icon { font-size: 2.2rem; flex-shrink: 0; }
.first-cta-body { flex: 1; min-width: 220px; }
.first-cta-body strong { display: block; font-family: 'Syne', sans-serif; font-size: var(--t-lg); margin-bottom: 2px; }
.first-cta-body p { color: var(--c-ink-soft); font-size: var(--t-sm); margin: 0; }
.first-cta .btn { flex-shrink: 0; }
@media (max-width: 600px) {
  .first-cta { padding: var(--s-4); }
  .first-cta .btn { width: 100%; }
}

/* ==========================================================================
   v7.4 COMPANY ONBOARDING
   ========================================================================== */
.company-badge {
  display: inline-flex; align-items: center; gap: 3px;
  padding: .2em .65em;
  border-radius: var(--r-pill);
  background: var(--c-info-soft);
  color: var(--c-info);
  font-size: var(--t-xs);
  font-weight: 700;
  vertical-align: middle;
}
.company-status-card { border-left: 4px solid var(--c-primary); }
.company-doc-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-line-2);
}
.company-doc-row:last-child { border-bottom: 0; }
.company-doc-upload {
  display: flex;
  align-items: flex-end;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.company-doc-upload input[type="file"] {
  width: auto;
  max-width: 240px;
  padding: .45rem;
  font-size: var(--t-xs);
}
.role-tiles #tile-company .role-emoji { filter: none; }
@media (max-width: 600px) {
  .company-doc-upload { width: 100%; }
  .company-doc-upload input[type="file"] { max-width: none; flex: 1 1 100%; }
}

/* ==========================================================================
   v7.5 — RICH JOB VIEWS, NOTIFICATIONS, ANNOUNCEMENTS, NATIVE-APP POLISH
   ========================================================================== */

/* Job status stepper */
.job-stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 0 0 var(--s-5);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  padding: var(--s-4) var(--s-3);
  box-shadow: var(--shadow-1);
}
.job-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
  position: relative;
  text-align: center;
}
.job-step:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 14px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--c-line);
  z-index: 0;
}
.job-step.done:not(:first-child)::before,
.job-step.active:not(:first-child)::before { background: var(--c-primary); }
.job-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--c-surface-2);
  border: 2px solid var(--c-line);
  color: var(--c-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--t-xs);
  font-weight: 800;
  position: relative;
  z-index: 1;
}
.job-step.done .job-step-dot {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}
.job-step.active .job-step-dot {
  background: var(--c-surface);
  border-color: var(--c-primary);
  color: var(--c-primary);
  box-shadow: 0 0 0 4px var(--c-primary-glow);
}
.job-step-label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-muted);
}
.job-step.active .job-step-label { color: var(--c-primary-strong); font-weight: 700; }
.job-step.done .job-step-label { color: var(--c-ink-2); }

.job-terminal-banner {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-2);
  margin-bottom: var(--s-5);
  font-weight: 600;
  border: 1px solid var(--c-line);
  background: var(--c-surface-2);
  color: var(--c-ink-2);
}
.job-terminal-disputed { background: var(--c-warn-soft); color: var(--c-warn); border-color: transparent; }
.job-terminal-cancelled { background: var(--c-error-soft); color: var(--c-error); border-color: transparent; }

.job-budget-chip {
  display: inline-flex;
  align-items: center;
  padding: .2em .75em;
  border-radius: var(--r-pill);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
}

/* Sticky mobile action bar (job page) */
.job-sticky-bar { display: none; }
@media (max-width: 760px) {
  .job-sticky-bar {
    display: block;
    position: fixed;
    left: 0; right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom, 0));
    z-index: 45;
    padding: var(--s-2) var(--s-3);
    background: linear-gradient(to top, var(--c-bg) 70%, transparent);
  }
  .job-sticky-bar .btn { box-shadow: var(--shadow-3); }
  .main { padding-bottom: calc(var(--s-7) + 150px); }
  .pic-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--s-2);
    padding-bottom: var(--s-1);
  }
  .pic-grid .pic-tile { flex: 0 0 42%; scroll-snap-align: start; }
  .job-stepper { padding: var(--s-3) var(--s-1); }
  .job-step-label { font-size: .65rem; }
}

/* Admin job detail layout */
.admin-job-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-4);
  align-items: start;
}
@media (max-width: 900px) {
  .admin-job-grid { grid-template-columns: 1fr; }
}
.danger-zone { border-color: var(--c-error); }
.danger-zone h3 { color: var(--c-error); }
.approval-card { border-color: var(--c-primary); }
.cancel-request-card { border-color: var(--c-warn); }
.dispute-card { border-color: var(--c-warn); }

/* Notifications v7.5 */
.ntf-head-actions { display: flex; gap: var(--s-2); align-items: center; }
.ntf-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-surface-2);
  display: inline-flex; align-items: center; justify-content: center;
}
.ntf-item.unread .ntf-icon { background: var(--c-primary-soft); }
.ntf-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--c-primary);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px var(--c-primary-glow);
}
.ntf-divider {
  list-style: none;
  font-size: var(--t-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--c-muted);
  padding: var(--s-3) var(--s-2) var(--s-1);
  border-top: 1px solid var(--c-line-2);
  margin-top: var(--s-2);
}
.ntf-push-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  background: linear-gradient(135deg, var(--c-primary-soft), var(--c-surface));
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-3);
  padding: var(--s-3) var(--s-4);
  margin-bottom: var(--s-4);
}
.ntf-push-icon { font-size: 1.6rem; }

@keyframes bellRing {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(8deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}
.notif-icon.bell-ring svg { animation: bellRing 1s ease; transform-origin: top center; }

/* Announcements */
.ann-preview-bubble {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  box-shadow: var(--shadow-1);
}
.ann-preview-icon { font-size: 1.4rem; }
.ann-preview-bubble p { margin: 2px 0 0; }

/* ── Native-app polish ── */
@media (hover: none) {
  .btn, .card, .job-card, .action-tile, .option-tile, .radio-tile, .bottom-nav a {
    -webkit-tap-highlight-color: transparent;
  }
  .btn:active, .job-card:active, .action-tile:active, .option-tile:active { transform: scale(.98); }
  .bottom-nav a:active svg { transform: scale(1.15); }
}
.main > * { animation: pageEnter .3s var(--easing) both; }
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.bottom-nav a.active span { position: relative; }
.bottom-nav a.active span::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -5px;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-primary);
}
@media (min-width: 1200px) {
  .main { max-width: 1200px; }
}
@media (max-width: 760px) {
  h1 { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  .top-bar { padding-top: env(safe-area-inset-top, 0); }
}

/* ==========================================================================
   v7.6 — SETTINGS, TRUST LADDER, NET BUDGETS, BUTTON + DARK HARDENING
   ========================================================================== */

/* Button hardening: a .btn with no modifier is ALWAYS visible, and primary
   buttons keep a solid colour even if a CSS variable fails to resolve. */
.btn {
  background: var(--c-surface-2);
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-primary, .pf-submit, .pf-btn-provider,
.db-btn-primary, .wm .btn-primary, .btn-whatsapp {
  background-color: #1e8b4d;
  color: #fff;
}
.btn-ghost {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-line);
}
.btn-link { background: transparent; border-color: transparent; }
.wallet-hero-actions .btn-ghost { background: rgba(255,255,255,.12); color: #fff; }

/* Dark theme contrast pass */
[data-theme="dark"] {
  --c-ink: #f4fbf5;
  --c-ink-2: #e9f6ea;
  --c-ink-soft: rgba(236,248,238,.8);
  --c-muted: rgba(236,248,238,.62);
  --c-line: rgba(140,200,160,.22);
  --c-surface-2: #182a1e;
}
[data-theme="dark"] .ntf-card,
[data-theme="dark"] .ntf-item,
[data-theme="dark"] .ntf-modal-card {
  background: var(--c-surface);
  border-color: var(--c-line);
  color: var(--c-ink);
}
[data-theme="dark"] .pf-field input:focus,
[data-theme="dark"] .pf-field textarea:focus { background: var(--c-surface-2); }
[data-theme="dark"] .pf-field-tag { background: var(--c-surface-2); }
[data-theme="dark"] .pf-check-row.pending { background: var(--c-surface-2); }
[data-theme="dark"] .wm .card,
[data-theme="dark"] .wm .table tbody tr,
[data-theme="dark"] .wm .flash { background: var(--c-surface); border-color: var(--c-line); }
[data-theme="dark"] .wm .check-list li { background: var(--c-surface-2); border-color: var(--c-line); }
[data-theme="dark"] .wm .flash-info { background: var(--c-surface); }
[data-theme="dark"] .table th { background: var(--c-surface-2); }
[data-theme="dark"] .addr-suggest { background: var(--c-surface) !important; border-color: var(--c-line) !important; }
[data-theme="dark"] .addr-suggest div { color: var(--c-ink) !important; border-color: var(--c-line) !important; }

/* Milestone progress */
.ms-progress { margin-top: var(--s-3); }
.ms-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--s-2);
  font-size: var(--t-sm);
  margin-bottom: var(--s-2);
}
.ms-progress-amount { font-family: 'Syne', sans-serif; font-weight: 700; color: var(--c-primary-strong); }
.ms-progress-track {
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  overflow: hidden;
}
.ms-progress-fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--c-primary-strong), var(--c-primary));
  transition: width .6s var(--easing);
}

/* Bid net preview */
.bid-net-preview {
  display: inline-block;
  margin-top: var(--s-1);
  padding: .25em .75em;
  border-radius: var(--r-1);
  background: var(--c-success-soft);
  color: var(--c-success);
  font-size: var(--t-sm);
  font-weight: 600;
}

/* Settings page */
.settings-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-line-2);
}
.settings-row:last-child { border-bottom: 0; }
.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}
@media (max-width: 540px) { .role-switch { grid-template-columns: 1fr; } }
.role-switch-tile {
  border: 2px solid var(--c-line);
  border-radius: var(--r-3);
  padding: var(--s-4);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  align-items: center;
}
.role-switch-tile.active {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  box-shadow: 0 0 0 3px var(--c-primary-glow);
}
.role-switch-icon { font-size: 2rem; }
.role-switch-tile p { margin: 0; }

/* Trust ladder */
.trust-ladder { display: flex; flex-direction: column; }
.trust-rung {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-2);
  border-left: 3px solid var(--c-line);
  position: relative;
  opacity: .65;
}
.trust-rung.done, .trust-rung.active { opacity: 1; }
.trust-rung.done { border-left-color: var(--c-primary); }
.trust-rung.active {
  border-left-color: var(--c-primary);
  background: var(--c-primary-soft);
  border-radius: 0 var(--r-2) var(--r-2) 0;
}
.trust-rung-icon {
  font-size: 1.4rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-surface-2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-rung.active .trust-rung-icon { background: var(--c-surface); box-shadow: 0 0 0 3px var(--c-primary-glow); }
.trust-rung-body { flex: 1; min-width: 0; }
.trust-rung-body strong { display: block; }
.trust-rung-perk {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--c-primary-strong);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.trust-rung-check {
  color: var(--c-success);
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ==========================================================================
   v7.7 — EMPTY-STATE FIX, FILTER POLISH, PREMIUM CONSISTENCY
   ========================================================================== */

/* THE FIX: any raw <svg> inside an empty state was inflating to the full
   container width (no width attribute + no scoped rule). Cap them all. */
.empty svg, .empty-state svg,
.empty .empty-icon, .empty-state .empty-icon {
  width: 52px;
  height: 52px;
  display: block;
  margin: 0 auto var(--s-3);
  opacity: .45;
  font-size: 2.4rem;
  line-height: 52px;
}
.empty, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
}
.empty h3, .empty-state h3 { margin: 0; }
.empty p, .empty-state p { max-width: 380px; margin: 0; }
.empty .btn, .empty-state .btn { margin-top: var(--s-2); }

/* Filter bars: consistent height, custom chevron, aligned button */
.filter-bar select,
.page-head .filter-bar select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8a7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 14px;
  padding-right: 2.1rem;
}
.filter-bar input, .filter-bar select, .filter-bar .btn {
  min-height: 42px;
}
.filter-bar label {
  margin-bottom: 0;
  flex: 1 1 160px;
}
.filter-bar label > select, .filter-bar label > input { width: 100%; }

/* Premium consistency */
:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.card > h3:first-child, .card > .section-title:first-child { margin-bottom: var(--s-3); }
.status, .status-pill { letter-spacing: .03em; }
.page-head h1 { letter-spacing: -.03em; }

@media (min-width: 900px) {
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb {
    background: var(--c-line);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
  }
  ::-webkit-scrollbar-thumb:hover { background-color: var(--c-muted); }
}

.card, .table-wrap, .stat, .filter-bar { transition: box-shadow var(--duration) var(--easing); }
.table-wrap:hover, .filter-bar:focus-within { box-shadow: var(--shadow-2); }

img { max-width: 100%; }
.brand-logo { max-height: 46px; }

[data-theme="dark"] .filter-bar select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8c4ae' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ============================================================
   v7.8 — Lucky-draw promo theme, paper-matte surface, loading
   screen, category chips, wallet polish, location privacy
   ============================================================ */

body {
  background-color: var(--c-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='zsun'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23zsun)'/%3E%3C/svg%3E");
}
[data-theme="dark"] body {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='zsun'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.03'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23zsun)'/%3E%3C/svg%3E");
}

.zsu-loading {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  inset: 0;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  background: rgba(250, 253, 249, .9);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--easing), visibility .25s var(--easing);
}
.zsu-loading.show { opacity: 1; visibility: visible; pointer-events: auto; }
[data-theme="dark"] .zsu-loading { background: rgba(13, 26, 18, .9); }
.zsu-loading-inner {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zsu-loading-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 7px;
  box-shadow: 0 10px 28px rgba(13, 26, 18, .2);
  animation: zsuLogoPulse 1.6s ease-in-out infinite;
}
.zsu-loading-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(39, 174, 96, .18);
  border-top-color: var(--c-primary);
  border-right-color: var(--c-primary);
  animation: zsuRingSpin .9s linear infinite;
}
.zsu-loading-text {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink-soft);
  letter-spacing: .02em;
}
@keyframes zsuRingSpin { to { transform: rotate(360deg); } }
@keyframes zsuLogoPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }

.job-video-wrap {
  margin-top: 1rem;
  border-radius: var(--r-2);
  overflow: hidden;
  background: #000;
  line-height: 0;
}
.job-video {
  width: 100%;
  max-height: 420px;
  display: block;
  object-fit: contain;
  border-radius: var(--r-2);
}
.video-upload-input { display: block; margin-top: .4rem; }

.browse-filters {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-4);
  flex-wrap: wrap;
}

/* ── Category dropdown ──────────────────────────────────── */
.cat-dropdown { position: relative; }
.cat-dd-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem 1rem;
  background: var(--c-surface);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  font-family: inherit;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--c-ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color var(--duration-fast), background var(--duration-fast), color var(--duration-fast);
  box-shadow: var(--shadow-1);
}
.cat-dd-btn:hover { border-color: var(--c-primary); color: var(--c-primary-strong); }
.cat-dd-btn[aria-expanded="true"] {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
}
.cat-dd-btn .cat-dd-arrow {
  width: 14px; height: 14px;
  flex-shrink: 0;
  transition: transform .2s var(--easing);
}
.cat-dd-btn[aria-expanded="true"] .cat-dd-arrow { transform: rotate(180deg); }
.cat-dd-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  max-width: min(320px, calc(100vw - 2rem));
  max-height: 72vh;
  overflow-y: auto;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  box-shadow: var(--shadow-3);
  z-index: 200;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.cat-dd-panel[hidden] { display: none; }
@keyframes cat-dd-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0);    }
}
.cat-dd-panel:not([hidden]) { animation: cat-dd-in .15s var(--easing); }
.cat-dd-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1rem;
  color: var(--c-ink-2);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--c-line-2);
  transition: background var(--duration-fast), color var(--duration-fast);
}
.cat-dd-item:last-child { border-bottom: none; }
.cat-dd-item:hover { background: var(--c-surface-2); color: var(--c-ink); }
.cat-dd-item.active {
  background: var(--c-primary-soft);
  color: var(--c-primary-strong);
  font-weight: 700;
}
.cat-dd-item .cat-dd-ico { font-size: 1.1rem; width: 1.4rem; text-align: center; }
.cat-dd-all-ico { font-size: 1.1rem; }

.radius-form {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-left: auto;
}
.radius-form select {
  width: auto;
  min-height: 40px;
  padding: .5rem 2.1rem .5rem .9rem;
  font-size: var(--t-sm);
  font-weight: 600;
  border-radius: var(--r-pill);
  border: 1px solid var(--c-line);
  background-color: var(--c-surface);
  color: var(--c-ink-2);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8a7d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 14px;
  cursor: pointer;
}
[data-theme="dark"] .radius-form select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8c4ae' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
.radius-label { font-size: 1rem; margin-bottom: 0; }

.wm-tx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.wm-tx {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  padding: .85rem .15rem;
  border-bottom: 1px solid var(--border);
}
.wm-tx:last-child { border-bottom: none; }
.wm-tx-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  background: var(--green-lt);
}
.wm-tx-icon.neg { background: var(--red-lt); }
.wm-tx-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .12rem;
}
.wm-tx-type { font-size: .92rem; color: var(--text); }
.wm-tx-desc { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.wm-tx-when { font-size: .72rem; color: var(--muted); }
.wm-tx-amts {
  flex: 0 0 auto;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: .12rem;
}
.wm-tx-amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wm-tx-amt.pos { color: var(--green-dk); }
.wm-tx-amt.neg { color: var(--red); }
.wm-tx-bal { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.wm { overflow-x: clip; }
.wm .check-list code { overflow-wrap: anywhere; word-break: break-all; }
.wm .wallet-hero-meta { flex-wrap: wrap; }

.db-wallet-label-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .6rem;
}
.db-wallet-label-row .db-wallet-label { margin-bottom: 0; }
.db-bal-toggle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--duration-fast) var(--easing);
}
.db-bal-toggle:hover { background: rgba(255, 255, 255, .22); }
.db-bal-toggle .bal-eye-off { display: none; }
.db-bal-toggle.is-on .bal-eye { display: none; }
.db-bal-toggle.is-on .bal-eye-off { display: block; }
.db-wallet-inner {
  border: 2px dashed rgba(255, 255, 255, .2);
  border-radius: clamp(16px, 2.2vw, 30px);
  padding: clamp(.9rem, 2vw, 1.5rem);
}
.db-wallet-pocket {
  display: inline-block;
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  padding: .75rem 1.2rem .85rem;
  margin-bottom: clamp(1rem, 2vw, 1.6rem);
  cursor: pointer;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, .28);
  user-select: none;
}
.db-wallet-pocket .db-wallet-balance { margin-bottom: 0; }
.db-wallet-pocket .bal-real { display: none; }
.db-wallet-pocket.show .bal-real { display: inline; }
.db-wallet-pocket.show .bal-masked { display: none; }
@media (hover: hover) {
  .db-wallet-pocket:hover .bal-real { display: inline; }
  .db-wallet-pocket:hover .bal-masked { display: none; }
}
.db-pocket-hint {
  display: block;
  margin-top: .3rem;
  font-size: .67rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
}

.loc-privacy-note {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--c-ink-soft);
  background: var(--c-primary-soft);
  border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: .3rem .85rem;
  margin: .2rem 0 .6rem;
}

/* ==========================================================================
   v7.10 LOCATION SEARCH ROW + REGIONAL BANKING
   ========================================================================== */
.loc-search-row { display: flex; gap: .5rem; align-items: flex-end; margin-bottom: .75rem; }
.loc-addr-label { flex: 1; margin-bottom: 0 !important; }
.loc-search-btn { flex-shrink: 0; height: 44px; padding: .5rem 1rem; align-self: flex-end; }

/* Regional bank admin panel */
.rb-grid { display: grid; gap: 1rem; }
.rb-card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-2); padding: 1.2rem 1.4rem; }
.rb-card-header { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; flex-wrap: wrap; }
.rb-status { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--r-pill); padding: .2rem .7rem; }
.rb-status.pending  { background: #fef9c3; color: #a16207; }
.rb-status.approved { background: #dcfce7; color: #15803d; }
.rb-status.suspended { background: #fee2e2; color: #b91c1c; }
.rb-admin-name { font-weight: 600; font-size: .95rem; }
.rb-region-label { font-size: .8rem; color: var(--c-ink-soft); }
.rb-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .5rem .75rem; font-size: .87rem; margin-bottom: .9rem; }
.rb-field-label { color: var(--c-ink-soft); font-size: .75rem; display: block; }

/* ─── v7.13 · Retailer portal layout ─────────────────────────── */
body.retailer-portal { background: var(--c-bg); }
.ret-bar {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; gap: .6rem;
  background: linear-gradient(100deg, #0d6e45, #118654);
  color: #fff;
  padding: .65rem 1rem;
  box-shadow: 0 2px 14px rgba(0,0,0,.18);
}
.ret-menu-toggle {
  display: none;
  background: transparent; border: 0; color: #fff;
  padding: 6px; margin: -2px 2px -2px -4px;
  border-radius: var(--r-1); cursor: pointer; align-items: center; justify-content: center;
}
.ret-menu-toggle:hover { background: rgba(255,255,255,.16); }
.ret-brand { color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: .3rem; }
.ret-brand-zsu { letter-spacing: .04em; }
.ret-brand-sep { opacity: .5; }
.ret-brand-sub { font-weight: 400; opacity: .85; font-size: .95rem; }
.ret-bar .ret-bell { color: #fff; margin-left: auto; }
.ret-bar .ret-bell:hover { background: rgba(255,255,255,.16); }
.ret-who { font-size: .88rem; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.ret-bar .btn { margin-left: .25rem; }
.ret-bar .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.ret-bar .btn-ghost:hover { background: rgba(255,255,255,.16); }

.ret-shell { display: grid; grid-template-columns: 232px 1fr; min-height: calc(100vh - 50px); position: relative; }
.ret-drawer-backdrop { display: none; }
.ret-side { background: var(--c-surface); border-right: 1px solid var(--c-border); padding: 1rem .7rem; }
.ret-side nav { display: flex; flex-direction: column; gap: 2px; }
.ret-side nav a {
  display: flex; align-items: center; gap: .65rem;
  padding: .62rem .8rem; border-radius: var(--r-2);
  color: var(--c-ink); text-decoration: none; font-size: .92rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.ret-nav-ico { flex: 0 0 auto; opacity: .65; transition: opacity .15s, color .15s; }
.ret-side nav a:hover { background: var(--c-bg); }
.ret-side nav a:hover .ret-nav-ico { opacity: 1; }
.ret-side nav a.active { color: #0d6e45; font-weight: 700; background: rgba(13,110,69,.1); }
.ret-side nav a.active .ret-nav-ico { opacity: 1; color: #0d6e45; }
.ret-side nav a .ret-nav-badge { margin-left: auto; }
.ret-main { padding: 1.5rem 2rem; max-width: 1100px; width: 100%; min-width: 0; }
.ret-auth-wrap { display: flex; justify-content: center; align-items: flex-start; padding: 3rem 1rem; }
.ret-auth-card { width: 100%; max-width: 440px; }
.ret-guest .ret-bar { justify-content: center; }

/* retailer data tables scroll instead of overflowing the page on small screens */
@media (max-width: 640px) {
  .ret-main .adm-table,
  .ret-main .table {
    display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap;
  }
}

/* mobile: sidebar becomes a polished off-canvas drawer */
@media (max-width: 900px) {
  .ret-menu-toggle { display: inline-flex; }
  .ret-shell { grid-template-columns: 1fr; }
  .ret-side {
    position: fixed; top: 50px; bottom: 0; left: 0;
    width: 272px; max-width: 84vw;
    transform: translateX(-100%); transition: transform .25s ease;
    z-index: 210; overflow-y: auto;
    border-right: 1px solid var(--c-border); box-shadow: 4px 0 28px rgba(0,0,0,.22);
  }
  .ret-shell.drawer-open .ret-side { transform: translateX(0); }
  .ret-drawer-backdrop {
    display: block; position: fixed; inset: 50px 0 0 0;
    background: rgba(0,0,0,.45); z-index: 205; opacity: 0; pointer-events: none; transition: opacity .25s ease;
  }
  .ret-shell.drawer-open .ret-drawer-backdrop { opacity: 1; pointer-events: auto; }
  .ret-main { padding: 1.1rem; }
}
@media (max-width: 560px) {
  .ret-who { display: none; }
  .ret-brand-sub, .ret-brand-sep { display: none; }
}

/* ─── Voucher display (provider detail page) ──────────────────── */
.vou-display-card { padding: 0; overflow: hidden; }
.vou-display-body { display: flex; gap: 2rem; align-items: flex-start; padding: 1.5rem; flex-wrap: wrap; }
.vou-qr-wrap { flex: 0 0 auto; }
.vou-qr-wrap canvas { display: block; border-radius: 8px; border: 1px solid var(--c-border); }
.vou-display-info { flex: 1; min-width: 160px; }
.vou-code-display { font-family: monospace; font-size: 1.6rem; font-weight: 700; letter-spacing: .2em; color: var(--c-ink); }
.vou-pin-display { font-family: monospace; font-size: 2rem; font-weight: 700; letter-spacing: .35em; color: #0d6e45; }
.vou-value-display { font-size: 1.8rem; font-weight: 700; color: var(--c-ink); }
.vou-display-retailer { background: rgba(13,110,69,.06); padding: .75rem 1.5rem; font-size: .92rem; border-top: 1px solid var(--c-border); }
.vou-display-instructions { padding: .6rem 1.5rem; border-top: 1px solid var(--c-border); font-size: .85rem; }

/* ─── Voucher status pills ────────────────────────────────────── */
.vou-status { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.vou-issued    { background: #dbeafe; color: #1e40af; }
.vou-presented { background: #fef9c3; color: #854d0e; }
.vou-redeemed  { background: #dcfce7; color: #15803d; }
.vou-settled   { background: #f0fdf4; color: #166534; }
.vou-expired   { background: #f3f4f6; color: #6b7280; }
.vou-cancelled { background: #fee2e2; color: #b91c1c; }
.vou-disputed  { background: #fef3c7; color: #b45309; }

/* ─── Voucher shopping list ───────────────────────────────────── */
.vou-item-list { list-style: none; padding: 0; margin: 0; }
.vou-item-list li { padding: .5rem 0; border-bottom: 1px solid var(--c-border); font-size: .92rem; }
.vou-item-list li:last-child { border-bottom: none; }

/* ─── Redemption lookup ───────────────────────────────────────── */
.vou-lookup-head { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.vou-lookup-head > div { min-width: 140px; }
.vou-code-big { font-family: monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .15em; }
.vou-value-big { font-size: 2rem; font-weight: 700; color: #0d6e45; }

/* ─── Admin voucher / retailer tables ────────────────────────── */
.badge-warn { background: #fef3c7; color: #b45309; padding: .15em .5em; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.adm-table th { text-align: left; padding: .6rem .75rem; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-ink-soft); border-bottom: 1px solid var(--c-border); }
.adm-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--c-border); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tfoot td { font-weight: 600; border-top: 2px solid var(--c-border); border-bottom: none; }
.adm-table a { color: var(--c-primary); }
.mono { font-family: monospace; font-size: .9em; letter-spacing: .05em; }

/* ─── Settlement net highlight ────────────────────────────────── */
.pos { color: #15803d; font-weight: 600; }

/* ─── inline-check in details summary ────────────────────────── */
.inline-check { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }

.rb-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ==========================================================================
   v7.14 — JOB PROMPTS MODAL + JOB VIEW POLISH
   ========================================================================== */

/* ─── Shared avatar component ─────────────────────────────── */
.avatar-initials {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-weight: 700; font-size: .8125rem; line-height: 1;
  color: var(--c-primary); background: var(--c-primary-soft);
  border-radius: 50%;
}

/* ─── Job poster row ──────────────────────────────────────── */
.job-poster-row {
  display: flex; align-items: center; gap: .75rem;
  margin-top: .75rem;
}
.job-poster-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden;
  background: var(--c-primary-soft);
  border: 2px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
}
.job-poster-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.job-poster-info {
  display: flex; flex-direction: column; gap: 1px;
  font-size: var(--t-sm);
}
.job-poster-info strong { font-size: var(--t-md); }

/* ─── Section heading with count badge ───────────────────── */
.section-heading {
  font-size: var(--t-xl); font-weight: 700;
  margin: var(--s-6) 0 var(--s-4);
  display: flex; align-items: center; gap: .5rem;
}
.bid-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary); color: #fff;
  font-size: var(--t-xs); font-weight: 700;
  min-width: 22px; height: 22px; border-radius: var(--r-pill);
  padding: 0 .4rem;
}

/* ─── Rich bid cards ──────────────────────────────────────── */
.bid-cards { display: flex; flex-direction: column; gap: var(--s-4); margin-bottom: var(--s-6); }

.bid-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  padding: var(--s-4);
  transition: box-shadow var(--duration-fast) var(--easing), border-color var(--duration-fast);
}
.bid-card:hover {
  box-shadow: var(--shadow-2);
  border-color: var(--c-line-2);
}
.bid-card-pro {
  border-left: 3px solid var(--c-primary);
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, var(--c-surface) 60%);
}

.bid-card-header {
  display: flex; gap: var(--s-3); align-items: flex-start;
}
.bid-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden;
  background: var(--c-primary-soft);
  border: 2px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
}
.bid-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bid-avatar .avatar-initials { font-size: .9rem; }

.bid-info { flex: 1; min-width: 0; }
.bid-name-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-1) var(--s-2); margin-bottom: var(--s-1);
}
.bid-bidder-name { font-size: var(--t-md); font-weight: 700; }
.bid-rating-row { display: flex; align-items: center; gap: var(--s-2); margin-top: 2px; }
.bid-stars { color: #f59e0b; letter-spacing: 1px; font-size: var(--t-sm); line-height: 1; }

.bid-amount-block {
  text-align: right; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
}
.bid-amount-big {
  font-size: 1.5rem; font-weight: 800;
  color: var(--c-primary); line-height: 1;
  font-family: 'Syne', sans-serif;
}

.bid-msg-text {
  margin: var(--s-3) 0 var(--s-2);
  font-size: var(--t-sm); color: var(--c-ink-2); line-height: 1.55;
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  padding: var(--s-3) var(--s-4);
  border-left: 3px solid var(--c-line);
}
.bid-card-pro .bid-msg-text { border-left-color: var(--c-primary-glow); }

.bid-brings { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); margin-top: var(--s-2); }
.bid-brings-label { margin-right: var(--s-1); }

.bid-actions { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--c-line); }
.bid-status-row { margin-top: var(--s-3); }

@media (max-width: 480px) {
  .bid-card-header { flex-wrap: wrap; }
  .bid-amount-block { text-align: left; flex-direction: row; align-items: baseline; gap: .4rem; }
  .bid-amount-big { font-size: 1.25rem; }
}

/* ─── Chat message avatars ────────────────────────────────── */
.msg {
  display: flex; gap: var(--s-2); align-items: flex-start;
}
.msg.msg-mine { flex-direction: row-reverse; }

.msg-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  flex-shrink: 0; overflow: hidden;
  background: var(--c-surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--c-muted);
}
.msg-mine .msg-avatar { background: var(--c-primary-soft); color: var(--c-primary); }
.msg-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.msg-bubble {
  flex: 1; min-width: 0;
  background: var(--c-surface-2);
  border-radius: var(--r-2);
  padding: var(--s-2) var(--s-3);
  max-width: 85%;
}
.msg-mine .msg-bubble { background: var(--c-primary-soft); }
.msg-sender { font-size: var(--t-xs); display: block; margin-bottom: 2px; color: var(--c-ink-soft); }

/* ─── Job prompt modal ────────────────────────────────────── */
.jpmt-overlay {
  position: fixed; inset: 0; z-index: 9900;
  background: rgba(0, 0, 0, .52);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--s-4);
}
.jpmt-overlay[hidden] { display: none; }

.jpmt-card {
  background: var(--c-surface);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  max-width: 460px; width: 100%;
  padding: var(--s-7) var(--s-6) var(--s-5);
  position: relative;
  animation: jpmt-in .22s var(--easing-spring) both;
}
@keyframes jpmt-in {
  from { opacity: 0; transform: translateY(24px) scale(.94); }
  to   { opacity: 1; transform: none; }
}

.jpmt-close {
  position: absolute; top: var(--s-3); right: var(--s-3);
  background: var(--c-surface-2); border: none;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-muted); transition: background var(--duration-fast);
}
.jpmt-close:hover { background: var(--c-line); color: var(--c-ink); }

.jpmt-icon {
  font-size: 2.75rem; text-align: center;
  display: block; margin: 0 auto var(--s-3);
}
.jpmt-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  text-align: center; margin: 0 0 var(--s-3);
  line-height: 1.25; color: var(--c-ink);
}
.jpmt-body {
  font-size: var(--t-md); color: var(--c-ink-soft);
  text-align: center; line-height: 1.65;
  margin: 0 0 var(--s-5);
}
.jpmt-actions { display: flex; flex-direction: column; gap: var(--s-2); }
.jpmt-cta { text-align: center; font-size: var(--t-md); }
.jpmt-dismiss {
  background: none; border: none; cursor: pointer;
  color: var(--c-muted); font-size: var(--t-sm);
  text-align: center; padding: var(--s-1) 0;
  transition: color var(--duration-fast);
}
.jpmt-dismiss:hover { color: var(--c-ink); }

[data-theme="dark"] .jpmt-card { background: var(--c-surface-2); }

/* ============================================================
   v7.15 — Retailer portal polish
   ============================================================ */

/* Page head with identity (logo + name) */
.ret-page-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); margin-bottom: var(--s-5); flex-wrap: wrap;
}
.ret-page-head-identity { display: flex; align-items: center; gap: var(--s-4); }
.ret-page-head h1 { margin-bottom: .1rem; }

/* Shop logo in header */
.ret-shop-logo {
  width: 56px; height: 56px; border-radius: var(--r-2);
  object-fit: cover; border: 1px solid var(--c-line);
  flex-shrink: 0;
}
.ret-shop-logo-initials {
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; letter-spacing: .02em;
}

/* Pending / info notice bar */
.ret-notice {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap;
  border-radius: var(--r-2); padding: .85rem 1.1rem;
  margin-bottom: var(--s-5); font-size: var(--t-sm);
}
.ret-notice-warn {
  background: var(--c-warn-soft); border-left: 3px solid var(--c-warn);
  color: var(--c-ink);
}
.ret-notice-info {
  background: var(--c-info-soft); border-left: 3px solid var(--c-info);
}

/* Section header inside card */
.ret-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--s-4);
}
.ret-section-head h3 { margin: 0; }

/* Status chip (replacing contract-status in retailer context) */
.ret-status-chip {
  display: inline-block; padding: .2em .65em;
  border-radius: var(--r-pill); font-size: .78rem;
  font-weight: 600; letter-spacing: .04em;
  background: var(--c-surface-2); color: var(--c-ink-soft);
}
.ret-status-chip.adm-stat-success { background: var(--c-success-soft); color: var(--c-success); }
.ret-status-chip.adm-stat-warn    { background: var(--c-warn-soft);    color: var(--c-warn); }
.ret-status-chip.adm-stat-danger  { background: var(--c-error-soft);   color: var(--c-error); }

/* Positive money amount (green) */
.ret-pos,
.pos { color: var(--c-success); }

/* Logo upload field */
.ret-logo-field { margin-top: var(--s-4); }
.ret-logo-label { display: block; font-weight: 600; font-size: var(--t-sm); margin-bottom: .5rem; color: var(--c-ink-2); }
.ret-logo-preview-row { display: flex; align-items: flex-start; gap: var(--s-4); }
.ret-logo-preview {
  width: 80px; height: 80px; border-radius: var(--r-2);
  object-fit: cover; border: 1px solid var(--c-line); flex-shrink: 0;
}
.ret-logo-initials-lg {
  background: var(--c-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 700;
}
.ret-logo-hint { display: flex; flex-direction: column; gap: .5rem; padding-top: .25rem; }
.ret-logo-input { font-size: var(--t-sm); }

/* API key display */
.ret-api-key {
  background: var(--c-surface-2); border: 1px solid var(--c-line);
  border-radius: var(--r-1); padding: .55rem .75rem;
  font-size: .82rem; word-break: break-all;
  margin-top: .5rem; color: var(--c-ink-2);
  -webkit-user-select: all;
  user-select: all;
}

/* Voucher accounting filter bar */
.ret-filter-card { padding: 1rem 1.25rem; margin-bottom: var(--s-4); }
.ret-filter-form .acct-filter-bar { flex-wrap: wrap; gap: var(--s-3); align-items: flex-end; }
.ret-filter-actions { display: flex; gap: var(--s-2); align-items: flex-end; padding-bottom: .1rem; }

/* Full-width accounting ledger table */
.ret-ledger-table { font-size: .82rem; }
.ret-ledger-table th,
.ret-ledger-table td { white-space: nowrap; }
.ret-ledger-table td:first-child { font-family: monospace; }

/* Settlement detail summary grid */
.acct-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
@media (max-width: 700px) { .acct-summary-grid { grid-template-columns: 1fr 1fr; } }
.acct-summary-grid .card { padding: 1rem 1.25rem; }
.acct-summary-grid .adm-stat-value { font-size: 1.4rem; }
.acct-summary-grid .adm-stat-value.pos { color: var(--c-success); }

/* Fix --c-border references in retailer section (alias to --c-line) */
.ret-side        { border-right: 1px solid var(--c-line) !important; }
.vou-qr-wrap canvas { border: 1px solid var(--c-line) !important; }
.vou-display-retailer  { border-top: 1px solid var(--c-line) !important; }
.vou-display-instructions { border-top: 1px solid var(--c-line) !important; }
.vou-item-list li { border-bottom: 1px solid var(--c-line) !important; }
.adm-table th { border-bottom: 1px solid var(--c-line) !important; }
.adm-table td { border-bottom: 1px solid var(--c-line) !important; }
.adm-table tfoot td { border-top: 2px solid var(--c-line) !important; }

@media (max-width: 640px) {
  .ret-page-head { flex-direction: column; align-items: flex-start; }
  .ret-ledger-table { display: block; overflow-x: auto; }
  .acct-summary-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   v7.16 — Browse mobile fix · Landing page glassmorphism ·
            Retailer landing page
   ============================================================ */

/* ── Browse jobs: prevent mobile zoom-out ─────────────────── */
.browse-filters {
  flex-wrap: wrap;
  overflow-x: hidden;
}
.cat-dd-btn {
  max-width: min(260px, calc(100vw - 140px));
}
.cat-dd-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  max-width: 100%;
}
.cat-dd-panel {
  max-width: min(320px, calc(100vw - 1.5rem));
}
.page-head { overflow-wrap: break-word; word-break: break-word; }
@media (max-width: 520px) {
  .browse-filters { gap: var(--s-2); }
  .radius-form { margin-left: 0; width: 100%; }
  .radius-form select { width: 100%; }
  .cat-dd-btn { max-width: calc(100vw - 2rem); }
}

/* ── Landing page hero glassmorphism: improve text contrast ── */
.lp .hero-sub {
  color: rgba(255,255,255,.96);
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.lp .hero h1 {
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.lp .hero-tagline {
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}
.lp .trust-pill {
  background: rgba(0,0,0,.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.hero-badge-text {
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
}
.lp .hero-badge {
  background: rgba(0,0,0,.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,.25);
}

/* ── Retailer landing page ─────────────────────────────────── */
.rl-body {
  margin: 0; padding: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #f4f8f5;
  color: #0f2541;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Header */
.rl-header {
  background: #0f2541;
  padding: .9rem 1.5rem;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.rl-header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.rl-header-brand {
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: #fff;
}
.rl-header-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; }
.rl-brand-zsu { font-family: 'Syne', 'DM Sans', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; color: #fff; }
.rl-brand-su { color: #27ae60; }
.rl-brand-sep { color: rgba(255,255,255,.4); margin: 0 .15rem; }
.rl-brand-merchants { color: rgba(255,255,255,.8); font-size: .9rem; font-weight: 500; }
.rl-header-tagline {
  margin-left: auto;
  font-size: .72rem; font-weight: 800; letter-spacing: .18em;
  color: #27ae60; text-transform: uppercase;
}
.rl-header-link {
  color: rgba(255,255,255,.7); font-size: .82rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px;
  padding: .3rem .8rem; transition: all .2s;
  white-space: nowrap;
}
.rl-header-link:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* Main two-column layout */
.rl-page { display: flex; flex-direction: column; min-height: 100svh; }
.rl-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 0;
  max-width: 1280px;
  width: 100%; margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  gap: 3rem;
  align-items: start;
}

/* Hero column */
.rl-hero-col { padding-top: 1rem; }
.rl-hero-eyebrow {
  display: inline-block;
  background: #e8f7ee; color: #1a6b3c;
  border: 1.5px solid #b7e4c7;
  border-radius: 999px; padding: .4rem 1.1rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 1.2rem;
}
.rl-hero-h1 {
  font-family: 'Fraunces', 'DM Sans', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900; line-height: 1.12;
  letter-spacing: -.02em;
  color: #0f2541; margin-bottom: 2rem;
}
.rl-hero-h1 em { font-style: normal; color: #27ae60; }
.rl-free {
  display: inline-block;
  color: #c62828; font-style: italic;
}

/* Steps grid */
.rl-steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: .75rem; align-items: center;
  background: #fff;
  border: 1.5px solid #d1e8da;
  border-radius: 20px;
  padding: 1.4rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(39,174,96,.08);
}
.rl-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: .35rem;
}
.rl-step-num {
  width: 26px; height: 26px;
  background: #27ae60; color: #fff;
  border-radius: 50%; font-weight: 800; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.rl-step-icon { font-size: 1.6rem; }
.rl-step-body { font-size: .78rem; line-height: 1.4; }
.rl-step-body strong { display: block; font-weight: 700; color: #0f2541; margin-bottom: .15rem; }
.rl-step-body span { color: #5b7a65; }
.rl-step-arrow { color: #27ae60; font-size: 1.2rem; font-weight: 700; }

/* Why join */
.rl-why {
  background: #0f2541; border-radius: 20px;
  padding: 1.5rem 1.75rem; margin-bottom: 1.5rem;
  color: #fff;
}
.rl-why-title {
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.1rem;
  color: #fff; margin-bottom: 1rem;
}
.rl-why-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: .65rem;
}
.rl-why-list li { font-size: .9rem; color: rgba(255,255,255,.9); line-height: 1.5; }
.rl-why-list li strong { color: #4ade80; }

/* Bottom CTA bar */
.rl-register-cta-bar {
  background: #27ae60; color: #fff;
  border-radius: 12px; padding: .9rem 1.25rem;
  font-size: .88rem; font-weight: 600; text-align: center;
}
.rl-register-cta-bar strong { font-weight: 800; }
.rl-register-cta-bar span { opacity: .9; }

/* Form column */
.rl-form-col {
  position: sticky; top: 80px;
}

/* Tab switcher */
.rl-tabs {
  display: flex; gap: 0;
  background: #e4eef0; border-radius: 14px 14px 0 0;
  overflow: hidden;
  border: 1.5px solid #c5d8e0;
  border-bottom: none;
}
.rl-tab {
  flex: 1; padding: .85rem 1rem;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: .9rem; font-weight: 600;
  color: #5b7a80; transition: all .2s;
}
.rl-tab.active {
  background: #fff; color: #0f2541;
  box-shadow: 0 -3px 0 #27ae60 inset;
}
.rl-tab:hover:not(.active) { background: rgba(255,255,255,.5); color: #0f2541; }

/* Panels */
.rl-panel {
  display: none;
  background: #fff;
  border: 1.5px solid #c5d8e0; border-top: none;
  border-radius: 0 0 18px 18px;
  padding: 1.75rem 1.75rem 2rem;
  box-shadow: 0 8px 32px rgba(15,37,65,.1);
}
.rl-panel.active { display: block; }
.rl-form-title {
  font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.3rem;
  color: #0f2541; margin-bottom: .25rem;
}
.rl-form-sub { margin-bottom: 1rem; }
.rl-form { display: flex; flex-direction: column; gap: .85rem; }
.rl-form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .88rem; color: #1a3525; }
.rl-form input, .rl-form select {
  padding: .65rem .9rem; border: 1.5px solid #c5d8e0;
  border-radius: 10px; font-family: inherit; font-size: .92rem;
  background: #f8fcfa; color: #0f2541;
  transition: border-color .2s;
  width: 100%;
}
.rl-form input:focus, .rl-form select:focus {
  outline: none; border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39,174,96,.12);
  background: #fff;
}
.rl-form .btn-primary {
  background: #27ae60; border: none; border-radius: 10px;
  padding: .85rem 1.5rem; font-size: 1rem; font-weight: 700;
  color: #fff; cursor: pointer; transition: all .2s;
  width: 100%; margin-top: .25rem;
}
.rl-form .btn-primary:hover { background: #1e8b4d; transform: translateY(-2px); }
.rl-form-switch { margin-top: 1rem; text-align: center; font-size: .85rem; color: #5b7a80; }
.rl-switch-link {
  background: none; border: none; cursor: pointer;
  color: #27ae60; font-weight: 700; font-size: inherit;
  font-family: inherit; text-decoration: underline;
  text-underline-offset: 2px;
}
.rl-switch-link:hover { color: #1e8b4d; }

/* Footer */
.rl-footer {
  background: #0f2541; color: rgba(255,255,255,.65);
  text-align: center; font-size: .82rem;
  padding: 1rem 1.5rem;
}
.rl-footer a { color: rgba(255,255,255,.8); }
.rl-footer a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .rl-main { grid-template-columns: 1fr; gap: 2rem; padding: 1.5rem 1rem 2rem; }
  .rl-form-col { position: static; order: -1; }
  .rl-steps-grid { grid-template-columns: 1fr 1fr; }
  .rl-step-arrow { display: none; }
}
@media (max-width: 520px) {
  .rl-steps-grid { grid-template-columns: 1fr 1fr; gap: .6rem; padding: 1rem; }
  .rl-panel { padding: 1.25rem 1rem 1.5rem; }
  .rl-header-tagline { display: none; }
  .rl-hero-h1 { font-size: 1.7rem; }
}
@media (max-width: 360px) {
  .rl-steps-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   v7.19 — Voucher card, Shop, Browse, Banking
   ============================================================ */

/* ── Voucher card (shared: user + retailer + order) ─────── */
@keyframes vou-shimmer {
  0%   { transform: translateX(-100%) skewX(-12deg); opacity: .5; }
  60%  { transform: translateX(120%) skewX(-12deg); opacity: .3; }
  100% { transform: translateX(120%) skewX(-12deg); opacity: 0; }
}
@keyframes vou-card-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vou-card-wrap {
  perspective: 1200px;
}
.vou-card {
  position: relative;
  border-radius: var(--r-3);
  overflow: hidden;
  box-shadow: var(--shadow-3);
  animation: vou-card-in .5s cubic-bezier(.22,.68,0,1.2) both;
  color: #fff;
}
.vou-card-user, .vou-card-order {
  background: linear-gradient(135deg, #0f5f2b 0%, #16a34a 50%, #22c55e 100%);
}
.vou-card-retailer {
  background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 55%, #3b82f6 100%);
}
.vou-card-shimmer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%);
  animation: vou-shimmer 3.2s ease-in-out 0.6s infinite;
}
.vou-card-header {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.1rem .75rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.vou-card-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.3);
}
.vou-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vou-card-initials {
  font-size: .85rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
}
.vou-card-brand { flex: 1; min-width: 0; }
.vou-card-brand-name {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  opacity: .75;
}
.vou-card-retailer-tag {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vou-card-status-badge {
  flex-shrink: 0;
  padding: .18rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255,255,255,.2);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* QR + detail split */
.vou-card-qr-section {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.1rem;
}
.vou-card-qr-wrap {
  background: rgba(255,255,255,.95);
  border-radius: var(--r-2);
  padding: .45rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vou-card-qr-wrap canvas { display: block; border-radius: var(--r-1); }
.vou-card-details { flex: 1; min-width: 0; }
.vou-card-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .1rem;
}
.vou-card-spend-note {
  font-size: .8rem;
  font-weight: 500;
  opacity: .7;
  margin-left: .35rem;
}
.vou-card-label {
  font-size: .67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .65;
}
.vou-card-code  { font-size: 1.05rem; font-weight: 800; letter-spacing: .14em; font-family: monospace; }
.vou-card-pin   { font-size: 1.3rem; font-weight: 800; letter-spacing: .2em; font-family: monospace; }
.vou-card-expiry, .vou-card-holder { font-size: .85rem; font-weight: 600; }

/* card body (retailer / order — no QR) */
.vou-card-body {
  padding: 1rem 1.1rem;
}
.vou-card-meta-row {
  display: flex;
  gap: 1.25rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

/* footer strip */
.vou-card-footer {
  padding: .65rem 1.1rem;
  font-size: .78rem;
  opacity: .8;
  border-top: 1px solid rgba(255,255,255,.15);
  text-align: center;
}
.vou-card-footer-used { opacity: .6; }

/* redeem lookup */
.vou-redeem-lookup { max-width: 480px; margin: 0 auto; }
.vou-code-input {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-family: monospace;
  font-size: 1.2rem;
}
.btn-full { width: 100%; }

/* ── Browse jobs ────────────────────────────────────────── */
.browse-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.browse-upsell-row {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.browse-upsell-card {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: .75rem 1rem;
}
.browse-upsell-card.browse-upsell-pro {
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}
.browse-upsell-icon { font-size: 1.4rem; flex-shrink: 0; }
.browse-upsell-body { flex: 1; min-width: 0; }
.browse-upsell-body strong { display: block; font-size: .92rem; }
.browse-upsell-body p { font-size: .8rem; color: var(--c-muted); margin: .1rem 0 0; }
.browse-reach-badge {
  font-size: .8rem;
  color: var(--c-muted);
  padding: .4rem .75rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  text-align: center;
}
.browse-job-grid { margin-top: 1rem; }
.browse-empty { text-align: center; }

/* ── Shop product grid (user-facing) ─────────────────────── */
.shop-retailer-head {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.shop-retailer-logo {
  width: 52px;
  height: 52px;
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--c-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--c-line);
}
.shop-retailer-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-logo-initials { font-size: .9rem; font-weight: 800; color: var(--c-primary); }
.shop-wallet-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--c-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: .55rem .9rem;
  margin-bottom: 1.25rem;
}
.shop-wallet-bar strong { color: var(--c-ink); }

/* verified / unverified shop badge (v7.35) */
.shop-verify-badge {
  display: inline-flex; align-items: center; gap: .2rem; vertical-align: middle;
  font-size: .62em; font-weight: 700; padding: .2em .55em; border-radius: 999px;
  letter-spacing: .01em; white-space: nowrap;
}
.shop-verify-badge.is-verified { background: var(--c-success-soft); color: var(--c-success); }
.shop-verify-badge.is-unverified { background: var(--c-surface-2); color: var(--c-muted); }
.store-card-badge { font-size: .68rem; font-weight: 700; padding: .12rem .45rem; border-radius: 999px; }
.store-card-badge.is-verified { background: var(--c-success-soft); color: var(--c-success); }
.store-card-badge.is-unverified { background: var(--c-surface-2); color: var(--c-muted); }

/* stores directory (v7.36) — fluid responsive */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(150px, 30vw, 220px), 1fr));
  gap: clamp(.6rem, 2vw, 1.1rem);
}
.store-card {
  display: flex; flex-direction: column; gap: .65rem;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-3);
  padding: clamp(.7rem, 2.5vw, 1rem); text-decoration: none; color: var(--c-ink);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.store-card:hover { box-shadow: var(--shadow-2); transform: translateY(-3px); border-color: var(--c-primary-soft); }
.store-card-logo {
  width: clamp(48px, 14vw, 64px); height: clamp(48px, 14vw, 64px); border-radius: var(--r-2);
  overflow: hidden; background: var(--c-primary-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.store-card-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-card-initials { font-size: 1.1rem; font-weight: 800; color: var(--c-primary); }
.store-card-body { flex: 1; min-width: 0; }
.store-card-name { font-size: clamp(.92rem, 2.6vw, 1.02rem); font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.store-card-cat { margin-top: .15rem; font-size: .8rem; color: var(--c-muted); }
.store-card-addr { margin-top: .25rem; font-size: .76rem; color: var(--c-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .4rem; flex-wrap: wrap; }
.store-card-count { font-size: .74rem; color: var(--c-muted); font-weight: 600; }
@media (max-width: 380px) { .store-grid { grid-template-columns: repeat(2, 1fr); } }

/* landing products carousel (v7.36) */
.lp-products-section { padding: 1rem 0 2rem; }
.lp-products-scroll {
  display: flex; gap: clamp(.7rem, 2vw, 1.1rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem clamp(1rem, 5vw, 2rem) 1rem; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.lp-products-scroll::-webkit-scrollbar { display: none; }
.lp-product-card {
  scroll-snap-align: start; flex: 0 0 auto; width: clamp(150px, 42vw, 200px);
  background: #fff; border: 1px solid rgba(13,26,18,.08); border-radius: 16px; overflow: hidden;
  text-decoration: none; color: #131815; box-shadow: 0 1px 3px rgba(13,26,18,.06); transition: transform .2s, box-shadow .2s;
}
.lp-product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(13,26,18,.12); }
.lp-product-img {
  height: clamp(120px, 38vw, 160px); background-size: cover; background-position: center; background-color: #eef4ec;
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.lp-product-body { padding: .6rem .7rem .8rem; }
.lp-product-name { font-size: .88rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.lp-product-store { font-size: .74rem; color: #6b7a6f; margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-product-price { font-size: 1.02rem; font-weight: 800; color: #1e8b4d; margin-top: .35rem; }

/* delivery dispatch (v7.37) */
.deliv-list { display: flex; flex-direction: column; gap: .6rem; }
.deliv-card {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  border: 1px solid var(--c-line); border-radius: var(--r-2); padding: .75rem .85rem; background: var(--c-surface);
}
.deliv-card-main { flex: 1; min-width: 200px; }
.deliv-card-title { font-weight: 700; font-size: .95rem; margin-bottom: .25rem; }
.deliv-meta { font-size: .8rem; color: var(--c-muted); line-height: 1.5; }
.deliv-dir { font-size: .76rem; color: var(--c-primary); margin-left: .3rem; }
.deliv-fee { font-size: .85rem; margin-top: .3rem; }
.deliv-fee strong { color: var(--c-primary); }
.deliv-actions { flex-shrink: 0; }
/* cart delivery block */
.cart-deliver-block { border-top: 1px solid var(--c-line); padding-top: .65rem; margin-bottom: .35rem; }
.cart-deliver-toggle { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; cursor: pointer; }
.cart-deliver-toggle em { color: var(--c-primary); font-style: normal; font-weight: 700; }
#cart-deliver-fields { margin-top: .5rem; display: flex; flex-direction: column; gap: .4rem; }
#cart-deliver-addr { width: 100%; }
.cart-summary-row { display: flex; justify-content: space-between; align-items: center; font-size: .9rem; padding: .15rem 0; }
.cart-summary-row.is-total { font-size: 1.05rem; font-weight: 800; border-top: 1px solid var(--c-line); margin-top: .25rem; padding-top: .5rem; }

/* job posting wizard (v7.38) */
.wiz-resume { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; background: var(--c-accent-soft); border: 1px solid var(--c-accent); }
.wiz-step { display: none; }
.wiz-step.is-active { display: block; animation: wizFade .25s var(--easing, ease); }
@keyframes wizFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wiz-progress { display: flex; gap: .35rem; margin-bottom: 1.1rem; overflow-x: auto; scrollbar-width: none; }
.wiz-progress::-webkit-scrollbar { display: none; }
.wiz-dot { display: flex; align-items: center; gap: .35rem; flex: 0 0 auto; font-size: .72rem; color: var(--c-muted); opacity: .7; }
.wiz-dot span { display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--c-surface-2); color: var(--c-muted); font-weight: 700; }
.wiz-dot.is-active { opacity: 1; color: var(--c-ink); }
.wiz-dot.is-active span { background: var(--c-primary); color: #fff; }
.wiz-dot.is-done span { background: var(--c-success); color: #fff; }
.wiz-dot em { font-style: normal; }
@media (max-width: 560px) { .wiz-dot em { display: none; } }
.wiz-nav { display: flex; gap: .6rem; margin-top: 1.25rem; }
.wiz-nav .wiz-grow { flex: 1; }

/* chat shared location (v7.38) */
.msg-loc { margin: .4rem 0; }
.msg-loc-map { height: 140px; border-radius: var(--r-2); overflow: hidden; background: #e6f0e9; }
.msg-loc-link { display: inline-block; margin-top: .3rem; font-size: .8rem; font-weight: 600; color: var(--c-primary); }
.chat-loc-bar { display: flex; gap: .4rem; flex-wrap: wrap; margin: .4rem 0; }

.prod-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.prod-shop-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.prod-shop-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.prod-shop-oos { opacity: .65; }
.prod-shop-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-surface-2);
  position: relative;
}
.prod-shop-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-shop-img-empty svg { width: 40px; height: 40px; opacity: .25; }
.prod-oos-badge {
  position: absolute;
  bottom: .5rem;
  left: .5rem;
  background: rgba(0,0,0,.65);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 999px;
}
.prod-shop-body { flex: 1; padding: .75rem; }
.prod-shop-name { font-size: .95rem; font-weight: 700; display: flex; align-items: flex-start; justify-content: space-between; gap: .4rem; }
.prod-share-btn {
  flex-shrink: 0; background: none; border: none; cursor: pointer; color: var(--c-muted);
  padding: .15rem; border-radius: var(--r-1); line-height: 0; transition: color .15s, background .15s;
}
.prod-share-btn:hover { color: var(--c-primary); background: var(--c-primary-soft); }
.prod-share-btn.is-copied { color: var(--c-success); }
.prod-shop-desc { margin-top: .2rem; line-height: 1.4; }
.prod-shop-stock-warn { font-size: .75rem; color: var(--c-warn); font-weight: 600; margin-top: .3rem; }
.prod-fulfil { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.prod-fulfil-tag { font-size: .68rem; font-weight: 600; color: var(--c-muted); background: var(--c-surface-2); padding: .12rem .4rem; border-radius: 999px; white-space: nowrap; }
.prod-fulfil-tag.is-delivery { color: var(--c-primary); background: var(--c-primary-soft); }
.prod-shop-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .6rem .75rem;
  border-top: 1px solid var(--c-line);
}
.prod-shop-price { font-size: 1.05rem; font-weight: 800; color: var(--c-primary); white-space: nowrap; }
.prod-shop-actions { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.prod-shop-actions .cart-add-ctl { min-width: 130px; }
.prod-shop-name { overflow-wrap: anywhere; }

/* buy modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 900;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
.modal-overlay[hidden] { display: none; }
@media (min-width: 600px) { .modal-overlay { align-items: center; padding: 1rem; } }
.modal-box {
  background: var(--c-surface);
  border-radius: var(--r-3) var(--r-3) 0 0;
  width: 100%;
  max-width: 480px;
  padding: 1.25rem 1.25rem 2rem;
  box-shadow: var(--shadow-3);
}
@media (min-width: 600px) { .modal-box { border-radius: var(--r-3); padding: 1.5rem; } }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.modal-head h3 { margin: 0; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--c-muted);
  padding: .2rem .4rem;
  border-radius: var(--r-1);
}
.modal-close:hover { background: var(--c-surface-2); }
.shop-buy-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-primary);
  margin-bottom: 1rem;
}
.form-row-seg { display: flex; gap: .5rem; margin-bottom: 1rem; }
.seg-opt {
  flex: 1;
  display: flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: .55rem .75rem;
  cursor: pointer;
  font-size: .88rem;
  transition: border-color .15s, background .15s;
}
.seg-opt:has(input:checked) { border-color: var(--c-primary); background: var(--c-primary-soft); }

/* ── Retailer product admin grid ─────────────────────────── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.prod-admin-card {
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.prod-inactive { opacity: .6; }
.prod-admin-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  background-color: var(--c-surface-2);
}
.prod-admin-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-admin-img-placeholder svg { width: 36px; height: 36px; opacity: .2; }
.prod-admin-body { flex: 1; padding: .75rem; }
.prod-admin-name { font-size: .95rem; font-weight: 700; }
.prod-admin-desc { margin-top: .2rem; }
.prod-admin-meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .5rem; }
.prod-price { font-weight: 800; color: var(--c-primary); font-size: .95rem; }
.prod-stock { font-size: .75rem; color: var(--c-success); background: rgba(22,163,74,.1); padding: .1rem .4rem; border-radius: 999px; }
.prod-stock-out { font-size: .75rem; color: var(--c-warn); background: rgba(202,138,4,.1); padding: .1rem .4rem; border-radius: 999px; }
.badge-inactive { font-size: .7rem; color: var(--c-muted); background: var(--c-surface-2); padding: .1rem .4rem; border-radius: 999px; }
.prod-admin-actions {
  display: flex;
  gap: .4rem;
  padding: .6rem .75rem;
  border-top: 1px solid var(--c-line);
}
.btn-xs { padding: .2rem .6rem; font-size: .78rem; }
.btn-danger-ghost { background: none; border: 1px solid var(--c-warn); color: var(--c-warn); }
.btn-danger-ghost:hover { background: rgba(239,68,68,.08); }

.prod-img-current { margin-bottom: .75rem; }
.prod-img-current img { max-height: 120px; border-radius: var(--r-2); border: 1px solid var(--c-line); display: block; margin-bottom: .35rem; }

/* ── Order list (user) ───────────────────────────────────── */
.order-list { display: flex; flex-direction: column; gap: .5rem; }
.order-list-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: .75rem;
  text-decoration: none;
  color: var(--c-ink);
  transition: box-shadow .15s;
}
.order-list-item:hover { box-shadow: var(--shadow-1); }
.order-list-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--r-1);
  overflow: hidden;
  background: var(--c-primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.order-list-logo img { width: 100%; height: 100%; object-fit: cover; }
.order-list-initials { font-size: .8rem; font-weight: 800; color: var(--c-primary); }
.order-list-body { flex: 1; min-width: 0; }
.order-list-name { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-list-meta { margin-top: .1rem; }
.order-list-right { display: flex; flex-direction: column; align-items: flex-end; gap: .25rem; flex-shrink: 0; }

/* payment badges */
.badge-method-voucher { font-size: .72rem; font-weight: 700; background: rgba(37,99,235,.1); color: #1d4ed8; padding: .1rem .45rem; border-radius: 999px; }
.badge-method-wallet  { font-size: .72rem; font-weight: 700; background: rgba(22,163,74,.1); color: #15803d; padding: .1rem .45rem; border-radius: 999px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 640px) {
  .prod-shop-grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .prod-shop-img { height: 122px; }
  .prod-shop-body { padding: .6rem; }
  .prod-shop-desc { display: none; }
  .prod-shop-foot { flex-direction: column; align-items: stretch; gap: .5rem; padding: .55rem .6rem .65rem; }
  .prod-shop-actions { justify-content: stretch; }
  .prod-shop-actions .cart-add-ctl { min-width: 0; width: 100%; }
  .prod-shop-actions > .btn { flex: 1; }
  .prod-grid { grid-template-columns: 1fr; }
  .vou-card-qr-section { flex-direction: column; align-items: center; }
  .vou-card-qr-wrap canvas { width: 140px !important; height: 140px !important; }
  .vou-card-amount { font-size: 1.6rem; }
  .browse-page-head { flex-direction: column; }
}
@media (max-width: 400px) {
  .prod-shop-grid { gap: .5rem; }
  .prod-shop-img { height: 104px; }
}

/* ── QR Scanner (Retailer redeem) ───────────────────────────── */
.qr-scanner-box { position: relative; background: #000; border-radius: var(--r-2); overflow: hidden; max-width: 380px; margin: 0 auto; aspect-ratio: 1; }
.qr-scanner-aim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to right, #16a34a 3px, transparent 3px) 0 0 / 36px 36px no-repeat,
    linear-gradient(to bottom, #16a34a 3px, transparent 3px) 0 0 / 36px 36px no-repeat,
    linear-gradient(to left,  #16a34a 3px, transparent 3px) 100% 0 / 36px 36px no-repeat,
    linear-gradient(to bottom, #16a34a 3px, transparent 3px) 100% 0 / 36px 36px no-repeat,
    linear-gradient(to right, #16a34a 3px, transparent 3px) 0 100% / 36px 36px no-repeat,
    linear-gradient(to top,   #16a34a 3px, transparent 3px) 0 100% / 36px 36px no-repeat,
    linear-gradient(to left,  #16a34a 3px, transparent 3px) 100% 100% / 36px 36px no-repeat,
    linear-gradient(to top,   #16a34a 3px, transparent 3px) 100% 100% / 36px 36px no-repeat;
}

/* ── Voucher redemption ref ─────────────────────────────────── */
.vou-card-ref-label { font-size: .72rem; opacity: .75; font-family: monospace; letter-spacing: .04em; }

/* ── Retailer payout ────────────────────────────────────────── */
.payout-balance-row { display: flex; align-items: center; gap: 1.5rem; }
.payout-balance-label { font-size: .82rem; color: var(--c-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .2rem; }
.payout-balance-amount { font-size: 2rem; font-weight: 800; color: var(--c-ink); line-height: 1; margin-bottom: .25rem; }
.payout-fee-preview { background: var(--c-surface-2); border-radius: var(--r-2); padding: .65rem .9rem; font-size: .88rem; margin: .75rem 0 1rem; }
.text-success { color: var(--c-success); }

/* ── Admin status chips (additional) ───────────────────────── */
.adm-stat-info { background: rgba(37,99,235,.12); color: #1d4ed8; }

/* ── Global shop browse ─────────────────────────────────────── */
.shop-filter-bar { display:flex; gap:.5rem; overflow-x:auto; padding:.25rem 0 .75rem; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
.shop-filter-bar::-webkit-scrollbar { display:none; }
.shop-filter-pill { flex-shrink:0; padding:.35rem .9rem; border-radius:999px; border:1.5px solid var(--c-line); background:var(--c-surface); color:var(--c-ink); font-size:.83rem; font-weight:500; cursor:pointer; transition:background .15s,color .15s,border-color .15s; }
.shop-filter-pill.active { background:var(--c-primary); color:#fff; border-color:var(--c-primary); }
.shop-retailer-badge { display:flex; align-items:center; gap:.35rem; padding:.3rem .5rem .0rem; }
.shop-badge-logo { width:16px; height:16px; border-radius:50%; object-fit:cover; }
.shop-retailer-badge span { font-size:.72rem; color:var(--c-muted); font-weight:600; text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shop-sub-tag { display:inline-flex; align-items:center; gap:.3rem; font-size:.72rem; color:var(--c-primary); background:var(--c-primary-soft); border-radius:999px; padding:.15rem .55rem; margin-top:.35rem; font-weight:600; }
.shop-modal-retailer-name { margin-bottom:.25rem; }
.shop-buy-price { font-size:1.6rem; font-weight:800; color:var(--c-ink); margin:.25rem 0 .75rem; }
.btn-outline { background:transparent; border:1.5px solid var(--c-primary); color:var(--c-primary); font-weight:600; }
.btn-outline:hover { background:var(--c-primary-soft); }
.status-chip { display:inline-block; font-size:.72rem; font-weight:700; padding:.15rem .55rem; border-radius:999px; }
.status-chip-active { background:rgba(22,163,74,.12); color:#15803d; }
.status-chip-muted  { background:var(--c-surface-2); color:var(--c-muted); }

/* ── Responsive table (collapses to stacked cards on mobile) ─── */
.r-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.r-table thead th { text-align:left; padding:.65rem .85rem; font-size:.72rem; text-transform:uppercase; letter-spacing:.05em; color:var(--c-muted); font-weight:700; border-bottom:1px solid var(--c-line); white-space:nowrap; }
.r-table tbody td { padding:.7rem .85rem; border-bottom:1px solid var(--c-line); vertical-align:middle; }
.r-table tbody tr:last-child td { border-bottom:none; }
.r-table tbody tr { cursor:pointer; transition:background .12s; }
.r-table tbody tr:hover { background:var(--c-surface-2); }
.r-table a { color:var(--c-primary); font-weight:600; }
.r-table .ta-right { text-align:right; }
.r-table th.ta-right { text-align:right; }

@media (max-width:640px) {
  .r-table thead { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
  .r-table, .r-table tbody, .r-table tr, .r-table td { display:block; width:100%; }
  .r-table tbody tr { border:1px solid var(--c-line); border-radius:var(--r-2); margin:0 .6rem .6rem; padding:.35rem 0; }
  .card.p-0 .r-table tbody tr:first-child { margin-top:.6rem; }
  .r-table tbody td { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:.4rem .9rem; border-bottom:none; text-align:right; }
  .r-table tbody td.ta-right { text-align:right; }
  .r-table tbody td::before { content:attr(data-label); font-size:.72rem; text-transform:uppercase; letter-spacing:.04em; color:var(--c-muted); font-weight:700; text-align:left; flex-shrink:0; }
  .r-table tbody td.r-td-primary { border-bottom:1px solid var(--c-line); padding-bottom:.6rem; margin-bottom:.2rem; }
  .r-table tbody td.r-td-primary::before { display:none; }
  .r-table tbody td.r-td-primary a { font-size:1rem; }
}

/* ── Voucher list section headers ─────────────────────────────── */
.vou-section-label { display:flex; align-items:center; gap:.5rem; margin:0 0 .6rem; font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em; color:var(--c-muted); }
.vou-section-count { display:inline-flex; align-items:center; justify-content:center; min-width:1.4rem; height:1.4rem; padding:0 .4rem; background:var(--c-surface-2); border-radius:999px; font-size:.75rem; font-weight:700; color:var(--c-ink); }

/* ── Voucher redemption summary card ──────────────────────────── */
.vou-redeem-card { border-left:3px solid var(--c-success); }
.vou-redeem-head { display:flex; align-items:center; gap:.5rem; margin-bottom:.5rem; color:var(--c-success); }
.vou-redeem-head h3 { margin:0; font-size:1rem; color:var(--c-ink); }
.vou-redeem-table tbody td { padding:.6rem .25rem; }
.vou-redeem-table .vou-rk { color:var(--c-muted); }
@media (max-width:640px) {
  .vou-redeem-table tbody tr { border:none; margin:0; padding:0; }
  .vou-redeem-table tbody td { display:flex; justify-content:space-between; padding:.55rem .25rem; border-bottom:1px solid var(--c-line); text-align:right; }
  .vou-redeem-table tbody td::before { display:none; }
  .vou-redeem-table tbody tr:last-child td { border-bottom:none; }
}

/* ═══ Shop storefront (v7.21 polish) ═══════════════════════════ */
.shop-hero {
  display:flex; justify-content:space-between; align-items:flex-end; gap:1.5rem; flex-wrap:wrap;
  background:linear-gradient(135deg, var(--c-primary) 0%, #0a5c4a 100%);
  color:#fff; border-radius:var(--r-3); padding:1.5rem 1.6rem; margin-bottom:1.25rem;
  position:relative; overflow:hidden;
}
.shop-hero::after {
  content:''; position:absolute; right:-40px; top:-40px; width:180px; height:180px;
  background:radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%); pointer-events:none;
}
.shop-hero-text h1 { margin:0; font-size:1.7rem; color:#fff; }
.shop-hero-text p { margin:.35rem 0 0; font-size:.9rem; color:rgba(255,255,255,.82); max-width:38ch; line-height:1.45; }
.shop-hero-meta { display:flex; flex-direction:column; align-items:flex-end; gap:.6rem; position:relative; z-index:1; }
.shop-hero-wallet { text-align:right; }
.shop-hero-wallet-label { display:block; font-size:.7rem; text-transform:uppercase; letter-spacing:.06em; color:rgba(255,255,255,.7); }
.shop-hero-wallet-amount { font-size:1.5rem; font-weight:800; color:#fff; line-height:1.1; }
.shop-hero-links { display:flex; gap:.5rem; }
.shop-hero-link { font-size:.8rem; font-weight:600; color:#fff; background:rgba(255,255,255,.16); padding:.35rem .7rem; border-radius:999px; transition:background .15s; }
.shop-hero-link:hover { background:rgba(255,255,255,.28); }

/* filter pills with logos */
.shop-filter-bar { display:flex; gap:.5rem; overflow-x:auto; padding:.15rem 0 .9rem; scrollbar-width:none; }
.shop-filter-bar::-webkit-scrollbar { display:none; }
.shop-filter-pill {
  display:inline-flex; align-items:center; gap:.4rem; flex-shrink:0;
  padding:.4rem .85rem; border-radius:999px; border:1.5px solid var(--c-line);
  background:var(--c-surface); color:var(--c-ink); font-size:.83rem; font-weight:600;
  cursor:pointer; transition:all .15s; white-space:nowrap;
}
.shop-filter-pill:hover { border-color:var(--c-primary); }
.shop-filter-pill.active { background:var(--c-primary); color:#fff; border-color:var(--c-primary); }
.shop-filter-logo { width:18px; height:18px; border-radius:50%; object-fit:cover; }
.shop-filter-all { font-weight:800; }

/* product grid + cards */
.shop-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:1.1rem; }
.shop-card {
  background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--r-3);
  overflow:hidden; display:flex; flex-direction:column;
  transition:box-shadow .2s, transform .2s, border-color .2s;
}
.shop-card:hover { box-shadow:var(--shadow-2); transform:translateY(-3px); border-color:var(--c-primary-soft); }
.shop-card.is-oos { opacity:.7; }
.shop-card-media {
  height:165px; background-size:cover; background-position:center; background-color:var(--c-surface-2);
  position:relative; display:block;
}
.shop-card-media.is-empty { display:flex; align-items:center; justify-content:center; }
.shop-card-media.is-empty svg { width:42px; height:42px; opacity:.22; }
.shop-card-store {
  position:absolute; left:.55rem; bottom:.55rem; display:inline-flex; align-items:center; gap:.35rem;
  max-width:calc(100% - 1.1rem); background:rgba(255,255,255,.94); color:#0d2a20;
  padding:.22rem .55rem .22rem .3rem; border-radius:999px; font-size:.72rem; font-weight:700;
  box-shadow:0 2px 8px rgba(0,0,0,.18); backdrop-filter:blur(4px);
}
.shop-card-store img { width:18px; height:18px; border-radius:50%; object-fit:cover; flex-shrink:0; }
.shop-card-store span { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.shop-card-ribbon {
  position:absolute; top:.55rem; right:.55rem; background:var(--c-primary); color:#fff;
  font-size:.66rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em;
  padding:.22rem .5rem; border-radius:999px; box-shadow:0 2px 8px rgba(0,0,0,.2);
}
.shop-card-oos {
  position:absolute; top:.55rem; left:.55rem; background:rgba(0,0,0,.7); color:#fff;
  font-size:.68rem; font-weight:700; padding:.18rem .5rem; border-radius:999px;
}
.shop-card-body { flex:1; padding:.8rem .85rem .5rem; }
.shop-card-name { font-size:.97rem; font-weight:700; line-height:1.3; }
.shop-card-desc { margin-top:.25rem; font-size:.82rem; color:var(--c-muted); line-height:1.4; }
.shop-card-stock { margin-top:.4rem; font-size:.76rem; font-weight:700; color:var(--c-warn); }
.shop-card-foot { padding:.6rem .85rem .85rem; border-top:1px solid var(--c-line); margin-top:.3rem; }
.shop-card-pricing { display:flex; align-items:baseline; gap:.45rem; flex-wrap:wrap; margin-bottom:.6rem; }
.shop-card-price { font-size:1.25rem; font-weight:800; color:var(--c-ink); line-height:1; }
.shop-card-subprice { font-size:.76rem; color:var(--c-primary); font-weight:600; }
.shop-card-actions { display:flex; flex-direction:column; gap:.45rem; }
.shop-buy-btn { width:100%; }
.shop-sub-link {
  background:none; border:none; color:var(--c-primary); font-size:.8rem; font-weight:700;
  cursor:pointer; padding:.2rem; text-align:center; border-radius:var(--r-1); transition:background .12s;
}
.shop-sub-link:hover { background:var(--c-primary-soft); }
.shop-sub-active { font-size:.8rem; font-weight:700; color:var(--c-success); text-align:center; }

@media (max-width:640px) {
  .shop-grid { grid-template-columns:repeat(2, 1fr); gap:.7rem; }
  .shop-card-media { height:122px; }
  .shop-card-name { font-size:.86rem; }
  .shop-card-desc { display:none; }
  .shop-card-price { font-size:1.05rem; }
  .shop-card-body { padding:.6rem .65rem .35rem; }
  .shop-card-foot { padding:.5rem .65rem .65rem; }
  .shop-card-store span { max-width:88px; }
  .shop-hero { padding:1.2rem 1.1rem; }
  .shop-hero-text h1 { font-size:1.4rem; }
  .shop-hero-meta { width:100%; flex-direction:row; justify-content:space-between; align-items:center; }
}
@media (max-width:380px) {
  .shop-grid { gap:.5rem; }
  .shop-card-media { height:104px; }
  .shop-card-name { font-size:.8rem; }
  .shop-card-price { font-size:.98rem; }
  .shop-buy-btn, .shop-add-btn { font-size:.78rem; padding:.4rem .5rem; }
}

/* ==========================================================================
   SHOP CART / BASKET
   ========================================================================== */
.cart-add-ctl { width: 100%; }
.shop-add-btn { width: 100%; }

/* card inline quantity stepper (when item already in cart) */
.cart-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  border: 1.5px solid var(--c-primary);
  border-radius: var(--r-2);
  padding: 2px;
  background: var(--c-primary-soft);
}
.cart-step {
  width: 30px; height: 30px;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: none;
  background: var(--c-surface);
  color: var(--c-primary);
  border-radius: var(--r-1);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.cart-step:hover { background: var(--c-primary); color: #fff; }
.cart-step:disabled { opacity: .4; cursor: not-allowed; }
.cart-step-qty {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 800;
  font-size: .95rem;
  color: var(--c-ink);
}

/* floating cart button */
.cart-fab {
  position: fixed;
  right: 1rem;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  display: none;
  align-items: center;
  gap: .55rem;
  padding: .7rem 1.1rem .7rem .9rem;
  border: none;
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: var(--shadow-3);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.cart-fab:hover { transform: translateY(-2px); }
.cart-fab.is-visible { display: inline-flex; }
.cart-fab svg { width: 22px; height: 22px; }
.cart-fab-count {
  background: #fff;
  color: var(--c-primary);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .78rem;
  font-weight: 800;
}
.cart-fab-total { font-variant-numeric: tabular-nums; }

@media (min-width: 600px) {
  .cart-fab { right: 1.5rem; bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* cart drawer (reuses .modal-overlay positioning) */
.cart-drawer-box {
  background: var(--c-surface);
  border-radius: var(--r-3) var(--r-3) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-3);
}
@media (min-width: 600px) { .cart-drawer-box { border-radius: var(--r-3); max-height: 85vh; } }
.cart-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--c-line);
  flex: 0 0 auto;
}
.cart-drawer-head h3 { margin: 0; font-size: 1.1rem; }
.cart-drawer-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: .5rem 1.25rem;
}
.cart-drawer-foot {
  flex: 0 0 auto;
  padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--c-line);
  background: var(--c-surface);
}

.cart-store-group { padding: .65rem 0; }
.cart-store-group + .cart-store-group { border-top: 1px dashed var(--c-line); }
.cart-store-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-muted);
  margin: .25rem 0 .5rem;
}
.cart-line {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem 0;
}
.cart-line + .cart-line { border-top: 1px solid var(--c-line); }
.cart-line-img {
  width: 48px; height: 48px;
  flex: 0 0 auto;
  border-radius: var(--r-2);
  background: var(--c-surface-2) center/cover no-repeat;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-muted);
}
.cart-line-img svg { width: 22px; height: 22px; }
.cart-line-main { flex: 1 1 auto; min-width: 0; }
.cart-line-name {
  font-weight: 700;
  font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-line-unit { font-size: .78rem; color: var(--c-muted); }
.cart-line-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .35rem;
}
.cart-line-total { font-weight: 800; font-size: .9rem; }
.cart-line .cart-stepper { padding: 1px; }
.cart-line .cart-step { width: 26px; height: 26px; font-size: 1rem; }
.cart-line .cart-step-qty { min-width: 22px; font-size: .85rem; }

.cart-empty {
  text-align: center;
  color: var(--c-muted);
  padding: 2.5rem 1rem;
}
.cart-summary-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: .5rem;
}
.cart-summary-row.is-total { font-size: 1.15rem; font-weight: 800; }
.cart-summary-row.is-total .cart-grand { color: var(--c-primary); }
.cart-wallet-note { font-size: .8rem; color: var(--c-muted); margin: 0 0 .75rem; }
.cart-wallet-warn {
  display: none;
  font-size: .82rem;
  font-weight: 700;
  color: var(--c-warn);
  margin: 0 0 .75rem;
}
.cart-wallet-warn.is-on { display: block; }

/* ==========================================================================
   ORDER CHAT + NOTIFICATIONS (retailer portal + buyer order page)
   ========================================================================== */

/* retailer header bell */
.ret-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink, #1f2937);
  padding: .35rem;
  border-radius: var(--r-1);
}
.ret-bell:hover { background: var(--c-surface-2); }
.ret-bell-badge {
  position: absolute;
  top: -2px; right: -2px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* nav + table count badges */
.ret-nav-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  margin-left: .35rem;
  border-radius: 999px;
  background: var(--c-primary);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  vertical-align: middle;
}

/* order detail two-column layout */
.ret-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 820px) { .ret-order-grid { grid-template-columns: 1fr; } }

/* chat */
.chat-card { display: flex; flex-direction: column; }
.chat-thread {
  margin: .75rem 0;
  padding: .75rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-surface-2);
  max-height: 360px;
  min-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.chat-empty { text-align: center; margin: auto; }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg-in  { align-self: flex-start; align-items: flex-start; }
.chat-msg-out { align-self: flex-end; align-items: flex-end; }
.chat-bubble {
  padding: .5rem .7rem;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.35;
  word-break: break-word;
  box-shadow: var(--shadow-1);
}
.chat-msg-in  .chat-bubble { background: var(--c-surface); border: 1px solid var(--c-line); border-bottom-left-radius: 4px; }
.chat-msg-out .chat-bubble { background: var(--c-primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-meta { font-size: .68rem; color: var(--c-muted); margin-top: 2px; }
.chat-templates { display: flex; flex-direction: column; gap: .25rem; margin-bottom: .5rem; }
.chat-tpl-select {
  width: 100%;
  padding: .5rem .6rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-surface);
  color: var(--c-ink);
  font-size: .88rem;
}
.chat-form { display: flex; gap: .5rem; align-items: flex-end; }
.chat-form textarea {
  flex: 1 1 auto;
  resize: vertical;
  min-height: 44px;
  padding: .55rem .7rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-surface);
  color: var(--c-ink);
  font: inherit;
}
.chat-closed-note {
  text-align: center;
  padding: .7rem;
  border: 1px dashed var(--c-line);
  border-radius: var(--r-2);
  color: var(--c-muted);
  font-size: .85rem;
}

/* retailer notification list */
.ret-notif-list { display: flex; flex-direction: column; gap: .5rem; }
.ret-notif-form { margin: 0; }
.ret-notif-item {
  width: 100%;
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  text-align: left;
  padding: .8rem .9rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  background: var(--c-surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ret-notif-item:hover { border-color: var(--c-primary); }
.ret-notif-item.is-unread { background: var(--c-primary-soft); border-color: var(--c-primary); }
.ret-notif-icon { font-size: 1.2rem; line-height: 1.4; flex: 0 0 auto; }
.ret-notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ret-notif-title { font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: .4rem; }
.ret-notif-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--c-primary); display: inline-block; }
.ret-notif-text { font-size: .85rem; color: var(--c-muted); }
.ret-notif-time { font-size: .72rem; color: var(--c-muted); }

/* ==========================================================================
   STOREFRONT POSTERS (carousel) + LOCATION MAP + profile poster manager
   ========================================================================== */

/* buyer-facing poster carousel */
.shop-poster-carousel {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 0 .6rem;
}
.shop-poster-carousel::-webkit-scrollbar { display: none; }
.shop-poster {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  aspect-ratio: 5 / 2;
  max-height: 300px;
  border-radius: var(--r-3);
  overflow: hidden;
  background: var(--c-surface-2);
  box-shadow: var(--shadow-1);
}
.shop-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-poster-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem .9rem .7rem;
  color: #fff; font-weight: 700; font-size: .95rem;
  background: linear-gradient(to top, rgba(0,0,0,.72), transparent);
}
.shop-poster-dots { display: flex; justify-content: center; gap: .4rem; margin: 0 0 1.1rem; }
.shop-poster-dot {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0;
  background: var(--c-line); cursor: pointer;
  transition: background .15s, width .15s;
}
.shop-poster-dot.is-active { background: var(--c-primary); width: 22px; }

/* storefront location map card */
.shop-map-card { overflow: hidden; margin-bottom: 1.25rem; }
.shop-map-card .map-static { height: 220px; border-radius: 0; }
.shop-map-addr {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .6rem .85rem; font-size: .85rem; color: var(--c-muted);
}
.shop-map-addr > span { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; }
.shop-map-addr > span svg { flex: 0 0 auto; color: var(--c-primary); }
.shop-map-addr .btn { flex: 0 0 auto; }

/* merchant profile poster manager */
.ret-poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .75rem;
  margin: 1rem 0;
}
.ret-poster-item {
  position: relative;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  overflow: hidden;
  background: var(--c-surface-2);
}
.ret-poster-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.ret-poster-caption { padding: .4rem .55rem; font-size: .78rem; color: var(--c-muted); }
.ret-poster-del { position: absolute; top: 6px; right: 6px; margin: 0; }
.ret-poster-del .btn {
  background: rgba(0,0,0,.55); color: #fff; border: 0;
  padding: 2px 9px; line-height: 1.5; border-radius: var(--r-1);
}
.ret-poster-del .btn:hover { background: #ef4444; }
.ret-poster-upload { margin-top: 1rem; }

/* ==========================================================================
   ADMIN POLISH + MOBILE RESPONSIVE (profiles, avatars, wallet, lists)
   ========================================================================== */

/* user list: avatar cell */
.admin-user-cell { display: inline-flex; align-items: center; gap: .55rem; }
.admin-user-cell-text { display: inline-flex; flex-direction: column; line-height: 1.25; }
.admin-avatar-sm {
  width: 34px; height: 34px;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--c-surface-2);
}
.admin-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft);
  color: var(--c-primary-strong, var(--c-primary));
  font-weight: 800;
  font-size: .9rem;
  text-transform: uppercase;
}

/* profile header */
.adm-profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.adm-profile-id { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.adm-avatar {
  width: 64px; height: 64px;
  flex: 0 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: var(--c-surface-2);
  box-shadow: var(--shadow-1);
}
.adm-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adm-avatar-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-primary-soft);
  color: var(--c-primary-strong, var(--c-primary));
  font-weight: 800;
  font-size: 1.6rem;
  text-transform: uppercase;
}
.adm-profile-meta { min-width: 0; }
.adm-profile-meta h1 { margin: 0 0 .35rem; font-size: 1.4rem; word-break: break-word; }
.adm-chip-row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.adm-verified { color: var(--c-success); font-weight: 700; }

/* profile two-column grid (stacks on mobile) */
.adm-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}

/* wallet stat tiles */
.adm-wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
}
.adm-wallet-stat {
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: .6rem .7rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.adm-wallet-primary { border-color: var(--c-primary); background: var(--c-primary-soft); }
.adm-wallet-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--c-muted); }
.adm-wallet-value { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-wallet-primary .adm-wallet-value { color: var(--c-primary); }

/* admin action groups (forms wrap nicely) */
.adm-action-grid { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-start; }
.adm-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin: 0;
}
.adm-inline-form select,
.adm-inline-form input { min-width: 0; }
.adm-ban-form { flex: 1 1 260px; }
.adm-ban-form input[type="number"] { flex: 0 1 90px; }
.adm-ban-form input[type="text"]   { flex: 1 1 140px; }

@media (max-width: 720px) {
  .adm-profile-grid,
  .adm-wallet-grid { grid-template-columns: 1fr; }
  .adm-wallet-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .adm-profile-meta h1 { font-size: 1.2rem; }
  .adm-wallet-grid { grid-template-columns: 1fr; }
  .adm-inline-form { width: 100%; }
  .adm-inline-form select,
  .adm-inline-form .btn { flex: 1 1 auto; }
  /* label/value rows stack on small screens */
  .card-row { flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ==========================================================================
   ADMIN — address-change queue + announcement channels
   ========================================================================== */
.adm-addr-actions { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; }
.adm-addr-reject { display: flex; gap: .3rem; align-items: center; }
.adm-addr-reject input[type="text"] {
  width: 150px; max-width: 40vw;
  padding: .35rem .5rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-1);
  font-size: .82rem;
}
.ann-channels {
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: .6rem .85rem;
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
}
.ann-channels legend { font-size: .8rem; font-weight: 700; color: var(--c-muted); padding: 0 .35rem; }
.ann-channels .check-item { margin: 0; }

/* ==========================================================================
   CTA button (attention red) + Refer & earn page
   ========================================================================== */
.btn-cta {
  background: #ef4444;
  color: #fff;
  border: none;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(239,68,68,.38);
  animation: cta-pulse 2.2s ease-in-out infinite;
}
.btn-cta:hover { background: #dc2626; color: #fff; transform: translateY(-1px); }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(239,68,68,.38); }
  50%      { box-shadow: 0 6px 26px rgba(239,68,68,.66); }
}
@media (prefers-reduced-motion: reduce) { .btn-cta { animation: none; } }

.refer-hero { display: flex; flex-direction: column; gap: .8rem; }
.refer-stats { display: flex; gap: .8rem; flex-wrap: wrap; }
.refer-stat {
  flex: 1 1 140px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  padding: .8rem 1rem;
  display: flex; flex-direction: column; gap: 2px;
}
.refer-stat-value { font-size: 1.4rem; font-weight: 800; color: var(--c-primary); }
.refer-stat-label { font-size: .78rem; color: var(--c-muted); text-transform: uppercase; letter-spacing: .03em; }
.refer-link-label { font-size: .8rem; font-weight: 700; color: var(--c-muted); }
.refer-link-row { display: flex; gap: .5rem; }
.refer-link-row input {
  flex: 1 1 auto; min-width: 0;
  padding: .6rem .8rem;
  border: 1px solid var(--c-line);
  border-radius: var(--r-2);
  font-family: var(--font-mono, monospace);
  font-size: .9rem;
  background: var(--c-surface);
}
.refer-share-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.refer-terms { margin: 0; }

/* ==========================================================================
   LANDING NAV (login/register/about) + product deep-link highlight
   ========================================================================== */
.lp-nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem 1rem;
  background: rgba(255,255,255,.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,37,65,.08);
}
.lp-nav-brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 800; color: #0f2541; font-size: 1.05rem; }
.lp-nav-brand img { height: 30px; width: auto; }
.lp-nav-links { display: flex; align-items: center; gap: .35rem; }
.lp-nav-links a { text-decoration: none; font-weight: 700; font-size: .9rem; padding: .5rem .85rem; border-radius: 999px; color: #0f2541; }
.lp-nav-ghost:hover { background: rgba(15,37,65,.06); }
.lp-nav-cta { color: #fff; }
@media (max-width: 560px) {
  .lp-nav-brand span { display: none; }
  .lp-nav-links a { padding: .45rem .7rem; font-size: .82rem; }
}

.prod-highlight {
  outline: 3px solid #ef4444;
  outline-offset: 2px;
  animation: prod-flash 1.2s ease-in-out 2;
}
@keyframes prod-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
  50%      { box-shadow: 0 0 0 6px rgba(239,68,68,.25); }
}
