/* ArenaSmart · sistem vizual
   Verde închis + crem, Sora (titluri) + DM Sans (text). Sobru, aerisit, mobil întâi. */
:root {
  --bg: #F4F3EE;
  --surface: #FFFFFF;
  --surface-2: #FAFAF7;
  --ink: #121A16;
  --ink-2: #47524C;
  --ink-3: #7A847E;
  --line: #E5E6E0;
  --line-2: #D2D6CE;
  --accent: #14563A;
  --accent-2: #1C7A52;
  --accent-ink: #0D3F2A;
  --accent-soft: #E5F0E9;
  --gold: #A7791F;
  --gold-soft: #F6EED9;
  --warn: #8A5A00;
  --warn-soft: #FBF0D9;
  --danger: #A8321F;
  --danger-soft: #FBE7E2;
  --hero-1: #0E1813;
  --hero-2: #153A27;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --sh-1: 0 1px 2px rgba(18, 26, 22, .05), 0 1px 1px rgba(18, 26, 22, .03);
  --sh-2: 0 14px 34px -18px rgba(18, 26, 22, .28), 0 2px 6px rgba(18, 26, 22, .05);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-title: 'Sora', 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 600; margin: 0; letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: 26px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
.muted { color: var(--ink-2); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 40px 16px; }
.nowrap { white-space: nowrap; }
.ic { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: -3px; }
.ic-sm { width: 15px; height: 15px; vertical-align: -2px; }
.ic-lg { width: 22px; height: 22px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Bara de sus ---------- */
.sus { position: sticky; top: 0; z-index: 20; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-title); font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 45px; height: 30px; border-radius: 7px; display: block; flex: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; }
/* numele scris: „arena” verde, „smart” auriu, mingea în loc de punct */
.wm { font-family: var(--font-title); font-weight: 800; letter-spacing: -0.03em; display: inline-flex; align-items: baseline; }
.wm-a { color: #14563A; } .wm-s { color: #B08A2E; }
.wm-m { width: .26em; height: .26em; border-radius: 50%; background: #14563A; margin-left: .06em; }
.topbar-user { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.topbar-user a.email { color: var(--ink-2); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; padding: 6px 4px; }
.topbar-user a.email:hover { color: var(--accent); }
.admin-link { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #F4F3EE; font-weight: 600; font-size: 12.5px; text-decoration: none; }
.admin-link:hover { background: var(--accent); color: #fff; }
.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D9472F; color: #FFF; font-size: 11px; font-weight: 700; line-height: 1; }

.app { max-width: 1100px; margin: 0 auto; padding: 22px 16px 72px; }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFF; box-shadow: 0 6px 16px -8px rgba(20, 86, 58, .7); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #FFF; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--accent); padding: 0 10px; box-shadow: none; }
.btn-ghost:hover { background: var(--accent-soft); border-color: transparent; }
.btn-small { min-height: 36px; padding: 0 13px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; min-height: 38px; padding: 0; border-radius: 11px; }
.btn-danger { color: var(--danger); }

/* ---------- Etichete ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 18px;
  background: var(--accent-soft); color: var(--accent); white-space: nowrap;
}
.pill-dark { background: var(--ink); color: #F4F3EE; }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-muted { background: #EDEEE9; color: var(--ink-2); }
.pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-light { background: rgba(244, 243, 238, .13); color: #F4F3EE; }
.lic-ok { background: var(--accent-soft); color: var(--accent); }
.lic-warn { background: var(--warn-soft); color: var(--warn); }
.lic-bad { background: var(--danger-soft); color: var(--danger); }
.pill .ic { width: 13px; height: 13px; vertical-align: -2px; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface); font-size: 16px;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { padding: 12px 14px; min-height: 92px; resize: vertical; line-height: 1.45; }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(20, 86, 58, .13); }
.input:disabled { background: var(--surface-2); color: var(--ink-3); }
.hint { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
.counter { align-self: flex-end; font-size: 12px; color: var(--ink-3); margin-top: -2px; }
.counter.over { color: var(--danger); }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 46px; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }

.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 4px; margin-bottom: 14px; }
.form-section > .fs-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.fs-head .fs-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.fs-head h3 { font-size: 15.5px; }
.fs-head p { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); }

.preview { border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; background: var(--surface-2); margin-bottom: 16px; }
.preview .label { display: block; margin-bottom: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }

/* ---------- Carduri ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--sh-1); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 26px 2px 12px; }
.empty { padding: 34px 20px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius-lg); }
.empty .ic { display: block; margin: 0 auto 10px; width: 28px; height: 28px; color: var(--ink-3); }
.err { color: var(--danger); background: var(--danger-soft); padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; }
.note { color: #5E3D00; background: var(--warn-soft); padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; }
.ok-note { color: var(--accent-ink); background: var(--accent-soft); padding: 11px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; }
.box { padding: 16px; background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 14px; }
.demo-banner { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: 13px; padding: 6px 12px; }

/* Pătrățele cu cifre */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px; text-align: center; }
.tile .n { font-family: var(--font-title); font-weight: 600; font-size: 22px; line-height: 1.1; }
.tile .l { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.25; }
.tile.warn .n { color: var(--warn); }

/* ---------- Intrare ---------- */
.login { max-width: 440px; margin: 6vh auto 0; padding: 26px 22px; box-shadow: var(--sh-2); }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.login-brand .brand-mark { width: 66px; height: 44px; border-radius: 10px; }

.login h1 { font-size: 24px; }
.login .lead { margin: 4px 0 18px; color: var(--ink-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 18px; background: #ECEDE7; border-radius: 13px; }
.seg-btn { min-height: 40px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.code-input { font-family: var(--font-title); font-size: 28px; letter-spacing: .4em; text-align: center; min-height: 60px; }
.login-links { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 6px; }
.login-foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Pagina principală ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .kicker { font-size: 13px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; }
.plan-card { margin-bottom: 18px; padding: 16px; }
.plan-card .plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.plan-card .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.t-card { display: flex; gap: 14px; text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s, transform .15s; padding: 16px; }
.t-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); color: inherit; }
.t-date { flex: 0 0 58px; height: 64px; border-radius: 14px; background: linear-gradient(160deg, var(--hero-2), var(--hero-1)); color: #F4F3EE; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.t-date .d { font-family: var(--font-title); font-weight: 600; font-size: 22px; line-height: 1; }
.t-date .m { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: #B5C3BA; margin-top: 4px; }
.t-card-body { flex: 1; min-width: 0; }
.t-card h2 { font-size: 16.5px; margin-bottom: 4px; }
.t-card .meta-line { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); }
.t-card .meta-line span { display: inline-flex; align-items: center; gap: 5px; }
.t-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.t-card .go { align-self: center; color: var(--ink-3); }

/* ---------- Antetul turneului ---------- */
.t-head {
  position: relative; overflow: hidden;
  margin: -22px -16px 0; padding: 18px 16px 18px;
  background: radial-gradient(120% 140% at 100% 0%, #1F5A3C 0%, rgba(31, 90, 60, 0) 55%), linear-gradient(160deg, var(--hero-2), var(--hero-1));
  color: #F4F3EE;
}
.t-head::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .06); box-shadow: 0 0 0 30px rgba(255,255,255,.02), 0 0 0 60px rgba(255,255,255,.015); pointer-events: none; }
@media (min-width: 1100px) { .t-head { margin: -22px 0 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 22px 26px 22px; } }
.t-head .back { display: inline-flex; align-items: center; gap: 4px; color: #B9C6BE; text-decoration: none; font-size: 13.5px; font-weight: 500; }
.t-head .back:hover { color: #FFF; }
.t-head h1 { margin-top: 10px; font-size: 23px; position: relative; }
.t-head .sub { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: #C4CFC8; position: relative; }
.t-head .sub span { display: inline-flex; align-items: center; gap: 5px; }
.t-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; position: relative; }
.t-head .lic-ok { background: #CFE7D8; color: var(--accent-ink); }
.t-head .lic-warn { background: #F5DE9F; color: #5E3D00; }
.t-head .lic-bad { background: #F4C5BB; color: #7A2112; }
.hero-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; position: relative; }
.hero-tiles .tile { background: rgba(244, 243, 238, .07); border: 1px solid rgba(244, 243, 238, .1); color: #F4F3EE; }
.hero-tiles .tile .l { color: #AEBDB4; }
.hero-tiles .tile.warn .n { color: #F5C96B; }

.status-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; padding: 13px 15px; border-radius: var(--radius); background: #ECEDE7; color: var(--ink); font-size: 14px; border: 1px solid transparent; }
.status-bar > div:first-child { flex: 1 1 260px; display: flex; gap: 10px; align-items: flex-start; }
.status-bar > div:first-child > .ic { margin-top: 1px; }
.status-warn { background: var(--warn-soft); color: #5E3D00; border-color: #F0DDAF; }
.status-ok { background: var(--accent-soft); color: var(--accent-ink); border-color: #CFE3D6; }

.tabs {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  margin: 14px 0 18px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-1);
  position: sticky; top: var(--sus-h, 61px); z-index: 10;
}
.tab {
  min-height: 42px; border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 14.5px;
}
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab[aria-current="page"] { background: var(--ink); color: #F4F3EE; }
.tab .ic { width: 16px; height: 16px; }
.tabs-scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs-scroll .tab { flex: 0 0 auto; padding: 0 14px; white-space: nowrap; }

/* ---------- Categorii și echipe ---------- */
.cat { margin-bottom: 30px; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.cat-head .title { display: flex; align-items: center; gap: 12px; }
.cat-badge { width: 44px; height: 44px; border-radius: 13px; background: var(--ink); color: #F4F3EE; display: grid; place-items: center; font-family: var(--font-title); font-weight: 600; font-size: 14px; }
.cat-head h2 { font-size: 18px; }
.cat-head .muted { font-size: 13px; }
.groups { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); margin: 0 2px 10px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.team { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-1); }
.avatar {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 600; font-size: 14px; color: #FFF; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #FFF; }
.avatar-sm { flex-basis: 26px; width: 26px; height: 26px; border-radius: 8px; font-size: 10.5px; }
.team-body { flex: 1; min-width: 0; padding-right: 30px; }
.team-name { font-family: var(--font-title); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.team-club { font-size: 13px; color: var(--ink-3); margin-top: 1px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.team-coach { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.team-coach > span { display: inline-flex; align-items: center; gap: 6px; }
.team-coach .tel { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); text-decoration: none; font-weight: 500; }
.team-note { margin-top: 7px; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 6px; align-items: flex-start; }
.team-note.warn { color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 9px; border-radius: 8px; background: var(--warn-soft); color: var(--warn); font-weight: 500; }
.chip-off { background: #EDEEE9; color: var(--ink-3); text-decoration: line-through; }
.team-edit { position: absolute; top: 10px; right: 10px; color: var(--ink-3); }
.team-edit:hover { color: var(--accent); }

/* ---------- Program ---------- */
.day-title { display: flex; align-items: center; gap: 10px; font-family: var(--font-title); font-size: 15px; font-weight: 600; margin: 22px 2px 12px; }
.day-title .pill { font-family: var(--font); }
.day-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day-title:first-child { margin-top: 4px; }
.match {
  position: relative; display: grid; grid-template-columns: 62px 1fr; gap: 0 14px;
  padding: 14px 14px 12px 16px; margin-bottom: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--sh-1); overflow: hidden;
}
.match::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line-2); }
.match.played::before { background: var(--accent); }
.match.ko::before { background: var(--gold); }
.match .when { padding-top: 2px; }
.match .time { font-family: var(--font-title); font-weight: 600; font-size: 17px; }
.match .num { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }
.match .phase { font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.match.ko .phase { color: var(--gold); }
.match .line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 3px 0; }
.match .line .nm { display: flex; align-items: center; gap: 9px; min-width: 0; font-weight: 600; font-size: 14.5px; }
.match .line .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match .line.lose .nm { color: var(--ink-3); font-weight: 500; }
.match .line .g { font-family: var(--font-title); font-weight: 600; font-size: 18px; min-width: 26px; text-align: right; }
.match .line.lose .g { color: var(--ink-3); }
.match .src { color: var(--ink-3); font-weight: 500; font-style: italic; }
.match .meta { grid-column: 2; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.match .meta span { display: inline-flex; align-items: center; gap: 5px; }
@media (min-width: 760px) { .matches { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; } }

/* ---------- Arbitri și persoane ---------- */
.ref { display: flex; align-items: center; gap: 14px; }
.ref .slot-badge, .ref-plan .slot-badge { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-family: var(--font-title); font-weight: 600; flex: 0 0 auto; }
.ref .who { flex: 1; min-width: 0; }
.ref .who .name { font-weight: 600; font-family: var(--font-title); font-size: 15px; }
.person { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.card.person { border-top: 1px solid var(--line); padding: 14px 16px; flex-wrap: wrap; }
.card.person .who { flex: 1 1 220px; }
.person .who { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.person .who .name { font-weight: 600; }
.person-actions { display: flex; flex-wrap: wrap; gap: 2px; }
@media (max-width: 560px) { .card.person .person-actions { width: 100%; } }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---------- Ferestre (bottom sheet) ---------- */
dialog.sheet {
  width: min(600px, 100vw); max-width: 100vw; max-height: 94vh;
  margin: auto auto 0; padding: 0; border: 0;
  border-radius: 22px 22px 0 0; background: var(--bg); color: var(--ink);
  box-shadow: 0 -20px 50px -20px rgba(0,0,0,.35);
}
@media (min-width: 760px) { dialog.sheet { margin: auto; border-radius: 22px; } }
dialog.sheet::backdrop { background: rgba(14, 24, 19, .5); backdrop-filter: blur(2px); }
dialog.sheet[open] { animation: sheet-in .22s ease-out; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.sheet-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 14px; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet-head::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); }
@media (min-width: 760px) { .sheet-head::before { display: none; } }
.sheet-head h2 { font-size: 18px; }
.sheet-body { padding: 18px; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 18px; padding-bottom: max(12px, env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.sheet-foot .btn { flex: 1; }
.restr { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; font-size: 14px; }
.restr .txt { flex: 1; min-width: 0; }
.restr.off { opacity: .6; }
.restr.off .txt { text-decoration: line-through; }
.choice .check { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 8px; transition: border-color .15s, box-shadow .15s; }
.choice .check:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 86, 58, .1); }
.choice .check input { margin-top: 2px; }

/* ---------- Administrare ---------- */
.admin-t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.notif { display: flex; gap: 12px; }
.notif .n-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: #EDEEE9; color: var(--ink-2); flex: 0 0 auto; }
.notif .n-ic.req { background: var(--warn-soft); color: var(--warn); }
.notif .n-ic.new { background: var(--accent-soft); color: var(--accent); }
.notif .n-body { flex: 1; min-width: 0; }
.notif.unread { border-color: #BFD8C8; box-shadow: inset 3px 0 0 var(--accent), var(--sh-1); }
.notif-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.notif-msg { margin-top: 6px; font-size: 15px; }
.muted-card { opacity: .7; }
.activity { display: flex; flex-direction: column; }
.act-row { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }

/* ---------- Subsol și notificări ---------- */
.footer { text-align: center; font-size: 12.5px; color: var(--ink-3); padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
.footer a { color: var(--ink-2); }
[hidden] { display: none !important; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #F4F3EE; padding: 12px 18px; border-radius: 14px;
  font-size: 14px; z-index: 100; max-width: calc(100vw - 32px); box-shadow: var(--sh-2);
}

.u-av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: 0 0 auto; }
.topbar-user a.email { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 520px) { .topbar-user .u-name { display: none; } .topbar-user a.email { max-width: none; padding: 0; } }

/* ---------- Pagini legale și acceptare ---------- */
.legal.card { max-width: 820px; margin: 0 auto; padding: 22px 20px 26px; }
.legal h1 { margin: 14px 0 12px; font-size: 25px; }
.legal h2 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 15px; line-height: 1.6; color: #2B342F; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin-bottom: 6px; }
.legal .lead { font-size: 16px; color: var(--ink-2); }
.legal .version { margin-top: 26px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.legal-nav a { padding: 6px 12px; border-radius: 999px; background: #EDEEE9; color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.legal-nav a[aria-current="page"] { background: var(--ink); color: #F4F3EE; }
.legal-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.legal-table th { background: var(--surface-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
@media (max-width: 560px) { .legal-table, .legal-table tbody, .legal-table tr, .legal-table td, .legal-table th { display: block; width: 100%; } .legal-table tr:first-child { display: none; } .legal-table td { border: 0; padding: 3px 0; } .legal-table td:first-child { font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); } }
.accept { max-width: 520px; }
.doc-links { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 18px; }
.doc-link { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14.5px; text-align: left; text-decoration: none; cursor: pointer; }
.doc-link:hover { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.doc-link span { flex: 1; }
.doc-link .ic:first-child { color: var(--accent); }
.doc-link .ic:last-child { color: var(--ink-3); }
.accept-check { align-items: flex-start; padding: 14px; border: 1px solid var(--accent); border-radius: 14px; background: var(--accent-soft); font-size: 14.5px; line-height: 1.5; margin-bottom: 14px; }
.accept-check input { margin-top: 2px; }
.req { display: inline-block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); margin-left: 2px; }
.optional { padding: 12px 14px 4px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.optional .check { align-items: flex-start; font-size: 14.5px; line-height: 1.45; min-height: 0; padding: 8px 0; }
.optional .check input { margin-top: 2px; }
.footer { display: flex; flex-direction: column; gap: 8px; align-items: center; border-top: 1px solid var(--line); margin-top: 10px; }
.f-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
.f-links a { color: var(--ink-2); text-decoration: none; }
.f-links a:hover { color: var(--accent); text-decoration: underline; }
.f-company { font-size: 12px; color: var(--ink-3); }

/* ---------- Meniul principal ---------- */
.topnav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--ink); color: #F4F3EE; }
.nav-item .badge-count { margin-left: 2px; }
.bottomnav { display: none; }
@media (max-width: 760px) {
  .topnav, .topnav-out { display: none; }
  .bottomnav {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(18, 26, 22, .4);
  }
  .bottomnav .nav-item { flex-direction: column; gap: 3px; padding: 7px 4px; font-size: 11.5px; justify-content: center; border-radius: 12px; }
  .bottomnav .nav-item .ic { width: 22px; height: 22px; }
  .bottomnav .nav-item[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
  .bottomnav .nav-item .badge-count { position: absolute; top: 3px; left: calc(50% + 6px); }
  body.has-bottomnav { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body.has-bottomnav .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
}

/* Turneu nou: câte un card pe categorie */
.cat-rows { display: grid; gap: 12px; margin-bottom: 12px; }
.cat-row { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); padding: 12px 14px 10px; }
.cat-row-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; margin-bottom: 6px; }
.cat-row-head strong { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 15px; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.cat-grid .field { margin-bottom: 10px; display: flex; flex-direction: column; justify-content: flex-end; }
.cat-grid .field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-sum { margin: 0; font-size: 13.5px; color: var(--accent); font-weight: 500; }
.add-cat { border-style: dashed; color: var(--accent); gap: 8px; }
@media (min-width: 620px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

/* Lotul echipei */
.cat-tol { margin-bottom: 8px; }
.team-lot { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.team-lot:hover { background: var(--accent-soft); }
.team-lot.empty-lot { border-style: dashed; }
.lot-head { margin: -4px 0 12px; }
.lot-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lot-rows { display: grid; gap: 10px; margin-bottom: 12px; }
.lot-row { display: grid; grid-template-columns: 64px 1fr 40px; grid-template-areas: "nr nume del" "poz poz poz" "nasc nasc nasc" "gdpr gdpr gdpr"; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.lot-row .lot-nr { grid-area: nr; text-align: center; font-weight: 600; padding-left: 6px; padding-right: 6px; }
.lot-row .lot-nr.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 40, 40, .12); }
.lot-row .lot-nume { grid-area: nume; }
.lot-row .lot-del { grid-area: del; align-self: center; color: var(--ink-3); }
.poz-seg { grid-area: poz; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.poz-seg button { min-height: 36px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; padding: 0 2px; }
.poz-seg button[aria-checked="true"] { background: var(--accent); color: #FFF; font-weight: 600; }
.lot-nascut { grid-area: nasc; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.lot-nascut .input { flex: 1; min-height: 40px; }
.lot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.lot-actions .btn { gap: 8px; }
.lot-paste textarea { width: 100%; resize: vertical; font: inherit; }
.note.bad { background: #FBECEA; color: var(--danger); border-color: #F1C9C4; }
.lot-rows { container-type: inline-size; }
@container (min-width: 480px) {
  .lot-row { grid-template-columns: 64px 1fr 170px 40px; grid-template-areas: "nr nume nume del" "poz poz nasc nasc" "gdpr gdpr gdpr gdpr"; align-items: center; }
  .lot-nascut span { display: none; }
}
.pill-muted { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
@media (max-width: 440px) { .tab { font-size: 13.5px; gap: 5px; } .tab .ic { width: 14px; height: 14px; } }

/* Setările turneului */
.cfg { margin-bottom: 22px; }
.cfg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cfg-head h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 2px; }
.cfg-head p { margin: 0; }
.cfg-list { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--sh-1); }
.cfg-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.cfg-list > div:first-child { border-top: 0; }
.cfg-list dt { color: var(--ink-2); }
.cfg-list dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.cfg-item { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; }
.cfg-item-main { flex: 1; min-width: 0; }
.cfg-item.off { opacity: .7; }
.cfg .chip, .chip-n { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.cfg .chip.chip-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.choice button { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; min-height: 44px; }
.choice button small { font-size: 11px; font-weight: 400; opacity: .8; }
.sys-list { display: grid; gap: 8px; margin-bottom: 12px; }
.sys { text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; cursor: pointer; display: grid; gap: 3px; }
.sys span { font-size: 13px; color: var(--ink-2); }
.sys[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; background: var(--accent-soft); }
.zi-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 40px; gap: 8px; align-items: end; }
.zi-row .field { margin-bottom: 0; }
.zi-row .icon-btn { margin-bottom: 4px; }
.rot45 { transform: rotate(45deg); }
.hint.warn, .warn { color: var(--warn); }
.label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
@media (max-width: 440px) { .zi-row { grid-template-columns: 1fr 1fr 40px; } .zi-row .field:first-child { grid-column: 1 / -1; } }

/* Tragerea la sorți */
.cat-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.note.ok { background: var(--accent-soft); color: var(--accent); }
.seed-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seed { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; font-size: 14px; font-weight: 600; }
.seed input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 1px; flex: 0 0 auto; }
.seed small, .draw-team small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); }
.draw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.draw-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; box-shadow: var(--sh-1); }
.draw-title { font-family: 'Sora', sans-serif; font-weight: 600; margin-bottom: 8px; }
.draw-team { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.draw-team:first-of-type { border-top: 0; }
.draw-team.dup { color: var(--warn); }
.draw-n { width: 24px; height: 24px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12.5px; flex: 0 0 auto; }

/* Generatorul de program */
.gen-bar { display: flex; justify-content: center; margin: 4px 0 16px; }
.gen-rules { margin: 0 0 12px; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.gen-rules li { margin-bottom: 4px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.gen-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 12px; }
.gen-sum > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; font-size: 14px; }
.gen-sum span { color: var(--ink-2); font-size: 13px; }
.gen-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; }
.gen-row { display: grid; grid-template-columns: 48px 1fr; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 14px; align-items: center; }
.gen-row:first-child { border-top: 0; }
.gen-row.ko { background: #FBF7EC; }
.gen-t { font-weight: 700; font-variant-numeric: tabular-nums; }
.gen-f { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gen-m small { display: block; font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.gen-m small b { color: var(--ink-2); font-weight: 600; }

/* Repartizarea arbitrilor */
.ref-plan { padding: 14px 16px; }
.ref-plan-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ref-day { padding-top: 8px; border-top: 1px solid var(--line); margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ref-day > div { width: 100%; }
.team-lot.warn { color: var(--warn); border-color: var(--warn); background: var(--warn-soft); }

/* 5 taburi în turneu */
.tabs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 520px) { .tab { flex-direction: column; gap: 2px; font-size: 11.5px; min-height: 50px; } .tab .ic { width: 16px; height: 16px; } }

/* Scoruri */
.match.clickable { cursor: pointer; }
.match.clickable:hover { box-shadow: var(--sh-2, 0 6px 18px -10px rgba(0,0,0,.25)); }
.score-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin: 0 0 14px; }
.score-team { font-weight: 600; font-size: 15px; }
.score-head .score-team:last-child { text-align: right; }
.score-big { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 38px; display: flex; gap: 8px; align-items: center; }
.score-big span { color: var(--ink-3); font-weight: 400; }
.ev-add .label { margin-bottom: 8px; }
.ev-nr-row { display: flex; gap: 8px; margin-top: 8px; }
.ev-nr-row .input { width: 110px; flex: 0 0 auto; text-align: center; }
.ev-nr-row .btn { flex: 1; gap: 6px; }
.ev-lot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ev-lot button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 10px; padding: 6px 9px; font: inherit; font-size: 13px; cursor: pointer; }
.ev-lot button b { color: var(--accent); }
.ev-list { display: grid; gap: 6px; margin-top: 12px; }
.ev-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.ev-txt { flex: 1; }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.ev-row.yel .ev-dot { background: #E6B800; border-radius: 2px; width: 9px; height: 12px; }
.ev-row.red .ev-dot { background: #D93025; border-radius: 2px; width: 9px; height: 12px; }
.ev-row.miss .ev-dot { background: var(--ink-3); }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); font-size: 26px; font-weight: 600; cursor: pointer; color: var(--accent); }
.stepper output { min-width: 46px; text-align: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 30px; }

/* Clasamente */
.st-grid { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 12px; }
@media (min-width: 760px) { .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.st-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--sh-1); margin-bottom: 12px; overflow-x: auto; }
.st-grid .st-card { margin-bottom: 0; }
.st-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-family: 'Sora', sans-serif; font-weight: 600; margin-bottom: 8px; }
.st-table { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.st-table th { font-size: 11.5px; color: var(--ink-3); font-weight: 600; padding: 4px; text-align: center; }
.st-table td { padding: 7px 4px; text-align: center; border-top: 1px solid var(--line); }
.st-table .l { text-align: left; }
.st-table tr.tie td { background: var(--warn-soft); }
.tie-mark { color: var(--warn); font-weight: 700; }
.ko-row { padding: 8px 0; border-top: 1px solid var(--line); }
.ko-row:first-of-type { border-top: 0; }
.ko-ph { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 3px; }
.ko-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; font-size: 14px; }
.ko-vs > span:last-child { text-align: right; }
.ko-vs b { font-family: 'Sora', sans-serif; white-space: nowrap; }
.ko-vs .win { font-weight: 700; }
.ko-vs .lose { color: var(--ink-3); }
.ko-vs em { color: var(--ink-3); font-style: normal; font-size: 13px; }
.final-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.final-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 600; }
.final-loc { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; }
.final-list .p1 .final-loc { background: #F3E3B5; color: #7A5A12; }
.final-list .p2 .final-loc { background: #E6E8EC; color: #4A5260; }
.final-list .p3 .final-loc { background: #F1DCCB; color: #7A4A26; }
.stepper-in { width: 64px; height: 52px; text-align: center; font-family: 'Sora', sans-serif; font-weight: 700; font-size: 28px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); color: var(--ink); -moz-appearance: textfield; }
.stepper-in::-webkit-outer-spin-button, .stepper-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-in:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.stepper-sm button { width: 38px; height: 38px; border-radius: 11px; font-size: 20px; }
.stepper-sm .stepper-in { width: 44px; height: 38px; font-size: 18px; border-radius: 11px; }
.stepper-l { display: inline-flex; align-items: center; }
.card-box summary { cursor: pointer; list-style: none; }
.card-box summary::-webkit-details-marker { display: none; }
.card-box summary::after { content: ' ▾'; color: var(--ink-3); }
.card-row { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.card-steps { display: flex; gap: 14px; flex-wrap: wrap; }
.stepper-sm { gap: 4px; }
.cd { display: inline-block; width: 12px; height: 16px; border-radius: 2px; margin-right: 4px; }
.cd.yel { background: #E6B800; } .cd.red { background: #D93025; }

/* Verificarea programului, schimb, întârzieri */
.check-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 12px; font-size: 14px; }
.check-band.ok { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.lvl { font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 99px; }
.lvl.red { background: #FBE3E1; color: #A3241B; } .lvl.orange { background: #FCE8D6; color: #9A4A0B; } .lvl.yellow { background: #FFF4CC; color: #7A5C00; }
.prog-tools { display: flex; justify-content: flex-end; gap: 8px; margin-bottom: 10px; }
.swap-hint { background: #E8EEF9; color: #23406E; }
.match.lvl-red { box-shadow: inset 4px 0 0 #D93025; }
.match.lvl-orange { box-shadow: inset 4px 0 0 #E8710A; }
.match.lvl-yellow { box-shadow: inset 4px 0 0 #E6B800; }
.match.picked { outline: 3px solid #2F6FD6; outline-offset: 2px; }
.match.locked { opacity: .5; }
.issues { grid-column: 1 / -1; display: grid; gap: 4px; margin-top: 8px; }
.issue { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.35; padding: 6px 8px; border-radius: 10px; }
.issue.red { background: #FBE3E1; color: #7E1C15; } .issue.orange { background: #FCE8D6; color: #7A3A08; } .issue.yellow { background: #FFF4CC; color: #5E4700; } .issue.ok { background: var(--accent-soft); color: var(--accent); }
.lvl-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; margin-top: 5px; }
.when s { color: var(--ink-3); font-weight: 400; font-size: 12px; display: block; }
.delay { font-size: 11.5px; font-weight: 700; margin-top: 2px; }
.delay.late { color: #A3241B; } .delay.early { color: var(--accent); }
.delay-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 3px 9px; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.swap-pair { display: grid; gap: 6px; }
.swap-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.swap-nr { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.swap-teams { font-weight: 600; margin: 2px 0 6px; }
.swap-loc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; }
.swap-loc .old { color: var(--ink-3); text-decoration: line-through; }
.swap-ic { text-align: center; font-size: 22px; color: #2F6FD6; line-height: 1; }
.team-pick { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #2F6FD6; background: var(--surface); color: #fff; font-weight: 700; cursor: pointer; flex: 0 0 auto; margin-right: 0; }
.team-pick.on { background: #2F6FD6; }
.tag-np { margin-left: 6px; font-size: 11px; font-weight: 700; color: #A3241B; background: #FBE3E1; border-radius: 6px; padding: 1px 6px; }
.slot-list { display: grid; gap: 8px; }
.slot-opt { text-align: left; display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; cursor: pointer; }
.slot-opt:hover { border-color: var(--accent); }
.slot-eff { display: flex; flex-wrap: wrap; gap: 6px; }
.lvl.ok { background: var(--accent-soft); color: var(--accent); }
.prog-tools { flex-wrap: wrap; }
.np-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line-2); }
.np-choice { display: grid; gap: 8px; }
.btn-danger-fill { background: #B3261E; border-color: #B3261E; }
.ord-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; } .ord-row strong { flex: 1; } .ord-btns { display: flex; gap: 4px; }

/* Pagina publică */
.pub-head h1 { margin-top: 4px; }
.tabs.tabs-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; margin-right: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pub-empty { display: grid; gap: 10px; justify-items: center; text-align: center; }
.pub-empty span { max-width: 340px; }
.mele-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.mele-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 4px; min-height: 40px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font: inherit; font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.mele-chip[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #F4F3EE; box-shadow: var(--sh-1); }
.mele-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mele-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; margin-bottom: 14px; box-shadow: var(--sh-1); }
.mele-card .match { box-shadow: none; }
.mele-head { display: flex; align-items: center; gap: 12px; }
.mele-head h2 { font-size: 18px; margin: 0; }
.mele-pos { margin-top: 10px; padding: 8px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.mele-more summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px; margin: 6px 0; }
.match .line.mine .nm { color: var(--accent); }
.pick-list { display: grid; gap: 6px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: inherit; text-align: left; cursor: pointer; }
.pick span { flex: 1; font-weight: 600; } .pick small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.pick b { font-size: 20px; color: #C9A227; }
.pick.on { border-color: var(--accent); background: var(--accent-soft); }
.pub-filter { margin-bottom: 8px; }
.src { font-style: normal; color: var(--ink-3); font-weight: 500; }
.fisa-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fisa-cols .ev-row { font-size: 13px; padding: 6px 8px; }
.link-box { display: flex; gap: 8px; margin-bottom: 12px; }
.link-box .input { flex: 1; min-width: 0; font-size: 13.5px; }
.lot-doar { grid-area: gdpr; display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.lot-doar.on { border-style: solid; border-color: var(--danger); background: rgba(180, 40, 40, .06); color: var(--ink); }
.lot-doar input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--danger); }
.lot-doar span { display: grid; gap: 2px; font-weight: 600; }
.lot-doar small { font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.consent-box { margin-bottom: 10px; border-style: solid; }
.pub-live { text-align: center; text-wrap: balance; }
.pub-live .live-dot { display: inline-block; vertical-align: middle; margin: -2px 6px 0 0; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); animation: livepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, .5); } 70% { box-shadow: 0 0 0 7px rgba(31, 157, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* ---------- PIN: antrenori și arbitri ---------- */
.pill-ok { background: var(--accent-soft); color: var(--accent-ink); }
.pin-login { max-width: 420px; margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: var(--sh-2); text-align: center; }
.pin-login h1 { font-family: var(--font-title); font-size: 24px; margin: 10px 0 6px; }
.pin-login .label { display: block; text-align: left; margin: 16px 0 6px; }
.pin-login .code-input { width: 100%; margin-bottom: 12px; }
.pin-login .note { text-align: left; margin: 12px 0 0; }
.pin-logo { width: 52px; height: 52px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pin-logo .ic { width: 26px; height: 26px; }
.pin-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pin-who .pill { display: inline-flex; align-items: center; gap: 6px; }
.pin-out { color: #F4F3EE; border: 1px solid rgba(244, 243, 238, .25); }
.pin-sum { margin: 0 0 12px; color: var(--ink-2); }
.pin-match { position: relative; margin-bottom: 12px; }
.pin-match .match { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pin-match.next .match { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.pin-next { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px 4px; }
.pin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; background: var(--surface-2); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.pin-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.pin-lot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 0 4px; }
.pin-lot.warn { background: var(--warn-soft); border-color: #F0DDAF; }
.pin-lot .btn { flex: none; display: inline-flex; align-items: center; gap: 6px; }
.sem-mine { padding: 10px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.sem-mine:first-of-type { border-top: 0; }
.acc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.acc-who { display: grid; gap: 3px; min-width: 0; }
.acc-st { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 3px; }
.acc-st .pill { display: inline-flex; align-items: center; gap: 4px; }
.acc-act { flex: none; }
.pin-show { text-align: center; margin: 0 0 14px; }
.pin-big { font-family: var(--font-title); font-size: 38px; font-weight: 700; letter-spacing: .12em; color: var(--accent-ink); }
.sem-card { padding: 12px 14px; }
.sem-card.noua { border-color: #F0DDAF; background: #FFFCF4; }
.sem-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sem-meci { color: var(--ink-2); margin-top: 4px; }
.sem-msg { margin: 8px 0; white-space: pre-wrap; }
.sem-card textarea { margin-bottom: 8px; }
.sem-old { margin-top: 14px; }
.sem-old summary { cursor: pointer; color: var(--ink-2); padding: 6px 0; }
.status-bar + .status-bar { margin-top: -6px; }
@media (max-width: 520px) {
  .acc-row, .pin-lot { flex-direction: column; align-items: stretch; }
  .acc-act .btn, .pin-lot .btn { width: 100%; justify-content: center; }
}

/* ---------- Goluri și cartonașe (pictograme discrete) ---------- */
.evi { display: inline-block; flex: none; vertical-align: -2px; color: var(--ink); }
.evi.ball { width: 13px; height: 13px; }
.cd.y, .cd.r { width: 9px; height: 12px; margin: 0; flex: none; vertical-align: -1px; border-radius: 2px; }
.cd.y { background: #F2C318; } .cd.r { background: #D93025; }
.cd2 { position: relative; display: inline-block; width: 13px; height: 14px; flex: none; vertical-align: -2px; }
.cd2 .cd { position: absolute; } .cd2 .y { left: 0; top: 0; } .cd2 .r { left: 4px; top: 2px; box-shadow: -1px 0 0 var(--surface); }
.evi-red { display: inline-flex; gap: 2px; margin-left: 2px; }
.evi-min { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink-2); font-size: 12px; }
.evi-sum { display: flex; flex-wrap: wrap; gap: 3px 10px; font-size: 12px; color: var(--ink-3); margin: -1px 0 5px 39px; line-height: 1.5; }
.evi-sum > span { display: inline-flex; align-items: center; gap: 4px; }
.evi-sum small { color: var(--ink-3); }
.line.mine + .evi-sum, .line + .evi-sum { min-width: 0; }
.tl { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 6px 8px 10px; }
.tl-sep { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 10px 0 4px; }
.tl-sep::before, .tl-sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.tl-ev { display: grid; grid-template-columns: 1fr 42px 1fr; align-items: center; min-height: 30px; font-size: 13.5px; }
.tl-m { text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 0; }
.tl-a { display: flex; align-items: center; gap: 6px; justify-content: flex-end; text-align: right; padding-right: 8px; min-width: 0; }
.tl-b { display: flex; align-items: center; gap: 6px; padding-left: 8px; min-width: 0; }
.tl-sc { font-weight: 700; color: var(--ink); }
.tl small { color: var(--ink-3); }
.evi-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; justify-content: center; font-size: 11.5px; color: var(--ink-3); margin-top: 8px; }
.evi-cards li { align-items: center; }
.evi-cnt { display: inline-flex; gap: 3px; align-items: center; }
.ev-min-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.ev-min-row label { font-size: 13.5px; color: var(--ink-2); margin-right: 2px; }
.ev-min-row .input { width: 64px; text-align: center; font-weight: 700; min-height: 40px; }
.ev-min-row .btn.on { background: var(--ink); color: #F4F3EE; border-color: var(--ink); }
.ev-row .evi-min { min-width: 26px; }

/* ---------- Lot: formular + listă compactă ---------- */
.lot-form { display: grid; gap: 8px; margin-bottom: 12px; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 3px var(--accent-soft); }
.lot-form-t { font-size: 13.5px; color: var(--ink-2); }
.lot-f1 { display: grid; grid-template-columns: 64px 1fr; gap: 8px; }
.lot-f1 .lot-nr { text-align: center; font-weight: 700; }
.lot-f1 .lot-nr.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180, 40, 40, .12); }
.lot-sex { grid-template-columns: 1fr 1fr; }
.lot-form .lot-doar, .lot-form .poz-seg, .lot-form .lot-nascut { grid-area: auto; }
.lot-form .note { margin: 0; }
.lot-f-act { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.lot-f-act #lf-save { min-width: 150px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.lot-stats { margin: 6px 0 8px; }
.lot-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.lot-table th { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 8px 6px; text-align: center; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.lot-table td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.lot-table tr:last-child td { border-bottom: 0; }
.lot-table .l { text-align: left; }
.lot-table td.nr { font-family: var(--font-title); font-weight: 700; width: 38px; }
.lot-table td.nasc { color: var(--ink-2); font-size: 13px; white-space: nowrap; width: 76px; }
.lot-table tbody tr[data-edit] { cursor: pointer; }
.lot-table tbody tr[data-edit]:hover { background: var(--surface-2); }
.lot-table tr.sel td { background: var(--accent-soft); }
.lot-table tr.warn td.nasc { color: var(--warn); font-weight: 600; }
.lt-nume { font-weight: 600; }
.lt-tag { display: inline-flex; align-items: center; justify-content: center; margin-left: 6px; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 5px; vertical-align: 1px; }
.lt-tag.f { background: #F6E3EE; color: #8C2E5E; }
.lt-tag.gdpr { background: var(--warn-soft); color: var(--warn); padding: 1px 3px; }
.lt-poz { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-weight: 700; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.lt-poz.p0 { background: #FFF3D6; border-color: #F0DDAF; color: #7A5200; }
.lt-poz.p1 { background: #E6EEF8; border-color: #CBD9EC; color: #2B4C7E; }
.lt-poz.p2 { background: var(--accent-soft); border-color: #CFE2D6; color: var(--accent-ink); }
.lt-poz.p3 { background: #FBE7E2; border-color: #F2CFC6; color: #8E2A18; }

/* ---------- Înscriere online ---------- */
.ins-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.ins-bar .btn { display: inline-flex; align-items: center; gap: 6px; }
.ins-form { padding: 16px; }
.ins-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin: 6px 0 14px; }
.ins-cat { display: grid; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; cursor: pointer; }
.ins-cat span { font-size: 12.5px; color: var(--ink-3); }
.ins-cat[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.ins-ok { text-align: center; padding: 24px 18px; }
.ins-ok h2 { font-family: var(--font-title); margin: 10px 0 6px; }
.ok-note { background: var(--accent-soft); border-color: #CFE2D6; color: var(--accent-ink); }

/* ---------- Cod QR ---------- */
.qr-box { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.qr-img { width: 132px; flex: none; }
.qr-img svg { width: 100%; height: auto; display: block; }
.qr-act { display: grid; gap: 8px; }
.qr-act .btn { display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
.pin-start { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--accent-ink); }

/* ---------- Meci scurtat / întrerupt, teren indisponibil ---------- */
.m-mentiune { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: 12.5px; color: var(--warn); font-weight: 600; }
.dur-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.chip-btn.on { background: var(--ink); border-color: var(--ink); color: #F4F3EE; }
.swap-loc .warn { color: var(--warn); }
.pin-rol { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 10px 0; background: var(--surface-2); border: 1px solid var(--line); border-top: 0; }
.pin-rol + .pin-actions { border-top: 0; }
.tile .n small { font-size: 60%; color: var(--ink-3); font-weight: 600; }

/* acordul părinților pentru datele copiilor (lot) */
.acord-box { border: 1.5px solid var(--warn, #C98A12); background: var(--warn-soft); margin-bottom: 12px; }
.acord-box .acord-t { font-weight: 700; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: #5E3D00; }
.acord-box .check span { font-size: 14px; line-height: 1.45; }
.acord-ok { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 9px 12px; margin-bottom: 12px; }
.acord-ok .ic-sm { flex: none; margin-top: 2px; }
.warn-t { color: #8A5A00; font-weight: 600; }

/* imagini de distribuit */
.st-r { display: inline-flex; align-items: center; gap: 6px; }
.img-btn { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; }
.img-prev { width: 100%; max-width: 420px; display: block; margin: 0 auto; border-radius: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }

/* înscriere online, etapa 2 */
.ins-sec { border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 14px; }
.ins-rnou { margin: 8px 0; }
.ins-rnou .poz-seg button small, #cr-body .poz-seg button small { display: block; font-weight: 400; font-size: 11px; opacity: .75; }
.ins-logo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ins-logo-prev { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2, #F4F3EE); border: 1px solid var(--line-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.ins-logo-prev img { width: 100%; height: 100%; object-fit: contain; }
.ins-logo label.btn { cursor: pointer; }
.ins-lot { margin-top: 10px; max-height: 260px; overflow: auto; }
.cr-logo { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cr-logo img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; }
.cr-lot summary { cursor: pointer; }
.cr-lot div { margin-top: 4px; color: var(--muted); }

/* lovituri de departajare, lovitură cu lovitură */
.pt-board { display: grid; gap: 6px; margin: 6px 0 8px; }
.pt-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); }
.pt-row.win { border-color: var(--accent); background: var(--accent-soft); }
.pt-n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-dots { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pt-d { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; }
.pt-d.ok { background: #1E8E4E; border-color: #1E8E4E; }
.pt-d.no { background: #D93025; border-color: #D93025; }
.pt-s { font-family: var(--font-title); font-size: 18px; text-align: right; }
.pt-next { font-size: 14px; margin: 6px 0; }
.pt-decis { margin: 6px 0 0; }
.pt-det { margin-top: 8px; }
.pt-det summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }
.tl .pt-board { margin: 6px 0 10px; }
.stepper button:disabled, .stepper input:disabled { opacity: .45; }

/* ================= Mod TV (ecran mare, 16:9) ================= */
body.tv-mode { background: #0B3324; overflow: hidden; }
body.tv-mode .sus, body.tv-mode #footer, body.tv-mode .demo-banner, body.tv-mode .bottomnav { display: none !important; }
body.tv-mode .app { max-width: none; padding: 0; margin: 0; }
.tv { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; color: #fff; font-size: clamp(14px, 1.45vw, 30px);
  background: radial-gradient(ellipse at 20% 0%, #1A6A47 0%, #0E3B28 55%, #0A2E20 100%); cursor: default; user-select: none; }
.tv-top { display: flex; align-items: center; gap: 1.2em; padding: .9em 2em; border-bottom: 1px solid rgba(255,255,255,.12); }
.tv-brand { font-family: var(--font-title); font-weight: 700; color: #E2B657; }
.tv-titlu { flex: 1; font-family: var(--font-title); font-weight: 600; font-size: 1.15em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-ceas { font-family: var(--font-title); font-weight: 700; font-size: 1.3em; display: flex; align-items: center; gap: .5em; font-variant-numeric: tabular-nums; }
.tv .live-dot.off { background: rgba(255,255,255,.35); box-shadow: none; animation: none; }
.tv-slide { padding: 1.4em 2em; overflow: hidden; }
.tv-slide.anim { animation: tvIn .5s ease; }
@keyframes tvIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tv-h { font-family: var(--font-title); font-size: 1.7em; margin: 0 0 .8em; display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; }
.tv-h small { font-size: .55em; font-weight: 500; color: rgba(255,255,255,.65); }
.tv-h .ic { width: 1em; height: 1em; color: #E2B657; }
.tv-cols { display: grid; gap: 1.2em; }
.tv-cols.n1 { grid-template-columns: minmax(0, 900px); justify-content: center; } .tv-cols.n2 { grid-template-columns: repeat(2, 1fr); }
.tv-cols.n3 { grid-template-columns: repeat(3, 1fr); } .tv-cols.n4 { grid-template-columns: repeat(4, 1fr); font-size: .85em; }
.tv-col h3 { font-family: var(--font-title); font-size: 1.1em; margin: 0 0 .6em; display: flex; align-items: center; gap: .4em; color: #E2B657; }
.tv-col h3 .ic { width: 1em; height: 1em; }
.tv-m { display: grid; grid-template-columns: 5.2em 1fr; grid-template-areas: "ora ech" "ora info"; gap: .15em .9em; padding: .7em .9em; margin-bottom: .6em;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: .7em; }
.tv-m-ora { grid-area: ora; display: flex; flex-direction: column; gap: .2em; }
.tv-m-ora b { font-family: var(--font-title); font-size: 1.3em; font-variant-numeric: tabular-nums; }
.tv-m-ora small { color: #F2A65A; font-weight: 600; }
.tv-tag { font-size: .6em; font-weight: 800; letter-spacing: .08em; padding: .2em .5em; border-radius: .4em; background: rgba(255,255,255,.18); align-self: flex-start; }
.tv-tag.live { background: #E5544B; animation: tvPuls 1.6s infinite; }
@keyframes tvPuls { 50% { opacity: .55; } }
.tv-m-ech { grid-area: ech; display: grid; gap: .25em; }
.tv-m-l { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5em; font-weight: 700; font-size: 1.05em; }
.tv-m-l span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-m-l b { font-family: var(--font-title); font-size: 1.3em; min-width: 1.2em; text-align: right; }
.tv-m-l.pierde { opacity: .55; }
.tv-m-info { grid-area: info; font-size: .72em; color: rgba(255,255,255,.65); }
.tv-av { width: 1.6em; height: 1.6em; border-radius: 50%; display: grid; place-items: center; font-size: .65em; font-weight: 800; overflow: hidden; background: rgba(255,255,255,.15); flex: none; }
.tv-av img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.tv-av-gol { background: transparent; border: 1px dashed rgba(255,255,255,.3); }
.tv-gol { color: rgba(255,255,255,.6); }
.tv-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.2em; }
.tv-tab { width: 100%; max-width: 1400px; margin: 0 auto; border-collapse: collapse; font-size: 1.15em; }
.tv-tab th { font-size: .62em; letter-spacing: .08em; color: rgba(255,255,255,.6); text-align: center; padding: .4em; }
.tv-tab td { text-align: center; padding: .55em .4em; border-top: 1px solid rgba(255,255,255,.1); font-variant-numeric: tabular-nums; }
.tv-tab .l { text-align: left; } .tv-tab td.l { display: flex; align-items: center; gap: .6em; font-weight: 700; }
.tv-tab td b { font-family: var(--font-title); font-size: 1.2em; }
.tv-tab tr.lider td { background: rgba(226,182,87,.15); } .tv-tab tr.lider td:first-child, .tv-tab tr.lider b { color: #E2B657; }
.tv-final { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; columns: 2; column-gap: 2em; }
.tv-final li { display: flex; align-items: center; gap: .7em; padding: .55em .6em; font-size: 1.25em; font-weight: 700; break-inside: avoid; border-bottom: 1px solid rgba(255,255,255,.1); }
.tv-loc { width: 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-title); background: rgba(255,255,255,.12); font-size: .85em; }
.tv-final .p1 .tv-loc { background: #E2B657; color: #0B3324; } .tv-final .p2 .tv-loc { background: #C9D1CC; color: #0B3324; } .tv-final .p3 .tv-loc { background: #C98A5A; color: #0B3324; }
.tv-qr { display: flex; align-items: center; justify-content: center; gap: 3em; height: 100%; }
.tv-qr-img { width: min(40vh, 34vw); background: #fff; padding: 1em; border-radius: 1em; }
.tv-qr-img svg { width: 100%; height: auto; display: block; }
.tv-qr h2 { font-family: var(--font-title); font-size: 2.1em; margin: 0 0 .5em; }
.tv-qr p { font-size: 1.2em; max-width: 26em; color: rgba(255,255,255,.8); }
.tv-url { color: #E2B657 !important; font-weight: 700; }
.tv-jos { padding: .5em 2em .9em; }
.tv-puncte { display: flex; gap: .4em; justify-content: center; margin-bottom: .5em; }
.tv-puncte i { width: .5em; height: .5em; border-radius: 50%; background: rgba(255,255,255,.25); }
.tv-puncte i.on { background: #E2B657; }
.tv-bara { height: 3px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.tv-bara i { display: block; height: 100%; background: #E2B657; animation: tvBara linear forwards; transform-origin: left; }
@keyframes tvBara { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tv-ctl { display: flex; justify-content: flex-end; align-items: center; gap: 1em; margin-top: .4em; font-size: .7em; color: rgba(255,255,255,.65); min-height: 2em; }
.tv-btn { font: inherit; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: .5em; padding: .3em .8em; cursor: pointer; }
:fullscreen .tv-btn { opacity: .25; }
@media (max-width: 760px) { .tv-cols.n2, .tv-cols.n3, .tv-cols.n4, .tv-grid2 { grid-template-columns: 1fr; } .tv-final { columns: 1; } .tv-qr { flex-direction: column; gap: 1em; } }

/* notificări „Urmărește turneul” */
.notif-box { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); margin: 0 0 12px; }
.notif-box > .ic-sm { color: var(--accent); }
.notif-box div { display: grid; gap: 2px; font-size: 13px; }
.notif-box div strong { font-size: 14px; }
.notif-box div span { color: var(--muted); }
.notif-box.on { background: var(--accent-soft); border-color: var(--accent); }

/* arhiva turneelor și Hall of Fame */
.tabs.tabs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.arh-an { font-family: var(--font-title); font-size: 18px; margin: 18px 0 8px; }
.arh-t { padding: 16px; margin-bottom: 12px; }
.arh-t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.arh-t-head h3 { margin: 0 0 2px; font-family: var(--font-title); font-size: 16px; }
.arh-cat + .arh-cat { border-top: 1px solid var(--line-2); padding-top: 10px; margin-top: 10px; }
.arh-pod { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.arh-pod li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.arh-loc { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--line-2); }
.arh-pod .aur .arh-loc { background: #E2B657; color: #3B2A05; } .arh-pod .arg .arh-loc { background: #C9D1CC; } .arh-pod .bronz .arh-loc { background: #C98A5A; color: #fff; }
.arh-pod .aur { font-size: 16px; }
.arh-gol { margin: 8px 0 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.arh-club { display: flex; align-items: center; gap: 8px; }
.arh-club span { display: grid; } .arh-club small { color: var(--muted); font-size: 11px; font-weight: 400; }
.arh-hof td { vertical-align: middle; }

/* comutatorul de limbă RO / EN (pagini publice, Mod TV) */
.lang-sw { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; overflow: hidden; }
.lang-sw button { font: inherit; font-size: 12px; font-weight: 700; letter-spacing: .04em; padding: 4px 10px; background: transparent; color: inherit; border: 0; cursor: pointer; opacity: .7; }
.lang-sw button[aria-pressed="true"] { background: rgba(255,255,255,.22); opacity: 1; }
.pub-head { position: relative; }
.pub-lang { position: absolute; top: 14px; right: 14px; color: #fff; z-index: 2; }
.pub-head h1 { padding-right: 84px; }
.tv-lang { font-size: .7em; }
.notif-tip { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; border-top: 1px solid var(--line-2); padding-top: 8px; margin-top: 2px; }
.notif-tip .check { min-height: 0; font-size: 13px; margin: 0; }
@media (max-width: 360px) { .notif-tip { grid-template-columns: 1fr; } }
.lang-sw.pin-lang { color: var(--ink); border-color: var(--line-2); }
.lang-sw.pin-lang button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }

/* anunțul pe ecran: bandă fixă sus, sub bara aplicației (organizator pe turneu, admin general) */
.anunturi { display: grid; }
.anunturi[hidden] { display: none; }
.anunt { display: flex; align-items: flex-start; gap: 10px; padding: 9px 16px; background: #E8F1FB; color: #123A5E; border-bottom: 1px solid #C9DCF0; font-size: 14px; line-height: 1.35; }
.anunt-imp { background: var(--warn-soft); color: #5A3B00; border-bottom-color: #EBD3A0; }
.anunt-ic { flex: 0 0 auto; margin-top: 1px; }
.anunt-txt { flex: 1; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; cursor: pointer; }
.anunt-txt.deschis { display: block; -webkit-line-clamp: unset; max-height: 40vh; overflow: auto; }
.anunt-cine { font-weight: 700; }
.anunt-edit { flex: 0 0 auto; font: inherit; font-size: 13px; font-weight: 700; color: inherit; background: rgba(255,255,255,.55); border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.anunt-prev .anunt { border: 1px solid #C9DCF0; border-radius: var(--radius-sm); }
.anunt-prev .anunt-imp { border-color: #EBD3A0; }
@media (min-width: 900px) { .anunt { padding-left: max(16px, calc((100vw - 1100px) / 2)); padding-right: max(16px, calc((100vw - 1100px) / 2)); } }
.tv-anunt { display: flex; align-items: center; gap: .6em; padding: .45em 1.2em; background: #E8F1FB; color: #123A5E; font-weight: 600; font-size: 1.15em; line-height: 1.3; }
.tv-anunt.imp { background: #F6C445; color: #2B1D00; }
.tv-anunt .ic { width: 1.1em; height: 1.1em; }
.tv.cu-anunt { grid-template-rows: auto auto 1fr auto; }
.tv.cu-anunt:has(.tv-anunt + .tv-anunt) { grid-template-rows: auto auto auto 1fr auto; }
.anunt-txt a { color: inherit; font-weight: 700; text-decoration: underline; word-break: break-all; }
.ist-box { margin-top: 12px; }
.ist-box summary { cursor: pointer; font-size: 13px; }
.ist-list { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13.5px; display: grid; gap: 6px; }
.ist-la { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.t-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; background: #fff; padding: 3px; vertical-align: middle; margin-right: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.tv-logo { height: 1.6em; width: 1.6em; object-fit: contain; vertical-align: middle; margin-right: .45em; background: #fff; border-radius: .3em; padding: .08em; }
.logo-prev { display: grid; place-items: center; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 120px; }
.logo-prev-img { width: 120px; height: 120px; object-fit: contain; }
.reg summary { cursor: pointer; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.reg[open] summary { margin-bottom: 8px; }
.reg-sec { margin-top: 10px; }
.reg-t { font-weight: 700; font-size: 13.5px; margin-bottom: 4px; }
.reg-l { margin: 0; padding-left: 20px; font-size: 13.5px; line-height: 1.45; display: grid; gap: 3px; }
.reg-cat + .reg-cat { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.reg-cat h3 { margin: 0 0 4px; font-size: 16px; }
.pin-share { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.warn-note { background: var(--warn-soft); color: #5A3B00; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 10px; }
.prog-vedere { display: inline-flex; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); padding: 3px; }
.prog-vedere button { font: inherit; font-size: 13.5px; font-weight: 600; border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); cursor: pointer; }
.prog-vedere button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.pt-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scroll-snap-type: x proximity; }
.pt-col { display: grid; gap: 6px; align-content: start; scroll-snap-align: start; }
.pt-head { position: sticky; top: 0; background: var(--bg); padding: 4px 2px 6px; display: grid; gap: 2px; border-bottom: 2px solid var(--accent); }
.pt-m { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13.5px; }
.pt-m.clickable { cursor: pointer; }
.pt-m.played { background: var(--surface-2); }
.pt-m.lvl-red { border-color: var(--danger); } .pt-m.lvl-orange { border-color: #D97706; } .pt-m.lvl-yellow { border-color: #E3B341; }
.pt-ora { font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-ech { margin: 2px 0; }
@media (max-width: 520px) { .pt-grid { grid-template-columns: repeat(var(--n), 78vw); } }
@media (max-width: 520px) { .pin-share { flex-direction: column; align-items: stretch; } .pin-share .btn { justify-content: center; } }
.pill-final { background: var(--gold-soft); color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .06em; vertical-align: middle; margin-left: 6px; display: inline-flex; align-items: center; gap: 3px; }
.cat-head { flex-wrap: wrap; gap: 8px; }
.cat-fin-hint { align-self: center; }
.m-mentiune.m-cont { color: #8A5A00; background: var(--warn-soft); }
.final-loc { width: auto; min-width: 28px; padding: 0 5px; white-space: nowrap; }
.ip-list { display: grid; gap: 6px; margin-top: 8px; max-height: 40vh; overflow: auto; }
.ip-row { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ip-row.bad { border-color: #EBD3A0; background: var(--warn-soft); }
.stats { display: grid; gap: 6px; }
.stat { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--line); padding: 5px 0; }
.stat:last-child { border-bottom: 0; }
.stat-k { color: var(--ink-2); }
.stat-v { text-align: right; font-weight: 600; }

/* culoarea echipamentului */
.avatar.av-trc { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4.5px var(--trc), 0 0 0 5.5px rgba(0,0,0,.18); }
.trc { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--trc); box-shadow: inset 0 0 0 1px rgba(0,0,0,.28); vertical-align: -1px; margin: 0 4px; }
.trc-alege { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.trc-alege button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--trc, transparent); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); cursor: pointer; position: relative; }
.trc-alege button.fara { background: var(--surface); color: var(--ink); font-size: 16px; line-height: 1; }
.trc-alege button[aria-checked="true"] { outline: 3px solid var(--accent); outline-offset: 2px; }
/* arhiva: turneele care urmează */
.arh-sec { font-family: var(--font-title); font-size: 20px; margin: 16px 0 10px; }
.arh-viit { display: block; color: inherit; text-decoration: none; }
.arh-viit-h { display: flex; align-items: center; gap: 12px; }
.arh-viit-t { flex: 1; min-width: 0; }
.arh-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: contain; flex: none; background: var(--surface); }
.arh-logo-ic { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.arh-viit-e { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.arh-viit-e .muted { display: inline-flex; gap: 5px; align-items: center; }
.arh-sigle { display: flex; }
.arh-sigle img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); margin-left: -6px; background: #fff; }
.pill.pill-live { background: var(--accent); color: #fff; }
/* instalarea pe ecranul telefonului */
.inst-loc:empty { display: none; }
.inst { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 10px 10px 12px; margin: 12px 0; position: relative; }
.inst-ic img { display: block; width: 40px; height: 40px; border-radius: 10px; }
.inst-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.35; }
.inst-t span { color: var(--ink); opacity: .7; font-size: 12px; }
.inst .btn { flex: none; }
.inst-x { flex: none; border: 0; background: none; font-size: 22px; line-height: 1; padding: 4px 6px; color: var(--ink); opacity: .55; cursor: pointer; }
.inst-pasi { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.inst-share { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 6px; font-size: 12px; vertical-align: -4px; }
@media (max-width: 360px) { .inst-t span { display: none; } }
/* logo-ul clubului în fișa echipei */
.cl-cauta { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-logo-are { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.cl-logo-are img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); flex: none; }
.ins-logo { display: flex; gap: 6px; align-items: flex-start; margin: 0 0 12px; }
/* paginile ArenaSmart pe rețele */
.f-social { margin: 0 0 8px; }
.retele-loc:empty { display: none; }
.pub-social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 16px 0 0; padding: 12px; border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; }
.pub-social-l { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.pub-social-l a { font-weight: 600; color: var(--accent-ink); background: var(--surface); padding: 4px 10px; border-radius: 999px; text-decoration: none; border: 1px solid var(--line); }
.f-slogan { font-weight: 600; margin: 0 0 6px; }
.login-slogan { font-family: var(--font-title); font-size: 15px; color: var(--accent); margin: -4px 0 14px; }
.login-slogan:empty { display: none; }
/* recenzii */
.stele { display: flex; gap: 4px; }
.stele button { border: 0; background: none; font-size: 30px; line-height: 1; color: #D6D3C8; cursor: pointer; padding: 2px; }
.stele button.on { color: #C29A3B; }
.rc-card { margin-bottom: 10px; }
.rc-card.respinsa { opacity: .65; }
.rc-sus { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rc-note { color: #C29A3B; letter-spacing: 1px; margin-left: auto; }
.rc-text { margin: 8px 0; font-style: italic; }
.rc-jos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-act { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.rc-citat { margin: 0; padding: 12px 14px; border-left: 3px solid #C29A3B; background: var(--bg); border-radius: 8px; font-style: italic; }
.rc-citat footer { font-style: normal; font-size: 13px; color: var(--ink); opacity: .7; margin-top: 6px; }
/* importul echipelor */
.ie-lista { display: grid; gap: 6px; max-height: 46vh; overflow: auto; }
.ie-rand { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.ie-stare { text-align: right; color: var(--accent); max-width: 52%; }
.ie-atentie .ie-stare { color: var(--warn); }
.ie-atentie { background: var(--warn-soft); }
.ie-dublura, .ie-inscrisa, .ie-gresit { opacity: .55; }
.ie-dublura .ie-stare, .ie-inscrisa .ie-stare, .ie-gresit .ie-stare { color: var(--ink); }
/* distincțiile categoriei */
.dist-rand { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.dist-rand:first-of-type { border-top: 0; }
.dist-t { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.dist-v { grid-column: 1; font-size: 14px; }
.dist-rand .btn { grid-column: 2; grid-row: 1 / span 2; }
.ds-lot { display: flex; flex-wrap: wrap; gap: 6px; }
.ds-lot .chip-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; color: var(--ink); }
.ds-lot .chip-btn[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Galeriile: notele arbitrului și cartonașul negru */
.cd.blk { background: #1d211e; }
.gal-box { margin-top: 12px; }
.gal-rand { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n n" "s b"; align-items: center; gap: 2px 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.gal-rand .score-team { grid-area: n; text-align: left; font-weight: 600; }
.gal-rand .stele, .gal-rand .gal-cn { grid-area: s; }
.gal-rand .btn { grid-area: b; white-space: nowrap; }
.gal-rand .btn .cd { width: 9px; height: 12px; vertical-align: -1px; }
.gal-negru .gal-cn { font-weight: 700; display: inline-flex; align-items: center; }
.stele-sm button { font-size: 26px; padding: 1px 2px; }

/* Ghidul turneului: bara cu cei 8 pași (în capul turneului), cardul „Pasul următor”, lista „Ce mai ai de făcut” */
.ghid-bara { position: relative; display: flex; justify-content: space-between; width: 100%; margin-top: 16px; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; }
.gp-linie { position: absolute; left: 16px; right: 16px; top: 15px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .18); }
.gp-umplut { display: block; height: 100%; border-radius: 2px; background: #2C9A68; }
.gp { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: 34px; }
.gp-b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--font-title); border: 2px solid rgba(255, 255, 255, .3); color: #AEBDB4; background: #12261B; }
.gp-b .ic-sm { width: 15px; height: 15px; }
.gp-e { margin-top: 5px; font-size: 10px; font-weight: 600; color: #AEBDB4; white-space: nowrap; }
.gp-facut .gp-b { background: #2C9A68; border-color: #2C9A68; color: #fff; }
.gp-atentie .gp-b { background: #3A2A0A; border-color: #E59A2B; color: #F5C46B; }
.gp-atentie .gp-e { color: #F5C46B; }
.gp-curent .gp-b { background: #C29A3B; border-color: #C29A3B; color: #fff; box-shadow: 0 0 0 5px rgba(194, 154, 59, .28); }
.gp-curent .gp-e { color: #fff; font-weight: 700; }
@media (max-width: 370px) { .gp-e { font-size: 9px; } .gp-b { width: 28px; height: 28px; font-size: 12px; } .gp-linie { top: 13px; } }
.ghid { margin-top: 14px; }
.ghid-card { background: linear-gradient(180deg, #FFFCF3, var(--surface)); border: 1.5px solid #C29A3B; border-radius: var(--radius); padding: 14px; box-shadow: var(--sh-1); }
.ghid-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.ghid-card h3 { font-family: var(--font-title); font-size: 18px; margin: 4px 0 0; letter-spacing: -.01em; }
.ghid-card p { margin: 6px 0 12px; color: var(--ink-2); font-size: 14px; }
.ghid-act { display: flex; flex-wrap: wrap; gap: 8px; }
.ghid-act .btn { flex: 1 1 auto; justify-content: center; }
.ghid-lt { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 2px 2px; font-family: var(--font-title); font-weight: 600; font-size: 15px; }
.gr { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; background: var(--surface); border-radius: 12px; padding: 10px 12px; margin-top: 8px; box-shadow: var(--sh-1); }
.gr-d { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.gr-rosu .gr-d { background: var(--danger); } .gr-port .gr-d { background: #D9822B; } .gr-galben .gr-d { background: #E0B400; } .gr-info .gr-d { background: var(--accent-2); }
.gr-t b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.gr-t small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 1px; line-height: 1.35; }
.gr-go { font: 600 13px var(--font); color: var(--accent); background: var(--accent-soft); border: 0; border-radius: 9px; padding: 7px 10px; white-space: nowrap; text-decoration: none; cursor: pointer; }
.ghid-jos { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.ghid-mic { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.gg { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; margin: 16px 0 2px; }
.gg-b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 700 11px var(--font-title); color: var(--ink-3); border: 2px solid var(--line-2); background: var(--surface); }
.gg-b .ic-sm { width: 13px; height: 13px; }
.gg-t { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.gg-s { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.gg-facut .gg-b { background: var(--accent-2); border-color: var(--accent-2); color: #fff; } .gg-facut .gg-s { color: var(--accent); }
.gg-atentie .gg-b { background: #D9822B; border-color: #D9822B; color: #fff; } .gg-atentie .gg-s { color: #B5650F; }
.gg-curent .gg-b { background: #C29A3B; border-color: #C29A3B; color: #fff; } .gg-curent .gg-s { color: var(--gold); }

/* Importul din fișier sau link (echipe, program, lot) */
.if-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.if-file { cursor: pointer; }
.if-link { display: flex; gap: 8px; margin-top: 8px; }
.if-link .input { flex: 1; min-width: 0; }
.if-msg .btn { margin: 4px 4px 0 0; }

/* Cererile de restricții (antrenor / arbitru → organizator) */
.cr-pin { margin-top: 12px; }
.cr-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.cr-rand { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cr-rand > span:first-child { flex: 1 1 180px; }
.cr-rasp { margin: 2px 0 6px; }
.cr-card { padding: 12px 14px; margin-bottom: 10px; }
.cr-cine { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cr-ce { margin: 6px 0 4px; font-weight: 600; }
.cr-supra { margin: 6px 0 0; font-size: 13px; }

/* Filtrul pe o echipă (atingi numele în program) */
.nm-f { cursor: pointer; text-decoration: underline dotted transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.nm-f:hover, .nm-f:focus-visible { text-decoration-color: currentColor; outline: none; }
.filtru-ech { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; }
.filtru-ech span { flex: 1 1 180px; }
.pub-filter-hint { margin: 4px 2px 8px; }
.av-f { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; line-height: 0; }
.av-f:hover { transform: scale(1.08); } .av-f { transition: transform .12s; } .av-f:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#cr-body .poz-seg button, #crd-body .poz-seg button { line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }

/* Manualul: butonul „?” al ecranului și fereastra de ajutor */
.aj-fab { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); font: 700 17px var(--font-title); cursor: pointer; padding: 0; }
.aj-fab:hover { background: var(--accent-soft); }
.topbar-user { margin-left: auto; }
body.tv-mode .aj-fab { display: none; }
.aj-btn { font: 700 17px var(--font-title); color: var(--accent); margin-left: auto; }
.sheet-head .aj-btn + [data-close] { margin-left: 0; }
dialog.ajutor { z-index: 60; }
.aj-k { display: inline-block; font: 700 11px var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-right: 6px; vertical-align: middle; }
.aj-body h2 { font-size: 18px; margin: 4px 0 8px; } .aj-body h3 { font-size: 15px; margin: 16px 0 6px; color: var(--accent); } .aj-body h4 { font-size: 14px; margin: 12px 0 4px; }
.aj-body p, .aj-body li { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.aj-body ul, .aj-body ol { padding-left: 20px; margin: 4px 0 8px; }
.aj-body code { font-size: 13px; background: var(--surface-2); padding: 1px 4px; border-radius: 4px; }
.aj-gen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.aj-gen a { font-size: 13.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); border-radius: 9px; padding: 6px 10px; text-decoration: none; }
