/* Falcomet – firemný tmavý dizajn */
:root {
  --bg: #090a0c;
  --surface: #101216;
  --surface-2: #16191e;
  --surface-3: #1d2127;
  --border: #1f2329;
  --border-strong: #2c3139;
  --text: #eef1f7;
  --muted: #8d93a0;
  --faint: #7b818c;
  --gold: #f59a2c;
  --gold-2: #ffc46e;
  --gold-soft: rgba(245, 154, 44, .13);
  --accent: var(--gold);
  --accent-soft: var(--gold-soft);
  --up: #34d399;
  --up-soft: rgba(52, 211, 153, .12);
  --down: #f87171;
  --down-soft: rgba(248, 113, 113, .12);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, .12);
  --chart-1: #f59a2c;
  --chart-2: #34d399;
  --chart-grid: rgba(255, 255, 255, .05);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --font: "Inter Tight", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1000px 520px at 80% -200px, rgba(245, 154, 44, .07), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  color: var(--text);
  font: 15px/1.55 var(--font);
  font-feature-settings: "tnum" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5rem; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: 2rem; }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: .95rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--up); }
.down { color: var(--down); }
.flat { color: var(--muted); }
::selection { background: var(--gold); color: #1a1407; }

/* ------------------------------------------------ layout */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.topbar {
  position: relative; z-index: 20;  /* lišta ostáva hore, neroluje sa so stránkou */
  background: rgba(7, 10, 16, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar .wrap { display: flex; align-items: center; gap: 1.75rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.12rem; color: var(--text); letter-spacing: .2em; }
.brand:hover { color: var(--text); }
.logo-mark { width: 58px; height: 58px; flex: none; object-fit: contain; margin: -6px 0; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .35)) drop-shadow(0 3px 10px rgba(245, 154, 44, .3)); }
@media (max-width: 560px) { .logo-mark { width: 50px; height: 50px; } }
.nav { display: flex; gap: .15rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); padding: .45rem .8rem; border-radius: 999px; white-space: nowrap; font-weight: 600; font-size: .9rem;
  transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--gold); background: var(--gold-soft); }
.userbox { display: flex; align-items: center; gap: .75rem; white-space: nowrap; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem;
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #1a1407;
}
main { padding: 32px 0 72px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.back { font-size: .85rem; color: var(--muted); font-weight: 600; }
.back:hover { color: var(--text); }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack > * + * { margin-top: 16px; }
.mt { margin-top: 16px; }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .grid-2, .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .userbox .who { display: none; }
  h1 { font-size: 1.55rem; }
  .topbar .wrap { gap: 1rem; }
  .brand-text { font-size: .9rem; letter-spacing: .14em; }
}

/* ------------------------------------------------ cards */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  min-width: 0;
}
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 16px; }
.card-head h2 { margin: 0; }
.stat { position: relative; overflow: hidden; }
.stat .label { color: var(--muted); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.stat .value { font-size: 1.75rem; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.stat .sub { font-size: .85rem; margin-top: 2px; }
.stat::after {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .7;
}
.chart-box { position: relative; height: 280px; }
.chart-box.sm { height: 84px; margin: 0 -4px; }

/* hero karta (dashboard) */
.hero-card {
  position: relative; overflow: hidden;
  background:
    radial-gradient(500px 240px at 100% 0, rgba(245, 154, 44, .18), transparent 70%),
    radial-gradient(400px 200px at 0 100%, rgba(52, 211, 153, .08), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 28px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: end;
  margin-bottom: 16px;
}
.hero-card .big { font-size: 3rem; font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 10px 0 8px; }
.hero-card .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-card .mini > div { background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.hero-card .mini .label { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-card .mini .value { font-weight: 800; font-size: 1.1rem; margin-top: 4px; }
.rank-pill {
  display: inline-flex; align-items: center; gap: .4rem; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: .8rem;
  background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(245, 154, 44, .25);
}
@media (max-width: 960px) {
  .hero-card { grid-template-columns: minmax(0, 1fr); }
  .hero-card .big { font-size: 2.4rem; }
}
@media (max-width: 560px) { .hero-card .mini { grid-template-columns: minmax(0, 1fr); } .hero-card { padding: 22px; } }

/* ------------------------------------------------ tables */
.table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); font-weight: 700; }
td.r, th.r { text-align: right; }
tbody tr { transition: background .12s; }
tbody tr:hover td { background: rgba(255, 255, 255, .015); }
tbody tr:last-child td { border-bottom: 0; }
tr.me td { background: var(--gold-soft) !important; }
tr.group td { font-weight: 700; padding-top: 16px; }
tr.group + tr.sub td, tr.sub td { color: var(--muted); font-size: .9rem; }
tr.sub td { border-bottom-color: transparent; padding-top: 6px; padding-bottom: 6px; }
tr.sub td:first-child { padding-left: 28px; position: relative; }
tr.sub td:first-child::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 1px; background: var(--border-strong); }
tr.sub td.r.num { color: var(--text); }
tr.sub td.up { color: var(--up); }
tr.sub td.down { color: var(--down); }
tfoot td { font-weight: 800; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.rank { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-3); font-weight: 800; font-size: .8rem; color: var(--muted); }
.rank.r1 { background: linear-gradient(135deg, #f6d99a, #d9a441); color: #2a1d02; }
.rank.r2 { background: linear-gradient(135deg, #e7ebf2, #9aa3b2); color: #1a1d24; }
.rank.r3 { background: linear-gradient(135deg, #f1b98a, #b86e3b); color: #2a1305; }

.monthly td, .monthly th { text-align: center; padding: 9px 4px; font-size: .82rem; }
.monthly td:first-child, .monthly th:first-child { text-align: left; }
.monthly td.up, .monthly td.down { font-weight: 700; }
.monthly td.up { background: var(--up-soft); }
.monthly td.down { background: var(--down-soft); }
.monthly td:last-child { border-left: 1px solid var(--border); }

/* ------------------------------------------------ podium */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; margin-bottom: 18px; }
.podium .place {
  text-align: center; padding: 18px 12px; border-radius: 14px; border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.podium .place.p1 { padding-top: 28px; border-color: rgba(245, 154, 44, .45); background: linear-gradient(180deg, rgba(245, 154, 44, .14), var(--surface)); }
.podium .place.me { box-shadow: 0 0 0 2px var(--gold) inset; }
.podium .medal { font-size: 1.6rem; line-height: 1; }
.podium .name { font-weight: 700; margin-top: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .amount { font-weight: 800; font-size: 1.15rem; margin-top: 2px; }
.podium .p1 .amount { color: var(--gold); font-size: 1.35rem; }
@media (max-width: 560px) { .podium { grid-template-columns: minmax(0, 1fr); } .podium .p1 { order: -1; } }

/* ------------------------------------------------ badges, bars */
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--surface-3); color: var(--muted); letter-spacing: .02em; vertical-align: middle; }
.badge.ok { background: var(--up-soft); color: var(--up); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.off { background: var(--down-soft); color: var(--down); }
.badge.blue, .badge.gold { background: var(--gold-soft); color: var(--gold); }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--muted); font-size: .75rem; font-weight: 600; }

.bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.split-item + .split-item { margin-top: 18px; }

/* ------------------------------------------------ forms */
form.inline { display: inline; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
label.check { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--text); font-size: .9rem; }
input[type=checkbox] { accent-color: var(--gold); width: 16px; height: 16px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], input[type=tel], input[type=datetime-local], select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--text); font: inherit; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
textarea { min-height: 120px; resize: vertical; }
textarea.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .82rem; min-height: 340px; }
input.cell { padding: 7px 9px; text-align: right; min-width: 120px; }
.hint { font-size: .78rem; color: var(--faint); margin-top: 6px; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: 10px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1d1605;
  box-shadow: 0 6px 20px -8px rgba(245, 154, 44, .6);
  transition: transform .12s, filter .12s;
}
.btn:hover { filter: brightness(1.06); color: #1d1605; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); color: var(--text); }
.btn.danger { background: var(--down); color: #2b0707; box-shadow: none; }
.btn.sm { padding: 6px 12px; font-size: .82rem; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; font-weight: 600; }
.linkbtn:hover { color: var(--gold); }

.flash { padding: 13px 16px; border-radius: 12px; margin-bottom: 14px; font-weight: 600; overflow-wrap: anywhere; border: 1px solid transparent; }
.flash.success { background: var(--up-soft); color: var(--up); border-color: rgba(52, 211, 153, .25); }
.flash.error { background: var(--down-soft); color: var(--down); border-color: rgba(248, 113, 113, .25); }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filters select { width: auto; min-width: 200px; }

/* ------------------------------------------------ login */
.auth {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 940px; margin: 28px auto;
  border: 1px solid var(--border-strong); border-radius: 22px; overflow: hidden; background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8);
}
.auth-side {
  position: relative; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 460px;
  background:
    radial-gradient(420px 300px at 110% -10%, rgba(245, 154, 44, .35), transparent 65%),
    radial-gradient(380px 260px at -20% 110%, rgba(52, 211, 153, .18), transparent 65%),
    #0b1018;
  border-right: 1px solid var(--border);
}
.auth-side h2 { font-size: 1.8rem; letter-spacing: -.03em; font-weight: 800; }
.auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--muted); font-size: .9rem; }
.auth-side li::before { content: "◆"; color: var(--gold); font-size: .6rem; margin-right: 10px; vertical-align: 2px; }
.auth-form { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 760px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { min-height: 0; padding: 28px; border-right: 0; border-bottom: 1px solid var(--border); }
  .auth-side ul { display: none; }
  .auth-form { padding: 28px; }
}

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
details summary { cursor: pointer; font-weight: 700; }
details summary::marker { color: var(--gold); }
pre.json { background: var(--bg); border: 1px solid var(--border); padding: 14px; border-radius: 10px; overflow-x: auto; font-size: .8rem; color: var(--gold-2); }
ul.report { margin: 0; padding-left: 1.2rem; }
ul.report li + li { margin-top: 4px; }

/* ------------------------------------------------ verejný web (firma) */
.site main { padding-top: 0; }
.site-nav { display: flex; gap: 1.6rem; flex: 1; }
.site-nav a { color: var(--muted); font-weight: 500; font-size: .9rem; }
.site-nav a:hover { color: var(--text); }
@media (max-width: 720px) { .site-nav { display: none; } .topbar .wrap { justify-content: space-between; } }

.live-dot { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 600; color: var(--up); letter-spacing: .02em; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .5); } 70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot::before { animation: none; } }

.s-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 72px 0 64px; }
.s-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin: 18px 0 20px; }
.s-hero h1 em { font-style: normal; color: var(--gold); }
.s-hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 520px; margin-bottom: 30px; }
.s-hero .actions { margin-top: 0; }
.panel { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--surface); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.panel-head strong { color: var(--text); font-weight: 600; }
.panel-body { padding: 20px 18px 8px; }
.panel-body .figure { font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.panel-body .caption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.panel .chart-box { height: 190px; margin-top: 12px; }
.panel-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.panel-foot > div { padding: 12px 18px; }
.panel-foot > div + div { border-left: 1px solid var(--border); }
.panel-foot .label, .kpi-band .label, .spec dt { font-size: .7rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.panel-foot .value { font-weight: 600; margin-top: 3px; }
@media (max-width: 960px) { .s-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 44px 0; } }

.kpi-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kpi-band > div { padding: 26px 24px 26px 0; }
.kpi-band > div + div { padding-left: 24px; border-left: 1px solid var(--border); }
.kpi-band .value { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; margin-top: 6px; }
.kpi-band .note { font-size: .8rem; color: var(--muted); margin-top: 2px; }
@media (max-width: 860px) {
  .kpi-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-band > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .kpi-band > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}

.s-section { padding: 88px 0 0; }
.s-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 32px; }
.s-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; letter-spacing: -.03em; margin: 12px 0 0; }
.s-head p { color: var(--muted); margin: 0; max-width: 460px; justify-self: end; }
@media (max-width: 860px) { .s-head { grid-template-columns: minmax(0, 1fr); } .s-head p { justify-self: start; } }
.index { color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

.accounts { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow-x: auto; }
.accounts table { min-width: 820px; }
.accounts th { padding: 14px 18px; background: var(--surface-2); }
.accounts td { padding: 18px; }
.accounts tbody tr { cursor: pointer; }
.accounts tbody tr:hover td { background: var(--surface-2); }
.accounts .acc-name { font-weight: 600; color: var(--text); }
.accounts .acc-name:hover { color: var(--gold); }
.accounts .spark { width: 130px; height: 38px; position: relative; }
.accounts .big-num { font-size: 1.1rem; font-weight: 600; }

.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--border); }
.approach > div { padding: 30px 30px 0 0; }
.approach > div + div { padding-left: 30px; border-left: 1px solid var(--border); }
.approach .n { font-size: .8rem; color: var(--gold); font-weight: 600; letter-spacing: .1em; }
.approach h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.01em; margin: 14px 0 10px; }
.approach p { color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .approach { grid-template-columns: minmax(0, 1fr); }
  .approach > div, .approach > div + div { padding: 24px 0; border-left: 0; }
  .approach > div + div { border-top: 1px solid var(--border); }
}

.verify { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; }
.verify > div { padding: 32px; }
.verify > div + div { border-left: 1px solid var(--border); background: var(--surface-2); }
.verify h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.verify p { color: var(--muted); }
.spec { margin: 0; display: grid; gap: 16px; }
.spec div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.spec div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 860px) { .verify { grid-template-columns: minmax(0, 1fr); } .verify > div + div { border-left: 0; border-top: 1px solid var(--border); } }

.stat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; margin-bottom: 16px; }
.stat-grid > div { padding: 18px 20px; }
.stat-grid > div + div { border-left: 1px solid var(--border); }
.stat-grid .label { font-size: .7rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.stat-grid .value { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; margin-top: 6px; }
@media (max-width: 960px) {
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-grid > div:nth-child(4) { border-left: 0; }
  .stat-grid > div:nth-child(n+4) { border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid > div:nth-child(odd) { border-left: 0; }
  .stat-grid > div:nth-child(4) { border-left: 1px solid var(--border); }
  .stat-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; padding: 40px 0 28px; }
.detail-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; letter-spacing: -.035em; margin: 10px 0 6px; }

.site-footer { border-top: 1px solid var(--border); margin-top: 96px; padding: 40px 0 48px; }
.site-footer .row { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.site-footer .legal { font-size: .78rem; color: var(--faint); max-width: 760px; margin-top: 24px; }
.site-footer a { color: var(--muted); font-size: .85rem; }
.site-footer a:hover { color: var(--text); }
@media (max-width: 560px) { .site .brand-text { display: inline; } }

/* ------------------------------------------------ stratégie */
.families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .families { grid-template-columns: minmax(0, 1fr); } }
.family { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.family-body { padding: 26px 26px 20px; flex: 1; }
.family h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; margin: 0 0 6px; }
.family .style { color: var(--gold); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.family .desc { color: var(--muted); margin: 14px 0 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.variants { width: 100%; border-top: 1px solid var(--border); }
.variants th { padding: 10px 26px; background: var(--surface-2); }
.variants td { padding: 13px 26px; }
.variants th:not(:first-child), .variants td:not(:first-child) { padding-left: 8px; }
.variants a.vname { color: var(--text); font-weight: 600; }
.variants a.vname:hover { color: var(--gold); }
.variants .pending { color: var(--faint); font-size: .8rem; }
.alt-list { display: flex; gap: 12px; flex-wrap: wrap; }
.alt-list .chip { font-size: .85rem; padding: 8px 14px; color: var(--text); }
.spec-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; margin-bottom: 16px; }
.spec-row > div { padding: 16px 20px; }
.spec-row > div + div { border-left: 1px solid var(--border); }
.spec-row .label { font-size: .7rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.spec-row .value { font-weight: 600; margin-top: 5px; }
@media (max-width: 760px) {
  .spec-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-row > div:nth-child(3) { border-left: 0; }
  .spec-row > div:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.notice { border: 1px dashed var(--border-strong); border-radius: 14px; padding: 28px; text-align: center; color: var(--muted); }
.prose p { color: var(--muted); margin: 0 0 1rem; white-space: pre-line; }
.prose p:last-child { margin: 0; }

/* ------------------------------------------------ offerky */
.offer-link { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 4px 0; min-width: 0; }
.offer-link .url { color: var(--muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-link .url:hover { color: var(--text); }
details.offer-add, details.offer-edit { margin-top: 4px; }
details.offer-edit { margin-top: 0; }
details.offer-add summary, details.offer-edit summary { list-style: none; cursor: pointer; display: inline-block; }
details.offer-add summary::-webkit-details-marker, details.offer-edit summary::-webkit-details-marker { display: none; }
.offer-form { display: grid; gap: 6px; margin-top: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; max-width: 420px; }
details.offer-edit[open] { flex: 1 1 100%; order: 4; }

/* ------------------------------------------------ eventy a notifikácie */
.bell { position: relative; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); }
.bell:hover { background: var(--surface-2); color: var(--text); }
.bell svg { width: 19px; height: 19px; }
.bell .count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--gold); color: #1d1605; font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.events { display: grid; gap: 4px; }
.event { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.event:last-child { border-bottom: 0; }
.event-date { flex: none; width: 58px; height: 62px; border-radius: 12px; background: var(--gold-soft); border: 1px solid rgba(245, 154, 44, .25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.event-date .d { font-size: 1.35rem; font-weight: 800; color: var(--gold); line-height: 1; }
.event-date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-top: 3px; }
.event-body { min-width: 0; flex: 1; }
.event-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.event-title { font-weight: 700; font-size: 1.02rem; margin: 6px 0 2px; }
.event-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.notif-list { padding: 8px; }
.notif { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border-radius: 10px; color: var(--text); }
.notif:hover { background: var(--surface-2); color: var(--text); }
.notif + .notif { border-top: 1px solid var(--border); }
.notif.unread { background: var(--gold-soft); }
.notif.unread strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 8px; vertical-align: middle; }
.notif-icon { font-size: 1.15rem; line-height: 1.4; text-align: center; }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 560px) { .notif { grid-template-columns: 28px minmax(0, 1fr); } .notif > :last-child { grid-column: 2; } }

/* ------------------------------------------------ home: varianty stratégií s grafom */
.family-wide .family-body { padding-bottom: 8px; }
.family-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.family-wide .desc { -webkit-line-clamp: 3; max-width: 820px; }
.vtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 16px 26px 26px; }
.vtile { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); padding: 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vtile-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.vtile .vname { color: var(--text); font-weight: 700; }
.vtile .vname:hover { color: var(--gold); }
.vtile-gain { font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.vtile .chart-box.sm { height: 64px; margin: 6px -4px 0; }
.vtile-empty { border: 1px dashed var(--border-strong); border-radius: 10px; padding: 26px 10px; text-align: center; color: var(--faint); font-size: .85rem; margin: 6px 0 2px; }
.vstats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--border); }
.vstats .wide { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
.vstats dt { font-size: .66rem; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.vstats dd { margin: 2px 0 0; font-weight: 600; }
.vtile-actions { display: flex; gap: 8px; margin-top: 10px; }
.vtile-actions .btn { flex: 1; }
@media (max-width: 560px) { .vtiles { padding: 12px 16px 18px; } }

.vtile-where { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.spec-row-wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.spec-row-wide > div { border-left: 1px solid var(--border); }

.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px 20px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; }
.check-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; background: var(--warn-soft); color: var(--warn); }
.check-item.done .check-mark { background: var(--up-soft); color: var(--up); }
.check-item.done strong { color: var(--muted); font-weight: 600; }

/* ------------------------------------------------ hlášky – vždy viditeľné */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 10px;
  width: min(560px, calc(100vw - 32px)); }
.toast { display: grid; grid-template-columns: 26px minmax(0, 1fr) 24px; gap: 10px; align-items: start; padding: 14px 14px 14px 16px;
  border-radius: 12px; background: var(--surface-3); border: 1px solid var(--border-strong); box-shadow: 0 20px 50px -12px rgba(0, 0, 0, .8);
  font-weight: 600; animation: toast-in .25s ease-out; overflow-wrap: anywhere; }
.toast > span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; }
.toast.success { border-color: rgba(52, 211, 153, .5); }
.toast.success > span { background: var(--up-soft); color: var(--up); }
.toast.error { border-color: rgba(248, 113, 113, .6); }
.toast.error > span { background: var(--down-soft); color: var(--down); }
.toast-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .9rem; padding: 2px; }
.toast-x:hover { color: var(--text); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* ------------------------------------------------ strom štruktúry */
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 22px; padding-left: 18px; border-left: 1px dashed var(--border-strong); }
.tree li { position: relative; padding-top: 10px; }
.tree ul > li::before { content: ""; position: absolute; left: -18px; top: 34px; width: 16px; border-top: 1px dashed var(--border-strong); }
.tnode { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr) auto; gap: 14px; align-items: center;
  padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.tnode.super { border-color: rgba(245, 154, 44, .35); }
.tnode.off { opacity: .55; }
.tnode.root { grid-template-columns: minmax(0, 1fr) auto; background: linear-gradient(90deg, var(--gold-soft), var(--surface-2)); }
.tnode-main { display: flex; gap: 10px; align-items: center; min-width: 0; }
.tavatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .75rem;
  background: var(--surface-3); color: var(--gold); border: 1px solid var(--border-strong); }
.tname { font-weight: 700; }
.tname a { color: var(--text); }
.tname a:hover { color: var(--gold); }
.tnode-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tnode-stats span { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-weight: 600; }
.tnode-stats strong { font-size: .88rem; }
.tnode-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
details.move { position: relative; }
details.move summary { list-style: none; }
details.move summary::-webkit-details-marker { display: none; }
.move-form { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 240px; display: grid; gap: 8px; padding: 12px;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.7); }
@media (max-width: 900px) {
  .tnode { grid-template-columns: minmax(0, 1fr); }
  .tnode-actions { justify-content: flex-start; }
  .tree ul { margin-left: 8px; padding-left: 12px; }
}

.demo-bar { background: var(--gold); color: #1d1605; text-align: center; font-size: .8rem; font-weight: 600; padding: 6px 16px; }

fieldset.subform { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px 16px; margin: 16px 0 0; }
fieldset.subform legend { padding: 0 6px; font-weight: 700; font-size: .9rem; }

.quick-state { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.quick-state input { width: auto; min-width: 0; flex: 0 1 140px; padding: 7px 9px; }

/* ================================================ MOBIL */
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface-2);
  color: var(--text); cursor: pointer; place-items: center; flex: none; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn path { transition: transform .2s, opacity .2s; transform-origin: center; }
body.nav-open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
body.nav-open .menu-btn .l2 { opacity: 0; }
body.nav-open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }
.nav-mobile-only { display: none; }
.nav-logout { background: none; border: 0; font: inherit; color: var(--down); font-weight: 600; padding: 14px 16px; width: 100%; text-align: left; cursor: pointer; }

@media (max-width: 900px) {
  .topbar .wrap { gap: .6rem; height: 62px; }
  .menu-btn { display: grid; }
  .userbox { margin-left: auto; gap: .5rem; }
  .userbox .who, .userbox .logout-form { display: none; }
  .nav, .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border-strong); box-shadow: 0 24px 40px -12px rgba(0, 0, 0, .85);
    padding: 6px 12px 12px; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  body.nav-open .nav, body.nav-open .site-nav { display: flex; }
  .nav a, .site-nav a { border-radius: 10px; padding: 14px 16px; font-size: 1rem; color: var(--text); }
  .nav a.active { background: var(--gold-soft); }
  .nav-mobile-only { display: block; border-top: 1px solid var(--border); margin-top: 6px; padding-top: 6px; }
  .site-nav .nav-mobile-only { display: block; color: var(--gold); }
  .site .topbar .wrap { justify-content: flex-start; }
  .site .userbox { margin-left: auto; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  main { padding: 20px 0 48px; }
  .card { padding: 16px; border-radius: 14px; }
  .table-wrap { margin: 0 -16px; padding: 0 16px; }
  /* iOS nepribližuje stránku pri kliknutí do poľa, ak má písmo aspoň 16 px */
  input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=tel],
  input[type=number], select, textarea { font-size: 16px; padding: 12px 13px; }
  .btn { min-height: 44px; }
  .btn.sm { min-height: 38px; padding: 7px 12px; }
  .page-head { margin-bottom: 16px; }
  .page-head .actions, .page-head > .btn, .page-head > form { width: 100%; }
  .hero-card { padding: 18px; gap: 16px; margin-bottom: 12px; }
  .hero-card .big { font-size: 2.2rem; }
  .hero-card .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-card .mini > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .hero-card .actions .btn { flex: 1 1 calc(50% - 8px); }
  .grid { gap: 12px; }
  h1 { font-size: 1.45rem; }
  .toasts { top: 12px; }

  /* tabuľky ako karty */
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 10px; padding: 8px 14px; background: var(--surface-2); }
  table.stack tr.me { border-color: var(--gold); }
  table.stack tr.sub { margin-top: -6px; border-top-left-radius: 0; border-top-right-radius: 0; background: var(--surface); }
  table.stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 6px 0;
    text-align: right; background: none !important; min-height: 0; }
  table.stack td::before { content: attr(data-label); color: var(--faint); font-size: .68rem; text-transform: uppercase;
    letter-spacing: .08em; font-weight: 600; text-align: left; flex: none; max-width: 48%; }
  table.stack td:first-child { justify-content: flex-start; text-align: left; font-size: 1rem; padding-top: 4px; }
  table.stack td:first-child::before, table.stack td[data-label=""]::before { display: none; }
  table.stack td:empty { display: none; }
  table.stack td[colspan] { justify-content: center; text-align: center; }
  tr.sub td:first-child { padding-left: 0; }
  tr.sub td:first-child::after { display: none; }
  .accounts { border: 0; background: none; overflow: visible; }
  .accounts table { min-width: 0; }
  .accounts td { padding: 6px 0; }
  .spark { width: 110px; }

  /* strom štruktúry */
  .tree ul { margin-left: 4px; padding-left: 10px; }
  .tree ul > li::before { left: -10px; width: 8px; }
  .tnode { padding: 12px; gap: 10px; }
  .tnode-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tnode-actions .btn { flex: 1; }
  .move-form { left: 0; right: auto; width: min(280px, calc(100vw - 48px)); }
  .card-head { flex-wrap: wrap; }

  .quick-state input { flex: 1 1 120px; }
  .offer-link .url { max-width: 100%; flex: 1 1 100%; order: 3; }
  .vtiles { grid-template-columns: minmax(0, 1fr); }
  .event { gap: 12px; }
  .event-date { width: 50px; height: 56px; }
}
@media (max-width: 900px) { .tnode.root { grid-template-columns: minmax(0, 1fr); } }

/* prepínač obdobia (rebríček) */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.02); }
.seg a { padding: 6px 12px; border-radius: 8px; font-size: .85rem; color: var(--muted); text-decoration: none; white-space: nowrap; }
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--gold, #f5b83d); color: #1a1407; font-weight: 700; }
@media (max-width: 640px) { .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .seg a { text-align: center; } }

/* stavy klientov */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filters label { flex: 1 1 160px; margin: 0; }
.progress { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; background: var(--up); }
.state-list { display: grid; gap: 10px; }
.state-row { display: grid; grid-template-columns: minmax(200px, 2fr) 1fr 1fr auto auto; gap: 12px; align-items: end; padding: 14px 16px; }
.state-row label { margin: 0; }
.state-row.done { border-color: rgba(52, 211, 153, .35); }
.state-row .who a { color: var(--text); }
.shots { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.shots img { height: 260px; width: auto; border-radius: 10px; border: 1px solid var(--border); }
@media (max-width: 760px) {
  .state-row { grid-template-columns: 1fr 1fr; }
  .state-row .who { grid-column: 1 / -1; }
  .state-row .btn { grid-column: 1 / -1; }
  .shots img { height: 200px; }
}
.filters label, .state-row label, .form-grid > label:not(.check), .card > form > label:not(.check) { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; color: var(--muted); }
.filters input, .filters select, .state-row input { width: 100%; }

/* prepínač jazyka */
.langsw { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-left: auto; margin-right: 10px; flex: none; }
.langsw a { padding: 5px 8px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-decoration: none; }
.langsw a.on { background: var(--gold-soft); color: var(--gold-2); }
.langsw a:hover { color: var(--text); }

/* súkromný vstup */
.gate { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 0; }
.gate-card { width: 100%; max-width: 420px; text-align: center; padding: 36px 32px; }
.gate-logo { width: 132px; height: 132px; object-fit: contain; margin: 0 auto 6px; display: block; filter: drop-shadow(0 10px 30px rgba(245,154,44,.25)); }
.gate-brand { font-weight: 800; letter-spacing: .28em; font-size: 1.25rem; margin-bottom: 14px; }
.gate-lead { margin: 0 0 20px; }
.gate-form { text-align: left; }
.gate-form .check { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; color: var(--muted); font-weight: 500; }
.gate-form .check input { width: auto; margin-top: 3px; }
.gate-note { color: var(--faint); margin-top: 18px; text-align: center; max-width: 420px; }
.gate-wait { color: var(--muted); margin: -8px 0 16px; }
.code-input { font-size: 1.5rem !important; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .gate-card { padding: 28px 20px; } .gate-logo { width: 104px; height: 104px; } }

/* mobil: prepínač jazyka v menu, nie v hlavičke (hlavička sa musí zmestiť do 375 px) */
.nav-lang a { display: inline-block; }
@media (max-width: 900px) {
  .nav-lang { display: flex !important; gap: 8px; padding: 10px 4px 2px; }
  .nav-lang a { flex: 1; text-align: center; border: 1px solid var(--border); padding: 10px !important; font-size: .9rem !important; }
  .nav-lang a.on { background: var(--gold-soft); color: var(--gold-2) !important; border-color: transparent; }
  body:not(.gatepage) .langsw { display: none; }
  .site .userbox { display: none; }
  .gatepage .langsw { margin-left: auto; }
  .gatepage .userbox { display: none; }
  .gatepage .menu-btn { display: none; }
}
@media (max-width: 640px) {
  details.move[open] { position: static; }
  .move-form { position: static !important; width: 100% !important; margin-top: 8px; box-shadow: none; }
}
.invite-form { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-form input { flex: 1 1 220px; }
.invite-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.invite-list li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; }
.invite-list li form { margin-left: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.count-pill { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #1a1407; font-size: .7rem; font-weight: 800; margin-left: 4px; }
.deposit-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.deposit-amount { font-size: 1.4rem; font-weight: 800; }
.deposit-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.deposit.pending { border-color: rgba(245, 154, 44, .45); }
.reject-form { display: inline-flex; gap: 6px; }
.reject-form input { width: 180px; padding: 6px 10px; }
.invite-tools { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.invite-list li > form { margin-left: 0; }

/* strom štruktúry: meno + akcie hore, čísla v riadku pod tým (neprekrývajú sa pri žiadnej šírke) */
.tnode:not(.root) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main actions" "stats stats"; row-gap: 10px; }
.tnode:not(.root) .tnode-main { grid-area: main; }
.tnode:not(.root) .tnode-actions { grid-area: actions; }
.tnode:not(.root) .tnode-stats { grid-area: stats; grid-template-columns: repeat(4, minmax(72px, max-content)); column-gap: 28px;
  padding-top: 10px; border-top: 1px solid var(--border); }
.tnode-stats > div { min-width: 0; }
.tnode-stats span { white-space: nowrap; }
@media (max-width: 640px) {
  .tnode:not(.root) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "stats" "actions"; }
  .tnode:not(.root) .tnode-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.acc-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* výnosy za mesiac */
.month-pick select { min-width: 190px; }
.returns { padding: 8px 20px 20px; }
.ret-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.ret-row label { display: flex; flex-direction: column; gap: 2px; margin: 0; font-size: 1rem; color: var(--text); }
.ret-input { display: flex; align-items: center; gap: 8px; flex: none; }
.ret-input input { width: 110px; text-align: right; font-size: 1.1rem; font-weight: 700; }
.ret-row.done input { border-color: rgba(52, 211, 153, .45); }
.seg-radio { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.seg-radio label { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 600; margin: 0; }
.seg-radio input { width: auto; margin: 0; }
.seg-radio label:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.label-text { font-size: .85rem; font-weight: 600; color: var(--muted); }
details.more > summary { cursor: pointer; color: var(--muted); margin-top: 14px; }
details.card.more > summary { margin-top: 0; }
.fee-box { border: 1px dashed var(--border-strong); border-radius: 12px; padding: 14px; }
details.comm { border-top: 1px solid var(--border); padding: 12px 0; }
details.comm summary { display: flex; justify-content: space-between; gap: 12px; cursor: pointer; align-items: center; }
details.comm summary .badge { margin-left: 6px; }
