/* Login, join and shop-settings pages (WhatsApp Web look). Uses tokens from app.css. */
body.page { overflow: auto; background: var(--bg); min-height: 100vh; }
body.page::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 222px; background: var(--accent-dark); z-index: -1; }
.page-top { max-width: 1000px; margin: 0 auto; padding: 22px 20px; display: flex; align-items: center; gap: 12px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .3px; text-transform: uppercase; }
.page-top .logo { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--accent-text); display: grid; place-items: center; }
.page-top .brand-img { height: 30px; width: auto; display: block; }
.page-top .logo svg { width: 22px; height: 22px; fill: currentColor; }
.page-top a { color: #fff; margin-left: auto; text-transform: none; font-weight: 500; text-decoration: none; opacity: .9; }
.page-card { max-width: 1000px; margin: 0 auto 40px; background: var(--panel); border-radius: 4px; box-shadow: 0 17px 50px rgba(11, 20, 26, .19); padding: 48px 56px; }
.page-card.narrow { max-width: 560px; }
.page-card h1 { font-weight: 300; font-size: 28px; margin: 0 0 8px; color: var(--text); }
.page-card .lead { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.stack { display: grid; gap: 14px; }
.phone-input { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--input); }
.phone-input span, .phone-input select { padding: 12px 12px; background: var(--panel-2); color: var(--muted); font-weight: 600; border: 0; border-right: 1px solid var(--border); font-size: 15px; max-width: 120px; }
.phone-input input { flex: 1; border: 0; outline: 0; padding: 12px; font-size: 17px; background: transparent; min-width: 0; letter-spacing: .5px; }
.otp-input { width: 100%; text-align: center; font-size: 30px; letter-spacing: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--input); outline: 0; font-variant-numeric: tabular-nums; }
.otp-input:focus, .phone-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.dev-code { background: var(--notice-bg); color: var(--notice-text); padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.dev-code b { font-size: 18px; letter-spacing: 3px; }
.alert { background: var(--ok-bg); color: var(--ok); padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.alert.err { background: var(--bad-bg); color: var(--danger); }
.small-link { color: var(--link); background: none; border: 0; cursor: pointer; font-size: 14px; padding: 0; }
.muted { color: var(--muted); }
.demo-box { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.demo-box code { background: var(--panel-2); padding: 2px 6px; border-radius: 4px; color: var(--text); }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.steps-list { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps-list li { counter-increment: s; display: flex; gap: 14px; margin-bottom: 16px; color: var(--muted); }
.steps-list li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* Join page */
.join-hero { text-align: center; }
.join-hero .avatar { margin: 0 auto 14px; }
.join-hero h1 { margin-bottom: 4px; }
.prod-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 24px 0; }
.prod-strip .pi { border-radius: 8px; overflow: hidden; aspect-ratio: 1; position: relative; background: var(--panel-2); }
.prod-strip .pi img, .prod-strip .pi svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.prod-strip .pi span { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 10px; }

/* Shop settings */
.form-section { padding: 22px 0; border-top: 1px solid var(--border); }
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section h2 { font-size: 17px; font-weight: 600; margin: 0 0 4px; }
.form-section > p { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.zone-row { display: grid; grid-template-columns: 2fr 1fr 1.2fr auto auto 140px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.zone-row input[type=text], .zone-row input[type=number], .zone-row select.provider { width: 100%; border: 1px solid var(--border); background: var(--input); border-radius: 8px; padding: 9px 10px; outline: 0; }
.zone-row select.provider { font-size: 12.5px; color: inherit; }
.zone-row label { font-size: 12.5px; color: var(--muted); display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.zone-head { font-size: 12px; color: var(--muted); }
.zone-row .x { width: 32px; height: 32px; border-radius: 50%; color: var(--danger); font-size: 18px; }
.zone-row .x:hover { background: var(--bad-bg); }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.emoji-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.emoji-pick label { cursor: pointer; }
.emoji-pick input { display: none; }
.emoji-pick span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; border: 2px solid transparent; background: var(--panel-2); }
.emoji-pick input:checked + span { border-color: var(--accent); }
.group-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.group-card .invite { display: flex; gap: 8px; margin-top: 10px; }
.group-card .invite input { flex: 1; min-width: 0; border: 1px solid var(--border); background: var(--panel-2); border-radius: 8px; padding: 8px 10px; font-size: 13.5px; }
.form-actions { position: sticky; bottom: 0; background: var(--panel); padding: 14px 0 4px; display: flex; gap: 10px; justify-content: flex-end; border-top: 1px solid var(--border); margin-top: 8px; }
a.btn { text-decoration: none; }

@media (max-width: 760px) {
  body.page::before { height: 120px; }
  .page-card { padding: 26px 18px; border-radius: 0; margin-bottom: 0; min-height: calc(100vh - 82px); box-shadow: none; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .split .side { display: none; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .zone-row { grid-template-columns: 1fr 90px 36px; }
  .zone-row .eta, .zone-head { display: none; }
  .zone-row label, .zone-row select.provider { grid-column: span 1; }
}
.page-top a.brand-link { margin-left: 0; opacity: 1; }

/* Legal pages + account deletion */
.legal { max-width: 760px; line-height: 1.65; font-size: 15.5px; }
.legal h1 { margin-top: 0; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal ul { padding-left: 20px; }
.legal li { margin: 4px 0; }
.legal .updated { color: var(--muted); font-size: 14px; margin-top: -6px; }
.legal-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 14px; }
.legal-links a, .legal a { color: var(--link); }
.danger-box { border: 1px solid #e5484d; border-radius: 10px; padding: 18px 20px; margin-top: 20px; }
.btn.danger { background: #d93036; color: #fff; border-color: #d93036; }
.btn.danger:hover { background: #b9252b; }
.text-input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--input); color: inherit; font-size: 15px; }
@media (max-width: 640px) { .legal { font-size: 15px; } }

/* Plans */
.plan-strip { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--accent-soft, #fff4ec); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.pcard { border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pcard.current { border: 2px solid #ea580c; }
.pcard h3 { margin: 0; font-size: 19px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pcard .tag { font-size: 12px; font-weight: 600; background: #ea580c; color: #fff; border-radius: 99px; padding: 2px 9px; }
.pcard .price { font-size: 26px; font-weight: 700; }
.pcard .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.pcard ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; flex: 1; }
.pcard form { margin: 0; }
.pcard .btn { width: 100%; justify-content: center; }
.pcard .or { text-align: center; font-size: 13px; color: var(--muted); }
.usage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.usage div { background: var(--input); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.usage b { display: block; font-size: 18px; color: var(--text, inherit); }
.usage .full b { color: #c2410c; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pay-table th, .pay-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
@media (max-width: 860px) { .plans-grid { grid-template-columns: 1fr; } .usage { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 480px) { .usage { grid-template-columns: 1fr; } }

/* Business profile: minimalist cover banner + round shop photo at the bottom-left */
.biz-media { margin: 6px 0 22px; }
.biz-banner { position: relative; aspect-ratio: 3 / 1; border-radius: 12px; background: #f5f1ec center / cover no-repeat; overflow: hidden; }
.biz-btn { position: absolute; right: 10px; bottom: 10px; background: rgba(25, 25, 25, .78); color: #fff; border-radius: 99px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.biz-logo-row { display: flex; gap: 14px; align-items: flex-start; margin: -48px 0 0 18px; position: relative; pointer-events: none; } /* overlaps the banner: let clicks through to "Add banner" */
.biz-logo-row > * { pointer-events: auto; }
.biz-logo { width: 96px; height: 96px; border-radius: 50%; border: 4px solid var(--panel, #fff); background: #e4e1dc; display: grid; place-items: center; overflow: hidden; flex: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-logo svg { width: 56%; height: 56%; fill: #fff; stroke: #fff; stroke-width: 0; }
.biz-logo svg path { fill: #fff; }
.biz-logo-actions { padding-top: 56px; }
.biz-logo-actions .btn { cursor: pointer; }
@media (max-width: 560px) { .biz-logo-row { margin: -40px 0 0 12px; } .biz-logo { width: 80px; height: 80px; } .biz-logo-actions { padding-top: 46px; } }

/* Shop link field: michocart.com/g/ + username */
.link-input span { font-weight: 500; font-size: 14px; white-space: nowrap; }
.link-input input { font-size: 15px; letter-spacing: 0; }
@media (max-width: 480px) { .link-input span { padding: 12px 6px 12px 10px; font-size: 13px; } }
.small-note { font-size: 12.5px; }

/* Verified vendor badge */
.vbadge { display: inline-block; vertical-align: -3px; flex: none; }
.vb-title { display: flex; align-items: center; gap: 10px; }
.vb-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--input); color: inherit; font-size: 15px; }
.vb-form input[type=file] { font-size: 14px; }

/* ---------- Shop settings: getting paid ---------- */
.pm-h { font-size: 15px; margin: 6px 0 8px; }
.pm-list { display: grid; gap: 8px; }
.pm { border: 1px solid var(--border, #e5e7eb); border-radius: 12px; background: var(--panel, #fff); }
.pm summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; cursor: pointer; }
.pm summary::-webkit-details-marker { display: none; }
.pm-ic { font-size: 22px; width: 30px; text-align: center; }
.pm-t { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.pm-t small { color: var(--muted, #6b7280); font-size: 12px; }
.pm-state { font-size: 12px; color: var(--muted, #6b7280); }
.pm[open] .pm-state { display: none; }
.chip-lock { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: #fff3e6; color: #b45309; white-space: nowrap; }
.pm.locked summary { opacity: .75; }
.pm-body { padding: 0 14px 12px 56px; display: grid; gap: 8px; }
.pm-input { display: flex; align-items: center; gap: 0; }
.pm-input i { font-style: normal; padding: 0 8px; color: var(--muted, #6b7280); background: var(--panel-2, #f3f4f6); border: 1px solid var(--border, #e5e7eb); border-right: 0; border-radius: 8px 0 0 8px; height: 40px; display: grid; place-items: center; }
.pm-input i + input { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.pm-input input { flex: 1; min-width: 0; }
@media (max-width: 600px) { .pm-body { padding-left: 14px; } }
