/* Got — customer account portal.
   Shares the gotshop.net design language on purpose: the same Outfit family,
   the same mint/sky accent and the same surface colours. A customer who taps
   "Sign in" from the marketing site should not feel handed to a different
   product halfway through a purchase.

   This file no longer @imports /admin/admin.css. The portal inherited the
   admin console's styling, which is why the two looked identical and neither
   looked like the brand. */

@font-face{font-family:'Outfit';src:url('fonts/Outfit-latin-400.woff2') format('woff2');font-weight:400;font-display:swap}
@font-face{font-family:'Outfit';src:url('fonts/Outfit-latin-600.woff2') format('woff2');font-weight:600;font-display:swap}
@font-face{font-family:'Outfit';src:url('fonts/Outfit-latin-800.woff2') format('woff2');font-weight:800;font-display:swap}

:root{
  color-scheme:dark;
  --bg:#070b10; --bg-2:#0c131b; --surface:#111a24; --surface-2:#16212d;
  --line:#1e2b3a; --line-2:#2a3a4d;
  --text:#f2f7fc; --muted:#93a4b8; --faint:#64748b;
  --mint:#2fe0ad; --sky:#4aa8ff; --gold:#f5c04e; --ink:#04241b;
  --danger:#ff7a7a;
  --r:14px;
  font-family:'Outfit',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box}
body{
  margin:0;background:var(--bg);color:var(--text);
  font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased;
  /* Mirrors the ambient glow on the marketing site without a second request. */
  background-image:
    radial-gradient(760px 420px at 12% -8%, rgba(47,224,173,.09), transparent 62%),
    radial-gradient(680px 420px at 92% 4%, rgba(74,168,255,.08), transparent 60%);
  background-attachment:fixed;
}

/* --- Header --- */
header{
  position:sticky;top:0;z-index:40;
  display:flex;justify-content:space-between;align-items:center;gap:18px;
  padding:14px max(5vw,20px);
  background:rgba(7,11,16,.84);backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
header a{
  font-size:27px;font-weight:800;letter-spacing:-.04em;
  text-decoration:none;line-height:1.1;
  background:linear-gradient(135deg,var(--mint),var(--sky));
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
header a span{
  display:block;font-size:10.5px;font-weight:600;letter-spacing:.16em;
  text-transform:uppercase;color:var(--faint);
  -webkit-text-fill-color:var(--faint);
}

/* --- Layout --- */
main{max-width:1040px;margin:auto;padding:46px 24px 120px}
.intro{max-width:720px;margin-bottom:34px}
.tag{
  display:inline-flex;align-items:center;gap:7px;
  font-size:11.5px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
  color:var(--mint);border:1px solid rgba(47,224,173,.3);
  background:rgba(47,224,173,.07);padding:6px 14px;border-radius:99px;
}
h1{font-size:clamp(34px,6vw,58px);line-height:1.05;letter-spacing:-.04em;font-weight:800;margin:18px 0 14px}
p{color:var(--muted);line-height:1.7;margin:0 0 12px}

/* --- Cards --- */
.card{
  display:block;border:1px solid var(--line);background:var(--surface);
  border-radius:20px;padding:26px;margin:22px 0;
}
h2{margin:0 0 10px;font-size:21px;font-weight:600;letter-spacing:-.02em}
h3{font-size:15px;font-weight:600;margin:0 0 6px}

/* --- Forms --- */
label{display:flex;flex-direction:column;gap:8px;margin:16px 0;font-size:13.5px;color:#cbd6e6;font-weight:600}
input,select{
  border:1px solid var(--line-2);background:var(--bg-2);color:var(--text);
  border-radius:11px;padding:13px 15px;font:inherit;font-size:16px;font-weight:400;
  width:100%;transition:border-color .16s,box-shadow .16s;
}
input:focus,select:focus{
  outline:none;border-color:var(--mint);
  box-shadow:0 0 0 3px rgba(47,224,173,.16);
}
input[type=file]{padding:11px;font-size:14px;color:var(--muted)}
button{
  cursor:pointer;border:0;border-radius:11px;
  background:linear-gradient(135deg,var(--mint),#25c99a);color:var(--ink);
  font:inherit;font-weight:600;font-size:15px;padding:13px 24px;margin:6px 0;
  box-shadow:0 8px 24px -10px rgba(47,224,173,.55);
  transition:filter .16s,transform .16s;
}
button:hover:not(:disabled){filter:brightness(1.07)}
button:active:not(:disabled){transform:scale(.98)}
button:disabled{opacity:.45;cursor:wait;box-shadow:none}
.ghost{background:none;border:1px solid var(--line-2);color:var(--text);box-shadow:none}
.ghost:hover:not(:disabled){border-color:var(--muted);background:var(--surface-2)}
.danger{background:none;border:1px solid #5c2535;color:var(--danger);box-shadow:none}
.danger:hover:not(:disabled){background:#2a1119;border-color:#7a3246}
.row{display:flex;gap:18px}
.row>*{flex:1}

/* --- Products --- */
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.product{
  border:1px solid var(--line);background:var(--bg-2);border-radius:var(--r);
  padding:16px;display:flex;flex-direction:column;gap:9px;
  transition:border-color .16s,transform .16s;
}
.product:hover{border-color:var(--line-2);transform:translateY(-2px)}
.product img{
  width:100%;height:160px;object-fit:contain;border-radius:10px;
  background:#fff;padding:8px;
}
.product h3{font-size:15px;font-weight:600;margin:0;letter-spacing:-.01em}
.product p{font-size:13.5px;color:var(--mint);font-weight:600;margin:0}
.product small{font-size:11.5px;color:var(--faint);line-height:1.5}
.product button{width:100%;font-size:13.5px;padding:11px;margin-top:auto}

/* --- Consent and signature --- */
.consent{
  white-space:pre-line;font-size:13px;line-height:1.8;color:#dbe3f0;
  background:var(--bg-2);border:1px solid var(--line);
  padding:20px;border-radius:12px;margin:18px 0;
  max-height:340px;overflow-y:auto;
}
.consent::-webkit-scrollbar{width:9px}
.consent::-webkit-scrollbar-thumb{background:var(--line-2);border-radius:99px}
/* The drawing surface keeps the 800x280 bitmap's shape at every width, so a
   circle drawn on a phone is stored as a circle, not an ellipse. */
canvas{
  width:100%;height:auto;aspect-ratio:800/280;background:#fff;border-radius:12px;
  border:1px solid var(--line-2);touch-action:none;display:block;
}
.check{flex-direction:row;align-items:flex-start;gap:12px;font-weight:400;font-size:13.5px;color:var(--muted);line-height:1.6}
.check input{width:20px;height:20px;flex:none;margin-top:2px;accent-color:var(--mint)}

a{color:var(--mint)}

/* --- Messages ---
   Shown in the section where the customer is working, next to the button that
   caused them. A fixed toast covered "Send" and "Back" on a 390 px phone. */
.msg{
  margin:12px 0;padding:12px 16px;border-radius:12px;
  background:var(--surface-2);border:1px solid var(--line-2);
  font-size:14.5px;color:var(--text);line-height:1.5;
}
.msg:empty{display:none}
.msg.ok{border-color:rgba(47,224,173,.45)}
.msg.error{border-color:#7a3246;background:#24111a;color:#ffd5dc}
#dash-msg{margin:0 0 4px}
/* Anything the page scrolls to stops below the sticky header (about 70 px on a phone, 80 px wide). */
.msg,#request,.order,.product{scroll-margin-top:110px}
.docs+.msg,.controls+.msg,.request-row .msg,.product .msg{margin:10px 0 0}
.saved{color:var(--mint);opacity:.9}
.saved:empty{display:none}
/* The merchant workspace (/merchant/) shares this stylesheet and still uses the pinned #status line. */
#status{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);
  z-index:60;max-width:min(560px,calc(100vw - 32px));
  background:var(--surface-2);border:1px solid var(--line-2);
  border-radius:13px;padding:14px 20px;margin:0;
  font-size:14.5px;color:var(--text);line-height:1.5;
  box-shadow:0 18px 44px -18px rgba(0,0,0,.9);
  animation:toast .22s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes toast{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
#status:empty{display:none}

[hidden]{display:none!important}

@media(max-width:650px){
  main{padding:30px 16px 110px}
  .card{padding:20px;border-radius:16px}
  .products{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
  .row{display:block}
  header{padding:12px 16px}
}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

/* Portal footer: the terms a customer accepts must be reachable from the page
   where they accept them, not only from the marketing site. */
.portal-foot{
  display:flex;gap:22px;flex-wrap:wrap;justify-content:center;
  margin:44px 0 0;padding-top:24px;border-top:1px solid var(--line);
  font-size:13.5px;
}
.portal-foot a{color:var(--muted);text-decoration:none}
.portal-foot a:hover{color:var(--mint)}

.hint{font-size:.85rem;opacity:.75;margin:-4px 0 10px}

/* --- Notices, orders, requests --- */
.notice{border-color:rgba(74,168,255,.45)}
.notice p{color:var(--text)}
.controls{display:flex;flex-wrap:wrap;gap:10px}
.controls button{margin:0}
button.small{padding:7px 12px;font-size:13px;margin:0}
.docs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.docs button{margin:0}
.order{border:1px solid var(--line);background:var(--bg-2);border-radius:var(--r);padding:18px;margin:14px 0}
.order h3{font-size:17px;margin:0}
.order h4{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--faint);margin:16px 0 6px}
.order .ref{font-size:13px;color:var(--faint);margin:2px 0 8px}
.badge{display:inline-block;font-size:13px;font-weight:600;color:var(--sky);margin:0 0 12px}
.tracking-box{border:1px solid rgba(74,168,255,.35);background:rgba(74,168,255,.06);border-radius:12px;padding:12px 14px;margin:2px 0 14px}
.tracking-box .kicker{color:var(--sky);margin-bottom:6px}
.tracking-box .line{margin:3px 0}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;text-align:center}
.metrics div{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:10px 4px;min-width:0}
/* The currency sits on its own small line so a 7-digit amount stays inside its box on a 390 px phone. */
.metrics b{display:block;font-size:15px;font-weight:600;color:var(--text);line-height:1.25}
.metrics b .cur{display:block;font-size:11px;font-weight:600;letter-spacing:.06em;color:var(--muted)}
.metrics b .num{display:block;white-space:nowrap;font-size:inherit;color:inherit}
.metrics span{font-size:12px;color:var(--muted)}
.metrics .strong b{color:var(--mint)}
.progress{height:6px;border-radius:6px;background:var(--line);margin:12px 0;overflow:hidden}
.progress span{display:block;height:100%;background:linear-gradient(90deg,var(--mint),var(--sky))}
.line{font-size:14px;margin:4px 0;color:var(--muted)}
.next{font-size:14.5px;font-weight:600;color:var(--text);margin:10px 0 4px}
.next.late{color:var(--danger)}
.instalments{list-style:none;margin:0;padding:0}
.instalments li{display:grid;grid-template-columns:26px 1fr auto auto;gap:4px 10px;align-items:baseline;padding:7px 0;border-bottom:1px solid var(--line);font-size:14px}
.instalments li:last-child{border-bottom:0}
.instalments .seq{color:var(--faint)}
.instalments .amt{text-align:right;white-space:nowrap}
.instalments .sub{grid-column:2/-1;font-size:12.5px;color:var(--muted)}
.state{font-size:12px;font-weight:600;border-radius:99px;padding:2px 9px;text-align:center;white-space:nowrap}
.state.paid{background:rgba(47,224,173,.14);color:var(--mint)}
.state.partial{background:rgba(245,192,78,.14);color:var(--gold)}
.state.due{background:var(--surface-2);color:var(--muted)}
.state.late{background:rgba(255,122,122,.14);color:var(--danger)}
.receipts{list-style:none;margin:0;padding:0}
.receipts li{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid var(--line);font-size:13.5px;color:var(--muted)}
.receipts li:last-child{border-bottom:0}
.receipts li.voided span{text-decoration:line-through}
.request-row{border-top:1px solid var(--line);padding:12px 0}
.request-row:first-child{border-top:0}
.request-row.attention{border-left:3px solid var(--gold);padding-left:12px}
.note{background:rgba(245,192,78,.09);border:1px solid rgba(245,192,78,.4);color:#f8e2ad;border-radius:12px;padding:12px 14px;font-size:14px;margin:8px 0}
.request-track{list-style:none;display:grid;gap:0;margin:12px 0 4px;padding:0}
.request-track li{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center;min-height:30px;color:var(--faint);font-size:13px;position:relative}
.request-track li:not(:last-child)::before{content:'';position:absolute;left:11px;top:22px;height:18px;border-left:1px solid var(--line-2)}
.request-track li.done,.request-track li.current{color:var(--text)}
.request-track .track-dot{width:22px;height:22px;border:1px solid var(--line-2);border-radius:50%;display:grid;place-items:center;font-size:12px;background:var(--surface)}
.request-track li.done .track-dot{background:rgba(47,224,173,.14);border-color:rgba(47,224,173,.6);color:var(--mint)}
.request-track li.current .track-dot{border-color:var(--sky);color:var(--sky)}
.request-track .track-copy{font-weight:600}
.request-track small{font-size:11px;color:var(--faint);text-align:right}
.request-next{margin:4px 0 10px}
.product .sub{color:var(--muted);font-weight:400}
.product.chosen{outline:2px solid #a78bfa}
.tag-small{font-size:12px;color:#c4b5fd}
.product img.image-missing{background:var(--surface-2);object-fit:none}

/* --- Request form --- */
.step{font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--mint);margin:28px 0 4px}
.plan dl{display:grid;grid-template-columns:1fr auto;gap:6px 14px;margin:8px 0;font-size:14.5px}
.plan dt{color:var(--muted)}
.plan dd{margin:0;text-align:right;font-weight:600;white-space:nowrap}
.consent.small{max-height:220px;font-size:12.5px;margin:10px 0 0}
.data-notice{border:1px solid var(--line-2);border-radius:14px;padding:12px 14px;margin:10px 0}
.photos{display:grid;gap:10px;margin:14px 0}
.slot{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;border:1px solid var(--line);background:var(--bg-2);border-radius:12px;padding:10px}
.slot[data-state=done]{border-color:rgba(47,224,173,.45)}
.thumb{width:64px;height:64px;border-radius:8px;background:var(--surface-2);overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}
.slot-body{display:flex;flex-direction:column;gap:4px;min-width:0}
.slot-body strong{font-size:14.5px}
.slot-state{font-size:13px;color:var(--muted)}
.slot[data-state=done] .slot-state{color:var(--mint)}
.slot-state.bad{color:var(--danger)}
.slot progress{width:100%;height:6px;accent-color:var(--mint)}
.slot .retry{align-self:flex-start}
.pick{
  margin:0;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;
  border-radius:11px;padding:10px 14px;font-size:14px;font-weight:600;color:var(--ink);
  background:linear-gradient(135deg,var(--mint),#25c99a);white-space:nowrap;
}
.pick input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.pick.disabled{opacity:.45;cursor:not-allowed}
.slot[data-state=done] .pick{background:none;border:1px solid var(--line-2);color:var(--text)}
#request > button,#details-form > button{width:100%}
@media(max-width:650px){
  .slot{grid-template-columns:52px 1fr;}
  .thumb{width:52px;height:52px}
  .slot .pick{grid-column:1/-1}
  .metrics b{font-size:14px}
  .docs button{flex:1 1 100%}
}

/* Facebook page link in the footer (12 Oct 2026) */
.portal-foot .fb{display:inline-flex;align-items:center;gap:6px;padding:6px 12px 6px 9px;border-radius:999px;background:#1877f2;color:#fff;font-weight:600;text-decoration:none}
.portal-foot .fb:hover{background:#0a5bd3}

/* ── Phase 2 (12 Oct 2026): live camera, finger signature, the order code, signing on screen, notifications ── */
button.pick{margin:0;box-shadow:none;border:0;font:inherit;font-size:14px;font-weight:600}
button.pick.disabled{opacity:.45;cursor:not-allowed}
.slot[data-state=done] button.pick{background:none;border:1px solid var(--line-2);color:var(--text)}
.thumb{position:relative;display:grid;place-items:center}
.thumb-icon{display:block;opacity:.55}
.card-icon{width:38px;height:25px;border:2px solid var(--muted);border-radius:4px;position:relative}
.card-icon::before{content:'';position:absolute;left:4px;top:5px;width:9px;height:11px;border-radius:2px;background:var(--muted)}
.card-icon::after{content:'';position:absolute;left:16px;right:4px;top:6px;height:2px;background:var(--muted);box-shadow:0 5px 0 var(--muted),0 10px 0 var(--muted)}
.face-icon{width:26px;height:34px;border:2px solid var(--muted);border-radius:50%}
.camera-note{margin-top:8px}
.pad-label{margin:16px 0 8px;font-size:13.5px;color:#cbd6e6;font-weight:600}
.kicker{font-size:11.5px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--mint);margin:0 0 4px}

/* Signing opened at the door: shown at the top of the account and on the order card. */
.sign-now{border-color:rgba(47,224,173,.55);background:linear-gradient(160deg,rgba(47,224,173,.12),var(--surface) 60%)}
.sign-now h2{margin-bottom:6px}
.sign-box{border:1px solid rgba(47,224,173,.5);background:rgba(47,224,173,.07);border-radius:12px;padding:12px 14px;margin:6px 0 12px}
.sign-box p{color:var(--text);margin:0 0 8px;font-size:14.5px}
.sign-btn{width:100%;font-size:16px;padding:14px 18px;margin:4px 0 0}
.ok-line{color:var(--mint)}

/* The order code: big, black on white, for the representative's camera. */
.got-code{margin:10px 0 14px;padding:14px;border-radius:14px;border:1px solid var(--line-2);background:var(--surface);text-align:center}
.code-head{display:flex;flex-direction:column;align-items:center;gap:0}
.code-purpose{font-size:13.5px;color:var(--muted);margin:0 0 10px}
.got-code .qr{width:min(100%,290px);margin:0 auto;background:#fff;border-radius:12px;padding:6px;aspect-ratio:1;display:grid;place-items:center}
.got-code .qr svg,.code-full .qr svg{width:100%;height:100%;display:block}
.got-code .qr .hint{color:#4b5563;opacity:1;margin:0;padding:12px;font-size:13px}
.code-caption{font-size:16px;font-weight:600;color:var(--text);margin:12px 0 2px}
.pin{font-size:14.5px;color:var(--muted);margin:4px 0}
.pin b{font-size:24px;letter-spacing:.14em;color:var(--text);font-variant-numeric:tabular-nums;white-space:nowrap;display:inline-block;margin-left:4px}
.code-timer{font-size:12.5px;color:var(--faint);margin:2px 0 8px;line-height:1.45}
.got-code button.small{margin:2px 0 0}
.code-full{position:fixed;inset:0;z-index:1500;background:#fff;color:#111;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:max(20px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom))}
.code-full .qr{width:min(92vw,72vh,560px);aspect-ratio:1}
.code-full .code-caption{color:#111;font-size:19px;margin:0;text-align:center}
.code-full .pin{color:#333;font-size:17px}
.code-full .pin b{color:#000;font-size:34px}
.code-full .ghost{color:#111;border-color:#bbb;min-width:160px}

/* Notifications */
.notices-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.notices-head h2{margin:0}
.count{display:inline-block;font-size:12px;font-weight:600;color:var(--ink);background:var(--mint);border-radius:99px;padding:1px 9px;vertical-align:middle;margin-left:6px}
.notices{list-style:none;margin:10px 0 0;padding:0}
.notice-item{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:11px 0;border-bottom:1px solid var(--line)}
.notice-item:last-child{border-bottom:0}
.notice-empty{list-style:none;padding:10px 0;color:var(--muted);font-size:13.5px;line-height:1.5}
.notice-item.unread{cursor:pointer}
.notice-item.unread .notice-text strong::after{content:'';display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--mint);margin-left:8px;vertical-align:middle}
.notice-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--line-2);font-size:15px}
.notice-icon.late_notice,.notice-icon.receipt_cancelled{background:rgba(255,122,122,.12);border-color:#7a3246}
.notice-text{min-width:0}
.notice-text strong{font-size:14.5px;font-weight:600;color:var(--text)}
.notice-text p{font-size:13.5px;margin:2px 0 2px;color:var(--muted);line-height:1.5;overflow-wrap:anywhere}
.notice-text small{font-size:12px;color:var(--faint)}
#notices-more{margin-top:8px}
@media(max-width:650px){
  .order{padding:16px 14px}
  /* The code is as wide as the phone allows: the representative's camera reads it from further away. */
  .got-code{margin:10px -6px 14px;padding:12px 8px}
  .got-code .qr{width:min(100%,300px);padding:4px}
}
#sign-now{scroll-margin-top:110px}
