:root {
  --ink: #252525;
  --charcoal: #333333;
  --red: #C8102E;
  --red-dark: #9E1628;
  --wood: #8A5A32;
  --wood-dark: #6f4626;
  --tan: #B28A5B;
  --cream: #F5F1E8;
  --text: #333333;
  --muted: #666666;
  --caption: #888888;
  --line: #E5E5E5;
  --bg: #F4F4F2;
  --alt: #FAF9F6;
  --card: #FFFFFF;
  --danger: #b03a2e;
  --ok: #2f7a4b;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Poppins', 'Poppins Fallback', system-ui, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { text-decoration: none; display: grid; grid-template-columns: auto auto; line-height: 1; }
.logo-word { font-weight: 800; font-size: 26px; letter-spacing: -0.5px; color: var(--ink); }
.logo-num { font-weight: 800; font-size: 26px; color: var(--red-dark); order: -1; margin-right: 2px; }
.logo small { grid-column: 1 / -1; font-size: 8.5px; letter-spacing: 3.2px; font-weight: 700; margin-top: 4px; text-align: center; }
.mainnav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.mainnav > a { text-decoration: none; font-weight: 700; font-size: 12.5px; text-transform: uppercase; color: var(--ink); }
.mainnav > a.active { color: var(--red); }
.avatar-wrap { position: relative; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; border: 0; font-weight: 700; font-size: 12px; cursor: pointer; }
.menu { position: absolute; right: 0; top: 42px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.1); min-width: 200px; padding: 6px; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; text-decoration: none; border-radius: 6px; cursor: pointer; font-size: 13px; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; font-size: 12px; color: var(--muted); }
.menu-head b { display: block; color: var(--ink); font-size: 13px; }

/* ---------- layout ---------- */
.page { max-width: 1280px; margin: 20px auto 60px; padding: 0 24px; min-width: 0; }
.card { background: var(--card); border-radius: 10px; padding: 24px; }
.card + .card { margin-top: 12px; }
h1 { font-size: 20px; margin: 0 0 18px; }
h2 { font-size: 15px; margin: 0; }
h3 { font-size: 13.5px; margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; }
@media (max-width: 720px) { .grid2, .grid3 { grid-template-columns: 1fr; } .mainnav { gap: 14px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); padding: 9px 22px; border-radius: 6px; font-weight: 700; font-size: 12px; text-transform: uppercase; cursor: pointer; text-decoration: none; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--charcoal); }
.btn.outline-accent { border-color: var(--red); color: var(--red); }
.btn.outline-accent:hover { background: var(--red); color: #fff; }
.btn.accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn.accent:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn.sm { padding: 5px 12px; font-size: 11px; }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; color: var(--red); text-decoration: underline; cursor: pointer; padding: 0; font-size: 13px; }

/* ---------- forms ---------- */
label.f { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; }
label.f .req { color: var(--red); }
.input, select.input, textarea.input { width: 100%; border: 1px solid #ccc; border-radius: 5px; padding: 8px 10px; background: #fff; font-size: 13px; }
.input:focus { outline: 2px solid rgba(200,16,46,.35); border-color: var(--red); }
.input.sm { width: 70px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 3px 0; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--red); }
.section-title { color: var(--ink); font-weight: 600; font-size: 14px; margin: 22px 0 10px; }
.hint { font-size: 11px; color: var(--muted); }
.error { color: var(--danger); font-size: 12.5px; margin-top: 8px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-hero { background: linear-gradient(160deg, #252525 0%, #333333 60%, #4a3524 100%); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-hero .logo { align-self: flex-start; }
.auth-hero .logo-word { color: #fff; }
.auth-hero .logo-num { color: #fff; }
.auth-hero .logo small { color: #ddd; }
.auth-hero h2 { font-size: 30px; line-height: 1.25; margin: 0 0 14px; }
.auth-hero ul { padding: 0; list-style: none; margin: 22px 0 0; }
.auth-hero li { padding: 7px 0 7px 28px; position: relative; color: #e5e5e5; }
.auth-hero li::before { content: '✓'; position: absolute; left: 0; color: var(--tan); font-weight: 700; }
.offer-pill { margin-top: 26px; background: var(--red); color: #fff; border-radius: 8px; padding: 12px 16px; font-size: 13.5px; }
.offer-pill b { color: #fff; }
.plans-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.plans-mini div { border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 12px; font-size: 12px; }
.plans-mini b { display: block; color: var(--tan); font-size: 15px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form form { width: 100%; max-width: 380px; }
.auth-form .field { margin-bottom: 14px; }
.auth-form .btn { width: 100%; padding: 12px; }
.tabs-inline { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs-inline button { background: none; border: 0; padding: 10px 0; font-weight: 600; cursor: pointer; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs-inline button.active { color: var(--red); border-color: var(--red); }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-hero { padding: 32px 20px; } .plans-mini { grid-template-columns: 1fr; } }

/* ---------- tabs ---------- */
.tabbar { background: #fff; border-radius: 6px 6px 0 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px; padding: 12px 16px 0; }
.tabbar a { text-decoration: none; font-size: 13px; padding: 6px 0 8px; border-bottom: 2px solid transparent; font-weight: 500; }
.tabbar a.active { color: var(--red); border-color: var(--red); }
.tabbar a.blue { color: var(--wood); }
.tabbar a .count { font-size: 10.5px; background: var(--bg); border-radius: 10px; padding: 1px 7px; margin-left: 4px; color: var(--muted); }
.subchips { background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: center; gap: 14px; padding: 12px; flex-wrap: wrap; border-radius: 0 0 6px 6px; }
.subchips button { border: 1px solid #999; background: #fff; padding: 4px 14px; font-size: 10.5px; text-transform: uppercase; cursor: pointer; border-radius: 2px; }
.subchips button.active { border-color: var(--red); color: var(--red); }
.tabbar.single { border-radius: 6px; padding-bottom: 4px; }
.toolbar { display: flex; align-items: center; gap: 14px; margin: 18px 0; flex-wrap: wrap; }
.toolbar select { width: auto; }
.sort-dir { background: none; border: 0; cursor: pointer; font-size: 16px; color: var(--red); }

/* ---------- request list ---------- */
.empty-box { border: 1px solid #ccc; border-radius: 8px; padding: 12px; margin-top: 18px; }
.empty-inner { background: var(--alt); border-radius: 6px; min-height: 440px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.empty-inner .plus { width: 72px; height: 72px; border: 2px solid var(--red); border-radius: 50%; display: grid; place-items: center; color: var(--red); font-size: 46px; font-weight: 300; margin-right: 22px; }
.empty-inner span { font-size: 26px; line-height: 1.35; font-weight: 400; }
.req-list { display: grid; gap: 12px; margin-top: 8px; }
.req-card { background: #fff; border-radius: 8px; padding: 16px 18px; display: grid; grid-template-columns: 1fr auto; gap: 8px; text-decoration: none; border: 1px solid transparent; }
.req-card:hover { border-color: var(--red); }
.req-card .title { font-weight: 600; font-size: 14.5px; }
.req-card .meta { font-size: 12px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; }
.star { background: none; border: 0; cursor: pointer; font-size: 18px; color: #bbb; padding: 0; }
.star.on { color: var(--tan); }
.badge { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; background: #eee; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.badge.Draft { background: #eee; color: #555; }
.badge.Queued, .badge.Information.Submitted { background: #e7f0fb; color: #2d63a8; }
.badge.In.Progress { background: var(--cream); color: var(--wood-dark); }
.badge.Needs.Information { background: #fde8e8; color: var(--danger); }
.badge.Needs.Approval { background: #f3e8fd; color: #7a3db8; }
.badge.Approved, .badge.Sold { background: #e4f6ec; color: var(--ok); }
.badge.Closed { background: #e5e5e5; color: #444; }
.badge.Request.Revision, .badge.Revision.Due.To.Design.Error { background: #fff6d8; color: #946c00; }
.badge.new { background: #e7f0fb; color: #2d63a8; }
.badge.contacted, .badge.qualified { background: var(--cream); color: var(--wood-dark); }
.badge.converted { background: #e4f6ec; color: var(--ok); }
.badge.archived { background: #e5e5e5; color: #444; }

/* ---------- submit form ---------- */
.stepper { height: 3px; background: #ccc; border-radius: 8px 8px 0 0; overflow: hidden; }
.stepper div { height: 100%; background: var(--red); transition: width .3s; }
.acc { background: #fff; border-radius: 8px; margin-bottom: 8px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 36px; cursor: pointer; }
.acc-head h2 { font-size: 16px; }
.acc-head p { margin: 2px 0 0; font-size: 11.5px; }
.acc-toggle { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #ddd; color: #fff; font-size: 22px; cursor: pointer; flex-shrink: 0; }
.acc.open .acc-toggle { background: var(--red); }
.acc-body { padding: 0 36px 30px; }
.acc .done { color: var(--ok); margin-right: 8px; }
.uploader { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.upload-tile { width: 76px; height: 66px; border: 1px solid #ccc; border-radius: 6px; display: grid; place-items: center; cursor: pointer; color: var(--red); font-size: 24px; background: #fff; }
.file-chip { border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 12px; display: flex; align-items: center; gap: 8px; max-width: 260px; background: #fafafa; }
.file-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { border: 0; background: none; cursor: pointer; color: var(--danger); font-size: 14px; }
.door-finish { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.editor { border: 1px solid #ccc; border-radius: 5px; background: #fff; }
.editor-bar { border-bottom: 1px solid #ccc; padding: 4px 6px; display: flex; gap: 2px; }
.editor-bar button { border: 0; background: none; cursor: pointer; padding: 3px 7px; font-size: 12px; border-radius: 3px; }
.editor-bar button:hover { background: var(--bg); }
.editor-area { min-height: 110px; padding: 8px 10px; outline: none; font-size: 13px; }
.form-actions { display: flex; justify-content: space-between; margin-top: 22px; gap: 10px; flex-wrap: wrap; }
.review dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 16px; margin: 0; font-size: 13px; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 500; }

/* ---------- table / reports ---------- */
.filters { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr 1fr; gap: 14px 12px; align-items: center; font-size: 12px; }
@media (max-width: 860px) { .filters { grid-template-columns: auto 1fr; } }
.date-range { display: contents; }
.table-wrap { overflow-x: auto; border-bottom: 6px solid #e8e8e8; }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 900px; }
table.data th { text-align: left; font-weight: 600; padding: 14px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
table.data th .arr { color: var(--wood); font-size: 11px; margin-left: 3px; }
table.data td { padding: 11px 10px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
table.data tr:hover td { background: var(--alt); }
table.data td a { color: var(--wood-dark); }
.pager { display: inline-flex; border: 1px solid var(--line); border-radius: 3px; }
.pager button { background: #fff; border: 0; padding: 5px 12px; color: var(--red); cursor: pointer; font-size: 12px; }
.pager button + button { border-left: 1px solid var(--line); }
.pager button:disabled { color: #bbb; cursor: default; }

/* ---------- account ---------- */
.acct-tabs { display: flex; justify-content: center; gap: 4px 34px; border-bottom: 1px solid var(--line); flex-wrap: wrap; margin-bottom: 30px; }
.acct-tabs a { text-decoration: none; font-weight: 500; padding: 10px 18px; border-bottom: 2px solid transparent; color: #444; }
.acct-tabs a.active { color: var(--red); border-color: var(--red); }
.box { border: 1px solid var(--line); border-radius: 5px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.box-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed #bbb; padding-bottom: 12px; margin-bottom: 12px; }
.box p { margin: 8px 0; font-size: 13px; }
.icon-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ccc; background: #fff; cursor: pointer; }
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .plan-grid { grid-template-columns: 1fr; } }
.plan { border: 1.5px solid var(--line); border-radius: 8px; padding: 18px; }
.plan.current { border-color: var(--red); }
.plan .price { font-size: 20px; font-weight: 700; margin: 6px 0 10px; }
.plan ul { padding-left: 18px; margin: 0 0 14px; font-size: 12.5px; color: #444; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
pre { background: #171717; color: #eaeaea; padding: 14px; border-radius: 6px; overflow-x: auto; }
.keybox { background: var(--cream); border: 1px solid var(--tan); padding: 12px; border-radius: 6px; word-break: break-all; }

/* ---------- detail ---------- */
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.timeline { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.timeline li { padding: 6px 0 6px 16px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--wood); }
.comment { border-bottom: 1px solid #f0f0f0; padding: 10px 0; }
.comment b { font-size: 13px; }
.comment .tag { font-size: 10px; background: var(--ink); color: #fff; border-radius: 3px; padding: 1px 5px; margin-left: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { background: var(--bg); border-radius: 12px; padding: 3px 10px; font-size: 12px; }

/* ---------- modal / toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: #fff; border-radius: 10px; padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; }
.modal .field { margin-bottom: 12px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 6px; z-index: 60; font-size: 13px; }
.toast.err { background: var(--danger); }

/* ---------- auth: alerts, password toggle, forgot/reset ---------- */
.auth-title { font-size: 22px; margin: 0 0 18px; }
.auth-alert { border-radius: 8px; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; background: #fdecee; color: var(--red-dark); border: 1px solid #f3c4cb; }
.auth-alert.ok { background: #e9f5ee; color: var(--ok); border-color: #bfe3cc; }
.auth-row { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 64px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.pw-toggle:hover { color: var(--ink); background: var(--bg); }
.auth-form .btn:disabled { opacity: .7; cursor: progress; }
.auth-form .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* =====================================================================
   RESPONSIVE: full width on desktop, no sideways scrolling on phones
   ===================================================================== */
html, body { max-width: 100%; }
img, video, svg { max-width: 100%; height: auto; }
.input, select.input, textarea.input { max-width: 100%; min-width: 0; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 9px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }
.admin-only { display: none !important; }
body.is-admin .admin-only { display: inline-block !important; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }
.review dl.dl-narrow { grid-template-columns: 150px 1fr; }
.acct-card { padding: 36px 40px; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 18px; align-items: end; font-size: 12.5px; }
.fgroup { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fgroup > label { font-weight: 600; color: var(--ink); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters-actions { display: flex; justify-content: flex-end; margin: 16px 0; }
.filters-actions .btn { padding: 10px 44px; text-transform: none; font-size: 14px; }
.table-wrap { -webkit-overflow-scrolling: touch; max-width: 100%; }
.review-admin-list { display: grid; gap: 12px; }
/* star rating input */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 30px; line-height: 1; color: #d9d4cc; cursor: pointer; padding: 0 2px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #e0a100; }
.star-input input:focus-visible + label { outline: 2px solid var(--red); border-radius: 4px; }
.stars { color: #e0a100; letter-spacing: 1px; }
.stars-off { color: #d9d4cc; }

@media (max-width: 1100px) {
  .mainnav { gap: 18px; }
}
@media (max-width: 900px) {
  .topbar-inner { flex-wrap: nowrap; padding: 10px 16px; position: relative; }
  .logo-word, .logo-num { font-size: 22px; }
  .nav-toggle { display: block; margin-left: auto; }
  .mainnav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 14px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 26px -12px rgba(0,0,0,.18); }
  .mainnav.open { display: flex; }
  .mainnav > a { padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 13px; }
  body.is-admin .mainnav > a.admin-only { display: block !important; }
  .avatar-wrap { padding-top: 12px; display: flex; align-items: center; gap: 10px; }
  .menu { position: static; box-shadow: none; border: 0; padding: 0; margin-top: 4px; min-width: 0; flex: 1; }
  .menu.hidden { display: block !important; }
  .avatar { display: none; }
}
@media (max-width: 720px) {
  .page { padding: 0 12px; margin-top: 14px; }
  .card { padding: 18px 16px; }
  .acct-card { padding: 22px 14px; }
  h1 { font-size: 18px; }
  .grid-1-2 { grid-template-columns: 1fr; }
  .review dl, .review dl.dl-narrow { grid-template-columns: 1fr; gap: 2px; }
  .review dd { margin-bottom: 10px; }
  /* tab rows scroll sideways inside themselves instead of pushing the page wider */
  .tabbar, .subchips, .acct-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabbar::-webkit-scrollbar, .subchips::-webkit-scrollbar, .acct-tabs::-webkit-scrollbar { display: none; }
  .tabbar a, .subchips button, .acct-tabs a { white-space: nowrap; flex: 0 0 auto; }
  .tabbar { gap: 4px 20px; padding: 10px 14px 0; }
  .acct-tabs { gap: 0 4px; margin-bottom: 20px; }
  .acct-tabs a { padding: 10px 10px; }
  .toolbar { gap: 10px; }
  .toolbar .spacer { display: none; }
  .toolbar > .input, .toolbar > input { max-width: none !important; flex: 1 1 100%; }
  .acc-head { padding: 16px; }
  .acc-body { padding: 0 16px 20px; }
  .empty-inner { min-height: 260px; }
  .empty-inner .plus { width: 54px; height: 54px; font-size: 34px; margin-right: 14px; }
  .empty-inner span { font-size: 20px; }
  .req-card { padding: 14px; }
  .req-card .meta { gap: 4px 10px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .row { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .detail-head h1 { font-size: 18px; }
  .filters { grid-template-columns: 1fr; }
  .filters-actions .btn { width: 100%; }
  .box-head { gap: 10px; }
  .modal { padding: 18px; }
  .auth-hero { padding: 26px 18px; }
  .auth-hero h2 { font-size: 22px; }
  .auth-hero ul { display: none; }
  .auth-form { padding: 28px 16px 40px; }
  .toast { left: 12px; right: 12px; transform: none; text-align: center; }
}

/* ---------- review & payment ---------- */
.pay-card { margin-top: 12px; }
.pay-title { font-size: 17px; margin: 0 0 12px; }
.pkg-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.pkg-option { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 16px 14px 42px; cursor: pointer; background: #fff; }
.pkg-option input { position: absolute; left: 14px; top: 17px; width: 18px; height: 18px; accent-color: var(--red); margin: 0; }
.pkg-option.selected { border-color: var(--red); background: #fdf6f7; }
.pkg-option:hover { border-color: var(--ink); }
.pkg-name { font-weight: 700; color: var(--ink); font-size: 14.5px; }
.pkg-desc { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.pkg-price { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 800; font-size: 18px; color: var(--ink); }
.order-summary { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.order-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.order-summary .total { font-weight: 800; font-size: 17px; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 4px; }
.pay-free { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--cream); border-radius: 10px; padding: 14px 16px; }
.pay-free p { margin: 0; }
.offer-chip { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.pay-note { font-size: 12.5px; background: #fff8e6; border: 1px solid #f0dca3; color: #6b5200; border-radius: 8px; padding: 10px 12px; margin: 14px 0 0; }
.pay-note.warn { background: #fdecee; border-color: #f3c4cb; color: var(--red-dark); }
.secure-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.pay-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pay-page { max-width: 760px; }
.badge.awaiting-pay { background: #fdecee; color: var(--red-dark); }
@media (max-width: 720px) { .pay-actions .btn { width: 100%; } }
.order-summary .total:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
