/* GXD app screens (join + account). Builds on styles.css tokens — no hex colors here. */
.app { background: var(--surface); min-height: 100vh; }
[hidden] { display: none !important; }

.loading { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--surface-alt); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: 600 .95rem/1 var(--font-body); color: var(--accent); cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-alt); }
.icon-btn .ic { width: 22px; height: 22px; }
.form-msg { min-height: 1.4em; margin: 12px 0 0; font-weight: 600; color: var(--text-secondary); }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--error); }
.center { text-align: center; }
textarea { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; resize: vertical; transition: border-color .15s ease, box-shadow .15s ease; }
textarea:hover { border-color: var(--border-hover); }
textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .18); }

/* ── Auth split screen ───────────────────────────── */
.auth-split { display: grid; min-height: 100vh; }
.auth-pane { display: flex; flex-direction: column; padding: 20px; }
.auth-logo { align-self: flex-start; }
.auth-box { width: 100%; max-width: 400px; margin: auto; padding: 32px 0; }
.auth-title { font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.1; text-align: center; margin-bottom: 24px; }
.auth-title em { font-style: normal; color: var(--accent); }
.auth-zip { text-align: center; font-weight: 600; margin: -8px 0 18px; }
.auth-zip.ok { color: var(--success); } .auth-zip.no { color: var(--warning); }
.auth-buttons { display: grid; gap: 12px; }
.btn-auth { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px; padding: 12px 18px;
  border-radius: 999px; border: 2px solid var(--border); background: var(--surface); color: var(--text); font: 700 1rem/1 var(--font-body); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.btn-auth:hover { border-color: var(--accent); background: var(--surface-alt); }
.btn-auth:active { transform: scale(.98); }
.btn-auth:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn-auth .ic { width: 20px; height: 20px; }
.btn-auth[data-provider="google"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.btn-auth[data-provider="google"]:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-auth[data-provider="google"] .ic { background: var(--surface); border-radius: 50%; padding: 2px; width: 24px; height: 24px; }
.soon { position: absolute; right: 14px; font: 700 .7rem/1 var(--font-body); padding: 4px 8px; border-radius: 999px; background: var(--surface-alt); color: var(--text-tertiary); }
.auth-form { display: grid; gap: 10px; }
.auth-form label { font-weight: 600; font-size: .95rem; }
.auth-sent { text-align: center; }
.auth-sent .ic-lg { margin: 0 auto 10px; }
.auth-legal { margin-top: 22px; text-align: center; font-size: .85rem; color: var(--text-tertiary); }
.auth-legal a { color: var(--text-secondary); }
.auth-art { display: none; position: relative; overflow: hidden; background: var(--ink); isolation: isolate; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .8s ease; }
.slide.on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--ink-rgb), .1) 30%, rgba(var(--ink-rgb), .85)); }
.slide figcaption { position: absolute; left: 40px; right: 40px; bottom: 80px; z-index: 1; color: var(--on-ink); font: 900 clamp(1.4rem, 2.4vw, 2rem)/1.15 var(--font-display); }
.dots { position: absolute; left: 40px; bottom: 44px; display: flex; gap: 8px; z-index: 1; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(var(--bg-rgb), .4); transition: width .3s ease, background-color .3s ease; }
.dots i.on { width: 24px; border-radius: 4px; background: var(--pop); }

/* ── Flow (steps 1–3) ────────────────────────────── */
/* Full-width header: arrow pinned far left, step count far right; content column centered. */
.flow { min-height: 100vh; padding-bottom: 48px; background: var(--bg); }
.flow-head { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: minmax(44px, 1fr) auto minmax(44px, 1fr); align-items: center; gap: 8px;
  padding: 10px clamp(12px, 3vw, 32px); background: var(--surface); border-bottom: 1px solid var(--border); }
.flow-head .icon-btn { justify-self: start; }
.flow-title { font-size: clamp(1rem, 3.6vw, 1.2rem); margin: 0; text-align: center; }
.flow-step { justify-self: end; font-size: .8rem; font-weight: 700; color: var(--text-tertiary); white-space: nowrap; }
.show-sm { display: none; }
@media (max-width: 480px) { .hide-sm { display: none; } .show-sm { display: inline; } .flow-title { font-size: 1rem; } }
.flow-inner { max-width: 540px; margin: 0 auto; padding: 0 16px; }
.flow-intro { color: var(--text-secondary); margin: 0; }
.progress { height: 4px; background: var(--surface-alt); overflow: hidden; margin-bottom: 24px; }

/* Container cards (pickup, services, make it yours, billing). */
.box { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: border-color .15s ease, box-shadow .2s ease; }
.box.open, .box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .10); }
.box-pad { padding: 18px; display: grid; gap: 14px; }
.box-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 16px 18px; }
.box-row + .box-row { border-top: 1px solid var(--border); }
.box-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-alt); color: var(--accent); }
.box-ic .ic { width: 22px; height: 22px; }
.box-main { display: grid; gap: 2px; min-width: 0; }
.box-main .label, .box-sub .label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); }
.box-main strong { font-size: 1.02rem; }
.box-main span:not(.label):not(.tbd) { color: var(--text-secondary); font-size: .9rem; }
.box-edit { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--accent);
  font: 700 .9rem/1 var(--font-body); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.box-edit:hover { border-color: var(--accent); background: var(--surface-alt); }
.box-edit:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.box-editor { display: grid; gap: 10px; padding: 4px 18px 18px; border-top: 1px dashed var(--border); }
.box-editor .btn { justify-self: start; }
.editor-label { margin: 10px 0 0; font-weight: 700; font-size: .9rem; color: var(--text-secondary); }
.box-note { padding: 12px 18px; background: var(--surface-alt); font-size: .88rem; color: var(--text-secondary); border-top: 1px solid var(--border); }
.box-sub { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-alt); }
.added { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--surface); font: 700 .78rem/1 var(--font-body); }
.added .ic { width: 14px; height: 14px; }
.box-price { font: 900 1.05rem/1 var(--font-display); white-space: nowrap; }
.progress span { display: block; height: 100%; width: 33%; background: var(--accent); transition: width .4s var(--ease); }
.flow-body { display: grid; gap: 16px; }
.flow-h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 10px 0 0; }
.flow-h2 .ic { color: var(--accent); }
.flow-sub { margin: 0 0 -8px; font-weight: 700; color: var(--text-secondary); }
.row-2 { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--r-md); cursor: pointer; transition: border-color .15s ease; }
.check:hover { border-color: var(--border-hover); }
.check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
.check small { display: block; color: var(--text-tertiary); font-size: .85rem; margin-top: 2px; }
.check:has(input:checked) { border-color: var(--accent); background: var(--surface-alt); }

.plan-mini { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); }
.plan-mini h2 { font-size: 1.2rem; margin: 10px 0 4px; }
.plan-mini p { margin: 0; color: var(--on-ink-2); font-size: .9rem; }
.plan-mini-price { font-size: 1rem; white-space: nowrap; }
.plan-mini-price strong { font: 900 2rem/1 var(--font-display); color: var(--on-ink); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips-scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.chip { position: relative; scroll-snap-align: start; flex: none; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; min-width: 76px; padding: 8px 14px;
  border: 2px solid var(--border); border-radius: var(--r-md); font-weight: 700; text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.chip small { font-weight: 500; font-size: .78rem; color: var(--text-tertiary); }
.chip span:hover { border-color: var(--border-hover); }
.chip input:checked + span { border-color: var(--accent); background: var(--surface-alt); color: var(--accent); }
.chip input:checked + span small { color: var(--accent); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.trust { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 10px; color: var(--text-secondary); font-size: .92rem; }
.trust li { display: flex; gap: 10px; align-items: center; }
.trust .ic { color: var(--accent); }
.trust a { color: var(--accent); }

#a-search-wrap gmp-place-autocomplete, #a-place { display: block; width: 100%; color-scheme: light; }
.pay-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface-alt); }
.pay-summary div { display: grid; gap: 2px; }
.pay-summary span { font-size: .88rem; color: var(--text-secondary); }

/* ── Account ─────────────────────────────────────── */
.app-account { background: var(--bg); }
.acct-head { background: var(--surface); border-bottom: 1px solid var(--border); }
.acct-head-inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.acct { display: grid; gap: 16px; max-width: 720px; padding-top: 24px; padding-bottom: 48px; }
.acct-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.acct-card h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 10px; }
.acct-card h2 { font-size: 1.15rem; }
.status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-row .fine { margin: 0; }
.pill { display: inline-flex; padding: 6px 12px; border-radius: 999px; font: 700 .8rem/1 var(--font-body); background: var(--surface-alt); color: var(--accent); }
.pill[data-s="confirmed"], .pill[data-s="delivered"] { background: var(--pop); color: var(--ink); }
.pill[data-s="cancelled"] { background: var(--surface-hover); color: var(--error); }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.when div { display: grid; gap: 2px; padding: 14px; border-radius: var(--r-md); background: var(--surface-alt); }
.when .label { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-tertiary); }
.when span:not(.label):not(.tbd) { color: var(--text-secondary); font-size: .9rem; }
.steps-line { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.steps-line li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: var(--r-md); border: 1.5px dashed var(--border); color: var(--text-tertiary); font-weight: 600; font-size: .85rem; text-align: center; }
.steps-line li .ic { width: 26px; height: 26px; }
.steps-line li.done { border-style: solid; border-color: var(--accent); color: var(--accent); background: var(--surface-alt); }
.acct-map { padding: 0; overflow: hidden; }
.map { height: 220px; background: var(--surface-alt); }
.addr { display: flex; gap: 12px; padding: 18px 22px; align-items: flex-start; }
.addr .ic { color: var(--accent); width: 22px; height: 22px; margin-top: 2px; }
.addr div { display: grid; gap: 2px; }
.acct-member { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; background: var(--ink); color: var(--on-ink); border-color: var(--border-on-ink); }
.acct-member h2 { margin: 10px 0 4px; }
.acct-member .fine { color: var(--on-ink-2); margin: 0; }
.acct-member .btn { background: var(--pop); color: var(--ink); box-shadow: 0 6px 0 0 var(--pop-hover); }
.video-frame.wide { aspect-ratio: 16 / 9; margin: 12px 0 16px; }
.video-frame.wide video { width: 100%; height: 100%; object-fit: cover; }
.checks-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--text-secondary); }
.checks-list li { display: flex; gap: 10px; }
.checks-list .ic { color: var(--accent); margin-top: .2em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font-weight: 600; box-shadow: var(--shadow-pop); }

@media (min-width: 900px) {
  .auth-split { grid-template-columns: 1fr 1fr; }
  .auth-pane { padding: 28px 48px; }
  .auth-art { display: block; }
}
@media (max-width: 420px) {
  .row-2, .when { grid-template-columns: 1fr; }
}
