/* Dr. Dorel · ziua = fișa medicală, noaptea = monitorul ATI. Același aspect, alte variabile. */
:root {
  --bg: #f6f8f7; --card: #ffffff; --ink: #0f1a17; --muted: #6b7a74; --line: #e3e8e6;
  --red: #e3232c; --ok: #1f9d55; --amber: #b7791f; --amber-bg: #fff6e5;
  --mint: #eaf7f1; --mint2: #cfeadd; --mintink: #3f7a63;
  --pill: #fdeeee; --pillink: #0f1a17; --pulse: #e3232c; --on-ink: #ffffff;
  --overlay: rgba(15,26,23,.55); --shadow: 0 6px 18px rgba(15,26,23,.06);
  --head: "Anton", Impact, "Arial Narrow", sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}
:root[data-theme="night"] {
  color-scheme: dark;
  --bg: #07110e; --card: #0b1a15; --ink: #d9fbe9; --muted: #7fb9a0; --line: #12352a;
  --red: #ff4b52; --ok: #3df29a; --amber: #e0a43a; --amber-bg: #231c0c;
  --mint: #0d2a20; --mint2: #12352a; --mintink: #9fe3c6;
  --pill: rgba(255,75,82,.14); --pillink: #ffe3e4; --pulse: #3df29a; --on-ink: #07110e;
  --overlay: rgba(0,0,0,.7); --shadow: none;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); }
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }
.an { font-family: var(--head); text-transform: uppercase; letter-spacing: .3px; line-height: 1.05; font-weight: 400; }
.lab { font: 700 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.meta { font: 400 11px var(--mono); color: var(--muted); letter-spacing: .04em; }
.rd { color: var(--red); }
.okc { color: var(--ok); }

/* top bar */
.top { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
       background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; min-width: 0; }
.brand .sym { width: 34px; height: 34px; flex: none; }
.brand > span { font: 400 22px/1 var(--head); letter-spacing: .5px; }
.brand b { color: var(--red); font-weight: 400; }
.brand small { display: block; overflow: hidden; text-overflow: ellipsis; max-width: 60vw; font: 400 10px/1.3 var(--mono); letter-spacing: .04em; color: var(--muted); margin-top: 3px; min-height: 13px; white-space: nowrap; }
.iconbtn { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink);
           display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; font-size: 17px; padding: 0; transition: transform .4s ease; }
.sun:hover { transform: rotate(45deg); }
.sun .sun-core { fill: var(--red); stroke: var(--red); stroke-width: 1.5; }
.sun .sun-rays path { stroke: var(--red); stroke-width: 1.8; stroke-linecap: round; fill: none; }
:root[data-theme="night"] .sun .sun-core { fill: none; stroke: var(--amber); }
:root[data-theme="night"] .sun .sun-rays path { stroke: var(--amber); }
#lastTs { display: none; }
@media (min-width: 640px) { #lastTs { display: inline; } }
@media (max-width: 420px) {
  .brand small { white-space: normal; max-width: 52vw; font-size: 9px; }
}

/* "Cumpără acces" lives in the top bar; its note opens under it */
.accesspill { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 999px;
              background: var(--red); color: #fff; font: 700 11px var(--mono); letter-spacing: .06em; cursor: pointer;
              box-shadow: 0 4px 12px rgba(227,35,44,.3); }
.accesspill svg { width: 16px; height: 16px; }
.accesspill .short { display: none; }
@media (max-width: 480px) { .accesspill .long { display: none; } .accesspill .short { display: inline; } }
.accesspill.nudge { animation: nudge 1s ease 2; }
@keyframes nudge { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
/* first paint, before the scripts answer */
.boot { min-height: 50vh; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; font-size: 15px; }
.boot .ecg { width: 220px; height: 40px; }

/* layout + nav */
.shell { max-width: 1180px; margin: 0 auto; }
main { padding: 14px 16px 150px; min-height: 70vh; }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 7; display: grid; grid-template-columns: repeat(6, 1fr);
       background: var(--card); border-top: 1px solid var(--line); padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); }
.nav a { text-align: center; text-decoration: none; font: 600 10px var(--sans); color: var(--muted); padding: 2px 0; }
.nav a span { display: block; font-size: 19px; line-height: 1.2; }
.nav a.on { color: var(--red); font-weight: 800; }
@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 0 16px; }
  .nav { position: sticky; top: 70px; align-self: start; display: flex; flex-direction: column; gap: 4px; border: 0; background: none; padding: 18px 0; }
  .nav a { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 10px 14px; border-radius: 12px; text-align: left; }
  .nav a span { display: inline; font-size: 18px; }
  .nav a.on { background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
  main { padding: 18px 0 120px; }
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .cols > .side { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
}
footer.disc { max-width: 1180px; margin: 0 auto; padding: 16px 16px 150px; text-align: center; font: 400 11px var(--mono); color: var(--muted); border-top: 1px solid var(--line); }
@media (min-width: 900px) { footer.disc { padding-bottom: 90px; } }

/* common blocks */
.hero { padding: 6px 0 14px; }
.hero h1 { margin: 4px 0 6px; font: 400 clamp(30px, 6vw, 46px)/1 var(--head); text-transform: uppercase; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow); position: relative; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; overflow-x: auto; }
.sec { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 16px 0 8px; }
.sec h2, .sec h3 { margin: 0; font: 400 21px var(--head); text-transform: uppercase; }
.btn { font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 8px 13px; border: 2px solid var(--ink);
       background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.btn.on, .btn.dark { background: var(--ink); color: var(--on-ink); }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: wait; }
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.empty { text-align: center; padding: 26px 16px; }
.empty .an { font-size: 24px; margin: 8px 0; }
.warnbox { border: 2px dashed var(--red); background: var(--card); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; font-size: 12px; }
.explain { font-size: 13px; background: var(--card); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }

/* wide screens: match cards two by two; headings and notes stay full width */
@media (min-width: 1100px) {
  .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; align-items: start; }
  .grid2 > :not(.card) { grid-column: 1 / -1; }
  .cols .grid2 { display: block; }  /* next to an open match sheet the list stays one column */
}

/* bet label: red bar + DIAGNOSTIC + pink pill with a dot */
.dx { display: inline-block; border-left: 3px solid var(--red); padding: 1px 0 1px 9px; max-width: 100%; }
.dx small { display: block; font: 700 9px var(--mono); letter-spacing: .14em; color: var(--red); text-transform: uppercase; margin-bottom: 3px; }
.dx span { display: inline-flex; align-items: center; gap: 6px; background: var(--pill); border-radius: 999px; padding: 3px 10px; font: 700 14px/1.3 var(--sans); color: var(--pillink); }
.dx span::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--red); }

/* badges */
.badge { display: inline-block; font: 700 10px var(--mono); letter-spacing: .06em; padding: 1px 8px; border-radius: 999px; white-space: nowrap; vertical-align: 1px; }
.badge.ok { color: var(--ok); border: 1px solid var(--ok); }
.badge.no { color: var(--muted); border: 1px solid var(--line); }
.badge.warn { color: var(--amber); border: 1px solid var(--amber); background: var(--amber-bg); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.badge.win { color: #fff; background: var(--ok); border: 1px solid var(--ok); }
.badge.lose { color: #fff; background: var(--red); border: 1px solid var(--red); }
.badge.live { color: #b7791f; border: 1px solid #e0a43a; background: var(--amber-bg); }
.proof { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; padding: 10px 14px; border-radius: 14px; text-decoration: none;
         background: var(--card); border: 1px solid var(--mint2); font-size: 14px; }
.proof span { flex: 1; } .proof i { font-style: normal; font: 700 11px var(--mono); color: var(--mintink); white-space: nowrap; }

/* crests */
.crest { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: #fff; overflow: hidden;
         box-shadow: 0 0 0 2px var(--mint2), 0 4px 10px rgba(0,0,0,.08); vertical-align: middle; }
.crest img { width: 72%; height: 72%; object-fit: contain; }
.crest.ini { color: #fff; font: 400 15px var(--head); }
.teams { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; min-width: 0; }
.teams .n { font: 400 18px/1.1 var(--head); text-transform: uppercase; min-width: 0; overflow-wrap: anywhere; }

/* match card */
.m { padding-right: 40px; }
.m.fav { border-color: #f5c84c; box-shadow: 0 0 0 2px rgba(245,200,76,.25) inset; }
.star { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: none; font-size: 19px; color: var(--muted); cursor: pointer; }
.star.on { color: #f5b301; }
.price { text-align: right; flex: none; }
.price .o { font: 400 24px var(--head); color: var(--red); }
.price .p { font: 700 12px var(--mono); }
.pbar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 9px; }
.pbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ok), #ffd166); transition: width 1.1s cubic-bezier(.2,.8,.2,1); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.extra { margin-top: 6px; }
.country { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; grid-column: 1 / -1; }
.country > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 16px;
                     font: 400 19px var(--head); text-transform: uppercase; letter-spacing: .3px; }
.country > summary::-webkit-details-marker { display: none; }
.country > summary .cnt { margin-left: auto; font: 700 12px var(--mono); color: var(--muted); text-transform: none; letter-spacing: 0; }
.country > summary::after { content: "▾"; font: 700 16px var(--sans); color: var(--red); transition: transform .2s; }
.country:not([open]) > summary::after { transform: rotate(-90deg); }
.country .cbody { padding: 0 12px 4px; }
.country .cbody > .lg:first-child { margin-top: 2px; }
.lg { margin: 18px 0 8px; font: 400 18px var(--head); text-transform: uppercase; letter-spacing: .3px; }

/* pulse card + ECG */
.pulse { border-radius: 18px; padding: 14px 16px; margin: 10px 0 14px; background: linear-gradient(135deg, var(--mint), var(--card)); border: 1px solid var(--mint2); }
.pulse .lab, .pulse .mrow { color: var(--mintink); }
.pulse .big { font: 400 54px/1 var(--head); color: var(--ink); }
.pulse .big small { font-size: 22px; color: var(--red); }
:root[data-theme="night"] .pulse { background: radial-gradient(circle at 30% 0, #0d2a20, #07110e 70%); border-color: #12352a; }
:root[data-theme="night"] .pulse .big { color: var(--pulse); text-shadow: 0 0 18px rgba(61,242,154,.45); }
:root[data-theme="night"] .pulse .big small { color: var(--pulse); }
.ecg { width: 100%; height: 56px; display: block; }
.ecg path { fill: none; stroke: var(--pulse); stroke-width: 2.6; stroke-dasharray: 700; stroke-dashoffset: 700; animation: draw 2.2s linear infinite; }
:root[data-theme="night"] .ecg path { filter: drop-shadow(0 0 6px var(--pulse)); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mrow { display: flex; justify-content: space-between; gap: 6px; font: 700 10px var(--mono); letter-spacing: .06em; flex-wrap: wrap; }
.hello { display: flex; gap: 10px; align-items: center; }
.bubble { background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 9px 12px; font-size: 13px; min-height: 40px; }
.mascot { flex: none; }

/* Azi: Dr. Dorel in 3D — he leans out of the page, winks and tosses money */
.hello3d { align-items: flex-end; margin-top: 46px; }  /* room above for the money he throws */
.hello3d .bubble { flex: 1; border-radius: 16px 16px 4px 16px; margin-bottom: 18px; }
.doc3d { position: relative; flex: none; width: 104px; height: 104px; margin: -18px -6px 0 0; cursor: pointer;
         perspective: 400px; -webkit-tap-highlight-color: transparent; }
.doc-svg { position: relative; z-index: 1; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 90%;
           filter: drop-shadow(0 10px 10px rgba(15,26,23,.22)) drop-shadow(0 2px 2px rgba(15,26,23,.18));
           animation: lean 3.6s ease-in-out infinite; }
:root[data-theme="night"] .doc-svg { filter: drop-shadow(0 0 10px rgba(61,242,154,.35)) drop-shadow(0 10px 10px rgba(0,0,0,.5)); }
.doc-floor { position: absolute; left: 18%; right: 18%; bottom: -4px; height: 10px; border-radius: 50%;
             background: radial-gradient(closest-side, rgba(15,26,23,.28), transparent); animation: floor 3.6s ease-in-out infinite; }
@keyframes lean {
  0%, 100% { transform: translateY(0) rotateY(-14deg) rotateZ(-2deg) scale(1); }
  50% { transform: translateY(-7px) rotateY(10deg) rotateZ(2deg) scale(1.06); }
}
@keyframes floor { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.78); opacity: .6; } }
.doc-arm { transform-box: fill-box; transform-origin: 0% 100%; animation: toss 2.4s ease-in-out infinite; }
@keyframes toss { 0%, 55%, 100% { transform: rotate(0); } 70% { transform: rotate(-16deg); } 80% { transform: rotate(6deg); } }
.wink-open { transform-box: fill-box; transform-origin: center; animation: blink 4.8s infinite; }
.wink-shut { opacity: 0; animation: shut 4.8s infinite; }
@keyframes blink { 0%, 84%, 96%, 100% { transform: scaleY(1); } 86%, 94% { transform: scaleY(.08); } }
@keyframes shut { 0%, 85%, 95%, 100% { opacity: 0; } 86%, 94% { opacity: 1; } }
.bills { position: absolute; z-index: 2; right: 2px; top: 30px; width: 0; height: 0; pointer-events: none; }
.bill { position: absolute; left: -11px; top: -7px; width: 22px; height: 14px; border-radius: 3px; opacity: 0;
        display: grid; place-items: center; font: 700 9px/1 var(--mono); color: #0b4d29;
        background: linear-gradient(135deg, #8fe3b4, #3fb873 55%, #2a8f55); box-shadow: 0 0 0 1px #1f7a45 inset, 0 3px 6px rgba(15,26,23,.25);
        animation: fly 2.4s cubic-bezier(.2,.7,.3,1) infinite; animation-delay: calc(1.55s + var(--i) * .07s); }
@keyframes fly {
  0% { opacity: 0; transform: translate(0, 0) rotate(0) scale(.5); }
  12% { opacity: 1; }
  55% { opacity: 1; transform: translate(calc(var(--dx) * .7), var(--dy)) rotate(var(--r)) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) * .55)) rotate(calc(var(--r) * 2)) scale(.9); }
}
.doc3d.burst .bill { animation: fly 1.2s cubic-bezier(.2,.7,.3,1) 2; animation-delay: calc(var(--i) * .05s); }
.doc3d.burst .doc-arm { animation: toss .6s ease-in-out 4; }
@media (max-width: 420px) { .doc3d { width: 92px; height: 92px; } }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin: 10px 0 12px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 9px 10px; text-align: center; font-size: 11px; text-decoration: none; }
.tile b { display: block; font: 400 22px var(--head); margin-top: 2px; }
.tile.win b { color: var(--ok); }

/* ticket = rețetă */
.rx { padding: 0; overflow: hidden; }
.rx-h { background: linear-gradient(135deg, var(--mint), var(--card)); border-bottom: 1px dashed var(--mint2); padding: 14px; }
.rx-h .big { font: 400 44px/1 var(--head); color: var(--red); }
.risk { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; }
.risk i { width: 22px; height: 8px; border-radius: 4px; background: var(--line); }
.risk.r1 i.on { background: var(--ok); } .risk.r2 i.on { background: #e0a43a; } .risk.r3 i.on { background: var(--red); }
.risk b { margin-left: 4px; font-size: 12px; }
.leg { padding: 12px 14px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.leg:first-of-type { border-top: 0; }
.leg .o { font: 400 22px var(--head); color: var(--red); text-align: right; }
.leg .p { font: 700 11px var(--mono); color: var(--muted); text-align: right; }
.leg.weak { background: var(--amber-bg); }
.weaklab { font: 700 10px var(--mono); letter-spacing: .12em; color: var(--amber); margin-bottom: 4px; }
.facts { margin: 6px 0 0; padding-left: 16px; font-size: 12px; } .facts li { margin: 2px 0; }
.tsum { display: grid; gap: 4px; margin-top: 8px; font-size: 12px; }
.rx .acts { padding: 12px 14px; margin: 0; border-top: 1px dashed var(--line); }
/* Istoric: how right the chances were */
.acc .acc-sub { margin: 4px 0 8px; font-size: 14px; }
.accrow { display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.accrow small { color: var(--muted); }
/* notifications card */
.pushcard { margin-top: 14px; display: grid; gap: 6px; }
.pushcard .an { font-size: 20px; }
.pushcard p { margin: 0; font-size: 15px; }
.pushcard .btn { justify-self: start; }
/* Azi / Mâine switch on Meciuri and Bilete */
.daytabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 4px 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.dtab { border: 0; border-radius: 12px; padding: 10px; background: transparent; color: var(--muted); font: 800 16px var(--sans); cursor: pointer; }
.dtab.on { background: var(--ink); color: var(--on-ink); }
/* Bilete: refresh note, Bilet la comandă */
.refresh-note { margin: -4px 2px 8px; font-size: 13px; color: var(--muted); }
.cbuild { display: grid; gap: 4px; }
.cbuild .qlab { margin-top: 6px; }
.cbuild .chips { flex-wrap: wrap; overflow: visible; }
.cbuild .chip { font-size: 15px; padding: 8px 14px; }
.cbuild .meta { margin: 8px 0 0; }
.cacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -4px 0 14px; }
/* ticket as a medical sheet: header, summary boxes, every match framed on its own */
.sheet { border-top: 6px solid var(--red); }
.sh-top { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; background: linear-gradient(135deg, var(--mint), var(--card)); }
.sh-cross { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 22px; }
.sh-t { font: 400 24px/1 var(--head); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px; }
.sh-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 14px 4px; background: linear-gradient(180deg, var(--mint), var(--card)); }
.sh-box { background: var(--card); border: 1px solid var(--mint2); border-radius: 14px; padding: 10px 12px; }
.sh-box .big { font: 400 38px/1 var(--head); color: var(--red); margin-top: 4px; }
.sh-pc { font-size: 30px; margin-top: 4px; color: var(--ok); }
.sh-wide { grid-column: 1 / -1; display: grid; gap: 6px; }
.sh-ok { font-size: 13px; color: var(--ok); }
.sh-lh { display: flex; justify-content: space-between; padding: 14px 14px 6px; }
.sh-legs { display: grid; gap: 10px; padding: 0 12px 12px; }
.sleg { border: 1.5px solid var(--line); border-left: 5px solid var(--ok); border-radius: 16px; padding: 12px; background: var(--card); box-shadow: var(--shadow); }
.sleg.weak { border-left-color: var(--amber); background: var(--amber-bg); }
.sl-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sl-n { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font: 700 12px var(--mono); }
.sleg .weaklab { margin: 6px 0 0; }
.sleg .teams { margin: 8px 0; }
.sl-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sl-odd { flex: none; text-align: right; border: 1.5px solid var(--pill); border-radius: 12px; padding: 4px 10px; }
.sl-odd .o { font: 400 22px/1.1 var(--head); color: var(--red); }
.sl-odd .p { font: 700 11px var(--mono); color: var(--muted); }
.sh-safer { margin-top: 8px; font: 700 11px var(--mono); color: var(--amber); }
.sh-sign { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px dashed var(--line); }
.sh-sig { font: italic 600 22px/1.2 Georgia, "Times New Roman", serif; color: var(--ink); margin-top: 2px; }
.sh-stamp { flex: none; width: 86px; height: 86px; border-radius: 50%; border: 2.5px solid var(--red); color: var(--red); display: grid; place-content: center; text-align: center;
            font: 700 8px/1.3 var(--mono); letter-spacing: .02em; transform: rotate(-12deg); opacity: .85; }
.sh-stamp b { font-size: 16px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; padding: 3px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; margin: 10px 0; scrollbar-width: none; }
.tab { flex: none; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 12px; font: 700 12px var(--sans); cursor: pointer; }
.tab.on { background: var(--ink); color: var(--on-ink); }
.pane { display: none; } .pane.on { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* note: the odds could not be reached */
.note { border: 1px solid var(--mint2); background: linear-gradient(135deg, var(--mint), var(--card)); padding: 16px; }
.note-h { display: flex; gap: 12px; align-items: center; }
.note-t { font-size: 22px; margin-top: 4px; }
.note p { margin: 12px 0 0; font-size: 14px; line-height: 1.55; }
.note .note-alt { padding-top: 10px; border-top: 1px dashed var(--mint2); color: var(--mintink); font-weight: 600; }

/* filters (Meciuri) */
.srow { display: flex; gap: 8px; }
.srow input { flex: 1; min-width: 0; font: 400 15px var(--mono); padding: 11px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); }
.srow input:focus { outline: none; border-color: var(--red); }
.srow select { flex: none; max-width: 45%; font: 700 11px var(--mono); padding: 0 8px; border: 2px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); }
.qlab { font: 400 17px var(--head); text-transform: uppercase; margin: 12px 0 6px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chip { flex: none; border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 700 12px var(--sans); cursor: pointer; text-align: left; }
.chip small { display: block; font: 400 10px var(--mono); color: var(--muted); }
.chip.on { background: var(--red); border-color: var(--red); color: #fff; } .chip.on small { color: #fff; opacity: .85; }
.more { margin-top: 10px; } .more summary { cursor: pointer; font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fbar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* match sheet (fișa) */
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.hero-m { border-radius: 18px; padding: 14px; background: linear-gradient(135deg, var(--mint), var(--card)); border: 1px solid var(--mint2); margin-bottom: 10px; }
.vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; margin: 10px 0; }
.vs .n { font: 400 16px/1.1 var(--head); text-transform: uppercase; margin-top: 6px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.three div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; text-align: center; }
.three b { display: block; font: 400 20px var(--head); }
.three .best { border-color: var(--red); } .three .best b { color: var(--red); }
.line { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.line:last-child { border: 0; }
.meter { flex: 1; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; } .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #ffd166); }
.form { display: inline-flex; gap: 4px; } .form i { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 700 10px var(--mono); color: #fff; font-style: normal; }
.form .V { background: var(--ok); } .form .E { background: #9aa5a1; } .form .Î { background: var(--red); }

/* match sheet: small header (teams + 1/X/2), then the consult and one bet per risk level */
.hero-mini { border-radius: 14px; padding: 12px; background: linear-gradient(135deg, var(--mint), var(--card)); border: 1px solid var(--mint2); margin-bottom: 10px; text-align: center; }
.vsline { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.vsline .t { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.vsline .t b { font: 400 17px/1.1 var(--head); text-transform: uppercase; }
.vsline .star { position: static; width: 24px; height: 24px; font-size: 15px; }
.vs-word { font: 700 11px var(--mono); color: var(--muted); }
.pcts { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.pcts span { font: 700 11px var(--mono); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); }
.pcts span.best { border-color: var(--red); color: var(--red); }
.story { background: linear-gradient(135deg, var(--mint), var(--card)); border-color: var(--mint2); }
.story ul { margin: 8px 0 0; padding: 0; list-style: none; }
.story li { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--mint2); font-size: 14px; line-height: 1.45; }
.story li:first-child { border-top: 0; }
.story .ico { width: 24px; flex: none; text-align: center; font-size: 17px; }
.opt { padding-left: 18px; overflow: hidden; }
.opt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.opt.safe::before { background: var(--ok); } .opt.mid::before { background: #e0a43a; } .opt.bold::before { background: var(--red); }
.opt.pick { box-shadow: 0 0 0 2px var(--ok); }
.opt .tag { font: 700 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.opt.safe .tag { color: var(--ok); } .opt.mid .tag { color: #b7791f; } .opt.bold .tag { color: var(--red); }
.opt .rec { background: var(--ok); color: #fff; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.opt .why { font-size: 13px; margin-top: 6px; color: var(--ink); opacity: .85; }
.ten { display: flex; gap: 3px; margin-top: 10px; } .ten i { width: 14px; height: 14px; border-radius: 4px; background: var(--line); } .ten i.on { background: var(--ok); }

/* Ghid */
.ghero { display: flex; gap: 14px; align-items: center; margin: 4px 0 14px; }
.ghero h1 { margin: 0 0 4px; font: 400 clamp(28px, 6vw, 40px)/1 var(--head); text-transform: uppercase; }
.ghero p { margin: 0; font-size: 14px; }
.gsec { background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; overflow: hidden; }
.gsec summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px; font: 400 19px var(--head); text-transform: uppercase; }
.gsec summary::-webkit-details-marker { display: none; }
.gsec summary::after { content: "+"; margin-left: auto; font: 700 20px var(--mono); color: var(--red); }
.gsec[open] summary::after { content: "–"; }
.gsec .gi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--mint); font-size: 18px; flex: none; }
.gbody { padding: 0 16px 16px; font-size: 14.5px; line-height: 1.6; }
.gbody ul, .gbody ol { padding-left: 20px; margin: 8px 0; } .gbody li { margin: 6px 0; }
.callout { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); border: 1px solid #e0a43a; }
.term { padding: 10px 0; border-top: 1px dashed var(--line); } .term:first-child { border-top: 0; }
.term b { font-size: 15px; } .term .ex { margin-left: 8px; font: 700 11px var(--mono); color: var(--mintink); }
.term p { margin: 4px 0 0; }
.strat { position: relative; margin: 10px 0; padding: 12px 14px 12px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.strat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.strat.safe::before { background: var(--ok); } .strat.mid::before { background: #e0a43a; } .strat.bold::before { background: var(--red); }
.strat .sh { display: flex; gap: 8px; align-items: center; font-size: 16px; }
.strat p { margin: 6px 0 0; } .strat .watch { font-size: 13px; color: var(--muted); }
.gold { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, var(--mint), var(--card)); border: 1px solid var(--mint2); }
.gfoot { text-align: center; margin: 16px 0; }
/* first-visit tour */
.tour { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: var(--overlay); animation: fade .25s ease; }
.tcard { position: relative; width: min(380px, 100%); background: var(--card); border-radius: 20px; padding: 22px 18px 18px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.tcard p { font-size: 15px; line-height: 1.55; }
.tcard .x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; }
.tcard .acts { justify-content: center; }
.isteps { text-align: left; margin: 12px 0; padding-left: 22px; font-size: 15px; line-height: 1.5; } .isteps li { margin: 8px 0; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 12px; } .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); } .dots i.on { background: var(--red); }

/* history / admin */
.hrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 12px; }
.st { display: inline-block; font: 700 10px var(--mono); letter-spacing: .1em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st.won { background: var(--ok); color: #fff; } .st.lost { background: var(--red); color: #fff; }
.st.pending { background: var(--line); color: var(--ink); } .st.void { background: var(--line); color: var(--muted); }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
td, th { text-align: left; padding: 7px 6px; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
th { font: 400 10px var(--mono); letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--line); }
.dot.ok { background: var(--ok); } .dot.err { background: var(--red); }
.logs { font: 400 11px var(--mono); max-height: 300px; overflow: auto; } .logs div { padding: 4px 0; border-top: 1px solid var(--line); } .logs .error { color: var(--red); }
.prog { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; margin: 10px 0; } .prog div { height: 100%; background: var(--red); }
.banner { border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font: 700 12px var(--mono); }
.banner.red { background: var(--red); color: #fff; } .banner.amber { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber); }
.linkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; font-size: 12px; }
.linkbar code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ownerbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
/* Istoric: section buttons on an even grid, periods as one segmented bar */
.htabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.htabs .btn { width: 100%; height: 42px; padding: 0 6px; white-space: nowrap; font-size: 11px; letter-spacing: .06em; }
@media (min-width: 640px) { .htabs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.hper { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; padding: 3px; margin: 0 0 14px;
        background: var(--card); border: 1px solid var(--line); border-radius: 999px; }
.hper button { height: 36px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer;
               font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.hper button.on { background: var(--ink); color: var(--on-ink); }
.miss { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px;
        background: var(--mint); border: 1px dashed var(--mint2); font-size: 13px; line-height: 1.5; }
.miss .st { flex: none; margin-top: 1px; }

/* owner Trafic: vertical bars */
.vbars { display: flex; align-items: flex-end; gap: 3px; height: 150px; margin-top: 10px; }
.vbars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; }
.vbars i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--red), #ff8a8f); }
.vbars span { font: 400 9px var(--mono); color: var(--muted); margin-top: 4px; white-space: nowrap; }

/* slip bar, buy button, popup, overlay */
.slipbar { position: fixed; left: 12px; right: 12px; bottom: 74px; z-index: 8; display: flex; justify-content: space-between; align-items: center; gap: 10px;
           background: #0f1a17; color: #fff; border-radius: 16px; padding: 10px 14px; text-decoration: none; box-shadow: 0 10px 28px rgba(0,0,0,.25); }
:root[data-theme="night"] .slipbar { border: 1px solid #3df29a; }
.slipbar .lab { color: #9fe3c6; }
.slipbar b { font: 400 24px var(--head); color: #9fe3c6; }
.slipbar.pop { animation: pop .5s ease; }
@keyframes pop { 30% { transform: scale(1.04); } }
@media (min-width: 900px) { .slipbar { left: auto; right: 200px; bottom: 16px; width: 340px; } }

.buypop { position: fixed; right: 12px; top: 64px; z-index: 9; max-width: min(340px, calc(100vw - 32px)); background: var(--card); color: var(--ink);
          border: 2px solid var(--red); border-radius: 16px; padding: 16px 16px 14px; box-shadow: 0 12px 32px rgba(0,0,0,.18); display: none; }

.buypop.on { display: block; }
.buypop .an { font-size: 22px; margin-bottom: 6px; padding-right: 22px; }
.buypop p { margin: 0; font-size: 13px; }
.buypop a { color: var(--red); font-weight: 700; white-space: nowrap; display: inline-block; margin-top: 4px; }
.buypop .x { position: absolute; top: 6px; right: 10px; background: none; border: 0; font-size: 20px; color: var(--muted); cursor: pointer; }
.overlay { position: fixed; inset: 0; background: var(--overlay); display: none; place-items: center; z-index: 10; padding: 16px; }
.overlay.on { display: grid; }
.overlay .card { max-width: 420px; text-align: center; padding: 20px; }

/* motion */
.rise { opacity: 0; transform: translateY(8px); animation: rise .45s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }
.cur { display: inline-block; width: 2px; height: 1em; background: var(--red); margin-left: 2px; vertical-align: -2px; animation: bl .7s step-end infinite; }
@keyframes bl { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* the rest of the page stays still, but Dr. Dorel keeps winking and tossing money (asked by the owner) */
  .bill { animation: fly 2.4s cubic-bezier(.2,.7,.3,1) infinite !important; animation-delay: calc(1.55s + var(--i) * .07s) !important; }
  .doc-arm { animation: toss 2.4s ease-in-out infinite !important; }
  .wink-open { animation: blink 4.8s infinite !important; }
  .wink-shut { animation: shut 4.8s infinite !important; }
  .doc-svg { animation: lean 3.6s ease-in-out infinite !important; }
  .rise { opacity: 1; transform: none; }
  .ecg path { animation: draw 2.2s linear infinite !important; }  /* the day's pulse keeps beating too */
}
