/* =====================================================================
   PORTÁL ÚČETNICTVÍ — "Study desk" design system v2
   Motiv: živý, moderní vzdělávací web — bílé plátno, výrazný korálový
   akcent, sluníčkově žlutá a mátová jako "zvýrazňovače", ručně kreslená
   podtržítka a papírové nálepky s čísly u témat.
   ===================================================================== */

/* Visually hidden until it receives keyboard focus (Tab from the very
   top of the page) — lets a keyboard/screen-reader user jump straight
   to <main id="hlavniObsah"> instead of tabbing through the whole navbar
   and sidebar on every single page load. */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 8px; }

:root {
  /* --- barvy --- */
  --ink: #1b1f3b;              /* hlavní text / nadpisy */
  --ink-soft: #4a4e6b;
  --coral: #ff5a36;            /* primární brand barva */
  --coral-deep: #e8451f;
  --coral-tint: #ffe7e0;
  --sun: #ffc94d;              /* sekundární akcent — "zvýrazňovač" */
  --sun-deep: #d6a222;
  --sun-tint: #fff5dc;
  --mint: #1fae7a;             /* úspěch / terciární akcent */
  --mint-deep: #147d58;
  --mint-tint: #e1f6ec;
  --maroon: #b23a48;           /* chyby */
  --maroon-tint: #fbe8ea;
  --bg: #ffffff;
  --bg-soft: #f6f6fb;
  --card: #ffffff;
  --rule: #e7e7f1;
  --rule-strong: #d3d3e4;
  --text-muted: #5b5f7a;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-card: 0 10px 26px -12px rgba(27, 31, 59, 0.18);
  --shadow-modal: 0 30px 70px -16px rgba(20, 22, 45, 0.4);

  /* zpětná kompatibilita s dřívějšími názvy proměnných */
  --primary: var(--coral);
  --primary-hover: var(--coral-deep);
  --primary-light: var(--coral-tint);
  --purple: var(--mint);
  --purple-hover: var(--mint-deep);
  --text-main: var(--ink);
  --border: var(--rule);
  --bg-page: var(--bg-soft);
  --bg-card: var(--card);
  --success: var(--mint);
  --success-bg: var(--mint-tint);
  --danger: var(--maroon);
  --danger-bg: var(--maroon-tint);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg-soft);
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

:focus-visible { outline: 2.5px solid var(--coral); outline-offset: 2px; }

.section-title {
  font-size: 22px; font-weight: 700; margin-bottom: 18px;
}

/* ===================== NAVBAR ===================== */
.navbar { background: var(--bg); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 100; }
.nav-inner {
  max-width: 1350px; margin: 0 auto; padding: 14px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 19px;
  color: var(--ink); cursor: pointer; user-select: none;
}
.brand-dot { color: var(--coral); }
.brand-tag { display: none; }

.nav-links { display: flex; align-items: center; gap: 26px; flex: 1; justify-content: center; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: var(--coral); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform 0.18s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 12px; }

.hamburger-btn {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 34px; height: 34px; background: none; border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius-sm); cursor: pointer; padding: 0; flex-shrink: 0;
}
.hamburger-btn span { display: block; width: 16px; height: 2px; background: var(--ink); margin: 0 auto; border-radius: 1px; }
.sidebar-close-btn {
  display: none; background: var(--bg-soft); border: none; width: 26px; height: 26px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 800; color: var(--text-muted); cursor: pointer;
}
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(27, 31, 59, 0.5); z-index: 199; }

.nav-link-btn {
  font-size: 13px; font-weight: 700; color: var(--text-muted); background: none; border: none;
  cursor: pointer; padding: 6px 12px; border-radius: var(--radius-sm);
}
.nav-link-btn:hover { background: var(--bg-soft); color: var(--ink); }

.nav-auth-btn {
  font-size: 13.5px; font-weight: 700; color: #fff; background: var(--coral); border: none;
  cursor: pointer; padding: 10px 20px; border-radius: 100px; transition: background 0.15s, transform 0.1s;
}
.nav-auth-btn:hover { background: var(--coral-deep); transform: translateY(-1px); }

.user-menu { display: flex; align-items: center; gap: 10px; }
.user-badge {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  background: var(--bg-soft); color: var(--ink); padding: 6px 14px; border-radius: 100px;
}
.user-tier-pill {
  font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 10px;
  background: #fff; color: var(--text-muted); border: 1px solid var(--rule-strong);
}
.user-tier-pill.tier-full { background: var(--coral); color: #fff; border-color: var(--coral); }
.logout-btn {
  font-size: 12px; font-weight: 700; color: var(--text-muted); background: none;
  border: 1px solid var(--rule-strong); cursor: pointer; padding: 7px 11px; border-radius: 100px;
}
.logout-btn:hover { background: var(--bg-soft); border-color: var(--ink); color: var(--ink); }

/* ===================== AUTH MODAL ===================== */
.auth-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(27, 31, 59, 0.55); z-index: 300;
  align-items: center; justify-content: center; padding: 16px;
}
.auth-backdrop.visible { display: flex; }
.auth-modal {
  position: relative; background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--rule); padding: 30px; width: 100%; max-width: 380px;
  box-shadow: var(--shadow-modal);
}
.auth-close {
  position: absolute; top: 14px; right: 14px; background: var(--bg-soft); border: none;
  width: 28px; height: 28px; border-radius: var(--radius-sm); font-weight: 800;
  color: var(--text-muted); cursor: pointer;
}
.auth-tabs { display: flex; gap: 6px; margin-bottom: 22px; background: var(--bg-soft); padding: 4px; border-radius: 100px; }
.auth-tab {
  flex: 1; padding: 9px; border: none; background: none; border-radius: 100px;
  font-size: 13px; font-weight: 700; color: var(--text-muted); cursor: pointer; font-family: 'Manrope', sans-serif;
}
.auth-tab.active { background: var(--ink); color: #fff; }
.auth-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 14px; }
.auth-label input {
  display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 15px;
  border: 1.5px solid var(--rule-strong); border-radius: var(--radius-sm); font-family: inherit;
  outline: none; background: #fff; color: var(--ink);
}
.auth-label input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-tint); }
.auth-hint { font-size: 11.5px; color: var(--text-muted); margin: -8px 0 14px; }
.auth-error {
  font-size: 12.5px; color: var(--maroon); background: var(--maroon-tint); padding: 8px 10px;
  border-radius: var(--radius-sm); margin-bottom: 12px; display: none;
}
.auth-error.visible { display: block; }
.auth-success {
  font-size: 12.5px; color: var(--mint-deep); background: var(--mint-tint); padding: 10px 12px;
  border-radius: var(--radius-sm); margin-bottom: 12px; line-height: 1.5;
}
.auth-success a { color: var(--mint-deep); text-decoration: underline; word-break: break-all; }
.auth-forgot-link {
  display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--text-muted);
  margin: -8px 0 14px;
}
.auth-forgot-link:hover { color: var(--coral); }
.auth-checkbox-row {
  display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: var(--ink-soft);
  line-height: 1.45; margin-bottom: 14px; cursor: pointer;
}
.auth-checkbox-row input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 15px; height: 15px; accent-color: var(--coral); cursor: pointer; }
.auth-checkbox-row a { color: var(--coral-deep); font-weight: 700; }

/* ===================== LEGAL PAGES ===================== */
.legal-page { max-width: 74ch; margin: 0 auto; }
.legal-back { display: inline-block; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 22px; }
.legal-back:hover { color: var(--coral); }
.legal-page h1 { font-size: 28px; margin-bottom: 6px; }
.legal-updated { font-size: 13px; color: var(--text-muted); margin-bottom: 30px; }
.legal-page h3 { font-size: 16.5px; margin: 26px 0 8px; }
.legal-page p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 6px; }
.legal-page ul { margin: 6px 0 14px 20px; }
.legal-page li { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 6px; }
.legal-page a { color: var(--coral-deep); font-weight: 700; }
.legal-page mark { background: var(--sun-tint); color: var(--sun-deep); padding: 1px 6px; border-radius: 4px; font-weight: 700; }

/* ===================== APP SHELL ===================== */
.app-layout {
  max-width: 1350px; margin: 24px auto; padding: 0 24px 60px;
  display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start;
}

/* SIDEBAR */
.sidebar-box {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 18px 14px; position: sticky; top: 85px; box-shadow: var(--shadow-card);
  max-height: calc(100vh - 110px); display: flex; flex-direction: column;
}
.sidebar-title {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted); margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center;
}
.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; padding-right: 2px; }
.sidebar-item {
  padding: 9px 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; color: var(--ink);
  border: 1px solid transparent; transition: background 0.12s;
}
.sidebar-item:hover { background: var(--bg-soft); }
.sidebar-item.active { background: var(--coral-tint); color: var(--coral-deep); border-color: var(--coral); }
.sidebar-item.locked { color: var(--text-muted); }
.sidebar-badge { font-size: 12px; padding: 1px 5px; border-radius: 4px; font-weight: 700; display: inline-flex; align-items: center; }
.badge-unlocked { background: var(--mint-tint); }
.badge-locked { background: var(--bg-soft); filter: grayscale(0.3); opacity: 0.75; }

/* CONTENT SHELL */
.content-shell {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow-card);
}

/* ===================== HOME / HERO ===================== */
.home-hero {
  position: relative; overflow: hidden;
  padding: 40px 12px 34px; margin-bottom: 46px; text-align: center;
  border-radius: var(--radius);
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.35; z-index: 0; }
.hero-blob-1 { width: 340px; height: 340px; background: var(--sun); top: -140px; left: -80px; }
.hero-blob-2 { width: 300px; height: 300px; background: var(--mint); bottom: -140px; right: -60px; opacity: 0.3; }

.hero-kicker {
  position: relative; z-index: 1;
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--coral-deep);
  background: var(--coral-tint); padding: 6px 14px; border-radius: 100px; margin-bottom: 18px;
}
.home-hero h1 {
  position: relative; z-index: 1;
  font-size: 42px; line-height: 1.18; font-weight: 700; color: var(--ink);
  max-width: 15ch; margin: 0 auto 16px;
}
.squiggle-wrap { position: relative; display: inline-block; color: var(--coral); }
.squiggle { position: absolute; left: 0; bottom: -6px; width: 100%; height: 12px; }
.home-hero p {
  position: relative; z-index: 1;
  font-size: 16px; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 26px;
}
.hero-stats { position: relative; z-index: 1; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-stat {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 700;
  padding: 8px 16px; border-radius: 100px; color: var(--ink);
  transform: rotate(-2deg);
}
.hero-stat:nth-child(2) { transform: rotate(1.5deg); }
.hero-stat:nth-child(3) { transform: rotate(-1deg); }
.hero-stat-coral { background: var(--coral-tint); }
.hero-stat-sun { background: var(--sun-tint); }
.hero-stat-mint { background: var(--mint-tint); }

/* JAK TO FUNGUJE */
.how-it-works { margin-bottom: 48px; }
.how-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.how-step {
  background: var(--bg-soft); border-radius: var(--radius-sm); padding: 22px 20px;
}
.how-num {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 15px; color: #fff; margin-bottom: 14px;
}
.how-num-coral { background: var(--coral); }
.how-num-sun { background: var(--sun-deep); }
.how-num-mint { background: var(--mint); }
.how-num-ink { background: var(--ink); }
.how-step h4 { font-size: 16px; margin-bottom: 6px; }
.how-step p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.generator-test-section { margin-bottom: 48px; }
.generator-test-intro { font-size: 14.5px; color: var(--ink-soft); max-width: 68ch; margin-bottom: 22px; line-height: 1.6; }
.generator-test-intro em { color: var(--coral-deep); font-style: normal; font-weight: 700; }
.generator-test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.gt-card .btn-tier { margin-top: auto; }
.gt-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.gt-icon {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 24px; margin-bottom: 14px; box-shadow: var(--shadow-card);
}
.gt-card h3 { font-size: 18px; margin-bottom: 8px; }
.gt-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 18px; }

/* TESTIMONIALS */
.testimonials-section { margin-bottom: 48px; }
.testimonials-grid { display: flex; justify-content: center; min-height: 1px; }
.testimonial-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 12px; position: relative;
  width: 100%; max-width: 420px; box-shadow: var(--shadow-card);
  /* Height follows the image's own aspect ratio instead of a fixed
     480px — testimonial screenshots vary a lot in height, and a fixed
     height left a big empty gap under short ones. A max-height keeps
     an unusually tall screenshot from taking over the page; it scrolls
     internally only in that rare case. */
  max-height: 640px; overflow-y: auto;
}
.testimonial-img {
  width: 100%; height: auto; border-radius: 10px; display: block;
}
.testimonials-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.testimonials-arrow {
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--rule-strong); background: #fff;
  color: var(--ink); font-size: 15px; cursor: pointer; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.testimonials-arrow:hover { border-color: var(--coral); color: var(--coral); }
.testimonials-dots { display: flex; gap: 7px; align-items: center; }
.testimonial-counter { font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700; color: var(--text-muted); min-width: 52px; text-align: center; }

/* BUY-EVERYTHING BUNDLE BANNER */
.bundle-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--ink), #2b3060); border-radius: var(--radius);
  padding: 24px 28px; margin-bottom: 22px; color: #fff;
}
.bundle-banner-label {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--sun);
  background: rgba(255,255,255,0.12); padding: 4px 12px; border-radius: 100px; margin-bottom: 8px;
}
.bundle-banner-text h3 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.bundle-banner-text p { font-size: 13.5px; color: rgba(255,255,255,0.75); }
.bundle-banner-text p strong { color: #fff; }
.bundle-banner-text p small { color: var(--sun); font-weight: 700; }
.bundle-banner-btn { flex-shrink: 0; padding: 13px 24px; white-space: nowrap; }
.bundle-banner-btn:disabled { opacity: 0.6; cursor: default; }

/* TOPIC CARDS */
.grid-ready-topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.quick-topic-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm);
  padding: 20px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}
.quick-topic-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 46px; height: 46px;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.quick-topic-card.accent-coral::before { background: var(--coral); }
.quick-topic-card.accent-sun::before { background: var(--sun); }
.quick-topic-card.accent-mint::before { background: var(--mint); }
.quick-topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
.topic-sticker {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  color: var(--ink); background: var(--bg-soft); padding: 3px 9px; border-radius: 100px;
  margin-bottom: 10px; transform: rotate(-2deg);
}
.quick-topic-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.quick-topic-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.topic-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topic-price { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 14px; color: var(--ink); }
.topic-cart-btn {
  font-size: 12.5px; font-weight: 700; color: var(--coral); background: var(--coral-tint);
  border: none; padding: 8px 14px; border-radius: 100px; cursor: pointer; transition: all 0.15s;
  white-space: nowrap;
}
.topic-cart-btn:hover { background: var(--coral); color: #fff; }
.topic-cart-btn.in-cart { background: var(--mint-tint); color: var(--mint-deep); }
.topic-cart-btn.in-cart:hover { background: var(--maroon-tint); color: var(--maroon); }
.topic-owned {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700;
  color: var(--mint-deep); background: var(--mint-tint); padding: 8px 14px; border-radius: 100px;
}

/* ABOUT */
.about-section { margin-top: 52px; }
.about-card {
  background: var(--bg-soft); border-radius: var(--radius); padding: 28px;
  display: flex; gap: 24px; align-items: flex-start;
}
.author-avatar {
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  background: var(--coral); color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 24px;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 3px var(--coral-tint);
}
.author-info h3 { font-size: 19px; margin-bottom: 3px; }
.author-role { font-size: 13.5px; font-weight: 700; color: var(--coral-deep); margin-bottom: 12px !important; }
.author-info p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.author-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.tag {
  font-size: 12px; font-weight: 700; color: var(--ink); background: #fff;
  border: 1px solid var(--rule-strong); padding: 5px 12px; border-radius: 100px;
}

/* CONTACT */
.contact-section { margin-top: 52px; }
.contact-card {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 30px;
}
.contact-card p { color: rgba(255,255,255,0.75); font-size: 14.5px; margin-bottom: 18px; }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.contact-link {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: rgba(255,255,255,0.08); color: #fff; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 100px; transition: background 0.15s;
}
.contact-link:hover { background: var(--coral); }
.contact-icon { display: inline-flex; align-items: center; }
.contact-note { font-size: 12.5px; color: rgba(255,255,255,0.5) !important; margin: 0 !important; }

/* ===================== LESSON / TOPIC DETAIL ===================== */
.lesson-heading {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px;
  border-bottom: 1px solid var(--rule); padding-bottom: 18px; flex-wrap: wrap; gap: 12px;
}
.lesson-heading h1 { font-size: 24px; font-weight: 700; }
.tier-tag { padding: 6px 14px; border-radius: 100px; font-size: 12px; font-weight: 700; }

.video-section { margin-bottom: 34px; }
.video-box {
  width: 100%; aspect-ratio: 16/9; background: var(--ink); border-radius: var(--radius-sm);
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #fff;
}
.video-watermark {
  position: absolute; top: 14px; right: 18px; font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: rgba(255,255,255,0.4); user-select: none;
}
.play-circle {
  width: 60px; height: 60px; background: var(--coral); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 10px 24px rgba(255,90,54,0.4);
}
.video-box.has-video { background: #000; }
.video-box video {
  width: 100%; height: 100%; border-radius: var(--radius-sm); background: #000;
}

/* TABS */
.exercise-modes-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--rule); margin-bottom: 20px; }
.mode-tab {
  padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -1px; color: var(--text-muted); transition: color 0.15s;
}
.mode-tab:hover { color: var(--ink); }
.mode-tab.active { color: var(--coral); border-bottom-color: var(--coral); }
.mode-tab.purple.active { color: var(--mint-deep); border-bottom-color: var(--mint); }

/* EXERCISE AREA */
.exercise-wrapper { position: relative; }
.top-stats { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 10px; }
.stat-pills { display: flex; gap: 8px; }
.spill { padding: 5px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.spill.tot { background: var(--bg-soft); color: var(--text-muted); }
.spill.ok { background: var(--mint-tint); color: var(--mint-deep); }
.spill.err { background: var(--maroon-tint); color: var(--maroon); }

.table-scroll { border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th {
  background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 14px; text-align: left;
}
th.center { text-align: center; }
th.right { text-align: right; }
td { padding: 12px 14px; border-bottom: 1px solid var(--rule); font-size: 14px; vertical-align: middle; background: var(--card); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-soft); }

.inp-acc, .inp-amount {
  padding: 8px; border: 1.5px solid var(--rule-strong); border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace; font-weight: 700; background: #fff; outline: none;
  transition: all 0.15s; color: var(--ink);
}
.inp-acc { width: 75px; font-size: 15px; text-align: center; }
.inp-amount { width: 110px; font-size: 14px; text-align: right; }
.inp-acc:focus, .inp-amount:focus { border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-tint); }
.inp-acc.valid, .inp-amount.valid { border-color: var(--mint); background: var(--mint-tint); color: var(--mint-deep); }
.inp-acc.invalid, .inp-amount.invalid { border-color: var(--maroon); background: var(--maroon-tint); color: var(--maroon); }

.btn-check-row {
  background: #fff; border: 1.5px solid var(--rule-strong); color: var(--ink); padding: 6px 13px;
  border-radius: 100px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.btn-check-row:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.badge-st { display: inline-block; padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.doklad-badge {
  display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 800;
  color: var(--coral-deep); background: var(--coral-tint); padding: 5px 12px; border-radius: 7px;
  letter-spacing: 0.02em; white-space: nowrap;
}
.badge-st.ok { background: var(--mint-tint); color: var(--mint-deep); }
.badge-st.err { background: var(--maroon-tint); color: var(--maroon); }
.badge-st.empty { color: var(--text-muted); font-style: italic; }

.solution-box { font-size: 12px; margin-bottom: 4px; color: var(--ink); line-height: 1.4; }
.expl-dropdown { margin-top: 4px; font-size: 12px; }
.expl-dropdown summary {
  cursor: pointer; color: var(--coral-deep); font-weight: 700; user-select: none; outline: none;
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px;
  background: var(--coral-tint); transition: background 0.15s;
}
.expl-dropdown summary:hover { background: var(--sun-tint); color: var(--sun-deep); }
.expl-dropdown-body {
  margin-top: 6px; padding: 9px 11px; background: var(--sun-tint); border-left: 3px solid var(--sun-deep);
  border-radius: 4px; color: #6b4e12; font-size: 12px; line-height: 1.45;
}

/* ===================== PAYWALL ===================== */
.paywall-curtain {
  display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(4px);
  z-index: 50; align-items: center; justify-content: center; border-radius: var(--radius-sm);
}
.paywall-box {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 30px; max-width: 380px; width: 90%; text-align: center; box-shadow: var(--shadow-card);
}
.paywall-icon {
  width: 44px; height: 44px; border-radius: 50%; background: var(--maroon-tint); color: var(--maroon);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 14px;
}
.btn-tier {
  padding: 12px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14.5px; cursor: pointer;
  text-align: center; transition: all 0.15s; border: 1.5px solid var(--rule-strong); background: #fff; color: var(--ink);
}
.btn-tier.blue { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-tier.blue:hover { background: #000; }
.btn-tier.purple { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-tier.purple:hover { background: var(--coral-deep); }

/* ===================== INFINITE GENERATOR ===================== */
.infinite-card {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px; text-align: center; max-width: 680px; margin: 0 auto; box-shadow: var(--shadow-card);
}
.infinite-streak-bar { display: flex; justify-content: center; gap: 12px; margin-bottom: 20px; font-size: 13.5px; font-weight: 700; flex-wrap: wrap; }
.streak-item { background: var(--coral-tint); color: var(--coral-deep); padding: 6px 14px; border-radius: 100px; font-family: 'JetBrains Mono', monospace; font-size: 12.5px; }
.streak-item:nth-child(2) { background: var(--mint-tint); color: var(--mint-deep); }
.infinite-question { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 20px; margin-bottom: 20px; text-align: left; }
.infinite-case-block { border-bottom: 1px dashed var(--rule-strong); padding: 14px 0; }
.infinite-case-block:first-child { padding-top: 4px; }
.infinite-case-block:last-child { border-bottom: none; padding-bottom: 4px; }
.infinite-case-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.infinite-case-heading { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; }
.infinite-case-name { font-size: 16px; font-weight: 700; color: var(--ink); text-align: left; }
.infinite-doklad-badge { font-size: 12.5px; padding: 4px 10px; flex-shrink: 0; }
.infinite-case-inputs { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.inp-infinite {
  padding: 10px; font-size: 18px; font-weight: 700; text-align: center; font-family: 'JetBrains Mono', monospace;
  border: 2px solid var(--rule-strong); border-radius: var(--radius-sm); outline: none; background: #fff; color: var(--ink);
}
.inp-infinite-sm { width: 70px; padding: 8px; font-size: 15px; }
.inp-infinite:focus { border-color: var(--coral); box-shadow: 0 0 0 4px var(--coral-tint); }
.inp-infinite:disabled { background: var(--bg-soft); opacity: 0.85; }
.infinite-case-feedback { margin-top: 8px; font-size: 13px; font-weight: 600; text-align: left; }
.infinite-case-topic-tag {
  font-size: 11px; font-weight: 700; color: var(--text-muted); text-align: left;
  margin-top: 4px; text-transform: uppercase; letter-spacing: 0.02em;
}
.infinite-case-feedback small { font-weight: 500; display: block; margin-top: 2px; color: var(--text-muted); }

.test-score {
  text-align: center; margin-top: 20px; padding: 24px; background: var(--bg-soft); border-radius: var(--radius);
}
.test-score-pct { font-family: 'JetBrains Mono', monospace; font-size: 40px; font-weight: 800; color: var(--coral); }
.test-score-detail { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }

.btn-check-inf {
  background: var(--coral); color: #fff; border: none; padding: 12px 28px; border-radius: 100px;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: background 0.15s;
}
.btn-check-inf:hover { background: var(--coral-deep); }
.btn-next-inf {
  display: none; background: var(--ink); color: #fff; border: none; padding: 12px 28px; border-radius: 100px;
  font-weight: 700; font-size: 15px; cursor: pointer; margin-top: 14px;
}
.btn-next-inf:hover { background: #000; }
.infinite-feedback { margin-top: 16px; font-size: 14px; min-height: 24px; font-weight: 600; }

/* ===================== TOAST NOTIFICATIONS ===================== */
.toast-holder {
  position: fixed; bottom: 20px; right: 20px; z-index: 400;
  display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px));
}
.toast {
  background: var(--ink); color: #fff; padding: 13px 16px; border-radius: var(--radius-sm);
  font-size: 13.5px; font-weight: 600; line-height: 1.4; box-shadow: var(--shadow-modal);
  opacity: 0; transform: translateY(8px); transition: opacity 0.2s, transform 0.2s;
  border-left: 4px solid var(--coral);
}
.toast.visible { opacity: 1; transform: translateY(0); }
.toast-error { border-left-color: var(--maroon); display: flex; align-items: flex-start; gap: 10px; }
.toast-info { border-left-color: var(--sun); cursor: pointer; }
.toast-text { flex: 1; }
.toast-close {
  background: none; border: none; color: #fff; opacity: 0.7; cursor: pointer;
  font-size: 13px; line-height: 1; padding: 2px 4px; flex-shrink: 0;
}
.toast-close:hover { opacity: 1; }

/* ===================== TUTORING (DOUČOVÁNÍ) ===================== */
.tutoring-section { margin-bottom: 48px; }
.tutoring-card {
  background: linear-gradient(135deg, var(--mint-tint), var(--sun-tint));
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.tutoring-badge {
  display: inline-block; font-size: 16px; font-weight: 800; color: var(--mint-deep);
  background: #fff; padding: 8px 18px; border-radius: 100px; margin-bottom: 16px;
}
.tutoring-card .section-title { font-size: 32px; margin-bottom: 12px; }
.tutoring-text {
  font-size: 14.5px; color: var(--ink-soft); max-width: 60ch; margin: 0 auto 24px; line-height: 1.65;
}
.tutoring-pricing {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 26px;
}
.price-chip {
  background: #fff; border-radius: var(--radius-sm); padding: 14px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 160px; box-shadow: var(--shadow-card);
}
.price-chip-label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.price-chip-label em { font-style: normal; }
.price-chip-amount { font-family: 'JetBrains Mono', monospace; font-size: 20px; font-weight: 700; color: var(--ink); }
.price-chip-amount small { font-size: 12px; font-weight: 600; color: var(--text-muted); }

/* ===================== CART ===================== */
.cart-btn {
  position: relative; background: none; border: 1.5px solid var(--rule-strong); cursor: pointer;
  width: 38px; height: 38px; border-radius: 100px; display: flex; align-items: center;
  justify-content: center; color: var(--ink); flex-shrink: 0;
}
.cart-btn:hover { border-color: var(--coral); color: var(--coral); }
.cart-count {
  position: absolute; top: -6px; right: -6px; background: var(--coral); color: #fff;
  font-size: 10.5px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 100px;
  display: none; align-items: center; justify-content: center; padding: 0 4px;
}
.streak-nav-badge {
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; font-weight: 800;
  background: var(--sun-tint); color: var(--sun-deep); padding: 6px 11px; border-radius: 100px;
  align-items: center; flex-shrink: 0;
}

/* ===================== MY PROGRESS (streak + badges) ===================== */
.progress-streak-row {
  display: flex; align-items: baseline; gap: 10px; background: var(--sun-tint);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 18px;
}
.progress-streak-num { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 800; color: var(--sun-deep); }
.progress-streak-label { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); }
.progress-section-title { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin: 16px 0 8px; }
.progress-badges-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.progress-badge-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700;
  background: var(--coral-tint); color: var(--coral-deep); padding: 7px 13px; border-radius: 100px;
}
.cart-backdrop {
  display: none; position: fixed; inset: 0; background: rgba(27, 31, 59, 0.55); z-index: 300;
  align-items: center; justify-content: center; padding: 16px;
}
.cart-backdrop.visible { display: flex; }
.cart-modal {
  background: var(--card); border-radius: var(--radius); width: 100%; max-width: 420px;
  max-height: 84vh; display: flex; flex-direction: column; box-shadow: var(--shadow-modal);
}
.cart-header {
  display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 14px;
  border-bottom: 1px solid var(--rule);
}
.cart-header h3 { font-size: 18px; }
.cart-body { padding: 8px 22px; overflow-y: auto; flex: 1; }
.cart-empty { font-size: 13.5px; color: var(--text-muted); padding: 24px 0; text-align: center; }
.cart-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 0; border-bottom: 1px solid var(--rule);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.cart-item-price { font-size: 12.5px; color: var(--text-muted); font-family: 'JetBrains Mono', monospace; margin-top: 2px; }
.cart-item-remove {
  background: var(--bg-soft); border: none; width: 26px; height: 26px; border-radius: 50%;
  color: var(--text-muted); cursor: pointer; font-size: 12px; flex-shrink: 0;
}
.cart-item-remove:hover { background: var(--maroon-tint); color: var(--maroon); }
.cart-footer { padding: 16px 22px 22px; border-top: 1px solid var(--rule); }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center; font-weight: 800;
  font-size: 15px; margin-bottom: 14px; font-family: 'JetBrains Mono', monospace;
}

.paywall-price {
  font-family: 'JetBrains Mono', monospace; font-size: 24px; font-weight: 800; color: var(--coral);
  margin-bottom: 10px;
}

/* ===================== FOOTER ===================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); margin-top: 40px; }
.footer-inner {
  max-width: 1350px; margin: 0 auto; padding: 48px 24px 28px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
}
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; max-width: 34ch; color: rgba(255,255,255,0.6); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 13.5px; }
.footer-col a:hover { color: var(--coral); }
.footer-soon { font-size: 13.5px; color: rgba(255,255,255,0.4); }
.footer-soon em { font-style: normal; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 24px; text-align: center;
  font-size: 12.5px; color: rgba(255,255,255,0.4);
}

/* ===================== RESPONSIVE & MOBILE OPTIMIZATIONS ===================== */
@media (max-width: 950px) {
  .nav-links { display: none; }
  .app-layout { grid-template-columns: 1fr; margin: 12px auto; padding: 0 12px 40px; gap: 16px; }
  .content-shell { padding: 18px; }

  .hamburger-btn { display: flex; }
  .sidebar-close-btn { display: block; }
  .sidebar-box {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw);
    max-height: none; border-radius: 0; transform: translateX(-100%);
    transition: transform 0.22s ease; z-index: 200; box-shadow: 0 0 30px rgba(0,0,0,0.25);
  }
  .sidebar-box.sidebar-open { transform: translateX(0); }
  .sidebar-backdrop.visible { display: block; }
  .sidebar-menu { overflow-y: auto; }

  .how-steps { grid-template-columns: 1fr; }
  .generator-test-grid { grid-template-columns: 1fr; }
  .testimonial-card { max-width: 100%; }
  .about-card { flex-direction: column; text-align: left; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-inner { padding: 10px 12px; }
  .brand { font-size: 16px; }
  .user-badge { display: none; }
  .content-shell { padding: 14px; }
  .home-hero { padding: 28px 4px 24px; }
  .home-hero h1 { font-size: 26px; }
  .home-hero p { font-size: 13.5px; }
  .tutoring-card .section-title { font-size: 24px; }
  .lesson-heading h1 { font-size: 20px; }
  .grid-ready-topics { grid-template-columns: 1fr; }
  .bundle-banner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .bundle-banner-btn { width: 100%; }

  .exercise-modes-nav { flex-wrap: wrap; gap: 6px; }
  .mode-tab { padding: 8px 10px; font-size: 12.5px; }

  .inp-acc { width: 100%; font-size: 16px; padding: 9px 4px; }
  .inp-amount { width: 100%; font-size: 16px; padding: 9px 6px; }
  .btn-check-row { padding: 9px 12px; font-size: 13px; width: 100%; }

  .infinite-card { padding: 16px 12px; }
  .infinite-question { padding: 14px; }
  .inp-infinite-sm { width: 64px; font-size: 16px; padding: 9px 4px; }
  .infinite-case-heading { min-width: 100%; }
  .infinite-case-name { font-size: 14.5px; }
  .btn-check-inf, .btn-next-inf { width: 100%; padding: 13px; }

  .footer-inner { grid-template-columns: 1fr; padding: 36px 20px 20px; }

  /* --- FULL EXERCISE TABLE -> STACKED CARDS --- */
  .table-scroll { border: none; overflow-x: visible; }
  table { min-width: 0; width: 100%; border-spacing: 0 10px; border-collapse: separate; }
  thead { display: none; }
  tbody { display: block; }
  tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "doklad doklad"
      "name   name"
      "amount amount"
      "md     d"
      "action status"
      "expl   expl";
    gap: 8px;
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 10px;
  }
  tr:hover td { background: transparent; }
  td { display: block; border-bottom: none; padding: 0; background: transparent !important; }
  td:nth-child(1) { grid-area: doklad; }
  td:nth-child(2) { grid-area: name; font-size: 14.5px; }
  td:nth-child(3) { grid-area: amount; text-align: left !important; }
  td:nth-child(4) { grid-area: md; }
  td:nth-child(5) { grid-area: d; }
  td:nth-child(6) { grid-area: action; }
  td:nth-child(7) { grid-area: status; text-align: left !important; display: flex; align-items: center; justify-content: flex-end; }
  td:nth-child(8) { grid-area: expl; }
  td[colspan] { grid-column: auto; }

  td[data-label]:not([data-label=""])::before {
    content: attr(data-label);
    display: block; font-size: 10px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--text-muted); margin-bottom: 3px;
  }
  td:nth-child(1)::before { display: none; }
  td:nth-child(6) .btn-check-row { width: 100%; }
  td:nth-child(8):empty { display: none; }
}


/* ===================== NOVÉ: DOUČOVÁNÍ CTA, MASTERY, TEST SETUP, OSNOVA ===================== */
.tutor-cta {
  margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); background: var(--coral-tint);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.tutor-cta strong { display: block; font-size: 16px; margin-bottom: 2px; }
.tutor-cta span { font-size: 13.5px; color: var(--ink-soft); }
.tutor-cta .btn-tier { padding: 11px 22px; white-space: nowrap; }

.mastery-bar { height: 6px; border-radius: 99px; background: rgba(27,31,59,0.10); overflow: hidden; margin-top: 10px; }
.mastery-bar > i { display: block; height: 100%; background: var(--coral); border-radius: 99px; transition: width 0.4s; }
.mastery-label { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); margin-top: 5px; }
.sidebar-mastery { font-size: 10.5px; font-weight: 800; color: var(--coral-deep); margin-left: 6px; }

.test-setup { text-align: center; padding: 8px 0 4px; }
.test-setup p { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.test-setup-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.test-setup-options .btn-tier { padding: 16px; font-size: 15px; }
.test-timer {
  position: sticky; top: 64px; z-index: 20; margin: 0 0 14px; padding: 8px 14px; border-radius: 99px;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; text-align: center; width: fit-content;
  margin-left: auto; margin-right: auto; font-variant-numeric: tabular-nums;
}
.test-timer.warn { background: var(--danger, #dc2626); }
.test-breakdown { margin-top: 18px; text-align: left; }
.test-breakdown h4 { font-size: 14px; margin-bottom: 8px; }
.test-breakdown-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid rgba(27,31,59,0.08); font-size: 13.5px; }
.test-breakdown-row b.bad { color: var(--danger, #dc2626); }
.test-breakdown-row b.good { color: var(--success, #16a34a); }

.osnova-box { max-width: 760px; }
.osnova-label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.osnova-search {
  width: 100%; padding: 13px 16px; font-size: 16px; border: 2px solid rgba(27,31,59,0.15); border-radius: var(--radius-sm);
  font-family: inherit;
}
.osnova-search:focus { outline: none; border-color: var(--coral); }
.osnova-count { font-size: 12.5px; color: var(--text-muted); margin: 10px 0 6px; min-height: 18px; }
.osnova-list { display: flex; flex-direction: column; gap: 6px; }
.osnova-row { display: flex; gap: 14px; align-items: baseline; padding: 10px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.osnova-num { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: var(--coral-deep); min-width: 52px; }
.osnova-name { font-weight: 600; }
.osnova-meta { margin-left: auto; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }

.confirm-modal { max-width: 420px; text-align: center; }
.confirm-text { font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.confirm-actions .btn-tier { padding: 11px 20px; }

.btn-reset-table {
  font-family: inherit; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 100px; cursor: pointer;
  background: #fff; color: var(--ink); border: 1.5px solid var(--rule-strong);
}
.btn-reset-table:hover { border-color: var(--ink); }

.osnova-note { font-size: 13px; color: #64748b; margin: 8px 0 4px; line-height: 1.5; }
