/* Kana4You - system fonts only, mobile first. Contrast checked against #0F1B2A. */
:root {
  --bg: #0F1B2A;
  --bg2: #16273b;
  --bg3: #1f3550;
  --line: #34506f;
  --text: #FFF4E0;      /* on --bg ~15:1 */
  --muted: #BCC8D6;     /* on --bg ~9:1 */
  --orange: #F28C28;    /* on --bg ~7:1; navy text on orange ~7:1 */
  --orange-hi: #FFB259;
  --red: #D7261E;       /* white text on red ~5.3:1 */
  --ok: #7FD99A;
  --warn: #FFD166;
  --err: #FF8A80;
  --radius: 16px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: radial-gradient(120% 60% at 50% -10%, #1d3550 0%, var(--bg) 60%) var(--bg);
  color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.5;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
img, svg, video, canvas { max-width: 100%; }
a { color: var(--orange-hi); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.2rem; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--bg); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.demo-banner { display: none; background: var(--red); color: #fff; text-align: center; font-weight: 700; padding: 8px 12px; font-size: .95rem; position: sticky; top: 0; z-index: 50; }
[data-mode="demo"] .demo-banner { display: block; }
[data-mode="live"] .demo-only { display: none !important; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; max-width: 560px; width: 100%; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; min-height: 48px; }
.brand img { width: 44px; height: 44px; }
.lang { display: flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-btn { min-width: 48px; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--orange); color: var(--bg); }

main { flex: 1; width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 16px 32px; }
.site-footer { max-width: 560px; width: 100%; margin: 0 auto; padding: 16px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
.site-footer p { margin: 0 0 .4em; }

.panel { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 0 0 16px; }
.panel h2 { margin-bottom: .4em; }
.muted { color: var(--muted); }
.center { text-align: center; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: 56px; padding: 12px 18px; border: 2px solid transparent; border-radius: 14px;
  font: inherit; font-size: 1.1rem; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--orange); color: var(--bg); }
.btn-primary:hover { background: var(--orange-hi); }
.btn-red { background: var(--red); color: #fff; }
.btn-line { background: transparent; color: var(--text); border-color: var(--line); }
.btn-line:hover { border-color: var(--orange); }
.btn-small { min-height: 48px; font-size: 1rem; width: auto; padding: 8px 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.stack > * + * { margin-top: 12px; }

label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="password"], input[type="tel"], input[inputmode] {
  width: 100%; min-height: 56px; padding: 10px 14px; font: inherit; font-size: 1.25rem;
  background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 12px;
}
input:focus { border-color: var(--orange); }
.hint { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.msg { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-weight: 600; }
.msg-err { background: #3a1a1a; color: var(--err); border: 1px solid #7a2f2f; }
.msg-ok { background: #14301f; color: var(--ok); border: 1px solid #2c6b43; }
.msg-warn { background: #3a2f10; color: var(--warn); border: 1px solid #7a6420; }

/* landing */
.hero { text-align: center; padding-top: 12px; }
.hero img.logo { width: min(62vw, 240px); height: auto; margin: 0 auto 12px; display: block; filter: drop-shadow(0 8px 24px rgba(242,140,40,.35)); }
.pitch { list-style: none; padding: 0; margin: 0 0 20px; text-align: left; }
.pitch li { padding: 8px 0 8px 34px; position: relative; }
.pitch li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 20px; height: 20px; background: var(--orange); border-radius: 50% 50% 50% 8%; transform: rotate(-45deg); }

/* stamps */
.stamps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 0; margin: 12px 0; }
.stamp { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; border: 2px dashed var(--line); color: var(--line); background: var(--bg); }
.stamp svg { width: 62%; height: 62%; }
.stamp .num { position: absolute; bottom: 2px; right: 6px; font-size: .7rem; font-weight: 700; color: var(--muted); }
.stamp.on { border: 2px solid var(--orange); background: linear-gradient(160deg, #3a2410, #5a2b0e); color: var(--orange-hi); }
.stamp.on .num { color: var(--bg); background: var(--orange); border-radius: 8px; padding: 0 4px; }
.progress { font-weight: 700; font-size: 1.15rem; }

.reward { border: 2px solid var(--orange); background: linear-gradient(160deg, #3a2410, #2a1a10); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
.reward h2 { color: var(--orange-hi); font-size: 1.35rem; margin-bottom: .2em; }

.qr-box { background: #fff; border-radius: 14px; padding: 8px; width: min(100%, 320px); margin: 12px auto; }
.qr-box svg { display: block; width: 100%; height: auto; }
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.5rem; font-weight: 700; letter-spacing: .06em; text-align: center; background: var(--bg); border: 2px dashed var(--line); border-radius: 12px; padding: 12px; user-select: all; word-break: break-all; }
.steps { padding-left: 1.2em; margin: .4em 0 0; }
.steps li { margin-bottom: .3em; }

/* staff */
.video-wrap { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; margin: 12px 0; }
.video-wrap video { display: block; width: 100%; max-height: 60vh; object-fit: cover; }
.video-wrap::after { content: ""; position: absolute; inset: 15%; border: 3px solid var(--orange); border-radius: 16px; pointer-events: none; }
.calc { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 1.15rem; }
.calc td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.calc td:last-child { text-align: right; font-weight: 700; }
.calc tr.pay td { font-size: 1.5rem; color: var(--orange-hi); border-bottom: 0; }
.mini-stamps { display: flex; gap: 4px; flex-wrap: wrap; margin: 6px 0; }
.mini-stamps i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: inline-block; }
.mini-stamps i.on { background: var(--orange); border-color: var(--orange); }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.row .btn-small { flex: 0 0 auto; }

@media (prefers-reduced-motion: no-preference) {
  .stamp.on { animation: pop .35s ease-out; }
  @keyframes pop { from { transform: scale(.7); } to { transform: scale(1); } }
}

.panel-gap { margin-bottom: 16px; }
.push-status:empty { display: none; }
.push-status { margin: 12px 0 0; }
#push .btn + .hint, #push-active .msg { margin-top: 0; }
#push .hint { margin-top: 10px; }
.rule { font-weight: 600; margin: .4em 0; }
.site-footer .credit { margin-top: .8em; padding-top: .6em; border-top: 1px dashed var(--line); }
.site-footer .credit a { font-weight: 700; text-decoration: none; }

/* ================= ADMIN (owner dashboard, /admin) ================= */
body.adm .top, body.adm main, body.adm .site-footer { max-width: 980px; }
.adm input[type="text"], .adm input[type="search"], .adm input[type="number"], .adm input[type="time"], .adm input[type="date"],
.adm textarea, .adm select {
  width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 1rem;
  background: var(--bg); color: var(--text); border: 2px solid var(--line); border-radius: 12px;
}
.adm textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
.adm select { appearance: auto; }
.adm input:focus, .adm textarea:focus, .adm select:focus { border-color: var(--orange); }
.adm [aria-invalid="true"] { border-color: var(--err); }
.adm input:disabled { opacity: .45; }
.adm label { font-size: .95rem; }
.adm .btn-small { min-height: 48px; }
.adm .btn-red { font-size: 1rem; }
.adm-sub { margin: -.3em 0 .8em; font-size: .9rem; }
.adm-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin: 0 0 12px; }
.adm-bar .btn { flex: 1 1 140px; }
.adm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.adm-pane { outline: none; padding-bottom: 8px; }
.adm-fields { display: grid; gap: 12px; margin: 0 0 14px; }
.adm-field > label, .adm-fields > div > label { display: block; margin-bottom: 4px; }
@media (min-width: 560px) { .adm-fields { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } }
@media (min-width: 700px) { .adm-fields--2 { grid-template-columns: 1fr 1fr; } }

/* tabs: sticky segmented control (sits under the sticky DEMO banner when there is one).
   Six tabs: 3 x 2 on phones (labels like "Teavitused" do not fit a 360px single row), one row from 760px. */
.adm-tabs {
  position: sticky; top: var(--banner-h, 0px); z-index: 40; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; padding: 4px; margin: 0 0 16px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
}
.adm-tab {
  position: relative; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px;
  min-height: 46px; padding: 6px 4px; border: 0; border-radius: 12px; background: transparent; color: var(--muted);
  font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; line-height: 1.15; min-width: 0;
}
.adm-tab svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.adm-tab:hover { color: var(--text); }
.adm-tab[aria-selected="true"] { background: var(--orange); color: var(--bg); }
.adm-dot { display: none; position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); border: 2px solid var(--bg2); }
.adm-tab.is-dirty .adm-dot { display: block; }
@media (min-width: 760px) {
  .adm-tabs { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .adm-tab { gap: 8px; font-size: .95rem; min-height: 50px; }
  .adm-dot { top: 8px; right: 10px; }
}

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.kpi { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; min-width: 0; }
.kpi--wide { grid-column: 1 / -1; background: linear-gradient(160deg, #3a2410, var(--bg2)); border-color: #6b4a22; }
.kpi__label { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.kpi__value { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.kpi--wide .kpi__value { font-size: 2.8rem; color: var(--orange-hi); }
.kpi__sub { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .85rem; color: var(--muted); }
.delta { padding: 1px 8px; border-radius: 999px; font-weight: 700; font-size: .8rem; background: var(--bg3); color: var(--text); }
.delta--up { background: #14301f; color: var(--ok); }
.delta--down { background: #3a1a1a; color: var(--err); }
@media (min-width: 700px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpi--wide { grid-column: auto; }
  .kpi--wide .kpi__value { font-size: 2.4rem; }
}

/* charts */
.chart { width: 100%; min-height: 60px; }
.chart svg { display: block; }
.c-grid { stroke: var(--line); stroke-opacity: .7; stroke-width: 1; }
.c-txt { fill: var(--muted); font: 11px var(--font); }
.c-bar { fill: #6FA3DE; }
.c-free { fill: var(--orange); }
.c-hit { fill: transparent; cursor: pointer; }
.c-hit:hover { fill: rgba(255, 255, 255, .07); }
.h-zero { fill: var(--bg3); fill-opacity: .55; }
.h-cell { fill: var(--orange); }
.h-num { fill: var(--text); font: 700 10px var(--font); pointer-events: none; }
.h-num--dark { fill: var(--bg); }
.adm-detail { min-height: 1.5em; margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 6px 0 0; font-size: .88rem; color: var(--muted); }
.legend li { display: flex; align-items: center; }
.sw-box { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; }
.sw-box--visit { background: #6FA3DE; }
.sw-box--free { background: var(--orange); }
.heat-legend { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: .85rem; color: var(--muted); }
.heat-legend i { flex: 0 0 120px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(242, 140, 40, .18), #F28C28); }
.adm-best { margin: 10px 0 4px; font-weight: 700; color: var(--orange-hi); }

/* chips, events, history */
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bg3); color: var(--text); font-size: .78rem; font-weight: 700; line-height: 1.5; }
.chip--stamp { background: #14301f; color: var(--ok); }
.chip--redeem { background: var(--orange); color: var(--bg); }
.chip--void { background: #3a1a1a; color: var(--err); }
.chip--feat { background: transparent; color: var(--orange-hi); box-shadow: inset 0 0 0 1px var(--orange); }
.adm-events, .adm-history { list-style: none; padding: 0; margin: 0; }
.adm-ev, .adm-history li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.adm-ev:first-child, .adm-history li:first-child { border-top: 0; }
.adm-ev time, .adm-history time { color: var(--muted); font-size: .9rem; min-width: 7rem; }
.adm-id { min-height: 44px; padding: 0 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--orange-hi); font: 600 .95rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .04em; cursor: pointer; }
.adm-id:hover { border-color: var(--orange); }
.adm-hist__what { font-weight: 600; min-width: 8.5rem; }
.adm-history .is-void .adm-hist__what { text-decoration: line-through; opacity: .65; }
.code-h { font: 700 1.5rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .06em; margin: 0 0 .2em; word-break: break-all; }

/* switch */
.sw { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; font-weight: 600; cursor: pointer; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.sw-ui { flex: none; position: relative; width: 52px; height: 30px; border-radius: 999px; background: var(--bg); border: 2px solid var(--line); transition: background .15s, border-color .15s; }
.sw-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; }
.sw input:checked + .sw-ui { background: var(--orange); border-color: var(--orange); }
.sw input:checked + .sw-ui::after { transform: translateX(22px); background: var(--bg); }
.sw input:focus-visible + .sw-ui { outline: 3px solid var(--orange-hi); outline-offset: 3px; }
.sw input:disabled + .sw-ui { opacity: .5; }
.adm-sw { margin-bottom: 2px; }

/* menu editor */
.adm-tools { display: flex; align-items: flex-end; gap: 10px; margin: 0 0 12px; }
.adm-search { flex: 1; min-width: 0; }
.adm-search label { display: block; margin-bottom: 4px; }
.adm-tools .btn { flex: 0 0 auto; }
.adm-add { margin-top: 0; }
.adm-listhead, .adm-item__head { display: grid; grid-template-columns: minmax(0, 1fr) 96px 56px; gap: 8px; align-items: center; }
.adm-listhead { padding: 0 12px; margin: 4px 0 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.adm-listhead span:not(:first-child) { text-align: center; }
.adm-cat { margin: 0 0 18px; }
.adm-cat h2 { position: static; margin: 14px 0 8px; font-size: 1.05rem; color: var(--orange-hi); }
.adm-item { background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; margin: 0 0 8px; padding: 4px 12px 4px 4px; }
.adm-item.is-off .adm-item__name { opacity: .6; text-decoration: line-through; }
.adm-item__toggle {
  display: grid; grid-template-columns: minmax(0, 1fr) 22px; grid-template-areas: "n c" "m c"; align-items: center; column-gap: 6px;
  min-height: 52px; padding: 6px 8px; border: 0; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; border-radius: 10px;
}
.adm-item__name { grid-area: n; font-weight: 700; overflow-wrap: anywhere; }
.adm-item__meta { grid-area: m; display: flex; flex-wrap: wrap; gap: 4px; }
.adm-item__meta:empty { display: none; }
.adm-item__toggle .chev { grid-area: c; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.adm-item__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.adm-price { text-align: right; padding-left: 6px !important; padding-right: 8px !important; }
.adm-item__head .sw { justify-content: center; width: 56px; }
.adm-item__body { padding: 8px 4px 10px 8px; display: grid; gap: 12px; }
.adm-item__body label:not(.sw) { display: block; margin-bottom: 4px; }
.adm-item__opts .hint { margin: 0; }
.adm-photo { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; align-items: start; }
.adm-photo__img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); display: block; }
.adm-photo__ph { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 4px; box-sizing: border-box; }
.adm-photo__act { display: grid; gap: 8px; min-width: 0; justify-items: stretch; }
.adm-photo__act .btn { width: 100%; }
.adm-photo__file { display: none; }
.adm-photo__msg { margin: 0; }
.adm-photo__msg.is-err { color: var(--err); }
.adm-del { color: var(--err); border-color: #7a2f2f; justify-self: start; }

/* hours */
.adm-hours { display: grid; gap: 0; margin: 8px 0 14px; }
.adm-hour { padding: 12px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.adm-hour:first-child { border-top: 0; }
.adm-hour__times { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.adm-hour__times label { display: block; margin-bottom: 4px; }
.adm-hour__next { grid-column: 1 / -1; justify-self: start; }
.adm-hour.is-closed .adm-hour__day { color: var(--muted); }
@media (min-width: 640px) {
  .adm-hour { grid-template-columns: 9rem 10rem 1fr; }
  .adm-hour__times { grid-column: auto; grid-template-columns: 9rem 9rem auto; }
  .adm-hour__next { grid-column: auto; margin-bottom: 12px; }
}

/* sticky save bar */
.adm-save { position: sticky; bottom: 0; z-index: 30; margin: 16px -4px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--bg2); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 20px rgba(0, 0, 0, .4); }
.adm-save__msg .msg { margin: 0 0 8px; font-weight: 500; max-height: 34vh; overflow: auto; }
.adm-save__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.adm-status { flex: 1 1 100%; font-size: .9rem; color: var(--muted); }
.adm-status:empty { display: none; }
.adm-status.is-dirty { color: var(--warn); font-weight: 700; }
.adm-save .btn { flex: 1 1 auto; }
.adm-errs { margin: .4em 0 0; padding-left: 1.2em; }
.adm-errs__t { margin: 0; font-weight: 700; }
.adm-save { padding-top: 8px; }
.adm-save .btn { padding: 8px 10px; font-size: .95rem; min-width: 0; }
.adm-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; }
.adm-save .btn[data-restore] { flex: 1 1 55%; }
.adm-save .btn[data-do-save] { flex: 1 1 35%; }

/* notifications tab */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.kpis--2 { grid-template-columns: minmax(0, 1fr); }
.adm-lblrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 4px; }
.adm-lblrow label, .adm-lblrow h2 { margin: 0; }
.adm-count { flex: none; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-count.is-over { color: var(--err); font-weight: 700; }
.adm-seg { display: inline-flex; flex: none; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.adm-seg__btn { min-height: 44px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.adm-seg__btn[aria-pressed="true"] { background: var(--orange); color: var(--bg); }
.adm-ptitle { flex: 1 1 10rem; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.adm-pres { font-size: .85rem; }
#push-pg { display: block; width: 100%; height: 16px; margin: 14px 0 4px; accent-color: var(--orange); }
#push-send { margin-top: 4px; }
#push-prog-txt { margin: 4px 0 0; }

/* phone-style preview (after mockups/notificaciones.html) */
.pv-phone { width: 100%; max-width: 270px; margin: 12px auto 4px; aspect-ratio: 9 / 15; border-radius: 40px; padding: 9px; background: #0B0B0C; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 0 0 2px #2A2A2D; }
.pv-screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; color: #fff; display: flex; flex-direction: column; align-items: center; padding: 14px 10px; background: radial-gradient(120% 70% at 50% 110%, #E85D1A 0%, #8E2A12 35%, #2A1020 70%, #120A14 100%); }
.pv-island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 76px; height: 22px; border-radius: 20px; background: #000; }
.pv-date { margin-top: 30px; font-size: .85rem; font-weight: 500; opacity: .9; text-transform: capitalize; text-align: center; }
.pv-time { font-size: 3.4rem; line-height: 1; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.pv-notif { margin-top: auto; margin-bottom: 16px; width: 100%; border-radius: 20px; padding: 10px 11px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 3px 10px; align-items: start; background: rgba(245, 240, 235, .86); color: #111; }
.pv-notif img { width: 36px; height: 36px; border-radius: 9px; grid-row: span 2; background: #0F1B2A; }
.pv-meta { display: flex; justify-content: space-between; gap: 8px; font-size: .72rem; color: #4A4540; min-width: 0; }
.pv-meta b { font-weight: 600; color: inherit; }
.pv-msg { grid-column: 2; font-size: .82rem; line-height: 1.35; overflow-wrap: anywhere; }
.pv-title { font-weight: 700; font-size: .86rem; }
.pv-home { position: absolute; bottom: 7px; left: 50%; transform: translateX(-50%); width: 100px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .8); }

/* ---- welcome dialog (notifications, shown once after a card is created) ---- */
.welcome { border: 1px solid var(--line); border-radius: 22px; background: var(--bg2); color: var(--text); padding: 26px 22px 18px; width: min(420px, calc(100% - 24px)); text-align: center; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.welcome::backdrop { background: rgba(8,14,22,.7); backdrop-filter: blur(3px); }
.welcome[open] { animation: welcome-in .3s ease-out; }
@keyframes welcome-in { from { opacity: 0; transform: translateY(16px); } }
.welcome__ic { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: var(--orange); color: #0F1B2A; }
.welcome h2 { margin: 0 0 10px; font-size: 1.35rem; line-height: 1.25; }
.welcome p { margin: 0 0 16px; }
.welcome .stack { margin-bottom: 10px; }
.welcome .hint { margin: 0; font-size: .85rem; }
@media (prefers-reduced-motion: reduce) { .welcome[open] { animation: none; } }
