/* art direction pass: one deep field, one lime accent, large type, tone steps instead of lines */
:root { --display: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif; }
:root[data-theme="dark"] { --field: #0b3b36; --lime: #fff; }
h1, h2, h3, .logo, .stat .val, .totals .grand, .plan-card .price { font-family: var(--display); }
body { font-size: 15px; }

/* auth: a full field of colour, giant headline, the invoice as the picture */
.auth { grid-template-columns: 1.15fr 1fr; background: var(--bg); }
.auth-hero { background: var(--field); color: #eaf5f1; padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px); justify-content: space-between; gap: 22px; }
.auth-hero .logo { font-size: 20px; letter-spacing: -.01em; } .auth-hero .logo-mark { background: var(--lime); color: var(--field); border-radius: 12px; }
.auth-hero h1 { font-size: clamp(44px, 4.8vw, 76px); font-weight: 700; line-height: .95; letter-spacing: -.045em; max-width: 11ch; color: #fff; }
.auth-hero p { opacity: 1; color: #b9d3cb; font-size: 17px; line-height: 1.55; max-width: 46ch; }
.auth-hero ul { gap: 8px; } .auth-hero li { color: #d6e8e2; opacity: 1; } .auth-hero li .ic { color: var(--lime); }
.bill { background: #f6f3ea; color: #14211e; border-radius: 4px; padding: 18px 20px 14px; max-width: 420px; display: grid; gap: 10px; transform: rotate(-1.4deg); transform-origin: left center; font-variant-numeric: tabular-nums; }
.bill-h { display: flex; justify-content: space-between; font-size: 13px; color: #55696a; } .bill-h b { color: #14211e; font-size: 15px; font-family: var(--display); }
.bill-r { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; } .bill-r small { display: block; color: #6b7c78; font-size: 12px; }
.bill-t { display: flex; justify-content: space-between; align-items: baseline; margin: 4px -20px -14px; padding: 12px 20px; background: var(--lime); color: var(--field); font-weight: 600; } .bill-t b { font-size: 24px; letter-spacing: -.02em; font-family: var(--display); }
.auth-form { padding: clamp(24px, 4vw, 64px); background: var(--bg); }
.auth-card { max-width: 420px; } .auth-card h2 { font-size: 36px; letter-spacing: -.035em; line-height: 1.02; font-weight: 700; }
.auth-card input { background: var(--surface); border-color: transparent; border-radius: 12px; min-height: 46px; }
.auth-card input:focus { border-color: var(--primary); }
.demo-box { background: var(--surface); border: 0; border-radius: 14px; padding: 14px 16px; }

/* shell: quiet sidebar on its own tone, no rules */
.side { border-right: 0; padding: 18px 14px; }
.side-foot { border-top: 0; }
.nav-i { border-radius: 12px; padding: 11px 13px; }
.nav-i.active { background: var(--field); color: #fff; } .nav-i.active .ic { color: var(--lime); }
:root[data-theme="dark"] .nav-i.active { background: var(--primary-50); color: var(--text); }
.top { backdrop-filter: none; background: var(--bg); border-bottom: 0; padding-block: 14px; }
.top h1 { font-size: 26px; letter-spacing: -.03em; font-weight: 700; }
.content { padding: 8px 28px 40px; }

/* surfaces: tone steps, no outlines */
.card { border: 0; border-radius: 18px; }
.card-h { border-bottom: 0; padding: 18px 20px 6px; } .card-b { padding: 16px 20px 20px; }
.card-h h2, .card-h h3 { font-size: 18px; letter-spacing: -.02em; }
.grid { gap: 16px; }
.stat { padding: 20px 22px; gap: 6px; }
.stat .val { font-size: 38px; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-top: 6px; }
.stat .ico { border-radius: 50%; width: 38px; height: 38px; background: var(--surface-2); }
.stat.link:hover { border-color: transparent; background: var(--primary-50); }
.page-h h1 { font-size: 30px; letter-spacing: -.035em; }

/* buttons: flat, one fill, pill */
.btn { border-radius: 999px; border-color: transparent; background: var(--surface-2); padding-inline: 18px; }
.btn:hover { background: var(--primary-50); }
.btn.primary { background: var(--primary); color: #fff; } .btn.primary:hover { background: var(--primary-600); }
.btn.danger { background: var(--red); } .btn.ghost { background: none; }
.btn.lg { min-height: 52px; font-size: 16px; }
.auth-card .btn.primary { border-color: transparent; background: var(--field); color: var(--lime); } .auth-card .btn.primary:hover { background: #12403a; }
.seg { border: 0; border-radius: 999px; background: var(--surface-2); } .seg button { border-radius: 999px; } .seg button.on { box-shadow: none; background: var(--field); color: #fff; }
.store-sel { border-color: transparent; background: var(--surface); border-radius: 999px; padding-inline: 14px; }
.icon-btn { border-radius: 50%; }
input, select, textarea { border-radius: 12px; }

/* tables: rows separated by tone, plain header labels */
th { text-transform: none; letter-spacing: 0; font-size: 13px; background: transparent; font-weight: 600; color: var(--muted); }
td, th { border-bottom: 0; padding: 13px 16px; }
tbody tr:nth-child(even) td { background: var(--surface-2); } tbody tr.click:hover td { background: var(--primary-50); }
tbody tr td:first-child { border-radius: 10px 0 0 10px; } tbody tr td:last-child { border-radius: 0 10px 10px 0; }
.badge { padding: 3px 11px; }

/* lists, tiles, modals */
.list-row { border-bottom: 0; } .list-row:nth-child(odd) { background: var(--surface-2); border-radius: 12px; }
.drug-tile { border: 0; background: var(--surface-2); border-radius: 14px; } .drug-tile:hover { background: var(--primary-50); box-shadow: none; }
.pay-modes label { border-color: transparent; background: var(--surface-2); border-radius: 12px; }
.modal { border-radius: 22px; } .modal-h, .modal-f { border: 0; }
.panel { border: 0; border-radius: 18px; }
.bars .bar { border-radius: 999px; max-width: 26px; opacity: 1; background: var(--primary); } .bars .bar.today { background: var(--lime); }
.hbar .track, .meter { height: 10px; border-radius: 999px; } .hbar .fill { border-radius: 999px; }
.plan-card { border: 0; border-radius: 18px; padding: 22px; } .plan-card.cur { box-shadow: none; background: var(--field); color: #eaf5f1; } .plan-card.cur ul { color: #b9d3cb; }
.plan-card .price { font-size: 40px; letter-spacing: -.04em; }
.bottom-nav { border-top: 0; }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .auth-hero { display: flex; padding: 28px 22px 32px; gap: 20px; } .auth-hero h1 { font-size: 46px; } .auth-hero ul, .auth-hero p { display: none; } .bill { transform: none; }
  .content { padding: 4px 16px calc(84px + var(--sab)); } .top h1 { font-size: 22px; } .stat .val { font-size: 30px; }
  .auth-card h2 { font-size: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  .auth-hero > *, .auth-card > * { animation: rise .7s var(--ease-out) both; }
  .auth-hero > :nth-child(2), .auth-card > :nth-child(2) { animation-delay: .06s; } .auth-hero > :nth-child(3), .auth-card > :nth-child(3) { animation-delay: .12s; }
  .auth-hero > :nth-child(4), .auth-card > :nth-child(4) { animation-delay: .2s; } .auth-hero > :nth-child(5) { animation-delay: .28s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}

/* ===== restore the original teal scheme ===== */
.auth-hero { background: linear-gradient(145deg, #0b8f7e, #086b5e 60%, #064a52); }
.auth-hero .logo-mark { background: rgba(255,255,255,.2); color: #fff; }
.auth-hero p, .auth-hero li { color: #e6f5f2; } .auth-hero li .ic { color: #fff; }
.bill-t { background: var(--primary); color: #fff; }
.auth-card .btn.primary, .btn.primary { background: var(--primary); color: #fff; } .auth-card .btn.primary:hover, .btn.primary:hover { background: var(--primary-600); }
.nav-i.active, :root[data-theme="dark"] .nav-i.active { background: var(--primary-50); color: var(--primary); } .nav-i.active .ic { color: var(--primary); }
.seg button.on { background: var(--surface); color: var(--primary); box-shadow: 0 1px 3px rgba(16,40,50,.12); }
.bars .bar.today { background: var(--blue); }
.plan-card.cur { background: var(--primary-50); color: var(--text); } .plan-card.cur ul { color: var(--muted); }
.card { border: 1px solid var(--border); } .plan-card { border: 1px solid var(--border); }
.btn { border-color: var(--border); background: var(--surface); } .btn.primary { border-color: var(--primary); } .btn.danger { border-color: var(--red); } .btn.ghost { border-color: transparent; background: none; }
.btn:hover { background: var(--surface-2); }
.auth-card input, input, select, textarea { border: 1px solid var(--border); }

/* ===== motion ===== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes pop-in { from { opacity: 0; transform: scale(.94) translateY(10px); } }
  @keyframes slide-r { from { opacity: 0; transform: translateX(-14px); } }
  @keyframes float { 0%,100% { transform: rotate(-1.4deg) translateY(0); } 50% { transform: rotate(-.6deg) translateY(-8px); } }
  @keyframes grow-y { from { transform: scaleY(0); } } @keyframes grow-x { from { transform: scaleX(0); } }
  @keyframes drift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
  .auth-hero { background-size: 160% 160%; animation: drift 14s ease-in-out infinite; }
  .auth-hero > * { animation: rise .7s var(--ease-out) both; }
  .bill { animation: rise .8s var(--ease-out) .3s both, float 6s ease-in-out 1.2s infinite; }
  .auth-hero li { animation: slide-r .6s var(--ease-out) both; } .auth-hero li:nth-child(1){animation-delay:.5s} .auth-hero li:nth-child(2){animation-delay:.62s} .auth-hero li:nth-child(3){animation-delay:.74s}
  .logo-mark { transition: transform .4s var(--ease-out); } .logo:hover .logo-mark { transform: rotate(-12deg) scale(1.08); }

  /* page content enters in a stagger */
  .content > * { animation: rise .5s var(--ease-out) both; }
  .content > :nth-child(2) { animation-delay: .06s; } .content > :nth-child(3) { animation-delay: .12s; } .content > :nth-child(4) { animation-delay: .18s; } .content > :nth-child(n+5) { animation-delay: .24s; }
  .grid > .card, .grid > .stat { animation: pop-in .5s var(--ease-out) both; }
  .grid > :nth-child(1) { animation-delay: .05s; } .grid > :nth-child(2) { animation-delay: .1s; } .grid > :nth-child(3) { animation-delay: .15s; } .grid > :nth-child(4) { animation-delay: .2s; } .grid > :nth-child(5) { animation-delay: .25s; } .grid > :nth-child(6) { animation-delay: .3s; }
  tbody tr { animation: rise .4s var(--ease-out) both; } tbody tr:nth-child(1){animation-delay:.04s} tbody tr:nth-child(2){animation-delay:.08s} tbody tr:nth-child(3){animation-delay:.12s} tbody tr:nth-child(4){animation-delay:.16s} tbody tr:nth-child(5){animation-delay:.2s} tbody tr:nth-child(n+6){animation-delay:.24s}
  .list-row, .n-item, .drug-tile, .cart-line { animation: rise .4s var(--ease-out) both; }
  .bars .bar { transform-origin: bottom; animation: grow-y .8s var(--ease-out) both; } .bars .bar-col:nth-child(2) .bar{animation-delay:.05s} .bars .bar-col:nth-child(3) .bar{animation-delay:.1s} .bars .bar-col:nth-child(4) .bar{animation-delay:.15s} .bars .bar-col:nth-child(5) .bar{animation-delay:.2s} .bars .bar-col:nth-child(6) .bar{animation-delay:.25s} .bars .bar-col:nth-child(n+7) .bar{animation-delay:.3s}
  .hbar .fill, .meter > i { transform-origin: left; animation: grow-x .9s var(--ease-out) .15s both; }

  /* hover life */
  .card, .stat, .plan-card { transition: transform .25s var(--ease-out), box-shadow .25s ease, border-color .2s ease, background-color .2s ease; }
  .stat:hover, .plan-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(8,121,106,.12); }
  .stat .ico { transition: transform .3s var(--ease-out); } .stat:hover .ico { transform: scale(1.12) rotate(-6deg); }
  .btn.primary { transition: transform .16s var(--ease-out), background-color .16s, box-shadow .25s; } .btn.primary:hover { box-shadow: 0 6px 18px rgba(8,121,106,.35); transform: translateY(-1px); }
  .nav-i { position: relative; } .nav-i::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--primary); transform: scaleY(0); transition: transform .25s var(--ease-out); } .nav-i.active::before { transform: scaleY(1); }
  .nav-i:hover .ic { transform: translateX(2px) scale(1.08); } .nav-i .ic { transition: transform .2s var(--ease-out), color .16s; }
  .drug-tile:hover, .list-row:hover { transform: translateY(-2px); }
  .badge.red { animation: pulse 2.4s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .65; } }
  .icon-btn .dot { animation: badge-in .3s var(--ease-out), pulse 2s ease-in-out 1s infinite; }
  .auth-card > * { animation: rise .6s var(--ease-out) both; } .auth-card > :nth-child(2) { animation-delay: .06s; } .auth-card > :nth-child(3) { animation-delay: .12s; } .auth-card > :nth-child(4) { animation-delay: .18s; } .auth-card > :nth-child(n+5) { animation-delay: .24s; }
}

/* legal links under the sign-in form and in the sidebar */
.auth-form { position: relative; } .legal-links { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 13px; }
.legal-links a { color: var(--muted); } .legal-links a:hover { color: var(--primary); }
.side .legal-links { position: static; justify-content: flex-start; padding: 10px 12px 0; gap: 12px; font-size: 12px; }
#cookie-notice { position: fixed; left: 16px; right: 16px; bottom: calc(16px + var(--sab, 0px)); max-width: 760px; margin: 0 auto; z-index: 300; background: var(--field, #086b5e); color: #fff; border-radius: 18px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; font-size: 14px; line-height: 1.5; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
#cookie-notice a { color: #fff; text-decoration: underline; } #cookie-notice .btn.primary { background: #fff; color: var(--field, #086b5e); border-color: #fff; flex: none; }
#cookie-notice.out { opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
@media (max-width: 860px) { #cookie-notice { bottom: calc(84px + var(--sab, 0px)); } }
@media (max-width: 600px) { #cookie-notice { flex-direction: column; align-items: stretch; } }
@media (prefers-reduced-motion: no-preference) { #cookie-notice { animation: rise .6s var(--ease-out) .5s both; } }

/* prescription photos and UPI collection */
.rx-box { display: grid; gap: 8px; }
.rx-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.rx-wrap { position: relative; display: inline-block; }
.rx-thumb { width: 64px; height: 64px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); cursor: pointer; flex: none; transition: transform .2s var(--ease-out); }
.rx-thumb.lg { width: 96px; height: 96px; } .rx-thumb:hover { transform: scale(1.05); }
.rx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rx-x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; cursor: pointer; line-height: 1; font-size: 15px; }
.rx-card { display: grid; gap: 4px; justify-items: start; }
.rx-full { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 12px; background: var(--surface-2); }
.upi-box { display: flex; gap: 16px; align-items: center; background: var(--surface-2); border-radius: 16px; padding: 14px; }
.upi-qr { width: 168px; flex: none; background: #fff; border-radius: 12px; padding: 4px; } .upi-qr svg { display: block; width: 100%; height: auto; }
.upi-amt { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-family: var(--display); }
@media (max-width: 480px) { .upi-box { flex-direction: column; text-align: center; } .upi-qr { width: 200px; } }
@media (prefers-reduced-motion: no-preference) { .upi-qr { animation: pop-in .4s var(--ease-out) both; } }

/* ===== welcome screen: bright, trustworthy, always light ===== */
.auth { --bg: #f4f9f8; --surface: #fff; --surface-2: #f8fafb; --border: #dbe6e9; --text: #14232b; --muted: #5b6e79; --primary: #08796a; --primary-600: #066155; --primary-50: #e6f5f2; color-scheme: light; background: #fff; }
.auth-hero { position: relative; overflow: hidden; color: #0c3b36; background: linear-gradient(160deg, #eaf8f4 0%, #d6f1ea 55%, #c4ebe2 100%); background-size: 100% 100%; animation: none; justify-content: center; gap: 26px; isolation: isolate; }
.auth-hero::before, .auth-hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(2px); }
.auth-hero::before { width: 380px; height: 380px; right: -110px; top: -90px; background: radial-gradient(circle at 30% 30%, #8fe0cf, rgba(143,224,207,0) 70%); }
.auth-hero::after { width: 320px; height: 320px; left: -100px; bottom: -80px; background: radial-gradient(circle at 60% 40%, #a8d8f0, rgba(168,216,240,0) 70%); }
.auth-hero .logo { color: #0a5a4f; } .auth-hero .logo-mark { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(8,121,106,.3); }
.auth-hero h1 { color: #0a3a34; max-width: 13ch; }
.auth-hero p { color: #3d5c58; }
.auth-hero .trust li { color: #19463f; font-weight: 500; } .auth-hero li .ic { color: #fff; background: var(--primary); border-radius: 50%; padding: 3px; width: 20px; height: 20px; flex: none; }
.hero-art { position: relative; max-width: 460px; padding: 6px 0 22px; }
.bill { background: #fff; color: #14211e; border-radius: 16px; box-shadow: 0 24px 50px -18px rgba(8,90,78,.35), 0 4px 10px rgba(8,90,78,.08); padding: 20px 22px 14px; transform: rotate(-1.2deg); }
.bill-t { background: var(--primary); color: #fff; border-radius: 0 0 16px 16px; margin: 4px -22px -14px; padding: 14px 22px; } .bill-t span { display: inline-flex; gap: 6px; align-items: center; } .bill-t .ic { width: 16px; height: 16px; }
.chip { position: absolute; display: inline-flex; gap: 8px; align-items: center; background: #fff; color: #14423b; font-size: 13.5px; font-weight: 600; padding: 9px 14px; border-radius: 999px; box-shadow: 0 10px 26px -8px rgba(8,90,78,.35); white-space: nowrap; }
.chip .ic { width: 16px; height: 16px; color: var(--primary); }
.chip-a { right: -26px; top: -18px; } .chip-b { left: 18px; bottom: -4px; } .chip-b .ic { color: #b86e00; }
.auth-form { background: #fff; }
.auth-card .btn.primary { box-shadow: 0 8px 20px -8px rgba(8,121,106,.6); }
.demo-box { background: var(--primary-50); border: 1px solid #bfe5dd; border-radius: 12px; }
@media (max-width: 900px) { .hero-art { display: none; } .auth-hero .trust { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes blob { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-26px,22px) scale(1.12); } }
  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
  @keyframes chip-in { from { opacity: 0; transform: translateY(14px) scale(.9); } }
  .auth-hero::before { animation: blob 11s ease-in-out infinite; } .auth-hero::after { animation: blob 14s ease-in-out -4s infinite reverse; }
  .bill { animation: rise .8s var(--ease-out) .25s both, float 7s ease-in-out 1.2s infinite; }
  .bill-r { animation: slide-r .5s var(--ease-out) both; } .bill-r:nth-of-type(2) { animation-delay: .5s; } .bill-r:nth-of-type(3) { animation-delay: .65s; } .bill-r:nth-of-type(4) { animation-delay: .8s; }
  .chip-a { animation: chip-in .6s var(--ease-out) 1.3s both, bob 5s ease-in-out 2s infinite; } .chip-b { animation: chip-in .6s var(--ease-out) 1.6s both, bob 6s ease-in-out -2s infinite; }
  .auth-hero h1 { animation: rise .8s var(--ease-out) .08s both; }
  .btn.primary:active { transform: scale(.98); }
}

/* ===== welcome v3: text is never hidden; medicine art ===== */
.meds { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.med { position: absolute; display: block; filter: drop-shadow(0 14px 18px rgba(8,90,78,.18)); }
.m-bottle { width: 112px; right: 6%; top: 36%; transform: rotate(8deg); }
.m-blister { width: 170px; right: 5%; bottom: 7%; transform: rotate(-9deg); }
.m-caps1 { width: 120px; right: 2%; top: 3%; transform: rotate(-28deg); }
.m-caps2 { width: 100px; right: 4%; top: 21%; transform: rotate(35deg); }
.m-tab { width: 62px; right: 30%; bottom: 8%; transform: rotate(12deg); }
.m-plus { width: 30px; right: 22%; top: 30%; opacity: .5; }
@media (max-width: 900px) {
  .meds { z-index: 0; } .auth-hero { padding-bottom: 150px; } .auth-hero > :not(.meds) { position: relative; z-index: 1; }
  .m-bottle { width: 70px; right: 5%; top: auto; bottom: 10px; } .m-blister { width: 110px; right: 22%; bottom: 14px; } .m-caps1 { width: 80px; right: 52%; top: auto; bottom: 20px; } .m-caps2, .m-tab, .m-plus { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes lift { from { transform: translateY(14px); } }
  @keyframes fl1 { 50% { transform: translateY(-14px) rotate(-22deg); } } @keyframes fl2 { 50% { transform: translateY(12px) rotate(28deg); } }
  @keyframes fl3 { 50% { transform: translateY(-12px) rotate(14deg); } } @keyframes fl4 { 50% { transform: translateY(10px) rotate(-14deg); } }
  .m-caps1 { animation: fl1 7s ease-in-out infinite; } .m-caps2 { animation: fl2 8s ease-in-out -2s infinite; }
  .m-bottle { animation: fl3 9s ease-in-out -1s infinite; } .m-blister { animation: fl4 10s ease-in-out -3s infinite; }
  .m-tab { animation: fl3 6s ease-in-out -4s infinite; } .m-plus { animation: spin 12s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
  /* motion only on transform: the words stay fully visible from the first frame */
  .auth-card > *, .auth-hero > :not(.meds), .auth-hero h1, .auth-hero li, .bill-r { animation-name: lift; animation-duration: .6s; animation-timing-function: var(--ease-out); animation-fill-mode: both; }
  .auth-hero > .hero-art { animation: lift .8s var(--ease-out) both; }
}

/* welcome: in OS dark mode body text is near-white, so pin the form's text colours to the light scheme */
.auth { color: var(--text); }
.auth-form, .auth-card h2, .auth-card label, .demo-box, .demo-box b { color: #14232b; }
.auth-card .muted, .auth-card .small.muted, .demo-box { color: #3d5560; }
.demo-box b { color: #0a5a4f; font-weight: 700; }
.auth-card input { color: #14232b; background: #fff; border-color: #cbd9de; }
.auth-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(8,121,106,.15); }
.auth-card a { color: #066155; font-weight: 600; }
.demo-box .btn { color: #066155; background: #fff; border-color: #bfe5dd; }
.legal-links a { color: #3d5560; }

/* welcome: pharmacy storefront illustration */
.shop { filter: drop-shadow(0 24px 30px rgba(8,90,78,.22)); } .shop svg { display: block; width: 100%; height: auto; }
.hero-art { max-width: 360px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes cross-pulse { 50% { transform: translate(-6px,-2px) scale(1.08); } } @keyframes sway { 50% { transform: skewX(-1.2deg); } }
  @keyframes open-blink { 0%,86%,100% { opacity: 1; } 90%,96% { opacity: .25; } }
  .shop { animation: float 7s ease-in-out 1.2s infinite; }
  .s-cross { transform-box: fill-box; transform-origin: center; animation: cross-pulse 2.6s ease-in-out infinite; }
  .s-awning { transform-origin: 50% 0; transform-box: fill-box; animation: sway 6s ease-in-out infinite; }
  .s-open { animation: open-blink 4s linear infinite; }
}

/* ===== printing: always black on white, only the invoice ===== */
@media print {
  :root, :root[data-theme="dark"] { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --muted: #444; --border: #bbb; color-scheme: light; }
  html, body { background: #fff !important; color: #000 !important; }
  #app, .toast, #cookie-notice, .toasts { display: none !important; }
  .modal-wrap { position: static !important; display: block !important; background: #fff !important; animation: none !important; padding: 0 !important; }
  .modal, .modal-b { animation: none !important; transform: none !important; background: #fff !important; }
  .modal-h, .modal-f, .modal > header, .modal > footer { display: none !important; }
  .print-area { position: static !important; width: 100% !important; max-width: 100%; margin: 0; padding: 0; background: #fff !important; }
  .print-area, .print-area * { visibility: visible !important; color: #000 !important; animation: none !important; opacity: 1 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-area .muted, .print-area .small.muted { color: #444 !important; }
  .print-area table { width: 100%; border-collapse: collapse; } .print-area th, .print-area td { border-bottom: 1px solid #999; padding: 4px 6px; }
  .print-area tr { break-inside: avoid; }
  @page { margin: 10mm; }
}

/* ===== command palette, shortcut help, loyalty box, accounts ===== */
kbd { font: 600 11px/1 var(--display, system-ui); padding: 3px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); border-bottom-width: 2px; }
.cmdk-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 10px 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; cursor: pointer; transition: border-color .16s, background-color .16s, transform .16s; }
.cmdk-btn:hover { border-color: var(--primary); color: var(--text); } .cmdk-btn:active { transform: scale(.98); } .cmdk-btn .ic { width: 16px; height: 16px; }
.cmdk-btn kbd { margin-left: 18px; }
@media (max-width: 860px) { .cmdk-btn { width: 40px; padding: 0; justify-content: center; } .cmdk-btn .hide-m { display: none; } }
.cmdk-wrap { position: fixed; inset: 0; z-index: 400; background: rgba(8, 20, 26, .5); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.cmdk { width: 100%; max-width: 640px; background: var(--surface); color: var(--text); border-radius: 16px; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); overflow: hidden; display: flex; flex-direction: column; max-height: 70vh; }
.cmdk-in { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--muted); }
.cmdk-in input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 500; color: var(--text); min-height: 28px; padding: 0; box-shadow: none; }
.cmdk-list { overflow-y: auto; padding: 6px; }
.cmdk-g { font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 10px 4px; }
.cmdk-i { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.cmdk-i .ic { width: 18px; height: 18px; color: var(--muted); flex: none; } .cmdk-i b { font-weight: 600; } .cmdk-i small { display: block; color: var(--muted); font-size: 12.5px; }
.cmdk-i.on { background: var(--primary-50); } .cmdk-i.on .ic { color: var(--primary); }
.cmdk-empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); background: var(--surface-2); } .cmdk-foot kbd { margin-right: 4px; }
.g-hint { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 350; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; max-width: min(92vw, 760px); padding: 10px 16px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 13px; box-shadow: 0 14px 40px rgba(0, 0, 0, .3); }
.g-hint b { margin-right: 4px; } .g-hint span { white-space: nowrap; } .g-hint kbd { background: rgba(255, 255, 255, .16); border-color: transparent; color: inherit; margin-right: 3px; }
.kb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 28px; } .kb-grid h4 { margin: 0 0 8px; font-size: 14px; }
.kb-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); } .kb-row:last-child { border-bottom: 0; }
.loy-box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--primary-50); } .loy-box .ic { color: var(--primary); flex: none; }
.loy-box input { width: 76px; min-height: 34px; padding: 4px 8px; }
.stat .val.pos { color: var(--green); } .stat .val.neg { color: var(--red); }
.t-row.warn { color: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  @keyframes cmdk-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
  .cmdk { animation: cmdk-in .16s var(--ease-out); } .g-hint { animation: rise .2s var(--ease-out) both; }
}
