/**
 * KlipServis — mockup v4 visual layer (desktop klip-servis reference)
 * Loaded after ks-v4.css. Visual overrides only — no behaviour changes.
 */

:root {
  --accent: #e10600;
  --accent-hi: #ff1a1a;
  --accent-lo: #b00500;
  --accent-soft: rgba(225, 6, 0, 0.14);
  --accent-line: rgba(225, 6, 0, 0.45);
  --accent-glow: rgba(225, 6, 0, 0.35);

  --bg: #0a0a0a;
  --bg-2: #0e0e0e;
  --panel: #111111;
  --panel-2: #161616;
  --inset: #0d0d0d;
  --glass: rgba(18, 18, 18, 0.92);

  --border: #222222;
  --border-2: #2a2a2a;

  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: #888888;

  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;

  --topbar-h: 52px;
}

html {
  font-size: 14px;
}

body {
  background: var(--bg) !important;
  color: var(--text);
}

/* ── Header / topbar ─────────────────────────────────────────────────── */
.site-header {
  min-height: var(--topbar-h);
  background: rgba(17, 17, 17, 0.94) !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

body.ks-home-hero .site-header {
  background: rgba(10, 10, 10, 0.35) !important;
  border-bottom-color: transparent !important;
  box-shadow: none;
}

body.ks-home-hero.ks-header-on .site-header {
  background: rgba(10, 10, 10, 0.96) !important;
  border-bottom-color: var(--border) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.brand-title {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--accent-hi);
}

.brand-subtitle {
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: #fff;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted-2);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--accent-hi);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.site-header .btn-accent.btn-accent--compact {
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 0 16px rgba(225, 6, 0, 0.22);
}

/* ── Hero (homepage) ─────────────────────────────────────────────────── */
#cc-edit-root .intro.intro--v4,
.intro.intro--v4 {
  background: #0a0a0a !important;
}

.intro-v4-bg__shade {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.72) 55%,
    #0a0a0a 100%
  ) !important;
}

.logo-text-anim {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 0.92;
}

.logo-text-anim.accent-text,
.intro-brand--v4 .logo-text-anim.accent-text {
  color: var(--accent-hi) !important;
  text-shadow: 0 4px 32px var(--accent-glow);
  font-size: clamp(3.4rem, 8.5vw, 7.2rem);
}

.intro-brand--v4 .logo-text-anim:not(.accent-text) {
  font-size: clamp(2.8rem, 7vw, 6rem);
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.btn-hero,
.intro-login-box .btn-accent {
  letter-spacing: 0.14em;
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 14px 36px;
  box-shadow: 0 0 22px rgba(225, 6, 0, 0.25);
}

.scroll-hint__mouse {
  border-color: rgba(255, 255, 255, 0.45);
}

/* ── Landing sections ────────────────────────────────────────────────── */
.v4-about .badge,
.section-badge {
  border: 1px solid rgba(225, 6, 0, 0.45);
  color: var(--accent-hi);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
}

.v4-about,
.v4-tyres,
.v4-booking,
.section.stack.dark,
.section.stack {
  border-top: 1px solid var(--border);
}

.v4-garance,
.guarantee-card {
  border: 1px solid var(--border-2) !important;
  border-radius: 16px !important;
  background: linear-gradient(145deg, rgba(22, 22, 22, 0.96), rgba(12, 12, 12, 0.98)) !important;
  box-shadow: 0 0 40px rgba(225, 6, 0, 0.06);
}

.v4-stat,
.feature-item {
  text-align: center;
}

.v4-stat strong,
.feature-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.v4-stat span,
.feature-item span {
  font-size: 0.72rem;
  color: var(--muted-2);
}

.landing-form,
.booking-form,
.v4-tyres-form {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--panel) !important;
}

.landing-form label,
.booking-form label,
.field-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}

.landing-form input,
.landing-form select,
.landing-form textarea,
.booking-form input,
.booking-form select,
.booking-form textarea,
.field__input,
.field-input {
  background: var(--inset) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.86rem;
}

.landing-form input:focus,
.landing-form select:focus,
.landing-form textarea:focus,
.booking-form input:focus,
.field__input:focus,
.field-input:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(225, 6, 0, 0.18);
}

/* ── Cards / glass ───────────────────────────────────────────────────── */
.card.glass,
.glass {
  background: var(--panel-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.btn-accent,
.btn-primary,
.ui-btn--primary {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
}

.btn-accent:hover,
.btn-primary:hover {
  background: var(--accent-hi) !important;
}

.btn-ghost,
.btn-secondary {
  border-radius: var(--radius-sm);
  border-color: var(--border-2);
  background: var(--inset);
}

/* ── Dashboard shell ─────────────────────────────────────────────────── */
.dash-topbar {
  min-height: var(--topbar-h);
  background: var(--panel) !important;
  border-bottom: 1px solid var(--border) !important;
}

.section-rail {
  background: var(--bg-2) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  padding: 14px 10px !important;
}

.section-rail__brand {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: var(--accent-hi) !important;
  letter-spacing: 0.04em;
  padding: 0 10px 12px !important;
}

.section-rail__brand::after {
  background: var(--accent) !important;
  width: 36px !important;
  height: 2px !important;
}

.section-rail__link {
  font-size: 0.78rem !important;
  padding: 8px 12px !important;
  border-radius: 999px !important;
  color: var(--muted-2) !important;
  border: 1px solid transparent;
}

.section-rail__link:hover {
  color: #fff !important;
  background: var(--panel-2) !important;
}

.section-rail__link.is-active {
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 600 !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 14px rgba(225, 6, 0, 0.25);
}

.dash-content,
.section-body {
  background: var(--bg) !important;
}

/* ── Servis orders / tables ──────────────────────────────────────────── */
.orders-card,
.stat-card,
.admin-block {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--panel-2) !important;
}

.stat-kpi {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
}

.orders-filter .field-input,
.orders-filter select {
  background: var(--inset);
  border-color: var(--border);
  border-radius: var(--radius-sm);
}

.admin-table,
.orders-table {
  font-size: 0.78rem;
}

.admin-thead th,
.orders-table thead th {
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-bottom: 1px solid var(--border);
}

.admin-tbody td,
.orders-table tbody td {
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.customer-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fff;
}

.status-dot--nova {
  background: #ffcc00;
  box-shadow: 0 0 10px #ffcc00;
}

.order-row,
.orders-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Pronájem / prodej public ────────────────────────────────────────── */
.ks-offer__hero {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.ks-offer__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ks-offer__usp-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel-2);
}

.sale-vehicle-card,
.rental-card,
.home-offer-scroll__card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--panel-2) !important;
}

.sale-vehicle-card__photo,
.rental-card-image {
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  overflow: hidden;
}

/* ── Auth ────────────────────────────────────────────────────────────── */
.auth-card.glass {
  border: 1px solid var(--border-2) !important;
  border-radius: 14px !important;
  background: rgba(18, 18, 18, 0.9) !important;
  box-shadow:
    0 0 0 1px rgba(225, 6, 0, 0.08),
    0 24px 60px rgba(0, 0, 0, 0.55);
}

.auth-brand__word span:first-child {
  color: var(--accent-hi);
}

.auth-title {
  font-size: 1.25rem;
  font-weight: 700;
}

/* ── Notifications ───────────────────────────────────────────────────── */
.notif-panel {
  border: 1px solid var(--border-2) !important;
  border-radius: var(--radius-lg) !important;
  background: rgba(14, 14, 14, 0.98) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62) !important;
}

.notif-card:not(.notif-card--read) {
  border-left: 3px solid var(--accent);
}

.notif-bell:not(.notif-bell--mobile) {
  border-color: rgba(255, 204, 0, 0.35);
  background: rgba(255, 204, 0, 0.1);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer__card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--panel) !important;
}

.site-footer__wordmark-1 {
  color: var(--accent-hi);
}

.site-footer__apps {
  border-top: 1px solid var(--border);
}

/* ── Modals / toasts ─────────────────────────────────────────────────── */
.ui-modal {
  border: 1px solid var(--border-2) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--panel) !important;
}

.ui-toast {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: var(--panel-2) !important;
}

/* ── Chat widget (homepage) ──────────────────────────────────────────── */
.ks-support-fab,
.mini-chat-toggle {
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.92);
  backdrop-filter: blur(8px);
}

/* ── Dashboard tabs (top links) ──────────────────────────────────────── */
.dash-link {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent !important;
  color: var(--muted-2) !important;
}

.dash-link:hover {
  color: #fff !important;
  background: transparent !important;
}

.dash-link.is-active {
  color: #fff !important;
  border-bottom-color: var(--accent) !important;
  box-shadow: 0 0 10px var(--accent-glow);
  background: transparent !important;
}

.dash-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dash-section-title--accent {
  color: var(--accent-hi);
}

/* ── Posts / feed ────────────────────────────────────────────────────── */
.feed-stage,
.prispevky-feed {
  border-radius: var(--radius-lg) !important;
  background: var(--panel) !important;
}

.post-card,
.feed-card,
.profile-post-card {
  border-radius: var(--radius-lg) !important;
  background: var(--panel-2) !important;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.post-card:hover {
  border-color: var(--border-2) !important;
  transform: translateY(-1px);
}

.post-card__name,
.profile-post-card__head strong {
  font-weight: 700;
  color: #fff;
}

.ks-viewtoggle__btn.is-active {
  background: var(--accent) !important;
  color: #fff !important;
}

.feed-fab {
  box-shadow: 0 0 18px rgba(225, 6, 0, 0.35) !important;
}

/* ── Messenger / chat ────────────────────────────────────────────────── */
.ig-dm,
.messenger,
.mini-chat__panel {
  border-radius: var(--radius-lg) !important;
}

.ig-dm-row.is-active,
.ig-dm-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ig-dm-row.is-active {
  border-left: 3px solid var(--accent);
}

/* ── Landing: services, prices, FAQ ──────────────────────────────────── */
#services .card.glass {
  border-radius: var(--radius-lg) !important;
  background: var(--panel-2) !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#services .card.glass:hover {
  border-color: var(--border-2) !important;
  box-shadow: 0 0 24px rgba(225, 6, 0, 0.08);
}

#services .card.glass h3 {
  font-size: 0.92rem;
  font-weight: 700;
}

.price-container.glass {
  border-radius: var(--radius-lg) !important;
  background: var(--panel-2) !important;
}

.price-row {
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}

.price-row strong {
  color: var(--accent-hi);
}

.faq-container--accordion details.faq-item {
  border-radius: var(--radius-sm) !important;
  background: var(--panel-2) !important;
  border: 1px solid var(--border) !important;
}

.faq-container--accordion details.faq-item[open] > summary {
  color: var(--accent-hi);
}

/* ── Settings / profile ──────────────────────────────────────────────── */
.settings-panel,
.settings-card,
.profile-card {
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--panel-2) !important;
}

.settings-check input[type="checkbox"]:checked {
  accent-color: var(--accent);
}

/* ── Maps ────────────────────────────────────────────────────────────── */
.gps-map-card,
.groups-map {
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
}

.groups-map__float-btn {
  border-radius: var(--radius-sm) !important;
  background: rgba(14, 14, 14, 0.92) !important;
  border-color: var(--border-2) !important;
}

/* ── Scrollbars ──────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted-2);
}

@media (max-width: 950px) {
  html {
    font-size: 15px;
  }

  .section-rail__link {
    font-size: 0.82rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dash-content,
  .section-body {
    animation: none !important;
  }
}

/* ── Emoji štítky (landing, nástěnka, servis) ─────────────────────────── */
.ks-section-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65em;
  height: 1.65em;
  margin-right: 0.35em;
  border-radius: 10px;
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(225, 6, 0, 0.32);
  font-size: 0.72em;
  line-height: 1;
  vertical-align: middle;
  transform: translateY(-0.06em);
}

.ks-section-emoji--sm {
  width: 1.5em;
  height: 1.5em;
  font-size: 0.85em;
}

.price-row__emoji {
  display: inline-block;
  margin-right: 0.45em;
  font-size: 1.05em;
  vertical-align: -0.08em;
}

.section-rail__emoji {
  display: inline-block;
  margin-right: 0.35em;
  font-size: 0.95em;
  line-height: 1;
  vertical-align: -0.1em;
}

.section-rail__brand-emoji {
  margin-right: 0.25em;
}

.home-section-emoji {
  display: inline-block;
  margin-right: 0.35em;
  font-size: 1em;
  vertical-align: -0.08em;
}

.home-section-emoji--lg {
  font-size: 1.15em;
}

.home-quick-link,
a.home-quick-link,
button.home-quick-link {
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  text-align: left;
}

.home-quick-link__emoji {
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(225, 6, 0, 0.1);
  border: 1px solid rgba(225, 6, 0, 0.28);
  font-size: 1.15rem;
  line-height: 1;
}

.home-quick-link__label,
.home-quick-link__hint {
  grid-column: 2;
}

.home-support-btn {
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
  text-align: left;
}

.home-support-btn__emoji {
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(225, 6, 0, 0.1);
  border: 1px solid rgba(225, 6, 0, 0.28);
  font-size: 1.15rem;
  line-height: 1;
}

.home-support-btn__label,
.home-support-btn__hint {
  grid-column: 2;
}

.v4-garance__ico {
  font-size: 2rem;
  line-height: 1;
}
