/* Samaksh Scan: the owner's three looks (22 Nov 2026: "all 3 looks awesome").
   html[data-look] = showroom | poster | passbook. Set by /js/look.js before paint:
   ?look= on the link, then the phone's own pick, then the admin's default.
   Brand: logo + red #E31E24 from samakshelectricals.com, Big Shoulders type. */
@font-face { font-family: 'Big Shoulders'; font-weight: 700; font-display: swap; src: url('/fonts/big-shoulders-700.woff') format('woff'); }
@font-face { font-family: 'Big Shoulders'; font-weight: 900; font-display: swap; src: url('/fonts/big-shoulders-900.woff') format('woff'); }

:root { --red: #E31E24; --f-big: 'Big Shoulders', 'Archivo', 'Inter', sans-serif; }
.logo { display: block; height: 30px; width: auto; }
.logo-w { display: none; }
.brand .lbl { font: 600 13px var(--f-body); letter-spacing: 0; color: var(--muted); }

/* the look switch in the top bar */
.lookpick { position: relative; }
.lookpick > button { appearance: none; border: 1.5px solid var(--line-2); background: transparent; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.lookpick > button .ic { width: 18px; height: 18px; }
.lookpick menu { position: absolute; right: 0; top: 44px; z-index: 60; margin: 0; padding: 6px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); width: 230px; }
.lookpick menu button { display: flex; gap: 10px; align-items: center; width: 100%; appearance: none; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; color: var(--text); font: 600 14px var(--f-body); cursor: pointer; text-align: left; }
.lookpick menu button:hover, .lookpick menu button.on { background: var(--paper); }
.lookpick menu i { width: 26px; height: 26px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.lookpick menu small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.sw-showroom { background: linear-gradient(135deg, #0b0b0d 55%, #E31E24 56%); }
.sw-poster { background: linear-gradient(180deg, #123a8f 0 55%, #eef1f5 56%); }
.sw-passbook { background: linear-gradient(180deg, #0a8f4d 0 55%, #f4f5f7 56%); }

/* ---------- the verdict hero, three ways (built by heroHTML in app.js) ---------- */
.lh { max-width: 520px; margin: 0 auto; position: relative; }
.lh .k-chip { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.lh .k-chip i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.lh .art { display: grid; place-items: center; }
.lh .letter { font: 900 120px/1 var(--f-big); opacity: .18; }
.wait-pulse { animation: wp 1.2s ease-in-out infinite alternate; }
@keyframes wp { from { opacity: .35; } to { opacity: 1; } }

/* =============== 1. SHOWROOM: the website's dark stage =============== */
html[data-look="showroom"] {
  --ink: #ffffff; --ink-2: #e9e9ee; --text: #f2f2f5; --muted: #a3a3ad; --faint: #6f6f79;
  --paper: #0b0b0d; --card: #141418; --line: #26262c; --line-2: #34343c;
  --violet: #E31E24; --violet-2: #ff4d52; --violet-soft: rgba(227,30,36,.14);
  --wire: #f0a04b; --wire-soft: rgba(240,160,75,.1); --wire-line: rgba(240,160,75,.3);
  --ok: #34d27b; --ok-soft: rgba(52,210,123,.12); --bad: #ff5a52; --bad-soft: rgba(255,90,82,.12); --warn: #f0a04b; --warn-soft: rgba(240,160,75,.12);
  --sh: none; --f-display: var(--f-big); color-scheme: dark;
}
html[data-look="showroom"] .logo-r { display: none; } html[data-look="showroom"] .logo-w { display: block; }
html[data-look="showroom"] h1 { font-family: var(--f-big); font-weight: 900; text-transform: uppercase; letter-spacing: .005em; line-height: .95; }
html[data-look="showroom"] h2, html[data-look="showroom"] h3 { font-family: var(--f-body); letter-spacing: -.01em; }
html[data-look="showroom"] .money, html[data-look="showroom"] .stat .n, html[data-look="showroom"] .kpi > b, html[data-look="showroom"] .trust b { font-family: var(--f-big); font-weight: 900; letter-spacing: 0; }
html[data-look="showroom"] .money { font-size: 64px; }
html[data-look="showroom"] .plus { color: var(--red); }
html[data-look="showroom"] .btn { border-radius: 4px; background: var(--red); box-shadow: none; font-weight: 800; }
html[data-look="showroom"] .btn:hover { background: #c4161c; }
html[data-look="showroom"] .btn.ghost, html[data-look="showroom"] .btn.light { background: transparent; color: #fff; border: 1px solid var(--line-2); }
html[data-look="showroom"] .btn.dark { background: #fff; color: #0b0b0d; } html[data-look="showroom"] .btn.wire { background: transparent; color: var(--wire); border: 1px solid var(--wire-line); }
html[data-look="showroom"] .card, html[data-look="showroom"] .role, html[data-look="showroom"] .stat, html[data-look="showroom"] .finding, html[data-look="showroom"] .kpis, html[data-look="showroom"] .trust div, html[data-look="showroom"] .ov-wait a { background: var(--card); border-color: var(--line); border-radius: 6px; }
html[data-look="showroom"] .card.tint, html[data-look="showroom"] .card.wire { background: transparent; }
html[data-look="showroom"] input, html[data-look="showroom"] select, html[data-look="showroom"] textarea, html[data-look="showroom"] .choices button { background: #101013; color: #fff; border-color: var(--line-2); border-radius: 4px; }
html[data-look="showroom"] .choices button.on { background: var(--red); border-color: var(--red); }
html[data-look="showroom"] .thumb { background: radial-gradient(closest-side, rgba(255,244,224,.22), transparent); border-color: var(--line); }
html[data-look="showroom"] .thumb img { mix-blend-mode: normal; filter: drop-shadow(0 8px 8px rgba(0,0,0,.6)); }
html[data-look="showroom"] .tabs { background: #141418; } html[data-look="showroom"] .tabs button.on { background: var(--red); color: #fff; }
html[data-look="showroom"] .tabbar { background: rgba(11,11,13,.94); border-color: var(--line); }
html[data-look="showroom"] .tabbar a.scan .ring { background: var(--red); box-shadow: 0 0 22px rgba(227,30,36,.55), 0 0 0 5px #0b0b0d; }
html[data-look="showroom"] .scan-tile { background: #141418; border: 1px solid var(--line); border-radius: 6px; }
html[data-look="showroom"] .scan-tile .qrbox::after, html[data-look="showroom"] .viewfinder .beam { background: var(--red); box-shadow: 0 0 14px var(--red); }
html[data-look="showroom"] .home-top h1 { font-size: 54px; } html[data-look="showroom"] .home-top h1 em { color: var(--red); }
html[data-look="showroom"] table.t, html[data-look="showroom"] .dots, html[data-look="showroom"] .side { background: var(--card); border-color: var(--line); }
html[data-look="showroom"] table.t th { background: #101013; } html[data-look="showroom"] table.t tbody tr:hover td { background: #1a1a1f; }
html[data-look="showroom"] .side button.on { background: rgba(227,30,36,.14); color: #fff; } html[data-look="showroom"] .side button:hover { background: #1a1a1f; }
html[data-look="showroom"] .dev { background: #1e1a0c; color: #e9cf7a; border-color: #5a4b16; }
html[data-look="showroom"] .toast { background: #fff; color: #0b0b0d; }
.lh-showroom { padding: 0 0 8px; overflow: hidden; }
.lh-showroom .stage { height: 300px; position: relative; display: grid; place-items: center; overflow: hidden; }
.lh-showroom .stage::before { content: ''; position: absolute; left: 50%; top: -80px; width: 420px; height: 470px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,244,224,.34), rgba(255,244,224,.06) 60%, transparent 75%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
.lh-showroom .stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 34px; height: 60px; background: radial-gradient(50% 100% at 50% 100%, rgba(255,255,255,.14), transparent 70%); }
.lh-showroom .stage img { position: relative; z-index: 1; max-width: 72%; max-height: 230px; object-fit: contain; filter: drop-shadow(0 26px 22px rgba(0,0,0,.7)); margin-top: 18px; animation: rise .6s cubic-bezier(.2,.9,.3,1) both; }
.lh-showroom .line { position: absolute; left: 22px; right: 22px; bottom: 22px; height: 2px; background: var(--red); box-shadow: 0 0 14px var(--red), 0 0 2px #fff; z-index: 2; }
.lh-showroom .line::before, .lh-showroom .line::after { content: ''; position: absolute; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); }
.lh-showroom .line::before { left: -6px; } .lh-showroom .line::after { right: -6px; }
.lh-showroom .v { padding: 4px 20px 0; }
.lh-showroom .v h1 { font-size: 52px; margin: 8px 0 6px; overflow-wrap: anywhere; }
.lh-showroom .v .sub { color: var(--muted); font-size: 15px; }
.lh-showroom.ok .k-chip { color: var(--ok); } .lh-showroom.bad .k-chip { color: var(--bad); } .lh-showroom.wait .k-chip { color: var(--wire); }
.lh-showroom.bad .line { background: var(--bad); box-shadow: 0 0 14px var(--bad); }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }

/* =============== 2. POSTER: the product's own poster is the screen =============== */
html[data-look="poster"] {
  --ink: #0c1b3a; --ink-2: #1c2b4d; --text: #0c1b3a; --muted: #5b6577; --faint: #8b93a3;
  --paper: #eef1f5; --card: #ffffff; --line: #e1e6ee; --line-2: #cdd4df;
  --violet: #123a8f; --violet-2: #2a56b8; --violet-soft: #e6ecf8;
  --wire: #b8620f; --wire-soft: #fdf1e3; --wire-line: #f1d4b0;
  --ok: #0a8f4d; --ok-soft: #e3f4ea;
  --r: 18px; --sh: 0 10px 26px -18px rgba(12,27,58,.4);
}
html[data-look="poster"] h1 { letter-spacing: -.03em; }
html[data-look="poster"] .btn { background: var(--ink); border-radius: 14px; box-shadow: none; } html[data-look="poster"] .btn:hover { background: #050d1f; }
html[data-look="poster"] .btn.ghost { background: #fff; color: var(--ink); }
html[data-look="poster"] .btn.wire { background: var(--violet); }
html[data-look="poster"] .card { border: 0; }
html[data-look="poster"] .card.tint, html[data-look="poster"] .card.wire { background: var(--violet-soft); }
html[data-look="poster"] .chip { background: var(--violet-soft); color: var(--violet); }
html[data-look="poster"] .scan-tile { background: var(--violet); }
html[data-look="poster"] .tabbar a.scan .ring { background: var(--ink); box-shadow: 0 8px 18px -6px rgba(12,27,58,.6), 0 0 0 5px #fff; }
html[data-look="poster"] .side { background: var(--ink); border: 0; } html[data-look="poster"] .side button { color: rgba(255,255,255,.7); }
html[data-look="poster"] .side button:hover { background: rgba(255,255,255,.08); color: #fff; } html[data-look="poster"] .side button.on { background: rgba(255,255,255,.14); color: #fff; }
html[data-look="poster"] .side button.on::before { background: #fff; } html[data-look="poster"] .side .group { color: rgba(255,255,255,.45); }
html[data-look="poster"] .side .logo-r { display: none; } html[data-look="poster"] .side .logo-w { display: block; } html[data-look="poster"] .side .lbl { color: rgba(255,255,255,.6); }
.lh-poster { margin-top: -62px; }
.lh-poster .shot { height: 430px; position: relative; background: var(--tone, #123a8f) center top / cover no-repeat; overflow: hidden; }
.lh-poster .shot.cut { background: radial-gradient(120% 80% at 50% 30%, #2a56b8, #0c1b3a); display: grid; place-items: center; }
.lh-poster .shot.cut img { max-width: 70%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 30px 30px rgba(0,0,0,.45)); }
.lh-poster .shot.cut .letter { color: #fff; }
.lh-poster .shot::after { content: ''; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--paper)); }
.lh-poster .stamp { position: absolute; right: 18px; top: 78px; z-index: 2; background: var(--ok); color: #fff; font: 800 12px var(--f-body); letter-spacing: .1em; padding: 9px 14px; border-radius: 99px; box-shadow: 0 8px 18px -6px rgba(10,143,77,.7); animation: stampin .45s cubic-bezier(.3,1.5,.5,1) .2s both; }
.lh-poster.bad .stamp { background: var(--bad); box-shadow: 0 8px 18px -6px rgba(201,42,29,.7); } .lh-poster.wait .stamp { background: var(--wire); }
.lh-poster .sheet { position: relative; z-index: 3; margin: -96px 12px 0; background: #fff; border-radius: 26px; padding: 12px 20px 18px; box-shadow: 0 -18px 40px -18px rgba(12,27,58,.35); }
.lh-poster .grab { width: 44px; height: 5px; border-radius: 5px; background: #d5dae3; margin: 0 auto 14px; }
.lh-poster h1 { font-size: 26px; } .lh-poster .sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
@keyframes stampin { from { transform: scale(1.8) rotate(-10deg); opacity: 0; } }
html[data-look="poster"] .lh-poster + .wrap, html[data-look="poster"] #ticket + .wrap { margin-top: 0; }

/* =============== 3. PASSBOOK: a payment app's green done screen =============== */
html[data-look="passbook"] {
  --ink: #111111; --ink-2: #2a2a2a; --text: #111111; --muted: #6b7280; --faint: #9aa0aa;
  --paper: #f4f5f7; --card: #ffffff; --line: #eef0f3; --line-2: #dfe2e7;
  --violet: #0a8f4d; --violet-2: #12a85d; --violet-soft: #e5f5ec;
  --wire: #0a8f4d; --wire-soft: #e5f5ec; --wire-line: #bfe6cf;
  --ok: #0a8f4d; --ok-soft: #e5f5ec;
  --r: 16px; --sh: 0 10px 26px -18px rgba(0,0,0,.3);
}
html[data-look="passbook"] .btn { background: #111; border-radius: 14px; box-shadow: none; } html[data-look="passbook"] .btn:hover { background: #000; }
html[data-look="passbook"] .btn.ghost { background: #fff; color: #111; border: 1px solid #e3e6ea; }
html[data-look="passbook"] .btn.wire { background: var(--ok); }
html[data-look="passbook"] .card { border: 0; }
html[data-look="passbook"] .kv { font-size: 14.5px; }
html[data-look="passbook"] .money { letter-spacing: -.04em; }
html[data-look="passbook"] .plus { color: var(--ok); }
html[data-look="passbook"] .scan-tile { background: var(--ok); }
html[data-look="passbook"] .scan-tile .qrbox::after { background: #111; box-shadow: none; }
html[data-look="passbook"] .tabbar a.scan .ring { background: var(--ok); box-shadow: 0 8px 18px -6px rgba(10,143,77,.6), 0 0 0 5px #fff; }
html[data-look="passbook"] .side button.on { background: var(--ok-soft); color: var(--ok); } html[data-look="passbook"] .side button.on::before { background: var(--ok); }
html[data-look="passbook"] .wallet-card { background: var(--ok); }
.lh-passbook { margin-top: -62px; }
.lh-passbook .head { background: var(--ok); color: #fff; padding: 82px 22px 86px; text-align: center; }
.lh-passbook.bad .head { background: #c92a1d; } .lh-passbook.wait .head { background: #b8620f; }
.lh-passbook .tick { width: 76px; height: 76px; border-radius: 50%; background: #fff; margin: 0 auto 14px; display: grid; place-items: center; animation: stampin .45s cubic-bezier(.3,1.5,.5,1) .1s both; }
.lh-passbook .tick svg { width: 40px; height: 40px; fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke: var(--ok); }
.lh-passbook.bad .tick svg { stroke: #c92a1d; } .lh-passbook.wait .tick svg { stroke: #b8620f; }
.lh-passbook h1 { color: #fff; font-size: 34px; letter-spacing: -.03em; }
.lh-passbook .head p { opacity: .9; margin-top: 8px; font-size: 14px; }
.lh-passbook .slip { background: #fff; margin: -58px 16px 0; border-radius: 16px; padding: 14px 16px; box-shadow: 0 10px 26px -14px rgba(0,0,0,.35); position: relative; display: flex; gap: 14px; align-items: center; }
.lh-passbook .slip img, .lh-passbook .slip .letter { width: 74px; height: 74px; object-fit: contain; background: #f4f5f7; border-radius: 12px; padding: 6px; flex: none; font-size: 40px; display: grid; place-items: center; opacity: 1; color: var(--ok); }
.lh-passbook .slip b { display: block; font: 700 16px/1.25 var(--f-body); }
.lh-passbook .slip span { font-size: 12.5px; color: var(--muted); }
body.has-hero .bar { position: relative; z-index: 4; }
html[data-look="passbook"] body.has-hero .bar { color: #fff; }
html[data-look="passbook"] body.has-hero .bar .logo-r, html[data-look="poster"] body.has-hero .bar .logo-r { display: none; }
html[data-look="passbook"] body.has-hero .bar .logo-w, html[data-look="poster"] body.has-hero .bar .logo-w { display: block; }
html[data-look="passbook"] body.has-hero .bar .who, html[data-look="passbook"] body.has-hero .bar .who a,
html[data-look="poster"] body.has-hero .bar .who, html[data-look="poster"] body.has-hero .bar .who a { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35); }
html[data-look="passbook"] body.has-hero .bar .lbl, html[data-look="poster"] body.has-hero .bar .lbl { color: rgba(255,255,255,.75); }
html[data-look="passbook"] body.has-hero .lookpick > button, html[data-look="poster"] body.has-hero .lookpick > button { color: #fff; border-color: rgba(255,255,255,.45); }
html[data-look="passbook"] body.has-hero .bar .who a.signin, html[data-look="poster"] body.has-hero .bar .who a.signin { border-color: rgba(255,255,255,.5); }

/* ---------- home: the same page, three ways ---------- */
.scan-tile b { color: #fff; }
.home-art { display: none; }
html[data-look="showroom"] body.home.has-hero .bar { position: relative; }
html[data-look="showroom"] .home-art { display: grid; place-items: center; position: relative; height: 230px; max-width: 520px; margin: -8px auto 0; overflow: hidden; }
html[data-look="showroom"] .home-art::before { content: ''; position: absolute; left: 50%; top: -70px; width: 380px; height: 330px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,244,224,.32), rgba(255,244,224,.05) 60%, transparent 75%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); }
html[data-look="showroom"] .home-art .ha-cut { position: relative; z-index: 1; width: 64%; max-height: 190px; object-fit: contain; filter: drop-shadow(0 22px 20px rgba(0,0,0,.7)); }
html[data-look="showroom"] .home-art .line { position: absolute; left: 22px; right: 22px; bottom: 14px; height: 2px; background: var(--red); box-shadow: 0 0 14px var(--red), 0 0 2px #fff; z-index: 2; }
html[data-look="showroom"] .home-art .line::before, html[data-look="showroom"] .home-art .line::after { content: ''; position: absolute; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); }
html[data-look="showroom"] .home-art .line::before { left: -6px; } html[data-look="showroom"] .home-art .line::after { right: -6px; }
html[data-look="showroom"] .home-art .ha-poster { display: none; }

html[data-look="poster"] .home-art { display: block; margin-top: -62px; height: 360px; position: relative; overflow: hidden; }
html[data-look="poster"] .home-art .ha-poster { position: absolute; inset: 0; background: #0b0b0d center 40% / cover no-repeat; }
html[data-look="poster"] .home-art::after { content: ''; position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--paper)); }
html[data-look="poster"] .home-art .ha-cut, html[data-look="poster"] .home-art .line { display: none; }
html[data-look="poster"] .home-top { position: relative; z-index: 2; margin-top: -84px; }
html[data-look="poster"] .home-top h1 { background: #fff; border-radius: 22px; padding: 18px 18px 16px; box-shadow: 0 -14px 34px -18px rgba(12,27,58,.4); font-size: 30px; }

html[data-look="passbook"] body.home::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 300px; background: var(--ok); z-index: 0; }
html[data-look="passbook"] body.home main { position: relative; z-index: 1; }
html[data-look="passbook"] .home-top h1, html[data-look="passbook"] .home-top h1 em { color: #fff; }
html[data-look="passbook"] .home-top .lead { color: rgba(255,255,255,.88); }
html[data-look="passbook"] .home-top .lead .hi { opacity: .85; }
html[data-look="passbook"] .home .scan-tile { background: #111; }
html[data-look="passbook"] .home .scan-tile .qrbox::after { background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* admin: the look switch under the logo */
.side .side-look { margin: -6px 8px 10px; }
.side .side-look > button { width: 34px; height: 34px; padding: 0; justify-content: center; border: 1.5px solid var(--line-2); border-radius: 50%; color: var(--muted); }
.side .side-look menu { left: 0; right: auto; }
.side .side-look menu button { color: var(--text); padding: 9px 10px; }
html[data-look="poster"] .side .side-look menu button { color: #0c1b3a; }
html[data-look="poster"] .side .side-look > button { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.3); }
@media (max-width: 860px) { .side .side-look { margin: 0; flex: none; } }

/* wallet card per look */
html[data-look="showroom"] .hero.wallet-card { background: linear-gradient(160deg, #1b1b20, #0f0f12); border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 0 0 1px rgba(227,30,36,.0), 0 20px 40px -20px rgba(227,30,36,.45); }
html[data-look="showroom"] .hero.wallet-card .eyebrow { color: var(--red); }
html[data-look="showroom"] .hero.wallet-card .money { font-size: 72px; }
html[data-look="passbook"] .hero.wallet-card .eyebrow { color: rgba(255,255,255,.85); }
.bar .who { max-width: 46vw; }
