/* دایرکت‌هاب — رنگ لاجوردی برای کار، فیروزه‌ای برای «مهلت باز»، زعفرانی برای «عجله کن» */

/* ---------- فونت ---------- */
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap;
  src: url("../fonts/vazirmatn-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-display: swap;
  src: url("../fonts/vazirmatn-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap;
  src: url("../fonts/vazirmatn-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-display: swap;
  src: url("../fonts/vazirmatn-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap;
  src: url("../fonts/vazirmatn-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Vazirmatn"; font-weight: 700; font-display: swap;
  src: url("../fonts/vazirmatn-latin-700-normal.woff2") format("woff2"); }

/* ---------- رنگ‌ها ---------- */
:root {
  --bg: #edf0f5;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --line: #dce1ea;
  --line-strong: #c6cedb;
  --text: #18233a;
  --muted: #66708a;
  --bar: #18233a;          /* نوار بالا */
  --bar-text: #c9d2e6;
  --accent: #2f4fa8;       /* لاجوردی */
  --accent-soft: #e6ebf8;
  --accent-text: #ffffff;
  --live: #13998f;         /* فیروزه‌ای: مهلت پاسخ باز */
  --live-soft: #ddf3f0;
  --warn: #9a6512;         /* زعفرانی */
  --warn-mark: #e3a21a;
  --warn-soft: #fbf0da;
  --danger: #b8352a;
  --danger-soft: #fbe6e3;
  --out-bubble: #2f4fa8;
  --out-text: #ffffff;
  --in-bubble: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --focus: 0 0 0 3px rgba(47, 79, 168, .28);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1522;
    --surface: #161e2e;
    --surface-2: #1c2638;
    --line: #29344b;
    --line-strong: #3a4763;
    --text: #e6eaf3;
    --muted: #93a0bb;
    --bar: #0b101b;
    --bar-text: #a9b5cf;
    --accent: #8ea7f2;
    --accent-soft: #233154;
    --accent-text: #0f1522;
    --live: #3cc7ba;
    --live-soft: #15332f;
    --warn: #e7b858;
    --warn-mark: #e7b858;
    --warn-soft: #362a12;
    --danger: #ec8a7e;
    --danger-soft: #3b1f1c;
    --out-bubble: #2d4a9a;
    --out-text: #f1f4fb;
    --in-bubble: #1c2638;
    --focus: 0 0 0 3px rgba(142, 167, 242, .35);
  }
}

/* ---------- پایه ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 14px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 22px; line-height: 1.4; font-weight: 700; margin: 0 0 16px; }
h2 { font-size: 15px; font-weight: 700; margin: 0 0 12px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.ltr { direction: ltr; unicode-bidi: embed; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- نوار بالا ---------- */
.topbar {
  display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 20px;
  background: var(--bar); color: var(--bar-text);
}
.brand { display: inline-flex; align-items: center; gap: 0; font-weight: 700; font-size: 16px; color: #fff; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand span { color: #7fe0d6; }
.brand::before {
  content: ""; width: 22px; height: 22px; margin-left: 8px; border-radius: 7px 7px 7px 2px;
  background: linear-gradient(135deg, #4f6fd0, #2f4fa8); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
}
.nav { display: flex; gap: 2px; flex: 1; align-self: stretch; }
.nav a { display: flex; align-items: center; padding: 0 12px; color: var(--bar-text); border-bottom: 2px solid transparent; }
.nav a:hover { color: #fff; text-decoration: none; }
.nav a.active { color: #fff; font-weight: 500; border-bottom-color: #7fe0d6; }
.user-box { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.user-box form { margin: 0; }
.user-box .btn { background: transparent; color: var(--bar-text); border-color: rgba(255, 255, 255, .18); }
.user-box .btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---------- چیدمان عمومی ---------- */
.container { max-width: 1120px; margin: 0 auto; padding: 28px 20px 48px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px; overflow-x: auto;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-2.grid-main { grid-template-columns: 2fr 1fr; }
.grid-2 > * { min-width: 0; }
@media (max-width: 800px) { .grid-2, .grid-2.grid-main { grid-template-columns: 1fr; } }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }

/* ---------- دکمه و فرم ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  border-radius: var(--radius-sm); padding: 7px 14px; font: inherit; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.1); }
.btn-danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, var(--line)); }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: 3px 10px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.htmx-request.btn, .htmx-request .btn[type=submit] { opacity: .6; }

.input, select.input, textarea.input {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 13px; font-weight: 500; }
.errorlist { color: var(--danger); margin: 4px 0 0; padding: 0; list-style: none; font-size: 12px; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }

/* ---------- جدول ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: right; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 500; font-size: 12px; background: var(--surface-2); }
th:first-child { border-top-right-radius: var(--radius-sm); }
th:last-child { border-top-left-radius: var(--radius-sm); }
tr:last-child td { border-bottom: 0; }
td form { margin: 0; display: inline-flex; gap: 6px; }

/* ---------- برچسب و پیام ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 99px;
  font-size: 12px; font-weight: 500; background: var(--surface-2); color: var(--muted);
}
.badge-ok { background: var(--live-soft); color: var(--live); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; border: 1px solid transparent; }
.flash.success { background: var(--live-soft); color: var(--live); }
.flash.error { background: var(--danger-soft); color: var(--danger); }
.flash.info, .flash.warning { background: var(--warn-soft); color: var(--warn); }

/* ---------- ورود ---------- */
.login-wrap {
  min-height: 100%; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg);
}
.login-card { width: 100%; max-width: 380px; padding: 28px; }
.login-brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.login-brand::before {
  content: ""; width: 30px; height: 30px; border-radius: 9px 9px 9px 3px;
  background: linear-gradient(135deg, #4f6fd0, #2f4fa8);
}
.login-sub { color: var(--muted); margin-bottom: 22px; }
.login-card .btn-primary { width: 100%; padding: 10px; }

/* ---------- صندوق دایرکت ---------- */
.inbox { display: grid; grid-template-columns: 360px 1fr; height: calc(100vh - 56px); height: calc(100dvh - 56px); }
.inbox-side { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }
.inbox-filters { padding: 14px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.tabs { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border-radius: 10px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs a { padding: 3px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { background: var(--surface); color: var(--text); font-weight: 500; box-shadow: 0 1px 2px rgba(24, 35, 58, .12); }
.conv-list { overflow-y: auto; flex: 1; }

.conv-item {
  position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 12px;
  padding: 12px 14px 14px; border-bottom: 1px solid var(--line); color: var(--text);
}
.conv-item:hover { background: var(--surface-2); text-decoration: none; }
.conv-item.active { background: var(--accent-soft); }
.conv-item.active::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 3px; background: var(--accent); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 15px; text-transform: uppercase;
}
.conv-item.active .avatar { background: var(--surface); }
.conv-body { min-width: 0; display: flex; flex-direction: column; }
.conv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.conv-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.conv-preview { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-item.is-unread .conv-name { font-weight: 700; }
.conv-item.is-unread .conv-preview { color: var(--text); }
.conv-meta { display: flex; gap: 10px; align-items: center; margin-top: 3px; font-size: 12px; color: var(--muted); }
.who { display: inline-flex; align-items: center; gap: 5px; }
.who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.who.is-free::before { background: var(--warn-mark); }
.who.is-free { color: var(--warn); }
.page-tag { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread {
  margin-right: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  display: inline-grid; place-items: center; background: var(--accent); color: var(--accent-text); font-size: 11px; font-weight: 700;
}
.window-closed { color: var(--muted); }

/* نوار مهلت ۲۴ ساعته: پرشدگی = زمان باقی‌مانده */
.window-meter { display: block; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.window-meter i { display: block; height: 100%; min-width: 3px; background: var(--live); border-radius: 3px; }
.is-soon .window-meter i, .window-meter.is-soon i { background: var(--warn-mark); }
.is-late .window-meter i, .window-meter.is-late i { background: var(--danger); }
.conv-item .window-meter { position: absolute; left: 14px; right: 66px; bottom: 5px; height: 2px; background: transparent; }

.pane { display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.pane-head {
  display: flex; align-items: center; gap: 12px; padding: 10px 18px; background: var(--surface);
  border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.pane-title { font-weight: 700; font-size: 15px; }
.pane-actions { display: flex; gap: 6px; margin-right: auto; align-items: center; flex-wrap: wrap; }
.pane-actions form { margin: 0; display: flex; gap: 6px; }
.pane-actions select { width: auto; padding: 3px 8px; font-size: 12px; }

.window-bar {
  display: flex; align-items: center; gap: 14px; padding: 7px 18px; font-size: 12px;
  background: var(--surface); border-bottom: 1px solid var(--line); color: var(--live);
}
.window-bar .window-meter { flex: 1; max-width: 260px; }
.window-bar.is-soon { color: var(--warn); }
.window-bar.is-late { color: var(--danger); }
.window-bar.closed { background: var(--danger-soft); color: var(--danger); border-bottom-color: transparent; }

.messages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 68%; display: flex; flex-direction: column; }
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 8px 13px; border-radius: 16px; overflow-wrap: anywhere; line-height: 1.8; }
.bubble .text { white-space: pre-wrap; }
.bubble .att + .text { margin-top: 6px; }
.msg.in .bubble { background: var(--in-bubble); border: 1px solid var(--line); border-top-right-radius: 5px; }
.msg.out .bubble { background: var(--out-bubble); color: var(--out-text); border-top-left-radius: 5px; }
.msg.out.app .bubble { background: transparent; color: var(--text); border: 1px dashed var(--line-strong); }
.msg.out.failed .bubble { background: var(--danger-soft); color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent); }
.msg-meta { font-size: 11px; color: var(--muted); margin-top: 3px; padding: 0 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.msg-meta form { margin: 0; }
.att img, .att video { max-width: 280px; max-height: 320px; border-radius: 10px; display: block; }
.att audio { max-width: 280px; }
.att-missing { font-size: 12px; opacity: .85; }

.composer { border-top: 1px solid var(--line); background: var(--surface); padding: 10px 18px 12px; }
.composer form { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { resize: none; min-height: 42px; max-height: 160px; border-radius: 12px; }
.composer .file-btn { position: relative; overflow: hidden; }
.composer .file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-name { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pane-error { padding: 8px 18px; background: var(--danger-soft); color: var(--danger); font-size: 13px; }
.pane-empty { flex: 1; display: grid; place-items: center; color: var(--muted); padding: 20px; text-align: center; }
.back-link { display: none; }

/* ---------- کامنت‌ها ---------- */
.cm-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.cm-filters .input { width: auto; flex: 1 1 200px; }
.cm-list { display: flex; flex-direction: column; gap: 12px; }
.cm-thread { padding: 16px 18px; margin: 0; border-right: 3px solid var(--warn-mark); }
.cm-thread.cm-done { border-right-color: var(--line); }
.cm-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cm-text { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }
.cm-hidden > .cm-text { opacity: .5; }
.cm-replies { margin-top: 12px; padding-right: 14px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.cm-reply.own .cm-text { color: var(--accent); }
.cm-mini { display: flex; gap: 12px; margin-top: 2px; }
.cm-mini form { display: inline; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.linkish:hover { color: var(--accent); }
.linkish.danger:hover { color: var(--danger); }
.cm-err { color: var(--danger); margin-top: 4px; }
.cm-private { margin-top: 10px; padding: 7px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.cm-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin-top: 14px; }
.cm-actions details { flex: 0 0 auto; }
.cm-actions details[open] { flex: 1 1 100%; order: -1; }
.cm-actions summary { list-style: none; display: inline-flex; }
.cm-actions summary::-webkit-details-marker { display: none; }
.cm-form { display: flex; gap: 6px; margin-top: 8px; align-items: flex-end; }
.cm-form textarea { flex: 1; min-width: 0; }
.cm-new { position: sticky; top: 10px; z-index: 5; margin: 0 auto 10px; display: block; }
.cm-new[hidden] { display: none; }

/* ---------- دفترچه پیج ---------- */
.book-form .card { margin-bottom: 16px; }
.book-form textarea { resize: vertical; }
.book-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.check-row { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.day {
  display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border: 1px solid var(--line-strong);
  border-radius: 99px; font-size: 13px; cursor: pointer;
}
.days .day { color: var(--text); margin: 0; }
.day:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.time-row { display: flex; gap: 12px; flex-wrap: wrap; }
.time-row .field { flex: 1 1 140px; }

/* ---------- پیشنهاد جواب و جواب آماده ---------- */
.ai-btn { white-space: nowrap; }
.ai-note { margin-top: 6px; padding: 7px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--warn); white-space: pre-wrap; }
.ai-note[hidden] { display: none; }
.canned-panel {
  position: fixed; z-index: 60; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(15, 21, 34, .22); padding: 8px; width: min(420px, calc(100vw - 24px));
  max-height: 50vh; display: flex; flex-direction: column; gap: 6px;
}
.canned-panel[hidden], .canned-search[hidden] { display: none; }
.canned-items { overflow: auto; }
.canned-item { padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.canned-item span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.canned-item.active, .canned-item:hover { background: var(--accent-soft); }
.canned-empty { padding: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.cr-add { margin-bottom: 16px; }
.cr-list { display: flex; flex-direction: column; gap: 10px; }
.cr-item { margin: 0; }
.cr-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.cr-edit { margin-top: 8px; }
.cr-edit form { margin-top: 8px; }

/* ---------- موبایل ---------- */
@media (max-width: 760px) {
  .topbar { gap: 10px; padding: 0 12px; }
  .brand { font-size: 15px; }
  .nav { overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 0 9px; white-space: nowrap; font-size: 13px; }
  .user-box > span { display: none; }
  .user-box { flex-shrink: 0; }

  .container { padding: 18px 12px 40px; }
  .card { padding: 16px; }
  th, td { white-space: nowrap; padding: 10px 8px; }
  h1 { font-size: 19px; }

  .inbox { grid-template-columns: 1fr; }
  .inbox.has-selected .inbox-side { display: none; }
  .inbox:not(.has-selected) .pane { display: none; }
  .pane-head { padding: 8px 12px; gap: 8px; }
  .pane-actions { margin-right: 0; width: 100%; }
  .window-bar { padding: 6px 12px; }
  .messages { padding: 14px 12px; }
  .msg { max-width: 86%; }
  .att img, .att video { max-width: 220px; }
  .composer { padding: 8px 10px; }
  .composer form { gap: 6px; }
  .composer .btn { padding: 7px 10px; }
  .back-link { display: inline-flex !important; }
  .ai-lbl { display: none; }
}
/* ---------- گزارش ---------- */
.rp-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.rp-filters select { width: auto; }
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; }
.rp-stat { padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.rp-stat:last-child { border-left: 0; }
.rp-num { font-size: 24px; font-weight: 700; line-height: 1.3; }
.rp-label { font-size: 12px; color: var(--muted); }
.rp-stat.is-bad .rp-num { color: var(--danger); }
.rp-wait { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.rp-wait:last-child { border-bottom: 0; }
.rp-wait:hover { text-decoration: none; background: var(--surface-2); }
.rp-wait-time { font-size: 12px; color: var(--live); white-space: nowrap; }
.rp-wait-time.is-soon { color: var(--warn); }
.rp-wait-time.is-late { color: var(--danger); }
@media (max-width: 760px) {
  .rp-stats { grid-template-columns: 1fr 1fr; }
  .rp-stat:nth-child(2) { border-left: 0; }
  .rp-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .rp-num { font-size: 20px; }
}
/* ---------- خرید و اشتراک ---------- */
.btn-lg { padding: 11px 22px; font-size: 15px; border-radius: 10px; }
.sub-banner { background: var(--warn-soft); color: var(--warn); padding: 8px 20px; font-size: 13px; text-align: center; }
.sub-banner a { font-weight: 700; margin-right: 8px; }
.checkout { min-height: 100%; padding: 28px 16px 48px; max-width: 980px; margin: 0 auto; }
.checkout-brand { font-weight: 700; font-size: 20px; margin-bottom: 20px; }
.checkout-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.checkout-form h1 { font-size: 20px; }
.checkout-form .btn-primary { width: 100%; }
.checkout-summary .price { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
.checkout-summary .price span { font-size: 13px; color: var(--muted); font-weight: 400; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.checks li { position: relative; padding-right: 20px; line-height: 1.8; }
.checks li::before { content: ""; position: absolute; right: 2px; top: .7em; width: 8px; height: 5px; border: solid var(--live); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.result-card { max-width: 560px; margin: 0 auto; text-align: center; padding: 32px; }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 18px; }
.plan-option { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); cursor: pointer; }
.plan-option input { grid-row: span 2; align-self: center; }
.plan-option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.plan-option-name { font-weight: 500; }
.plan-option-price { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .checkout-grid { grid-template-columns: 1fr; } .checkout-summary { order: -1; } }
