/* HACCP online — styles.css */
* { box-sizing: border-box; }
:root {
  --bg: #f8fafc;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0f766e;        /* teal */
  --primary-hover: #115e59;
  --primary-light: #ccfbf1;
  --accent: #f59e0b;
  --ok: #10b981;
  --danger: #dc2626;
  --warn: #f59e0b;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

.container { max-width: 980px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.04), transparent 50%),
    #0f766e;
  color: #fff;
  padding: 24px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* Subtle dot pattern overlay */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero > .container { position: relative; }  /* keep content above pattern */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 540px) auto;
  gap: 56px;
  align-items: center;
  justify-content: center;
}
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.hero-bullets li {
  position: relative;
  padding: 8px 0 8px 32px;
  color: rgba(255,255,255,0.95);
  font-size: 17px;
  line-height: 1.5;
}
.hero-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
}
.hero-mockup {
  display: flex;
  justify-content: center;
}
.phone-mockup {
  width: 290px;
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-mockup { order: -1; }   /* phone over text on mobile? actually below */
  .hero-mockup { order: 2; }
  .hero-text { order: 1; }
  .phone-mockup { width: 200px; }
}
/* Cookie consent banner */
#cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  padding: 16px 20px; z-index: 1000;
}
.cookie-banner-inner {
  max-width: 980px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cookie-banner-inner p {
  margin: 0; font-size: 13px; line-height: 1.5; color: var(--text);
  flex: 1 1 280px; min-width: 0;
}
.cookie-banner-inner a { color: var(--primary); }
.cookie-banner-btns {
  display: flex; gap: 10px; flex-shrink: 0;
}
.cookie-btn-primary, .cookie-btn-secondary {
  padding: 10px 18px; font-size: 13px; font-weight: 700;
  border-radius: 8px; border: 0; cursor: pointer;
  font-family: inherit; white-space: nowrap;
}
.cookie-btn-primary { background: var(--primary); color: #fff; }
.cookie-btn-primary:hover { background: var(--primary-hover); }
.cookie-btn-secondary {
  background: #f1f5f9; color: var(--text);
  border: 1px solid var(--line);
}
.cookie-btn-secondary:hover { background: #e2e8f0; }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-btns button { flex: 1; }
}

.hero-flex {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 60px;
}
.logo-link { text-decoration: none; }
.logo {
  color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -0.3px;
  display: inline-flex; align-items: center; gap: 9px;
}
.logo-mark {
  width: 26px; height: 26px; display: block;
}
.appbar .logo { color: var(--primary); }
.footer .logo-mark { width: 22px; height: 22px; }
.topnav { display: flex; gap: 22px; align-items: center; }
.topnav a { color: rgba(255,255,255,0.92); font-weight: 500; font-size: 15px; }
.topnav a:hover { color: #fff; text-decoration: none; }

.hero h1 {
  font-size: 52px; line-height: 1.1; margin: 0 0 18px;
  letter-spacing: -1.5px; font-weight: 800;
}
.hero .lead {
  font-size: 19px; max-width: 640px; color: rgba(255,255,255,0.95); margin: 0 0 28px;
  line-height: 1.55;
}
.hero .hint { color: rgba(255,255,255,0.75); font-size: 13px; margin-top: 14px; }

.btn-primary {
  background: var(--primary); color: #fff !important; padding: 12px 26px;
  border-radius: 10px; font-weight: 700; border: none; cursor: pointer;
  display: inline-block; font-size: 15px;
  transition: background 0.15s, transform 0.1s;
  text-decoration: none !important;
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.97); }
.btn-hero {
  background: #fff; color: var(--primary) !important; padding: 16px 32px;
  font-size: 17px; font-weight: 700;
}
.btn-hero:hover { background: rgba(255,255,255,0.92); }
.btn-secondary {
  background: #fff; color: var(--primary); padding: 11px 22px;
  border-radius: 10px; font-weight: 600; border: 1.5px solid var(--line); cursor: pointer;
}
.btn-secondary:hover { border-color: var(--primary); }

/* Cards */
main { padding: 20px 0 60px; }
.card {
  background: var(--card); border-radius: 14px; border: 1px solid var(--line);
  padding: 30px; margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04);
}
/* CTA subscribe card — vizuálně výrazné cream-yellow s teal borderem, ať se odliší od bílého bg */
.subscribe-card {
  background: linear-gradient(135deg, #fef9c3, #ecfccb);
  border: 1px solid #fde047;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.10);
}
/* === Trust badges row === */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
  padding: 14px 0;
}
.trust-badge {
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

/* === ROI kalkulátor === */
.roi-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
}
.roi-control input[type="range"] {
  width: 100%;
  margin: 18px 0 10px;
  accent-color: var(--primary);
}
.roi-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.roi-results {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px 20px;
}
.roi-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 14px;
}
.roi-row.roi-total {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 10px;
  font-weight: 700;
  color: var(--text);
}
.roi-row.roi-saving {
  border-top: 2px solid var(--primary);
  margin-top: 10px;
  padding-top: 12px;
  font-size: 18px;
  font-weight: 800;
  color: var(--ok);
}
.roi-row span:last-child {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .roi-wrap { grid-template-columns: 1fr; gap: 18px; }
}

/* === Sticky CTA bar (mobile only) === */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  z-index: 90;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.sticky-cta a {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 15px;
}
@media (max-width: 760px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 80px; }  /* avoid sticky covering content */
}

/* === Steps grid (Jak to funguje) === */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step {
  position: relative;
  padding: 8px 4px;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  font-weight: 800; font-size: 18px;
  margin-bottom: 12px;
}
.step h3 {
  margin: 0 0 6px; font-size: 16px; letter-spacing: -0.2px;
}
.step p {
  margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55;
}

/* === Comparison table === */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.comparison-table th, .comparison-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.comparison-table thead th {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  background: var(--bg);
  border-bottom: 2px solid var(--line);
}
.comparison-table th.us, .comparison-table td.us {
  background: #ecfdf5;
  color: var(--primary);
  font-weight: 600;
}
.comparison-table thead th.us {
  color: var(--primary);
  font-size: 13px;
  background: var(--primary-light);
}
.comparison-table tbody tr:last-child td {
  border-bottom: 0;
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 640px) {
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 8px 6px; }
}
.card h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.3px; }
.card p { margin: 0 0 10px; }
.card .hint { font-size: 13px; color: var(--muted); }

/* Features grid */
.features-card { padding-top: 22px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 14px;
}
.feature { padding: 4px 2px; }
.feature-icon { font-size: 32px; line-height: 1; margin-bottom: 10px; }
.feature-num {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px; border-radius: 6px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; letter-spacing: -0.2px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* Subscribe / registrace (consolidated above v sekci Cards) */
.subscribe-form {
  display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap;
}
.subscribe-form input {
  flex: 1; min-width: 200px;
  padding: 12px 14px; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 8px;
  font-family: inherit; background: #fff;
}
.subscribe-form input:focus {
  outline: none; border-color: var(--primary);
}
.subscribe-form .btn-primary { white-space: nowrap; }

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line); padding: 14px 0;
}
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; font-weight: 600; font-size: 16px; padding-right: 24px;
  position: relative; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+ '; color: var(--primary); font-weight: 700; }
.faq details[open] summary::before { content: '− '; }
.faq summary + p { margin-top: 10px; color: var(--text); }

/* Footer */
.footer {
  background: #0f172a; color: rgba(255,255,255,0.85);
  padding: 40px 0; margin-top: 60px;
  font-size: 14px;
}
.footer a { color: rgba(255,255,255,0.85); }
.footer a:hover { color: #fff; }
.footer-small { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 8px; }

/* === DASHBOARD === */
.appbar {
  background: #fff; border-bottom: 1px solid var(--line);
  padding: 12px 0; position: sticky; top: 0; z-index: 50;
}
.appbar-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.appbar .logo { color: var(--primary); font-size: 18px; font-weight: 700; }
.appbar-nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.appbar-nav .user-email { color: var(--muted); }
.appbar-nav a, .appbar-nav button {
  background: none; border: 0; color: var(--text); cursor: pointer;
  font-size: 14px; font-family: inherit; padding: 4px 0;
}
.appbar-nav a:hover, .appbar-nav button:hover { color: var(--primary); text-decoration: underline; }

.banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 24px; font-size: 14px;
}
.banner.danger { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.banner.ok { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }

main.dash { padding: 28px 0 60px; }

/* Section header */
.section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin: 8px 0 16px;
}
.section-head h2 { margin: 0; font-size: 22px; }

/* Grid cards */
.grid-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px; cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tile:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(15,118,110,0.08); }
.tile-title { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.tile-sub { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.tile-stats { font-size: 13px; color: var(--text); }
.tile-stats strong { color: var(--primary); }

.tile.add {
  border-style: dashed; background: transparent; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  min-height: 110px; font-weight: 600;
}
.tile.add:hover { color: var(--primary); background: var(--primary-light); }

/* Forms */
.form-inline {
  display: grid; gap: 10px; margin-top: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .form-inline.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-inline.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
  .form-inline.cols-4 { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
}
.form-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 12px; flex-wrap: wrap;
}
.btn-ghost {
  background: transparent; border: 1.5px solid var(--line);
  color: var(--text); padding: 11px 22px; border-radius: 10px;
  font-weight: 600; cursor: pointer; font-family: inherit; font-size: 14px;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger {
  background: var(--danger); color: #fff !important; padding: 11px 22px;
  border-radius: 10px; font-weight: 600; border: none; cursor: pointer;
}

/* OCR Big CTA */
.cta-ocr {
  background: linear-gradient(135deg, var(--primary), #134e4a);
  color: #fff; border-radius: 14px; padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
  cursor: pointer; border: none; width: 100%; text-align: left;
  font-family: inherit; transition: transform 0.1s;
}
.cta-ocr:hover { transform: scale(1.005); }
.cta-ocr:active { transform: scale(0.99); }
.cta-ocr-icon { font-size: 38px; line-height: 1; }
.cta-ocr-text { flex: 1; }
.cta-ocr-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.cta-ocr-sub { font-size: 14px; opacity: 0.9; margin: 0; }
.cta-ocr-arrow { font-size: 22px; opacity: 0.7; }

/* Modal */
.modal-bg {
  position: fixed; inset: 0; background: rgba(15,23,42,0.5);
  z-index: 100; display: none; align-items: center; justify-content: center;
  padding: 16px; backdrop-filter: blur(2px);
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff; border-radius: 16px; padding: 24px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.modal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.modal-head h3 { margin: 0; font-size: 20px; }
.modal-close {
  background: none; border: none; font-size: 24px; cursor: pointer;
  color: var(--muted); width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
}
.modal-close:hover { background: var(--bg); color: var(--text); }

/* OCR result */
.ocr-preview {
  background: var(--bg); border-radius: 10px; padding: 14px;
  margin: 16px 0;
}
.ocr-preview img {
  max-width: 100%; max-height: 280px; border-radius: 8px; display: block;
  margin: 0 auto;
}
.ocr-temp {
  text-align: center; margin: 16px 0;
}
.ocr-temp-val {
  font-size: 42px; font-weight: 800; color: var(--primary);
  letter-spacing: -1px;
}
.ocr-temp-val.anomaly { color: var(--danger); }
.ocr-confidence {
  font-size: 13px; color: var(--muted); margin-top: 4px;
}

/* Spinner */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(15,118,110,0.2);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Záznamy list */
.zaznam-list { list-style: none; padding: 0; margin: 12px 0 0; }
.zaznam-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.zaznam-item:last-child { border-bottom: none; }
.zaznam-icon { font-size: 18px; }
.zaznam-info { flex: 1; }
.zaznam-title { font-weight: 600; }
.zaznam-sub { font-size: 12px; color: var(--muted); }
.zaznam-val {
  font-weight: 700; color: var(--primary); white-space: nowrap;
}
.zaznam-val.anomaly { color: var(--danger); }

.empty-state {
  text-align: center; padding: 40px 20px; color: var(--muted);
}
.empty-state-icon { font-size: 48px; margin-bottom: 8px; }

.hidden { display: none !important; }

/* === BLOG === */
.blog-hero {
  background: linear-gradient(135deg, #0f766e 0%, #134e4a 100%);
  color: #fff; padding: 40px 0 50px;
}
.blog-hero h1 {
  font-size: 42px; margin: 0 0 12px; letter-spacing: -1px; line-height: 1.15;
}
.blog-hero p { font-size: 17px; max-width: 640px; color: rgba(255,255,255,0.95); }

.article-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 30px;
}
.article-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 24px; text-decoration: none !important; color: var(--text);
  transition: all 0.15s; display: block;
}
.article-card:hover {
  border-color: var(--primary); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,118,110,0.1);
  text-decoration: none !important;
}
.article-icon { font-size: 36px; line-height: 1; margin-bottom: 10px; }
.article-card h2 {
  font-size: 18px; margin: 0 0 8px; line-height: 1.35;
  letter-spacing: -0.2px;
}
.article-card p {
  font-size: 14px; color: var(--muted); margin: 0 0 12px; line-height: 1.55;
}
.article-meta {
  font-size: 12px; color: var(--muted);
  display: flex; gap: 10px; align-items: center;
}
.article-tag {
  background: var(--primary-light); color: var(--primary);
  padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
}

/* === ARTICLE PAGE === */
.article-wrap {
  max-width: 720px; margin: 0 auto; padding: 40px 20px 60px;
}
.article-wrap h1 {
  font-size: 38px; margin: 8px 0 14px; letter-spacing: -1px;
  line-height: 1.15;
}
.article-wrap .article-intro {
  font-size: 18px; color: var(--muted); margin: 0 0 30px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
  line-height: 1.6;
}
.article-wrap h2 {
  font-size: 26px; margin: 40px 0 14px; letter-spacing: -0.5px;
}
.article-wrap h3 {
  font-size: 19px; margin: 26px 0 10px;
}
.article-wrap p, .article-wrap ul, .article-wrap ol {
  font-size: 16px; line-height: 1.7; color: var(--text);
}
.article-wrap p { margin: 0 0 14px; }
.article-wrap ul, .article-wrap ol { padding-left: 22px; margin: 0 0 14px; }
.article-wrap ul li, .article-wrap ol li { margin-bottom: 6px; }
.article-wrap blockquote {
  border-left: 4px solid var(--primary);
  background: var(--bg);
  padding: 14px 18px; margin: 20px 0;
  font-style: italic; color: var(--text);
  border-radius: 0 8px 8px 0;
}
.article-wrap table {
  width: 100%; border-collapse: collapse; margin: 20px 0;
  font-size: 14px;
}
.article-wrap th, .article-wrap td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left;
}
.article-wrap th {
  background: var(--bg); font-weight: 700;
}
.article-wrap tr:nth-child(even) td { background: #fafafa; }
.article-wrap code {
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
  font-size: 13px; color: var(--primary);
}
.callout {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  border-radius: 10px; padding: 16px 20px; margin: 22px 0;
  font-size: 15px;
}
.callout.danger {
  background: #fee2e2; border-color: #fecaca; color: #991b1b;
}
.callout.success {
  background: #d1fae5; border-color: #6ee7b7; color: #065f46;
}
.callout strong { display: block; margin-bottom: 4px; }

.article-cta {
  background: linear-gradient(135deg, #0f766e, #134e4a);
  color: #fff; border-radius: 16px;
  padding: 30px; margin: 36px 0;
  text-align: center;
}
.article-cta h3 { color: #fff; margin: 0 0 8px; font-size: 22px; }
.article-cta p { color: rgba(255,255,255,0.95); margin: 0 0 18px; }
.article-cta .btn-hero {
  background: #fff; color: var(--primary) !important;
  padding: 12px 26px; display: inline-block;
}

.related-articles {
  margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--line);
}
.related-articles h3 { font-size: 18px; margin: 0 0 14px; }

.article-toc {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 20px; margin: 0 0 30px;
  font-size: 14px;
}
.article-toc h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.article-toc ul { padding-left: 18px; margin: 0; }
.article-toc li { margin-bottom: 4px; }
.article-toc a { color: var(--text); }
.article-toc a:hover { color: var(--primary); }

@media (max-width: 640px) {
  .blog-hero h1 { font-size: 30px; }
  .article-wrap { padding: 24px 16px 40px; }
  .article-wrap h1 { font-size: 28px; }
  .article-wrap h2 { font-size: 22px; }
}

/* === TABS === */
.tabs {
  display: flex; gap: 4px; border-bottom: 2px solid var(--line);
  margin: 8px 0 22px; overflow-x: auto;
}
.tab {
  background: transparent; border: none; padding: 12px 18px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* === Quick action chips === */
.quick-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  background: #fff; border: 1.5px solid var(--line);
  padding: 9px 14px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--text); cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip:active { transform: scale(0.97); }

/* === Alergeny toggles (grid 14 cards) === */
.alergeny-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px; margin-top: 6px;
}
.alergen-toggle {
  background: #fff; border: 1.5px solid var(--line);
  padding: 8px 6px; border-radius: 8px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 500;
  color: var(--text); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all 0.15s;
}
.alergen-toggle .alergen-num {
  font-weight: 800; color: var(--muted); font-size: 11px;
}
.alergen-toggle .alergen-icon { font-size: 18px; }
.alergen-toggle:hover { border-color: var(--primary); }
.alergen-toggle.on {
  background: var(--primary); color: #fff; border-color: var(--primary);
}
.alergen-toggle.on .alergen-num { color: rgba(255,255,255,0.8); }

/* === Jídla list === */
.jidlo-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 10px; align-items: center;
  padding: 12px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  margin-bottom: 8px; cursor: pointer;
  transition: border-color 0.15s;
}
.jidlo-row:hover { border-color: var(--primary); }
.jidlo-nazev { font-weight: 600; font-size: 15px; }
.jidlo-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.jidlo-alergeny {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px;
}
.jidlo-alergen-pill {
  background: var(--bg); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 999px;
  font-size: 11px; color: var(--text);
}
.jidlo-alergen-pill.empty {
  background: #d1fae5; border-color: #6ee7b7; color: #065f46;
  font-weight: 600;
}
.jidlo-cena {
  font-weight: 700; color: var(--primary); white-space: nowrap;
}
.kategorie-section {
  margin-top: 18px;
}
.kategorie-section h3 {
  font-size: 14px; margin: 0 0 8px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.5px;
}

@media (max-width: 640px) {
  .alergeny-grid { grid-template-columns: repeat(3, 1fr); }
}

/* === ONBOARDING WIZARD === */
.wizard-wrap {
  max-width: 640px; margin: 0 auto; padding: 32px 20px;
}
.wizard-progress {
  display: flex; gap: 8px; margin-bottom: 28px;
}
.wizard-progress-step {
  flex: 1; height: 6px; border-radius: 3px;
  background: var(--line); transition: background 0.2s;
}
.wizard-progress-step.active { background: var(--primary); }
.wizard-progress-step.done { background: var(--primary); opacity: 0.5; }

.wizard-step {
  background: #fff; border-radius: 16px; padding: 30px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(15,23,42,0.04);
}
.wizard-step h1 {
  font-size: 28px; margin: 0 0 8px; letter-spacing: -0.5px;
}
.wizard-step .step-hint {
  color: var(--muted); font-size: 15px; margin: 0 0 24px;
}
.wizard-step .step-counter {
  color: var(--primary); font-size: 13px; font-weight: 600;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}

/* Radio cards (typ provozu) */
.radio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}
.radio-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 16px 12px; background: #fff;
  border: 2px solid var(--line); border-radius: 12px;
  cursor: pointer; transition: all 0.15s;
  font-family: inherit;
}
.radio-card:hover { border-color: var(--primary); }
.radio-card.selected {
  border-color: var(--primary); background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(15,118,110,0.15);
}
.radio-card-icon { font-size: 32px; line-height: 1; margin-bottom: 8px; }
.radio-card-label { font-weight: 600; font-size: 14px; color: var(--text); }
.radio-card-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* Zařízení rows in wizard */
.equipment-row {
  display: grid; grid-template-columns: auto 1fr auto auto auto;
  gap: 10px; align-items: center;
  padding: 10px; background: var(--bg); border-radius: 10px;
  margin-bottom: 8px;
}
.equipment-row.removed { opacity: 0.4; }
.equipment-row .eq-icon { font-size: 22px; }
.equipment-row .eq-nazev {
  border: 1px solid var(--line); background: #fff;
  padding: 7px 10px; border-radius: 6px; font-size: 14px;
  font-family: inherit; width: 100%;
}
.equipment-row .eq-range {
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.equipment-row .eq-remove {
  background: transparent; border: 0; cursor: pointer;
  color: var(--muted); padding: 4px 8px; font-size: 18px;
  border-radius: 6px;
}
.equipment-row .eq-remove:hover { background: #fee2e2; color: var(--danger); }

@media (max-width: 640px) {
  .equipment-row { grid-template-columns: auto 1fr auto; gap: 8px; }
  .equipment-row .eq-range { display: none; }
  .wizard-step { padding: 22px; }
  .wizard-step h1 { font-size: 22px; }
  .radio-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .radio-card-icon { font-size: 26px; }
}

.wizard-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; gap: 12px;
}
.wizard-actions .btn-primary { padding: 14px 28px; font-size: 15px; }

/* Success screen */
.success-art {
  text-align: center; padding: 16px 0 24px;
}
.success-art-icon {
  font-size: 64px; line-height: 1;
}
.success-art h1 { margin: 12px 0 8px; }
.success-list {
  background: var(--bg); border-radius: 10px;
  padding: 16px 18px; margin: 18px 0;
  list-style: none;
}
.success-list li {
  padding: 6px 0; font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.success-list li::before {
  content: '✓'; color: var(--ok); font-weight: 700;
}

/* Mobile */
@media (max-width: 640px) {
  .hero { padding: 20px 0 44px; }
  .hero-flex { margin-bottom: 36px; }
  .hero h1 { font-size: 36px; }
  .hero .lead { font-size: 16px; }
  .btn-hero { padding: 14px 24px; font-size: 16px; }
  .card { padding: 22px; }
  .features-grid { grid-template-columns: 1fr; gap: 18px; }
  .appbar-nav .user-email { display: none; }
  .grid-cards { grid-template-columns: 1fr; }
  .modal { padding: 18px; }
  .ocr-temp-val { font-size: 36px; }
}
