/* ===========================================================================
   Christmas Server 2026 - stiluri
   ---------------------------------------------------------------------------
   Aspectul e cel de la RiderNation (moto.shoxbot.xyz), pentru ca e un tipar
   care merge pentru un site cu multe pagini "vii": bara laterala cu linkurile
   grupate, o singura coloana de continut cu antet lipit, si carduri.
   Un rand de sase cuvinte in antet, cum era inainte, nu mai incape pe telefon
   si nu spune nimic despre ce e "stare" si ce e "cifra".

   Din site-ul vechi raman DOAR culorile: verdele de Craciun pe negru cu tenta
   verde. Marimile, colturile (10/14px), umbrele si spatiile sunt cele de la
   RiderNation, ca cele doua sa arate a facute de aceeasi mana.
   =========================================================================== */

:root {
  --bg: #0b0b0c;
  --bg-2: #0e0e10;
  --panel: #151517;
  --panel-2: #1b1b1e;
  --panel-3: #232327;
  --line: #26262a;
  --line-tare: #3a3a41;
  --text: #ececef;
  --muted: #a0a0a8;

  /* Rosu de Craciun pe brad. Sunt trei rosuri, pentru ca fac trei lucruri
     diferite:
       accent       = rosul PLIN (butoane, bara de "esti aici", subliniere).
                      E mai inchis dinadins, ca albul de peste el sa treaca de
                      4.5:1 - la rosul deschis, textul alb pe buton nu se citea;
       accent-clar  = acelasi rosu, dar pentru TEXT si iconite, unde fundalul e
                      inchis si are nevoie de mai multa lumina;
       red          = rosul care INSEAMNA ceva rau (erori, morti). E stins
                      dinadins, ca sa nu se confunde cu marca. */
  --accent: #d92b39;
  --accent-2: #b71f2c;
  --accent-clar: #f4525d;
  --pe-accent: #ffffff;

  /* Verdele nu mai e marca, e STARE: online, pozitiv, "merge". */
  --verde: #1fe07c;
  --yellow: #e5b53c;
  --red: #ff8b8b;
  --blue: #5865f2;               /* albastrul Discord, doar pentru butonul lui */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

/* ---------- scrollbar propriu ----------
   Chrome ignora ::-webkit-scrollbar daca e prezenta proprietatea standard
   `scrollbar-width`, asa ca o dam doar browserelor fara pseudo-elementele
   webkit (Firefox). Altfel primim bara alba implicita de Windows, cu sageti. */
:root { --scroll: #2c2c31; --scroll-hover: #43434b; }

@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
}

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scroll);
  border: 3px solid transparent;
  background-clip: content-box;
  border-radius: 999px;
  min-height: 40px;
}
::-webkit-scrollbar-thumb:hover { background: var(--scroll-hover); background-clip: content-box; }
::-webkit-scrollbar-thumb:active { background: var(--accent); background-clip: content-box; }

html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
  margin: 0;
  overscroll-behavior-y: contain;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.ico { flex: none; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 .8rem; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px;
}

code {
  font-family: var(--mono); font-size: .92em;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 6px; padding: .1rem .35rem; white-space: nowrap;
}
kbd {
  font-size: .84em; font-weight: 700;
  background: var(--panel-2); border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; padding: .05rem .4rem;
}

/* ==================== layout: bara laterala + coloana ==================== */
.app { min-height: 100dvh; display: grid; grid-template-columns: 248px 1fr; }

.sidebar {
  position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg-2); border-right: 1px solid var(--line);
  padding: .9rem .6rem .8rem; z-index: 950;
}
.sidebar-logo { padding: .2rem .55rem .9rem; justify-content: center; }

/* in bara laterala, scrollbar-ul apare doar cand treci cu mouse-ul peste ea */
.snav { flex: 1; overflow-y: auto; padding-bottom: .5rem; }
.snav::-webkit-scrollbar { width: 8px; }
.snav::-webkit-scrollbar-thumb { background: transparent; border-width: 2px; transition: background .15s; }
.sidebar:hover .snav::-webkit-scrollbar-thumb { background: var(--scroll); background-clip: content-box; }

.snav-grup + .snav-grup { margin-top: .9rem; }
.snav-titlu {
  font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); opacity: .65; padding: 0 .6rem .3rem;
}
.snav a {
  display: flex; align-items: center; gap: .65rem;
  padding: .52rem .6rem; border-radius: 10px; margin-bottom: 1px;
  color: var(--muted); font-weight: 600; font-size: .91rem;
  transition: background .12s, color .12s;
}
.snav a:hover { background: var(--panel); color: var(--text); }
.snav a.active {
  background: var(--panel-2); color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent);
}
.snav-icon { display: flex; align-items: center; justify-content: center; width: 1.3rem; flex: none; }
/* Iconita e mai palida decat cuvantul cat timp nu esti pe pagina aia - asa
   ochiul citeste intai lista de cuvinte si abia apoi desenele. */
.snav a .ico { opacity: .72; transition: opacity .12s, color .12s; }
.snav a:hover .ico, .snav a.active .ico { opacity: 1; }
.snav a.active .ico { color: var(--accent-clar); }
.snav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav-badge {
  background: var(--verde); color: #08120c; font-size: .66rem; font-weight: 800;
  border-radius: 999px; padding: .05rem .35rem; min-width: 17px; text-align: center;
}

.sidebar-jos { border-top: 1px solid var(--line); padding-top: .7rem; }
.snav-user {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .5rem; border-radius: 10px; margin-bottom: .5rem;
}
.snav-user:hover { background: var(--panel); }
.sidebar-fundal { display: none; }

.main-col { display: flex; flex-direction: column; min-width: 0; }

/* ---------- antetul lipit ----------
   Blurul se recalculeaza la fiecare cadru pe toata suprafata barei cat timp
   continutul trece pe sub ea. Pe ecrane mari e ieftin; pe telefon punem fundal
   plin, unde oricum nu se vedea. */
.header {
  position: sticky; top: 0; z-index: 900;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 901px) {
  .header { background: rgba(11, 11, 12, .92); backdrop-filter: blur(10px); }
}
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: .55rem 1.2rem;
  display: flex; align-items: center; gap: .8rem;
}
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

/* ---------- sigla ---------- */
.logo { display: flex; align-items: center; gap: .55rem; }
.logo-img { height: 40px; width: 40px; flex: none; }
.sidebar-logo .logo-img { height: 46px; width: 46px; }
.footer .logo-img { height: 44px; width: 44px; }
.logo-txt { font-weight: 800; font-size: .95rem; letter-spacing: .06em; line-height: 1.15; }
.logo-txt span { display: block; color: var(--accent); font-size: .74rem; letter-spacing: .2em; }

.container { max-width: 1180px; margin: 0 auto; padding: 1.4rem 1.2rem 4rem; width: 100%; flex: 1; }
.narrow { max-width: 820px; }

.footer {
  border-top: 1px solid var(--line); background: var(--bg-2);
  padding: 2rem 1rem; color: var(--muted); font-size: .87rem;
}
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.footer a:hover { color: var(--text); }
.footer .strong { color: var(--text); }

/* bara de jos pe mobil */
.tabbar { display: none; }

/* ==================== componente ==================== */
.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1rem;
}
.card.hover:hover { border-color: var(--line-tare); transform: translateY(-2px); transition: .18s; }

.grid { display: grid; gap: 1rem; }
/* `auto-fit`, nu `auto-fill`: cu doua carduri intr-un rand de trei coloane,
   `auto-fill` lasa a treia coloana goala si perechea pare tarata in stanga. */
.g2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 320px; gap: 1.4rem; align-items: start; }

.row { display: flex; gap: .6rem; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: .8rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem .95rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600;
  font-size: .9rem; cursor: pointer; transition: .15s; white-space: nowrap;
}
.btn:hover { background: var(--panel-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--pe-accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--red); border-color: rgba(255, 139, 139, .35); }
.btn.discord { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.discord:hover { background: #4854e0; border-color: #4854e0; }
.btn.sm { padding: .35rem .6rem; font-size: .82rem; }
.btn.lg { padding: .7rem 1.3rem; font-size: 1rem; }
.btn.block { width: 100%; }

.input, .select {
  width: 100%; padding: .6rem .75rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--text);
  font: inherit; font-size: .92rem; outline: none;
}
.input:focus, .select:focus { border-color: var(--accent); }
.label { display: block; font-size: .8rem; color: var(--muted); font-weight: 600; margin-bottom: .3rem; }
.field { margin-bottom: .9rem; }

.pill {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .18rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 700;
  background: var(--panel-2); color: var(--muted); border: 1px solid var(--line);
}
.pill.accent { background: rgba(217, 43, 57, .15); color: var(--accent-clar); border-color: rgba(217, 43, 57, .35); }
.pill.green { background: rgba(31, 224, 124, .13); color: var(--verde); border-color: rgba(31, 224, 124, .3); }
.pill.auriu { background: rgba(242, 193, 78, .13); color: var(--auriu); border-color: rgba(242, 193, 78, .3); }
.pill.red { background: rgba(255, 107, 107, .13); color: var(--red); border-color: rgba(255, 107, 107, .3); }
.pill.yellow { background: rgba(229, 181, 60, .13); color: var(--yellow); border-color: rgba(229, 181, 60, .3); }

.muted { color: var(--muted); }
.small { font-size: .84rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.mt { margin-top: 1rem; }
.mt2 { margin-top: 1.8rem; }
.mb { margin-bottom: 1rem; }
.mb0 { margin-bottom: 0; }
.strong { font-weight: 700; }
.accent { color: var(--accent-clar); }
.auriu { color: var(--auriu); }
.verde { color: var(--verde); }
.rosu { color: var(--red); }
.nowrap { white-space: nowrap; }
.mono { font-family: var(--mono); font-size: .94em; font-variant-numeric: tabular-nums; }

.live-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--verde);
  display: inline-block; box-shadow: 0 0 0 3px rgba(31, 224, 124, .22);
  animation: puls 1.6s infinite;
}
.live-dot.off { background: var(--muted); box-shadow: none; animation: none; }
@keyframes puls { 50% { opacity: .35; } }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  background: var(--panel-2); flex: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--muted); font-size: .9rem;
}
.avatar.sm { width: 28px; height: 28px; font-size: .75rem; }
.avatar.lg { width: 76px; height: 76px; font-size: 1.6rem; color: var(--accent-clar); }

.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs button {
  background: none; border: none; color: var(--muted); font: inherit; font-weight: 600;
  padding: .6rem .8rem; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .4rem;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--text); border-bottom-color: var(--accent); }

.filters {
  display: flex; gap: .5rem; flex-wrap: wrap; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .8rem; margin-bottom: 1.2rem;
}
.filters .field { margin: 0; min-width: 130px; flex: 1 1 200px; }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .icon {
  width: 58px; height: 58px; margin: 0 auto .8rem;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--panel); color: var(--muted);
}
.empty h3 { color: var(--text); }
.empty p { max-width: 46ch; margin-inline: auto; }
.empty .btn { margin: 1rem .28rem 0; }

.alert {
  padding: .7rem .9rem; border-radius: 10px; font-size: .88rem; margin-bottom: .9rem;
  display: flex; align-items: flex-start; gap: .45rem;
}
.alert > .ico { margin-top: .18rem; }
.alert.err { background: rgba(255, 139, 139, .1); border: 1px solid rgba(255, 139, 139, .3); color: #ffc2c4; }
.alert.ok { background: rgba(31, 224, 124, .1); border: 1px solid rgba(31, 224, 124, .3); color: #9fe7bf; }
.alert.warn { background: rgba(229, 181, 60, .1); border: 1px solid rgba(229, 181, 60, .28); color: #f0d494; }

.stat-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; }
.stat-tile .v { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.stat-tile.online .v { color: var(--verde); }
.stat-tile.auriu .v { color: var(--auriu); }
.stat-tile .k { color: var(--muted); font-size: .8rem; font-weight: 600; }

.feature-icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--panel-2); color: var(--accent-clar); margin-bottom: .6rem; flex: none;
}

.cap-pagina {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .8rem; flex-wrap: wrap; margin-bottom: 1.1rem;
}
.cap-pagina h1 { margin: 0; }
.cap-pagina > div:first-child > p { margin: .3rem 0 0; max-width: 62ch; }
.cap-actiuni { display: flex; gap: .5rem; flex-wrap: wrap; }

h2.cu-bara::before, h3.cu-bara::before {
  content: ''; display: block;
  width: 30px; height: 3px; border-radius: 2px;
  background: var(--accent); margin-bottom: .5rem;
}

/* ---------- tabele ---------- */
.tbl-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .89rem; }
table.data th, table.data td { padding: .5rem .55rem; border-bottom: 1px solid var(--line); text-align: left; }
table.data th { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
table.data th[data-sort] { cursor: pointer; user-select: none; }
table.data th[data-sort]:hover { color: var(--text); }
table.data tbody tr:hover { background: rgba(255, 255, 255, .02); }
/* Cifrele nu se rup pe randuri: pe telefon "838 / 357 / 68" ajungea pe trei
   randuri si tabelul se facea de trei ori mai inalt. Tabelul are oricum
   derulare pe orizontala (.tbl-wrap). */
table.data td.cifra { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td.loc { width: 34px; font-weight: 800; color: var(--muted); text-align: center; }
table.data tr.loc-1 td.loc { color: #ffd35c; }
table.data tr.loc-2 td.loc { color: #d8dde8; }
table.data tr.loc-3 td.loc { color: #d09258; }
table.data td a:hover { color: var(--accent-clar); }
tr.ascuns { display: none; }

.lb-row { display: flex; align-items: center; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: none; }
.lb-rank { width: 26px; font-weight: 800; color: var(--muted); text-align: center; }
.lb-row:nth-child(1) .lb-rank { color: #ffd35c; }
.lb-row:nth-child(2) .lb-rank { color: #d8dde8; }
.lb-row:nth-child(3) .lb-rank { color: #d09258; }

/* ---------- cardul de server ---------- */
.srv-meta { margin: .9rem 0 0; display: grid; gap: 0; }
.srv-meta > div { display: flex; justify-content: space-between; gap: .8rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.srv-meta > div:last-child { border-bottom: none; }
.srv-meta dt { color: var(--muted); font-size: .84rem; }
.srv-meta dd { margin: 0; font-weight: 700; font-size: .88rem; }

.bara-slot { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; margin: .7rem 0 .9rem; }
.bara-slot span { display: block; height: 100%; width: 0; border-radius: 999px; transition: width .4s; }

.srv-players { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .6rem; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; }
.chips li {
  font-family: var(--mono); font-size: .78rem;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: .12rem .6rem; color: var(--muted);
}

.cmd {
  display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .7rem; font-family: var(--mono); font-size: .86rem; overflow-x: auto;
}
.cmd b { color: var(--auriu); font-weight: 700; }

/* ---------- profil ---------- */
.placute { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.placuta {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: .65rem .7rem; display: flex; flex-direction: column; gap: .1rem;
}
.placuta .eticheta { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.placuta b { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.placuta .unitate { font-size: .62em; color: var(--muted); margin-left: .1rem; }
.rating-gol { color: var(--muted); }

/* Patru carduri, 2x2. Lasate pe `auto-fit` ieseau 3+1,
   iar al patrulea ramanea singur pe un rand, cu doua treimi de gol langa el. */
.doua-coloane { grid-template-columns: 1fr 1fr; }
.doua-mini { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 900px) {
  .doua-coloane { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .doua-mini { grid-template-columns: 1fr; }
}

.apt-lista { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.apt-lista li > span:first-child { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.apt-lista li { display: grid; grid-template-columns: 1fr 40% auto; gap: .6rem; align-items: center; font-size: .86rem; }
.apt-bara { height: 6px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.apt-bara span { display: block; height: 100%; background: var(--auriu); border-radius: 999px; }
.apt-nota { font-weight: 700; font-variant-numeric: tabular-nums; }

.lista-adv { list-style: none; display: flex; flex-direction: column; gap: .3rem; font-size: .86rem; }
.lista-adv li { display: flex; justify-content: space-between; gap: .6rem; }

.grafic { width: 100%; height: 54px; color: var(--auriu); display: block; margin-bottom: .3rem; }

/* ---------- reguli, ca lista numerotata ---------- */
.reguli { list-style: none; counter-reset: r; display: flex; flex-direction: column; gap: .7rem; }
.reguli li { counter-increment: r; display: grid; grid-template-columns: 26px 1fr; gap: .7rem; align-items: start; }
.reguli li::before {
  content: counter(r); display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line);
  color: var(--accent-clar); font-size: .78rem; font-weight: 800;
}

/* ---------- ninsoarea, oprita de om ----------
   Nu toata lumea vrea puncte care se misca in fundal cat citeste un tabel.
   Alegerea se tine in browserul lui, deci nu are nevoie de cont. */
.fara-zapada .zapada span { display: none; }

/* ceasul de sub numaratoarea de zile */
.ceas-craciun { font-variant-numeric: tabular-nums; }

/* placuta de numaratoare e link acum: sa se vada ca se poate apasa */
a.stat-tile { display: block; transition: border-color .15s, transform .15s; }
a.stat-tile:hover { border-color: rgba(239, 68, 68, .55); transform: translateY(-2px); }

/* ---------- calendarul de advent ---------- */
.advent {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: .4rem; margin: .9rem 0;
}
.advent-zi {
  position: relative; text-align: center; padding: .45rem .3rem;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
}
.advent-numar { display: block; font-size: .7rem; font-weight: 700; color: var(--muted); }
.advent-candy {
  display: block; font-size: 1.05rem; font-weight: 800; color: var(--auriu);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}
/* zilele trecute se sting, dar raman citibile: omul vrea sa vada ce a ratat */
.advent-zi.trecut { opacity: .45; }
.advent-zi.azi {
  border-color: var(--accent); background: rgba(217, 43, 57, .14);
  box-shadow: 0 0 0 1px var(--accent);
}
.advent-zi.craciun {
  border-color: rgba(242, 193, 78, .5);
  background: linear-gradient(160deg, rgba(242, 193, 78, .14), var(--panel-2));
}
.advent-fulg { position: absolute; top: 3px; right: 4px; color: var(--auriu); opacity: .6; }

/* ---------- liste de praguri (grade, recompense, surse de EXP) ---------- */
.grade { list-style: none; display: flex; flex-direction: column; }
.grade li {
  display: grid; grid-template-columns: 62px 1fr; gap: .6rem; align-items: baseline;
  padding: .32rem 0; border-bottom: 1px solid var(--line); font-size: .88rem;
}
.grade li:last-child { border-bottom: none; }
.grad-nivel {
  color: var(--muted); font-size: .74rem; font-weight: 700;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* ---------- sariturile din capul unei pagini lungi ---------- */
.chips.ancore li { padding: 0; background: none; border: 0; }
.chips.ancore a {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: inherit; font-size: .8rem; font-weight: 600; color: var(--muted);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px;
  padding: .24rem .65rem; transition: color .15s, border-color .15s;
}
.chips.ancore a:hover { color: var(--text); border-color: var(--line-tare); }
.chips.ancore a .ico { opacity: .7; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(12px);
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1100; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  padding: .65rem .9rem; border-radius: 12px; font-size: .88rem; box-shadow: var(--shadow);
  max-width: 92vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- cautarea din antet ---------- */
.cauta-form { position: relative; display: flex; align-items: center; flex: 1; max-width: 460px; }
.cauta-form .ico-cauta { position: absolute; left: .62rem; color: var(--muted); pointer-events: none; }
.cauta-form .input { padding: .45rem .8rem .45rem 2.15rem; flex: 1; min-width: 0; }
.cauta-form .input::-webkit-search-cancel-button { display: none; }

/* Butonul de meniu si sigla din antet exista doar sub 900px. Regula sta AICI,
   dupa `.btn` si `.logo`, pentru ca amandoua pun `display` si ar castiga daca
   ar veni mai tarziu in fisier. */
.doar-mobil { display: none; }

:target { scroll-margin-top: 5rem; }

/* ==========================================================================
   STRATUL DE CRACIUN
   --------------------------------------------------------------------------
   Tiparul de la RiderNation ramane neatins: bara laterala, cardurile, tabelele
   si spatiile sunt aceleasi. Peste el vine sarbatoarea, si numai prin lucruri
   care NU se ating de citit:
     - ninge in fundal (trei straturi, la viteze diferite);
     - o ghirlanda cu becuri sub antet, care clipeste incet;
     - bara de sloturi e baston de bomboane;
     - liniuta de sub titluri e panglica verde-alb-rosu;
     - numaratoarea pana la Craciun are placuta ei, aurie;
     - deasupra subsolului s-a asezat nametul.
   Rosul si auriul de aici sunt DECORATIVE. Rosul care inseamna ceva (erori,
   "cine il bate") ramane `--red`, mai stins, ca sa nu se incurce cele doua.
   ========================================================================== */

:root {
  --rosu-craciun: #ef4444;
  --auriu: #f2c14e;
}

/* ---------- ninge ----------
   Straturile se misca prin `transform`, nu prin `background-position`: prima
   varianta o duce placa video, a doua ar redesena tot ecranul la fiecare cadru
   (exact greseala de la `backdrop-filter` din antet). Placa se repeta la 220px
   si exact atat calatoreste stratul, deci bucla se inchide fara salt. */
.zapada {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(217, 43, 57, .11), transparent 60%),
    radial-gradient(700px 380px at 88% -4%, rgba(242, 193, 78, .05), transparent 60%);
}
.zapada span {
  position: absolute;
  left: -220px; width: calc(100% + 440px);
  top: -220px; height: calc(100% + 220px);
  background-repeat: repeat; background-size: 220px 220px;
  animation-timing-function: linear; animation-iteration-count: infinite;
  will-change: transform;
}
.z1 { animation-name: ninge-a; }
.z2 { animation-name: ninge-b; }
.z3 { animation-name: ninge-c; }
@keyframes ninge-a { to { transform: translate3d(220px, 220px, 0); } }
@keyframes ninge-b { to { transform: translate3d(0, 220px, 0); } }
@keyframes ninge-c { to { transform: translate3d(-220px, 220px, 0); } }
.z1 { background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27220%27 height=%27220%27%3E%3Ccircle cx=%27131.4%27 cy=%2765.8%27 r=%270.92%27 fill=%27%23fff%27 opacity=%270.34%27/%3E%3Ccircle cx=%27147.9%27 cy=%27116.4%27 r=%271.05%27 fill=%27%23fff%27 opacity=%270.33%27/%3E%3Ccircle cx=%2716.4%27 cy=%27219.4%27 r=%270.78%27 fill=%27%23fff%27 opacity=%270.20%27/%3E%3Ccircle cx=%27218.4%27 cy=%2713.0%27 r=%270.85%27 fill=%27%23fff%27 opacity=%270.18%27/%3E%3Ccircle cx=%2715.8%27 cy=%27148.2%27 r=%271.07%27 fill=%27%23fff%27 opacity=%270.31%27/%3E%3Ccircle cx=%27163.1%27 cy=%2714.0%27 r=%270.95%27 fill=%27%23fff%27 opacity=%270.25%27/%3E%3Ccircle cx=%2744.9%27 cy=%27196.3%27 r=%270.73%27 fill=%27%23fff%27 opacity=%270.31%27/%3E%3Ccircle cx=%2732.2%27 cy=%276.0%27 r=%270.99%27 fill=%27%23fff%27 opacity=%270.30%27/%3E%3Ccircle cx=%27189.9%27 cy=%27179.9%27 r=%271.03%27 fill=%27%23fff%27 opacity=%270.30%27/%3E%3C/svg%3E"); animation-duration: 46s; }
.z2 { background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27220%27 height=%27220%27%3E%3Ccircle cx=%27204.6%27 cy=%27174.5%27 r=%271.29%27 fill=%27%23fff%27 opacity=%270.29%27/%3E%3Ccircle cx=%27196.6%27 cy=%27113.7%27 r=%271.33%27 fill=%27%23fff%27 opacity=%270.38%27/%3E%3Ccircle cx=%2771.4%27 cy=%27141.8%27 r=%271.35%27 fill=%27%23fff%27 opacity=%270.28%27/%3E%3Ccircle cx=%2727.6%27 cy=%27212.7%27 r=%271.23%27 fill=%27%23fff%27 opacity=%270.20%27/%3E%3Ccircle cx=%2743.3%27 cy=%273.0%27 r=%271.57%27 fill=%27%23fff%27 opacity=%270.30%27/%3E%3Ccircle cx=%2771.5%27 cy=%279.4%27 r=%271.43%27 fill=%27%23fff%27 opacity=%270.23%27/%3E%3C/svg%3E"); animation-duration: 30s; }
.z3 { background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27220%27 height=%27220%27%3E%3Ccircle cx=%27192.0%27 cy=%2742.5%27 r=%272.57%27 fill=%27%23fff%27 opacity=%270.33%27/%3E%3Ccircle cx=%27158.9%27 cy=%27139.4%27 r=%271.98%27 fill=%27%23fff%27 opacity=%270.41%27/%3E%3Ccircle cx=%27212.1%27 cy=%2728.9%27 r=%272.41%27 fill=%27%23fff%27 opacity=%270.34%27/%3E%3Ccircle cx=%27186.7%27 cy=%27193.8%27 r=%272.27%27 fill=%27%23fff%27 opacity=%270.31%27/%3E%3C/svg%3E"); animation-duration: 19s; }

/* ---------- ghirlanda de sub antet ----------
   Sta in interiorul antetului lipit, deci ramane pe ecran tot timpul. Cele doua
   straturi au aceleasi becuri, dar cu culorile rotite; al doilea se stinge si
   se aprinde peste primul. */
.ghirlanda { position: relative; height: 18px; margin-top: -3px; }
.ghirlanda, .ghirlanda::after {
  background-repeat: repeat-x; background-position: left top; background-size: 104px 18px;
}
.ghirlanda::after {
  content: ''; position: absolute; inset: 0;
  animation: sclipeste 3.6s ease-in-out infinite;
}
@keyframes sclipeste { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.ghirlanda { background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27104%27 height=%2718%27%3E%3Cpath d=%27M0 3 Q13 8 26 3 Q39 8 52 3 Q65 8 78 3 Q91 8 104 3%27 fill=%27none%27 stroke=%27%233a3a41%27 stroke-width=%271.4%27/%3E%3Ccircle cx=%2713%27 cy=%279.6%27 r=%276%27 fill=%27%23ef4444%27 opacity=%270.22%27/%3E%3Ccircle cx=%2713%27 cy=%279.6%27 r=%273%27 fill=%27%23ef4444%27/%3E%3Crect x=%2711.7%27 y=%274%27 width=%272.6%27 height=%272.6%27 rx=%270.8%27 fill=%27%233a3a41%27/%3E%3Ccircle cx=%2739%27 cy=%279.6%27 r=%276%27 fill=%27%231fe07c%27 opacity=%270.22%27/%3E%3Ccircle cx=%2739%27 cy=%279.6%27 r=%273%27 fill=%27%231fe07c%27/%3E%3Crect x=%2737.7%27 y=%274%27 width=%272.6%27 height=%272.6%27 rx=%270.8%27 fill=%27%233a3a41%27/%3E%3Ccircle cx=%2765%27 cy=%279.6%27 r=%276%27 fill=%27%23f2c14e%27 opacity=%270.22%27/%3E%3Ccircle cx=%2765%27 cy=%279.6%27 r=%273%27 fill=%27%23f2c14e%27/%3E%3Crect x=%2763.7%27 y=%274%27 width=%272.6%27 height=%272.6%27 rx=%270.8%27 fill=%27%233a3a41%27/%3E%3Ccircle cx=%2791%27 cy=%279.6%27 r=%276%27 fill=%27%23cfe9ff%27 opacity=%270.22%27/%3E%3Ccircle cx=%2791%27 cy=%279.6%27 r=%273%27 fill=%27%23cfe9ff%27/%3E%3Crect x=%2789.7%27 y=%274%27 width=%272.6%27 height=%272.6%27 rx=%270.8%27 fill=%27%233a3a41%27/%3E%3C/svg%3E"); }
.ghirlanda::after { background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27104%27 height=%2718%27%3E%3Cpath d=%27M0 3 Q13 8 26 3 Q39 8 52 3 Q65 8 78 3 Q91 8 104 3%27 fill=%27none%27 stroke=%27%233a3a41%27 stroke-width=%271.4%27/%3E%3Ccircle cx=%2713%27 cy=%279.6%27 r=%276%27 fill=%27%23f2c14e%27 opacity=%270.22%27/%3E%3Ccircle cx=%2713%27 cy=%279.6%27 r=%273%27 fill=%27%23f2c14e%27/%3E%3Crect x=%2711.7%27 y=%274%27 width=%272.6%27 height=%272.6%27 rx=%270.8%27 fill=%27%233a3a41%27/%3E%3Ccircle cx=%2739%27 cy=%279.6%27 r=%276%27 fill=%27%23cfe9ff%27 opacity=%270.22%27/%3E%3Ccircle cx=%2739%27 cy=%279.6%27 r=%273%27 fill=%27%23cfe9ff%27/%3E%3Crect x=%2737.7%27 y=%274%27 width=%272.6%27 height=%272.6%27 rx=%270.8%27 fill=%27%233a3a41%27/%3E%3Ccircle cx=%2765%27 cy=%279.6%27 r=%276%27 fill=%27%23ef4444%27 opacity=%270.22%27/%3E%3Ccircle cx=%2765%27 cy=%279.6%27 r=%273%27 fill=%27%23ef4444%27/%3E%3Crect x=%2763.7%27 y=%274%27 width=%272.6%27 height=%272.6%27 rx=%270.8%27 fill=%27%233a3a41%27/%3E%3Ccircle cx=%2791%27 cy=%279.6%27 r=%276%27 fill=%27%231fe07c%27 opacity=%270.22%27/%3E%3Ccircle cx=%2791%27 cy=%279.6%27 r=%273%27 fill=%27%231fe07c%27/%3E%3Crect x=%2789.7%27 y=%274%27 width=%272.6%27 height=%272.6%27 rx=%270.8%27 fill=%27%233a3a41%27/%3E%3C/svg%3E"); }

/* ---------- bara de sloturi = baston de bomboane ---------- */
.bara-slot span {
  background: repeating-linear-gradient(45deg,
    var(--rosu-craciun) 0 6px, #f4f4f7 6px 12px);
}

/* ---------- liniuta de sub titluri = panglica ---------- */
h2.cu-bara::before, h3.cu-bara::before {
  width: 36px;
  background: linear-gradient(90deg,
    var(--accent-clar) 0 33.3%, #f4f4f7 33.3% 66.6%, var(--verde) 66.6%);
}

/* ---------- numaratoarea pana la Craciun ---------- */
.stat-tile.craciun {
  position: relative; overflow: hidden;
  border-color: rgba(239, 68, 68, .3);
  background:
    linear-gradient(135deg, rgba(239, 68, 68, .12), rgba(242, 193, 78, .05) 55%, var(--panel) 100%);
}
.stat-tile.craciun .v { color: var(--auriu); }
.stat-tile.craciun .k { color: #d2d2d9; }
/* fulgul din colt e decor, nu informatie: sta sub text si nu prinde mouse-ul */
.fulg-fundal {
  position: absolute; right: -18px; top: -18px;
  color: rgba(255, 255, 255, .055); pointer-events: none;
}

/* ---------- nametul de deasupra subsolului ----------
   Zapada s-a asezat pe muchia de sus a subsolului. E doar un desen repetat pe
   orizontala, fara nimic de incarcat in plus. */
.footer { position: relative; }
.footer::before {
  content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 32px;
  pointer-events: none;
  background-repeat: repeat-x; background-position: left top; background-size: 240px 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 width=%27240%27 height=%2732%27%3E%3Cpath d=%27M0 32 V17 C20 8 40 8 60 15 C80 22 100 7 120 12 C140 17 160 25 180 15 C200 6 220 11 240 18 V32 Z%27 fill=%27%23eaf4ee%27 fill-opacity=%270.10%27/%3E%3C/svg%3E");
}

/* ---------- accente mici ---------- */
/* anul din sigla, auriu: e singurul loc unde numele paginii spune ca e 2026 */
.logo-txt span { color: var(--auriu); }

/* ==================== responsive ==================== */
@media (max-width: 1200px) {
  .app { grid-template-columns: 218px 1fr; }
  .snav a { font-size: .88rem; padding: .48rem .55rem; }
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }

  /* ---------- bara laterala devine sertar peste continut ----------
     Ordinea straturilor conteaza: intai sertarul (960), apoi fundalul care
     intuneca restul (955), si abia apoi bara de jos (950). Altfel bara de jos
     taie fundul sertarului. */
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; width: 270px; max-width: 84vw;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: 8px 0 28px rgba(0, 0, 0, .5);
    z-index: 960;
    padding-bottom: calc(.8rem + env(safe-area-inset-bottom));
  }
  .meniu-deschis .sidebar { transform: translateX(0); }
  .sidebar-fundal {
    display: block; position: fixed; inset: 0; z-index: 955;
    background: rgba(0, 0, 0, .55); opacity: 0; pointer-events: none; transition: opacity .22s;
  }
  .meniu-deschis .sidebar-fundal { opacity: 1; pointer-events: auto; }
  .doar-mobil { display: inline-flex; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  h1 { font-size: 1.6rem; }
  .container { padding: 1rem .8rem 5.5rem; }
  .header-inner { padding: .5rem .8rem; }
  .cauta-form { max-width: none; }
  .cauta-form .input::placeholder { color: transparent; }
  /* Pastila de online ramane, dar doar cu punctul si cifra: cu tot cu cuvinte
     mananca jumatate din antet si campul de cautare se face cat o unghie. */
  .pill-online .eticheta-lunga { display: none; }

  .tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 950;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: .35rem .2rem calc(.35rem + env(safe-area-inset-bottom));
  }
  .tabbar a {
    flex: 1; text-align: center; color: var(--muted); font-size: .66rem; font-weight: 700;
    padding: .3rem 0; display: flex; flex-direction: column; gap: .12rem; align-items: center;
  }
  .tabbar a.active { color: var(--accent-clar); }
  .tabbar .ic { display: flex; align-items: center; justify-content: center; height: 21px; position: relative; }

  .placute { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .apt-lista li { grid-template-columns: 1fr 32% auto; }
}

@media (max-width: 620px) {
  .cap-pagina { flex-direction: column; align-items: stretch; }
  .cap-actiuni { width: 100%; }
  .cap-actiuni > * { flex: 1 1 0; justify-content: center; }
  /* coloanele optionale din tabele: pe telefon nu incap si nu lipsesc nimanui */
  .col-optional { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .card.hover:hover { transform: none; }
}
