:root {
  --bg: #f7f7f3;
  --bg-elevated: #eef0ea;
  --bg-card: #ffffff;
  --line: #e3e4dd;
  --text: #1f2328;
  --text-dim: #5c6470;
  --orange: #f97316;
  --yellow: #facc15;
  --green: #16a34a;
  /* Tmavšie, "text-safe" varianty oranžovej/žltej/zelenej — čistá --orange/--yellow/--green
     majú na svetlom pozadí nedostatočný kontrast pre text a používajú sa preto len na
     plochy (gradienty, ikony, pozadia čipov). */
  --orange-ink: #c2410c;
  --amber-ink: #92400e;
  --green-ink: #15803d;
  --danger-ink: #b91c1c;
  --gradient-brand: linear-gradient(135deg, var(--orange), var(--yellow));
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* Jemné farebné "žiary" na pozadí — pridávajú hĺbku, no text zostáva čitateľný. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 480px at 8% -8%, rgba(249, 115, 22, 0.14), transparent 60%),
    radial-gradient(640px 480px at 108% 10%, rgba(250, 204, 21, 0.16), transparent 60%),
    radial-gradient(760px 560px at 92% 108%, rgba(34, 197, 94, 0.12), transparent 60%),
    radial-gradient(680px 460px at 4% 108%, rgba(249, 115, 22, 0.08), transparent 60%);
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--orange-ink);
  text-decoration: none;
}

a:hover {
  color: var(--green-ink);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header / navigation ---------- */

.site-header {
  background: rgba(247, 247, 243, 0.86);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

/* Znak loga A2 „cesta v tvare S" (img/logo-mark.svg, Recraft) — dlaždica má vlastné zaoblenie */
.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--orange-ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ---------- Používateľské menu (prihlásený stav) ---------- */

.user-menu {
  position: relative;
}

.user-menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.user-menu-toggle::-webkit-details-marker {
  display: none;
}

.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #1f2328;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}

.user-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .user-name {
    max-width: 140px;
  }
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(31, 35, 40, 0.12);
  padding: 8px;
  z-index: 60;
}

.user-menu-divider {
  height: 1px;
  background: var(--line);
  margin: 6px 4px;
}

.user-menu-heading {
  padding: 6px 10px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.user-menu-dropdown a,
.user-menu-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 8px;
  border: none;
  background: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
  background: var(--bg-elevated);
  color: var(--orange-ink);
}

.lang-switch {
  display: flex;
  gap: 4px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}

.lang-switch a.active {
  background: var(--gradient-brand);
  color: #14161c;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gradient-brand);
  color: #14161c;
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.25);
}

.btn-primary:hover {
  color: #14161c;
}

.btn-outline {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--orange-ink);
  color: var(--orange-ink);
}

.btn-green {
  background: var(--green);
  color: #08170f;
}

.btn-green:hover {
  color: #08170f;
}

/* ---------- Hero ---------- */

.hero {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -40% 0;
  height: 260px;
  background:
    repeating-linear-gradient(90deg, var(--yellow) 0 46px, transparent 46px 92px);
  opacity: 0.08;
  transform: perspective(300px) rotateX(55deg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--orange-ink);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
}

.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.22);
}

.hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--text);
}

.hero h1 .accent {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Road / dashboard illustration ---------- */

.hero-art {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--line);
  padding: 26px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 16px 40px rgba(31, 35, 40, 0.10);
}

.hero-art svg {
  width: 100%;
  height: auto;
  max-width: 420px;
}

/* ---------- Fotky (wwwroot/img/foto, WebP) ---------- */

/* Hero s fotkou namiesto ilustrácie — fotka vypĺňa celú kartu */
.hero-photo {
  margin: 0;
  padding: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  background: #14161a;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo figcaption,
.article-photo figcaption {
  position: absolute;
  right: 10px;
  bottom: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 22, 26, 0.55);
  color: #eef0f4;
  font-size: 11px;
}

.section-photo {
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto 44px;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(31, 35, 40, 0.10);
}

.feature-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.10);
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.photo-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.10);
}

.photo-credit {
  text-align: right;
  color: var(--text-dim);
  font-size: 12px;
  margin: 10px 0 0;
}

.article-photo {
  position: relative;
  margin: 8px 0 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.article-photo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 720px) {
  .photo-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

.section-heading {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 44px;
}

.section-heading .eyebrow {
  color: var(--orange-ink);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}

.section-heading h1,
.section-heading h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 8px 0 12px;
}

.section-heading p {
  color: var(--text-dim);
  line-height: 1.6;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.compare-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  position: relative;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 28px rgba(31, 35, 40, 0.06);
}

.compare-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.compare-card.paper .icon-wrap { background: rgba(250, 204, 21, 0.14); }
.compare-card.electronic .icon-wrap { background: rgba(34, 197, 94, 0.14); }
.compare-card.ai .icon-wrap { background: rgba(249, 115, 22, 0.14); }

.compare-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
}

.compare-card p {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 14.5px;
  margin: 0;
}

.compare-card .tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.compare-card.paper .tag { background: rgba(250, 204, 21, 0.22); color: var(--amber-ink); }
.compare-card.electronic .tag { background: rgba(22, 163, 74, 0.16); color: var(--green-ink); }
.compare-card.ai .tag { background: rgba(249, 115, 22, 0.16); color: var(--orange-ink); }

/* ---------- GPS integrácia cez REST API tretích strán ---------- */

.gps-providers {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.4fr;
  gap: 22px;
  margin-top: 22px;
}

.gps-provider-group {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
}

.gps-provider-group h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.gps-provider-group p {
  color: var(--text-dim);
  line-height: 1.6;
  font-size: 14.5px;
  margin: 0;
}

.gps-provider-group a {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.gps-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gps-chip {
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

.gps-chip.supported { background: rgba(22, 163, 74, 0.14); color: var(--green-ink); }
.gps-chip.planned { background: rgba(250, 204, 21, 0.22); color: var(--amber-ink); }

@media (max-width: 900px) {
  .gps-providers {
    grid-template-columns: 1fr;
  }
}

.features {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  text-align: center;
  padding: 26px 18px;
}

.feature-card .num {
  width: 40px;
  height: 40px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--gradient-brand);
  color: #14161c;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Odkaz z karty na obsahovú stránku */
.compare-card a,
.feature-card a {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- FAQ (natívny <details>, bez JS) ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-item p {
  color: var(--text-dim);
  line-height: 1.65;
  margin: 12px 0 0;
}

/* ---------- Právne dokumenty (vzor: A.I.N.O) ---------- */

.legal-doc h3 {
  font-size: 16px;
  margin: 20px 0 8px;
}

.legal-doc p,
.legal-doc li {
  color: var(--text-dim);
}

.legal-doc b {
  color: var(--text);
}

.legal-doc .legal-meta {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 8px 0 32px;
  font-size: 14px;
}

.legal-doc .legal-meta p {
  margin: 0 0 4px;
}

.legal-doc .legal-note {
  font-size: 14px;
  font-style: italic;
}

/* tabuľka v zásadách cookies */
.cookie-table-wrap {
  overflow-x: auto;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0 18px;
  font-size: 14px;
}

.cookie-table th,
.cookie-table td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--text-dim);
}

.cookie-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cookie-table td:first-child {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

/* ---------- Súhlas s cookies (vzor: A.I.N.O) ---------- */

.cookie-consent[hidden] {
  display: none;
}

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--bg-card);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px -18px rgba(31, 35, 40, 0.35);
}

.cookie-bar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-bar-text {
  flex: 1;
  min-width: 260px;
  font-size: 14px;
  color: var(--text-dim);
}

.cookie-bar-text p {
  margin: 0;
}

.cookie-bar-text .cookie-bar-title {
  font-weight: 700;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.cookie-bar-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  text-decoration: underline;
  font-weight: 600;
}

.cookie-bar-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  min-width: 220px;
  flex: none;
}

.cookie-btn {
  white-space: nowrap;
  padding: 8px 14px;
  font-size: 13px;
}

.cookie-btn-ghost {
  background: transparent;
  color: var(--text-dim);
}

.cookie-btn-ghost:hover {
  color: var(--orange-ink);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(31, 35, 40, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal[hidden] {
  display: none;
}

.cookie-modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 18px 48px rgba(31, 35, 40, 0.22);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 28px;
}

.cookie-modal-card h2 {
  font-size: 20px;
  margin: 0 0 10px;
  padding-right: 28px;
}

.cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  color: var(--text-dim);
  padding: 4px 8px;
  border-radius: 8px;
}

.cookie-modal-close:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.cookie-modal-lead {
  font-size: 14px;
  color: var(--text-dim);
  margin: 0 0 20px;
}

.cookie-modal-lead a {
  text-decoration: underline;
}

.cookie-cat {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.cookie-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}

label.cookie-cat-head {
  cursor: pointer;
}

.cookie-cat-name {
  font-size: 15px;
}

.cookie-cat-always {
  font-size: 12px;
  color: var(--text-dim);
}

.cookie-cat-desc {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-dim);
}

.cookie-switch {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 42px;
  height: 24px;
}

.cookie-switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.cookie-switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c9ccc2;
  transition: background .15s ease;
}

.cookie-switch-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.3);
  transition: transform .15s ease;
}

.cookie-switch input:checked + .cookie-switch-track {
  background: var(--green);
}

.cookie-switch input:checked + .cookie-switch-track::before {
  transform: translateX(18px);
}

.cookie-switch input:focus-visible + .cookie-switch-track {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.cookie-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

@media (max-width: 720px) {
  .cookie-bar-inner {
    padding: 16px 18px;
    gap: 14px;
  }

  .cookie-bar-actions {
    width: 100%;
  }

  .cookie-table td:first-child {
    white-space: normal;
  }
}

/* ---------- Recenzie ---------- */

.stars {
  color: var(--orange);
  font-size: 20px;
  letter-spacing: 2px;
  line-height: 1;
}

.review-summary {
  font-weight: 600;
}

.review-summary .stars {
  margin-right: 8px;
  vertical-align: -2px;
}

.review-empty {
  text-align: center;
  color: var(--text-dim);
}

.review-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 28px rgba(31, 35, 40, 0.06);
}

.review-text {
  line-height: 1.65;
  margin: 12px 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.review-meta {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

.review-meta strong {
  color: var(--text);
}

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  min-width: 38px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-card);
  font-weight: 600;
}

.pagination .active {
  background: var(--bg-elevated);
  color: var(--text);
}

.review-form {
  max-width: 820px;
  margin: 64px auto 0;
}

/* Poznámka pod poľom formulára (napr. pri e-maile) */
.field-hint {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 4px;
}

/* Zaškrtávacie pole so súhlasom — mimo .form-field, kde majú vstupy šírku 100 % */
.form-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: start;
  margin-bottom: 18px;
  font-size: 14px;
}

.form-check input {
  margin-top: 3px;
}

.form-check .field-validation-error {
  grid-column: 2;
}

/* Správa recenzií: záložky stavov, zalamovaný text a tlačidlá akcií v tabuľke */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.admin-tabs a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}

.admin-tabs a.active {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--orange);
}

.admin-table td.wrap {
  white-space: pre-line;
  min-width: 320px;
  max-width: 520px;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions .btn {
  padding: 6px 12px;
  font-size: 13px;
}

/* ---------- Obsahové stránky (články o stazke) ---------- */

.article {
  max-width: 760px;
  margin: 0 auto;
}

.article .eyebrow {
  color: var(--orange-ink);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}

.article h1 {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.2;
  margin: 8px 0 16px;
}

.article h2 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 36px 0 12px;
}

.article p,
.article li {
  line-height: 1.7;
}

.article .lead {
  color: var(--text-dim);
  font-size: 18px;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.article-cta,
.article-related {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  margin-top: 36px;
}

.article-cta h2,
.article-related h2 {
  margin-top: 0;
}

.article-cta .hero-actions {
  margin-top: 16px;
}

.article-related a {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/* ---------- Auth stub pages ---------- */

.auth-wrap {
  max-width: 440px;
  margin: 60px auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 28px rgba(31, 35, 40, 0.06);
  padding: 36px;
}

.auth-wrap--wide {
  max-width: 760px;
}

.auth-wrap h1 {
  font-size: 24px;
  margin: 0 0 6px;
}

.auth-wrap .lead {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 22px;
}

.form-section {
  border: none;
  padding: 0;
  margin: 0 0 26px;
  min-width: 0;
}

.form-section legend {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange-ink);
  padding: 0;
  margin-bottom: 14px;
  width: 100%;
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 4px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
  cursor: pointer;
}

.form-check input {
  width: auto;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 18px;
}

.validation-summary-errors:empty,
.validation-summary-valid {
  display: none;
}

.validation-summary-errors {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--danger-ink);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 20px;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(250, 204, 21, 0.18);
  color: var(--amber-ink);
  border: 1px solid rgba(250, 204, 21, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Anti-spam honeypot — skryté pole, mimo toku aj čítačiek obrazovky. */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-validation-error {
  color: var(--danger-ink);
  font-size: 12px;
  display: block;
  margin-top: 4px;
}

.text-danger {
  color: var(--danger-ink);
}

.alert {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 22px;
}

.alert-success {
  background: rgba(22, 163, 74, 0.10);
  border: 1px solid rgba(22, 163, 74, 0.3);
  color: var(--green-ink);
}

.alert-error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: var(--danger-ink);
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 28px rgba(31, 35, 40, 0.06);
}

.contact-info h3 {
  margin-top: 0;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 2;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 28px rgba(31, 35, 40, 0.06);
  padding: 30px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

/* ---------- Admin (zoznam firiem) ---------- */

.admin-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 28px rgba(31, 35, 40, 0.06);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-role-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-role-form select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
}

.admin-role-form .btn {
  padding: 6px 12px;
  font-size: 13px;
}

.thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}

.thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 13px;
}

.photo-preview {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 13.5px;
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: var(--orange-ink);
}

/* údaje prevádzkovateľa (Administrácia → Fakturácia → Prevádzkovateľ) */
.footer-operator {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 18px;
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.65;
}

.footer-operator p {
  margin: 0;
}

.footer-operator strong {
  color: var(--text);
}

.footer-operator a {
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-operator a:hover {
  color: var(--orange-ink);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 16px;
  color: var(--text-dim);
  font-size: 12.5px;
}

.footer-bottom .footer-version {
  text-align: center;
  font-family: 'Consolas', 'SFMono-Regular', Menlo, monospace;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.footer-bottom .footer-credit {
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .footer-bottom {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-bottom .footer-credit {
    text-align: center;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .compare-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  /* Mobil: 1. riadok = logo + prepínač jazykov celkom vpravo,
     2. riadok = prihlásený používateľ na celú šírku (tlačidlá Začať jazdu/Jazdy
     sú samostatný riadok pod hlavičkou a tejto zmeny sa netýkajú). */
  .nav-actions {
    display: contents;
  }

  .lang-switch {
    margin-left: auto;
  }

  .user-menu {
    order: 3;
    flex-basis: 100%;
    width: 100%;
  }

  .user-menu-toggle {
    width: 100%;
    justify-content: center;
  }

  .user-name {
    max-width: none;
    overflow: visible;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 520px) {
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- GPS návrhy staziek (V4) ---------- */

.gps-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.14);
  color: var(--orange-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.6;
}

.gps-missing {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: var(--danger-ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.gps-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
}

.gps-count.has-items {
  background: var(--gradient-brand);
  color: var(--text);
}

.gps-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.gps-tab {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: -1px;
  border-bottom: 3px solid transparent;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.gps-tab:hover {
  color: var(--text);
}

.gps-tab.active {
  color: var(--orange-ink);
  border-bottom-color: var(--orange);
}

.gps-hint {
  margin: -6px 0 18px;
  font-size: 14px;
  color: var(--text-dim);
}

.gps-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 14px;
}

.gps-bulk-bar .form-hint {
  margin: 0;
}

.admin-table .gps-check-cell {
  width: 1%;
  padding-right: 4px;
}

.gps-check-cell input {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.gps-check-cell input:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.gps-draft-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.45);
  color: var(--amber-ink);
  font-size: 14px;
}

.gps-draft-note .gps-badge {
  margin-left: 0;
  flex-shrink: 0;
}

.gps-stop-note {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  white-space: normal;
}

.gps-approve-card {
  margin-bottom: 24px;
  padding: 22px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 28px rgba(31, 35, 40, 0.06);
}

.gps-approve-card h3 {
  margin-top: 0;
}

@media (max-width: 520px) {
  .gps-approve-card {
    padding: 16px;
  }

  .gps-tab {
    padding: 8px 10px;
  }
}

/* ---------- GPS prepojenie – nastavenia (V3) ---------- */

.gpsset-heading {
  text-align: left;
  max-width: none;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gpsset-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

.gpsset-card,
.gpsset-profile-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 28px rgba(31, 35, 40, 0.06);
  padding: 28px;
  min-width: 0;
}

.gpsset-card h2,
.gpsset-profile-card h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.gpsset-card h3 {
  font-size: 15px;
  margin: 26px 0 4px;
}

.gpsset-muted {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.gpsset-import {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.gpsset-import h2 {
  font-size: 18px;
  margin: 0 0 6px;
}

.gpsset-help {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.gpsset-help p {
  margin: 0 0 6px;
}

.gpsset-help a {
  color: var(--orange-ink);
  font-weight: 600;
}

.gpsset-stored {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green-ink);
  margin: 0 0 12px;
}

.gpsset-dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.gpsset-dot--ok {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.gpsset-dot--off {
  background: var(--line);
  box-shadow: 0 0 0 3px var(--bg-elevated);
}

.gpsset-hint-block {
  margin: -10px 0 16px;
}

.gpsset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0;
}

.gpsset-actions form {
  margin: 0;
}

.gpsset-actions .btn[disabled],
.gpsset-actions .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.gpsset-status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0 0 16px;
  font-size: 14px;
}

.gpsset-status dt {
  color: var(--text-dim);
  font-weight: 600;
}

.gpsset-status dd {
  margin: 0;
}

.gpsset-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--text-dim);
}

.gpsset-pill--ok {
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.3);
  color: var(--green-ink);
}

.gpsset-pill--err {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--danger-ink);
}

.gpsset-pill--wait {
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.45);
  color: var(--amber-ink);
}

.gpsset-last-error {
  overflow-wrap: anywhere;
}

.gpsset-tz {
  font-size: 12px;
}

.gpsset-btn-danger {
  color: var(--danger-ink);
}

.gpsset-btn-danger:hover {
  border-color: var(--danger-ink);
  color: var(--danger-ink);
}

.gpsset-section-title {
  font-size: 18px;
  margin: 0 0 12px;
}

.gpsset-result {
  white-space: normal;
  min-width: 140px;
}

.gpsset-run-error {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--danger-ink);
  max-width: 420px;
  overflow-wrap: anywhere;
}

.gpsset-pair-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gpsset-pair-cell select {
  min-width: 220px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
}

.gpsset-btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.gpsset-profile-card {
  margin-top: 34px;
  box-shadow: none;
  background: var(--bg);
}

.gpsset-sources {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.6;
}

.gpsset-sources li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .gpsset-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .gpsset-card,
  .gpsset-profile-card {
    padding: 20px 16px;
  }

  .gpsset-actions .btn,
  .gpsset-actions form {
    flex: 1 1 100%;
  }

  .gpsset-actions form .btn {
    width: 100%;
  }

  /* párovacia tabuľka ako karty — bez vodorovného posúvania */
  .gpsset-pair-table,
  .gpsset-pair-table tbody,
  .gpsset-pair-table tr,
  .gpsset-pair-table td {
    display: block;
    width: 100%;
    white-space: normal;
  }

  .gpsset-pair-table thead {
    display: none;
  }

  .gpsset-pair-table tr {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }

  .gpsset-pair-table tbody tr:last-child {
    border-bottom: none;
  }

  .gpsset-pair-table td {
    padding: 4px 0;
    border-bottom: none;
  }

  .gpsset-pair-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
  }

  .gpsset-pair-cell select {
    min-width: 0;
    width: 100%;
  }
}

/* ===================== Prehľady, filtre a stránkovanie (Jazdy, Nákupy) ===================== */

.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 8px 24px rgba(31, 35, 40, 0.05);
}

.filter-panel .form-field {
  margin: 0;
}

/* neviditeľné predvolené tlačidlo — Enter vo formulári = „Filtrovať" */
.default-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

.period-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.period-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.period-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text-dim);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.period-chip:hover {
  color: var(--text);
  border-color: var(--orange);
}

.period-chip.active {
  background: var(--gradient-brand);
  border-color: transparent;
  color: #3b1a03;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.25);
}

span.period-chip {
  cursor: default;
}

.period-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.period-range .form-field {
  min-width: 150px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px 14px;
}

.filter-check {
  display: flex;
  align-items: flex-end;
  padding-bottom: 8px;
}

.filter-more {
  margin-top: 14px;
}

.filter-more > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-ink);
  width: fit-content;
  list-style: none;
  padding: 2px 0;
}

.filter-more > summary::-webkit-details-marker {
  display: none;
}

.filter-more > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  transition: transform 0.15s;
}

.filter-more[open] > summary::before {
  transform: rotate(90deg);
}

.filter-more[open] > summary {
  margin-bottom: 12px;
}

.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sort-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.sort-link:hover {
  color: var(--orange-ink);
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 16px;
}

.pager .pagination {
  margin-top: 0;
}

.pager-info {
  margin: 0;
  font-size: 14px;
  color: var(--text-dim);
}

.pagination .gap {
  border-color: transparent;
  background: transparent;
  min-width: 20px;
  padding: 8px 4px;
}

/* ---- prehľad ---- */

.prehlad {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}

.prehlad-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 20px;
}

.prehlad-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 4px;
}

.prehlad-head h2 {
  margin: 0;
}

.prehlad-obdobie {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
}

.prehlad-hint,
.prehlad-empty {
  color: var(--text-dim);
  font-size: 14px;
  margin: 8px 0 20px;
}

.prehlad-empty {
  background: var(--bg-card);
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 28px;
  text-align: center;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.kpi-tile {
  --tone: var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 15px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 8px 24px rgba(31, 35, 40, 0.05);
}

.kpi-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--tone);
}

.kpi-tile.tone-orange { --tone: var(--orange); }
.kpi-tile.tone-green { --tone: var(--green); }
.kpi-tile.tone-yellow { --tone: var(--yellow); }
.kpi-tile.tone-danger { --tone: #ef4444; }
.kpi-tile.tone-blue { --tone: #3b82f6; }
.kpi-tile.tone-teal { --tone: #14b8a6; }
.kpi-tile.tone-violet { --tone: #8b5cf6; }

.kpi-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.kpi-tile.tone-danger .kpi-value {
  color: var(--text);
}

.kpi-note {
  font-size: 12.5px;
  color: var(--text-dim);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-card {
  margin: 0;
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px 14px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 8px 24px rgba(31, 35, 40, 0.05);
}

.chart-card.wide {
  grid-column: 1 / -1;
}

.chart-card figcaption {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  margin-bottom: 10px;
}

.chart-box {
  position: relative;
  width: 100%;
}

.chart-note {
  margin: 10px 0 0;
  font-size: 12.5px;
  color: var(--text-dim);
}

.prehlad-notes {
  margin: 18px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.prehlad-notes li + li {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .chart-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .filter-panel {
    padding: 14px;
  }

  .period-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .period-range .form-field {
    flex: 1 1 140px;
    min-width: 0;
  }

  .filter-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .kpi-value {
    font-size: 19px;
  }

  .chart-card {
    padding: 14px 12px 12px;
  }
}

/* ---- export zoznamu (CSV / Excel / PDF) ---- */

.export-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}

.export-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  margin-right: 2px;
}

.btn-small {
  padding: 8px 12px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .export-group {
    margin-left: 0;
    width: 100%;
  }
}

/* ===================== Cenník (verejná stránka + administrácia) ===================== */

.pricing .section-heading h1 {
  margin-bottom: 10px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-top: 8px;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 22px;
  box-shadow: 0 1px 2px rgba(31, 35, 40, 0.04), 0 10px 30px rgba(31, 35, 40, 0.06);
}

.pricing-card.featured {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--orange), 0 16px 40px rgba(249, 115, 22, 0.18);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--gradient-brand);
  color: #3b1a03;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}

.pricing-card h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.pricing-for {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 14px;
  min-height: 42px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.pricing-price strong {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}

.pricing-price strong.pricing-individual {
  font-size: 24px;
}

.pricing-price span {
  color: var(--text-dim);
  font-size: 14px;
}

.pricing-yearly {
  margin: 8px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-ink);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  flex: 1;
}

.pricing-list li {
  position: relative;
  padding: 7px 0 7px 26px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.pricing-list li:first-child {
  border-top: 0;
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 7px;
  color: var(--green-ink);
  font-weight: 800;
}

.pricing-list li.planned {
  color: var(--text-dim);
}

.pricing-list li.planned::before {
  content: "○";
  color: var(--text-dim);
}

.pricing-list .gps-chip {
  margin-left: 6px;
  font-size: 11px;
  padding: 2px 8px;
}

.pricing-setup {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--text-dim);
}

.pricing-cta {
  margin-top: 18px;
}

.pricing-cta .btn {
  width: 100%;
  justify-content: center;
}

.pricing-note {
  max-width: 820px;
  margin: 26px auto 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

.pricing-table th:last-child,
.pricing-table td:last-child {
  white-space: nowrap;
}

.pricing-faq {
  margin-top: 28px;
}

.pricing-legal {
  margin-top: 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* ---- administrácia cenníka ---- */

.cennik-admin-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 14px 18px;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.cennik-admin-status.on {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.08);
}

.cennik-admin-status.off {
  border-color: rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.08);
}

.cennik-admin-status span {
  color: var(--text-dim);
  font-size: 14px;
  flex: 1 1 260px;
}

.cennik-admin-form {
  max-width: none;
  margin: 0 0 32px;
}

.cennik-admin-langs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 22px;
}

.cennik-admin-h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 12px;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .pricing-card.featured {
    order: -1;
  }

  .cennik-admin-langs {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* zaškrtávacie pole vo .form-field — .form-field input má width:100 %, checkbox musí ostať malý */
.form-field .form-check {
  margin-bottom: 0;
}

.form-field .form-check input[type="checkbox"] {
  width: auto;
  flex: 0 0 auto;
}

/* ===================== Účtovanie: lišta, karta predplatného, fakturácia ===================== */

.predplatne-lista {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 10px 0;
}

.predplatne-lista .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
}

.predplatne-lista a {
  font-weight: 700;
  white-space: nowrap;
}

.predplatne-lista.info { background: rgba(59, 130, 246, 0.10); }
.predplatne-lista.warn { background: rgba(249, 115, 22, 0.12); }
.predplatne-lista.danger { background: rgba(239, 68, 68, 0.12); }

.predplatne-lista-dim {
  color: var(--text-dim);
}

.predplatne-karta h3 {
  font-size: 15px;
  margin: 24px 0 6px;
}

.predplatne-stav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  margin: 12px 0 4px;
}

.predplatne-stav.stav-skusobna { border-color: rgba(59, 130, 246, 0.4); background: rgba(59, 130, 246, 0.08); }
.predplatne-stav.stav-aktivne { border-color: rgba(22, 163, 74, 0.4); background: rgba(22, 163, 74, 0.08); }
.predplatne-stav.stav-lennacitanie,
.predplatne-stav.stav-zrusene { border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.08); }

.predplatne-stav span {
  color: var(--text-dim);
  font-size: 14px;
}

.predplatne-baliky {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 10px 0 8px;
}

.predplatne-balik {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-card);
}

.predplatne-balik.vybrany {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

.predplatne-balik h4 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.predplatne-balik .gpsset-muted {
  margin: 0;
  min-height: 38px;
}

.predplatne-ceny {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0 8px;
}

.predplatne-ceny .form-check {
  margin: 0;
  align-items: flex-start;
}

.predplatne-ceny .form-check input {
  width: auto;
  margin-top: 3px;
}

.predplatne-ceny small {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
}

.predplatne-balik .btn {
  margin-top: auto;
  justify-content: center;
}

.predplatne-zrusit {
  margin-top: 10px;
}

.predplatne-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  background: var(--bg-elevated);
}

.predplatne-chip.stav-skusobna { background: rgba(59, 130, 246, 0.15); color: #1d4ed8; }
.predplatne-chip.stav-aktivne { background: rgba(22, 163, 74, 0.15); color: var(--green-ink); }
.predplatne-chip.stav-lennacitanie,
.predplatne-chip.stav-zrusene { background: rgba(239, 68, 68, 0.14); color: var(--danger-ink); }

.faktura-po-splatnosti td {
  background: rgba(239, 68, 68, 0.06);
}

.admin-role-form input[type="date"] {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  font: inherit;
  font-size: 13px;
}

/* Administrácia → Fakturácia → Prevádzkovateľ: dlhšie polia (e-mail, názov a adresa úradu) v dvoch stĺpcoch */
.filter-grid.prevadzkovatel-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
