/* ==========================================================
   SST · School Smart Timetable — สไตล์หลัก
   ========================================================== */
:root {
  --navy: #1d3768;
  --navy-2: #24447e;
  --navy-3: #2d5394;
  --navy-dark: #152a52;
  --accent: #eef3fb;
  --gold: #e8c35a;
  --gold-2: #d6a93a;
  --gold-soft: #fbf1d3;
  --bg: #eef2f8;
  --card: #ffffff;
  --line: #e1e7f0;
  --ink: #1f2a3d;
  --muted: #6b7a90;
  --green: #2e7d32;
  --red: #c62828;
  --amber: #d98b00;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(22, 42, 82, .06), 0 1px 2px rgba(22, 42, 82, .05);
  --topbar-h: 62px;
  --sidebar-w: 248px;
}

html, body { font-family: 'Sarabun', 'Leelawadee UI', 'Tahoma', sans-serif; color: var(--ink); }
body.app { background: var(--bg); font-size: 15.5px; }
h1, h2, h3, h4, h5, .page-title, .brand-title, .nav-section, .btn, .stat-num { font-family: 'Prompt', 'Sarabun', sans-serif; }
a { color: var(--navy-3); }
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold-2) !important; }
.bg-navy { background: var(--navy) !important; color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--topbar-h); z-index: 1040;
  display: flex; align-items: center; gap: .5rem; padding: 0 1rem;
  background: linear-gradient(100deg, var(--navy-dark) 0%, var(--navy) 45%, var(--navy-3) 100%);
  color: #fff; box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}
.topbar .btn-icon { color: #fff; font-size: 1.5rem; padding: 0 .4rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; min-width: 0; }
.brand-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.12); display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-title { font-weight: 600; color: var(--gold); font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-title small { color: #fff; font-weight: 500; font-size: .78rem; opacity: .9; }
.brand-sub { font-size: .72rem; color: rgba(255,255,255,.75); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: .45rem; }
.pill { display: inline-flex; align-items: center; gap: .35rem; border-radius: 999px; padding: .32rem .8rem; font-size: .82rem; font-weight: 600; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; white-space: nowrap; }
.pill:hover { color: #fff; background: rgba(255,255,255,.16); }
.pill-gold { background: var(--gold-soft); color: #7a5a00; border-color: var(--gold); }
.pill-user, .pill-school { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.topbar .dropdown-menu { font-size: .92rem; }

/* ---------- Layout ---------- */
.layout { display: flex; padding-top: var(--topbar-h); min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--navy); color: #cfd9ec;
  position: fixed; top: var(--topbar-h); bottom: 0; left: 0; overflow-y: auto; z-index: 1030;
  display: flex; flex-direction: column;
}
@media (max-width: 991.98px) {
  .sidebar.offcanvas-lg { top: 0; z-index: 1050; }
}
.sidebar .offcanvas-header { background: var(--navy-dark); }
.sidebar.offcanvas-lg, .sidebar.offcanvas-lg.show { background-color: var(--navy) !important; }
@media (min-width: 992px) { .sidebar.offcanvas-lg { position: fixed !important; top: var(--topbar-h); bottom: 0; left: 0; visibility: visible !important; transform: none !important; } }
.text-purple { color: #7c3aed; }
.sidebar-nav { padding: .6rem .6rem 1rem; flex: 1; }
.nav-section { font-size: .7rem; letter-spacing: .08em; color: #8ea3c8; margin: 1rem .6rem .35rem; font-weight: 600; }
.nav-section:first-child { margin-top: .3rem; }
.sidebar .nav-link {
  display: flex; align-items: center; gap: .7rem; color: #e3eaf7; padding: .55rem .75rem; border-radius: 10px;
  font-size: .95rem; font-weight: 500; margin-bottom: 2px; text-decoration: none;
}
.sidebar .nav-link i { font-size: 1.05rem; width: 1.3rem; text-align: center; opacity: .9; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar .nav-link.active { background: rgba(255,255,255,.15); color: #fff; box-shadow: inset 3px 0 0 var(--gold); }
.nav-badge { margin-left: auto; background: rgba(255,255,255,.15); color: #fff; border-radius: 999px; font-size: .72rem; padding: .05rem .5rem; font-weight: 600; }
.nav-badge-alert { background: #ef5350; }
.sidebar-foot { font-size: .72rem; color: #7f93b8; padding: .6rem 1.2rem 1rem; }
.content { flex: 1; min-width: 0; padding: 1.5rem 1.6rem 3rem; margin-left: var(--sidebar-w); }
@media (max-width: 991.98px) { .content { margin-left: 0; padding: 1rem .9rem 3rem; } }

/* ---------- Page head ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .8rem; margin-bottom: 1.2rem; }
.page-title { font-size: 1.55rem; font-weight: 600; color: var(--navy); margin: 0; display: flex; align-items: center; gap: .55rem; }
.pt-icon { font-size: 1.35rem; }
.page-sub { color: var(--muted); font-size: .93rem; margin-top: .2rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- Cards ---------- */
.card-soft { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-soft > .card-header { background: transparent; border-bottom: 1px solid var(--line); padding: .9rem 1.2rem; font-weight: 600; font-family: 'Prompt', sans-serif; color: var(--navy); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card-soft > .card-body { padding: 1.2rem; }
.card-title-sm { font-family: 'Prompt', sans-serif; font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-bottom: .9rem; display: flex; align-items: center; gap: .45rem; }
.card-navy { background: linear-gradient(120deg, var(--navy-dark), var(--navy-2)); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

.stat-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); border-left: 5px solid var(--navy-3); padding: 1rem 1.2rem; height: 100%; }
.stat-card.c-green { border-left-color: #2e9d55; }
.stat-card.c-gold { border-left-color: var(--gold-2); }
.stat-card.c-red { border-left-color: #d84343; }
.stat-num { font-size: 2rem; font-weight: 600; color: var(--navy); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-weight: 500; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover, .btn-navy:focus { background: var(--navy-dark); border-color: var(--navy-dark); color: #fff; }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.btn-gold { background: linear-gradient(180deg, #f0cf6c, var(--gold-2)); border: 1px solid #c9992b; color: #3b2a00; }
.btn-gold:hover { background: linear-gradient(180deg, #ecc65a, #c99a2e); color: #2a1e00; }
.btn-soft { background: #eef2f8; border: 1px solid var(--line); color: var(--navy); }
.btn-soft:hover { background: #e2e9f4; }
.btn-xs { padding: .12rem .45rem; font-size: .78rem; border-radius: 7px; }
.quick-btn { display: block; text-align: left; border: 1.5px solid var(--navy); border-radius: 12px; padding: .7rem 1rem; color: var(--navy); font-weight: 600; text-decoration: none; margin-bottom: .55rem; font-family: 'Prompt', sans-serif; background: #fff; }
.quick-btn:hover { background: #f1f5fc; color: var(--navy-dark); }
.quick-btn.primary { background: var(--navy); color: #fff; }
.quick-btn.gold { background: linear-gradient(90deg, #f2d277, var(--gold)); border-color: var(--gold-2); color: #3b2a00; }

/* ---------- Tables ---------- */
.table-sst { margin: 0; }
.table-sst > thead > tr > th { background: var(--navy); color: #fff; font-weight: 600; font-family: 'Prompt', sans-serif; font-size: .88rem; border: 0; padding: .7rem .75rem; white-space: nowrap; }
.table-sst > thead > tr > th:first-child { border-top-left-radius: 10px; }
.table-sst > thead > tr > th:last-child { border-top-right-radius: 10px; }
.table-sst > tbody > tr > td { vertical-align: middle; border-color: var(--line); padding: .6rem .75rem; }
.table-sst > tbody > tr:hover > td { background: #f7f9fd; }
.chip { display: inline-block; background: #eef3fb; color: var(--navy-2); border: 1px solid #dbe5f3; border-radius: 999px; padding: .08rem .6rem; font-size: .8rem; margin: .1rem .15rem .1rem 0; white-space: nowrap; }
.chip-gold { background: var(--gold-soft); border-color: #f0dc9f; color: #7a5a00; }
.chip-purple { background: #f3e9fd; border-color: #e3d1f8; color: #6a2fa5; }
.chip-green { background: #e6f5ea; border-color: #c6e7cf; color: #1f6b33; }
.chip-red { background: #fdeaea; border-color: #f6caca; color: #a12424; }
.color-dot { display: inline-block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); vertical-align: middle; }

.loadbar { height: 8px; background: #e8edf5; border-radius: 99px; overflow: hidden; min-width: 70px; }
.loadbar > span { display: block; height: 100%; border-radius: 99px; background: #2e9d55; }
.loadbar.green > span { background: #2e9d55; } .loadbar.amber > span { background: #e9a514; }
.loadbar.red > span { background: #d23b3b; } .loadbar.blue > span { background: #3d7be0; } .loadbar.gray > span { background: #b8c2d2; }
.progress-sst { height: 10px; background: #e8edf5; border-radius: 99px; }
.progress-sst .progress-bar { background: #2e8b3d; border-radius: 99px; }

.info-box { background: #eaf4fe; border-left: 4px solid #2f80d1; border-radius: 10px; padding: .7rem 1rem; color: #1d4f86; font-size: .92rem; }
.warn-box { background: #fff7e3; border-left: 4px solid var(--gold-2); border-radius: 10px; padding: .7rem 1rem; color: #6a4b00; font-size: .92rem; }
.danger-box { background: #fdecec; border-left: 4px solid #d23b3b; border-radius: 10px; padding: .7rem 1rem; color: #8b1d1d; font-size: .92rem; }

/* ---------- Forms ---------- */
.form-label { font-weight: 600; font-size: .9rem; color: #34425a; margin-bottom: .3rem; }
.form-control, .form-select { border-radius: 10px; border-color: #d3dbe8; }
.form-control:focus, .form-select:focus { border-color: var(--navy-3); box-shadow: 0 0 0 .2rem rgba(45, 83, 148, .15); }
.modal-content { border-radius: 16px; border: 0; }
.modal-header { border-bottom-color: var(--line); }
.modal-title { font-family: 'Prompt', sans-serif; color: var(--navy); font-weight: 600; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .25rem .8rem; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; }
.day-toggle .btn-check + .btn { min-width: 98px; }
.day-toggle .btn-check:checked + .btn { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Timetable grid (หน้าจอ) ---------- */
.tt-wrap { overflow-x: auto; }
.tt { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; table-layout: fixed; }
.tt thead th:first-child { width: 104px; }
.tt-mini thead th:first-child { width: 40px; }
.tt th { background: var(--navy); color: #fff; text-align: center; font-family: 'Prompt', sans-serif; font-weight: 600; padding: .65rem .3rem; font-size: .92rem; }
.tt th:first-child { border-top-left-radius: 12px; } .tt th:last-child { border-top-right-radius: 12px; }
.tt td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; padding: 0; height: 64px; background: #fff; }
.tt td:first-child { border-left: 1px solid var(--line); }
.tt .tt-period { background: var(--accent); width: 104px; font-weight: 600; color: var(--navy); font-size: .9rem; padding: .3rem; }
.tt .tt-period small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.tt .tt-break td { height: 30px; background: #f6f8fb; color: var(--muted); font-size: .82rem; font-weight: 600; }
.tt-cell { position: relative; height: 100%; min-height: 62px; padding: .35rem .3rem; display: flex; flex-direction: column; justify-content: center; align-items: center; line-height: 1.25; }
.tt-cell .s { font-weight: 700; font-size: .9rem; color: #1b2433; }
.tt-cell .t { font-size: .76rem; color: #4f5d73; margin-top: .1rem; }
.tt-cell .r { font-size: .72rem; color: #7c3aed; font-weight: 600; }
.tt-cell .lock { position: absolute; top: 3px; right: 5px; font-size: .7rem; color: #7a5a00; }
.tt-cell.has-badge { padding-top: 17px; }
.tt-cell .comb { position: absolute; top: 3px; left: 5px; font-size: .64rem; background: #7c3aed; color: #fff; border-radius: 5px; padding: 0 .3rem; }
.tt.editable .tt-slot { cursor: pointer; transition: box-shadow .12s; }
.tt.editable .tt-slot:hover { box-shadow: inset 0 0 0 2px var(--navy-3); }
.tt-slot.st-ok { background: #e7f7ec !important; box-shadow: inset 0 0 0 2px #45b36b; }
.tt-slot.st-busy { background: repeating-linear-gradient(45deg, #fbeaea, #fbeaea 6px, #fff 6px, #fff 12px) !important; cursor: not-allowed; }
.tt-slot.st-unav { background: repeating-linear-gradient(45deg, #eceff4, #eceff4 6px, #fff 6px, #fff 12px) !important; }
.tt-slot .why { font-size: .68rem; color: #a12424; padding: 0 .2rem; }
.tt-mini { font-size: .72rem; min-width: 520px; }
.tt-mini td { height: 38px; }
.tt-mini .tt-cell { min-height: 36px; padding: .15rem; }
.tt-mini .tt-cell .s { font-size: .72rem; }
.tt-mini .tt-cell .t { font-size: .64rem; }
.tt-mini .tt-period { width: 54px; font-size: .72rem; }
.tt-mini th { font-size: .74rem; padding: .35rem .2rem; }

.palette-item { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; margin-bottom: .4rem; cursor: pointer; background: #fff; }
.palette-item:hover { border-color: var(--navy-3); }
.palette-item.active { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; background: #f3f7ff; }
.palette-item .sw { width: 12px; align-self: stretch; border-radius: 6px; flex: none; }
.palette-item .nm { font-weight: 600; font-size: .9rem; }
.palette-item .sub { font-size: .76rem; color: var(--muted); }
.palette-item .cnt { margin-left: auto; font-weight: 700; font-size: .85rem; white-space: nowrap; }
.palette-item .cnt.done { color: var(--green); } .palette-item .cnt.todo { color: var(--amber); } .palette-item .cnt.over { color: var(--red); }

/* availability grid (เงื่อนไข) */
.av-grid td.av { cursor: pointer; height: 46px; font-size: .78rem; }
.av-grid td.av.off { background: repeating-linear-gradient(45deg, #fde3e3, #fde3e3 6px, #fff5f5 6px, #fff5f5 12px); color: #a12424; font-weight: 600; }
.av-grid td.av.school-off { background: #eceff4; color: #6b7a90; }
.av-grid td.av:hover { box-shadow: inset 0 0 0 2px var(--navy-3); }

/* ---------- Auth ---------- */
.auth-body { min-height: 100vh; background: radial-gradient(circle at 20% 10%, #2d5394 0, #1d3768 45%, #132649 100%); display: flex; align-items: center; justify-content: center; padding: 1.5rem; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.35); overflow: hidden; }
.auth-card.wide { max-width: 640px; }
.auth-head { background: linear-gradient(120deg, var(--navy-dark), var(--navy-3)); color: #fff; padding: 1.6rem 1.8rem 1.3rem; }
.auth-head h1 { font-size: 1.3rem; color: var(--gold); margin: .4rem 0 .1rem; font-weight: 600; }
.auth-head p { margin: 0; font-size: .9rem; opacity: .85; }
.auth-body-in { padding: 1.6rem 1.8rem 1.8rem; }

/* ---------- misc ---------- */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty-state .ico { font-size: 2.6rem; }
.kbd-hint { font-size: .8rem; color: var(--muted); }
.sticky-side { position: sticky; top: calc(var(--topbar-h) + 1rem); }
.legend span { display: inline-flex; align-items: center; gap: .3rem; margin-right: 1rem; font-size: .82rem; color: var(--muted); }
.legend i.box { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.nowrap { white-space: nowrap; }
.w-fit { width: fit-content; }
.small-muted { font-size: .82rem; color: var(--muted); }
.logo-preview { width: 92px; height: 92px; object-fit: contain; border-radius: 10px; background: #f1f4f9; border: 1px solid var(--line); }
.drop-zone { border: 2px dashed #c6d2e5; border-radius: 14px; padding: 1.6rem; text-align: center; color: var(--muted); background: #fafcff; cursor: pointer; }
.drop-zone:hover, .drop-zone.drag { border-color: var(--navy-3); background: #f2f6fd; }
.curr-row { display: flex; align-items: center; gap: .6rem; padding: .3rem 0; font-size: .88rem; }
.curr-row .lbl { flex: 0 0 46%; }
.curr-row .bar { flex: 1; height: 8px; background: rgba(255,255,255,.18); border-radius: 99px; overflow: hidden; }
.curr-row .bar span { display: block; height: 100%; background: #6fe08f; border-radius: 99px; }
.curr-row .bar span.low { background: #ff7b7b; }
.curr-row .num { width: 52px; text-align: right; font-weight: 700; }
.gen-log { max-height: 280px; overflow: auto; font-size: .88rem; }
.spinner-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.65); display: none; align-items: center; justify-content: center; z-index: 2000; flex-direction: column; gap: .8rem; font-weight: 600; color: var(--navy); }
.spinner-overlay.show { display: flex; }

/* ---------- ตั้งค่าสีแม่แบบ (หน้าข้อมูลโรงเรียน) ---------- */
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.preset-btn { display: flex; align-items: center; gap: .5rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: .45rem .6rem; text-align: left; font-size: .86rem; cursor: pointer; }
.preset-btn:hover { border-color: var(--navy-3); }
.preset-btn.active { border-color: var(--navy); box-shadow: 0 0 0 2px var(--navy) inset; }
.preset-btn .sw { display: flex; border-radius: 6px; overflow: hidden; flex: none; border: 1px solid rgba(0,0,0,.08); }
.preset-btn .sw i { display: block; width: 12px; height: 26px; }
.color-field { display: flex; align-items: center; gap: .5rem; }
.color-field input[type=color] { width: 46px; height: 38px; padding: 3px; flex: none; }
.color-field .hex { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; max-width: 110px; }
.tpl-prev { --tp: #1d3768; --tht: #fff; --tt: #1d3768; --ta: #eef3fb; --tat: #1d3768; --tb: #9fb0c9; --tbrk: #f6f8fb;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: 'Sarabun', sans-serif; }
.tpl-prev .p-title { text-align: center; font-weight: 700; font-size: 1.35rem; color: var(--tt); line-height: 1.2; }
.tpl-prev .p-school { text-align: center; font-weight: 700; font-size: .98rem; }
.tpl-prev .p-sub { text-align: center; font-size: .85rem; margin-bottom: 8px; }
.tpl-prev table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .72rem; }
.tpl-prev th { background: var(--tp); color: var(--tht); border: 1px solid var(--tp); padding: 4px 2px; text-align: center; }
.tpl-prev td { border: 1px solid var(--tb); padding: 3px 2px; text-align: center; line-height: 1.2; height: 34px; }
.tpl-prev td.pc { background: var(--ta); color: var(--tat); font-weight: 700; }
.tpl-prev td.pc small { display: block; font-weight: 400; color: #556; font-size: .62rem; }
.tpl-prev td.brk { background: var(--tbrk); color: #666; height: auto; font-size: .64rem; }
.tpl-prev td b { display: block; }
.tpl-prev td span { color: #444; font-size: .64rem; }
.tpl-prev.no-sbg td.sbg { background: #fff !important; }
.tpl-prev .p-sign { display: flex; justify-content: space-around; margin-top: 10px; font-size: .72rem; text-align: center; color: #333; }
.tpl-prev .p-sign .lbl { color: #555; }

/* ---------- ระบบสมาชิก / ชำระเงิน ---------- */
.pill-wallet.pw-ok { background: rgba(46, 157, 85, .25); border-color: rgba(120, 220, 150, .6); }
.pill-wallet.pw-warn { background: #fff3cd; color: #7a5a00; border-color: #e9b949; }
.pill-wallet.pw-none { background: #fde2e2; color: #a12424; border-color: #f0a3a3; }
.plan-card { border: 1.5px solid var(--line); border-radius: 14px; padding: 1.1rem; height: 100%; display: flex; flex-direction: column; background: #fff; position: relative; }
.plan-card:hover { border-color: var(--navy-3); box-shadow: var(--shadow); }
.plan-card .pc-badge { position: absolute; top: -10px; right: 12px; background: var(--gold); color: #3b2a00; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: .1rem .6rem; }
.plan-card .pc-name { font-family: 'Prompt', sans-serif; font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.plan-card .pc-price { font-family: 'Prompt', sans-serif; font-size: 1.8rem; font-weight: 600; color: var(--ink); line-height: 1.1; margin: .4rem 0; }
.plan-card .pc-price small { font-size: .85rem; color: var(--muted); font-weight: 500; }
.plan-card .pc-desc { color: var(--muted); font-size: .88rem; flex: 1; }
.wallet-hero { border-radius: var(--radius); padding: 1.2rem 1.4rem; color: #fff; background: linear-gradient(120deg, var(--navy-dark), var(--navy-3)); }
.wallet-hero .big { font-family: 'Prompt', sans-serif; font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.wallet-hero .lbl { opacity: .8; font-size: .85rem; }
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: center; }
.qr-box .pp-head { background: #113566; color: #fff; border-radius: 10px 10px 0 0; margin: -14px -14px 10px; padding: 8px; font-weight: 700; letter-spacing: .5px; }
.qr-box svg { width: 100%; max-width: 260px; height: auto; }
.pay-amount { font-family: 'Prompt', sans-serif; font-size: 2rem; font-weight: 600; color: var(--navy); }
.pay-amount .sat { color: #d23b3b; }
.copy-row { display: flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; margin-bottom: .45rem; background: #fafcff; }
.copy-row .v { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .5px; }
.slip-thumb { width: 100%; max-height: 360px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: #f6f8fb; cursor: zoom-in; }
.flag { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; border-radius: 999px; padding: .1rem .55rem; margin: .1rem .2rem .1rem 0; }
.flag-ok { background: #e6f5ea; color: #1f6b33; } .flag-bad { background: #fdeaea; color: #a12424; } .flag-warn { background: #fff4d6; color: #7a5a00; }
.paywall { max-width: 560px; margin: 3rem auto; text-align: center; }
