/* QR Print — shared styles. System fonts only (the CSP allows no third-party hosts). */
:root {
  --ink: #10231f;
  --muted: #526a64;
  --teal: #165d50;
  --teal-dark: #0f453b;
  --teal-tint: #e3f0ec;
  --amber: #f2b84b;
  --amber-dark: #8a5a00;
  --amber-tint: #fdf3dc;
  --bg: #eef3f1;
  --card: #ffffff;
  --line: #d3dfdb;
  --danger: #b3261e;
  --danger-tint: #fdeceb;
  --ok: #17724a;
  --ok-tint: #e2f4ea;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans", "Noto Sans Devanagari", "Nirmala UI", Roboto, sans-serif;
  --shop-primary: var(--teal);
  --shop-accent: var(--amber);
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
}
img, svg { max-width: 100%; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.2rem; font-weight: 750; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 6px; }

.shell { width: min(94%, 900px); margin: 0 auto; padding: 16px 16px 120px; }
.shell.wide { width: 80vw; max-width: 1680px; margin: 0 auto; padding-bottom: 48px; }
@media (max-width: 900px) {
  .shell.wide { width: 94%; }
}
.stack { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }

.brand { display: flex; align-items: center; gap: 12px; padding: 8px 0 16px; }
.brand img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #fff; border: 1px solid var(--line); }
.brand .name { font-size: 1.25rem; font-weight: 800; line-height: 1.15; }
.brand .tag { font-size: 0.85rem; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card > h2 { margin-bottom: 4px; }
.card .lead { color: var(--muted); font-size: 0.9rem; margin-bottom: 12px; }

/* Legal pages: plain readable prose, reusing the same tokens/fonts as the rest of the app. */
.legal { width: min(100%, 760px); margin: 0 auto; padding: 28px 18px 80px; }
.legal .top { padding: 4px 0 20px; }
.legal .top a { font-size: 0.9rem; text-decoration: none; }
.legal h1 { font-size: clamp(1.5rem, 5vw, 2rem); margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 0.85rem; margin-bottom: 18px; }
.legal .notice { background: var(--amber-tint); border: 1px solid color-mix(in srgb, var(--amber) 55%, white); border-radius: var(--radius); padding: 14px 16px; font-size: 0.92rem; margin-bottom: 26px; }
.legal h2 { font-size: 1.1rem; margin: 30px 0 8px; padding-top: 2px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin: 0 0 12px; color: var(--ink); }
.legal ul, .legal ol { margin: 0 0 12px; padding-left: 22px; color: var(--ink); }
.legal li { margin-bottom: 6px; }
.legal li > p { margin: 0; }
.legal a { color: var(--teal); }
.legal .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 26px; }
.legal .toc h2 { margin: 0 0 8px; }
.legal .toc ol { margin: 0; padding-left: 20px; }
.legal .toc li { margin-bottom: 4px; }
.legal .toc a { text-decoration: none; }
.legal .crosslinks { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.9rem; }

label.field { display: grid; gap: 6px; font-size: 0.95rem; font-weight: 600; }
label.field > span.hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
input, select, textarea { font: inherit; font-size: 1rem; color: inherit; width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; min-height: 48px; box-sizing: border-box; }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--shop-primary); }
input:focus, select:focus, textarea:focus { border-color: var(--shop-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-primary) 20%, transparent); }
input[type="color"] { padding: 4px; height: 48px; }
input[type="file"] { border-style: dashed; padding: 10px; }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: center; font-weight: 500; min-height: 48px; cursor: pointer; }
.grid2 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 680px) {
  .grid2, .grid3 { grid-template-columns: 1fr; }
  input, select, textarea { font-size: 16px !important; min-height: 48px; }
}

button, .btn { font: inherit; font-weight: 700; border: 0; border-radius: 12px; padding: 12px 18px; min-height: 46px; cursor: pointer; background: var(--teal); color: #fff; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
button:hover:not(:disabled), .btn:hover { background: var(--teal-dark); }
button:disabled { opacity: 0.55; cursor: not-allowed; }
button.secondary, .btn.secondary { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); }
button.secondary:hover:not(:disabled) { background: var(--teal-tint); }
button.ghost { background: transparent; color: var(--teal); padding: 8px 10px; min-height: 40px; }
button.ghost:hover:not(:disabled) { background: var(--teal-tint); }
button.danger { background: var(--danger); }
button.danger.secondary, button.secondary.danger { background: #fff; color: var(--danger); border-color: var(--danger); }
button.small, .btn.small { padding: 7px 12px; min-height: 36px; font-size: 0.875rem; border-radius: 9px; }
button.block { width: 100%; }
button.amber, .btn.amber { background: var(--amber); color: #2a1c00; }
button.amber:hover:not(:disabled), .btn.amber:hover { background: #e6a932; }
.btn.block { width: 100%; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: var(--teal-tint); color: var(--teal-dark); white-space: nowrap; }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.warn { background: var(--amber-tint); color: var(--amber-dark); }
.pill.bad { background: var(--danger-tint); color: var(--danger); }
.pill.off { background: #e8eceb; color: #55605d; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.notice { border-radius: 12px; padding: 12px 14px; font-size: 0.92rem; background: var(--amber-tint); color: #5d3d00; border: 1px solid #ecd49a; }
.notice.bad { background: var(--danger-tint); color: #7a1912; border-color: #f0b9b5; }
.notice.ok { background: var(--ok-tint); color: #0f4e31; border-color: #b4dfc8; }
.notice strong { display: block; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 50; max-width: calc(100% - 32px); font-size: 0.92rem; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.toast.bad { background: var(--danger); }

/* ───── customer: file list + sheet preview ───── */
.file-drop { display: grid; gap: 6px; place-items: center; text-align: center; padding: 22px 14px; border: 2px dashed color-mix(in srgb, var(--shop-primary) 45%, white); border-radius: var(--radius); background: color-mix(in srgb, var(--shop-primary) 5%, white); cursor: pointer; }
.file-drop:hover, .file-drop.drag { background: color-mix(in srgb, var(--shop-primary) 11%, white); }
.file-drop strong { color: var(--shop-primary); }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.file { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 10px; background: #fbfdfc; }
.file .top { display: flex; gap: 10px; align-items: center; }
.file .ico { flex: none; width: 38px; height: 46px; border-radius: 6px; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; color: var(--shop-primary); }
.file .iconbtn { padding: 8px; min-height: 36px; min-width: 36px; display: grid; place-items: center; }
.file .fname { font-weight: 650; overflow-wrap: anywhere; line-height: 1.25; }
.seg { display: inline-grid; grid-auto-flow: column; background: #e6eeeb; border-radius: 11px; padding: 3px; gap: 3px; }
.seg button { background: transparent; color: var(--ink); min-height: 40px; padding: 8px 14px; font-weight: 650; border-radius: 9px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--shop-primary); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.seg.full { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.sheet { display: grid; gap: 4px; padding: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 6px; width: 92px; box-shadow: 3px 3px 0 var(--line); }
.sheet.landscape { width: 128px; }
.sheet i { position: relative; font-style: normal; display: grid; place-items: center; min-height: 20px; font-size: 0.7rem; font-weight: 700; background: color-mix(in srgb, var(--shop-primary) 12%, white); border-radius: 3px; color: var(--shop-primary); }
.sheet i:first-child { background: var(--shop-primary); color: #fff; }
.sheet i .ar { position: absolute; right: 1px; bottom: -1px; font-size: 9px; font-weight: 700; line-height: 1; opacity: .75; }
.flipicon { display: inline-flex; vertical-align: middle; color: inherit; }
.flipicon svg { display: block; }

.totalbar { position: fixed; inset: auto 0 0 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(16,35,31,.08); }
.totalbar .in { width: min(100%, 720px); margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.totalbar .amt { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.totalbar .amt small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--muted); margin-bottom: 3px; }

/* ───── the job ticket (payment) ───── */
.ticket { position: relative; background: #fff; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; }
.ticket .head { background: var(--shop-primary); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; }
.ticket .head .mono { background: #ffffff !important; color: #0f453b !important; border: 1px solid rgba(255, 255, 255, 0.9) !important; font-weight: 800 !important; letter-spacing: 0.8px !important; padding: 4px 10px !important; border-radius: 8px !important; display: inline-block !important; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18) !important; font-size: 0.85rem !important; }
.ticket .head .amt { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.ticket .head .lbl { font-size: 0.8rem; opacity: .85; }
.ticket .body { padding: 18px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.ticket .tear { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 14px; }
.ticket .tear::before, .ticket .tear::after { content: ""; position: absolute; top: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.ticket .tear::before { left: -27px; } .ticket .tear::after { right: -27px; }
.ticket .qr { width: min(250px, 72vw); padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.ticket .stub { padding: 14px 18px 18px; display: grid; gap: 8px; }
.ticket .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.ticket .meta b { color: var(--ink); }
.pulse { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.bigstate { text-align: center; padding: 26px 10px; display: grid; gap: 10px; justify-items: center; }
.bigstate .mark { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; background: var(--ok-tint); color: var(--ok); }
.bigstate .mark.bad { background: var(--danger-tint); color: var(--danger); }
.bigstate .mark.wait { background: var(--amber-tint); color: var(--amber-dark); }

/* ───── dashboards ───── */
.topbar { background: var(--teal); color: #fff; position: relative; z-index: 50; }
.topbar .in { width: 80vw; max-width: 1680px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; position: relative; }
@media (max-width: 900px) {
  .topbar .in { width: 95%; padding: 8px 12px; gap: 10px; }
}
.topbar img { width: 38px; height: 38px; border-radius: 9px; background: #fff; flex-shrink: 0; }
.topbar .t { font-weight: 800; line-height: 1.15; flex: 1 1 0%; min-width: 0; overflow: hidden; }
.topbar .t small { display: block; font-weight: 500; opacity: .85; font-size: 0.76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .t .bname { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.topbar .t .t1 { font-size: 0.95rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.topbar .t .t2 { font-size: 11px; font-weight: 600; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.topbar button, .topbar .btn { background: rgba(255,255,255,.14); color: #fff; white-space: nowrap; flex-shrink: 0; }
.topbar button:hover:not(:disabled), .topbar .btn:hover { background: rgba(255,255,255,.26); }

/* Desktop Actions Group */
.topbar-desktop-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile Menu Handler Toggle */
.topbar-handler-btn {
  display: none;
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.topbar-handler-btn:hover,
.topbar-handler-btn.open {
  background: rgba(255, 255, 255, 0.32) !important;
}

/* Mobile Dropdown Panel */
.topbar-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 12px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  z-index: 1000;
  animation: fadeInDown 0.15s ease;
}
.topbar-dropdown.open {
  display: flex !important;
}
.topbar-dropdown a,
.topbar-dropdown button {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  background: transparent !important;
  color: var(--ink) !important;
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.12s ease;
}
.topbar-dropdown a:hover,
.topbar-dropdown button:hover {
  background: var(--teal-tint) !important;
  color: var(--teal-dark) !important;
}
.topbar-dropdown .dd-wa {
  background: #25d366 !important;
  color: #fff !important;
}
.topbar-dropdown .dd-wa:hover {
  background: #20ba5a !important;
  color: #fff !important;
}
.topbar-dropdown .dd-danger {
  color: #c62828 !important;
}
.topbar-dropdown .dd-danger:hover {
  background: #ffebee !important;
  color: #c62828 !important;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .topbar-desktop-actions {
    display: none !important;
  }
  .topbar-handler-btn {
    display: inline-flex !important;
  }
}
.tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.tabs .in { width: 80vw; max-width: 1680px; margin: 0 auto; padding: 0 8px; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
@media (max-width: 900px) {
  .tabs .in { width: 94%; }
}
.tabs button { background: transparent; color: var(--muted); border-radius: 0; border-bottom: 3px solid transparent; padding: 12px 14px; min-height: 48px; white-space: nowrap; }
.tabs button:hover:not(:disabled) { background: var(--teal-tint); color: var(--teal-dark); }
.tabs button[aria-selected="true"] { color: var(--teal); border-bottom-color: var(--amber); }

/* ───── Left Floating Sidebar Dashboard Layout ───── */
.dash-shell {
  width: 80vw;
  max-width: 1680px;
  margin: 20px auto 60px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
@media (max-width: 1024px) {
  .dash-shell {
    width: 95%;
    flex-direction: column;
    margin: 14px auto 40px;
    gap: 14px;
  }
}

/* Left Floating Sidebar */
.dash-sidebar {
  position: sticky;
  top: 18px;
  width: 220px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 10px 8px;
  box-shadow: 0 6px 24px rgba(16, 35, 31, 0.06);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 20;
}
@media (max-width: 1024px) {
  .dash-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 14px;
    padding: 8px;
    gap: 6px;
    scrollbar-width: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  }
}
.dash-sidebar::-webkit-scrollbar { display: none; }

.dash-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-weight: 550;
  font-size: 0.92rem;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.dash-tab-btn:hover {
  background: var(--teal-tint);
  color: var(--teal-dark);
}
.dash-tab-btn[aria-selected="true"] {
  background: var(--teal);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(22, 93, 80, 0.25);
}
.dash-tab-btn[aria-selected="true"]:hover {
  background: var(--teal-dark);
  color: #ffffff;
}
.dash-tab-btn .tab-ico {
  font-size: 1.15rem;
  line-height: 1;
}

.nav-svg-ico {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  transition: transform 0.15s ease, stroke 0.15s ease;
}
.dash-tab-btn .nav-svg-ico {
  stroke: currentColor;
}
.dash-tab-btn:hover .nav-svg-ico {
  transform: scale(1.08);
}
.dash-tab-btn[aria-selected="true"] .nav-svg-ico {
  stroke: #ffffff;
}
.subnav-btn .nav-svg-ico {
  stroke: currentColor;
}
.subnav-btn:hover .nav-svg-ico {
  stroke: var(--teal-dark);
}
.subnav-btn[aria-selected="true"] .nav-svg-ico {
  stroke: var(--teal-dark);
}
@media (max-width: 900px) {
  .subnav-btn[aria-selected="true"] .nav-svg-ico {
    stroke: #ffffff;
  }
}

/* Dashboard Content Area */
.dash-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* ───── Sub-Menu Layout (e.g. Settings Section Switcher) ───── */
.subnav-layout {
  display: flex;
  gap: 22px;
  align-items: flex-start;
}
@media (max-width: 900px) {
  .subnav-layout {
    flex-direction: column-reverse;
  }
}

.subnav-main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Right-side Sub-Menu */
.subnav-sidebar {
  position: sticky;
  top: 18px;
  width: 250px;
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 12px 10px;
  box-shadow: 0 6px 24px rgba(16, 35, 31, 0.05);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 900px) {
  .subnav-sidebar {
    position: static;
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 14px;
    padding: 8px;
    gap: 6px;
    scrollbar-width: none;
  }
}
.subnav-sidebar .subnav-title {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 12px 4px;
  text-align: right;
}
@media (max-width: 900px) {
  .subnav-sidebar .subnav-title { display: none; }
}

.subnav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.88rem;
  border: none;
  text-align: right;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.subnav-btn .subnav-label {
  flex: 1;
  text-align: right;
}
.subnav-btn:hover {
  background: var(--teal-tint);
  color: var(--teal-dark);
}
.subnav-btn[aria-selected="true"] {
  background: var(--teal-tint);
  color: var(--teal-dark);
  font-weight: 700;
  border-right: 3.5px solid var(--teal);
  border-left: none;
}
@media (max-width: 900px) {
  .subnav-btn[aria-selected="true"] {
    background: var(--teal);
    color: #ffffff;
    border-right: none;
    border-left: none;
  }
}
.badge { background: var(--danger); color: #fff; border-radius: 999px; font-size: 0.72rem; padding: 1px 7px; margin-left: 6px; }
.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat .v { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.stat .l { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }
.stat.hl { background: var(--teal); color: #fff; border-color: var(--teal); }
.stat.hl .l { color: rgba(255,255,255,.8); }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 0.8rem; color: var(--muted); font-weight: 650; background: #f6faf8; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.right, th.right { text-align: right; }
.empty { text-align: center; padding: 30px 14px; color: var(--muted); }
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.plan.best { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-tint); }
.plan .price { font-size: 2rem; font-weight: 800; line-height: 1; }
.plan .price small { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 0.92rem; }
.plan li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.shopcarousel { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.shopcard { flex: 0 0 230px; scroll-snap-align: start; border: 1.5px solid var(--line); border-top: 4px solid var(--sp, var(--teal)); border-radius: 14px; padding: 14px; background: #fff; text-decoration: none; color: inherit; display: grid; gap: 6px; transition: box-shadow .15s, transform .15s; }
.shopcard:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.shopcard img { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.shopcard .logodot { width: 28px; height: 28px; border-radius: 6px; background: var(--sa, var(--amber)); display: inline-block; }
.cardlist { display: grid; gap: 10px; }
.order { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.order .amt { font-weight: 800; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 0.92rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.88em; background: #eef3f1; padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.copyrow { display: flex; gap: 8px; align-items: stretch; }
.copyrow code { flex: 1; padding: 10px 12px; display: block; }

/* ───── landing ───── */
.hero { background: var(--teal); color: #fff; position: relative; overflow: hidden; width: 100%; max-width: 100%; box-sizing: border-box; }
.hero .blobs { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.hero .blobs i { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--teal) 25%, #cfe0b8); filter: blur(28px); opacity: .35; }
.hero .blobs .bl1 { width: 42vw; height: 42vw; max-width: 460px; max-height: 460px; top: -14%; left: -10%; }
.hero .blobs .bl2 { width: 30vw; height: 30vw; max-width: 340px; max-height: 340px; bottom: -16%; left: 20%; background: color-mix(in srgb, var(--teal) 18%, #e7edc9); opacity: .3; }
.hero .blobs .bl3 { width: 26vw; height: 26vw; max-width: 300px; max-height: 300px; top: 20%; right: -8%; background: color-mix(in srgb, var(--teal) 30%, #d8e6b9); opacity: .28; }
.hero .in { position: relative; z-index: 1; width: 80vw; max-width: 1680px; margin: 0 auto; padding: 22px 18px 54px; display: grid; gap: 28px; box-sizing: border-box; }
.hero .doodles { position: absolute; inset: 0; z-index: 0; overflow: hidden; color: #fff; pointer-events: none; }
.hero .doodles .dd { position: absolute; opacity: .16; }
.hero .doodles .dd1 { width: 46px; top: 8%; left: 6%; }
.hero .doodles .dd2 { width: 36px; top: 70%; left: 3%; }
.hero .doodles .dd3 { width: 40px; top: 14%; left: 44%; }
.hero .doodles .dd4 { width: 34px; bottom: 6%; left: 46%; }
.hero .doodles .dd5 { width: 22px; top: 30%; right: 4%; }
.hero .doodles .dd6 { width: 16px; bottom: 18%; right: 20%; }
@media (max-width: 900px) {
  .hero .in { width: 100%; max-width: 100%; padding: 20px 14px 44px; }
}
.hero nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.hero nav .b { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.hero nav .b .bname { display: flex; flex-direction: column; line-height: 1.15; }
.hero nav .b .t2 { font-size: 11px; font-weight: 600; color: #ffffff; opacity: 1; }
.hero nav img { width: 38px; height: 38px; border-radius: 9px; background: #fff; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); max-width: 16ch; letter-spacing: -0.025em; line-height: 1.05; }
.hero p.sub { font-size: 1.1rem; max-width: 46ch; opacity: .92; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .copy { display: grid; gap: 18px; align-content: center; }
.hero .art { display: grid; place-items: center; position: relative; perspective: 1000px; width: 100%; max-width: 100%; overflow: hidden; }
.hero .art .deco { position: absolute; width: 15%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.28)); pointer-events: none; }
.hero .art .d1 { top: 4%; left: 4%; width: 16%; }
.hero .art .d2 { bottom: 10%; right: 2%; width: 13%; transform: rotate(10deg); }
.hero .art .d3 { top: 46%; right: 6%; width: 11%; }
.hero .cta .btn.secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
@media (min-width: 860px) {
  .hero .in { grid-template-columns: 1.1fr .9fr; align-items: center; padding-bottom: 70px; }
  .hero nav { grid-column: 1 / -1; }
  .hero .copy { grid-column: 1; grid-row: 2; }
  .hero .art { grid-column: 2; grid-row: 2; }
}
.crop { position: relative; width: min(300px, 80vw); max-width: calc(100% - 20px); aspect-ratio: 3/4; background: #fff; color: var(--ink); padding: 26px 22px; display: grid; gap: 12px; align-content: start; justify-items: center; text-align: center; box-shadow: 6px 6px 0 var(--amber); transform: rotate(-2deg); box-sizing: border-box; }
.crop::before, .crop::after { content: ""; position: absolute; width: 26px; height: 26px; border: 2px solid var(--ink); opacity: .7; }
.crop::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.crop::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.crop .qr { width: 78%; }
.crop b { font-size: 1.1rem; line-height: 1.2; }
.adwrap { border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(16,35,31,.18); line-height: 0; width: 100%; max-width: 100%; box-sizing: border-box; }
.adwrap video { width: 100%; display: block; background: #0f2e27; }
.section { width: 80vw; max-width: 1680px; margin: 0 auto; padding: 44px 18px; display: grid; gap: 22px; box-sizing: border-box; }
@media (max-width: 900px) {
  .section { width: 100%; max-width: 100%; padding: 36px 14px; }
}
.section > h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); counter-reset: s; padding: 0; margin: 0; }
@media (min-width: 992px) {
  .steps { grid-template-columns: repeat(5, 1fr); }
}
.steps li { position: relative; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px 16px; display: grid; gap: 6px; align-content: start; counter-increment: s; }
.steps li::after { content: counter(s); position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--amber); color: #2a1c00; font-weight: 800; font-size: 0.7rem; display: grid; place-items: center; }
.stepicon { width: 44px; height: 44px; padding: 9px; box-sizing: border-box; border-radius: 12px; background: color-mix(in srgb, var(--teal) 12%, white); color: var(--teal); margin-bottom: 4px; }
footer.foot { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 26px 16px 40px; }

/* ───── auth card ───── */
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; }
.authcard { width: min(100%, 420px); display: grid; gap: 14px; }

@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
}

/* Hero: a gentle floating tilt on the phone card, with a few print pages and a rupee coin
   drifting around it — one deliberate moment of life, not scattered everywhere. Screen only. */
@media screen and (prefers-reduced-motion: no-preference) {
  .crop { animation: card-float 6.5s ease-in-out infinite; transform-style: preserve-3d; }
  @keyframes card-float {
    0%, 100% { transform: rotate(-2deg) translateY(0) rotateX(0deg); }
    50% { transform: rotate(-1deg) translateY(-10px) rotateX(3deg); }
  }
  .hero .art .deco { animation: deco-drift 5.5s ease-in-out infinite; }
  .hero .art .d1 { animation-delay: .2s; }
  .hero .art .d2 { animation-delay: 1.4s; }
  .hero .art .d3 { animation-delay: 2.6s; }
  @keyframes deco-drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(8deg); }
  }
  .hero .blobs .bl1 { animation: blob-drift-a 16s ease-in-out infinite; }
  .hero .blobs .bl2 { animation: blob-drift-b 20s ease-in-out infinite; }
  .hero .blobs .bl3 { animation: blob-drift-c 18s ease-in-out infinite; }
  @keyframes blob-drift-a { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4%, 6%) scale(1.08); } }
  @keyframes blob-drift-b { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-5%, -4%) scale(1.1); } }
  @keyframes blob-drift-c { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-3%, 5%) scale(0.95); } }
  .hero .doodles .dd { animation: doodle-drift 9s ease-in-out infinite; }
  .hero .doodles .dd2 { animation-delay: 1s; }
  .hero .doodles .dd3 { animation-delay: 2s; }
  .hero .doodles .dd4 { animation-delay: 3s; }
  .hero .doodles .dd5 { animation-delay: 4s; }
  .hero .doodles .dd6 { animation-delay: 5s; }
  @keyframes doodle-drift { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(-6deg); } }
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ Mobile Document Scanner & ID Combiner â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.scanner-modal-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(10, 18, 16, 0.95);
  display: flex; align-items: center; justify-content: center;
  padding: 12px; box-sizing: border-box;
}
.scanner-modal {
  width: min(100%, 640px); height: min(96vh, 880px);
  background: #111a18; color: #f8fafc;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}
.scanner-header {
  padding: 14px 16px; background: #162421;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.scanner-title-group { display: flex; flex-direction: column; gap: 2px; }
.scanner-subtitle { font-size: 0.8rem; color: #94a3b8; }
.scanner-header-actions { display: flex; align-items: center; gap: 12px; }
.scanner-id-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.08); padding: 6px 10px;
  border-radius: 20px; font-size: 0.8rem; cursor: pointer; user-select: none;
}
.scanner-id-toggle input { cursor: pointer; accent-color: var(--amber); }
.scanner-btn-close {
  background: transparent; border: none; color: #cbd5e1;
  font-size: 1.4rem; cursor: pointer; padding: 4px 8px; border-radius: 8px;
}
.scanner-body {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #090e0d;
}
.scanner-view-camera {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
}
#scVideo {
  width: 100%; height: 100%; object-fit: cover;
}
.scanner-viewfinder {
  position: absolute; width: 78%; height: 75%;
  border: 2px dashed rgba(255, 255, 255, 0.65);
  border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  pointer-events: none; transition: all 0.3s ease;
}
.scanner-viewfinder.id-aspect {
  width: 86%; height: 50%;
  border-color: var(--amber);
}
.scanner-corner {
  position: absolute; width: 20px; height: 20px;
  border: 4px solid var(--amber);
}
.c-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; border-top-left-radius: 8px; }
.c-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; border-top-right-radius: 8px; }
.c-br { bottom: -2px; right: -2px; border-left: none; border-top: none; border-bottom-right-radius: 8px; }

/* ───── High-Tech Animated Loading Screen ───── */
.tech-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  padding: 30px 20px;
  text-align: center;
  user-select: none;
}
.tech-loader-visual {
  position: relative;
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.tech-glow-circle {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 93, 80, 0.25) 0%, rgba(22, 93, 80, 0) 70%);
  animation: tech-pulse 2s ease-in-out infinite alternate;
}
.tech-ring-outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(22, 93, 80, 0.35);
  border-top-color: var(--teal);
  border-bottom-color: #25d366;
  animation: tech-spin 3.2s linear infinite;
}
.tech-ring-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-left-color: #f2b84b;
  border-right-color: var(--teal);
  animation: tech-spin-reverse 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.tech-scanner-core {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f7f5, #ffffff);
  border: 1px solid rgba(22, 93, 80, 0.2);
  box-shadow: 0 4px 18px rgba(16, 35, 31, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--teal);
}
.tech-core-ico {
  width: 30px;
  height: 30px;
  color: var(--teal);
  stroke: var(--teal);
  z-index: 1;
}
.tech-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, transparent, #25d366, #f2b84b, transparent);
  box-shadow: 0 0 10px #25d366;
  animation: tech-scanline 1.6s ease-in-out infinite alternate;
}
.tech-loader-title {
  font-size: 1.18rem;
  font-weight: 750;
  color: var(--teal-dark);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.tech-loader-sub {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 20px;
  animation: tech-fade 1.8s ease-in-out infinite alternate;
}
.tech-progress-bar {
  width: 190px;
  height: 4.5px;
  border-radius: 99px;
  background: rgba(22, 93, 80, 0.12);
  overflow: hidden;
  position: relative;
}
.tech-progress-beam {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 45%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--teal), #25d366);
  animation: tech-beam 1.4s ease-in-out infinite;
}
@keyframes tech-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes tech-spin-reverse {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}
@keyframes tech-pulse {
  0% { transform: scale(0.9); opacity: 0.35; }
  100% { transform: scale(1.18); opacity: 0.9; }
}
@keyframes tech-scanline {
  0% { top: 6px; }
  100% { top: 48px; }
}
@keyframes tech-beam {
  0% { left: -45%; }
  50% { left: 35%; width: 55%; }
  100% { left: 100%; width: 35%; }
}
@keyframes tech-fade {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}
.c-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; border-bottom-left-radius: 8px; }
.scanner-cam-prompt {
  position: absolute; bottom: 20px;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
  color: #ffffff; padding: 8px 16px; border-radius: 20px;
  font-size: 0.85rem; pointer-events: none;
}
.scanner-view-crop {
  width: 100%; height: 100%; overflow: auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 12px; box-sizing: border-box;
}
.scanner-canvas-wrap {
  display: flex; align-items: center; justify-content: center;
  max-width: 100%; max-height: calc(100% - 40px);
}
#scCanvas {
  max-width: 100%; max-height: 100%;
  border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  touch-action: none; cursor: crosshair;
}
.scanner-dark-banner {
  margin-top: 8px; background: rgba(242, 184, 75, 0.15);
  border: 1px solid var(--amber); color: var(--amber);
  padding: 6px 14px; border-radius: 20px; font-size: 0.8rem;
  display: flex; align-items: center; gap: 6px;
}
.scanner-footer {
  padding: 14px 16px; background: #162421;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.scanner-controls-cam {
  display: flex; justify-content: center; align-items: center;
}
.scanner-btn-snap {
  width: 68px; height: 68px; border-radius: 50%;
  background: #ffffff; border: 4px solid var(--teal);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0; transition: transform 0.1s ease;
}
.scanner-btn-snap:active { transform: scale(0.92); }
.scanner-snap-ring {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal); display: block;
}
.scanner-controls-crop {
  display: flex; flex-direction: column; gap: 12px;
}
.scanner-filters-row {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; padding-bottom: 4px;
}
.sc-filter-btn {
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f1f5f9; padding: 6px 12px; border-radius: 20px; font-size: 0.8rem;
  cursor: pointer; white-space: nowrap; font-weight: 600;
}
.sc-filter-btn.active {
  background: var(--teal); border-color: var(--teal); color: #ffffff;
}
.scanner-invert-label {
  display: flex; align-items: center; gap: 6px;
  margin-left: auto; font-size: 0.78rem; color: #cbd5e1;
  cursor: pointer; white-space: nowrap;
}
.scanner-invert-label input { accent-color: var(--amber); cursor: pointer; }
.scanner-actions-row {
  display: flex; justify-content: space-between; gap: 12px;
}
.scanner-actions-row .btn {
  flex: 1; padding: 10px; font-size: 0.95rem; font-weight: 700;
  border-radius: 10px; cursor: pointer; text-align: center; border: none;
}
.scanner-actions-row .btn.secondary {
  background: rgba(255, 255, 255, 0.1); color: #ffffff;
}
.scanner-actions-row .btn.primary {
  background: var(--teal); color: #ffffff;
}
.scan-btn-hero {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--teal-tint); color: var(--teal-dark);
  border: 1.5px solid var(--teal); padding: 12px 18px; border-radius: 12px;
  font-weight: 750; font-size: 1rem; cursor: pointer; margin-top: 10px;
  width: 100%; transition: background 0.15s ease;
}
.scan-btn-hero:hover { background: #d0e7e0; }

/* ───── Floating Video Popup Widget ───── */
.video-popup-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 290px;
  max-width: calc(100vw - 32px);
  background: #0f2e27;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15);
  overflow: hidden;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  animation: popupSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.video-popup-widget.closing {
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}
@keyframes popupSlideUp {
  from { transform: translateY(40px) scale(0.9); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.video-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  z-index: 20;
  transition: background 0.15s, transform 0.15s;
}
.video-popup-close:hover {
  background: #dc2626;
  border-color: #ef4444;
  transform: scale(1.1);
}
.video-popup-header {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  pointer-events: none;
}
.video-popup-badge {
  background: rgba(15, 46, 39, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.video-popup-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.video-popup-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}
.video-popup-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-popup-sound-btn {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s, transform 0.15s;
  z-index: 10;
}
.video-popup-sound-btn:hover {
  background: var(--amber);
  color: #111;
  border-color: var(--amber);
  transform: scale(1.04);
}
.video-popup-sound-btn.unmuted {
  background: rgba(34, 197, 94, 0.85);
  border-color: #22c55e;
}
.video-popup-footer {
  padding: 10px 12px;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.video-popup-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.video-popup-info strong {
  font-size: 0.88rem;
  color: var(--teal-dark);
}
.video-popup-info small {
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 600;
}
@media (max-width: 600px) {
  .video-popup-widget {
    bottom: 12px;
    right: 12px;
    width: 220px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
  }
}

/* ───── WhatsApp Feature Card ───── */
.wa-feature-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid #86efac;
  border-radius: 20px;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
@media (min-width: 900px) {
  .wa-feature-card {
    grid-template-columns: 1.2fr 0.8fr;
  }
}
.wa-point {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 12px 14px;
}
.wa-point b {
  display: block;
  font-size: 0.95rem;
  color: #14532d;
  margin-bottom: 4px;
}
.wa-point p { margin: 0; }
.wa-preview-art {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: #0b141a;
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.wa-chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wa-chat-bubble.out {
  align-self: flex-end;
  background: #005c4b;
  color: #e9edef;
  border-bottom-right-radius: 2px;
}
.wa-chat-bubble.in {
  align-self: flex-start;
  background: #202c33;
  color: #d1d7db;
  border-bottom-left-radius: 2px;
}
.wa-chat-bubble small {
  align-self: flex-end;
  font-size: 0.72rem;
  opacity: 0.7;
}
.wa-chat-bubble.out small {
  color: #c4e1de;
  opacity: 1;
}
.wa-chat-bubble.in b {
  color: #25d366;
}

/* ───── Cookie & Privacy Consent Banner (Bonus Prompt 3) ───── */
.consent-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(94%, 720px);
  background: #10231f;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 16px 20px;
  z-index: 1000;
  box-shadow: 0 10px 32px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .consent-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.consent-banner p { margin: 0; font-size: 0.88rem; line-height: 1.4; color: #d0deda; }
.consent-banner a { color: var(--amber); text-decoration: underline; }
.consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.consent-actions button { min-height: 38px; padding: 6px 14px; font-size: 0.85rem; }

/* Customer page bottom action buttons */
.customer-foot-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 18px;
  margin-top: 8px;
  margin-bottom: 24px;
}
.btn-subtle-foot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--teal, #165d50);
  background: #ffffff;
  border: 1.5px solid rgba(22, 93, 80, 0.22);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
}
.btn-subtle-foot:hover, .btn-subtle-foot:active {
  background: var(--teal-tint, #e8f5f1);
  border-color: var(--teal, #165d50);
  color: var(--teal-dark, #0d3b32);
  box-shadow: 0 3px 8px rgba(22, 93, 80, 0.12);
  transform: translateY(-1px);
}
.btn-foot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Themed Printers Setup */
.pr-row-themed {
  background: #ffffff;
  border: 1.5px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pr-row-themed:hover, .pr-row-themed:focus-within {
  border-color: var(--teal, #165d50);
  box-shadow: 0 2px 8px rgba(22, 93, 80, 0.08);
}
.printer-badge {
  flex: none;
  width: 76px;
  text-align: center;
  background: var(--teal-tint, #e8f5f1);
  color: var(--teal, #165d50);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.3px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(22, 93, 80, 0.15);
}
.pr-select-themed, .pr-input-themed {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  background-color: #f8fafc;
  color: var(--ink, #0f172a);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: all 0.15s ease;
}
.pr-select-themed:hover, .pr-input-themed:hover {
  background-color: #ffffff;
  border-color: #94a3b8;
}
.pr-select-themed:focus, .pr-input-themed:focus {
  background-color: #ffffff;
  border-color: var(--teal, #165d50);
  box-shadow: 0 0 0 3px rgba(22, 93, 80, 0.15);
}
.btn-pr-remove {
  flex: none;
  height: 38px;
  padding: 0 14px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-pr-remove:hover {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
  transform: translateY(-1px);
}
@media (max-width: 500px) {
  .pr-row-themed {
    flex-wrap: wrap;
    gap: 8px;
  }
  .printer-badge {
    width: auto;
  }
}


