/* Otzar – store, customer portal and admin console */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/Inter-Medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/Inter-Bold.woff2) format("woff2"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-display: swap; src: url(fonts/InterDisplay-ExtraBold.woff2) format("woff2"); }

:root {
  --paper: #FBF8F3; --card: #FFFFFF; --ink: #1B1A17; --ink-2: #57534B; --ink-3: #8A857B;
  --line: #E8E2D6; --line-2: #F1ECE2; --teal: #0F6E6F; --teal-2: #0B5556; --gold: #E8B23A; --gold-2: #FFF4D8;
  --ok: #17803D; --ok-bg: #E5F5EA; --bad: #B42318; --bad-bg: #FDECEA; --warn: #8A5A00; --warn-bg: #FFF3D6;
  --r: 14px; --shadow: 0 1px 2px rgba(27,26,23,.05), 0 8px 24px -12px rgba(27,26,23,.18);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--teal); text-underline-offset: 2px; }
a:hover { color: var(--teal-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font: 800 clamp(30px, 4.6vw, 48px)/1.05 "Inter Display", Inter, sans-serif; letter-spacing: -.025em; }
h2 { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
small, .muted { color: var(--ink-3); }
.small { font-size: 13px; }
a.mono, td .mono { white-space: nowrap; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 640px; }

/* top bar */
.top { background: var(--ink); color: #fff; }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand .mk { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--gold), #F07C3A); display: grid; place-items: center; color: var(--ink); font: 800 16px "Inter Display", Inter; }
.top nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
@media (max-width: 560px) { .brand .bn { display: none; } .top nav a, .top nav button { padding: 7px 8px; } }
.top nav a, .top nav button { white-space: nowrap; color: #E8E2D6; text-decoration: none; padding: 7px 12px; border-radius: 8px; font: 500 14px Inter, sans-serif; background: none; border: 0; cursor: pointer; }
.top nav a:hover, .top nav button:hover { background: rgba(255,255,255,.1); color: #fff; }
.top form { margin: 0; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(232,178,58,.35), transparent 60%),
  radial-gradient(900px 500px at -10% 120%, rgba(15,110,111,.28), transparent 60%), var(--ink); color: #fff; padding: 64px 0 76px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { font-size: 19px; color: #E8E2D6; max-width: 640px; }
.hero .pills { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero .pills span { border: 1px solid rgba(255,255,255,.25); border-radius: 30px; padding: 6px 14px; font-size: 13.5px; color: #F4EFE6; }

/* cards and grids */
main { padding: 34px 0 60px; }
.hero + main { padding-top: 40px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-wide { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.g-narrow { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 860px) { .g2, .g3, .g4, .g-wide, .g-narrow { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.product { position: relative; overflow: hidden; padding: 26px; display: flex; flex-direction: column; }
.product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--pc, var(--teal)); }
.product .badge { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; background: var(--pc, var(--teal)); color: #fff; font: 800 20px "Inter Display", Inter; margin-bottom: 14px; }
.product p { color: var(--ink-2); }
.pbadge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 15px; background: var(--pc, var(--teal)); color: #fff; font: 800 26px "Inter Display", Inter; flex: 0 0 56px; }
.product .from { margin-top: auto; padding-top: 10px; font-size: 14px; color: var(--ink-3); }
.product .from b { font-size: 20px; color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--pc, var(--teal)); }
.plan .price { font: 800 32px/1 "Inter Display", Inter; letter-spacing: -.02em; margin: 6px 0 2px; }
.plan .price small { font: 500 14px Inter; color: var(--ink-3); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; }
.plan li { padding: 5px 0 5px 26px; position: relative; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 2px; top: 4px; color: var(--pc, var(--teal)); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* term picker */
.terms { border: 0; padding: 0; margin: 4px 0 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.terms legend { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; padding: 0; }
.term { margin: 0; cursor: pointer; font-weight: 400; }
.term input { position: absolute; opacity: 0; pointer-events: none; }
.tbox { display: flex; flex-direction: column; gap: 3px; border: 1.5px solid #D9D2C3; border-radius: 12px; padding: 12px 14px; background: #fff; height: 100%; }
.tbox .tprice { font: 800 19px "Inter Display", Inter, sans-serif; }
.tbox .tag { align-self: flex-start; }
.term input:checked + .tbox { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,110,111,.15); background: #F3FAF9; }
.term input:focus-visible + .tbox { outline: 3px solid rgba(15,110,111,.35); }
@media (max-width: 520px) { .terms { grid-template-columns: 1fr; } }
.multi { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; font-size: 13.5px; }
.multi a { color: var(--ink-2); text-decoration: none; }
.multi a:hover b { color: var(--teal); }
.nowrap { white-space: nowrap; }

/* forms */
label { display: block; font-weight: 600; font-size: 13.5px; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; border: 1px solid #D9D2C3; border-radius: 10px; background: #fff; padding: 10px 12px; font: inherit; color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15,110,111,.2); border-color: var(--teal); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--teal); }
.row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.row > .field { flex: 1 1 180px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #D9D2C3; background: #fff; color: var(--ink); padding: 10px 18px;
  border-radius: 10px; font: 600 14.5px Inter, sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-2); color: #fff; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.big { padding: 14px 24px; font-size: 16px; }
.btn.block { width: 100%; }
.inline { display: inline; margin: 0; }

/* notices */
.note { border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; background: var(--line-2); font-size: 14px; }
.note.ok { background: var(--ok-bg); color: #0E5A2A; }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note.warn { background: var(--warn-bg); color: var(--warn); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.gold { background: var(--gold-2); color: #7A5200; }

/* key box */
.key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; background: #17161A; color: #F4E7C5; border-radius: 10px; padding: 14px; line-height: 1.5; user-select: all; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 38px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--gold-2); color: #7A5200; font-weight: 700; font-size: 13px; display: grid; place-items: center; }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t td.n, table.t th.n { text-align: right; white-space: nowrap; }
.scroll { overflow-x: auto; }
dl.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; word-break: break-word; }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dt { margin-top: 6px; } }

/* order summary */
.summary { background: var(--ink); color: #F4EFE6; border-radius: var(--r); padding: 24px; }
.summary h3 { color: #fff; }
.summary .line { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed rgba(255,255,255,.15); font-size: 14px; }
.summary .total { font: 800 28px "Inter Display", Inter; color: var(--gold); margin-top: 12px; }
.paywith { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.paywith span { background: rgba(255,255,255,.1); border-radius: 6px; padding: 3px 8px; font-size: 12px; }

footer.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--ink-3); font-size: 13px; }
footer.foot .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }

/* admin */
.admin { display: grid; grid-template-columns: 228px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--ink) 228px, transparent 228px); }
.side { background: var(--ink); color: #E8E2D6; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { margin: 4px 6px 22px; }
.side nav a { display: flex; gap: 10px; align-items: center; color: #CFC8BA; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.side nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side nav a.on { background: rgba(232,178,58,.16); color: var(--gold); }
.side nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 12px 6px; }
.side .who { margin-top: 22px; font-size: 12.5px; color: #9C968A; padding: 0 8px; }
.side .who button { background: none; border: 0; color: #CFC8BA; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
.mode { display: inline-block; margin: 0 6px 16px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; padding: 3px 9px; border-radius: 20px; }
.mode.test { background: var(--gold); color: var(--ink); }
.mode.live { background: #2BB673; color: #fff; }
.body { padding: 26px 32px 60px; min-width: 0; }
.head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.head h1 { font-size: 28px; margin: 0; }
.head .btns { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kpi .v { font: 800 26px/1.1 "Inter Display", Inter; letter-spacing: -.02em; margin-top: 4px; }
.kpi .l { font-size: 12.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 160px; margin-top: 10px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars i { display: block; width: 100%; max-width: 38px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--gold), #F07C3A); min-height: 2px; }
.bars span { font-size: 11px; color: var(--ink-3); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filters a { padding: 6px 12px; border-radius: 20px; text-decoration: none; color: var(--ink-2); background: #fff; border: 1px solid var(--line); font-size: 13.5px; }
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters form { margin-left: auto; display: flex; gap: 6px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pc, var(--teal)); margin-right: 6px; }
@media (max-width: 900px) { .admin { grid-template-columns: 1fr; background: none; } .side { position: static; height: auto; } .body { padding: 20px 16px; } }

/* print (receipts) */
@media print { .noprint { display: none !important; } body { background: #fff; } .card { box-shadow: none; border: 0; } }
