/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens — dark theme ── */
:root {
  --bg:        #0d0d12;
  --bg-card:   #16161f;
  --bg-deep:   #080808;
  --border:    #1f1f2e;
  --border-2:  #2a2a3a;
  --text:      #e8e8f0;
  --text-muted:#8080a0;
  --text-dim:  #454558;
  --accent:    #f5c400;
  --accent-2:  #d4a800;
  --teal:      #0d9488;
  --green:     #22c55e;
  --amber:     #f59e0b;
  --red:       #dc2626;
  --radius:    12px;
  --shadow:    0 1px 6px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,13,18,0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 13px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.nav-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: #9a8660;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* ── Intro strip ── */
.intro-strip {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.intro-strip-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.intro-strip-note {
  font-size: 0.76rem;
  color: var(--text-dim);
}

/* ── Dashboard section ── */
.section-top {
  padding: 10px 0 36px;
  border-bottom: 1px solid var(--border);
}

/* ── Tickets section head — tagline + heading act as one block ── */
.tickets-head {
  margin-top: 36px;
  margin-bottom: 14px;
}
.tickets-tagline {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 3px;
}
.tickets-head .dash-heading {
  margin-bottom: 8px;
}
.tickets-draw-info {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-2);
  letter-spacing: 0.01em;
  background: #1c1400;
  border: 1px solid #4a3000;
  border-radius: 20px;
  padding: 3px 12px;
  display: inline-block;
  margin-bottom: 0;
}

/* ── Dashboard block headings ── */
.dash-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.dash-heading {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}
.dash-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  max-width: 100%;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* ── Výherní čísla — dark card ── */
.draw-card {
  background: linear-gradient(135deg, #0f1a14 0%, #122018 100%);
  border-radius: 14px;
  border: 1px solid #1a3a24;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(22,163,74,0.12);
  position: relative;
  overflow: hidden;
  margin-bottom: 8px;
}
.draw-card::before {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,197,94,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.draw-card-meta {
  display: flex;
  flex-direction: column;
  min-width: 130px;
  flex-shrink: 0;
}
.draw-card-section {
  font-size: 0.7rem;
  font-weight: 800;
  color: #4ade80;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 3px;
}
.draw-card-when {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e0e0e8;
  letter-spacing: -0.01em;
  display: block;
}
.draw-card-date { display: none; }  /* merged into draw-card-when */
.draw-card-tah  { display: none; }  /* merged into draw-card-when */
.draw-card-balls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;  /* always one row — no grid-like wrapping */
  flex: 1;
}
.ball-sep {
  color: #4a4a60;
  font-size: 1rem;
  margin: 0 2px;
  font-weight: 700;
}

/* ── Number balls — default: gold (navrhované tikety) ── */
.number-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #1a1200;
  font-weight: 900;
  font-size: 0.9rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(213,164,0,0.35);
  letter-spacing: -0.02em;
}
/* Bonus ball — outlined yellow */
.number-ball-bonus {
  background: transparent;
  border: 2.5px solid var(--accent);
  color: var(--accent);
  box-shadow: none;
}
/* Matched numbers — výrazná zelená */
.number-ball.number-ball-matched {
  background: #16a34a;
  border: 2px solid #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25), 0 2px 8px rgba(34,197,94,0.35);
  color: #fff;
}
/* ── Draw card balls — zelené (skutečně vylosovaná čísla) ── */
.draw-card-balls .number-ball {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,163,74,0.45);
}
.draw-card-balls .number-ball-bonus {
  background: transparent;
  border: 2.5px solid #22c55e;
  color: #22c55e;
  box-shadow: 0 0 8px rgba(34,197,94,0.2);
}

/* ── Next draw info card ── */
.next-draw-info {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.next-draw-label {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.next-draw-label span {
  color: var(--accent);
}
.next-draw-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #2a2000;
  border: 1px solid #5a4200;
  padding: 4px 12px;
  border-radius: 20px;
}

/* ── Strategy legend ── */
.strategy-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: flex-start;  /* prevent equal-height stretching across pills */
}
.strategy-pill {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #111120;
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 8px 12px;
  flex: 1 1 180px;
}
.strategy-pill-name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  margin-bottom: 1px;
}
.strategy-pill-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.4;
}
/* ── Strategy color variants ──
   Vyvážený výběr = amber  #f59e0b
   Proti davu     = purple #a855f7
   Širší pokrytí  = cyan   #22d3ee
*/
.strategy-pill-balanced { background: #1c1400; border-color: #6b4200; }
.strategy-pill-balanced .strategy-pill-name { color: #f59e0b; }
.strategy-pill-anti     { background: #180a2a; border-color: #5b2d8a; }
.strategy-pill-anti .strategy-pill-name     { color: #c084fc; }
.strategy-pill-coverage { background: #001a22; border-color: #0e5a70; }
.strategy-pill-coverage .strategy-pill-name { color: #22d3ee; }

/* Ticket card left-border accent by strategy */
.ticket-card-balanced {
  border-left: 3px solid #f59e0b;
  border-top-color: var(--border-2);
}
.ticket-card-anti {
  border-left: 3px solid #a855f7;
  border-top-color: var(--border-2);
}
.ticket-card-coverage {
  border-left: 3px solid #22d3ee;
  border-top-color: var(--border-2);
}

/* Ticket strategy label colors — must override base .ticket-strategy color */
.ticket-strategy.ticket-strategy-balanced,
.ticket-strategy-balanced { color: #f59e0b !important; }
.ticket-strategy.ticket-strategy-anti,
.ticket-strategy-anti     { color: #c084fc !important; }
.ticket-strategy.ticket-strategy-coverage,
.ticket-strategy-coverage { color: #22d3ee !important; }

/* ── Ticket cards ── */
.ticket-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ticket-card {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ticket-card:hover {
  border-color: var(--accent);
  box-shadow: 0 3px 16px rgba(245,196,0,0.15);
}
.ticket-card-header {
  margin-bottom: 9px;
  overflow: hidden;
}
.ticket-lineno {
  font-weight: 900;
  color: var(--text);
  font-size: 0.8rem;
  display: inline;
}
.ticket-sep {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: inline;
}
.ticket-strategy {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-2);
  display: inline;
  margin-top: 0;
}
.ticket-matched {
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
}
.ticket-matched strong { color: var(--green); }
/* Eval card header — Tiket X · Shody: Y on one line */
.eval-ticket-header {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.eval-ticket-header .ticket-matched {
  display: inline;
  margin-top: 0;
  margin-left: auto;
  font-size: 0.74rem;
}
.eval-sep {
  font-size: 0.78rem;
  color: var(--text-dim);
  display: inline;
  margin: 0 4px;
}
.ticket-card-balls {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  align-items: center;
}
.ticket-card-balls .number-ball {
  width: 30px;
  height: 30px;
  font-size: 0.76rem;
  flex-shrink: 0;
}
.no-match-label {
  font-size: 0.64rem;
  color: var(--text-dim);
  font-style: italic;
  margin-left: 2px;
}

/* ── Status badges ── */
.status-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.67rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.stb-pending   { background: #2a2000; color: #f5c400; border: 1px solid #5a4200; }
.stb-evaluated { background: #0a2016; color: #22c55e; border: 1px solid #145a30; }

/* ── Eval section headers ── */
.eval-group-header {
  font-size: 0.82rem;
  color: #22c55e;
  margin-bottom: 12px;
  padding: 8px 14px;
  background: #0a2016;
  border-left: 3px solid #22c55e;
  border-radius: 0 6px 6px 0;
}
.eval-group-header strong { color: #4ade80; }
.eval-best-match {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  display: inline-block;
}
.eval-best-match .best-match-value {
  font-weight: 900;
  color: var(--accent-2);
  font-size: 0.95rem;
}

/* ── Subsection meta line ── */
.subsection-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Stats row ── */
.stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.stat-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  flex: 1 1 110px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.stat-pill-value {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  line-height: 1;
}
.stat-pill-label {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
}

/* ── Section wrapper ── */
.section {
  padding: 60px 0 52px;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.section h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.section-intro {
  font-size: 0.96rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ── Feature grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 3px 12px rgba(245,196,0,0.1);
}
.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
  display: block;
}
.feature-card h3,
.feature-card .card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Step list ── */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 0.8rem;
  color: #1a1200;
}
.step-item h3 {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}
.step-item p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Responsible section ── */
.responsible-box {
  background: #0a2016;
  border: 1px solid #145a30;
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 22px 26px;
  max-width: 760px;
}
.responsible-box h3,
.responsible-box .card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #4ade80;
  margin-bottom: 8px;
}
.responsible-box p {
  font-size: 0.88rem;
  color: #86efac;
  line-height: 1.7;
}
.responsible-box ul {
  margin: 10px 0 0 18px;
  font-size: 0.86rem;
  color: #86efac;
}
.responsible-box li { margin-bottom: 5px; }

/* ── Coming soon ── */
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.coming-card {
  background: var(--bg-card);
  border: 1px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 15px 17px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.coming-card-icon { font-size: 1.2rem; flex-shrink: 0; }
.coming-card-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}
.coming-badge {
  display: inline-block;
  background: #2a2000;
  border: 1px solid #5a4200;
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.62rem;
  font-weight: 800;
  color: #f5c400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 5px;
  vertical-align: middle;
}

/* ── Footer — kept dark for contrast ── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid #2a2a34;
  padding: 32px 0;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-logo {
  font-size: 0.96rem;
  font-weight: 800;
  color: #888898;
  letter-spacing: -0.02em;
}
.footer-note {
  font-size: 0.76rem;
  color: #484858;
  max-width: 520px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  gap: 20px;
  margin-top: 4px;
}
.footer-links a {
  font-size: 0.76rem;
  color: #484858;
  font-weight: 600;
}
.footer-links a:hover { color: #888898; }

/* ── Highlight text ── */
.hl-blue   { color: #1d4ed8; }
.hl-teal   { color: #0d9488; }
.hl-green  { color: #16a34a; }
.hl-amber  { color: #d97706; }
.hl-purple { color: #7c3aed; }
.hl-gold   { color: var(--accent-2); }

/* ── Data sections ── */
.section-data {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

/* ── Small balls (used in draw history) ── */
.sm-ball {
  width: 24px !important;
  height: 24px !important;
  font-size: 0.64rem !important;
}

/* ── Draw history ── */
.draw-history { display: flex; flex-direction: column; gap: 5px; }
.draw-history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 9px 14px;
  flex-wrap: nowrap;
}
.draw-history-meta { min-width: 115px; flex-shrink: 0; }
.draw-history-date { font-size: 0.8rem; font-weight: 800; color: var(--text); display: block; }
.draw-history-tah  { font-size: 0.68rem; color: var(--text-dim); display: block; margin-top: 1px; }
.draw-history-balls {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  flex: 1;
}
/* History draws are also real drawn numbers → green */
.draw-history-balls .number-ball {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 1px 4px rgba(22,163,74,0.35);
}
.draw-history-balls .number-ball-bonus {
  background: transparent;
  border: 2px solid #22c55e;
  color: #22c55e;
  box-shadow: none;
}

/* ── Coverage ── */
.coverage-stats { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.coverage-stat {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  flex: 1 1 100px;
}
.coverage-stat-value {
  font-size: 1.35rem; font-weight: 900; color: var(--accent);
  letter-spacing: -0.03em; line-height: 1;
}
.coverage-stat-label {
  font-size: 0.64rem; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px;
}
.coverage-number-grid { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.cov-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.62rem; font-weight: 800; flex-shrink: 0;
}
.cov-0 { background: #111120; color: #2a2a40; }
.cov-1 { background: rgba(245,196,0,0.18); color: var(--accent); border: 1px solid rgba(245,196,0,0.35); }
.cov-2 { background: rgba(245,196,0,0.5); color: #1a1200; }
.cov-3 { background: var(--accent); color: #1a1200; box-shadow: 0 0 6px rgba(245,196,0,0.4); }
.coverage-legend {
  display: flex; gap: 20px; font-size: 0.76rem; color: var(--text-muted);
  flex-wrap: wrap; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 12px;
}
.coverage-legend-item { display: flex; align-items: center; gap: 6px; font-weight: 600; }

/* ── Frequency ── */
.freq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.freq-group {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.freq-group-title {
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px;
}
.freq-group-title-top { color: #f97316; }
.freq-group-title-bot { color: #38bdf8; }
.freq-list { display: flex; flex-direction: column; gap: 5px; }
.freq-item { display: flex; align-items: center; gap: 8px; }
.freq-count {
  font-size: 0.68rem; color: var(--text-muted);
  margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums;
}
/* Hot numbers — orange glow */
.freq-ball-hot {
  width: 28px !important; height: 28px !important; font-size: 0.7rem !important;
  background: #c2410c !important;
  color: #fff !important;
  box-shadow: 0 0 8px rgba(249,115,22,0.5) !important;
}
/* Cold numbers — ice blue */
.freq-ball-cold {
  width: 28px !important; height: 28px !important; font-size: 0.7rem !important;
  background: #0c2a3e !important;
  color: #38bdf8 !important;
  border: 1px solid #1e6a9a !important;
  box-shadow: 0 0 6px rgba(56,189,248,0.25) !important;
}

/* ── Distribution rows ── */
.dist-intro { font-size: 0.84rem; color: var(--text-muted); margin-bottom: 14px; max-width: 700px; }
.dist-rows { display: flex; flex-direction: column; gap: 6px; }
.dist-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: 8px; padding: 9px 16px;
}
.dist-label { font-size: 0.8rem; font-weight: 800; color: var(--text); min-width: 64px; flex-shrink: 0; }
.dist-bar-wrap { flex: 1; height: 6px; background: #1a1a2e; border-radius: 3px; overflow: hidden; }
.dist-bar { height: 100%; border-radius: 3px; background: var(--accent); }
.dist-pct { font-size: 0.76rem; font-weight: 700; color: var(--accent); min-width: 48px; text-align: right; flex-shrink: 0; }
.dist-count { font-size: 0.68rem; color: var(--text-dim); min-width: 55px; text-align: right; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   HERO SEKCE — landing page top
   ══════════════════════════════════════════════════════════ */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  gap: 48px;
  align-items: center;
  margin-top: 28px;
  margin-bottom: 34px;
}
.hero-copy {
  min-width: 0;
}

/* ── Hero headline ── */
.hero-title {
  font-size: clamp(3.6rem, 5.4vw, 6.2rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.055em;
  color: #f7f7ff;
  margin: 0 0 14px;
  max-width: 760px;
  text-shadow: 0 3px 22px rgba(0,0,0,0.35);
}
.hero-title-accent {
  color: #ffd400;
  text-shadow:
    0 0 18px rgba(255,212,0,0.45),
    0 4px 18px rgba(0,0,0,0.35);
}

/* ── Hero subtitle ── */
.hero-subtitle-accent {
  color: #ffd400;
  text-shadow: 0 0 10px rgba(255, 212, 0, 0.25);
}
.hero-subtitle {
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.12;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 18px;
  letter-spacing: -0.035em;
}

/* ── Date badge ── */
.hero-date-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #ffd400;
  background: rgba(255,196,0,0.10);
  border: 1px solid rgba(255,196,0,0.55);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 22px;
}

/* ── Lead text ── */
.hero-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #c9c9dc;
  max-width: 660px;
  margin: 0 0 18px;
}

/* ── Warning / notice ── */
.hero-warning {
  display: inline-block;
  color: #ffd86a;
  background: rgba(255,216,0,0.08);
  border-left: 3px solid #ffd400;
  border-radius: 0 8px 8px 0;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 800;
}

/* ── Strategy cards — stacked vertically in right column ── */
.hero-strategies {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.strategy-card {
  border-radius: 18px;
  padding: 18px 18px 16px;
  min-height: 118px;
  background: rgba(20,24,40,0.72);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 40px rgba(0,0,0,0.22);
}
.strategy-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 900;
}
.strategy-card p {
  margin: 0;
  color: #d2d2e4;
  line-height: 1.55;
  font-size: 0.88rem;
}
.strategy-icon {
  font-size: 1.9rem;
  margin-bottom: 10px;
}
.strategy-card-balanced {
  border-color: rgba(255,196,0,0.70);
  background: linear-gradient(135deg, rgba(255,196,0,0.13), rgba(20,24,40,0.72));
}
.strategy-card-balanced h3,
.strategy-card-balanced .strategy-icon { color: #ffd400; }
.strategy-card-anti {
  border-color: rgba(184,90,255,0.75);
  background: linear-gradient(135deg, rgba(130,35,255,0.18), rgba(20,24,40,0.72));
}
.strategy-card-anti h3,
.strategy-card-anti .strategy-icon { color: #c77dff; }
.strategy-card-coverage {
  border-color: rgba(38,220,255,0.75);
  background: linear-gradient(135deg, rgba(0,190,220,0.15), rgba(20,24,40,0.72));
}
.strategy-card-coverage h3,
.strategy-card-coverage .strategy-icon { color: #26dcff; }

/* ── Tickets — unified heading (question + answer inline) ── */
.tickets-main-heading {
  line-height: 1.25;
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
}
.tickets-question {
  color: var(--accent);
}
.tickets-heading-sub {
  color: var(--text);
  font-weight: 700;
}

/* ── Main description — larger and better contrast than default .dash-desc ── */
.dash-desc-main {
  font-size: 1.0rem;
  color: #c0c0d8;
  max-width: 680px;
  line-height: 1.72;
  margin-bottom: 10px;
}

/* ── Fair warning notice — elegant, not scary ── */
.dash-notice {
  display: inline-block;
  font-size: 0.83rem;
  color: #a89860;
  padding: 6px 14px;
  border-left: 2px solid #4a3800;
  background: #0e0c02;
  border-radius: 0 6px 6px 0;
  margin-bottom: 16px;
  line-height: 1.55;
}

/* ── Eval context note — appears between coverage and eval ── */
.eval-context-note {
  font-size: 0.86rem;
  color: #9898b8;
  padding: 10px 16px;
  margin-top: 20px;
  margin-bottom: 0;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--bg-card);
  max-width: 680px;
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — tablet a mobil
   ══════════════════════════════════════════════════════════ */

/* ── ≤900px — tablet: hero na jeden sloupec ── */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 16px;
    margin-bottom: 20px;
  }
  .hero-title    { font-size: clamp(2.45rem, 11vw, 3.3rem); }
  .hero-subtitle { font-size: 1.25rem; }
  .hero-strategies { width: 100%; }
}

/* ── ≤768px — tablet layout ── */
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  .nav-links { display: none; }
  .section { padding: 36px 0 28px; }
  .section-top { padding: 20px 0 22px; }
  .section-data { padding: 24px 0; }
  .dash-heading { font-size: 1.25rem; }
  .strategy-legend { gap: 8px; }
  .ticket-cards-grid { gap: 9px; }
}

/* ── ≤480px — mobil ── */
@media (max-width: 480px) {
  /* Layout */
  .container { padding: 0 14px; }
  .section { padding: 28px 0 20px; }
  .section-top { padding: 16px 0 18px; }
  .section-data { padding: 18px 0; }

  /* Hero */
  .hero-grid    { margin-top: 10px; margin-bottom: 14px; gap: 14px; }
  .hero-title   { font-size: 2.0rem; }
  .hero-subtitle { font-size: 1.05rem; margin-bottom: 10px; }
  .hero-lead    { font-size: 0.92rem; }
  .hero-warning { font-size: 0.8rem; }
  .strategy-card { min-height: auto; padding: 14px; }

  /* Headings */
  .dash-heading { font-size: 1.1rem; }
  .tickets-head { margin-top: 18px; margin-bottom: 6px; }

  /* Date pill */
  .tickets-draw-info {
    font-size: 0.7rem;
    padding: 2px 10px;
  }

  /* Description texts */
  .dash-desc-main {
    font-size: 0.88rem;
    line-height: 1.62;
    max-width: 100%;
  }
  .dash-notice { font-size: 0.78rem; padding: 5px 11px; }
  .eval-context-note { font-size: 0.82rem; max-width: 100%; }

  /* ── Draw card — column layout, jeden řádek čísel ── */
  .draw-card {
    flex-direction: column;
    align-items: stretch;       /* children fill full card width */
    padding: 10px 13px;
    gap: 6px;
    border-radius: 11px;
  }
  .draw-card-meta {
    min-width: 0;
    width: 100%;
  }
  .draw-card-balls {
    flex-direction: row;        /* výslovně: jedna řada */
    flex-wrap: nowrap;          /* nikdy neobaluj do gridu */
    align-items: center;
    gap: 5px;
    width: 100%;
  }
  /* Balls trochu menší, ale stále čitelné */
  .draw-card-balls .number-ball {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
    flex-shrink: 1;             /* smí se mírně zúžit, aby se vešly */
  }

  /* ── Strategy pills — pouze výška obsahu, žádné prázdné místo ── */
  .strategy-legend {
    flex-direction: column;
    gap: 6px;
  }
  .strategy-pill {
    flex: 0 0 auto;             /* nevyrůstat do výšky */
    width: 100%;
    padding: 7px 11px;
  }
  .strategy-pill-name { white-space: normal; }

  /* ── Ticket grid ── */
  .ticket-cards-grid { grid-template-columns: 1fr; gap: 7px; }
  .ticket-card { padding: 10px 12px; }
  .ticket-card-balls { gap: 4px; flex-wrap: nowrap; }
  .ticket-card-balls .number-ball { width: 28px; height: 28px; font-size: 0.68rem; }

  /* ── Coverage ── */
  .coverage-stats { gap: 6px; }
  .coverage-stat { padding: 9px 10px; }
  .coverage-number-grid { gap: 3px; }

  /* ── Eval & history ── */
  .draw-history-row { flex-wrap: wrap; gap: 6px; }
  .freq-cols { grid-template-columns: 1fr; }
  .responsible-box { padding: 16px; }
  .stats-row { gap: 7px; }
}

/* ── ≤380px — nejmenší telefony ── */
@media (max-width: 380px) {
  .container { padding: 0 12px; }
  .draw-card-balls .number-ball {
    width: 32px;
    height: 32px;
    font-size: 0.74rem;
  }
  .draw-card-balls { gap: 4px; }
  .ticket-card-balls .number-ball { width: 25px; height: 25px; font-size: 0.62rem; }
  .cov-num { width: 23px; height: 23px; font-size: 0.54rem; }
  .coverage-number-grid { gap: 3px; }
  .hero-title { font-size: 1.75rem; }
  .dash-heading { font-size: 1.0rem; }
}

/* ══════════════════════════════════════════════════════════
   FINAL HERO OVERRIDE — přepisuje všechny konfliktní styly
   ══════════════════════════════════════════════════════════ */
.section-top .hero-copy {
  text-align: left !important;
  max-width: 900px !important;
  margin: 10px 0 0 !important;
}
.section-top .hero-title {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.section-top .hero-lead {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.section-top .hero-warning {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.section-top .hero-title {
  font-size: clamp(2.8rem, 3.5vw, 4.4rem) !important;
  line-height: 0.95 !important;
  font-weight: 900 !important;
  letter-spacing: -0.055em !important;
  color: #f7f7ff !important;
  margin: 0 0 14px !important;
  max-width: none !important;
  text-shadow: 0 3px 22px rgba(0,0,0,0.35) !important;
}
.section-top .hero-title-accent {
  color: #ffd400 !important;
  text-shadow: 0 0 18px rgba(255,212,0,0.45), 0 4px 18px rgba(0,0,0,0.35) !important;
}
.section-top .hero-subtitle {
  font-size: clamp(1.3rem, 1.7vw, 2rem) !important;
  line-height: 1.12 !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 18px !important;
  letter-spacing: -0.035em !important;
}
.section-top .hero-date-badge {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center !important;
  color: #ffd400 !important;
  background: rgba(255,196,0,0.10) !important;
  border: 1px solid rgba(255,196,0,0.55) !important;
  border-radius: 999px !important;
  padding: 7px 16px !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  margin: 0 0 22px !important;
}
.section-top .hero-lead {
  font-size: 1.08rem !important;
  line-height: 1.65 !important;
  color: #c9c9dc !important;
  max-width: 660px !important;
  margin: 0 0 18px !important;
}
.section-top .hero-warning {
  display: inline-block !important;
  color: #ffd86a !important;
  background: rgba(255,216,0,0.08) !important;
  border-left: 3px solid #ffd400 !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 8px 14px !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
}

/* ── Quick links ── */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
  font-size: 0.82rem;
  color: #a9a9bd;
}
.quick-links span {
  font-weight: 700;
  color: #b9b9cb;
}
.quick-links a {
  color: #ffd400;
  text-decoration: none;
  border: 1px solid rgba(255, 212, 0, 0.25);
  background: rgba(255, 212, 0, 0.055);
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 800;
}
.quick-links a:hover {
  border-color: rgba(255, 212, 0, 0.55);
  background: rgba(255, 212, 0, 0.10);
}

/* ── Footer quick links ── */
.footer-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.footer-quick-links a {
  color: #666680;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
}
.footer-quick-links a:hover {
  color: #ffd400;
  border-color: rgba(255, 212, 0, 0.25);
}

/* ── Tickets date row ── */
.tickets-date-row {
  display: flex;
  justify-content: flex-start;
  margin: 12px 0 12px;
}
.tickets-date-badge,
.hero-date-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #ffd400;
  background: rgba(255, 196, 0, 0.12);
  border: 1px solid rgba(255, 196, 0, 0.42);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 0 18px rgba(255, 196, 0, 0.08);
}

/* ── Hero methods toggle (hidden on desktop) ── */
.hero-methods-toggle {
  display: none !important;
}

/* ── Hero methods ── */
.hero-methods {
  margin: 12px 0 14px;
  max-width: 1080px;
}
.hero-methods-heading {
  color: #b9b9cb;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: left;
}
.hero-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hero-method {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(255,255,255,0.075);
  box-shadow: none;
}
.method-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.method-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: 0.95;
}
.hero-method h3,
.hero-method .card-title {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.15;
  font-weight: 900;
}
.hero-method p {
  margin: 0;
  color: #bfc0d0;
  font-size: 0.74rem;
  line-height: 1.35;
}
.hero-method-balanced { border-color: rgba(255,196,0,0.20); }
.hero-method-balanced h3,
.hero-method-balanced .card-title,
.hero-method-balanced .method-icon { color: #ffd400; }
.hero-method-anti { border-color: rgba(199,125,255,0.20); }
.hero-method-anti h3,
.hero-method-anti .card-title,
.hero-method-anti .method-icon { color: #c77dff; }
.hero-method-coverage { border-color: rgba(38,220,255,0.20); }
.hero-method-coverage h3,
.hero-method-coverage .card-title,
.hero-method-coverage .method-icon { color: #26dcff; }

/* ── Feature cards — inline icon ── */
.feature-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
}
.feature-title-row h3,
.feature-title-row .card-title { margin: 0; }
.feature-inline-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex: 0 0 auto;
  opacity: 0.95;
}
.feature-card > .feature-icon { display: none; }

@media (max-width: 900px) {
  .section-top .hero-title {
    font-size: clamp(2.45rem, 11vw, 3.3rem) !important;
  }
  .section-top .hero-subtitle {
    font-size: 1.25rem !important;
  }
  .hero-method-grid {
    grid-template-columns: 1fr;
  }
  .hero-method { padding: 11px 12px; }
  .hero-method p { font-size: 0.78rem; }
}

/* ── Mobilní optimalizace: max 640px ── */
@media (max-width: 640px) {
  .intro-strip {
    display: none !important;
  }

  .hero-methods {
    display: block !important;
    position: relative;
    margin: 8px 0 10px !important;
    max-height: 118px;
    overflow: hidden;
    border-radius: 14px;
    transition: max-height 0.25s ease;
  }

  .hero-methods.is-expanded {
    max-height: 520px;
  }

  .hero-methods::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(13,13,18,0), rgba(13,13,18,0.96));
    opacity: 1;
    transition: opacity 0.2s ease;
  }

  .hero-methods.is-expanded::after {
    opacity: 0;
  }

  .hero-methods-heading {
    font-size: 0.82rem !important;
    margin-bottom: 7px !important;
    cursor: pointer;
  }

  .hero-method-grid {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .hero-method {
    padding: 9px 10px !important;
  }

  .hero-method p {
    font-size: 0.72rem !important;
    line-height: 1.28 !important;
  }

  .hero-methods-toggle {
    display: inline-flex !important;
    position: absolute;
    right: 10px;
    bottom: 8px;
    z-index: 2;
    border: 1px solid rgba(255, 212, 0, 0.28);
    background: rgba(13, 13, 18, 0.9);
    color: #ffd400;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 0.68rem;
    font-weight: 800;
    cursor: pointer;
  }

  .hero-methods.is-expanded .hero-methods-toggle {
    position: static;
    margin-top: 7px;
  }

  .section-top {
    padding-top: 10px !important;
  }

  .hero-copy {
    margin-bottom: 0 !important;
  }

  .hero-title,
  .section-top .hero-title {
    font-size: clamp(2.05rem, 11vw, 2.75rem) !important;
    line-height: 0.98 !important;
    margin-bottom: 7px !important;
  }

  .hero-subtitle,
  .section-top .hero-subtitle {
    font-size: 1.05rem !important;
    line-height: 1.12 !important;
    margin-bottom: 7px !important;
  }

  .hero-lead,
  .section-top .hero-lead {
    font-size: 0.86rem !important;
    line-height: 1.38 !important;
    margin-bottom: 8px !important;
  }

  .hero-warning,
  .section-top .hero-warning {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    padding: 5px 9px !important;
    margin-bottom: 8px !important;
  }

  .tickets-date-row {
    margin: 7px 0 8px !important;
  }

  .tickets-date-badge,
  .hero-date-badge {
    padding: 4px 9px !important;
    font-size: 0.74rem !important;
    line-height: 1.15 !important;
  }

  .ticket-cards-grid {
    gap: 8px !important;
  }

  .ticket-card {
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }
}
