/* Copii Tâmpiți: stil. Culorile se schimbă după faza zilei (body[data-season]). */
:root {
  --bg: #fbf7f3;
  --card: #ffffff;
  --ink: #2a2230;
  --ink2: #6b6070;
  --line: #eee5dd;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(60, 30, 50, .05), 0 8px 24px rgba(60, 30, 50, .07);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --c-iarna: #8ea2ff;
  --c-primavara: #6fcf97;
  --c-vara: #f2c94c;
  --c-toamna: #e07a3f;
  --c-per: #e5486b;
}

body[data-season="iarna"] {
  --a: #5a54d6; --a-soft: #eeeefe; --a-ink: #2e2a74;
  --grad: linear-gradient(160deg, #2b2766 0%, #4f46b8 55%, #8a7ae0 100%);
}
body[data-season="primavara"] {
  --a: #23905f; --a-soft: #e7f7ee; --a-ink: #134a33;
  --grad: linear-gradient(160deg, #165c42 0%, #2a9a68 55%, #8fd48a 100%);
}
body[data-season="vara"] {
  --a: #df6532; --a-soft: #fff1e4; --a-ink: #7a3412;
  --grad: linear-gradient(160deg, #d9532f 0%, #ee8a40 50%, #f5c556 100%);
}
body[data-season="toamna"] {
  --a: #b0502a; --a-soft: #fbeee4; --a-ink: #5c2a14;
  --grad: linear-gradient(160deg, #5e2814 0%, #a4472a 55%, #dc9a52 100%);
}

/* Rezerve pentru browserele fără color-mix() (iOS < 16.2). Regulile cu color-mix de mai jos le suprascriu. */
.cell.s-iarna { background: #e4e8ff; }
.cell.s-primavara { background: #e2f6ea; }
.cell.s-vara { background: #fcf1cf; }
.cell.s-toamna { background: #f9e4d8; }
.band-iarna { fill: #eef1ff; }
.band-primavara { fill: #edf9f2; }
.band-vara { fill: #fdf6dd; }
.band-toamna { fill: #fbeee6; }
.gs-iarna .gs-e { background: #e4e8ff; }
.gs-primavara .gs-e { background: #e2f6ea; }
.gs-vara .gs-e { background: #fcf1cf; }
.gs-toamna .gs-e { background: #f9e4d8; }
.letter { border: 1px solid rgba(0, 0, 0, .06); }
.mission { border: 2px dashed rgba(0, 0, 0, .12); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--a); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
h3 { font: 700 1.05rem/1.3 var(--sans); margin-bottom: .55rem; color: var(--a-ink); }
h3 small { font-weight: 600; color: var(--ink2); font-size: .8rem; margin-left: .3rem; }
h4 { font-size: .95rem; margin-bottom: .25rem; }
p { margin: .35rem 0; }

.splash { min-height: 100vh; display: grid; place-items: center; background: var(--grad); }
.splash img { width: 88px; border-radius: 22px; animation: breathe 1.6s ease-in-out infinite; }

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(96px + env(safe-area-inset-bottom));
}

/* ───── hero ───── */
.hero {
  position: relative;
  overflow: hidden;
  margin: 0 -16px 16px;
  padding: calc(14px + env(safe-area-inset-top)) 20px 26px;
  background: var(--grad);
  color: #fff;
  border-radius: 0 0 32px 32px;
  transition: background .6s;
}
.hero > *:not(.particles) { position: relative; }
.hero.slim { padding-bottom: 22px; }
.hero.slim h1 { font: 700 1.9rem/1.15 var(--serif); margin-top: 10px; }
.hero.slim p { opacity: .85; }
.hero-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; opacity: .95; }
.chip {
  border: 0; background: rgba(255, 255, 255, .18); color: #fff;
  width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem;
}
.daynav { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 6px; text-align: center; }
.daynav > div { display: flex; flex-direction: column; }
.daynav b { font-size: 1.05rem; }
.daynav b::first-letter { text-transform: uppercase; }
.daynav small { opacity: .8; }
.daynav button:disabled { opacity: .25; cursor: default; }
.sel-day h3::first-letter { text-transform: uppercase; }
.daynav small a { color: #fff; }
.daynav button {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.5rem; line-height: 1;
}
.hero-main { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.hero-txt { flex: 1; min-width: 0; }
.season { font-weight: 800; font-size: .9rem; letter-spacing: .02em; }
.season span { font-weight: 600; opacity: .8; }
.hero-txt h1 { font: 700 1.75rem/1.12 var(--serif); margin: 4px 0 8px; }
.hero-txt p { opacity: .85; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.batt { display: flex; align-items: center; gap: 7px; margin: -2px 0 8px; }
.batt.big { font-size: .95rem; }
.batt.big b { font-weight: 800; white-space: nowrap; }
.batt.small { font-size: .74rem; opacity: .85; }
.bicon {
  position: relative; display: inline-block; flex: none; width: 30px; height: 15px; padding: 2px;
  border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 4px;
}
.bicon::after { content: ""; position: absolute; right: -4px; top: 4px; width: 2.5px; height: 5px; border-radius: 0 2px 2px 0; background: rgba(255, 255, 255, .85); }
.bicon i { display: block; height: 100%; border-radius: 1.5px; }
.batt.small .bicon { width: 20px; height: 11px; padding: 1.5px; border-width: 1.2px; }
.batt.small .bicon::after { top: 3px; height: 3.5px; right: -3.5px; }
.tag { background: rgba(255, 255, 255, .2); padding: 2px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }

.ring { width: 128px; height: 128px; flex: none; }
.ring path { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring-track { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 11; }
.sk-iarna { stroke: var(--c-iarna); }
.sk-primavara { stroke: var(--c-primavara); }
.sk-vara { stroke: var(--c-vara); }
.sk-toamna { stroke: var(--c-toamna); }
.ring-dot { fill: #fff; stroke: rgba(0, 0, 0, .18); stroke-width: 1.5; }
.ring-dot.pulse { animation: pulse 1.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.ring-n { fill: #fff; font: 700 30px var(--serif); text-anchor: middle; }
.ring-of { fill: rgba(255, 255, 255, .8); font: 700 10px var(--sans); text-anchor: middle; }

.particles { position: absolute; inset: 0; pointer-events: none; }
.particles i {
  position: absolute; top: -10%; font-style: normal; font-size: 14px; opacity: .45;
  animation: fall linear infinite;
}
body[data-season="vara"] .particles i { color: #fff; }
@keyframes fall {
  0% { transform: translateY(0) rotate(0); }
  100% { transform: translateY(420px) rotate(240deg); }
}
@keyframes pulse { 50% { transform: scale(1.35); } }
@keyframes breathe { 50% { transform: scale(1.06); } }

/* ───── segment perspective ───── */
.seg {
  display: flex; background: var(--card); border-radius: 99px; padding: 4px; margin: 0 0 14px;
  box-shadow: var(--shadow);
}
.seg button {
  flex: 1; border: 0; background: none; padding: 9px 8px; border-radius: 99px;
  font-weight: 700; font-size: .9rem; color: var(--ink2);
}
.seg button.on { background: var(--a); color: #fff; }

/* ───── cards ───── */
.card {
  background: var(--card); border-radius: var(--radius); padding: 18px;
  margin-bottom: 14px; box-shadow: var(--shadow);
}
.card.center { text-align: center; }
.big-e { font-size: 2.6rem; }
.lead { font-size: 1.05rem; font-weight: 600; }
.fine { font-size: .85rem; color: var(--ink2); }
.center { text-align: center; }
blockquote { margin: .5rem 0 0; padding: .6rem .9rem; background: var(--a-soft); border-radius: 14px; font-style: italic; }

.letter {
  background: var(--a-soft);
  border: 1px solid color-mix(in srgb, var(--a) 18%, transparent);
}
.letter p { font: 500 1.18rem/1.5 var(--serif); font-style: italic; color: var(--a-ink); }
.letter .sig { text-align: right; font-size: 1.2rem; }

.meteo { background: var(--a-soft); }
.meteo .lead { font: 500 1.15rem/1.45 var(--serif); color: var(--a-ink); }
.meters { margin-top: 12px; display: grid; gap: 7px; }
.meter { display: grid; grid-template-columns: 112px 1fr 34px; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; }
.meter b { color: var(--ink2); font-size: .78rem; text-align: right; }
.bar { height: 9px; background: rgba(0, 0, 0, .07); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--a); border-radius: 99px; transition: width .6s; }
.bar.big { height: 14px; margin: 10px 0 4px; }

.report.muted p { color: var(--ink2); }
.mood-big { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.mood-big span { font-size: 2.2rem; }
.tip { background: var(--a-soft); padding: 8px 12px; border-radius: 12px; font-weight: 600; }

.do ul { margin: 0; padding-left: 1.1rem; }
.do li { margin: .3rem 0; }
.avoid { margin-top: 10px; padding: 10px 12px; background: #fff1f1; border-radius: 12px; color: #8a2c2c; font-size: .95rem; }

.mission { border: 2px dashed color-mix(in srgb, var(--a) 45%, transparent); background: linear-gradient(180deg, #fff, var(--a-soft)); }
.mission .btn { margin-top: 8px; }
.hearts { display: flex; gap: 6px; margin-top: 6px; font-size: 1.7rem; }
.hearts button { border: 0; background: none; padding: 0 2px; font-size: 1.9rem; transition: transform .15s; }
.hearts button:active { transform: scale(1.3); }

.tri { display: grid; gap: 14px; }
.tri h4 { color: var(--a-ink); }
.tri p { color: #463c4a; }

.couple { background: linear-gradient(135deg, #fff 0%, #fdeef3 100%); }.couple h3 { color: #a03a62; }
.idea { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .75); border: 1px dashed #e8b9c9; }
.tag.special { background: #fff; color: var(--a-ink); }
.seed-note { background: #eef7ff; border: 1px solid #cfe3f7; }

.song { display: flex; gap: 14px; align-items: center; }
.song-l { flex: none; }
.vinyl {
  width: 76px; height: 76px; border-radius: 50%;
  background: radial-gradient(circle, var(--a) 0 18%, #222 19% 21%, #1a1a1a 22% 100%);
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: inset 0 0 0 6px #2b2b2b, inset 0 0 0 7px #3a3a3a, inset 0 0 0 14px #1d1d1d, inset 0 0 0 15px #333;
  animation: spin 6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.song-r { min-width: 0; flex: 1; }
.song-r h3 { margin-bottom: .2rem; }
.song-t { font: 700 1.2rem/1.2 var(--serif); }
.song-a { color: var(--ink2); font-weight: 700; }
.song .btn { margin-top: 6px; }

.video {
  display: block; position: relative; width: 100%; padding: 56.25% 0 0; border: 0;
  border-radius: 14px; overflow: hidden; background: #000; margin: 10px 0;
}
.video iframe, .video img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff;
  display: grid; place-items: center; font-size: 1.6rem; padding-left: 4px;
}

.banner { background: #fff6e0; border: 1px solid #f3dca0; }

/* ───── journal ───── */
.moods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.moods button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 8px 2px;
  font-size: .72rem; font-weight: 700; color: var(--ink2); display: flex; flex-direction: column; align-items: center;
}
.moods button span { font-size: 1.5rem; }
.moods button.on { border-color: var(--a); background: var(--a-soft); color: var(--a-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.chip-s {
  border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 11px;
  font-size: .82rem; font-weight: 700; color: var(--ink2);
}
.chip-s.on, .chips.ro .chip-s { border-color: var(--a); background: var(--a-soft); color: var(--a-ink); }
textarea, input[type=text], input[type=url], input[type=password], input[type=date], input:not([type]) {
  width: 100%; border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 13px; background: #fff;
  color: var(--ink); /* explicit: pe ecranele cu text alb (logare) câmpul nu trebuie să moștenească albul */
  outline: none; resize: vertical;
}
textarea:focus, input:focus { border-color: var(--a); }
.journal .btn.primary { margin-top: 10px; }
.period-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.period-btns:empty { display: none; }

/* ───── buttons ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 99px; padding: 11px 18px; font-weight: 800;
  background: var(--a-soft); color: var(--a-ink); text-decoration: none;
  transition: transform .1s, filter .2s;
}
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--a); color: #fff; }
.btn.done { background: #e5f6ea; color: #1d6b3c; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .6; }
.row { display: flex; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 10px; }
.stack label, .onboard label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
input[type=range] { width: 100%; accent-color: var(--a); }

.onboard form { display: grid; gap: 16px; margin-top: 14px; text-align: left; }
.onboard { text-align: center; }

/* ───── calendar ───── */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-head b { font: 700 1.2rem var(--serif); text-transform: capitalize; }
.cal-head button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--a-soft); color: var(--a-ink); font-size: 1.4rem; }
.wd, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd span { text-align: center; font-size: .72rem; font-weight: 800; color: var(--ink2); padding-bottom: 4px; }
.cell {
  position: relative; aspect-ratio: 1; border: 0; border-radius: 12px; background: #f6f2ee;
  font-weight: 700; font-size: .9rem; padding: 0; display: grid; place-items: center;
}
.cell.empty { background: none; }
.cell.s-iarna { background: color-mix(in srgb, var(--c-iarna) 22%, #fff); }
.cell.s-primavara { background: color-mix(in srgb, var(--c-primavara) 22%, #fff); }
.cell.s-vara { background: color-mix(in srgb, var(--c-vara) 30%, #fff); }
.cell.s-toamna { background: color-mix(in srgb, var(--c-toamna) 18%, #fff); }
.cell.per { background: var(--c-per); color: #fff; }
.cell.pred { opacity: .62; }
.cell.pred.per { background: #fff; color: var(--c-per); box-shadow: inset 0 0 0 2px var(--c-per); opacity: 1; }
.cell.fert::after { content: ""; position: absolute; bottom: 5px; width: 14px; height: 3px; border-radius: 3px; background: #e0a100; }
.cell.late { background: repeating-linear-gradient(45deg, #fbe3d4, #fbe3d4 4px, #fff 4px, #fff 8px); }
.cell.today { box-shadow: inset 0 0 0 2.5px var(--ink); }
.cell.sel { outline: 3px solid var(--a); outline-offset: 1px; z-index: 1; }
.cell em { position: absolute; font-style: normal; line-height: 1; }
.cell .ov { top: 3px; right: 4px; font-size: .7rem; color: #d18b00; }
.cell .lm { bottom: 2px; right: 2px; font-size: .62rem; }
.cell.dd::before { content: "💞"; position: absolute; top: 2px; left: 3px; font-size: .55rem; }
.mkind { margin: -4px 0 10px; font-size: .8rem; font-weight: 700; color: var(--ink2); }
.mkind.date { color: #c0306a; }
.idea small { display: block; margin-top: 4px; color: var(--ink2); font-size: .76rem; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.days button {
  width: 100%; max-width: 44px; aspect-ratio: 1; justify-self: center; padding: 0;
  border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-weight: 800; color: var(--ink2);
}
.days button.on { background: #c0306a; border-color: #c0306a; color: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .78rem; color: var(--ink2); font-weight: 700; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 4px; }
.lg-per { background: var(--c-per); }
.lg-pred { box-shadow: inset 0 0 0 2px var(--c-per); }
.lg-fert { background: #e0a100; height: 4px !important; vertical-align: 2px !important; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats > div { background: var(--a-soft); border-radius: 16px; padding: 10px 12px; }
.stats b { display: block; font: 700 1.4rem var(--serif); color: var(--a-ink); }
.stats span { font-size: .78rem; font-weight: 700; color: var(--ink2); }
.stats .fine { grid-column: 1 / -1; margin: 0; }
.stats.mini { grid-template-columns: repeat(3, 1fr); margin-top: 12px; text-align: center; }

.hist ul, .dedlist ul { list-style: none; margin: 0; padding: 0; }
.hist li, .dedlist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.hist li:first-child, .dedlist li:first-child { border-top: 0; }
.hist li > div { flex: 1; }
.hist small, .dedlist small { display: block; color: var(--ink2); font-size: .8rem; }
.x { border: 0; background: #f4eeea; width: 30px; height: 30px; border-radius: 50%; color: var(--ink2); flex: none; }

.dedlist li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dedlist span { font-weight: 700; font-size: .9rem; }
.dedlist em { color: var(--ink2); font-size: .88rem; }
.ded-thumb img { width: 96px; height: 54px; object-fit: cover; border-radius: 10px; display: block; background: #eee; }

/* ───── ghid ───── */
.chart { width: 100%; height: auto; margin-top: 10px; }
.chart .hl { fill: none; stroke-width: 2.6; stroke-linecap: round; }
.hl-estrogen, .lg-estrogen::before { stroke: #e0559b; background: #e0559b; }
.hl-progesteron, .lg-progesteron::before { stroke: #7b61ff; background: #7b61ff; }
.hl-lh, .lg-lh::before { stroke: #f2a93b; background: #f2a93b; }
.hl-fsh, .lg-fsh::before { stroke: #2fa58a; background: #2fa58a; }
.band-iarna { fill: color-mix(in srgb, var(--c-iarna) 16%, #fff); }
.band-primavara { fill: color-mix(in srgb, var(--c-primavara) 16%, #fff); }
.band-vara { fill: color-mix(in srgb, var(--c-vara) 22%, #fff); }
.band-toamna { fill: color-mix(in srgb, var(--c-toamna) 13%, #fff); }
.band-l { font-size: 11px; text-anchor: middle; }
.now { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 3; }
.now-t { font: 800 9px var(--sans); text-anchor: middle; fill: var(--ink); dominant-baseline: hanging; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; font-weight: 700; color: var(--ink2); }
.lg::before { content: ""; display: inline-block; width: 14px; height: 4px; border-radius: 3px; vertical-align: 3px; margin-right: 5px; }

.gs summary { list-style: none; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.gs summary::-webkit-details-marker { display: none; }
.gs summary b { font: 700 1.25rem var(--serif); display: block; }
.gs summary small { color: var(--ink2); font-weight: 700; }
.gs summary small em { color: var(--a); font-style: normal; }
.gs-e { font-size: 1.8rem; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.gs-iarna .gs-e { background: color-mix(in srgb, var(--c-iarna) 25%, #fff); }
.gs-primavara .gs-e { background: color-mix(in srgb, var(--c-primavara) 25%, #fff); }
.gs-vara .gs-e { background: color-mix(in srgb, var(--c-vara) 32%, #fff); }
.gs-toamna .gs-e { background: color-mix(in srgb, var(--c-toamna) 22%, #fff); }
.gs[open] summary { margin-bottom: 10px; }
.hormones, .food { background: #f7f3ef; padding: 10px 12px; border-radius: 12px; font-size: .93rem; }
.two { display: grid; gap: 12px; margin: 12px 0; }
.myth { border-top: 1px solid var(--line); padding: 10px 0; }
.myth summary { font-weight: 700; cursor: pointer; }
.myth p { color: var(--ink2); }
.warn ul { margin: 0; padding-left: 1.1rem; }
.warn li { margin: .3rem 0; }

/* ───── misiuni și dorințe ───── */
.mrow { padding: 12px 0 4px; border-top: 1px solid var(--line); }
.mrow:first-of-type { border-top: 0; padding-top: 0; }
.mwho { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ink2); }
.mrow.mine .mwho { color: var(--a); }
.mrow .lead { margin: .3rem 0 .5rem; }
.wish { background: linear-gradient(180deg, #fff, #f3f0ff); }
.wish h3 { color: #5b45c4; }
.care {
  display: inline-flex; margin-top: 6px; border: 1.5px dashed var(--line); background: #fff;
  border-radius: 99px; padding: 5px 12px; font-size: .82rem; font-weight: 700; color: var(--ink2);
}
.care.on { border-style: solid; border-color: var(--a); background: var(--a-soft); color: var(--a-ink); }

/* ───── noi ───── */
.level h3 { text-align: center; }
.lvl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lvl-card { border-radius: 18px; padding: 14px 10px 12px; text-align: center; }
.lvl-el { background: #eef0fd; --a: #5a54d6; }
.lvl-ea { background: #fdeef3; --a: #d0457a; }
.lvl-card .lvl-e { font-size: 2.4rem; line-height: 1.1; }
.lvl-name { display: block; margin-top: 4px; }
.lvl-n { font: 700 1rem/1.2 var(--serif); color: var(--a); min-height: 2.4em; display: grid; place-items: center; }
.lvl-card .bar.big { height: 10px; margin: 8px 0 2px; }
.lvl-card .fine { margin: 2px 0 8px; font-size: .74rem; }
.lvl-stats { display: flex; justify-content: space-around; gap: 4px; }
.lvl-stats span { display: flex; flex-direction: column; font-size: .7rem; font-weight: 700; color: var(--ink2); }
.lvl-stats b { font: 700 1.1rem var(--serif); color: var(--ink); }
.how { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.how summary { font-weight: 700; cursor: pointer; color: var(--a); }
.how p { font-size: .9rem; }
.insight ul { list-style: none; margin: 8px 0 0; padding: 0; }
.insight li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.insight li:first-child { border-top: 0; }
.insight li > span { font-size: 1.2rem; width: 28px; text-align: center; flex: none; }
.locked { font-weight: 700; }
.lvl-e { font-size: 3rem; line-height: 1.1; }
.disclaimer { text-align: center; font-size: .78rem; color: var(--ink2); margin: 18px 8px; }

/* ───── nav ───── */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: center; gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.tabs button {
  flex: 1; max-width: 130px; border: 0; background: none; border-radius: 16px; padding: 6px 4px;
  display: flex; flex-direction: column; align-items: center; font-size: .74rem; font-weight: 800; color: var(--ink2);
}
.tabs button span { font-size: 1.35rem; line-height: 1.2; filter: grayscale(.6); opacity: .8; }
.tabs button.on { color: var(--a); background: var(--a-soft); }
.tabs button.on span { filter: none; opacity: 1; }

/* ───── login ───── */
.login {
  position: relative; overflow: hidden; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px 16px; text-align: center; background: var(--grad); color: #fff;
}
.login > *:not(.particles) { position: relative; }
.login-logo { width: 92px; height: 92px; border-radius: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.login h1 { font: 700 2.4rem var(--serif); margin-top: 16px; }
.login .sub { opacity: .85; margin-bottom: 26px; }
.who { display: flex; gap: 14px; }
.who-btn {
  width: 128px; padding: 18px 10px; border-radius: 24px; border: 2px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12); color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; flex-direction: column; align-items: center; gap: 4px; transition: all .2s;
}
.who-btn.on { background: #fff; color: var(--a-ink); border-color: #fff; transform: translateY(-3px); }
.who-e { font-size: 2.2rem; }
.hint { opacity: .75; margin-top: 18px; }
.login-form { display: flex; gap: 8px; margin-top: 22px; width: 100%; max-width: 320px; }
.login-form input { border: 0; }
.login-form .btn.primary { background: #fff; color: var(--a-ink); }

/* Aplicația în fundal: conținutul nu apare în captura listei de aplicații. */
body.covered { background: #2b2766; }
/* Câmpurile de PIN din Noi: cifrele apar ca puncte, dar browserul nu le confundă cu parola site-ului. */
input.secret { -webkit-text-security: disc; text-security: disc; letter-spacing: .2em; }
body.covered #app, body.covered #toast { visibility: hidden; }

/* ───── PIN ───── */
.pin .login-logo { width: 64px; height: 64px; border-radius: 18px; }
.pin-title { font: 700 1.7rem var(--serif); margin-top: 12px; }
.pin .sub { margin-bottom: 18px; max-width: 300px; }
.dots { display: flex; gap: 16px; justify-content: center; }
.dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); transition: background .15s; }
.dots i.on { background: #fff; }
.dots.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.pin-msg { min-height: 1.5em; margin: 10px 0 4px; font-weight: 700; color: #ffd9e0; }
.pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; justify-content: center; }
.pad button {
  width: 76px; height: 76px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .16); color: #fff; font: 600 1.7rem var(--sans);
  transition: background .1s, transform .1s;
}
.pad button:active { background: rgba(255, 255, 255, .35); transform: scale(.94); }
.pin-links { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.pin-links button {
  min-height: 44px; padding: 0 12px; border: 0; background: none; color: rgba(255, 255, 255, .85);
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
/* Telefoane scunde (iPhone SE etc.): tastatura de PIN încape fără derulare. */
@media (max-height: 760px) {
  .pin { justify-content: flex-start; padding-top: calc(16px + env(safe-area-inset-top)); }
  .pin .login-logo { display: none; }
  .pin-title { font-size: 1.45rem; margin-top: 4px; }
  .pin .sub { margin-bottom: 12px; font-size: .9rem; }
  .pin-msg { margin: 6px 0 2px; }
  .pad { grid-template-columns: repeat(3, 64px); gap: 10px 18px; }
  .pad button { width: 64px; height: 64px; font-size: 1.5rem; }
  .pin-links { margin-top: 6px; }
}
.pin-help { margin-top: 14px; max-width: 320px; background: rgba(255, 255, 255, .14); border-radius: 16px; padding: 12px 14px; font-size: .92rem; }

/* ───── toast ───── */
#toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: #2a2230; color: #fff; padding: 10px 18px; border-radius: 99px; font-weight: 700;
  max-width: calc(100vw - 32px); text-align: center; transition: all .25s; box-shadow: var(--shadow);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: #b3263e; }

/* Telefoane înguste: antetul zilei mai compact */
@media (max-width: 360px) {
  .ring { width: 104px; height: 104px; }
  .hero-main { gap: 12px; }
  .hero-txt h1 { font-size: 1.45rem; }
  .batt.big { font-size: .82rem; gap: 5px; }
}

@media (min-width: 600px) {
  .hero { margin: 0 0 16px; border-radius: 0 0 32px 32px; }
  .two { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
