/* ============================================================
   Workflow step styles
   ============================================================ */

.fake-cursor {
  position: absolute; top: 0; left: 0;
  width: 22px; height: 22px; z-index: 40;
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'%3E%3Cpath d='M5 2l14 7-6 2.5L9.5 18z' fill='%23F8F8F6' stroke='%230a2e1a' stroke-width='1.2'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
}

/* ---------- STEP 1 - Request form ---------- */
.form-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.form-wrap .browser { transition: opacity 0.3s ease; }

.rb-form { padding: 26px 30px 30px; }
.rb-crumb { font-size: 10.5px; color: var(--ink-3); letter-spacing: 0.02em; margin-bottom: 16px; }
.rb-h { font-family: var(--display); font-weight: 600; font-size: 25px; color: var(--paper); line-height: 1.1; }
.rb-sub { font-size: 12.5px; color: var(--ink-3); margin: 5px 0 20px; }

.rb-block-lab { font-size: 10px; letter-spacing: 0.04em; color: var(--ink-3); margin-bottom: 8px; }
.rb-types { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 18px; }
.rb-type {
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
  background: rgba(255,255,255,0.02); transition: all 0.4s var(--ease);
}
.rb-type b { display: block; font-size: 12.5px; color: var(--ink-2); font-weight: 600; font-family: var(--sans); margin-bottom: 3px; }
.rb-type span { display: block; font-size: 10px; color: var(--ink-3); line-height: 1.4; }
.rb-type.sel { background: var(--gold-glass); border-color: rgba(201,168,76,0.5); box-shadow: 0 0 0 1px rgba(201,168,76,0.2), 0 8px 24px -12px rgba(201,168,76,0.5); }
.rb-type.sel b { color: var(--gold-bri); }

.rb-row { display: flex; gap: 12px; }
.rb-cell { min-width: 0; }
.rb-field {
  background: rgba(255,255,255,0.035);
  border: 0.5px solid var(--line);
  border-radius: 9px; padding: 9px 13px; margin-bottom: 11px;
}
.rb-lab { font-size: 9.5px; letter-spacing: 0.03em; color: var(--ink-3); margin-bottom: 5px; }
.rb-val { font-size: 13px; color: var(--paper); min-height: 17px; font-family: var(--sans); }
.rb-val.sel { color: var(--teal-bri); }
.rb-val.pin { color: var(--paper); }
.rb-val.pin::before { content: '⚲'; color: var(--teal-bri); margin-right: 6px; font-size: 12px; }
.rb-val.typing::after {
  content: ''; display: inline-block; width: 2px; height: 1em;
  background: var(--teal-bri); margin-left: 1px; vertical-align: -2px;
  animation: blink 0.9s steps(1) infinite;
}

.rb-epr {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--teal-glass); border: 0.5px solid rgba(34,197,179,0.25);
  border-radius: 10px; padding: 12px 15px; margin: 6px 0 18px;
}
.rb-epr-t { font-size: 12.5px; color: var(--paper); font-weight: 500; }
.rb-epr-s { font-size: 9.5px; color: var(--ink-3); margin-top: 3px; }
.rb-toggle {
  width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,0.1);
  border: 0.5px solid var(--line); position: relative; flex-shrink: 0; transition: all 0.35s var(--ease);
}
.rb-toggle span {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink-3); transition: all 0.35s var(--ease);
}
.rb-toggle.on { background: var(--teal); border-color: var(--teal); }
.rb-toggle.on span { left: 20px; background: #fff; }

.rb-submit {
  width: 100%; padding: 13px; border: none; border-radius: 9px;
  background: var(--teal); color: #062018; font-size: 14px; font-weight: 700;
  font-family: var(--sans); cursor: default; transition: all 0.3s var(--ease);
  letter-spacing: 0.01em;
}
.rb-submit.armed { background: var(--teal-bri); box-shadow: 0 0 0 4px rgba(34,197,179,0.18), 0 14px 30px -12px rgba(34,197,179,0.7); }
.rb-submit.clicked { transform: scale(0.97); filter: brightness(0.9); }

.form-success {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  opacity: 0; pointer-events: none;
}
.form-success .fs-ring {
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--teal-glass); border: 1px solid rgba(34,197,179,0.4);
  transform: scale(0.6); transition: transform 0.6s var(--ease);
  box-shadow: 0 0 50px -8px rgba(34,197,179,0.6);
}
.form-success .fs-ring svg { width: 38px; height: 38px; }
.form-success.show .fs-ring { transform: scale(1); }
.form-success .fs-t { font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--paper); }
.form-success .fs-id { font-size: 14px; color: var(--gold); margin-top: 10px; letter-spacing: 0.08em; }
.form-success .fs-s { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

/* ---------- STEP 2 - Admin match ---------- */
.ad-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.ad-body { position: relative; min-height: 470px; }
.ad-queue { padding: 26px 30px 30px; }
.ad-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.ad-title { font-family: var(--display); font-weight: 600; font-size: 23px; color: var(--paper); }
.ad-subtitle { font-size: 10.5px; color: var(--ink-3); margin-top: 3px; }
.ad-alert {
  display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #f3a0a0;
  background: rgba(224,75,75,0.09); border: 0.5px solid rgba(224,75,75,0.25);
  border-radius: 8px; padding: 7px 13px;
}
.ad-alert .dot, .ad-toast .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.ad-sec-lab { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 11px; }
.ad-qrow {
  display: flex; align-items: center; gap: 15px; padding: 13px 16px; margin-bottom: 7px;
  border-radius: 10px; background: rgba(255,255,255,0.02); border: 0.5px solid var(--line-2);
  transition: all 0.4s var(--ease);
}
.ad-qrow.gold { background: var(--gold-glass); border-color: rgba(201,168,76,0.3); }
.ad-qrow.pulse { box-shadow: 0 0 0 1px rgba(201,168,76,0.5), 0 0 30px -6px rgba(201,168,76,0.6); }
.ad-qn {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--mono); font-weight: 600; font-size: 15px; color: var(--ink-2);
  background: rgba(255,255,255,0.05); border: 0.5px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.ad-qn.gold { color: var(--gold-bri); background: var(--gold-glass); border-color: rgba(201,168,76,0.3); }
.ad-qn.teal { color: var(--teal-bri); background: var(--teal-glass); border-color: rgba(34,197,179,0.3); }
.ad-qt { flex: 1; font-size: 13px; color: var(--ink-1); }
.ad-ch { width: 14px; height: 14px; color: var(--gold); }

.ad-toast {
  position: absolute; right: -14px; top: 48px; z-index: 20;
  display: flex; align-items: center; gap: 11px;
  background: rgba(8,24,14,0.96); border: 0.5px solid rgba(201,168,76,0.4);
  border-radius: 11px; padding: 12px 16px; opacity: 0;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
}
.ad-toast b { display: block; font-size: 12px; color: var(--paper); }
.ad-toast .mono { display: block; font-size: 9.5px; color: var(--ink-3); margin-top: 2px; }

.ad-match {
  position: absolute; inset: 0; padding: 24px 30px 26px;
  display: none; flex-direction: column; opacity: 0;
}
.ad-mhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ad-grid { display: grid; grid-template-columns: 1fr 56px 1.2fr; gap: 4px; flex: 1; align-items: stretch; }

.ad-reqcard {
  background: var(--gold-glass); border: 0.5px solid rgba(201,168,76,0.3); border-radius: 12px; padding: 16px 18px;
}
.ad-cap { font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 9px; }
.ad-rc-name { font-family: var(--display); font-weight: 600; font-size: 19px; color: var(--paper); }
.ad-rc-meta { font-size: 9.5px; color: var(--ink-3); margin: 3px 0 14px; }
.ad-rc-rows { display: flex; flex-direction: column; gap: 8px; }
.ad-rc-rows > div { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; border-bottom: 0.5px solid var(--line-2); padding-bottom: 7px; }
.ad-rc-rows span { color: var(--ink-3); }
.ad-rc-rows b { color: var(--ink-1); font-weight: 500; text-align: right; }

.ad-connector { position: relative; }
.ad-connector svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

.ad-recyclers { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.ad-recy {
  background: rgba(255,255,255,0.025); border: 0.5px solid var(--line); border-radius: 11px; padding: 12px 15px;
  transition: all 0.45s var(--ease); opacity: 0;
}
.ad-recy.sel { background: var(--teal-glass); border-color: rgba(34,197,179,0.5); box-shadow: 0 0 0 1px rgba(34,197,179,0.25), 0 14px 30px -16px rgba(34,197,179,0.6); }
.ad-recy.dim { opacity: 0.32 !important; }
.ad-recy-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-recy-top b { font-size: 13px; color: var(--paper); font-weight: 600; }
.ad-match-pct { font-family: var(--mono); font-size: 12px; color: var(--teal-bri); font-weight: 500; }
.ad-recy-meta { font-size: 9.5px; color: var(--ink-3); margin: 4px 0 9px; }
.ad-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ad-chips .pill { font-size: 8.5px; padding: 3px 8px; }

.ad-quote {
  display: flex; align-items: center; gap: 16px; margin-top: 16px; padding-top: 16px;
  border-top: 0.5px solid var(--line); position: relative;
}
.ad-quote-l { flex: 1; }
.ad-quote-lab { display: block; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.ad-quote-val { font-family: var(--mono); font-size: 20px; color: var(--gold-bri); font-weight: 500; }
.ad-send {
  padding: 12px 26px; border: none; border-radius: 9px; background: var(--teal); color: #062018;
  font-family: var(--sans); font-weight: 700; font-size: 13px; transition: all 0.3s var(--ease);
}
.ad-send.armed { background: var(--teal-bri); box-shadow: 0 0 0 4px rgba(34,197,179,0.18); }
.ad-send.sent { background: rgba(34,197,179,0.15); color: var(--teal-bri); box-shadow: none; }
.ad-matched { position: absolute; right: 0; bottom: -22px; font-size: 10px; color: var(--teal-bri); opacity: 0; transition: opacity 0.5s var(--ease); }
.ad-matched.show { opacity: 1; }

/* ---------- STEP 3 - Transaction ---------- */
.tx-wrap { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; }
.tx-head-cap { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); opacity: 0; margin-bottom: 22px; }
.tx-stage { position: relative; width: min(1000px, 92vw); height: min(420px, 52vh); }
.tx-link {
  position: absolute; height: 2px; transform: translateY(-50%); border-radius: 2px;
  background: rgba(248,248,246,0.10); opacity: 0; overflow: hidden; z-index: 1;
  transition: opacity 0.3s ease;
}
.tx-flowline { position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease; }
.tx-flowline.gold { background: repeating-linear-gradient(90deg, var(--gold) 0 4px, transparent 4px 14px); }
.tx-flowline.teal { background: repeating-linear-gradient(90deg, var(--teal-bri) 0 4px, transparent 4px 14px); }
.tx-flowline.moving { opacity: 0.95; }
.tx-flowline.gold.moving { animation: txFlowR 0.7s linear infinite; }
.tx-flowline.teal.moving { animation: txFlowL 0.7s linear infinite; }
@keyframes txFlowR { to { background-position-x: 14px; } }
@keyframes txFlowL { to { background-position-x: -14px; } }

.tx-node {
  position: absolute; top: 50%; z-index: 2;
  width: 196px; padding: 18px; text-align: center;
  border-radius: 16px; opacity: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 0.5px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 70px -40px rgba(0,0,0,0.8);
}
.tx-node.gen { left: 25%; }
.tx-node.recy { left: 75%; }
.tx-node.escrow {
  left: 50%; width: 224px; z-index: 3;
  background: linear-gradient(160deg, rgba(26,158,143,0.16), rgba(26,158,143,0.04));
  border-color: rgba(34,197,179,0.35);
}
.tx-node.escrow.secured { border-color: rgba(34,197,179,0.7); box-shadow: 0 0 0 1px rgba(34,197,179,0.3), 0 0 60px -16px rgba(34,197,179,0.7); }
.tx-ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin: 0 auto 12px; background: rgba(255,255,255,0.05); border: 0.5px solid var(--line); }
.tx-node.gen .tx-ico { color: var(--gold-bri); background: var(--gold-glass); border-color: rgba(201,168,76,0.3); }
.tx-node.recy .tx-ico { color: var(--teal-bri); background: var(--teal-glass); border-color: rgba(34,197,179,0.3); }
.tx-ico svg { width: 21px; height: 21px; }
.tx-role { font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.tx-name { font-family: var(--display); font-weight: 600; font-size: 16.5px; color: var(--paper); margin: 5px 0 12px; line-height: 1.1; }
.tx-amt { font-family: var(--mono); font-size: 16px; color: var(--ink-1); font-variant-numeric: tabular-nums; }
.tx-node.gen .tx-amt { color: var(--gold-bri); }
.tx-node.recy .tx-amt { color: var(--teal-bri); }
.tx-amt-lab { font-size: 9px; color: var(--ink-3); margin-top: 3px; }

.tx-lock { position: relative; width: 46px; height: 46px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-glass); border: 0.5px solid rgba(34,197,179,0.35); color: var(--teal-bri); }
.tx-lock svg { width: 24px; height: 24px; position: absolute; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.tx-lock .closed { opacity: 0; transform: scale(0.6); }
.tx-lock.locked .open { opacity: 0; }
.tx-lock.locked .closed { opacity: 1; transform: scale(1); }
.tx-bal { font-family: var(--mono); font-size: 24px; color: var(--teal-bri); font-weight: 500; font-variant-numeric: tabular-nums; }

.tx-blind {
  position: absolute; left: 50%; top: 4px;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; z-index: 4;
  font-size: 10px; color: var(--ink-3); white-space: nowrap;
  background: rgba(7,20,12,0.8); border: 0.5px solid var(--line); border-radius: 999px; padding: 6px 13px;
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.tx-blind svg { width: 13px; height: 13px; color: var(--ink-3); }
.tx-blind.show { opacity: 1; }
.tx-caption {
  max-width: 600px; margin-top: 30px; text-align: center; opacity: 0;
  font-family: var(--display); font-style: italic; font-size: 16px; color: var(--ink-2); line-height: 1.5;
}

/* ---------- STEP 4 - Logistics & tracking ---------- */
.lg-wrap { width: 100%; display: flex; flex-direction: column; gap: 14px; opacity: 0; }
.lg-main { display: flex; gap: 16px; align-items: stretch; }

.lg-map { position: relative; flex: 1.7; height: 432px; border-radius: 16px; overflow: hidden; padding: 0; }
.lg-svg { width: 100%; height: 100%; display: block; }
.lg-route-base { fill: none; stroke: rgba(248,248,246,0.14); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1 9; }
.lg-route-prog { fill: none; stroke: url(#lgRouteGrad); stroke-width: 3; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(34,197,179,0.6)); }
.lg-amb { fill: rgba(34,197,179,0.45); font-family: var(--mono); font-size: 9px; letter-spacing: 0.34em; }
.lg-amb2 { fill: rgba(248,248,246,0.4); font-family: var(--mono); font-size: 8px; letter-spacing: 0.06em; }
.lg-lab { fill: var(--paper); font-family: var(--mono); font-size: 10.5px; font-weight: 500; }
.lg-lab.gold { fill: var(--gold-bri); } .lg-lab.teal { fill: var(--teal-bri); }
.lg-lab2 { fill: var(--ink-3); font-family: var(--mono); font-size: 8.5px; }

.nd-ring { fill: none; stroke: rgba(248,248,246,0.3); stroke-width: 1.5; }
.nd-ring.gold { stroke: #C9A84C; } .nd-ring.teal { stroke: #22c5b3; }
.lg-node.hit .nd-ring { animation: ndPulse 1.8s var(--ease) infinite; }
@keyframes ndPulse { 0% { stroke-opacity: 0.9; r: 7; } 70%,100% { stroke-opacity: 0; r: 16; } }
.lg-truck { transition: transform 0.12s linear; }
.lg-truck .tk-pulse { fill: rgba(201,168,76,0.22); animation: tkPulse 1.6s ease-out infinite; }
@keyframes tkPulse { 0% { r: 8; opacity: 0.8; } 100% { r: 20; opacity: 0; } }

.lg-live {
  position: absolute; top: 14px; right: 14px; width: 188px;
  background: rgba(6,20,12,0.82); border: 0.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; backdrop-filter: blur(12px);
}
.lg-live-h { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--teal-bri); }
.lg-live-h .ld { width: 7px; height: 7px; border-radius: 50%; background: var(--teal-bri); box-shadow: 0 0 0 0 rgba(34,197,179,0.6); animation: ldBlink 1.4s infinite; }
@keyframes ldBlink { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }
.lg-live-name { font-size: 11.5px; color: var(--paper); margin: 8px 0 9px; font-weight: 500; }
.lg-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 10px; }
.lg-live-grid span { display: block; font-size: 8px; letter-spacing: 0.1em; color: var(--ink-3); }
.lg-live-grid b { font-size: 12px; color: var(--ink-1); font-weight: 500; font-variant-numeric: tabular-nums; }
.lg-feed { margin-top: 11px; border-top: 0.5px solid var(--line-2); padding-top: 9px; display: flex; flex-direction: column; gap: 5px; min-height: 56px; }
.lg-feed-row { font-size: 9px; color: var(--ink-2); animation: feedIn 0.5s var(--ease); }
.lg-feed-row .mono { color: var(--teal-bri); }
@keyframes feedIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

/* driver phone */
.lg-phone { width: 232px; flex-shrink: 0; align-self: center; }
.lg-phone .phone-screen { height: 408px; display: flex; flex-direction: column; }
.dr-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.dr-brand { display: flex; align-items: center; gap: 7px; }
.dr-brand img { height: 18px; }
.dr-brand span { font-family: var(--display); font-weight: 600; font-size: 13px; color: var(--gold-bri); }
.dr-job { font-size: 9px; color: var(--ink-3); }
.dr-shot { position: relative; margin: 0 14px; height: 116px; border-radius: 12px; overflow: hidden; background: #061a0f; border: 0.5px solid var(--line); display: grid; place-items: center; }
.dr-shot-grid { position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(34,197,179,0.06) 0 10px, transparent 10px 20px); }
.dr-shot::before { content: ''; position: absolute; inset: 0; background: rgba(248,248,246,0); transition: background 0.18s ease; }
.dr-shot.active::before { background: rgba(248,248,246,0.55); }
.dr-shot-lab { position: relative; font-size: 9px; letter-spacing: 0.18em; color: var(--ink-3); border: 0.5px solid var(--line); padding: 4px 9px; border-radius: 999px; }
.dr-body { flex: 1; padding: 14px 16px 16px; display: flex; flex-direction: column; }
.dr-phase-t { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--paper); line-height: 1.1; }
.dr-phase-s { font-size: 11px; color: var(--ink-3); margin: 3px 0 12px; }
.dr-steps { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.dr-mini { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--ink-3); transition: color 0.3s; }
.dr-mini .dot { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--ink-4); transition: all 0.3s var(--ease); }
.dr-mini.on { color: var(--ink-1); }
.dr-mini.on .dot { background: var(--teal-bri); border-color: var(--teal-bri); box-shadow: 0 0 8px rgba(34,197,179,0.6); }
.dr-btn { margin-top: 10px; padding: 11px; border: none; border-radius: 10px; background: rgba(34,197,179,0.14); color: var(--teal-bri); font-family: var(--sans); font-weight: 600; font-size: 12.5px; }
.dr-btn.done { background: var(--teal); color: #062018; }

.lg-data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lg-chip {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  background: rgba(255,255,255,0.02); border: 0.5px solid var(--line-2); border-radius: 9px;
  opacity: 0.32; transition: all 0.45s var(--ease);
}
.lg-chip.on { opacity: 1; background: var(--teal-glass); border-color: rgba(34,197,179,0.28); }
.lg-chip-ck { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--ink-4); flex-shrink: 0; position: relative; transition: all 0.4s var(--ease); }
.lg-chip.on .lg-chip-ck { background: var(--teal); border-color: var(--teal); }
.lg-chip.on .lg-chip-ck::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 9px; color: #062018; font-weight: 700; }
.lg-chip b { display: block; font-size: 11px; color: var(--ink-1); font-weight: 500; }
.lg-chip .mono { display: block; font-size: 9px; color: var(--ink-3); margin-top: 1px; }

/* ---------- STEP 5 - Certificate (showstopper) ---------- */
#step5 { perspective: 1400px; }
.ct-canvas { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ct-cert {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: min(560px, 86vw);
  transform: translate(-50%,-50%) scale(0.86);
  transform-style: preserve-3d;
  opacity: 0;
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(201,168,76,0.14), transparent 55%),
    radial-gradient(100% 90% at 10% 100%, rgba(34,197,179,0.10), transparent 55%),
    linear-gradient(165deg, #0d3a22, #082414);
  border: 1px solid rgba(201,168,76,0.45);
  border-radius: 18px;
  padding: 26px 30px 22px;
  box-shadow: 0 60px 140px -40px rgba(0,0,0,0.9), 0 0 0 1px rgba(201,168,76,0.12), inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}
.ct-cert.lit { box-shadow: 0 60px 160px -40px rgba(0,0,0,0.9), 0 0 80px -20px rgba(201,168,76,0.5), inset 0 1px 0 rgba(255,255,255,0.08); }
/* gold foil sweep */
.ct-foil {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: linear-gradient(105deg, transparent 35%, rgba(255,240,200,0.22) 48%, rgba(255,240,200,0.05) 52%, transparent 62%);
  transform: translateX(calc(-120% + var(--foil, 0) * 240%));
  opacity: 0.9;
}
.ct-cert::after {  /* corner filigree */
  content: ''; position: absolute; inset: 9px; border: 0.5px solid rgba(201,168,76,0.18); border-radius: 12px; pointer-events: none;
}

.ct-head { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 2; }
.ct-brand { display: flex; align-items: center; gap: 10px; }
.ct-brand img { height: 30px; }
.ct-brand b { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--gold-bri); line-height: 1.1; }
.ct-brand span { font-family: var(--arabic); font-size: 10px; color: var(--ink-3); }
.ct-qr { display: flex; align-items: center; gap: 10px; }
.ct-qr-img { width: 52px; height: 52px; background: #07210f; border: 0.5px solid rgba(201,168,76,0.3); border-radius: 6px; padding: 3px; }
.ct-qr-no { text-align: right; }
.ct-qr-no span { display: block; font-size: 7.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.ct-qr-no b { font-size: 10.5px; color: var(--gold-bri); letter-spacing: 0.04em; }

.ct-title-wrap { text-align: center; padding: 18px 0 16px; margin: 16px 0; border-top: 0.5px solid rgba(201,168,76,0.2); border-bottom: 1px solid rgba(201,168,76,0.35); position: relative; z-index: 2; }
.ct-eyebrow { font-size: 8.5px; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; margin-bottom: 9px; }
.ct-title { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.6vw, 33px); color: var(--paper); line-height: 1.04; letter-spacing: 0.005em; }
.ct-sub { font-size: 11px; color: var(--ink-3); margin-top: 6px; }

.ct-awarded { text-align: center; margin-bottom: 18px; position: relative; z-index: 2; }
.ct-awarded > span { display: block; font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-bri); margin-bottom: 4px; }
.ct-awarded b { font-family: var(--display); font-weight: 600; font-size: 24px; color: var(--paper); }
.ct-awarded i { display: block; font-style: normal; font-size: 10px; color: var(--ink-3); margin-top: 3px; }

.ct-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 18px; position: relative; z-index: 2; }
.ct-metric { text-align: center; padding: 12px 8px; border: 0.5px solid rgba(201,168,76,0.22); border-radius: 10px; background: rgba(201,168,76,0.05); }
.ct-metric b { display: block; font-family: var(--mono); font-size: 19px; font-weight: 500; color: var(--gold-bri); font-variant-numeric: tabular-nums; line-height: 1; }
.ct-metric > span { display: block; font-size: 8.5px; color: var(--ink-3); margin-top: 4px; }
.ct-metric i { display: block; font-style: normal; font-size: 9px; color: var(--ink-2); margin-top: 5px; }
.ct-metric:nth-child(2) b { color: var(--teal-bri); }

.ct-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 22px; margin-bottom: 16px; position: relative; z-index: 2; }
.ct-rows > div { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; padding: 5px 0; border-bottom: 0.5px solid var(--line-2); }
.ct-rows span { color: var(--ink-3); }
.ct-rows b { color: var(--ink-1); font-weight: 500; text-align: right; }

.ct-foot { text-align: center; position: relative; z-index: 2; }
.ct-foot .mono { font-size: 8.5px; color: var(--ink-3); letter-spacing: 0.04em; }

.ct-seal {
  position: absolute; right: 22px; bottom: 50px; z-index: 7;
  width: 78px; height: 78px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: radial-gradient(circle at 35% 30%, var(--gold-bri), var(--gold));
  border: 2px solid rgba(255,240,200,0.5);
  box-shadow: 0 12px 30px -8px rgba(201,168,76,0.7);
  transform: scale(0) rotate(-22deg); opacity: 0;
  transition: transform 0.55s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s;
}
.ct-seal svg { width: 22px; height: 22px; }
.ct-seal span { font-size: 8px; letter-spacing: 0.12em; color: #0a2e1a; font-weight: 700; }
.ct-seal.show { transform: scale(1) rotate(-12deg); opacity: 1; }

@media (max-width: 760px) {
  .lg-main { flex-direction: column; }
  .lg-phone { width: 220px; }
  .ct-rows { grid-template-columns: 1fr; }
}
