/* =========================================================
   BLACKMC — shared stylesheet
   Design system: coal-black surfaces / ember-orange accent
   ========================================================= */

:root {
  /* --- surfaces --- */
  --bg-void: #0c0805;
  --bg-base: #110b07;
  --bg-surface: #1a130c;
  --bg-surface-2: #241b11;
  --bg-surface-3: #2f2318;

  /* --- ember (brand) --- */
  --ember-300: #ffcf8f;
  --ember-400: #ffab4d;
  --ember-500: #ff8f1e;
  --ember-600: #f66d0a;
  --ember-700: #c2530a;
  --ember-glow: #ff5e1a;

  /* --- text --- */
  --text-primary: #f8efe2;
  --text-secondary: #cabaa5;
  --text-muted: #8c7c69;

  /* --- borders --- */
  --border-subtle: rgba(255, 154, 30, 0.14);
  --border-strong: rgba(255, 154, 30, 0.38);
  --border-hair: rgba(255, 238, 214, 0.08);

  /* --- type --- */
  --font-display: "Kanit", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* --- layout --- */
  --container: 1180px;
  --nav-h: 76px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;

  /* --- shadow --- */
  --shadow-ember: 0 10px 30px -8px rgba(255, 110, 10, 0.45);
  --shadow-deep: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html {
  overflow-x: hidden;
  overflow-y: visible;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse 1400px 900px at 20% 0%, rgba(255, 143, 30, 0.055), transparent 70%),
    radial-gradient(ellipse 1200px 850px at 85% 30%, rgba(255, 94, 26, 0.045), transparent 65%),
    radial-gradient(ellipse 1300px 900px at 10% 62%, rgba(255, 143, 30, 0.05), transparent 68%),
    radial-gradient(ellipse 1200px 800px at 90% 88%, rgba(255, 94, 26, 0.045), transparent 65%),
    var(--bg-void);
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0; }

::selection { background: var(--ember-500); color: #1a0f04; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--bg-surface-3); border-radius: 20px; border: 3px solid var(--bg-void); }
::-webkit-scrollbar-thumb:hover { background: var(--ember-700); }

:focus-visible {
  outline: 2px solid var(--ember-400);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember-400);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--ember-500);
  display: inline-block;
}
.section { padding: 108px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { max-width: 620px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.section-head p { margin-top: 16px; color: var(--text-secondary); font-size: 17px; }
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-hair) 30%, var(--border-hair) 70%, transparent);
  border: none;
  margin: 0;
  opacity: 0.5;
}

/* dřív samostatné gradienty na sekci — teď je stejná atmosféra řešená globálně na body, ať to plynule navazuje */
.grain-bg { position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--ember-400), var(--ember-600));
  color: #1c0f03;
  box-shadow: var(--shadow-ember);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 14px 34px -10px rgba(255, 110, 10, 0.6); }
.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-outline:hover { background: rgba(255, 154, 30, 0.08); border-color: var(--ember-400); }
.btn-ghost { background: transparent; color: var(--text-secondary); padding: 13px 18px; }
.btn-ghost:hover { color: var(--text-primary); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(12, 8, 5, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-hair);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 18px; }
.nav-left { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.visitor-count {
  display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
  padding: 5px 10px; border-radius: 999px; background: var(--bg-surface-2); border: 1px solid var(--border-hair);
}
.visitor-count svg { flex-shrink: 0; }
@media (max-width: 700px) { .visitor-count span, .visitor-count { font-size: 11px; padding: 4px 8px; } .visitor-count { display: none; } }
@media (min-width: 901px) and (max-width: 1300px) { .visitor-count { display: none; } }
.nav-brand img.icon { width: 36px; height: 36px; }
.wordmark-text { color: var(--text-primary); font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.01em; }
.wordmark-eu { color: var(--text-primary); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hair);
  padding: 5px;
  border-radius: 999px;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a {
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  flex-shrink: 0;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-link-btn {
  padding: 8px 11px; border-radius: 999px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); background: none; border: none; cursor: pointer; flex-shrink: 0;
  font-family: var(--font-body); transition: color 0.15s ease, background 0.15s ease;
}
.nav-link-btn:hover { color: var(--text-primary); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
  padding: 8px 12px 8px 14px; border-radius: 999px; border: none; background: none;
  font-size: 14px; font-weight: 500; font-family: inherit; color: var(--text-secondary);
  transition: color 0.15s ease;
}
.nav-dropdown-trigger:hover { color: var(--text-primary); }
.nav-dropdown-trigger svg { transition: transform .15s ease; }
.nav-dropdown-trigger.open svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  min-width: 170px; background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-m);
  box-shadow: var(--shadow-deep); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 150;
}
.nav-dropdown-menu.open { display: flex; }
.nav-dropdown-menu a { padding: 10px 12px; border-radius: var(--radius-s); font-size: 14px; color: var(--text-secondary); white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.nav-links a.active { background: var(--bg-surface-3); color: var(--ember-300); border: 1px solid var(--border-subtle); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-user-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 7px; border-radius: 999px;
  background: var(--bg-surface-2); border: 1px solid var(--border-hair);
  color: var(--text-primary); font-size: 13.5px; font-weight: 600;
  transition: border-color .15s ease;
  flex-shrink: 0; flex-grow: 0; width: fit-content; max-width: 118px;
}
.nav-user-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60px; }
.nav-user-btn svg { flex-shrink: 0; }
.nav-user-btn:hover { border-color: var(--border-subtle); }
.nav-user-btn .nav-avatar { width: 24px; height: 24px; border-radius: 6px; image-rendering: pixelated; }
.user-menu { position: relative; }
.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 190px;
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-m);
  box-shadow: var(--shadow-deep); padding: 8px; display: none; flex-direction: column; gap: 2px; z-index: 150;
}
.user-dropdown.open { display: flex; }
.user-dropdown a {
  padding: 10px 12px; border-radius: var(--radius-s); font-size: 14px; color: var(--text-secondary);
}
.user-dropdown a:hover { background: var(--bg-surface-3); color: var(--text-primary); }
.user-dropdown-sep { height: 1px; background: var(--border-hair); margin: 6px 4px; }
.login-error { color: #ff8a8a; font-size: 13px; margin-top: 10px; }
.nav-burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-s);
  border: 1px solid var(--border-hair);
  background: rgba(255, 255, 255, 0.02);
  align-items: center;
  justify-content: center;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--text-primary);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-burger span::before { position: absolute; top: -6px; }
.nav-burger span::after { position: absolute; top: 6px; }
.nav-mobile-panel {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-hair);
  padding: 14px 20px 22px;
  z-index: 99;
}
.nav-mobile-panel a {
  display: block;
  padding: 13px 6px;
  font-size: 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-hair);
}
.nav-mobile-panel a.active { color: var(--ember-400); }
.nav-mobile-panel .nav-link-btn { display: block; width: 100%; text-align: left; padding: 13px 6px; font-size: 16px; color: var(--text-secondary); border-bottom: 1px solid var(--border-hair); border-radius: 0; background: none; }
.nav-mobile-ostatni-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 13px 6px; font-size: 16px; color: var(--text-secondary); background: none; border: none;
  border-bottom: 1px solid var(--border-hair); font-family: var(--font-body); cursor: pointer;
}
.nav-mobile-ostatni-trigger svg { transition: transform .15s ease; }
.nav-mobile-ostatni-trigger.open svg { transform: rotate(180deg); }
.nav-mobile-ostatni-menu { display: none; padding-left: 14px; }
.nav-mobile-ostatni-menu.open { display: block; }
.nav-mobile-panel .nav-actions { flex-direction: column; margin-top: 14px; }
.nav-mobile-panel .btn { width: 100%; }
body.nav-open .nav-mobile-panel { display: block; }
body.nav-open .nav-burger span { transform: rotate(45deg); }
body.nav-open .nav-burger span::before { top: 0; transform: rotate(0deg); opacity: 0; }
body.nav-open .nav-burger span::after { top: 0; transform: rotate(90deg); }

@media (max-width: 1230px) {
  .nav-links { display: none; }
  .nav > .wrap > .nav-actions .discord-text,
  .nav > .wrap > .nav-actions > .btn-primary,
  .nav > .wrap > .nav-actions #navLoginBtn,
  .nav > .wrap > .nav-actions .user-menu {
    display: none;
  }
  .nav-burger { display: flex; }
}
@media (min-width: 1231px) {
  .nav-mobile-panel { display: none !important; }
}

/* ---------- page header (non-home pages) ---------- */
.page-header {
  padding: calc(var(--nav-h) + 72px) 0 64px;
  position: relative;
  text-align: center;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  top: -220px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 420px;
  background: radial-gradient(ellipse at center, rgba(255, 143, 30, 0.16), transparent 68%);
  pointer-events: none;
}
.page-header .eyebrow { justify-content: center; }
.page-header h1 { font-size: clamp(34px, 5.5vw, 56px); }
.page-header p { max-width: 560px; margin: 16px auto 0; color: var(--text-secondary); font-size: 17px; }

/* ---------- footer ---------- */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border-hair); background: var(--bg-base); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 40px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img.icon { width: 28px; height: 28px; }
.footer-brand img.wordmark { height: 16px; width: auto; }
.footer p.desc { color: var(--text-muted); font-size: 14.5px; max-width: 320px; }
.footer h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-secondary); font-size: 14.5px; transition: color .15s ease; }
.footer ul a:hover { color: var(--ember-400); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--border-hair); flex-wrap: wrap; gap: 14px; }
.footer-bottom small { color: var(--text-muted); font-size: 13px; }

/* ---------- error / no-permission pages ---------- */
.error-wrap {
  min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; position: relative; overflow: hidden;
}
.error-code {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(90px, 22vw, 200px);
  line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ember-500);
  letter-spacing: 0.02em;
}
.error-wrap h1 { margin-top: 8px; font-size: clamp(22px, 4vw, 30px); }
.error-wrap p { margin-top: 14px; color: var(--text-secondary); max-width: 420px; }
.error-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.social-row { display: flex; gap: 10px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-hair); color: var(--text-secondary);
  transition: all .15s ease;
}
.social-row a:hover { border-color: var(--ember-500); color: var(--ember-400); background: rgba(255,143,30,0.08); }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- HERO (home page) ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 90px;
  overflow: hidden;
  text-align: center;
}
.hero-bg-glow {
  position: absolute;
  top: -10%; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 720px;
  background: radial-gradient(ellipse at center, rgba(255, 143, 30, 0.20) 0%, rgba(255, 94, 26, 0.08) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero-terrain {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 260px;
  background: linear-gradient(180deg, transparent, var(--bg-void) 92%);
  z-index: 1;
  pointer-events: none;
}
.embers { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute;
  bottom: -20px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ember-400);
  box-shadow: 0 0 8px 2px rgba(255, 154, 30, 0.7);
  animation: rise linear infinite;
  opacity: 0;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  8% { opacity: 0.9; }
  90% { opacity: 0.4; }
  100% { transform: translateY(-620px) translateX(var(--drift, 30px)); opacity: 0; }
}
.hero-inner { position: relative; z-index: 2; }
.hero-icon-wrap { position: relative; display: inline-block; margin-bottom: 20px; }
.hero-icon-wrap::before {
  content: "";
  position: absolute; inset: -30px;
  background: radial-gradient(circle, rgba(255, 143, 30, 0.35), transparent 70%);
  filter: blur(6px);
  animation: pulse-glow 3.6s ease-in-out infinite;
}
@keyframes pulse-glow {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
.hero-icon-wrap img { position: relative; width: 108px; height: 108px; filter: drop-shadow(0 8px 24px rgba(255, 110, 10, 0.5)); }
.hero-wordmark { width: min(560px, 85vw); height: auto; margin: 0 auto; filter: drop-shadow(0 6px 30px rgba(255, 110, 10, 0.35)); }
.hero-inner .subtitle {
  margin: 22px auto 0;
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 18px;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 34px auto 0;
  padding: 15px 14px 15px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-deep);
}
.ip-box .ip-text { font-family: var(--font-mono); font-weight: 700; font-size: 19px; color: var(--text-primary); letter-spacing: 0.01em; }
.ip-copy {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-s);
  color: var(--ember-400);
  transition: background .15s ease, border-color .15s ease;
}
.ip-copy:hover { background: var(--bg-surface-3); border-color: var(--border-strong); }
.ip-copy svg { width: 18px; height: 18px; }

.vote-widget { margin: 22px auto 0; display: flex; justify-content: center; }
.vote-form { display: flex; gap: 10px; }
.vote-form input {
  width: 240px;
  padding: 13px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-s);
  color: var(--text-primary);
  font-size: 14.5px;
}
.vote-form input::placeholder { color: var(--text-muted); }
.vote-form input:focus { border-color: var(--border-strong); outline: none; }
.vote-hint { margin-top: 12px; font-size: 13.5px; color: var(--text-muted); }
.vote-hint a { color: var(--ember-400); border-bottom: 1px dotted var(--border-strong); }
.vote-hint a:hover { color: var(--ember-300); }

.stats-row {
  margin-top: 66px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 760px;
  margin-left: auto; margin-right: auto;
}
.stat { padding: 0 12px; border-left: 1px solid var(--border-hair); }
.stat:first-child { border-left: none; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); color: var(--ember-400); line-height: 1; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #5be07a; margin-right: 7px; box-shadow: 0 0 8px 1px #5be07a; vertical-align: middle; }
.stat .num .dot { margin-right: 7px; }
.stat .label { margin-top: 8px; font-size: 12.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
@media (max-width: 640px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); row-gap: 26px; max-width: 340px; }
  .stat:nth-child(3) { border-left: none; }
  .vote-form { flex-direction: column; }
  .vote-form input { width: 100%; }
}

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.mode-card {
  position: relative;
  padding: 0 0 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.mode-card > *:not(.mode-img) { padding-left: 32px; padding-right: 32px; }
.mode-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 24px; }
.mode-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.mode-card:hover .mode-img img { transform: scale(1.04); }
.mode-card:hover { border-color: var(--border-subtle); transform: translateY(-3px); }
.mode-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 120px;
  background: radial-gradient(ellipse 300px 120px at 20% 0%, rgba(255, 143, 30, 0.12), transparent 70%);
  pointer-events: none;
}
.mode-card .tag {
  display: inline-block; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ember-400); background: rgba(255, 143, 30, 0.1);
  border: 1px solid var(--border-subtle); padding: 5px 10px; border-radius: 6px; margin-bottom: 18px;
}
.mode-card > .tag { margin-top: 4px; }.mode-card h3 { font-size: 24px; margin-bottom: 10px; }
.mode-card p.desc { color: var(--text-secondary); font-size: 15px; margin-bottom: 22px; }
.mode-card ul.features { display: flex; flex-direction: column; gap: 11px; }
.mode-card ul.features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text-secondary); }
.mode-card ul.features svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 2px; color: var(--ember-500); }
@media (max-width: 780px) { .card-grid { grid-template-columns: 1fr; } }


/* ---------- steps (how to connect) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  padding: 30px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-m);
}
.step .step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg-surface-3); color: var(--ember-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  margin-bottom: 18px; border: 1px solid var(--border-subtle);
}
.step h4 { font-size: 17px; margin-bottom: 8px; font-family: var(--font-body); font-weight: 600; }
.step p { color: var(--text-muted); font-size: 14.5px; }
.step code { font-family: var(--font-mono); background: var(--bg-surface-3); padding: 2px 7px; border-radius: 5px; color: var(--ember-300); font-size: 13px; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---------- about section ---------- */
.about-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-copy p { color: var(--text-secondary); font-size: 16px; margin-bottom: 16px; }
.about-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hair);
  border-radius: var(--radius-l);
  padding: 34px;
}
.about-panel .row { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--border-hair); font-size: 14.5px; }
.about-panel .row:last-child { border-bottom: none; }
.about-panel .row span:first-child { color: var(--text-muted); }
.about-panel .row span:last-child { font-family: var(--font-mono); color: var(--ember-300); font-weight: 600; }
@media (max-width: 860px) { .about-layout { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- profile page ---------- */
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: center; }
.profile-side { position: static; }
.profile-btn-row { display: flex; gap: 8px; margin-top: 10px; }
.profile-btn-row .btn { margin-top: 0 !important; flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-gear {
  flex-shrink: 0; width: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: var(--radius-s);
  color: var(--text-secondary); font-size: 16px;
}
.btn-gear:hover { color: var(--ember-400); border-color: var(--border-subtle); }

.perm-modal-card { max-width: 480px; text-align: left; }
.perm-modal-card h3 { margin-bottom: 4px; }
.perm-list { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; max-height: 220px; overflow-y: auto; }
.perm-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: var(--radius-s);
}
.perm-row img { width: 26px; height: 26px; border-radius: 5px; image-rendering: pixelated; }
.perm-row span { flex: 1; font-size: 14px; }
.perm-row button { background: none; border: none; color: #ff8a8a; font-size: 13px; padding: 4px 8px; }
.perm-row button:hover { text-decoration: underline; }
.perm-add-row { display: flex; gap: 8px; margin-top: 14px; }
.perm-add-row select { flex: 1; padding: 10px 12px; background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: var(--radius-s); color: var(--text-primary); }

.ticket-perm-modal-card { max-width: 640px; }
.ticket-perm-modal-card .perm-add-row { flex-wrap: wrap; }
.ticket-perm-modal-card .perm-add-row select { flex: 1 1 200px; min-width: 200px; }
.ticket-perm-modal-card .perm-add-row button { flex: 0 0 auto; }
.ticket-perm-modal-card .perm-row span { white-space: normal; }

.profile-skin-card {
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-l);
  padding: 24px; text-align: center;
}
.profile-skin { width: 100%; max-width: 200px; margin: 0 auto; image-rendering: pixelated; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
.profile-title { font-size: 26px; margin-bottom: 22px; }
.profile-table {
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-l); padding: 8px 34px;
}
.prow { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-hair); font-size: 14.5px; flex-wrap: wrap; }
.prow:last-child { border-bottom: none; }
.prow span:first-child { color: var(--text-muted); }
.prow span:last-child { font-family: var(--font-mono); color: var(--text-primary); font-weight: 600; text-align: right; }
.ip-cell { display: inline-flex; align-items: center; gap: 10px; }
.ip-value { color: #ffffff !important; font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.5px; }
.ip-eye {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: var(--radius-s);
  background: var(--bg-surface-2); border: 1px solid var(--border-hair); color: var(--text-muted);
  flex-shrink: 0;
}
.ip-eye svg { width: 15px; height: 15px; }
.ip-eye:hover { color: var(--ember-400); border-color: var(--border-subtle); }
.prow .rank-value { color: var(--rank-color, var(--ember-400)); }
.prow .yes { color: #5be07a; }
.prow .no { color: var(--text-muted); }
@media (max-width: 760px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .profile-skin { max-width: 140px; }
  .prow { flex-direction: column; align-items: flex-start; gap: 4px; }
  .prow span:last-child { text-align: left; word-break: break-all; }
}

/* ---------- accordion (pravidla) ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.acc-item { background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-m); overflow: hidden; }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 22px 26px; background: transparent; border: none; color: var(--text-primary);
  text-align: left; font-family: var(--font-display); font-size: 18px; font-weight: 600;
}
.acc-trigger .n { font-family: var(--font-mono); color: var(--ember-500); font-size: 14px; margin-right: 14px; font-weight: 500; }
.acc-trigger .chev { flex-shrink: 0; margin-left: 16px; width: 20px; height: 20px; color: var(--text-muted); transition: transform .25s ease; }
.acc-item.open .acc-trigger .chev { transform: rotate(180deg); color: var(--ember-400); }
.acc-item.open .acc-trigger { border-bottom: 1px solid var(--border-hair); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-panel-inner { padding: 8px 26px 26px 62px; }
.acc-panel-inner ol, .acc-panel-inner ul { display: flex; flex-direction: column; gap: 11px; }
.acc-panel-inner li { color: var(--text-secondary); font-size: 15px; line-height: 1.65; padding-left: 18px; position: relative; }
.acc-panel-inner li::before { content: "—"; position: absolute; left: 0; color: var(--text-muted); }
.acc-panel-inner li b, .acc-panel-inner li strong { color: var(--ember-300); font-weight: 600; }
.acc-panel-inner p.note { margin-top: 14px; font-size: 13.5px; color: var(--text-muted); font-style: italic; }

/* ---------- toc (rules side nav) ---------- */
.rules-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.toc a {
  padding: 10px 16px; border-left: 2px solid var(--border-hair);
  font-size: 14px; color: var(--text-muted); transition: all .15s ease;
}
.toc a:hover { color: var(--text-secondary); }
.toc a.active { color: var(--ember-400); border-left-color: var(--ember-500); background: rgba(255,143,30,0.05); }
@media (max-width: 900px) { .rules-layout { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- staff / team ---------- */
.staff-group { margin-bottom: 56px; }
.staff-group h3 {
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body);
  font-weight: 700; color: var(--text-muted); margin-bottom: 22px; display: flex; align-items: center; gap: 14px;
}
.staff-group h3::after { content: ""; flex: 1; height: 1px; background: var(--border-hair); }
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.staff-card {
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-m);
  padding: 22px; text-align: center; transition: transform .18s ease, border-color .18s ease;
}
.staff-card:hover { transform: translateY(-4px); border-color: var(--border-subtle); }

/* ---------- hráč měsíce ---------- */
.pom-card {
  max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 32px;
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-l);
  padding: 32px; box-shadow: var(--shadow-deep);
}
.pom-left { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pom-skin { width: 110px; height: 165px; object-fit: cover; image-rendering: pixelated; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
.pom-countdown { text-align: center; }
.pom-countdown-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.pom-countdown-value { font-family: var(--font-mono); font-weight: 600; font-size: 13.5px; color: #A855F7; white-space: nowrap; }
.pom-info { text-align: left; }
.pom-name { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 10px 0 12px; }
.pom-info p { color: var(--text-secondary); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 640px) {
  .pom-card { flex-direction: column; text-align: center; }
  .pom-info { text-align: center; }
}
.staff-card img.skin { width: 72px; height: 108px; object-fit: cover; image-rendering: pixelated; margin: 0 auto 14px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.staff-card .name { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; }
.staff-card .role {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--rank-color, var(--ember-500));
  color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}
.role-badge {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em;
  padding: 6px 16px; border-radius: 999px;
  background: var(--rank-color, var(--ember-500)); color: #fff;
  text-shadow: 0 1px 1px rgba(0,0,0,0.25);
}
.badge-pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em;
  padding: 6px 16px; border-radius: 999px; text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}
.badge-green { background: #2fae5c; color: #fff; }
.badge-red { background: #c9403f; color: #fff; }
@media (max-width: 900px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .staff-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .staff-card { padding: 14px; } }

/* ---------- voting page ---------- */
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vote-card {
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-l);
  padding: 30px; text-align: center;
}
.vote-card .site-icon {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 18px;
  background: var(--bg-surface-3); display: flex; align-items: center; justify-content: center;
  color: var(--ember-400); border: 1px solid var(--border-subtle);
}
.vote-card h4 { font-size: 18px; margin-bottom: 8px; }
.vote-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; min-height: 42px; }
@media (max-width: 780px) { .vote-grid { grid-template-columns: 1fr; } }

.reward-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.reward-card { background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-m); padding: 24px; }
.reward-card .thresh { font-family: var(--font-mono); color: var(--ember-400); font-size: 13px; margin-bottom: 8px; }
.reward-card h4 { font-size: 16px; margin-bottom: 6px; }
.reward-card p { color: var(--text-muted); font-size: 13.5px; }
@media (max-width: 780px) { .reward-list { grid-template-columns: 1fr; } }

/* ---------- shop ---------- */
.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.shop-side {
  display: flex; flex-direction: column; gap: 10px;
}
.wiki-side {
  position: sticky; top: calc(var(--nav-h) + 24px); align-self: start;
}
.wiki-side .shop-sidebar {
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: var(--bg-surface-3) transparent;
}
.wiki-side .shop-sidebar::-webkit-scrollbar { width: 8px; }
.wiki-side .shop-sidebar::-webkit-scrollbar-thumb { background: var(--bg-surface-3); border-radius: 20px; }
.wiki-side .shop-sidebar::-webkit-scrollbar-track { background: transparent; }
.shop-sidebar {
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-m);
  padding: 10px; display: flex; flex-direction: column; gap: 2px;
  scrollbar-width: thin; scrollbar-color: var(--bg-surface-3) transparent;
}
.shop-sidebar::-webkit-scrollbar { width: 8px; }
.shop-sidebar::-webkit-scrollbar-thumb { background: var(--bg-surface-3); border-radius: 20px; }
.shop-sidebar::-webkit-scrollbar-track { background: transparent; }
.btn-gray { background: var(--bg-surface-3); border: 1px solid var(--border-hair); color: var(--text-secondary); }

/* ---------- zákazník měsíce ---------- */
.com-card {
  border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--border-hair);
  background: var(--bg-surface);
}
.com-banner {
  padding: 10px 14px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  background: linear-gradient(180deg, var(--ember-400), var(--ember-600));
  color: #1c0f03; text-shadow: none;
}
.com-body { padding: 16px; text-align: center; }
.com-skin { width: 56px; height: 84px; object-fit: cover; image-rendering: pixelated; margin: 0 auto 10px; filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5)); transition: transform .2s ease; }
.com-card:hover .com-skin { transform: scale(1.12); }
.com-name { font-family: var(--font-display); font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.com-body p { color: var(--text-secondary); font-size: 12.5px; line-height: 1.5; }
.btn-gray:hover { background: var(--bg-surface-2); color: var(--text-primary); }
.shop-sponsors-btn.active { background: var(--bg-surface-2); border-color: var(--border-subtle); color: var(--text-primary); }
.shop-cat {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: var(--radius-s);
  font-size: 14.5px; font-weight: 500; color: var(--text-secondary);
  border: none; background: transparent; text-align: left; width: 100%; cursor: pointer;
}
.shop-cat:hover { background: rgba(255,255,255,0.03); color: var(--text-primary); }
.shop-cat.active { background: var(--bg-surface-3); color: var(--ember-300); border: 1px solid var(--border-subtle); }
.cenik-side .shop-cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 0; }
.cenik-side .shop-cat-label { flex-shrink: 0; }
.cenik-side .shop-sidebar { max-height: 603px; overflow-y: auto; }
@media (min-width: 701px) {
  .cenik-layout { grid-template-columns: 280px 1fr; }
}
.shop-cat-label {
  padding: 16px 14px 6px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-muted);
}
.shop-cat-label:first-child { padding-top: 4px; }
.wiki-pane-card {
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-l);
  padding: 36px; max-width: 900px;
}
.wiki-pane-card h2 { font-size: 24px; margin-bottom: 18px; }
.wiki-pane-card .wiki-heading { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); margin: 28px 0 12px; }
.wiki-pane-card h3.wiki-heading { font-size: 26px; }
.wiki-pane-card h4.wiki-heading { font-size: 19px; }
.wiki-pane-card h5.wiki-heading { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.wiki-pane-card .wiki-hr { border: none; height: 1px; background: linear-gradient(90deg, transparent, var(--border-hair) 15%, var(--border-hair) 85%, transparent); margin: 28px 0; }

/* ---------- VIP výhody — porovnávací tabulka ---------- */
.vip-table-wrap {
  overflow-x: auto; border-radius: var(--radius-l); border: 1px solid var(--border-hair);
  background: var(--bg-surface);
}
.vip-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.vip-table th, .vip-table td { padding: 16px 18px; text-align: center; }
.vip-table thead th {
  background: var(--bg-surface-2); font-family: var(--font-display); font-weight: 700; font-size: 14px;
  border-bottom: 1px solid var(--border-hair);
}
.vip-th-label, .vip-td-label { text-align: left !important; color: var(--text-primary); font-weight: 600; font-size: 14px; }
.vip-table thead .vip-th-label { color: var(--ember-400); }
.vip-table tbody tr { border-top: 1px solid var(--border-hair); }
.vip-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.015); }
.vip-yes { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(91,224,122,0.15); color: #5be07a; font-size: 14px; }
.vip-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(255,90,90,0.12); color: #ff6a6a; font-size: 14px; }
.vip-text { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-secondary); white-space: normal; word-break: break-word; }
.vip-category-row td { background: var(--bg-surface-3); color: var(--ember-400); font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; text-align: left !important; padding: 10px 18px; }

/* ---------- Ceník ---------- */
.cenik-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.cenik-crate-card { background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-l); padding: 24px; max-width: 620px; }
.cenik-crate-card h2 { font-size: 19px; text-align: center; margin-bottom: 14px; }
.cenik-crate-img { width: 100%; max-width: 100%; height: auto; border-radius: var(--radius-m); margin-bottom: 16px; }
.cenik-group-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ember-400); margin: 16px 0 8px; }
.cenik-group-label:first-of-type { margin-top: 0; }
.cenik-item-list { display: flex; flex-direction: column; gap: 6px; }
.cenik-item-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; background: var(--bg-surface-2); border-radius: var(--radius-s); flex-wrap: wrap; }
.cenik-item-name { font-size: 13.5px; color: var(--text-primary); font-weight: 500; }
.cenik-item-price { font-size: 12px; font-family: var(--font-mono); color: var(--text-secondary); white-space: nowrap; }
.cenik-item-price b { color: #ffffff; }

/* ---------- Ceník admin (nový design) ---------- */
.cenik-admin-shell { display: grid; grid-template-columns: 280px 1fr; min-height: 70vh; border: 1px solid var(--border-hair); border-radius: var(--radius-l); overflow: hidden; margin-top: 8px; }
.cenik-admin-shell-3col { display: grid; grid-template-columns: 260px 1fr; grid-template-rows: auto auto; min-height: 70vh; border: 1px solid var(--border-hair); border-radius: var(--radius-l); overflow: hidden; margin-top: 8px; }
.cenik-admin-shell-3col .admin-sidebar { grid-column: 1; grid-row: 1 / 3; }
.cenik-admin-shell-3col .preview-pane { grid-column: 2; grid-row: 1; border-right: none; border-bottom: 1px solid var(--border-hair); max-height: 340px; overflow-y: auto; }
.cenik-admin-shell-3col .cenik-detail-pane { grid-column: 2; grid-row: 2; }
.cenik-detail-pane { padding: 24px 28px; overflow-y: auto; max-height: 80vh; }
.cenik-crate-head-row { display: flex; gap: 14px; align-items: flex-end; }
.cenik-crate-head-row input[type="color"] { width: 100%; height: 42px; padding: 4px; border-radius: var(--radius-s); border: 1px solid var(--border-hair); background: var(--bg-surface-2); cursor: pointer; }
.cenik-preview-strip { margin-top: 18px; }
.cenik-discord-preview {
  background: #2b2d31; border-left: 4px solid #FF9A00; border-radius: 4px; padding: 14px 16px; max-width: 480px;
}
.cenik-discord-preview-title { color: #f2f3f5; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.cenik-discord-preview-group { color: #949ba4; font-weight: 700; font-size: 12px; text-transform: uppercase; margin: 10px 0 4px; text-decoration: underline; }
.cenik-discord-preview-item { color: #dbdee1; font-size: 12.5px; line-height: 1.6; }
.cenik-discord-preview-item code { background: rgba(255,255,255,0.06); padding: 1px 4px; border-radius: 3px; font-family: var(--font-mono); font-size: 11.5px; color: #ffffff; }
.cenik-discord-preview-img { max-width: 100%; border-radius: 4px; display: block; margin-top: 10px; }

/* ---------- Administrace hub ---------- */
.admin-hub-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: 900px; margin: 0 auto; }
.admin-hub-card { flex: 0 1 260px; min-width: 220px; }
.admin-hub-card { position: relative; background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-l); transition: transform .15s ease, border-color .15s ease; }
.admin-hub-card:hover { transform: translateY(-3px); border-color: var(--border-subtle); }
.admin-hub-card-link { display: block; padding: 28px 24px; text-align: center; }
.admin-hub-icon { font-size: 32px; margin-bottom: 12px; }
.admin-hub-card h3 { font-size: 17px; margin-bottom: 6px; }
.admin-hub-card p { font-size: 13px; color: var(--text-secondary); }
.admin-hub-gear { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; }

/* ---------- Ceník: webhook nastavení ---------- */
.cenik-webhook-row { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.cenik-webhook-row .btn { width: 100%; }
#webhookEditRow { margin-top: 8px; }
#webhookInput { width: 100%; padding: 8px 10px; background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: var(--radius-s); color: var(--text-primary); font-size: 12px; font-family: var(--font-mono); }
.cenik-items-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cenik-items-head h3 { font-size: 16px; }
.cenik-group-block { margin-bottom: 20px; }
.cenik-group-block-head {
  display: flex; align-items: center; gap: 8px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ember-400);
  margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border-hair);
  cursor: pointer; user-select: none;
}
.cenik-group-block-head .btn-gear { width: 22px; height: 22px; font-size: 13px; flex-shrink: 0; }
.cenik-group-block-head-title { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.cenik-group-toggle {
  width: 16px; height: 16px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  transition: transform .18s ease; color: var(--text-muted); font-size: 10px;
}
.cenik-group-block.collapsed .cenik-group-toggle { transform: rotate(-90deg); }
.cenik-group-block.collapsed .cenik-item-row-labels,
.cenik-group-block.collapsed .cenik-item-row:not(.cenik-item-row-labels) { display: none; }
.cenik-item-row { display: flex; gap: 8px; margin-bottom: 6px; align-items: center; }
.cenik-item-row-labels { margin-bottom: 4px; }
.cenik-item-row-labels span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); padding: 0 10px; }
.cenik-item-name-input { flex: 2; }
.cenik-item-price-input { flex: 1; }
.cenik-item-row input {
  padding: 8px 10px; background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: var(--radius-s);
  color: var(--text-primary); font-size: 13px;
}
.cenik-item-del { flex-shrink: 0; width: 30px; height: 30px; background: none; border: 1px solid var(--border-hair); border-radius: var(--radius-s); color: #ff8a8a; }
.cenik-item-del:hover { background: rgba(255,90,90,0.1); }
.cenik-preview-modal-card {
  position: relative; width: 100%; max-width: 560px; text-align: left;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l); padding: 28px 28px 24px;
  box-shadow: var(--shadow-deep); max-height: 82vh; overflow-y: auto;
}
.cenik-preview-modal-card h3 { font-size: 19px; margin-bottom: 18px; padding-right: 40px; }
.cenik-preview-modal-card h3 span { color: var(--ember-400); }
.nabor-submission-modal-card { max-width: 780px; }
.admin-sidebar .shop-cat-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cenik-cat-del {
  background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 11px;
  width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; border-radius: 4px; flex-shrink: 0;
}
.cenik-cat-del:hover { color: #ff8a8a; background: rgba(255,90,90,0.1); }
@media (max-width: 900px) {
  .cenik-admin-shell { grid-template-columns: 1fr; }
  .cenik-admin-shell-3col { grid-template-columns: 1fr; }
  .cenik-admin-shell-3col .admin-sidebar { grid-row: auto; }
  .cenik-admin-shell-3col .preview-pane { grid-column: 1; grid-row: auto; display: none; }
  .cenik-admin-shell-3col .cenik-detail-pane { grid-column: 1; grid-row: auto; }
  .admin-sidebar { display: none; }
  .admin-sidebar.open { display: block; }
}

.vip-cmd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.vip-cmd-col h4 { font-family: var(--font-display); font-size: 15px; margin-bottom: 12px; }
.vip-cmd-item { font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-s); padding: 8px 10px; margin-bottom: 6px; }

.wiki-pane-card p { color: var(--text-secondary); font-size: 15.5px; margin-bottom: 14px; }
.wiki-pane-card p:last-child { margin-bottom: 0; }
.wiki-pane-card .wiki-gap { display: block; width: 100%; }
.wiki-pane-card ul { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.wiki-pane-card li { color: var(--text-secondary); font-size: 15px; padding-left: 20px; position: relative; }
.wiki-pane-card ul li::before { content: "•"; position: absolute; left: 2px; color: var(--text-muted); }
.wiki-pane-card ol {
  display: flex; flex-direction: column; gap: 10px; margin: 16px 0; padding-left: 22px;
  color: var(--text-secondary); font-size: 15px; counter-reset: wiki-ol;
}
.wiki-pane-card ol li { padding-left: 6px; }
.wiki-pane-card .wiki-sublist {
  display: flex; flex-direction: column; gap: 8px; list-style: none;
  margin: 10px 0 0; padding-left: 24px;
}
.wiki-pane-card .wiki-sublist li { padding-left: 18px; position: relative; font-size: 14.5px; }
.wiki-pane-card .wiki-sublist li::before { content: "•"; position: absolute; left: 2px; color: var(--text-muted); }
.wiki-pane-card ol li::marker { color: var(--text-muted); font-weight: 400; }
.wiki-pane-card blockquote {
  margin: 16px 0; padding: 4px 20px; border-left: 3px solid var(--ember-500);
  color: var(--text-secondary); font-style: italic;
}
.wiki-pane-card code {
  font-family: var(--font-mono); background: var(--bg-surface-3); border: 1px solid var(--border-hair);
  border-radius: 5px; padding: 2px 8px; font-size: 0.9em; color: var(--ember-300);
}
.wiki-pane-card u { text-decoration-color: var(--ember-500); }
.wiki-pane-card s { color: var(--text-muted); }
.wiki-pane-card a { color: var(--ember-400); text-decoration: underline; text-underline-offset: 2px; }
.wiki-pane-card a:hover { color: var(--ember-300); }
.wiki-pane-card .spoiler {
  background: var(--bg-surface-3); color: transparent; border-radius: 4px; cursor: pointer;
  transition: color .1s ease; padding: 0 2px;
}
.wiki-pane-card .spoiler.revealed { color: var(--text-secondary); background: transparent; outline: 1px solid var(--border-hair); }
.shop-pane { display: none; }
.shop-pane.active { display: block; }
.shop-info {
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-l);
  padding: 36px; line-height: 1.75;
}
.shop-info h2 { font-size: 24px; margin-bottom: 20px; }
.shop-info ul { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.shop-info li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-secondary); font-size: 15px; }
.shop-info li b { color: var(--text-primary); }
.shop-info .emoji { font-size: 19px; flex-shrink: 0; }
.shop-warning {
  background: var(--bg-surface-2); border-left: 3px solid #ff5a5a; border-radius: var(--radius-s);
  padding: 18px 22px; margin-bottom: 8px; color: var(--text-secondary); font-size: 14.5px;
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.product-card {
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-m);
  padding: 20px; text-align: center; display: flex; flex-direction: column;
  transition: border-color .18s ease, transform .18s ease;
}
.product-card:hover { border-color: var(--border-subtle); transform: translateY(-3px); }
.product-card img {
  width: 100%; aspect-ratio: 1/1; object-fit: contain; background: var(--bg-surface-2);
  border-radius: var(--radius-s); padding: 14px; box-sizing: border-box; margin-bottom: 14px;
}
.product-card h3 { font-size: 15px; font-weight: 600; font-family: var(--font-body); margin-bottom: 4px; }
.product-card .price { font-family: var(--font-mono); font-size: 13px; color: var(--ember-400); margin-bottom: 14px; }
.pay-row { display: flex; gap: 8px; margin-top: auto; }
.pay-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 6px; border-radius: var(--radius-s); border: 1px solid var(--border-hair);
  background: var(--bg-surface-2); color: var(--text-secondary); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all .15s ease;
}
.pay-btn:hover { border-color: var(--ember-500); color: var(--ember-300); background: rgba(255,143,30,0.08); }
.pay-btn img { width: 16px; height: auto; border-radius: 2px; }
.pay-btn .flag-icon { width: 17px; height: auto; border-radius: 2px; flex-shrink: 0; }
@media (max-width: 700px) {
  .shop-layout { grid-template-columns: 1fr; min-width: 0; }
  .shop-side { min-width: 0; }
  .wiki-side { position: static; }
  .wiki-side .shop-sidebar { max-height: none; overflow-y: visible; }
  .shop-sidebar { flex-direction: row; overflow-x: auto; min-width: 0; }
  .shop-main { min-width: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) { .product-grid { grid-template-columns: 1fr; } }

/* ---------- name-entry modal (shop checkout) ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(8, 5, 3, 0.72); backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-card {
  position: relative; width: 100%; max-width: 380px; text-align: center;
  background: var(--bg-surface); border: 1px solid var(--border-subtle);
  border-radius: var(--radius-l); padding: 38px 32px 32px; box-shadow: var(--shadow-deep);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  border-radius: var(--radius-s); background: var(--bg-surface-3); border: 1px solid var(--border-hair);
  color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
  font-size: 18px; line-height: 1; cursor: pointer;
}
.modal-close:hover { color: var(--text-primary); border-color: var(--border-subtle); }
.modal-card h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: 0.02em; }
.modal-label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
}
.modal-card input {
  width: 100%; padding: 14px 16px; text-align: center; margin-bottom: 22px;
  background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: var(--radius-s);
  color: var(--text-primary); font-size: 15px;
}
.modal-card input:focus { outline: none; border-color: var(--border-strong); }
.modal-card input::placeholder { color: var(--text-muted); }

/* ---------- wiki ---------- */
.wiki-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.wiki-nav { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.wiki-nav a { padding: 9px 14px; border-radius: 8px; font-size: 14px; color: var(--text-muted); }
.wiki-nav a:hover { color: var(--text-secondary); background: rgba(255,255,255,0.02); }
.wiki-nav a.active { color: var(--ember-400); background: rgba(255,143,30,0.08); }
.wiki-article { max-width: 720px; }
.wiki-article h2 { font-size: 26px; margin: 46px 0 16px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.wiki-article h2:first-child { margin-top: 0; }
.wiki-article p { color: var(--text-secondary); margin-bottom: 14px; font-size: 15.5px; }
.wiki-article ul { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.wiki-article li { color: var(--text-secondary); font-size: 15px; padding-left: 20px; position: relative; }
.wiki-article li::before { content: "▸"; position: absolute; left: 0; color: var(--ember-500); }
.wiki-callout {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-left: 3px solid var(--ember-500);
  border-radius: var(--radius-s); padding: 16px 20px; margin: 20px 0; font-size: 14.5px; color: var(--text-secondary);
}
.wiki-callout b { color: var(--ember-300); }
.kbd { font-family: var(--font-mono); background: var(--bg-surface-3); border: 1px solid var(--border-hair); border-radius: 5px; padding: 2px 8px; font-size: 13px; color: var(--ember-300); }
.wiki-article figure { margin: 18px 0; border-radius: var(--radius-m); overflow: hidden; border: 1px solid var(--border-hair); }
.wiki-article figure img { width: 100%; display: block; }
.wiki-stub { color: var(--text-muted); font-size: 14px; font-style: italic; }
@media (max-width: 900px) { .wiki-layout { grid-template-columns: 1fr; } .wiki-nav { display: none; } }

/* ---------- CTA band ---------- */
.cta-band {
  margin: 0 28px;
  max-width: calc(var(--container) - 56px);
  margin-left: auto; margin-right: auto;
  padding: 56px 48px;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--bg-surface-2), var(--bg-surface));
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; top: -60%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,143,30,0.18), transparent 70%);
}
.cta-band h3 { font-size: 26px; margin-bottom: 8px; position: relative; }
.cta-band p { color: var(--text-secondary); font-size: 15px; position: relative; }
.cta-band .btn { position: relative; flex-shrink: 0; }
@media (max-width: 700px) { .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; } }

/* ---------- animate on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Nábory ---------- */
.nabor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.nabor-card {
  background: var(--bg-surface); border: 1px solid var(--border-subtle); border-left: 3px solid var(--ember-400);
  border-radius: var(--radius-l); padding: 20px; display: flex; flex-direction: column;
}
.nabor-card-desc { flex: 1; }
.nabor-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.nabor-card-emoji { font-size: 20px; }
.nabor-card-title { font-weight: 700; font-size: 16px; flex: 1; }
.nabor-status { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-family: var(--font-mono); }
.nabor-status-open { background: rgba(34,197,94,0.15); color: #4ee85a; }
.nabor-status-closed { background: rgba(226,75,74,0.15); color: #ff6b6b; }
.nabor-form { max-width: 620px; margin: 0 auto; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-l); padding: 28px; }
.nabor-success-card { display: flex; align-items: center; }
.nabor-success-row { display: flex; align-items: center; gap: 10px; }
.nabor-success-icon { font-size: 18px; flex-shrink: 0; }
.nabor-success-text { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.nabor-form-img { width: 100%; border-radius: var(--radius-m); margin-bottom: 20px; display: block; }
.nabor-lore { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 24px; white-space: pre-wrap; }
.nabor-question { border-top: 1px solid var(--border-hair); padding-top: 16px; margin-top: 16px; }
.nabor-question:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.nabor-question label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.nabor-question textarea.nabor-answer-input {
  width: 100%; background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: var(--radius-s);
  padding: 10px 12px; color: var(--text-primary); font-family: inherit; font-size: 13.5px; resize: vertical;
}
.nabor-radio-option { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; font-size: 13.5px; color: var(--text-secondary); margin-bottom: 8px; cursor: pointer; }
.nabor-radio-option input { accent-color: var(--ember-400); }
.nabor-question input[type="file"] { font-size: 13px; color: var(--text-secondary); }
.nabor-file-status { display: block; margin-top: 6px; }
.nabor-file-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.nabor-file-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nabor-file-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 220px;
  background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: 20px;
  padding: 4px 6px 4px 12px; font-size: 12.5px; color: var(--text-secondary);
}
.nabor-file-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nabor-file-chip-remove {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255,255,255,0.08); color: var(--text-secondary); font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.nabor-file-chip-remove:hover { background: #e24b4a; color: #fff; }
.nabor-eval-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.nabor-eval-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: 20px;
  padding: 6px 14px; font-size: 13px; color: var(--text-muted);
}
.nabor-eval-chip.selected {
  background: rgba(255, 143, 30, 0.12); border-color: var(--ember-500); color: var(--ember-300); font-weight: 600;
}
.nabor-eval-unanswered { color: var(--text-muted); font-size: 13px; font-style: italic; margin-top: 4px; }
.nabor-form-title { font-size: 19px; font-weight: 700; margin-bottom: 18px; }
.nabor-back { display: inline-block; color: var(--text-secondary); font-size: 13px; margin-bottom: 18px; text-decoration: none; }
.nabor-back:hover { color: var(--text-primary); }
.nabor-page-counter { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.05em; margin-top: 14px; text-align: center; }
.nabor-form-questions { margin-top: 20px; }
.nabor-page-nav { display: flex; gap: 10px; margin-top: 20px; }
.nabor-page-nav .btn { margin-top: 0; }
#naborFormStatus { display: block; margin-top: 10px; margin-left: 0; }
.nabor-page-error { display: block; margin-top: 10px; margin-left: 0; }
.nabor-page-title { font-size: 16px; font-weight: 700; margin: 0 0 4px; padding-top: 4px; }
.nabor-page-desc { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.nabor-next-page-btn { margin-top: 20px; }
.nabor-toast {
  position: fixed; top: 84px; right: 20px; z-index: 300;
  background: var(--bg-surface-2); border: 1px solid var(--border-subtle); border-left: 3px solid var(--ember-400);
  border-radius: var(--radius-s); padding: 14px 16px; display: flex; align-items: center; gap: 14px;
  font-size: 13.5px; color: var(--text-primary); box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: nabor-toast-in .25s ease; max-width: 360px;
}
.nabor-toast button {
  background: none; border: none; color: #e24b4a; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; flex-shrink: 0;
}
.nabor-toast button:hover { color: #ff6b6b; }
.nabor-toast-out { animation: nabor-toast-out .25s ease forwards; }
@keyframes nabor-toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes nabor-toast-out { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }
.nabor-card-img { width: 100%; border-radius: var(--radius-s); margin-top: 14px; display: block; }
.nabor-card-desc { color: var(--text-secondary); font-size: 13px; line-height: 1.5; margin-bottom: 16px; }
.nabor-card-desc p { margin: 0 0 8px; }
.nabor-card-desc p:last-child { margin-bottom: 0; }
.nabor-form .wiki-pane-card { background: none; border: none; padding: 0; max-width: none; }
.nabor-card-desc.wiki-pane-card { background: none; border: none; padding: 0; max-width: none; }
.nabor-card-desc.wiki-pane-card .wiki-heading { font-size: 15px !important; margin: 10px 0 6px !important; }
.nabor-card-desc.wiki-pane-card p { font-size: 13px; }
.nabor-closed-btn { background: rgba(226,75,74,0.12); border: 1px solid rgba(226,75,74,0.35); color: #ff6b6b; cursor: not-allowed; }

/* ---------- Nábory admin: záložky ---------- */
.nabor-tabs { display: flex; gap: 8px; margin-bottom: 22px; border-bottom: 1px solid var(--border-hair); }
.nabor-tab {
  background: none; border: none; color: var(--text-secondary); font-size: 14px; font-weight: 600;
  padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nabor-tab:hover { color: var(--text-primary); }
.nabor-tab.active { color: var(--ember-400); border-bottom-color: var(--ember-400); }
.nabor-tab span { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* ---------- Nábory admin: odpovědi uchazečů ---------- */
.nabor-submission-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-surface-2);
  border: 1px solid var(--border-hair); border-radius: var(--radius-s); margin-bottom: 8px; cursor: pointer;
}
.nabor-submission-row:hover { border-color: var(--border-subtle); }
.nabor-submission-avatar { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; }
.nabor-submission-name { font-weight: 700; font-size: 14px; flex: 1; }
.nabor-submission-date { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.nabor-submission-result { font-size: 11px; padding: 3px 9px; border-radius: 20px; font-family: var(--font-mono); }
.nabor-submission-result.passed { background: rgba(34,197,94,0.15); color: #4ee85a; }
.nabor-submission-result.failed { background: rgba(226,75,74,0.15); color: #ff6b6b; }
.nabor-submission-result.none { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.nabor-submission-del {
  background: none; border: none; color: var(--text-muted); font-size: 15px; cursor: pointer; padding: 4px; flex-shrink: 0;
}
.nabor-submission-del:hover { color: #ff6b6b; }
.nabor-answer-block { padding: 14px 0; border-top: 1px solid var(--border-hair); }
.nabor-answer-block:first-child { border-top: none; }
.nabor-answer-q { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.nabor-answer-a { color: var(--text-secondary); font-size: 16px; line-height: 1.5; }

/* Ticket systém */
.tk-unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #e24b4a; margin-left: 6px; vertical-align: middle; }
.nav-user-btn { position: relative; }
.nav-ticket-dot { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: #e24b4a; border: 2px solid var(--bg-void); }
.tk-thread-box { background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-l); padding: 20px; }
.tk-thread { display: flex; flex-direction: column; gap: 16px; max-height: 540px; overflow-y: auto; padding-right: 6px; scroll-behavior: smooth; }
.tk-thread::-webkit-scrollbar { width: 6px; }
.tk-thread::-webkit-scrollbar-track { background: transparent; }
.tk-thread::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 3px; }
.tk-msg { display: flex; gap: 12px; align-items: flex-start; }
.tk-msg-avatar { width: 60px; height: 90px; object-fit: contain; border-radius: 6px; image-rendering: pixelated; flex-shrink: 0; }
.tk-msg-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; }
.tk-msg-rank-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.tk-msg-body { flex: 1; min-width: 0; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-m); padding: 10px 14px; }
.tk-msg.staff .tk-msg-body { background: rgba(255, 94, 26, 0.07); border-color: rgba(255,94,26,0.18); }
.tk-msg-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; flex-wrap: wrap; }
.tk-msg-rank { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; background: rgba(255,255,255,0.08); }
.tk-msg-name { font-weight: 700; font-size: 14px; }
.tk-msg-date { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); margin-left: auto; }
.tk-msg-text { font-size: 14px; color: var(--text-secondary); white-space: pre-wrap; line-height: 1.55; }

.tk-detail-layout { display: flex; gap: 24px; align-items: flex-start; flex-wrap: nowrap; width: 100%; }
.tk-detail-main { flex: 1 1 0; min-width: 0; overflow: hidden; }
.tk-info-panel { width: 220px; min-width: 220px; max-width: 220px; background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: var(--radius-m); padding: 18px; font-size: 13.5px; flex-shrink: 0; }
.tk-info-panel div { margin-bottom: 12px; }
.tk-info-panel div:last-child { margin-bottom: 0; }
.tk-info-panel b { display: block; color: var(--text-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 3px; }

.tk-admin-table { display: flex; flex-direction: column; gap: 6px; }
.tk-admin-row {
  display: grid; grid-template-columns: 28px 50px 1fr 1fr 110px 130px 70px auto;
  align-items: center; gap: 10px; padding: 10px 12px; background: var(--bg-surface-2);
  border: 1px solid var(--border-hair); border-radius: var(--radius-s); font-size: 13px;
}
.tk-admin-checkbox { display: flex; align-items: center; justify-content: center; }
.tk-admin-checkbox input { width: auto; }

.tk-page-title-btn { display: inline-block; background: var(--ember-500); color: #241304; font-weight: 700; padding: 12px 28px; border-radius: var(--radius-m); font-size: 15px; letter-spacing: 0.02em; }
.tk-info-banner { background: var(--bg-surface-2); border-left: 3px solid var(--ember-500); border-radius: var(--radius-s); padding: 12px 16px; font-size: 13px; color: var(--text-secondary); margin: 18px 0; }
.tk-table-wrap { border-radius: var(--radius-m); border: 1px solid var(--border-hair); overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.tk-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.tk-table th { background: var(--bg-surface-2); color: var(--ember-400); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; padding: 13px 16px; text-align: left; white-space: normal; border-bottom: 2px solid var(--ember-500); }
.tk-table th:first-child { width: 36px; }
.tk-table td { padding: 15px 16px; border-top: 1px solid var(--border-hair); color: var(--text-secondary); }
.tk-table td:last-child { white-space: nowrap; }
.tk-table tbody tr:nth-child(even) { background: var(--bg-surface-2); }
.tk-table tbody tr:hover { background: var(--bg-surface-3); }
.tk-table td input[type="checkbox"] { width: auto; }
.tk-status-pill { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-family: var(--font-mono); white-space: nowrap; }
.tk-status-pill.waiting { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.tk-status-pill.inprogress { background: rgba(77,166,255,0.15); color: #4ea6ff; }
.tk-status-pill.resolved { background: rgba(78,232,90,0.15); color: #4ee85a; }
.tk-status-pill.closed { background: rgba(226,75,74,0.15); color: #ff6b6b; }
.tk-newmsg-badge { font-size: 11px; padding: 3px 10px; border-radius: 20px; font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.tk-newmsg-badge.yes { background: rgba(78,232,90,0.15); color: #4ee85a; }
.tk-newmsg-badge.no { background: rgba(226,75,74,0.15); color: #ff6b6b; }
.tk-player-cell { display: inline-flex; align-items: center; gap: 8px; }
.tk-player-avatar { width: 22px; height: 22px; border-radius: 5px; image-rendering: pixelated; flex-shrink: 0; }
.tk-attach-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0 56px; }
.tk-attach-thumb { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--border-hair); }
.tk-attach-file { display: flex; align-items: center; padding: 10px 14px; background: var(--bg-surface-2); border: 1px solid var(--border-hair); border-radius: var(--radius-s); font-size: 13px; color: var(--text-secondary); text-decoration: none; }
.tk-reply-field { position: relative; }
.tk-attach-plus {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--bg-surface-3); border: 1px solid var(--border-hair); color: var(--text-primary);
  font-size: 19px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  vertical-align: middle;
}
.tk-attach-plus:hover { background: var(--ember-500); color: #241304; border-color: var(--ember-500); }
.tk-attach-count { font-size: 12px; color: var(--text-muted); vertical-align: middle; margin-left: 6px; }
.tk-action-link { color: var(--ember-400); cursor: pointer; font-weight: 600; text-decoration: none; }
.tk-action-link:hover { text-decoration: underline; }
.tk-action-sep { color: var(--text-muted); margin: 0 4px; }
.tk-pill-btn {
  background: #f2f2f2; color: #1a1a1a; border: none; border-radius: 20px;
  padding: 5px 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.tk-pill-btn:hover { background: #ffffff; }

@media (max-width: 700px) {
  .tk-table-wrap { overflow: visible; border: none; }
  .tk-table { min-width: 0; display: block; }
  .tk-table thead { display: none; }
  .tk-table tbody { display: flex; flex-direction: column; gap: 12px; }
  .tk-table tr {
    display: flex; flex-direction: column; gap: 10px; background: var(--bg-surface-2);
    border: 1px solid var(--border-hair); border-radius: var(--radius-m); padding: 16px;
  }
  .tk-table td {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0; border-top: none; text-align: right;
  }
  .tk-table td[data-label]::before {
    content: attr(data-label); font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--text-muted); text-align: left;
  }
  .tk-table td[data-label="Akce"] { border-top: 1px solid var(--border-hair); padding-top: 10px; margin-top: 4px; }
}
.tk-back-link { color: var(--ember-400); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.tk-back-link:hover { text-decoration: underline; }
.tk-toast {
  position: fixed; top: 20px; left: 20px; background: var(--bg-surface-2); border: 1px solid var(--border-strong);
  color: var(--text-primary); padding: 12px 20px; border-radius: var(--radius-m); font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-ember); z-index: 9999; opacity: 0; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.tk-toast.show { opacity: 1; transform: translateY(0); }
.tk-stats-row { margin-bottom: 0; }
.tk-stats-toggle { display: flex; gap: 8px; margin-bottom: 12px; }
.tk-stats-toggle-btn { background: var(--bg-surface-2); border: 1px solid var(--border-hair); color: var(--text-muted); padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.tk-stats-toggle-btn.active { background: var(--ember-500); color: #241304; border-color: var(--ember-500); }
.tk-stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.tk-stat-card { background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-m); padding: 16px 18px; border-left: 3px solid var(--text-muted); }
.tk-stat-card.total { border-left-color: var(--ember-500); }
.tk-stat-card.waiting { border-left-color: #9a9a9a; }
.tk-stat-card.inprogress { border-left-color: #4ea6ff; }
.tk-stat-card.resolved { border-left-color: #4ee85a; }
.tk-stat-card.closed { border-left-color: #ff6b6b; }
.tk-stat-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.tk-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.tk-tabs { display: flex; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border-hair); }
.tk-tab { background: none; border: none; border-bottom: 2px solid transparent; color: var(--text-muted); padding: 10px 4px; margin-right: 22px; font-size: 14px; font-weight: 600; cursor: pointer; }
.tk-tab.active { color: var(--ember-400); border-bottom-color: var(--ember-500); }
.tk-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; }
.tk-pagination button { background: var(--bg-surface-2); border: 1px solid var(--border-hair); color: var(--text-secondary); width: 32px; height: 32px; border-radius: var(--radius-s); cursor: pointer; font-size: 13px; }
.tk-pagination button.active { background: var(--ember-500); color: #241304; border-color: var(--ember-500); font-weight: 700; }
.tk-pagination button:disabled { opacity: 0.35; cursor: default; }
.nabor-eval-row { display: flex; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border-hair); }
.nabor-unread-badge {
  background: #ed4245; color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
  min-width: 18px; height: 18px; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  padding: 0 5px; flex-shrink: 0; margin-left: auto;
}

/* ---------- Nábory admin: otázky (větší karty, přetahovatelné) ---------- */
.nabor-question-card {
  display: flex; gap: 12px; align-items: flex-start; background: var(--bg-surface-2);
  border: 1px solid var(--border-hair); border-radius: var(--radius-m); padding: 20px; margin-bottom: 16px;
}
.nabor-question-card.dragging { opacity: 0.4; }
.nabor-question-card.drag-over-top { border-top: 2px solid var(--ember-500); }
.nabor-question-card.drag-over-bottom { border-bottom: 2px solid var(--ember-500); }
.nabor-question-drag { cursor: grab; color: var(--text-muted); font-size: 18px; padding-top: 10px; user-select: none; }
.nabor-question-inner { flex: 1; min-width: 0; }
.nabor-question-inner .nabor-q-text {
  width: 100%; font-size: 17px; font-weight: 600; padding: 10px 4px; background: none; border: none;
  border-bottom: 1px solid var(--border-hair); color: var(--text-primary);
}
.nabor-question-inner .nabor-q-text:focus { outline: none; border-bottom-color: var(--ember-400); }
.nabor-section-card { background: rgba(255,154,0,0.06); border-color: rgba(255,154,0,0.25); padding: 12px 16px; }
.nabor-section-card .nabor-q-text { font-size: 14px; font-weight: 400; border-bottom: none; padding: 6px 4px; }
.nabor-q-section-desc {
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius-s);
  padding: 7px 10px; color: var(--text-secondary);
}
.nabor-floating-add {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 50;
  display: flex; flex-direction: column; gap: 4px; background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle); border-radius: 24px; padding: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.nabor-floating-add button {
  width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--bg-surface-3);
  color: var(--text-primary); font-size: 17px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .12s ease;
}
.nabor-floating-add button:hover { background: var(--ember-500); }
@media (max-width: 1100px) { .nabor-floating-add { display: none; } }

/* Ticket msg-order modal */
.tk-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8,5,3,0.72); backdrop-filter: blur(4px); }
.tk-modal.open { display: flex; }
.tk-modal-box { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-l); padding: 28px 28px 24px; width: 100%; max-width: 380px; box-shadow: var(--shadow-deep); }
.tk-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tk-modal-head span { font-size: 16px; font-weight: 700; }
.tk-modal-close { background: var(--bg-surface-3); border: 1px solid var(--border-hair); color: var(--text-secondary); width: 30px; height: 30px; border-radius: var(--radius-s); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.tk-modal-close:hover { color: var(--text-primary); }

/* Nábory — per-user nová přihláška */
.nabor-new-dot { color: var(--ember-500); font-size: 11px; margin-left: 6px; vertical-align: middle; }
#tkDetailContent { overflow: visible; }
