/**
 * KakoMarket — unified design system
 */

:root {
  --brand: #16a34a;
  --brand-dark: #15803d;
  --brand-light: #dcfce7;
  --brand-muted: #f0fdf4;
  --accent: #0ea5e9;
  --danger: #ef4444;
  --warning: #f59e0b;
  --bg: #f4f7f5;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --header-h: 60px;
  --header-h-compact: 48px;
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
  --scrollbar-size: 8px;
  --scrollbar-track: rgba(15, 23, 42, 0.06);
  --scrollbar-thumb: rgba(22, 163, 74, 0.38);
  --scrollbar-thumb-hover: rgba(21, 128, 61, 0.58);
  --scrollbar-track-dark: rgba(255, 255, 255, 0.07);
  --scrollbar-thumb-dark: rgba(134, 239, 172, 0.42);
  --scrollbar-thumb-dark-hover: rgba(134, 239, 172, 0.65);
}

/* ── Scrollbars (site theme) ── */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}
*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}
*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}
*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

.story-viewer,
.story-viewer-shell,
.story-comments-drawer,
.story-comments,
.story-modal-panel,
.market-filter-form {
  scrollbar-color: var(--scrollbar-thumb-dark) var(--scrollbar-track-dark);
}
.story-viewer *::-webkit-scrollbar-track,
.story-viewer-shell *::-webkit-scrollbar-track,
.story-comments-drawer *::-webkit-scrollbar-track,
.story-comments::-webkit-scrollbar-track,
.story-modal-panel::-webkit-scrollbar-track,
.market-filter-form::-webkit-scrollbar-track {
  background: var(--scrollbar-track-dark);
}
.story-viewer *::-webkit-scrollbar-thumb,
.story-viewer-shell *::-webkit-scrollbar-thumb,
.story-comments-drawer *::-webkit-scrollbar-thumb,
.story-comments::-webkit-scrollbar-thumb,
.story-modal-panel::-webkit-scrollbar-thumb,
.market-filter-form::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-dark);
}
.story-viewer *::-webkit-scrollbar-thumb:hover,
.story-viewer-shell *::-webkit-scrollbar-thumb:hover,
.story-comments-drawer *::-webkit-scrollbar-thumb:hover,
.story-comments::-webkit-scrollbar-thumb:hover,
.story-modal-panel::-webkit-scrollbar-thumb:hover,
.market-filter-form::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-dark-hover);
}

html.story-viewer-open {
  scrollbar-color: var(--scrollbar-thumb-dark) var(--scrollbar-track-dark);
}
html.story-viewer-open::-webkit-scrollbar-track {
  background: #0a0a0a;
}
html.story-viewer-open::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb-dark);
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-h);
  position: relative;
  transition: padding-top 0.25s var(--ease);
}

html.header-compact {
  --header-h: var(--header-h-compact);
}

.main-header { z-index: 1000 !important; }
.k-toast-wrap { z-index: 10000 !important; }
.lang-dropdown { z-index: 1100 !important; }

body.has-neural-bg > main,
body.has-neural-bg > footer {
  position: relative;
  z-index: 1;
}

/* Modals live outside main (body direct children) — above header/footer */
body.has-neural-bg > .story-modal,
body.has-neural-bg > .story-viewer,
body.has-neural-bg > .requests-modal,
body.has-neural-bg > .product-lightbox {
  z-index: 20000 !important;
}

html.kako-modal-open,
html.kako-nav-open,
html.kako-modal-open body,
html.kako-nav-open body {
  overflow: hidden;
}

body.has-neural-bg > .main-header,
body.has-neural-bg > .k-toast-wrap {
  position: fixed;
  z-index: 1000;
}

body.has-neural-bg > .k-toast-wrap {
  z-index: 10000;
}

@media (prefers-reduced-motion: reduce) {
  /* static frame still drawn by JS */
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: var(--ease); }
ul { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: height 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.main-header.is-compact {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.main-header.is-compact .logo-img,
.main-header.is-compact .brand-logo-img { height: 34px; }
.main-header.is-compact .logo a,
.main-header.is-compact .brand-logo-text { font-size: 1.15rem; }
.main-header.is-compact .nav-links a { padding: 4px 10px; font-size: 0.76rem; }
.main-header.is-compact .lang-trigger { padding: 4px 8px; font-size: 0.72rem; }
.main-header.is-compact .btn-pill { padding: 4px 12px; font-size: 0.74rem; }
.main-header.is-compact .header-avatar { width: 26px; height: 26px; }
.main-header.is-compact .cart-btn { width: 30px; height: 30px; font-size: 0.82rem; }

.main-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  max-width: min(1480px, 100%);
  min-width: 0;
  overflow: visible;
  transition: var(--ease);
}
.main-header .logo {
  flex-shrink: 0;
}

.logo a,
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: var(--ease);
}
.logo-img,
.brand-logo-img {
  height: 34px;
  width: auto;
  max-width: 34px;
  object-fit: contain;
  background: transparent;
  transition: height 0.25s var(--ease), transform 0.25s var(--ease), filter 0.25s var(--ease);
  filter: drop-shadow(0 3px 8px rgba(22, 163, 74, 0.28));
}
.logo-fallback { display: none; align-items: center; gap: 8px; color: var(--brand); }
.brand-logo--header .brand-logo-img {
  height: 36px;
  max-width: 36px;
}
.brand-logo--header:hover .brand-logo-img {
  transform: scale(1.05);
}
.brand-logo--header:hover .brand-logo-text {
  color: var(--brand-dark);
}
.main-header.is-compact .brand-logo--header .brand-logo-img {
  height: 34px;
  max-width: 34px;
}
.brand-logo-text {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--brand);
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-logo--footer {
  gap: 12px;
}
.brand-logo--footer .brand-logo-img {
  height: 48px;
  max-width: 48px;
}
.brand-logo--footer .brand-logo-text {
  font-size: 1.55rem;
}
.header-nav-logo,
.auth-brand-logo,
.hero-brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(22, 163, 74, 0.25));
}
.hero-badge,
.auth-brand-badge,
.market-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-weight: 800;
}
.market-hero-badge .hero-brand-logo {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-links li { flex-shrink: 0; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--muted);
}
.nav-links a:hover, .nav-links a.active { color: var(--brand-dark); background: var(--brand-light); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  min-width: 0;
}

.header-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.header-search-btn:hover {
  color: var(--brand-dark);
  border-color: var(--brand);
  background: var(--brand-muted);
}
.main-header.is-compact .header-search-btn { width: 30px; height: 30px; font-size: 0.82rem; }

/* ── Site search overlay (fullscreen) ── */
html.site-search-open,
body.site-search-open { overflow: hidden; }
.site-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}
.site-search-overlay[hidden] { display: none !important; }
.site-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}
.site-search-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  padding: 28px 24px 40px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.site-search-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.site-search-close:hover { color: var(--brand-dark); border-color: var(--brand); }
.site-search-inner { max-width: 640px; margin: 48px auto 0; }
.site-search-title {
  margin: 0 0 20px;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 900;
  color: var(--brand-dark);
}
.site-search-form { margin-bottom: 16px; }
.site-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  transition: border-color 0.2s;
}
.site-search-input-wrap:focus-within {
  border-color: var(--brand);
  background: #fff;
}
.site-search-input-icon { color: var(--brand); font-size: 1.1rem; }
.site-search-input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  outline: none;
  color: var(--text);
}
.site-search-results {
  display: flex;
  flex-direction: column;
  min-height: 120px;
}
.site-search-results:not(.is-open) .site-search-list:empty + .site-search-hint:not([hidden]) ~ .site-search-view-all { display: none; }
.site-search-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 0.9rem;
}
.site-search-hint[hidden] { display: none !important; }
.site-search-hint i { margin-top: 2px; }
.site-search-hint p { margin: 0; }
.site-search-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-search-section-title {
  list-style: none;
  margin: 12px 0 4px;
  padding: 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-search-section-title--sub { font-size: 0.68rem; color: var(--muted); }
.site-search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.site-search-item:hover { background: var(--surface-2); }
.site-search-item img {
  width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
}
.site-search-item-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.site-search-item--page .site-search-item-icon { background: #e0f2fe; color: #0369a1; }
.site-search-item--faq .site-search-item-icon { background: #fef3c7; color: #b45309; }
.site-search-item--category .site-search-item-icon { background: #ede9fe; color: #6d28d9; }
.site-search-item--product .site-search-item-icon { background: var(--brand-muted); color: var(--brand-dark); }
.site-search-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.site-search-item-body strong { font-size: 0.92rem; font-weight: 700; }
.site-search-item-body small { font-size: 0.78rem; color: var(--muted); }
.site-search-item-arrow { color: var(--muted); font-size: 0.75rem; }
.site-search-msg {
  padding: 20px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
}
.site-search-view-all[hidden] { display: none !important; }

/* ── Cargo track page ── */
.cargo-track-page { max-width: 1100px; margin: 0 auto; padding-bottom: 48px; }
.cargo-track-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  padding: 36px 32px;
  margin-bottom: 28px;
  background: linear-gradient(135deg, #14532d 0%, var(--brand-dark) 45%, var(--brand) 100%);
  color: #fff;
}
.cargo-track-hero-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  top: -120px;
  inset-inline-end: -80px;
  pointer-events: none;
}
.cargo-track-hero-inner { position: relative; z-index: 1; max-width: 560px; }
.cargo-track-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.cargo-track-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
}
.cargo-track-hero p {
  margin: 0;
  opacity: 0.92;
  line-height: 1.7;
  font-size: 1rem;
}
.cargo-track-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 20px;
  align-items: start;
}
.cargo-track-form-card {
  padding: 28px;
  border: 1px solid rgba(22, 163, 74, 0.12);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}
.cargo-track-form-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}
.cargo-track-form-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  color: var(--brand-dark);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.cargo-track-form-head h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
}
.cargo-track-form-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.cargo-track-form .k-field { margin-bottom: 18px; }
.cargo-track-input-wrap { position: relative; }
.cargo-track-input-wrap i {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.cargo-track-input-wrap .k-input { padding-inline-start: 44px; min-height: 48px; font-size: 1rem; }
.cargo-track-captcha-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 10px;
  align-items: center;
}
.cargo-track-captcha-box {
  min-width: 88px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--brand-dark);
  text-align: center;
  letter-spacing: 0.02em;
}
.cargo-track-captcha-refresh {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.cargo-track-captcha-refresh:hover {
  background: var(--brand-light);
  transform: rotate(90deg);
}
.cargo-track-captcha-refresh.is-loading {
  pointer-events: none;
  opacity: 0.7;
}
.cargo-track-captcha-refresh.is-loading i {
  animation: cargo-captcha-spin 0.8s linear infinite;
}
@keyframes cargo-captcha-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cargo-track-captcha-input { min-height: 48px; text-align: center; font-weight: 700; }
.cargo-track-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.22);
}
.cargo-track-features {
  padding: 24px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.cargo-track-features h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 800;
}
.cargo-track-features ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.cargo-track-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 0.92rem;
}
.cargo-track-features li i { color: var(--brand); }
.cargo-track-result-wrap {
  margin-top: 24px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.cargo-track-result-wrap.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.cargo-track-result {
  padding: 24px 26px;
  border: 1px solid rgba(22, 163, 74, 0.14);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}
.cargo-result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.cargo-result-code {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-weight: 800;
  color: var(--brand-dark);
  margin-inline-end: 10px;
  font-size: 1.05rem;
}
.cargo-result-status {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: #f0fdf4;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 700;
}
.cargo-result-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.cargo-result-product { margin: 0 0 8px; font-weight: 800; font-size: 1.05rem; }
.cargo-result-route { margin: 0 0 6px; color: var(--muted); font-size: 0.92rem; }
.cargo-result-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.cargo-result-stat {
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc, #fff);
  border: 1px solid var(--border);
}
.cargo-result-stat span { display: block; font-size: 1.35rem; font-weight: 900; color: var(--brand-dark); }
.cargo-result-stat small { color: var(--muted); font-size: 0.78rem; }
.cargo-result-note {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.88rem;
}
.cargo-result-map {
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid var(--border);
}
.cargo-result-video { margin-top: 18px; }
.cargo-result-video h4 { margin: 0 0 10px; font-size: 1rem; }
.cargo-result-video video {
  width: 100%;
  max-height: 360px;
  border-radius: 16px;
  background: #000;
}
.order-tracking-code {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.order-tracking-code code {
  font-weight: 800;
  color: var(--brand-dark);
}
@media (max-width: 900px) {
  .cargo-track-layout { grid-template-columns: 1fr; }
  .cargo-track-hero { padding: 28px 22px; }
  .cargo-track-captcha-row { grid-template-columns: 1fr 48px; }
  .cargo-track-captcha-box { grid-column: 1 / -1; }
  .cargo-track-captcha-input { grid-column: 1 / 2; }
}

.header-auth { display: flex; align-items: center; gap: 8px; }

.lang-selector-header { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px 4px 6px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 0.76rem; color: var(--text);
  cursor: pointer; transition: var(--ease); white-space: nowrap;
  min-height: 34px;
  flex-shrink: 0;
  overflow: hidden;
}
.lang-trigger:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-muted); }
.lang-flag-badge {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}
.lang-flag-badge--sm { width: 24px; height: 24px; }
.lang-flag-icon {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}
.lang-flag-icon--kurdistan {
  background:
    linear-gradient(#ef3340 0 33.33%, #fff 33.33% 66.66%, #00ab49 66.66% 100%);
  position: relative;
}
.lang-flag-icon--kurdistan::after {
  content: "";
  position: absolute;
  inset: 28%;
  background: #fece00;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.lang-current-name {
  max-width: 5em; overflow: hidden; text-overflow: ellipsis;
  font-weight: 700; font-size: 0.72rem; line-height: 1.2;
}
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  width: min(280px, calc(100vw - 24px));
  max-height: min(360px, 70vh);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 1100;
}
.lang-dropdown-head {
  padding: 6px 10px 8px;
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.lang-option {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 10px;
  font-size: 0.88rem; color: var(--text); text-decoration: none;
  transition: background 0.15s ease;
}
.lang-option-body {
  display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1;
}
.lang-option-native { font-weight: 700; line-height: 1.3; }
.lang-option-name { font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.lang-option-check { color: var(--brand); font-size: 0.78rem; flex-shrink: 0; }
.lang-option:hover { background: var(--surface-2); color: var(--brand-dark); }
.lang-option.active { background: var(--brand-light); color: var(--brand-dark); }
.lang-selector-header.open .lang-chevron { transform: rotate(180deg); }
.lang-chevron { font-size: 0.6rem; color: var(--muted); transition: transform 0.2s; margin-inline-start: 2px; }

.currency-selector-header { position: relative; }
.currency-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border-radius: var(--radius-full);
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: 0.74rem; color: var(--text);
  cursor: pointer; transition: var(--ease); white-space: nowrap;
  min-height: 34px; flex-shrink: 0; overflow: hidden;
}
.currency-trigger:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-muted); }
.currency-icon { color: #d97706; flex-shrink: 0; }
.currency-code { font-weight: 800; letter-spacing: 0.02em; line-height: 1; }
.currency-dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 200px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; z-index: 1100;
}
.currency-dropdown-head {
  padding: 6px 10px 8px;
  font-size: 0.72rem; font-weight: 700; color: var(--muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.currency-option {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 8px; font-size: 0.88rem; color: var(--text);
}
.currency-option:hover { background: var(--surface-2); color: var(--brand-dark); }
.currency-option.active { background: var(--brand-light); color: var(--brand-dark); font-weight: 700; }
.currency-selector-header.open .currency-chevron { transform: rotate(180deg); }
.currency-chevron { font-size: 0.6rem; color: var(--muted); transition: transform 0.2s; }
.main-header.is-compact .currency-trigger { padding: 4px 7px; font-size: 0.7rem; min-height: 30px; }
.currency-label,
.currency-symbol { display: none !important; }

.cart-btn {
  position: relative; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-muted); color: var(--brand-dark);
  border-radius: 50%; font-size: 0.9rem;
}
.cart-badge {
  position: absolute; top: -2px; inset-inline-end: -2px;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--danger); color: #fff; border-radius: 50%;
  font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}

.btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 5px 12px; border-radius: var(--radius-full);
  font-weight: 700; font-size: 0.76rem; border: none; cursor: pointer; transition: var(--ease);
  white-space: nowrap; flex-shrink: 0;
}
.btn-login { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-login:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-muted); }
.btn-reg {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.btn-reg:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4); }

.user-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 3px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  white-space: nowrap; flex-shrink: 0; max-width: 140px;
}
.user-name-text {
  overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.header-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.header-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: var(--ease);
}
.header-menu-toggle:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-muted);
}
.header-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.header-nav-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.header-nav-head,
.header-nav-mobile-extra { display: none; }

.header-profile-mobile {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  flex-shrink: 0;
  transition: var(--ease);
}
.header-profile-mobile:hover {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.header-profile-mobile .header-avatar {
  width: 100%;
  height: 100%;
}
.header-profile-mobile.is-guest {
  color: var(--brand-dark);
  font-size: 1rem;
}

@media (min-width: 991px) {
  .header-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }
  .header-nav-panel-user,
  .nav-links-panel,
  .header-nav-mobile-extra-panel { display: none !important; }
}

@media (min-width: 991px) and (max-width: 1360px) {
  .lang-current-name { display: none; }
  .nav-links a { padding: 4px 6px; font-size: 0.74rem; }
  .main-header .container { gap: 6px; padding-inline: 12px; }
  .header-actions { gap: 4px; }
}

@media (min-width: 991px) and (max-width: 1180px) {
  .nav-links a { padding: 4px 5px; font-size: 0.7rem; }
  .btn-pill { padding: 4px 9px; font-size: 0.72rem; }
  .brand-logo--header .brand-logo-text { font-size: 1.05rem; }
}

/* ── Main ── */
.k-site-main, .k-dashboard-main, .k-auth-main { flex: 1 0 auto; }
.k-page { max-width: var(--container); margin: 0 auto; padding: 32px 20px 48px; }
.k-auth-main { padding: 32px 20px 48px; }

/* ── Typography ── */
.k-section-title {
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 800; margin: 0 0 20px; color: var(--text);
}
.k-page-title {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 800; margin: 0 0 24px;
  display: flex; align-items: center; gap: 10px;
}

/* ── Cards & buttons ── */
.k-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 0.875rem; line-height: 1.2;
  border: none; cursor: pointer; transition: var(--ease);
  white-space: nowrap; text-decoration: none;
}
.k-btn i { font-size: 0.92em; line-height: 1; }
.k-btn-primary {
  background: var(--brand);
  color: #fff; box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}
.k-btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.26);
}
.k-btn-outline {
  background: var(--surface); color: var(--brand-dark);
  border: 1px solid var(--brand);
}
.k-btn-outline:hover { background: var(--brand-muted); }
.k-btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.k-btn-sm { padding: 7px 13px; font-size: 0.8rem; border-radius: 8px; gap: 6px; }
.k-btn-sm i { font-size: 0.88em; }

/* ── Forms ── */
.k-field { margin-bottom: 18px; }
.k-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: var(--text); }
.k-label-optional { font-weight: 500; color: var(--muted); font-size: 0.82em; }
.k-input, .k-select, .k-textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); transition: var(--ease);
}
.k-input:focus, .k-select:focus, .k-textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}
.k-input-icon-wrap { position: relative; }
.k-input-icon-wrap .k-input { padding-inline-start: 44px; }
.k-input-icon-wrap i {
  position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted);
}

/* ── Hero (home) ── */
.hero-section {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px;
  margin-bottom: 48px; align-items: stretch;
  position: relative;
  z-index: 20;
}
.hero-section:has(.hero-search-card.is-search-open) {
  z-index: 500;
}
.hero-content {
  padding: 40px 36px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #22c55e 100%);
  color: #fff; position: relative; overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.hero-section--brand .hero-content {
  background: #0f3d24;
  padding: 0;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  filter: saturate(1.05);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(8, 40, 22, 0.92) 0%, rgba(12, 70, 38, 0.78) 48%, rgba(16, 90, 48, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 28, 16, 0.35) 0%, rgba(6, 28, 16, 0.72) 100%);
}
.hero-content-inner {
  position: relative;
  z-index: 1;
  padding: 40px 36px;
  width: 100%;
}
.hero-content::after {
  content: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15); font-size: 0.78rem; font-weight: 600;
  margin-bottom: 16px;
}
.hero-brand-mark {
  margin: 0 0 18px;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}
.hero-title {
  font-size: clamp(1.75rem, 3.8vw, 2.55rem);
  font-weight: 900;
  margin: 0 0 18px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero-sub { opacity: 0.92; margin: 0 0 24px; max-width: 480px; font-size: 1.02rem; }

.hero-slides {
  margin: 0 0 28px;
  max-width: 560px;
  min-height: 168px;
}
.hero-slides-track {
  position: relative;
}
.hero-slide {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-slide.is-leaving {
  position: absolute;
  inset-inline: 0;
  top: 0;
  opacity: 0;
  transform: translateY(-10px);
}
.hero-slide-title {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #bbf7d0;
  line-height: 1.35;
}
.hero-services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.hero-services li {
  position: relative;
  padding: 10px 12px 10px 1.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.hero-services li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0.55rem;
  top: 1.05em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #86efac;
  box-shadow: 0 0 0 3px rgba(134, 239, 172, 0.22);
}
.hero-slides-dots {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.hero-slides-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: width .2s ease, background .2s ease;
}
.hero-slides-dot.is-active {
  width: 22px;
  background: #fff;
}
.hero-rotator-wrap { position: relative; z-index: 1; }
.hero-rotator-title,
.hero-rotator-sub {
  display: block;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.hero-rotator-wrap.is-fading .hero-rotator-title,
.hero-rotator-wrap.is-fading .hero-rotator-sub {
  opacity: 0;
  transform: translateY(10px);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-rotator-title,
  .hero-rotator-sub { transition: none; }
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions .k-btn { box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.hero-actions .k-btn-outline { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.35); color: #fff; }
.hero-actions .k-btn-outline:hover { background: rgba(255,255,255,0.2); }
.hero-actions .k-btn-primary {
  background: #fff;
  color: #14532d;
  border-color: #fff;
}
.hero-actions .k-btn-primary:hover {
  background: #ecfdf5;
  color: #14532d;
}

.hero-search-card {
  position: relative;
  z-index: 120;
  padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.hero-search-card.is-search-open {
  z-index: 900;
}
.hero-search-wrap { position: relative; z-index: 1; }
.hero-search-form { display: flex; gap: 8px; position: relative; z-index: 2; }
.hero-search-form .k-input { flex: 1; }
.hero-search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-height: min(420px, 60vh);
  display: flex;
  flex-direction: column;
  background: #fff;
  z-index: 910;
}
.hero-search-dropdown.is-open {
  min-height: 52px;
}
.hero-search-dropdown[hidden] { display: none !important; }
.hero-search-section-title {
  list-style: none;
  margin: 0;
  padding: 10px 14px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.hero-search-section-title--sub {
  padding-top: 6px;
  font-size: 0.68rem;
  color: var(--muted);
}
.hero-search-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  background: var(--surface-2);
}
.hero-search-hint[hidden] { display: none !important; }
.hero-search-hint i {
  color: var(--brand);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}
.hero-search-hint p { margin: 0; }
.hero-search-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  max-height: 320px;
}
.k-chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 0; }
.hero-search-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.hero-search-item:hover {
  background: var(--brand-muted);
}
.hero-search-item img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.hero-search-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 1.05rem;
}
.hero-search-item--page .hero-search-item-icon { background: #e0f2fe; color: #0369a1; }
.hero-search-item--faq .hero-search-item-icon { background: #fef3c7; color: #b45309; }
.hero-search-item--category .hero-search-item-icon { background: #ede9fe; color: #6d28d9; }
.hero-search-item--product .hero-search-item-icon { background: var(--brand-muted); color: var(--brand-dark); }
.hero-search-item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.hero-search-item-body strong {
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-search-item-body small {
  color: var(--muted);
  font-size: 0.8rem;
}
.hero-search-item-arrow {
  color: var(--brand);
  font-size: 0.75rem;
}
.hero-search-msg {
  padding: 16px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.hero-search-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 0.86rem;
  text-decoration: none;
}
.hero-search-view-all:hover {
  background: var(--brand-muted);
}
.hero-search-view-all[hidden] { display: none !important; }

/* ── Conference hero entry card ── */
.conference-hero-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  position: relative;
  z-index: 120;
}
.conference-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 700;
  width: fit-content;
}
.conference-hero-title { margin: 8px 0 0 !important; font-size: 1.25rem !important; }
.conference-hero-sub {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.conference-hero-lang-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}
.conference-hero-lang-select {
  display: flex;
  align-items: center;
  gap: 10px;
}
.conference-hero-lang-input {
  flex: 1;
  padding-block: 10px;
  font-size: 0.9rem;
}
.conference-hero-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
}
.conference-hero-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.conference-hero-status-dot.is-live { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
.conference-hero-status-dot.is-scheduled { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25); }
.conference-hero-status-dot.is-none { background: #94a3b8; }
.conference-hero-enter { width: 100%; justify-content: center; }
.conference-hero-enter:disabled,
.conference-hero-enter.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.conference-hero-card--empty {
  justify-content: flex-start;
  align-self: start;
  min-height: auto;
}
.conference-hero-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px dashed var(--border);
}
.conference-hero-empty-icon {
  font-size: 1.35rem;
  color: var(--muted);
  opacity: 0.85;
}

.k-chip {
  padding: 7px 14px; border-radius: var(--radius-full);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
}
.k-chip:hover { color: var(--brand-dark); border-color: var(--brand); background: var(--brand-muted); }

/* ── Services grid ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
  margin-bottom: 48px;
}
.service-card {
  padding: 28px 20px; text-align: center; transition: var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px; height: 56px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px; background: var(--brand-muted); color: var(--brand);
  font-size: 1.4rem;
}
.service-card h3 { margin: 0; font-size: 1rem; font-weight: 800; }

/* ── Product grid ── */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.prod-card { overflow: hidden; transition: var(--ease); }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.prod-img { width: 100%; height: 190px; object-fit: cover; background: var(--surface-2); }
.prod-body { padding: 18px; }
.prod-cat {
  display: inline-block; margin-bottom: 8px; padding: 4px 10px;
  border-radius: var(--radius-full); background: var(--brand-muted);
  color: var(--brand-dark); font-size: 0.72rem; font-weight: 700;
}
.prod-title { margin: 0 0 8px; font-size: 1rem; font-weight: 700; }
.prod-price { color: var(--brand-dark); font-weight: 800; font-size: 1.05rem; margin: 0 0 14px; }
.prod-actions { display: flex; gap: 8px; }
.prod-actions .k-btn-primary { flex: 1; padding: 10px; font-size: 0.85rem; }
.prod-cart-btn {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--brand); background: var(--surface);
  color: var(--brand); border-radius: var(--radius-sm); cursor: pointer;
}
.prod-cart-btn:hover { background: var(--brand-muted); }

/* ── Auth ── */
.auth-shell {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch;
}
.auth-panel {
  padding: 36px 32px; display: flex; flex-direction: column; justify-content: center;
}
.auth-brand-side {
  padding: 36px 28px 28px; color: #fff;
  background: linear-gradient(160deg, var(--brand-dark), var(--brand) 50%, #059669);
  border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; flex-direction: column; min-height: 100%;
}
.auth-brand-badge { margin-bottom: 20px; }
.auth-panel-sub { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.auth-brand-side h1 { font-size: 1.75rem; font-weight: 900; margin: 0 0 12px; }
.auth-brand-side p { opacity: 0.9; margin: 0 0 24px; line-height: 1.8; }

.auth-slider { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-slider-track { position: relative; min-height: 220px; }
.auth-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.auth-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.auth-slide-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: rgba(255,255,255,0.14); display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.auth-slide h2 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 900; line-height: 1.35; }
.auth-slide p { margin: 0; opacity: 0.92; line-height: 1.85; font-size: 0.95rem; max-width: 360px; }
.auth-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 4px;
}
.auth-slider-nav {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
  flex-shrink: 0;
}
.auth-slider-nav:hover {
  background: rgba(255,255,255,0.22);
  transform: scale(1.05);
}
.auth-slider-dots { display: flex; gap: 8px; justify-content: center; }
.auth-slider-dot {
  width: 10px; height: 10px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,0.35); cursor: pointer; transition: var(--ease);
}
.auth-slider-dot.is-active { background: #fff; transform: scale(1.15); }

.auth-mode-tabs,
.auth-method-tabs {
  display: flex; gap: 8px; margin-bottom: 16px;
  padding: 4px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
}
.auth-mode-tab,
.auth-method-tab {
  flex: 1; border: none; background: transparent; cursor: pointer;
  padding: 10px 12px; border-radius: 8px; font-weight: 700; font-size: 0.84rem;
  color: var(--muted); font-family: inherit; transition: var(--ease);
}
.auth-mode-tab.is-active,
.auth-method-tab.is-active {
  background: var(--surface); color: var(--brand-dark);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.auth-mode-panel[hidden] { display: none !important; }

.auth-demo-otp {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: #fffbeb; border: 1px dashed #fbbf24;
  color: #92400e; font-size: 0.82rem; font-weight: 600;
}
.auth-demo-otp i { color: #d97706; }
.auth-otp-sent {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; margin-bottom: 14px;
  border-radius: var(--radius-sm); background: var(--brand-muted);
  color: var(--brand-dark); font-size: 0.84rem; font-weight: 600;
}
.auth-otp-input {
  letter-spacing: 0.35em; text-align: center; font-size: 1.2rem; font-weight: 800;
}
.auth-form.is-locked .auth-form-lockable {
  position: relative;
  pointer-events: none;
  user-select: none;
}
.auth-form.is-locked .auth-form-lockable::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-sm);
  background: rgba(248, 250, 252, 0.45);
  pointer-events: none;
}
.auth-form.is-locked .auth-form-lockable .k-input,
.auth-form.is-locked .auth-form-lockable .k-select,
.auth-form.is-locked .auth-form-lockable .country-picker-search {
  background: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.92;
}
.auth-form.is-locked .auth-method-tab[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-otp-step {
  margin-bottom: 16px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(22, 163, 74, 0.2);
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 100%);
}
.auth-otp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 4px;
}
.auth-resend-btn,
.auth-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}
.auth-resend-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.auth-resend-btn:not(:disabled):hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-light);
}
.auth-resend-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  color: var(--muted);
}
.auth-edit-btn {
  border: 1px dashed var(--brand);
  background: transparent;
  color: var(--brand-dark);
}
.auth-edit-btn:hover {
  background: var(--brand-muted);
}
.auth-field-error { margin: 8px 0 0; color: #dc2626; font-size: 0.82rem; font-weight: 600; }
.auth-field-hint { margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }
.auth-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-forgot-link { color: var(--brand); font-weight: 700; font-size: 0.84rem; }
.auth-form { display: flex; flex-direction: column; }

.country-picker { position: relative; }
.country-picker-control { position: relative; }
.country-picker-search { width: 100%; padding-inline-end: 40px; }
.country-picker-chevron {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
  font-size: 0.75rem;
}
.country-picker-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}
.country-picker-list[hidden] { display: none !important; }
.country-picker-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  text-align: start;
}
.country-picker-option small { color: var(--muted); font-weight: 600; }
.country-picker-option:hover,
.country-picker-option.is-active {
  background: var(--brand-muted);
  color: var(--brand-dark);
}

.auth-features { display: flex; flex-direction: column; gap: 14px; }
.auth-feature {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.1);
}
.auth-feature i { font-size: 1.1rem; margin-top: 2px; }
.auth-feature strong { display: block; font-size: 0.9rem; }
.auth-feature span { font-size: 0.82rem; opacity: 0.85; }
.auth-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.auth-head h2 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.auth-head a { color: var(--brand); font-weight: 600; font-size: 0.88rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 0.88rem; }
.auth-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.auth-foot { margin-top: 16px; font-size: 0.82rem; color: var(--muted); text-align: center; }
.auth-foot a { color: var(--brand); font-weight: 600; }
.pass-toggle {
  position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px;
}

/* ── Market page ── */
.market-page { padding-bottom: 48px; }

.market-hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 28px;
}
.market-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: var(--brand-muted); color: var(--brand-dark);
  font-size: 0.78rem; font-weight: 700; margin-bottom: 10px;
}
.market-hero-title {
  margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900;
  display: flex; align-items: center; gap: 10px;
}
.market-hero-title i { color: var(--brand); }
.market-hero-sub { margin: 0; color: var(--muted); font-size: 0.95rem; max-width: 520px; line-height: 1.7; }

.market-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start;
}

.market-filter-card {
  padding: 0; overflow: hidden; position: sticky; top: calc(var(--header-h) + 16px);
}
.market-filter-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand-muted), rgba(255,255,255,0.6));
}
.market-filter-head h2 {
  margin: 0; font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.market-filter-head h2 i { color: var(--brand); }
.market-filter-close {
  display: none; width: 36px; height: 36px; border: none; border-radius: 10px;
  background: var(--surface); color: var(--muted); cursor: pointer;
}
.market-filter-form { padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.market-filter-section { display: flex; flex-direction: column; gap: 10px; }
.market-filter-label {
  font-size: 0.82rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}
.market-filter-label i { color: var(--brand); font-size: 0.78rem; }
.market-filter-hint { font-size: 0.75rem; color: var(--muted); margin: -4px 0 0; }

.market-search-wrap { position: relative; }
.market-search-wrap .k-input { padding-inline-start: 40px; width: 100%; }
.market-search-icon {
  position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 0.85rem; pointer-events: none;
}

.market-cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.market-cat-item {
  cursor: pointer; margin: 0; position: relative;
}
.market-cat-item input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer; margin: 0;
}
.market-cat-item span {
  display: inline-flex; align-items: center; padding: 8px 14px;
  border-radius: var(--radius-full); border: 2px solid var(--border);
  background: var(--surface-2); font-size: 0.8rem; font-weight: 600; color: var(--muted);
  transition: var(--ease); pointer-events: none;
}
.market-cat-item:hover span {
  border-color: var(--brand); color: var(--brand-dark); background: var(--brand-muted);
}
.market-cat-item.is-active span {
  border-color: var(--brand); background: var(--brand); color: #fff;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}
.market-cat-item input:focus-visible + span {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

.market-price-row { display: flex; align-items: flex-end; gap: 8px; }
.market-price-field { flex: 1; min-width: 0; }
.market-price-field label {
  display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 4px; font-weight: 600;
}
.market-price-field .k-input { width: 100%; padding: 10px 12px; font-size: 0.88rem; }
.market-price-sep { color: var(--muted); padding-bottom: 10px; font-weight: 700; }

.market-sort-select {
  width: 100%; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-start: 36px;
}
[dir="ltr"] .market-sort-select {
  background-position: right 14px center;
  padding-inline-start: 12px;
  padding-inline-end: 36px;
}

.market-filter-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.market-main { min-width: 0; position: relative; }
.market-main.is-loading #marketResults {
  opacity: 0.45;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.market-main.is-loading::after {
  content: '';
  position: absolute;
  inset: 80px 0 0;
  margin: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(22, 163, 74, 0.18);
  border-top-color: var(--brand);
  animation: market-spin 0.7s linear infinite;
  z-index: 2;
}
@keyframes market-spin { to { transform: rotate(360deg); } }
.market-topbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.market-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  justify-content: center;
}
.market-quick-chip {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.market-quick-chip:hover {
  border-color: rgba(22, 163, 74, 0.35);
  color: var(--brand-dark);
}
.market-quick-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.22);
  transform: translateY(-1px);
}
.market-quick-chip:active { transform: translateY(0); }
.market-filter-toggle { display: none; }
.market-results-text { margin: 0; font-size: 0.88rem; color: var(--muted); font-weight: 600; }

.market-active-filters {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.market-filter-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: var(--radius-full);
  background: var(--brand-muted); border: 1px solid rgba(22, 163, 74, 0.2);
  color: var(--brand-dark); font-size: 0.8rem; font-weight: 700;
  transition: var(--ease);
}
.market-filter-tag:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.market-filter-tag i { font-size: 0.7rem; opacity: 0.8; }

.market-pagination { margin-top: 32px; display: flex; justify-content: center; }
.kako-pagination-list {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  list-style: none; padding: 0; margin: 0;
}
.kako-pagination-item a,
.kako-pagination-item span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 600;
  transition: var(--ease);
}
.kako-pagination-item a:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-muted); }
.kako-pagination-item.is-active span {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.kako-pagination-item.is-disabled span { opacity: 0.45; cursor: not-allowed; }
.kako-pagination-item.is-dots span { border: none; background: transparent; min-width: auto; padding: 0 4px; }
.market-empty p { color: var(--muted); margin: 0 0 16px; }

.market-sidebar-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(15, 23, 42, 0.45); backdrop-filter: blur(3px);
}

@media (max-width: 960px) {
  .market-layout { grid-template-columns: 1fr; }
  .market-filter-toggle { display: inline-flex; }
  .market-topbar { flex-direction: column; align-items: stretch; }
  .market-quick-filters {
    order: 2;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }
  .market-results-text { order: 3; }

  .market-sidebar {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    inset-inline-end: auto;
    z-index: 210;
    width: min(320px, 88vw);
    max-width: 88vw;
    padding: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.28s ease, visibility 0.28s;
  }

  html[dir="rtl"] .market-sidebar {
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform: translate3d(-100%, 0, 0);
  }

  html[dir="ltr"] .market-sidebar.is-open,
  html[dir="rtl"] .market-sidebar.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .market-filter-card {
    position: static;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.18);
  }
  .market-filter-form { flex: 1; overflow-y: auto; }
  .market-filter-close { display: inline-flex; align-items: center; justify-content: center; }
  .market-main { width: 100%; }
}

/* legacy */
.market-toolbar {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  justify-content: space-between; margin-bottom: 28px;
}
.market-filters { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.market-filters .k-input { max-width: 200px; }

/* ── Product detail page ── */
.product-page { padding-bottom: 48px; }

.product-breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 22px; font-size: 0.82rem; color: var(--muted);
}
.product-breadcrumb a { color: var(--brand); font-weight: 600; }
.product-breadcrumb a:hover { text-decoration: underline; }
.product-breadcrumb i { font-size: 0.65rem; opacity: 0.5; }
.product-breadcrumb span { color: var(--text); font-weight: 600; }

.product-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: start;
  margin-bottom: 28px;
}

.product-gallery-section { min-width: 0; }
.product-gallery { padding: 0; overflow: hidden; }
.product-gallery-main {
  position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden;
  cursor: zoom-in;
}
.product-gallery-zoom-hint {
  position: absolute; inset-inline-end: 14px; top: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.62); color: #fff;
  font-size: 0.72rem; font-weight: 700; pointer-events: none;
  opacity: 0; transition: opacity 0.2s ease;
}
.product-gallery-main:hover .product-gallery-zoom-hint,
.product-gallery-main:focus-visible .product-gallery-zoom-hint { opacity: 1; }
.product-gallery-main:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.product-gallery-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.product-gallery-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.product-gallery-slide img,
.product-gallery-slide video {
  width: 100%; height: 100%; object-fit: contain; background: #0f172a;
}
.product-map-details {
  margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--muted); font-size: 0.88rem; line-height: 1.7;
}
.product-gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--text);
  box-shadow: var(--shadow); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--ease);
}
.product-gallery-nav:hover { background: var(--brand); color: #fff; }
.product-gallery-prev { inset-inline-start: 14px; }
.product-gallery-next { inset-inline-end: 14px; }
.product-gallery-counter {
  position: absolute; inset-inline-end: 14px; bottom: 14px; z-index: 3;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.65); color: #fff; font-size: 0.78rem; font-weight: 700;
}
.product-gallery-thumbs {
  display: flex; gap: 8px; padding: 12px; overflow-x: auto;
  border-top: 1px solid var(--border); background: var(--surface);
}
.product-gallery-thumb {
  flex: 0 0 72px; width: 72px; height: 72px; padding: 0; border: 2px solid transparent;
  border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface-2);
  transition: var(--ease);
}
.product-gallery-thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(22,163,74,0.15); }
.product-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product lightbox */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.product-lightbox[hidden] { display: none !important; }
.product-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(8px);
}
.product-lightbox-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.product-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}
.product-lightbox-stage {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  height: min(86vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-lightbox-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.product-lightbox-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.product-lightbox-slide img,
.product-lightbox-slide video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.product-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.product-lightbox-nav:hover {
  background: var(--brand);
  transform: translateY(-50%) scale(1.06);
}
.product-lightbox-prev { inset-inline-start: 16px; }
.product-lightbox-next { inset-inline-end: 16px; }
.product-lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

@media (max-width: 640px) {
  .product-lightbox { padding: 8px; }
  .product-lightbox-stage { height: 78vh; }
  .product-lightbox-nav { width: 42px; height: 42px; }
  .product-lightbox-prev { inset-inline-start: 8px; }
  .product-lightbox-next { inset-inline-end: 8px; }
  .product-lightbox-close { top: 10px; inset-inline-end: 10px; width: 42px; height: 42px; }
  .product-gallery-zoom-hint { display: none; }
}

.product-buy-panel { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--header-h) + 16px); }
.product-buy-card { padding: 24px; }
.product-cat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-full);
  background: var(--brand-muted); color: var(--brand-dark);
  font-size: 0.78rem; font-weight: 700; margin-bottom: 12px;
}
.product-title { margin: 0 0 16px; font-size: clamp(1.35rem, 2.5vw, 1.85rem); font-weight: 900; line-height: 1.35; }
.product-price-block { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.product-price-lg {
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900; color: var(--brand-dark); line-height: 1.2;
}
.product-price-lg small { font-size: 0.55em; font-weight: 700; }
.product-unit { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }

.product-spec-grid { display: grid; gap: 12px; margin-bottom: 22px; }
.product-spec {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border);
}
.product-spec i { color: var(--brand); font-size: 1rem; margin-top: 2px; width: 18px; text-align: center; }
.product-spec strong { display: block; font-size: 0.72rem; color: var(--muted); margin-bottom: 2px; }
.product-spec span { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.product-spec-live i { color: #ef4444; animation: pulse-live 1.4s infinite; }
@keyframes pulse-live { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.product-actions { display: flex; flex-direction: column; gap: 10px; }
.product-add-cart { width: 100%; padding: 14px; font-size: 1rem; }
.product-buy-form { display: flex; flex-direction: column; gap: 14px; }
.product-sale-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  border: 1px solid var(--border);
  background: #fff;
}
.product-sale-badge.is-retail { color: var(--brand-dark); background: var(--brand-muted); }
.product-sale-badge.is-wholesale { color: #5b21b6; background: #f3e8ff; border-color: #ddd6fe; }
.product-sale-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.product-sale-mode-option { cursor: pointer; }
.product-sale-mode-option input { position: absolute; opacity: 0; pointer-events: none; }
.product-sale-mode-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fff;
  min-height: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.product-sale-mode-body i { font-size: 1.1rem; color: var(--brand); }
.product-sale-mode-body strong { font-size: 0.92rem; }
.product-sale-mode-body small { color: var(--muted); font-size: 0.76rem; line-height: 1.4; }
.product-sale-mode-option:has(input:checked) .product-sale-mode-body {
  border-color: var(--brand);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.1);
}
.prod-sale-badge {
  display: inline-block;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.prod-sale-badge.is-retail { background: var(--brand-muted); color: var(--brand-dark); }
.prod-sale-badge.is-wholesale { background: #f3e8ff; color: #5b21b6; }
.product-purchase-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.product-purchase-tab {
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.product-purchase-tab.is-active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.product-buy-panel-form { display: flex; flex-direction: column; gap: 12px; }
.product-buy-mode[hidden] { display: none !important; }
.product-qty-stepper {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 8px;
  align-items: center;
}
.product-qty-btn {
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}
.product-qty-stepper .k-input { text-align: center; min-height: 44px; }
.product-lot-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.product-lot-stat {
  padding: 10px 8px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}
.product-lot-stat span {
  display: block;
  font-size: 1rem;
  font-weight: 900;
  color: var(--text);
}
.product-lot-stat small {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}
.product-lot-stat.is-accent {
  background: linear-gradient(180deg, #ecfdf5, #fff);
  border-color: rgba(22, 163, 74, 0.25);
}
.product-lot-stat.is-accent span { color: var(--brand-dark); }
.product-wholesale-input-wrap { position: relative; }
.product-wholesale-input-wrap .k-input { min-height: 46px; padding-inline-end: 72px; }
.product-wholesale-unit {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.product-wholesale-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
}
.product-buy-note {
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.88rem;
}
.cart-item-type {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
}
.cart-item-type.is-wholesale {
  background: #ecfdf5;
  color: var(--brand-dark);
}
.cart-item-lot { font-size: 0.8rem; }
.checkout-item-type {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.order-item-meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}
.k-field-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.product-seller-card { padding: 20px; }
.product-seller-card h3 {
  margin: 0 0 14px; font-size: 0.95rem; display: flex; align-items: center; gap: 8px;
}
.product-seller-row { display: flex; align-items: center; gap: 14px; }
.product-seller-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-muted); }
.product-seller-row strong { display: block; font-size: 0.95rem; }
.product-seller-row span { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.product-seller-row small { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

.product-details-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; margin-bottom: 36px;
}
.product-desc-card, .product-map-card { padding: 24px; }
.product-desc-card h2, .product-map-card h2 {
  margin: 0 0 16px; font-size: 1.05rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.product-desc-card h2 i, .product-map-card h2 i { color: var(--brand); }
.product-desc-body { line-height: 1.9; color: var(--text); font-size: 0.95rem; }
.product-map-address { margin: 0 0 14px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.product-map-wrap {
  border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border);
  aspect-ratio: 16 / 10; background: var(--surface-2);
}
.product-map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
.product-map-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  color: var(--brand); font-weight: 700; font-size: 0.88rem;
}
.product-map-fallback { color: var(--muted); font-size: 0.88rem; margin: 0; }

.product-related { margin-top: 12px; }
.product-related .k-section-title { margin-bottom: 20px; }

@media (max-width: 960px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-buy-panel { position: static; }
}

/* legacy aliases */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.product-meta { color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.product-desc { padding: 20px; margin: 20px 0; line-height: 1.85; color: var(--text); }

/* ── Cart ── */
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-title { font-weight: 700; margin-bottom: 4px; }
.cart-item-price { color: var(--muted); font-size: 0.9rem; }
.cart-summary { padding: 24px; }
.cart-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; font-size: 1.05rem;
}
.cart-summary-row strong { color: var(--brand-dark); font-size: 1.2rem; }

/* ── Cart page (modern) ── */
.cart-page { padding-top: 8px; }
.cart-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%, #f0fdf4 100%);
  border: 1px solid rgba(22, 163, 74, 0.15);
  overflow: hidden;
  position: relative;
}
.cart-hero::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.06);
  inset-inline-end: -40px;
  top: -40px;
}
.cart-hero-content { position: relative; z-index: 1; }
.cart-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.cart-hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--brand-dark);
}
.cart-hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.cart-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.25);
  position: relative;
  z-index: 1;
}
.cart-items-panel { display: flex; flex-direction: column; gap: 14px; }
.cart-select-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 16px;
}
.cart-select-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  cursor: pointer;
  color: var(--text);
}
.cart-select-all input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}
.cart-select-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.cart-stage-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.cart-stage-group__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 4px;
}
.cart-stage-group__header h3 { margin: 6px 0 4px; font-size: 1.05rem; }
.cart-stage-group__header p { margin: 0; color: #64748b; font-size: 0.85rem; line-height: 1.55; }
.cart-stage-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  background: #e2e8f0;
  color: #334155;
}
.cart-stage-group.is-stage-1 { border-color: #cbd5e1; background: #f8fafc; }
.cart-stage-group.is-stage-1 .cart-stage-badge { background: #e2e8f0; }
.cart-stage-group.is-stage-2 { border-color: #86efac; background: #f0fdf4; }
.cart-stage-group.is-stage-2 .cart-stage-badge { background: #dcfce7; color: #166534; }
.cart-stage-group.is-stage-3 { border-color: #7dd3fc; background: #f0f9ff; }
.cart-stage-group.is-stage-3 .cart-stage-badge { background: #e0f2fe; color: #075985; }
.cart-item-card {
  display: grid;
  grid-template-columns: auto 108px 1fr;
  gap: 14px 16px;
  padding: 16px;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
.cart-item-card.is-selected {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.03);
}
.cart-item-card.is-held {
  grid-template-columns: 108px 1fr;
  border-color: rgba(14, 165, 233, 0.35);
  background: rgba(224, 242, 254, 0.45);
}
.cart-item-card.is-held.is-loadable {
  grid-template-columns: auto 108px 1fr;
}
.cart-held-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.cart-held-head h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0369a1;
}
.cart-held-head p {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}
.cart-held-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.cart-held-stage {
  color: #0369a1;
  font-weight: 600;
}
.cart-held-order {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.cart-held-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #64748b;
}
.cart-held-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cart-held-select-all {
  flex-shrink: 0;
}
.cart-held-check {
  grid-column: 1;
}
.cart-held-section .cart-item-card.is-selected {
  border-color: rgba(22, 163, 74, 0.35);
  background: rgba(22, 163, 74, 0.03);
}
.cart-held-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(22, 163, 74, 0.06);
  border: 2px solid rgba(22, 163, 74, 0.2);
  border-radius: 14px;
  font-weight: 600;
  color: #15803d;
}
.cart-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.cart-item-check {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  align-self: start;
  padding-top: 4px;
}
.cart-item-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.cart-item-check-box {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #cbd5e1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.cart-item-check input:checked + .cart-item-check-box {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}
.cart-item-check input:checked + .cart-item-check-box::after {
  content: '';
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.cart-item-location {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}
.cart-item-location i {
  color: var(--brand);
  margin-top: 2px;
}
.cart-item-location strong {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.cart-item-location span,
.cart-item-location small {
  display: block;
}
.cart-item-location small {
  margin-top: 2px;
  color: var(--muted);
}
.cart-item-location.is-muted {
  color: var(--muted);
}
.cart-summary-hint {
  margin: -8px 0 14px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.cart-checkout-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.cart-item-media {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
}
.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item-body { min-width: 0; }
.cart-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.cart-item-top h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
}
.cart-item-top h2 a {
  color: var(--text);
  text-decoration: none;
}
.cart-item-top h2 a:hover { color: var(--brand-dark); }
.cart-item-remove {
  width: 36px;
  height: 36px;
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #dc2626;
  border-radius: 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.cart-item-remove:hover { background: #fee2e2; }
.cart-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}
.cart-item-qty { font-weight: 700; }
.cart-item-line-total {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--brand-dark);
}
.cart-item-resell {
  margin-top: 10px;
  display: inline-flex;
  width: fit-content;
}
.cart-summary h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 900;
}
.cart-summary-total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px dashed var(--border);
  margin-bottom: 20px;
}
.cart-summary-total strong { font-size: 1.35rem; }
.cart-service-requests {
  margin: 0 0 18px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 10px;
}
.cart-service-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-dark);
}
.cart-service-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.cart-service-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  line-height: 1.45;
}
.cart-service-option input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.vehicle-picker {
  margin: 0 0 18px;
  padding: 14px 0 0;
  border-top: 1px dashed var(--border);
  display: grid;
  gap: 12px;
}
.vehicle-picker-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--brand-dark);
}
.vehicle-picker-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.vehicle-picker-weight {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.vehicle-picker-weight i {
  color: var(--brand);
}
.vehicle-picker-rates {
  display: block !important;
  color: var(--muted);
  font-size: 0.72rem !important;
  line-height: 1.45;
}
.vehicle-picker-calc {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}
.vehicle-picker-calc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text);
}
.vehicle-picker-calc-row.is-total {
  font-weight: 800;
  color: var(--brand-dark);
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}
.vehicle-picker-types {
  display: grid;
  gap: 8px;
}
.vehicle-picker-type {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.vehicle-picker-type:has(input:checked) {
  border-color: var(--brand);
  background: rgba(120, 168, 70, 0.08);
}
.vehicle-picker-type input {
  margin-top: 3px;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.vehicle-picker-type span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.vehicle-picker-type strong {
  font-size: 0.88rem;
  font-weight: 700;
}
.vehicle-picker-type small {
  font-size: 0.75rem;
  color: var(--muted);
}
.vehicle-picker-fridge-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.vehicle-picker-fridge-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.vehicle-picker-fridge-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  background: #fff;
}
.vehicle-picker-fridge-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(120, 168, 70, 0.08);
}
.vehicle-picker-fridge-option input {
  accent-color: var(--brand);
}
.vehicle-picker.is-compact .vehicle-picker-type,
.vehicle-picker.is-compact .vehicle-picker-fridge-option {
  padding: 8px 10px;
}
.cart-vehicle-picker {
  margin-top: 4px;
}
.checkout-vehicle-picker {
  margin: 18px 0;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.buyer-loading-page { max-width: 920px; }
.buyer-loading-form { padding: 22px 24px; display: grid; gap: 18px; margin-bottom: 20px; }
.buyer-purchase-page { max-width: 920px; }
.buyer-purchase-form { padding: 22px 24px; display: grid; gap: 18px; margin-bottom: 20px; }
.buyer-purchase-field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.buyer-purchase-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.buyer-purchase-items-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}
.buyer-purchase-items-hint {
  margin: 0 0 12px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.buyer-purchase-item-list { display: grid; gap: 10px; }
.buyer-purchase-item-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) 44px;
  gap: 10px;
  align-items: end;
}
.buyer-purchase-item-remove {
  width: 44px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: #b91c1c;
  cursor: pointer;
}
.buyer-purchase-item-remove:hover { background: #fef2f2; }
.buyer-purchase-submit { width: 100%; justify-content: center; margin-top: 6px; }
.buyer-purchase-list { display: grid; gap: 12px; }
.buyer-purchase-item-summary {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.buyer-purchase-item-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}
@media (max-width: 720px) {
  .buyer-purchase-item-row { grid-template-columns: 1fr 44px; }
  .buyer-purchase-item-row .k-field:nth-child(2) { grid-column: 1; }
}
.buyer-loading-submit { width: 100%; justify-content: center; margin-top: 6px; }
.buyer-loading-map-block { display: grid; gap: 12px; }
.buyer-loading-map-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brand-dark, #166534);
  display: flex;
  align-items: center;
  gap: 8px;
}
.buyer-loading-map-hint {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.buyer-loading-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.buyer-loading-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.buyer-loading-mode-tab.is-active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  color: var(--brand-dark);
}
.buyer-loading-map-shell { margin: 0; }
.buyer-loading-map { min-height: 300px; height: 340px; border-radius: 12px; }
.buyer-loading-route-map { cursor: crosshair; }
.buyer-loading-distance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 600;
}
.buyer-loading-distance i { color: var(--brand); }
.buyer-loading-distance strong {
  margin-inline-start: auto;
  font-size: 1.05rem;
  font-weight: 800;
}
.buyer-loading-address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.buyer-loading-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-inline-end: 4px;
  vertical-align: middle;
}
.buyer-loading-dot.is-origin { background: #16a34a; }
.buyer-loading-dot.is-dest { background: #2563eb; }
.loading-route-pin-wrap { background: none !important; border: none !important; }
.loading-route-pin {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--pin, #16a34a);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.28);
  transform: translateY(-4px);
}
.loading-route-pin::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--pin, #16a34a);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
@media (max-width: 720px) {
  .buyer-loading-address-grid { grid-template-columns: 1fr; }
  .buyer-loading-map { height: 280px; }
}
.buyer-loading-list { display: grid; gap: 12px; }
.buyer-loading-card { padding: 16px 18px; }
.buyer-loading-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.buyer-loading-card-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.45;
}
.buyer-loading-card-head time {
  display: block;
  font-size: 0.8rem;
  color: var(--muted, #64748b);
}
.buyer-loading-route-arrow {
  margin: 0 6px;
  font-size: 0.75rem;
  opacity: 0.55;
}
.buyer-loading-badge {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
}
.buyer-loading-badge.is-pending { background: #fff7ed; color: #c2410c; }
.buyer-loading-badge.is-published { background: #eff6ff; color: #1d4ed8; }
.buyer-loading-badge.is-completed { background: #ecfdf5; color: #047857; }
.buyer-loading-badge.is-cancelled { background: #fef2f2; color: #b91c1c; }
.buyer-loading-meta {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: var(--muted, #64748b);
  display: flex;
  align-items: center;
  gap: 8px;
}
.buyer-loading-details {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text, #334155);
  white-space: pre-wrap;
  line-height: 1.55;
}
.buyer-loading-empty {
  text-align: center;
  padding: 28px 20px;
  color: var(--muted, #64748b);
}
.buyer-loading-empty i {
  font-size: 1.6rem;
  margin-bottom: 8px;
  opacity: 0.55;
  display: block;
}
.buyer-loading-empty p { margin: 0; }
.buyer-loading-pagination { margin-top: 16px; }
.buyer-order-vehicle {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.buyer-order-vehicle i { color: var(--brand); }
.cart-checkout-btn,
.cart-continue-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 10px;
}
.cart-empty {
  text-align: center;
  padding: 48px 28px 40px;
  overflow: hidden;
}
.cart-empty-scene {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
}
.cart-empty-basket {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  color: var(--brand);
  animation: cart-basket-bounce 2.4s ease-in-out infinite;
}
.cart-empty-orbit {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(22, 163, 74, 0.18);
  border-radius: 50%;
}
.cart-empty-orbit--1 { animation: cart-orbit-spin 8s linear infinite; }
.cart-empty-orbit--2 {
  inset: 16px;
  animation: cart-orbit-spin 12s linear infinite reverse;
}
.cart-empty-orbit--3 {
  inset: 32px;
  animation: cart-orbit-pulse 2.4s ease-in-out infinite;
}
@keyframes cart-basket-bounce {
  0%, 100% { transform: translateY(0) scale(1); opacity: 1; }
  50% { transform: translateY(-10px) scale(1.04); opacity: 0.88; }
}
@keyframes cart-orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes cart-orbit-pulse {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.cart-empty h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--brand-dark);
}
.cart-empty p {
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.65;
}
.cart-empty-hint {
  font-size: 0.88rem;
  margin-bottom: 22px !important;
}
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .cart-summary {
    position: static;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 20px;
    align-items: center;
  }
  .cart-summary h3, .cart-summary .cart-summary-hint, .cart-summary .cart-summary-row, .cart-summary .cart-checkout-btn, .cart-summary .cart-continue-btn {
    grid-column: 1;
  }
  .cart-checkout-btn, .cart-continue-btn {
    margin: 0;
  }
}
@media (max-width: 768px) {
  .cart-hero { padding: 22px 20px; gap: 14px; }
  .cart-hero-icon { width: 56px; height: 56px; font-size: 1.3rem; border-radius: 16px; }
  .cart-hero-title { font-size: 1.25rem; }
  .cart-hero-sub { font-size: 0.85rem; }
  .cart-item-card { grid-template-columns: auto 88px 1fr; padding: 14px; gap: 10px 12px; }
  .cart-item-card.is-held.is-loadable { grid-template-columns: auto 88px 1fr; }
  .cart-item-card.is-held { grid-template-columns: 88px 1fr; }
  .cart-stage-group { padding: 14px; gap: 8px; }
  .cart-stage-group__header { flex-direction: column; gap: 8px; }
  .cart-item-top h2 { font-size: 0.92rem; }
  .cart-item-meta { gap: 6px; font-size: 0.8rem; }
  .cart-item-line-total { font-size: 0.95rem; }
  .cart-item-location { font-size: 0.78rem; padding: 6px 8px; }
  .cart-summary { padding: 20px; }
  .cart-summary-total strong { font-size: 1.2rem; }
  .cart-held-order { gap: 6px; }
  .cart-held-order .k-btn { font-size: 0.78rem; padding: 6px 10px; }
}
@media (max-width: 640px) {
  .cart-layout { gap: 0; }
  .cart-hero {
    flex-direction: row-reverse;
    text-align: right;
    padding: 16px;
  }
  .cart-hero-icon { width: 44px; height: 44px; font-size: 1rem; border-radius: 12px; }
  .cart-hero-badge { font-size: 0.7rem; padding: 3px 8px; }
  .cart-hero-title { font-size: 1rem; margin-bottom: 2px; }
  .cart-hero-sub { font-size: 0.78rem; }

  .cart-item-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
    position: relative;
    border-radius: 12px;
    margin-bottom: 8px;
  }
  .cart-item-card.is-held { grid-template-columns: 1fr; }
  .cart-item-card.is-held.is-loadable { grid-template-columns: 1fr; }

  .cart-item-check {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
  }
  .cart-item-media {
    width: 100%;
    max-width: 100%;
    grid-column: 1;
    aspect-ratio: 16/9;
    border-radius: 10px;
  }
  .cart-item-body {
    grid-column: 1;
    min-width: 0;
  }

  .cart-item-top { flex-direction: column; gap: 4px; }
  .cart-item-top h2 { font-size: 0.85rem; line-height: 1.4; }
  .cart-item-remove {
    position: absolute;
    top: 12px;
    left: 40px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 0.75rem;
  }
  .cart-item-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 4px;
    font-size: 0.78rem;
  }
  .cart-item-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .cart-item-location { margin-bottom: 4px; font-size: 0.75rem; padding: 5px 7px; }
  .cart-item-line-total { font-size: 0.92rem; }

  .cart-items-panel { padding-bottom: 120px; }

  .cart-stage-group__header { flex-direction: column; gap: 6px; }
  .cart-stage-group { padding: 10px; gap: 6px; margin-bottom: 8px; border-radius: 12px; }
  .cart-stage-badge { font-size: 0.68rem; padding: 3px 8px; }

  .cart-select-all span { font-size: 0.78rem; }

  /* ── Sticky compact bottom bar ── */
  .cart-summary {
    position: fixed !important;
    bottom: 0 !important;
    left: 0;
    right: 0;
    z-index: 900;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    border: none;
    border-top: 1px solid var(--border);
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%) !important;
  }
  .cart-summary.is-expanded {
    transform: translateY(0) !important;
  }

  /* Compact row (always visible) */
  .cart-summary-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }

  .cart-summary-compact-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--brand-muted);
    flex-shrink: 0;
  }
  .cart-summary-compact-count strong {
    font-size: 1.05rem;
    color: var(--brand-dark);
    line-height: 1;
  }
  .cart-summary-compact-count small {
    font-size: 0.55rem;
    color: var(--brand-dark);
    opacity: 0.7;
    line-height: 1;
  }

  .cart-summary-compact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }
  .cart-summary-compact-label {
    font-size: 0.7rem;
    color: var(--muted);
  }
  .cart-summary-compact-total {
    font-size: 1rem;
    font-weight: 900;
    color: var(--brand-dark);
    white-space: nowrap;
  }

  .cart-summary-compact-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.75rem;
    transition: transform 0.3s;
    flex-shrink: 0;
  }
  .cart-summary.is-expanded .cart-summary-compact-arrow {
    display: none;
  }

  /* Detail: only show buttons */
  .cart-summary-detail {
    display: none;
  }
  .cart-summary.is-expanded .cart-summary-detail {
    display: block;
  }
  .cart-summary-detail form {
    padding: 0 14px 8px;
  }
  .cart-summary.is-expanded .cart-summary-detail h3,
  .cart-summary.is-expanded .cart-summary-detail .cart-summary-hint,
  .cart-summary.is-expanded .cart-summary-detail .cart-summary-row,
  .cart-summary.is-expanded .cart-summary-detail .cart-summary-total,
  .cart-summary.is-expanded .cart-summary-detail input[type=hidden] {
    display: none !important;
  }

  /* Two buttons in one row */
  .cart-summary-btns {
    display: flex;
    gap: 8px;
  }
  .cart-checkout-btn {
    flex: 1.2;
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.8rem;
    border-radius: 10px;
    min-width: 0;
  }
  .cart-continue-btn {
    flex: 0.8;
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.75rem;
    border-radius: 10px;
    min-width: 0;
  }
  body.cart-page .k-dashboard-main,
  .cart-page {
    padding-bottom: 0;
  }

  .cart-held-head-row { flex-direction: column; align-items: flex-start; gap: 6px; }
  .cart-held-badge { font-size: 0.7rem; }
  .cart-held-order { flex-direction: column; }
  .cart-held-order .k-btn { width: 100%; justify-content: center; font-size: 0.78rem; padding: 8px; }
  .cart-held-bulk-bar {
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 10px;
  }
  .cart-held-bulk-bar .k-btn { width: 100%; justify-content: center; }

  .cart-empty-scene { width: 100px; height: 100px; margin: 0 auto 12px; }
  .cart-empty h2 { font-size: 1rem; }
  .cart-empty p { font-size: 0.82rem; }
}
.empty-state { text-align: center; padding: 40px 24px; }
.empty-state > i { display: block; font-size: 2.4rem; color: #cbd5e1; margin: 0 auto 14px; }
.empty-state h3 { margin: 0 0 8px; font-size: 1.05rem; }
.empty-state p { margin: 0 0 14px; color: var(--muted); font-size: 0.88rem; line-height: 1.6; }
.empty-state .k-btn { margin-top: 2px; }

/* ── Contact ── */
.contact-hero { text-align: center; padding: 20px 0 32px; }
.contact-hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; margin: 0 0 12px; }
.contact-hero p { color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.7; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 32px; }
.contact-form-card { padding: 28px 24px; }
.contact-form-title { margin: 0 0 8px; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.contact-form-hint { margin: 0 0 20px; color: var(--muted); font-size: 0.88rem; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-submit-btn { align-self: flex-start; margin-top: 4px; }
.k-required { color: var(--danger); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form-grid { grid-template-columns: 1fr; }
}
.contact-card { padding: 28px 22px; text-align: center; transition: var(--ease); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contact-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--brand-muted); color: var(--brand); font-size: 1.5rem;
}
.contact-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.contact-card p, .contact-card a { color: var(--muted); line-height: 1.7; }
.contact-social { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.contact-social a {
  padding: 8px 16px; border-radius: var(--radius-full); color: #fff; font-size: 0.82rem; font-weight: 700;
}
.contact-social .wa { background: #25D366; }
.contact-social .tg { background: #0088cc; }

/* ── Dashboard ── */
.dash-wrap { max-width: 1400px; margin: 0 auto; padding: 24px 20px 48px; }
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.dash-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  max-height: calc(100dvh - var(--header-h) - 32px);
  display: flex;
  flex-direction: column;
  padding: 20px 14px;
  border-radius: var(--radius);
  overflow: hidden;
}
.dash-user {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 10px 18px; border-bottom: 1px solid var(--border); margin-bottom: 10px;
  flex-shrink: 0;
}
.dash-user img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--brand-muted);
}
.dash-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 163, 74, 0.35) transparent;
}
.dash-nav::-webkit-scrollbar {
  width: 6px;
}
.dash-nav::-webkit-scrollbar-thumb {
  background: rgba(22, 163, 74, 0.35);
  border-radius: 999px;
}
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.88rem; color: var(--muted); margin-bottom: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.dash-nav a:hover, .dash-nav a.active {
  background: var(--brand-muted); color: var(--brand-dark);
}
.dash-nav a.active { font-weight: 800; }
.dash-user h3 { margin: 0; font-size: 0.95rem; font-weight: 800; line-height: 1.3; }
.dash-user span { font-size: 0.78rem; color: var(--muted); }
.dash-nav a.logout { color: var(--danger); margin-top: 12px; }
.dash-nav a.logout:hover { background: #fef2f2; }
.dash-logout-form { margin-top: 12px; }
.dash-logout-form button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.88rem; color: var(--danger);
  background: none; border: none; cursor: pointer; font-family: inherit;
}
.dash-logout-form button:hover { background: #fef2f2; }
.dash-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.dash-main > .page-back:first-child { margin: 0 0 -8px; }
.dash-banner {
  position: relative; overflow: hidden;
  padding: 24px 28px; color: #fff;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, #4ade80 100%);
  border-radius: var(--radius);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  box-shadow: 0 12px 32px rgba(22, 163, 74, 0.22);
}
.dash-banner::before {
  content: ''; position: absolute; inset: auto -30px -30px auto;
  width: 140px; height: 140px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.dash-banner-body { position: relative; z-index: 1; min-width: 0; }
.dash-banner-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; margin-bottom: 10px;
  border-radius: 999px; font-size: 0.72rem; font-weight: 800;
  background: rgba(255, 255, 255, 0.18); color: #fff;
  backdrop-filter: blur(4px);
}
.dash-banner h1 { margin: 0 0 6px; font-size: clamp(1.15rem, 2.5vw, 1.45rem); font-weight: 900; line-height: 1.35; }
.dash-banner p { margin: 0; opacity: 0.92; font-size: 0.88rem; line-height: 1.5; }
.dash-banner-icon {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 58px; height: 58px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.16); font-size: 1.45rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 14px;
}
.dash-stat {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; text-align: start;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dash-stat--link { text-decoration: none; color: inherit; cursor: pointer; }
.dash-stat--link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(22, 163, 74, 0.25); }
.dash-stat-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-muted); color: var(--brand-dark); font-size: 1.05rem;
}
.dash-stat-body { min-width: 0; flex: 1; }
.dash-stat-value {
  display: block; font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 900;
  color: var(--brand-dark); line-height: 1.25; word-break: break-word;
}
.dash-stat-label { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); line-height: 1.35; }
.dash-quick-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px;
}
.dash-quick-link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 14px; text-decoration: none; text-align: center;
  font-weight: 800; font-size: 0.84rem; color: var(--brand-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dash-quick-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(22, 163, 74, 0.28); }
.dash-quick-link-icon {
  width: 42px; height: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-muted); color: var(--brand); font-size: 1.15rem;
}
.dash-quick-link-label { line-height: 1.35; }
.dash-quick-link--circle {
  gap: 0;
  min-height: 108px;
}
.dash-quick-link-circle {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(22, 163, 74, 0.42);
  background: radial-gradient(circle at 30% 25%, rgba(22, 163, 74, 0.16), rgba(22, 163, 74, 0.04) 68%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.12);
}
.dash-quick-link-circle::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(239, 68, 68, 0.28);
  pointer-events: none;
}
.dash-quick-link-circle::after {
  content: '';
  position: absolute;
  top: 6px;
  inset-inline-end: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  animation: conference-live-pulse 1.5s ease-in-out infinite;
}
.dash-quick-link-circle-primary {
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1.25;
  color: var(--brand-dark);
}
.dash-quick-link-circle-secondary {
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
}
.dash-quick-link--circle:hover .dash-quick-link-circle {
  border-color: var(--brand);
  transform: scale(1.03);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.dash-grid-2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dash-panel { padding: 20px 22px; }
.dash-section-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border);
}
.dash-section-head h3 {
  margin: 0; font-size: 0.98rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px; color: var(--text);
}
.dash-section-head h3 i { color: var(--brand); font-size: 0.92rem; }
.map-mixed-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.map-mixed-live-badge {
  color: #ef4444;
  font-weight: 800;
  font-size: 0.95em;
  line-height: 1;
}
.dash-empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.dash-empty > i { display: block; font-size: 2rem; opacity: 0.35; margin: 0 auto 12px; color: var(--brand); }
.dash-empty p { margin: 0; line-height: 1.6; }
.dash-empty-actions { margin-top: 14px; }
.dash-list-row {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.dash-list-row:last-child { border-bottom: none; padding-bottom: 0; }
.dash-list-row p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.45; }
.dash-list-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 0.78rem; }
.dash-list-meta { flex-shrink: 0; font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.dash-map-block { display: flex; flex-direction: column; gap: 12px; }
.dash-map-block .k-section-title { margin: 0; }
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.dash-table th, .dash-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--border); }
.dash-table th { font-weight: 700; color: var(--muted); background: var(--surface-2); }
.dash-table tr:hover td { background: var(--brand-muted); }
.dash-map { height: 360px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); margin-bottom: 24px; }
.dash-map-product-marker-wrap { background: none; border: none; }
.dash-map-product-marker {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.dash-map-product-marker img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.leaflet-marker-icon.dash-map-product-marker-wrap:hover .dash-map-product-marker {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
}
.dash-map-popup-wrap .leaflet-popup-content { margin: 12px 14px; }
.dash-map-popup { display: grid; gap: 6px; min-width: 180px; }
.dash-map-popup-img {
  width: 100%;
  max-height: 88px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.dash-map-popup strong { font-size: 0.92rem; line-height: 1.4; }
.dash-map-popup-desc {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dash-map-popup-price { color: var(--brand-dark); font-weight: 700; font-size: 0.88rem; }
.dash-map-popup-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.dash-map-popup-link:hover { color: var(--brand-dark); text-decoration: underline; }
.leaflet-marker-icon.dash-map-product-marker-wrap { cursor: pointer; }

/* ── Toast ── */
.k-toast-wrap {
  position: fixed;
  top: calc(var(--header-h) + 12px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(480px, calc(100vw - 32px));
  max-width: min(480px, calc(100vw - 32px));
  pointer-events: none;
}
.k-toast {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  pointer-events: auto;
  animation: kToastIn 0.28s ease;
}
@keyframes kToastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.k-toast-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.k-toast-error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; }

/* ── Footer ── */
.k-footer {
  flex-shrink: 0;
  margin-top: auto;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.04);
}
.k-footer-top-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 50%, #22c55e 100%);
}
.k-footer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 24px 24px;
}
.k-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.k-footer-brand-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.k-footer-brand-logo {
  margin-bottom: 4px;
}
.k-footer-logo-mark {
  display: none;
}
.k-footer-title {
  margin: 0 0 18px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  position: relative;
  padding-bottom: 12px;
}
.k-footer-title-inline {
  margin: 0;
  padding-bottom: 0;
}
.k-footer-title:not(.k-footer-title-inline)::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 36px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), #22c55e);
}
.k-footer-brand-tag {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
}
.k-footer-desc {
  margin: 0 0 20px;
  line-height: 1.85;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 420px;
}
.k-footer-site {
  margin: -10px 0 18px;
  font-size: 0.88rem;
}
.k-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.k-footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: 12px;
  color: var(--brand-dark);
  transition: var(--ease);
}
.k-footer-social a:hover {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.22);
}
.k-footer-social-pending {
  cursor: default;
  opacity: 0.72;
}
.k-footer-social-pending:hover {
  color: var(--brand-dark);
  background: var(--brand-muted);
  border-color: rgba(22, 163, 74, 0.12);
  transform: none;
  box-shadow: none;
}
.k-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.k-footer-links li {
  margin-bottom: 10px;
  padding-inline-start: 16px;
  position: relative;
}
.k-footer-links li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.k-footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.k-footer-links a:hover {
  color: var(--brand-dark);
}
.k-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.k-footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.k-footer-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-muted);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.k-footer-contact a:hover {
  color: var(--brand-dark);
}
.k-footer-contact-phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.k-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
}
.k-footer-bar-end {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.k-footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.k-footer-enamad {
  display: inline-flex;
  line-height: 0;
}
.k-footer-enamad img {
  width: 78px;
  height: auto;
  max-height: 86px;
  object-fit: contain;
  cursor: pointer;
}
.k-footer-copy { line-height: 1.7; }
.k-footer-accent {
  color: var(--brand-dark);
  font-weight: 800;
}
.k-footer-link {
  color: var(--brand);
  font-weight: 700;
}
.k-footer-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}
.k-footer-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.k-footer-version i {
  color: var(--brand);
  font-size: 0.78rem;
}

/* ── Stories ── */
.stories-section { margin-bottom: 28px; }
.stories-wrapper {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.stories-wrapper::-webkit-scrollbar { display: none; }
.story-item {
  flex: 0 0 78px; display: flex; flex-direction: column; align-items: center;
  background: none; border: none; padding: 0; cursor: pointer; text-align: center;
  font-family: inherit; color: inherit;
}
.story-ring {
  width: 68px; height: 68px; border-radius: 50%; padding: 3px; margin-bottom: 6px;
  background: conic-gradient(from 180deg, var(--brand), #22c55e, var(--brand-dark), var(--brand));
  box-shadow: var(--shadow);
  position: relative;
}
.story-ring-add {
  background: transparent; border: 2px dashed rgba(22, 163, 74, 0.35); box-shadow: none; padding: 2px;
}
.story-thumb {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; background: #fff; display: block;
}
.story-name {
  font-size: 0.74rem; font-weight: 700; color: var(--muted);
  width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plus-badge {
  position: absolute; bottom: -2px; inset-inline-end: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border: 2px solid #fff; font-size: 0.7rem;
}
.story-modal, .story-viewer {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.story-viewer {
  padding: 0;
  background: #000;
}
.story-modal:not(.story-viewer) {
  padding: 20px;
}
.story-modal[hidden], .story-viewer[hidden] { display: none !important; }
.story-modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px);
}
.story-modal-panel {
  position: relative; z-index: 1; width: min(440px, 100%); padding: 28px 24px;
  max-height: 90vh; overflow-y: auto;
}
.story-modal-close {
  position: absolute; top: 12px; inset-inline-end: 14px;
  background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--muted);
}

/* Story upload form */
.story-form-panel {
  width: min(480px, 100%);
  padding: 0;
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.story-editor-panel[hidden],
.story-mode-badge[hidden] {
  display: none !important;
}
.story-form-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 22px 12px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand-muted), #fff);
}
.story-form-head-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-size: 1.2rem; flex-shrink: 0;
}
.story-form-head h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 800; }
.story-form-head p { margin: 0; font-size: 0.82rem; color: var(--muted); }

#storyUploadForm { padding: 18px 22px 22px; }

.story-upload-zone {
  border: 2px dashed rgba(22, 163, 74, 0.35);
  border-radius: var(--radius);
  background: var(--brand-muted);
  transition: var(--ease);
  margin-bottom: 16px;
}
.story-upload-zone.is-dragover {
  border-color: var(--brand);
  background: #dcfce7;
  transform: scale(1.01);
}
.story-upload-empty {
  padding: 28px 20px;
  text-align: center;
}
.story-upload-icon {
  width: 64px; height: 64px; margin: 0 auto 12px;
  border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 1.6rem;
  box-shadow: var(--shadow);
}
.story-upload-empty strong { display: block; margin-bottom: 6px; font-size: 0.95rem; }
.story-upload-empty p { margin: 0 0 14px; color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.story-upload-empty small { display: block; margin-top: 10px; color: var(--muted); font-size: 0.75rem; }

.story-editor { margin-bottom: 16px; }
.story-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
}
.story-editor-hint {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.story-editor-hint i { color: var(--brand); margin-top: 2px; }
.story-editor-stage {
  position: relative;
  width: 100%;
  background: #0f172a;
  border-radius: var(--radius);
  overflow: hidden;
  touch-action: none;
}
.story-editor-stage--image {
  height: min(48vh, 380px);
  min-height: 260px;
}
.story-editor-stage--video {
  height: min(48vh, 380px);
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.story-editor-stage--image .cropper-container {
  width: 100% !important;
  height: 100% !important;
}
.story-editor-stage--image img { max-width: 100%; display: block; }

.story-video-wrap {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.story-editor-stage--video video {
  width: 100%;
  height: 100%;
  max-height: min(48vh, 380px);
  object-fit: contain;
  background: #000;
}
.story-video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.92);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--ease);
}
.story-video-play-btn:hover { transform: scale(1.05); }
.story-video-play-btn[hidden] { display: none !important; }

.story-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
}
.story-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--ease);
}
.story-tool-btn:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: var(--brand-muted);
}
.story-video-tools { flex-direction: column; align-items: stretch; }
.story-video-trim-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
}
.story-video-trim-head output {
  font-size: 0.78rem;
  color: var(--brand-dark);
  font-weight: 800;
}
.story-video-meta {
  font-size: 0.78rem;
  color: var(--muted);
  padding: 4px 2px 8px;
  word-break: break-all;
}
.story-video-trim {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}
.story-video-trim label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.story-video-trim input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.story-caption-field { margin-bottom: 16px; }
.story-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.28);
}
.story-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.story-submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.75;
}

.story-form-modal .story-modal-close {
  top: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.cropper-view-box,
.cropper-face { border-radius: 4px; }
.cropper-line.line-e, .cropper-line.line-w { width: 2px; }
.cropper-line.line-n, .cropper-line.line-s { height: 2px; }
.cropper-point { width: 8px; height: 8px; background: var(--brand); opacity: 0.9; }

.story-viewer-shell {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  max-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  color: #fff;
  overflow: hidden;
}

.story-progress-track {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
}
.story-progress-seg {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
}
.story-progress-seg.is-active {
  background: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}
.story-progress-seg.is-done {
  background: #fff;
}

.story-viewer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 14px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0.75), transparent);
  position: relative;
  z-index: 4;
}
.story-viewer-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.story-viewer-avatar {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,0.35);
}
.story-viewer-user strong {
  display: block;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.story-viewer-user small {
  display: block;
  opacity: 0.75;
  font-size: 0.72rem;
}
.story-viewer-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.story-icon-btn {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.story-viewer-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.story-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
  background: #000;
}
.story-media.is-visible {
  display: block;
}

.story-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  z-index: 2;
  border: none;
  background: transparent;
  cursor: pointer;
}
.story-tap-prev { left: 0; }
.story-tap-next { right: 0; }

.story-nav-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.story-arrow-btn {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}
.story-arrow-btn:hover { background: rgba(22,163,74,0.75); }

.story-swipe-hint {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.5);
  font-size: 0.72rem;
  opacity: 0.85;
  z-index: 4;
  white-space: nowrap;
}

.story-viewer-bottom {
  padding: 12px 14px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent);
  position: relative;
  z-index: 4;
}
.story-viewer-caption {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.6;
  max-height: 4.8em;
  overflow: hidden;
}
.story-viewer-actions {
  display: flex;
  gap: 10px;
}
.story-action-btn {
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}
.story-action-btn.liked { color: #f87171; }

.story-comments-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: min(52vh, 420px);
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  z-index: 6;
  animation: storyDrawerUp 0.25s ease;
}
.story-comments-drawer[hidden] { display: none !important; }
@keyframes storyDrawerUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.story-comments-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.story-comments {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  -webkit-overflow-scrolling: touch;
}
.story-comment-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.story-comment-item img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.story-comment-item strong { font-size: 0.82rem; }
.story-comment-item small { opacity: 0.65; margin-inline-start: 6px; font-size: 0.72rem; }
.story-comment-item p { margin: 4px 0 0; font-size: 0.85rem; line-height: 1.5; }
.story-comment-form {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(0,0,0,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.story-comment-form .k-input {
  flex: 1;
  padding: 10px 12px;
  background: rgba(255,255,255,0.95);
}
.story-login-hint {
  padding: 12px 16px;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0.85;
}
.story-login-hint a { color: #86efac; font-weight: 700; }
.story-no-comments, .story-loading, .story-error {
  opacity: 0.65;
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}
.story-error { color: #fca5a5; }

html.story-viewer-open,
html.story-viewer-open body {
  overflow: hidden !important;
}
html.story-viewer-open .main-header {
  z-index: 999 !important;
}

@media (min-width: 768px) {
  .story-viewer-shell {
    border-radius: 16px;
    max-height: calc(100dvh - 24px);
    margin: 12px auto;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  }
}

/* ── Responsive ── */
@media (max-width: 990px) {
  .hero-section, .auth-shell, .product-detail, .product-layout, .cart-layout, .dash-layout { grid-template-columns: 1fr; }
  .auth-brand-side { min-height: auto; }
  .auth-slider-track { min-height: 180px; }
  .auth-two-col { grid-template-columns: 1fr; }
  .main-header .container {
    flex-wrap: nowrap;
    padding: 0 12px;
    gap: 10px;
  }
  .header-menu-toggle { display: inline-flex; }
  .header-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: min(300px, 86vw);
    height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    padding: 16px;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }
  html[dir="rtl"] .header-nav {
    right: 0;
    left: auto;
    border-left: 1px solid var(--border);
    border-right: none;
    transform: translateX(100%);
  }
  .main-header.is-nav-open .header-nav { transform: translateX(0); }
  .header-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
  }
  .header-nav-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    color: var(--brand-dark);
  }
  .header-nav-close {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
    cursor: pointer;
  }
  .header-nav-close:hover { color: var(--brand-dark); border-color: var(--brand); }
  .nav-links {
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    order: unset;
    overflow: visible;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.92rem;
    white-space: normal;
    border-radius: 12px;
  }
  .header-nav-mobile-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
  }
  .header-nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 700;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
  }
  .header-nav-mobile-link.is-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    border-color: transparent;
  }
  .header-auth-desktop { display: none; }
  .header-profile-mobile { display: inline-flex; }
  .header-actions { margin-inline-start: auto; }
  .lang-current-name { display: none; }
  .lang-trigger { padding: 6px 10px; min-height: 38px; }
  .user-name-text { display: none; }
  .k-footer-grid { grid-template-columns: 1fr; gap: 28px; justify-items: center; }
  .k-footer-wrap {
    text-align: center;
    padding-inline: 20px;
  }
  .k-footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }
  .k-footer-brand-head {
    justify-content: center;
    text-align: center;
  }
  .k-footer-brand-head > div {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .k-footer-desc {
    max-width: none;
    margin-inline: auto;
    text-align: center;
  }
  .k-footer-social {
    justify-content: center;
  }
  .k-footer-title,
  .k-footer-title-inline {
    text-align: center;
    width: 100%;
  }
  .k-footer-title:not(.k-footer-title-inline)::after {
    inset-inline-start: 50%;
    margin-inline-start: -18px;
  }
  .k-footer-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .k-footer-links li {
    padding-inline-start: 0;
    text-align: center;
    width: 100%;
  }
  .k-footer-links li::before {
    display: none;
  }
  .k-footer-contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .k-footer-contact li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    width: 100%;
  }
  .k-footer-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .k-footer-copy,
  .k-footer-version {
    text-align: center;
    max-width: 360px;
  }
  .dash-sidebar { position: static; }
  body.in-user-panel .dash-sidebar { display: none; }
  body.in-user-panel .dash-wrap { padding-top: 16px; }
  body.in-user-panel .nav-links-site { display: none; }
  .header-nav-panel-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
  }
  .header-nav-panel-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--brand-muted);
    flex-shrink: 0;
  }
  .header-nav-panel-user strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
  }
  .header-nav-panel-user span {
    font-size: 0.78rem;
    color: var(--muted);
  }
  .nav-links-panel a {
    gap: 10px;
    font-weight: 600;
  }
  .nav-links-panel a i {
    width: 18px;
    text-align: center;
    color: var(--muted);
  }
  .nav-links-panel a.active i { color: var(--brand-dark); }
  .header-nav-logout-form { width: 100%; }
  .header-nav-logout-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--danger);
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    text-align: start;
  }
  .header-nav-logout-btn:hover { background: #fef2f2; }
  .header-nav-logout-btn i { width: 18px; text-align: center; }

  #services { margin-bottom: 28px; }
  #services .k-section-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 32px;
  }
  .service-card { padding: 16px 10px; }
  .service-icon {
    width: 44px;
    height: 44px;
    font-size: 1.05rem;
    margin-bottom: 10px;
    border-radius: 12px;
  }
  .service-card h3 { font-size: 0.84rem; line-height: 1.35; }
}

@media (max-width: 480px) {
  .hero-content, .auth-panel, .auth-brand-side { padding: 24px 20px; }
  .k-footer-wrap { padding: 32px 18px 20px; }
  .header-menu-toggle { width: 38px; height: 38px; }
  .btn-pill { padding: 6px 10px; font-size: 0.75rem; }

  #services .k-section-title { font-size: 1.05rem; }
  .services-grid { gap: 8px; margin-bottom: 24px; }
  .service-card { padding: 12px 8px; }
  .service-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
    margin-bottom: 8px;
    border-radius: 10px;
  }
  .service-card h3 { font-size: 0.74rem; }
}

body, input, textarea, select, p, span, label, a { user-select: text; }
button, .k-btn, .btn-pill, .lang-trigger { user-select: none; }

/* Pagination */
nav[role="navigation"] { margin-top: 24px; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination li a, .pagination li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.85rem; color: var(--muted);
}
.pagination li.active span { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination li a:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ── Customs requests page ── */
.requests-page { max-width: 920px; padding-bottom: 48px; }
.requests-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.page-back,
.requests-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
}
.page-back:hover,
.requests-back:hover { color: var(--brand-dark); }

.k-page > .page-back:first-child,
.product-page > .page-back {
  display: inline-flex;
  margin-bottom: 16px;
}
.market-hero-text > .page-back {
  display: inline-flex;
  margin-bottom: 12px;
}

.requests-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  padding: 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), #fff);
  border: 1px solid rgba(22, 163, 74, 0.15);
}
.requests-hero-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 420px;
}
.requests-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 12px;
  min-width: min(100%, 320px);
}
.requests-stat {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.requests-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.1;
}
.requests-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}

.requests-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px 22px;
  margin-bottom: 12px;
  transition: var(--ease);
}
.requests-item:hover {
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: var(--shadow);
}
.requests-item-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 1.25rem;
  flex-shrink: 0;
}
.requests-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.requests-item-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.requests-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
}
.requests-status.is-pending { background: #fff7ed; color: #c2410c; }
.requests-status.is-accepted { background: var(--brand-light); color: var(--brand-dark); }
.requests-status.is-rejected { background: #fee2e2; color: #b91c1c; }
.requests-item-desc {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.requests-item-budget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.08);
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 700;
}
.requests-item-budget i { color: var(--brand); }
.requests-field-hint {
  margin: -4px 0 10px;
  font-size: 0.82rem;
  color: var(--muted);
}
.requests-budget-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.requests-budget-field { min-width: 0; }
.requests-budget-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.requests-budget-sep {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}
.requests-budget-unit {
  padding-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.requests-price-input { text-align: start; }
.requests-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--muted);
}
.requests-item-meta i { color: var(--brand); margin-inline-end: 4px; }
.requests-item-actions { flex-shrink: 0; }

.requests-modal {
  padding: 20px;
}
.requests-modal[hidden] { display: none !important; }
.requests-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}
.requests-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  animation: requestsModalUp 0.25s ease;
}
.requests-modal-panel-wide { width: min(640px, 100%); }
@keyframes requestsModalUp {
  from { transform: translateY(16px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.requests-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.requests-modal-head h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; }
.requests-modal-head p { margin: 0; font-size: 0.82rem; color: var(--muted); }
.requests-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
}
.requests-modal-close:hover { color: var(--text); background: var(--brand-muted); }
.requests-modal-body {
  padding: 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.requests-loading,
.requests-empty-bids {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}
.requests-empty-bids i { font-size: 2rem; margin-bottom: 10px; color: #cbd5e1; }
.requests-empty-bids.is-error i { color: var(--danger); }
.requests-loading i { font-size: 1.5rem; color: var(--brand); margin-bottom: 10px; }

.requests-bid-card {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: var(--ease);
}
.requests-bid-card:hover { border-color: var(--brand); background: var(--brand-muted); }
.requests-bid-name { display: block; margin-bottom: 6px; font-size: 0.95rem; }
.requests-bid-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--muted);
}
.requests-bid-meta i { color: var(--brand); margin-inline-end: 4px; }
.requests-bid-side { text-align: end; min-width: 140px; }
.requests-bid-price {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--brand-dark);
  margin-bottom: 8px;
}
.requests-bid-price small { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.requests-accept-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  border: none !important;
}
.requests-bid-done { color: var(--brand); font-size: 1.2rem; }

@media (max-width: 768px) {
  .requests-item { grid-template-columns: 1fr; }
  .requests-item-icon { display: none; }
  .requests-item-actions { width: 100%; }
  .requests-item-actions .k-btn { width: 100%; justify-content: center; }
  .requests-stats { width: 100%; }
  .requests-hero { flex-direction: column; }
  .requests-budget-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .requests-budget-sep,
  .requests-budget-unit { display: none; }
}

/* Product create page */
.product-create-page { max-width: 920px; margin: 0 auto; }
.product-create-hero { margin-bottom: 24px; }
.product-create-back { margin-bottom: 10px; }
.product-create-hero p { margin: 8px 0 0; color: var(--muted); }
.product-create-form { display: grid; gap: 20px; }
.product-create-section { padding: 24px; }
.product-commission-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.product-commission-heading {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-dark);
  line-height: 1.55;
}
.product-commission-rates {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.product-commission-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(22, 163, 74, 0.14);
  font-size: 0.88rem;
  line-height: 1.5;
}
.product-commission-rate-row span {
  color: var(--muted);
}
.product-commission-rate-row strong {
  color: var(--brand-dark);
  font-size: 0.92rem;
  white-space: nowrap;
}
.product-commission-options {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}
.product-commission-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}
.product-commission-mode {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  font-size: 0.9rem;
  font-weight: 700;
}
.product-commission-mode:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent);
}
.product-commission-mode input {
  accent-color: var(--brand);
}
.product-commission-slider-wrap {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
}
.product-commission-slider-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.product-commission-slider-head strong {
  color: var(--brand-dark);
  font-size: 1.05rem;
}
.product-commission-slider {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
}
.product-commission-slider:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.product-commission-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}
.product-commission-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.product-commission-option:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent);
}
.product-commission-option input {
  margin-top: 3px;
  accent-color: var(--brand);
}
.product-commission-option strong {
  display: block;
  font-size: 0.92rem;
}
.product-commission-option small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}
.product-commission-preview {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f7faf3, #eef5e6);
  border: 1px solid #d7e6c4;
}
.product-commission-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}
.product-commission-row.is-site strong { color: #b45309; }
.product-commission-row.is-seller strong { color: #3f6212; font-size: 1.05rem; }
.product-create-section-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 18px; font-size: 1.05rem; font-weight: 800;
}
.product-create-section-title span {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; font-size: 0.82rem;
}
.product-create-hint {
  margin: -6px 0 16px; color: var(--muted); font-size: 0.85rem; line-height: 1.6;
}
.product-create-grid-3 {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.k-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-start: 14px;
  padding-inline-end: 36px;
}
html[dir="rtl"] .k-select {
  background-position: right 14px center;
  padding-inline-start: 36px;
  padding-inline-end: 14px;
}
.product-gallery-uploader { margin-top: 4px; }
.product-gallery-drop {
  border: 2px dashed rgba(22, 163, 74, 0.35);
  border-radius: var(--radius);
  background: var(--brand-muted);
  padding: 32px 20px;
  text-align: center;
  transition: var(--ease);
}
.product-gallery-drop.is-dragover {
  border-color: var(--brand);
  background: #dcfce7;
  transform: scale(1.005);
}
.product-gallery-drop i { font-size: 2rem; color: var(--brand); margin-bottom: 10px; }
.product-gallery-drop strong { display: block; margin-bottom: 6px; }
.product-gallery-drop p { margin: 0 0 14px; color: var(--muted); font-size: 0.85rem; }
.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.product-gallery-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f172a;
  aspect-ratio: 4/3;
}
.product-gallery-media { width: 100%; height: 100%; }
.product-gallery-media img,
.product-gallery-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.product-gallery-badge {
  position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2;
  padding: 4px 8px; border-radius: var(--radius-full);
  font-size: 0.68rem; font-weight: 800; background: rgba(15,23,42,0.75); color: #fff;
}
.product-gallery-badge.is-primary { background: rgba(22,163,74,0.92); }
.product-gallery-badge.is-video { background: rgba(59,130,246,0.92); }
.product-gallery-actions {
  position: absolute; inset-inline-end: 8px; bottom: 8px; z-index: 2;
  display: flex; gap: 6px;
}
.product-gallery-action {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--text); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.product-gallery-action.is-danger { color: #ef4444; }
.product-gallery-add {
  aspect-ratio: 4/3;
  border: 2px dashed rgba(22,163,74,0.35);
  border-radius: var(--radius-sm);
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-weight: 800;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.product-map-search { display: flex; gap: 8px; }
.product-map-search .k-input { flex: 1; }
.product-map-results {
  margin-top: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  max-height: 220px;
  overflow-y: auto;
}
.product-map-result {
  display: flex; align-items: flex-start; gap: 8px;
  width: 100%; text-align: start; padding: 10px 12px;
  border: none; border-bottom: 1px solid var(--border);
  background: transparent; cursor: pointer; font-family: inherit; font-size: 0.82rem;
}
.product-map-result:last-child { border-bottom: none; }
.product-map-result:hover { background: var(--brand-muted); }
.product-map-result i { color: var(--brand); margin-top: 2px; }
.product-map-result-msg { padding: 12px; color: var(--muted); font-size: 0.85rem; }
.product-map-picker {
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 14px 0;
  z-index: 1;
}
.product-map-coords {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px;
}
.product-map-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-full);
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 0.82rem; font-weight: 700;
}
.product-map-chip span { color: var(--muted); font-weight: 600; }
.product-map-chip output { color: var(--brand-dark); }
.product-create-submit {
  width: 100%; padding: 16px; font-size: 1.02rem;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.28);
}
.product-create-submit.is-loading { opacity: 0.75; pointer-events: none; }
.product-media-modal .story-form-panel {
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.product-media-modal .story-editor {
  padding: 0 22px;
  margin-bottom: 12px;
}
.product-media-modal .story-mode-badge { margin-inline: 0; }
.product-media-modal .story-submit-btn { width: calc(100% - 44px); }

@media (max-width: 768px) {
  .product-create-grid-3 { grid-template-columns: 1fr; }
  .product-map-picker { height: 260px; }
}

/* Profile page */
.profile-page { max-width: 720px; padding-bottom: 48px; }
.profile-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.profile-toolbar { margin-bottom: 20px; }
.profile-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  margin-bottom: 20px;
}
.profile-avatar-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.profile-avatar-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  flex-shrink: 0;
}
.profile-avatar-img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  background: var(--surface-2, #f1f5f9);
}
.profile-avatar-edit {
  position: absolute;
  inset-inline-end: 4px;
  bottom: 4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.profile-avatar-edit:hover { transform: scale(1.05); background: var(--brand-dark); }
.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.profile-avatar-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 220px;
}
.profile-hero-meta h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}
.profile-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.profile-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}
.profile-meta-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-meta-list i { width: 16px; color: var(--brand); }
.profile-form { display: grid; gap: 16px; }
.profile-section { padding: 24px 26px; }
.profile-section-title {
  margin: 0 0 18px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-section-title i { color: var(--brand); }
.profile-section-hint {
  margin: -8px 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
}
.profile-fields { display: grid; gap: 16px; }
.profile-fields--split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.profile-form-actions {
  display: flex;
  justify-content: flex-end;
}
.profile-form-actions .k-btn-primary {
  min-width: 180px;
}
.profile-avatar-modal .story-form-panel {
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.profile-avatar-modal .story-editor { padding: 0 22px 12px; }
.profile-avatar-modal .story-submit-btn { width: calc(100% - 44px); }
.story-editor-stage--avatar {
  aspect-ratio: 1;
  height: auto;
  max-height: min(56vh, 420px);
  width: min(100%, 420px);
  margin: 0 auto;
}

@media (max-width: 640px) {
  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 22px 18px;
  }
  .profile-hero-meta { display: flex; flex-direction: column; align-items: center; }
  .profile-meta-list { text-align: start; width: 100%; max-width: 280px; }
  .profile-fields--split { grid-template-columns: 1fr; }
  .profile-form-actions .k-btn-primary { width: 100%; }
}

/* Stories list page */
.stories-page { max-width: 980px; padding-bottom: 48px; }
.stories-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.stories-toolbar { margin-bottom: 22px; }
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stories-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
}
.stories-card-media {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stories-card:hover .stories-card-media {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}
.stories-card-media img,
.stories-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.stories-card-type {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
.stories-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, transparent 35%, transparent 55%, rgba(0,0,0,0.72) 100%);
  color: #fff;
}
.stories-card-user {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.stories-card-user img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.35);
  flex-shrink: 0;
}
.stories-card-user span {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stories-card-stats {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 700;
}
.stories-card-stats i { margin-inline-end: 4px; }
.stories-card-caption {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
  padding: 0 4px;
}
.stories-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--brand-dark);
  font-weight: 700;
  padding: 0 4px;
}
.stories-card-hint i { color: var(--brand); }

@media (max-width: 640px) {
  .stories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

/* Tickets hub (dashboard) */
.tickets-hub {
  margin-top: 28px;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.tickets-hub-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(22,163,74,0.06), transparent);
}
.tickets-hub-head .k-btn { flex-shrink: 0; align-self: center; }
.tickets-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.tickets-hub-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.tickets-hub-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.tickets-hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.tickets-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition: 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}
button.tickets-stat-pill { appearance: none; }
.tickets-stat-pill:hover { border-color: var(--brand); color: var(--brand-dark); }
.tickets-stat-pill.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.tickets-stat-pill.is-pending.is-active { background: #f59e0b; border-color: #f59e0b; }
.tickets-stat-pill.is-closed.is-active { background: #64748b; border-color: #64748b; }
.tickets-stat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  font-size: 0.78rem;
}
.tickets-stat-pill.is-active .tickets-stat-num { background: rgba(255,255,255,0.22); }
.tickets-hub-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  min-height: 480px;
}
.tickets-list-panel {
  border-inline-end: 1px solid var(--border);
  max-height: 560px;
  overflow-y: auto;
  background: #fff;
}
.tickets-list-item {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.tickets-list-item:hover { background: var(--brand-muted); }
.tickets-list-item.is-active {
  background: var(--brand-muted);
  box-shadow: inset 3px 0 0 var(--brand);
}
.tickets-list-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.tickets-list-item-top strong {
  font-size: 0.86rem;
  line-height: 1.45;
}
.tickets-list-item-meta {
  display: flex;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--muted);
}
.tickets-list-item-meta i { color: var(--brand); margin-inline-end: 4px; }
.tickets-list-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.tickets-list-empty i { font-size: 2rem; margin-bottom: 10px; opacity: 0.4; }
.tickets-status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}
.tickets-status.is-open { background: #fff7ed; color: #c2410c; }
.tickets-status.is-pending { background: #eff6ff; color: #1d4ed8; }
.tickets-status.is-closed { background: #f1f5f9; color: #475569; }
.tickets-thread-panel {
  display: flex;
  flex-direction: column;
  min-height: 480px;
  background: linear-gradient(180deg, #fff, var(--surface-2));
}
.tickets-thread-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.tickets-thread-head h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.tickets-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 360px;
}
.tickets-msg {
  display: flex;
  gap: 10px;
  max-width: 85%;
}
.tickets-msg.is-user { align-self: flex-end; flex-direction: row-reverse; }
.tickets-msg.is-staff { align-self: flex-start; }
.tickets-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.tickets-msg-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tickets-msg-body {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.tickets-msg.is-user .tickets-msg-body {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.tickets-msg.is-staff .tickets-msg-body {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.tickets-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.tickets-msg-head strong { font-size: 0.82rem; }
.tickets-msg-head small { font-size: 0.72rem; opacity: 0.75; }
.tickets-msg-body p { margin: 0; font-size: 0.9rem; line-height: 1.55; }
.tickets-msg-image {
  display: block;
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  max-width: 240px;
}
.tickets-msg-image img {
  width: 100%;
  display: block;
  border-radius: 12px;
}
.tickets-reply-form {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.tickets-reply-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: end;
}
.tickets-reply-compose .k-textarea {
  min-height: 52px;
  resize: vertical;
}
.tickets-image-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px dashed var(--brand);
  background: var(--brand-muted);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.tickets-image-preview {
  position: relative;
  margin-top: 10px;
  max-width: 160px;
}
.tickets-image-preview img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.tickets-image-clear {
  position: absolute;
  top: 6px;
  inset-inline-end: 6px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  cursor: pointer;
}
.tickets-reply-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.tickets-reply-hint i { color: var(--brand); margin-inline-end: 4px; }
.tickets-thread-empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}
.tickets-thread-empty > i { display: block; font-size: 2rem; color: #cbd5e1; margin: 0 auto 12px; }
.tickets-closed-note {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
}
.tickets-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 120px;
  padding: 16px;
  border: 2px dashed var(--border);
  border-radius: 14px;
  cursor: pointer;
  background: var(--surface-2);
  text-align: center;
  color: var(--muted);
}
.tickets-upload-zone:hover { border-color: var(--brand); color: var(--brand-dark); }
.tickets-upload-zone img {
  max-width: 100%;
  max-height: 140px;
  border-radius: 10px;
}
.tickets-modal-panel { width: min(520px, 100%); }

@media (max-width: 900px) {
  .tickets-hub-layout { grid-template-columns: 1fr; }
  .tickets-list-panel {
    max-height: 240px;
    border-inline-end: none;
    border-bottom: 1px solid var(--border);
  }
  .tickets-hub-head { flex-direction: column; align-items: stretch; }
  .tickets-hub-head .k-btn { align-self: flex-start; }
  .tickets-msg { max-width: 100%; }
}

.market-toolbar .k-btn,
.stories-toolbar .k-btn { flex-shrink: 0; align-self: center; }
@media (max-width: 640px) {
  .market-toolbar,
  .stories-toolbar { align-items: flex-start; }
  .market-toolbar .k-btn,
  .stories-toolbar .k-btn { align-self: flex-start; }
}

/* Wallet page */
.wallet-page { max-width: 560px; margin: 0 auto; padding-bottom: 48px; }
.wallet-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--brand-light) 0%, #fff 100%);
}
.wallet-balance-block { flex: 1; min-width: 0; }
.wallet-balance-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.wallet-balance-value {
  display: block;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.2;
}
.wallet-balance-value small {
  font-size: 0.55em;
  font-weight: 700;
  margin-inline-start: 4px;
}
.wallet-hero-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.wallet-charge-card { padding: 28px; }
.wallet-charge-head { margin-bottom: 24px; }
.wallet-charge-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-dark);
}
.wallet-charge-prompt {
  margin: 0 0 6px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.6;
}
.wallet-charge-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.wallet-gateways {
  border: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.wallet-gateway-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  background: #fff;
}
.wallet-gateway-option:hover {
  border-color: color-mix(in srgb, var(--gateway-accent) 40%, var(--border));
}
.wallet-gateway-option.is-selected {
  border-color: var(--gateway-accent);
  background: color-mix(in srgb, var(--gateway-accent) 8%, #fff);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gateway-accent) 18%, transparent);
}
.wallet-gateway-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.wallet-gateway-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0.75rem;
  flex-shrink: 0;
  transition: all 0.2s;
}
.wallet-gateway-option.is-selected .wallet-gateway-check {
  background: var(--gateway-accent);
  border-color: var(--gateway-accent);
  color: #fff;
}
.wallet-gateway-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.wallet-gateway-logo img {
  display: block;
  width: 100px;
  height: auto;
  border-radius: 8px;
}
.wallet-gateway-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.wallet-amount-field { margin-bottom: 12px; }
.wallet-amount-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.wallet-field-error {
  margin: 8px 0 0;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 600;
}
.wallet-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.wallet-quick-btn {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface, #f8fafc);
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.wallet-quick-btn:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  color: var(--brand-dark);
}
.wallet-pay-btn { width: 100%; justify-content: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .wallet-gateway-option { flex-wrap: wrap; }
  .wallet-gateway-logo img { width: 88px; }
  .wallet-hero { padding: 22px 20px; }
  .wallet-charge-card { padding: 22px 18px; }
}

/* ── Services page ── */
.services-page { padding-top: 8px; }
.services-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 20px;
  margin-bottom: 56px;
  align-items: stretch;
}
.services-hero-inner {
  padding: 48px 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #14532d 0%, var(--brand-dark) 35%, var(--brand) 70%, #4ade80 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.services-hero-inner::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  top: -100px;
  inset-inline-end: -80px;
}
.services-hero-inner::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  bottom: -60px;
  inset-inline-start: 20%;
}
.services-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.14);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.services-hero-badge .brand-logo-text {
  background: none;
  -webkit-text-fill-color: #fff;
  color: #fff;
  font-size: 0.95rem;
}
.services-hero-badge .brand-logo-img {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}
.services-hero-title {
  font-size: clamp(1.75rem, 3.8vw, 2.6rem);
  font-weight: 900;
  margin: 0 0 16px;
  line-height: 1.25;
  position: relative;
  z-index: 1;
}
.services-hero-sub {
  margin: 0 0 28px;
  max-width: 560px;
  font-size: 1.05rem;
  opacity: 0.92;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}
.services-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.services-hero-outline {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.services-hero-outline:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.services-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.services-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
}
.services-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--brand-dark);
  line-height: 1.1;
}
.services-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.4;
}
.services-section-head {
  margin-bottom: 28px;
  max-width: 680px;
}
.services-section-sub {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.services-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
.services-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}
.services-card::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: var(--svc-accent, var(--brand));
  opacity: 0.85;
}
.services-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(22, 163, 74, 0.25);
}
.services-card--green { --svc-accent: #16a34a; }
.services-card--teal { --svc-accent: #0d9488; }
.services-card--lime { --svc-accent: #65a30d; }
.services-card--blue { --svc-accent: #2563eb; }
.services-card--violet { --svc-accent: #7c3aed; }
.services-card--amber { --svc-accent: #d97706; }
.services-card--rose { --svc-accent: #e11d48; }
.services-card--cyan { --svc-accent: #0891b2; }
.services-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.services-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: color-mix(in srgb, var(--svc-accent) 12%, transparent);
  color: var(--svc-accent);
}
.services-card h3 {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.35;
}
.services-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}
.services-card-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.services-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}
.services-card-features li i {
  color: var(--svc-accent);
  margin-top: 3px;
  font-size: 0.72rem;
}
.services-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--svc-accent);
  text-decoration: none;
  padding-top: 4px;
}
.services-card-link:hover { opacity: 0.85; }
.services-how { margin-bottom: 56px; }
.services-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.services-step {
  padding: 28px 24px;
  position: relative;
  border: 1px solid var(--border);
  text-align: center;
}
.services-step-num {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--brand);
  opacity: 0.35;
}
.services-step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 1.2rem;
}
.services-step h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
}
.services-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.services-cta-banner {
  margin-bottom: 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-light) 0%, #ecfdf5 50%, #f0fdf4 100%);
  border: 1px solid rgba(22, 163, 74, 0.2);
  overflow: hidden;
}
.services-cta-inner {
  padding: 44px 40px;
  text-align: center;
}
.services-cta-inner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 900;
  color: var(--brand-dark);
}
.services-cta-inner p {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
  line-height: 1.65;
}
.services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.services-cta-outline {
  background: #fff;
  border-color: var(--brand);
  color: var(--brand-dark);
}
.services-cta-outline:hover {
  background: var(--brand-light);
}
.k-btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.k-btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: rgba(255,255,255,0.6);
}

@media (max-width: 960px) {
  .services-hero { grid-template-columns: 1fr; }
  .services-hero-stats {
    flex-direction: row;
  }
  .services-stat { flex: 1; padding: 18px 14px; }
  .services-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .services-hero-inner { padding: 32px 24px; }
  .services-cards-grid { grid-template-columns: 1fr; gap: 14px; }
  .services-card { padding: 22px 20px; }
  .services-hero-stats { flex-direction: column; }
  .services-cta-inner { padding: 32px 22px; }
}

/* ── Dashboard chat panel ── */
.chat-panel-root { position: relative; z-index: 1200; }
.chat-panel-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1210;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  border: none;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, var(--brand-dark), var(--brand));
  color: #fff;
  cursor: pointer;
  box-shadow: 4px 0 24px rgba(22, 163, 74, 0.35);
  font-family: inherit;
  min-width: 52px;
  transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}
.chat-panel-toggle:hover { transform: translateY(-50%) translateX(2px); }
body.chat-panel-open .chat-panel-toggle {
  opacity: 0;
  pointer-events: none;
}
.chat-panel-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.15rem;
  line-height: 1;
  writing-mode: horizontal-tb;
  text-orientation: upright;
  flex-shrink: 0;
}
.chat-panel-toggle-icon i {
  display: block;
  transform: none;
  line-height: 1;
}
.chat-panel-toggle-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  writing-mode: horizontal-tb;
}
.chat-panel-toggle.has-unread .chat-panel-toggle-icon {
  animation: chat-blink 1s ease-in-out infinite;
}
@keyframes chat-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.chat-panel-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.chat-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 1205;
  backdrop-filter: blur(2px);
}
.chat-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(50vw, 520px);
  max-width: 100%;
  z-index: 1215;
  display: flex;
  flex-direction: column;
  background: #f3f4f6;
  border-inline-end: 1px solid var(--border);
  box-shadow: 8px 0 40px rgba(15, 23, 42, 0.15);
  transform: translateX(-105%);
  transition: transform 0.28s ease;
}
.chat-panel.is-open { transform: translateX(0); }
.chat-panel.is-fullscreen { width: 100vw; max-width: 100vw; }
body.chat-panel-open { overflow: hidden; }
.chat-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-panel-head h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--brand-dark);
}
.chat-panel-head h2 i { color: var(--brand); margin-inline-end: 6px; }
.chat-panel-channel-label {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  font-weight: 700;
}
.chat-panel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chat-panel-tab {
  position: relative;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  transition: var(--ease);
}
.chat-panel-tab.is-active {
  background: var(--brand-muted);
  border-color: var(--brand);
  color: var(--brand-dark);
}
.chat-province-select-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}
.chat-province-select-wrap[hidden] { display: none !important; }
.chat-province-select-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.chat-province-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.chat-tab-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -4px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-panel-head-actions { display: flex; gap: 6px; flex-shrink: 0; }
.chat-panel-fs,
.chat-panel-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.chat-panel-fs:hover,
.chat-panel-close:hover { border-color: var(--brand); color: var(--brand-dark); }
.chat-panel-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #eceff1;
}
.chat-panel-loading,
.chat-panel-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  font-size: 0.88rem;
}
.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 92%;
}
.chat-msg.is-me {
  flex-direction: row-reverse;
  margin-inline-start: auto;
}
.chat-msg-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.chat-msg-body {
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  min-width: 0;
}
.chat-msg.is-me .chat-msg-body {
  background: #dcf8c6;
  border-color: rgba(22, 163, 74, 0.12);
}
.chat-msg.is-expert .chat-msg-body {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.2);
}
.chat-msg-system {
  text-align: center;
  margin: 10px auto;
  max-width: 92%;
  padding: 10px 14px;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.chat-msg-system time,
.chat-msg-action time {
  display: block;
  margin-top: 6px;
  font-size: 0.7rem;
  opacity: 0.7;
}
.chat-msg-action {
  text-align: center;
  margin: 12px auto;
  max-width: 92%;
  padding: 14px;
  background: linear-gradient(135deg, #dcfce7, #f0fdf4);
  border: 1px solid rgba(22, 163, 74, 0.25);
  border-radius: 14px;
}
.chat-msg-action p { margin: 0 0 10px; font-size: 0.88rem; color: #166534; }
.chat-countdown-icon {
  font-size: 1.15rem;
  color: #1d4ed8;
  margin-bottom: 4px;
}
.chat-countdown-display {
  font-size: 1.7rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  color: #1e3a8a;
  margin: 4px 0 6px;
}
.chat-countdown.is-expired .chat-countdown-display {
  color: #b91c1c;
  font-size: 1.1rem;
}
.chat-countdown-label {
  display: block;
  font-size: 0.8rem;
  color: #1d4ed8;
  margin-bottom: 4px;
}
.chat-shipping-quote-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 0.82rem;
  color: #15803d;
  font-weight: 700;
}
.chat-shipping-pay-btn.is-disabled,
.chat-shipping-pay-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.chat-inquiry-label {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--brand);
  font-weight: 700;
}
.chat-inquiry-label[hidden] { display: none !important; }
.chat-inquiry-products-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.08);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}
.chat-inquiry-products-toggle[hidden] { display: none !important; }
.chat-inquiry-products {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  max-height: 220px;
  overflow: auto;
}
.chat-inquiry-products[hidden] { display: none !important; }
.chat-inquiry-products-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 8px;
  font-size: 0.78rem;
}
.chat-inquiry-products-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.72rem;
}
.chat-inquiry-products-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 10px;
}
.chat-inquiry-product-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: start;
  font: inherit;
}
.chat-inquiry-product-item.is-active {
  border-color: var(--brand);
  background: var(--brand-muted);
}
.chat-inquiry-product-item img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.chat-inquiry-product-info strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.35;
}
.chat-inquiry-product-info small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}
.chat-inquiry-products-empty {
  margin: 0;
  padding: 8px 4px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}
.chat-inquiry-actions {
  padding: 10px 14px;
  border-top: 1px dashed var(--border);
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.chat-inquiry-actions[hidden] { display: none !important; }
.chat-inquiry-actions .k-btn {
  width: 100%;
  justify-content: center;
}
.chat-inquiry-actions-hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.buyer-inquiries-page,
.buyer-inquiry-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.buyer-inquiry-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}
.buyer-inquiry-item-media img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
}
.buyer-inquiry-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.buyer-inquiry-item-head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
}
.buyer-inquiry-status {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #dbeafe;
  color: #1d4ed8;
}
.buyer-inquiry-status--arrived { background: #dcfce7; color: #15803d; }
.buyer-inquiry-status--meet_ready { background: #fef3c7; color: #b45309; }
.buyer-inquiry-status--completed { background: var(--surface-2); color: var(--muted); }
.buyer-inquiry-item-meta {
  margin: 0 0 6px;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.buyer-inquiry-item-price {
  margin: 0 0 6px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--brand-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.buyer-inquiry-item-price span {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.82rem;
}
.buyer-inquiry-item-cat {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.buyer-inquiry-item-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.buyer-inquiry-item-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.buyer-inquiry-empty {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.buyer-inquiry-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.5rem;
}
@media (max-width: 720px) {
  .buyer-inquiry-item {
    grid-template-columns: 56px 1fr;
  }
  .buyer-inquiry-item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .buyer-inquiry-item-actions .k-btn { flex: 1; justify-content: center; }
}

.chat-msg-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.chat-msg-name {
  font-size: 0.78rem;
  font-weight: 900;
  color: #e67e22;
}
.chat-msg-title {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 0.68rem;
  font-weight: 700;
}
.chat-emp-code {
  display: inline-block;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.62rem;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 900;
  font-family: monospace;
}
.chat-msg-actions {
  margin-inline-start: auto;
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.2s;
}
.chat-msg:hover .chat-msg-actions { opacity: 1; }
.chat-msg-edit,
.chat-msg-reply {
  border: none;
  background: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 0.72rem;
}
.chat-msg-edit:hover,
.chat-msg-reply:hover { background: rgba(0,0,0,0.06); color: var(--text); }
.chat-msg-reply-block {
  border-inline-start: 3px solid var(--brand);
  padding: 6px 8px;
  margin-bottom: 6px;
  background: rgba(22, 163, 74, 0.06);
  border-radius: 8px;
  font-size: 0.76rem;
}
.chat-msg-reply-block strong { display: block; color: var(--brand-dark); }
.chat-msg-text {
  word-wrap: break-word;
  line-height: 1.55;
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.chat-msg-media { display: block; margin-top: 8px; max-width: 100%; border-radius: 10px; }
.chat-msg-image { max-height: 240px; object-fit: cover; }
.chat-msg-video { max-height: 260px; background: #000; }
.chat-voice-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(22, 163, 74, 0.08);
  border-radius: 999px;
}
.chat-voice-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-voice-wave {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand) 0%, #bbf7d0 100%);
}
.chat-voice-time { font-size: 0.72rem; font-weight: 800; color: var(--brand-dark); }
.chat-msg-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 6px;
  font-size: 0.68rem;
  color: #9ca3af;
}
.chat-edited-tag { font-style: italic; }
.chat-seen { color: #3b82f6; font-size: 0.72rem; }
.chat-seen.is-sent { color: #9ca3af; }
.chat-edit-input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  resize: vertical;
  box-sizing: border-box;
}
.chat-edit-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 6px;
}
.chat-edit-cancel,
.chat-edit-save {
  padding: 4px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.chat-edit-save { background: var(--brand); color: #fff; border: none; }
.chat-edit-cancel { background: #f3f4f6; border: 1px solid var(--border); }
.chat-reply-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
}
.chat-reply-preview strong { display: block; color: var(--brand-dark); }
.chat-reply-preview button {
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
}
.chat-panel-compose {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  background: #fff;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-compose-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.chat-compose-btn:hover { background: var(--brand-muted); color: var(--brand-dark); }
.chat-voice-btn.is-recording { background: #fee2e2; color: #dc2626; animation: chat-blink 0.8s infinite; }
.chat-compose-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.88rem;
  background: #f9fafb;
}
.chat-compose-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

@media (max-width: 768px) {
  .chat-panel { width: 100vw; max-width: 100vw; }
  .chat-panel-toggle-label { display: none; }
  .chat-panel-toggle { min-width: 46px; padding: 12px 8px; }
  .chat-panel-tabs { gap: 4px; }
  .chat-panel-tab { padding: 5px 9px; font-size: 0.68rem; }
  .chat-compose-btn { width: 32px; height: 32px; font-size: 0.82rem; }
}

.conference-hero-enter:disabled,
.conference-hero-enter.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.conference-hero-sub--muted { margin-top: 8px; color: var(--muted); }

/* ── Commercial meet — Google Meet style ── */
html:has(.commercial-meet-body) {
  height: 100%;
  overflow: hidden;
}

.commercial-meet-body {
  margin: 0;
  padding: 0;
  height: 100dvh;
  min-height: 100dvh;
  max-height: 100dvh;
  background: #202124;
  color: #e8eaed;
  overflow: hidden;
  font-family: 'Vazirmatn', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}
.commercial-meet-body.gm-meet-drawer-open {
  overflow: hidden;
  touch-action: none;
}

.gm-meet-page {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  background: #202124;
  overflow: hidden;
}

/* Top bar — sticky */
.gm-meet-topbar {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top, 0px)) 16px 10px;
  background: rgba(32, 33, 36, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  z-index: 200;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.gm-meet-topbar-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.gm-meet-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}
.gm-meet-topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.gm-meet-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e8eaed;
  text-decoration: none;
  background: transparent;
  transition: background 0.15s;
}
.gm-meet-back:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.gm-meet-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #9aa0a6;
  font-weight: 600;
}
.gm-meet-sep { opacity: 0.4; }
.gm-meet-room-code {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.02em;
}
.gm-meet-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e8eaed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(40vw, 280px);
}
.gm-meet-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa0a6;
  flex-shrink: 0;
}
.gm-meet-status-dot.is-live {
  background: #34a853;
  box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.25);
}
.gm-meet-status-dot.is-scheduled { background: #fbbc04; }
.gm-meet-status-dot.is-none { background: #9aa0a6; }
.gm-meet-login-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(138, 180, 248, 0.12);
  color: #8ab4f8;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
}
.gm-meet-login-link:hover { background: rgba(138, 180, 248, 0.2); }
.gm-meet-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(52, 168, 83, 0.12);
  color: #81c995;
  font-size: 0.82rem;
  font-weight: 700;
  max-width: 160px;
}
.gm-meet-user-badge span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gm-meet-people-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: default;
}
.gm-meet-people-btn[hidden] { display: none !important; }

.gm-meet-chat-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.15s, color 0.15s;
}
.gm-meet-chat-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.gm-meet-chat-toggle.is-active {
  background: rgba(138, 180, 248, 0.22);
  color: #8ab4f8;
}
.gm-meet-chat-toggle[hidden] { display: none !important; }

.gm-meet-room-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #292a2d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
  scrollbar-width: thin;
}
.gm-meet-room-tab {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #bdc1c6;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gm-meet-room-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e8eaed;
}
.gm-meet-room-tab.is-active {
  background: rgba(120, 168, 70, 0.22);
  border-color: rgba(120, 168, 70, 0.55);
  color: #c5e1a5;
}

.gm-meet-product-live {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 10px;
  background: #202124;
}
.gm-meet-product-live[hidden] { display: none !important; }
.gm-meet-product-live-inner {
  flex: 1;
  min-height: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}
.gm-meet-product-live-inner video,
.gm-meet-product-live-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}
.gm-meet-product-live-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  z-index: 2;
}
.gm-meet-product-live-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: conference-live-pulse 1.4s ease-in-out infinite;
}
.gm-meet-product-live-meta {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  color: #fff;
  z-index: 2;
}
.gm-meet-product-live-meta strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}
.gm-meet-product-live-meta span {
  font-size: 0.82rem;
  opacity: 0.85;
}
.gm-meet-product-live-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.gm-meet-product-live-list[hidden] { display: none !important; }
.gm-meet-product-live-item {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #e8eaed;
  font-size: 0.78rem;
  cursor: pointer;
}
.gm-meet-product-live-item.is-active {
  border-color: rgba(120, 168, 70, 0.6);
  background: rgba(120, 168, 70, 0.18);
}

.gm-meet-main-pane {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #202124;
}
.gm-meet-main-pane > .gm-meet-viewer-main,
.gm-meet-main-pane > .gm-meet-product-live,
.gm-meet-main-pane > .gm-meet-waiting,
.gm-meet-main-pane > .gm-meet-grid {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.gm-meet-main-pane .gm-meet-purchase,
.gm-meet-main-pane .gm-meet-purchase-dock {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 12px;
  inset-inline-end: auto;
  top: auto;
  width: min(300px, calc(100% - 24px));
  max-width: 300px;
  z-index: 12;
}
.gm-meet-main-pane .gm-meet-purchase-dock {
  width: auto;
  max-width: calc(100% - 24px);
  pointer-events: auto;
}
.gm-meet-main-pane .gm-meet-purchase {
  pointer-events: auto;
}

.gm-meet-main-pane .gm-meet-purchase-checkout {
  position: absolute;
  top: 12px;
  bottom: auto;
  inset-inline-start: 12px;
  inset-inline-end: auto;
  width: min(300px, calc(100% - 24px));
  max-width: 300px;
  z-index: 13;
  pointer-events: none;
}
.gm-meet-main-pane #salesPurchaseCheckoutDock {
  top: 12px;
  bottom: auto;
}
.gm-meet-purchase[hidden] { display: none !important; }
.gm-meet-purchase-card {
  background: rgba(32, 33, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  color: #e8eaed;
}
.gm-meet-purchase-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}
.gm-meet-purchase-head > i { color: #8ab4f8; margin-top: 2px; flex-shrink: 0; }
.gm-meet-purchase-head-text { flex: 1; min-width: 0; }
.gm-meet-purchase-head strong { display: block; font-size: 0.9rem; }
.gm-meet-purchase-head p { margin: 4px 0 0; font-size: 0.78rem; color: #9aa0a6; }
.gm-meet-purchase-close {
  flex-shrink: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #bdc1c6;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -2px;
}
.gm-meet-purchase-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #e8eaed;
}
.gm-meet-purchase-dock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(120, 168, 70, 0.45);
  border-radius: 999px;
  background: rgba(32, 33, 36, 0.96);
  color: #e8eaed;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
.gm-meet-purchase-dock[hidden] { display: none !important; }
.gm-meet-purchase-dock i { color: #8ab4f8; }
.gm-meet-purchase-dock-total {
  color: #c5e1a5;
  font-weight: 800;
  padding-inline-start: 4px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.12);
  margin-inline-start: 2px;
  padding-inline-end: 0;
}
.gm-meet-purchase-dock:hover {
  border-color: rgba(120, 168, 70, 0.7);
  background: rgba(40, 42, 46, 0.98);
}
.gm-meet-purchase-body { font-size: 0.82rem; margin-bottom: 12px; }
.gm-meet-purchase-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
}
.gm-meet-purchase-line.is-total { font-weight: 800; color: #c5e1a5; }
.gm-meet-purchase-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.gm-meet-purchase-checkout[hidden] { display: none !important; }
.gm-meet-purchase-checkout-card {
  pointer-events: auto;
  max-height: min(260px, 36vh);
  overflow-y: auto;
  overflow-x: hidden;
  background: rgba(32, 33, 36, 0.96);
  border: 1px solid rgba(120, 168, 70, 0.45);
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  color: #e8eaed;
}
.gm-meet-purchase-checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.gm-meet-purchase-checkout-head-text { flex: 1; min-width: 0; }
.gm-meet-purchase-checkout-head strong {
  display: block;
  font-size: 0.84rem;
  color: #e8eaed;
}
.gm-meet-purchase-checkout-head p {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: #9aa0a6;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gm-meet-purchase-checkout-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gm-meet-purchase-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 6px 8px;
  color: #e8eaed;
  font-size: 0.78rem;
}
.gm-meet-purchase-cameras-title {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: #bdc1c6;
}
.gm-meet-purchase-cameras-empty {
  margin: 0;
  font-size: 0.82rem;
  color: #9aa0a6;
}
.gm-meet-purchase-cameras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.gm-meet-purchase-camera {
  background: #303134;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.gm-meet-purchase-camera video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #000;
}
.gm-meet-purchase-camera span {
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #e8eaed;
}
.gm-meet-purchase-product {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.gm-meet-purchase-product img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}
.gm-meet-purchase-qr {
  margin-top: 2px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px dashed rgba(134, 239, 172, 0.45);
  background: rgba(32, 33, 36, 0.9);
}
.gm-meet-purchase-qr-head {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  color: #e8eaed;
  margin-bottom: 4px;
}
.gm-meet-purchase-qr-head i { color: #86efac; margin-top: 2px; font-size: 0.85rem; }
.gm-meet-purchase-qr-head strong { display: block; font-size: 0.78rem; }
.gm-meet-purchase-qr-head p { margin: 2px 0 0; font-size: 0.68rem; color: #9aa0a6; }
.gm-meet-purchase-qr-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gm-meet-purchase-qr-body img {
  background: #fff;
  border-radius: 8px;
  padding: 4px;
  width: 96px;
  height: 96px;
}
.gm-meet-purchase-qr-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.gm-meet-purchase-qr-link {
  color: #8ab4f8;
  font-size: 0.78rem;
  word-break: break-all;
}
.gm-meet-purchase-qr-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(138, 180, 248, 0.35);
  background: rgba(138, 180, 248, 0.12);
  color: #8ab4f8;
  border-radius: 999px;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.gm-meet-purchase-qr-copy:hover {
  background: rgba(138, 180, 248, 0.22);
  border-color: rgba(138, 180, 248, 0.55);
}
.gm-meet-purchase-qr-copy.is-copied {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.45);
  background: rgba(134, 239, 172, 0.12);
}
.gm-meet-purchase-checkout-toolbar,
.gm-meet-purchase-mic-hint {
  display: none !important;
}
.gm-meet-purchase-checkout-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.gm-meet-purchase-checkout-actions .gm-meet-btn {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.8rem;
  justify-content: center;
}
.gm-meet-purchase-qr-body img {
  width: 72px !important;
  height: 72px !important;
}
.gm-meet-ctrl--buy {
  background: rgba(120, 168, 70, 0.22);
  color: #c5e1a5;
}
.gm-meet-ctrl--buy:hover {
  background: rgba(120, 168, 70, 0.38);
  color: #e8f5e9;
}
.gm-meet-ctrl--buy.is-waiting {
  opacity: 0.92;
}
.gm-meet-ctrl--buy.is-busy,
.gm-meet-ctrl--buy:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.gm-meet-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.gm-meet-modal[hidden] { display: none !important; }
.gm-meet-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.gm-meet-modal-panel {
  position: relative;
  width: min(420px, 100%);
  background: #2d2e30;
  color: #e8eaed;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.gm-meet-checkout-embed {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  background: rgba(2, 6, 23, 0.72);
  padding: 0;
}
.gm-meet-checkout-embed[hidden] { display: none !important; }
.gm-meet-checkout-embed-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 100dvh;
  background: #0f172a;
}
.gm-meet-checkout-embed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: #1e293b;
  color: #e2e8f0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  flex-shrink: 0;
}
.gm-meet-checkout-embed-head strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}
.gm-meet-checkout-embed-head p {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.45;
}
.gm-meet-checkout-embed-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #f8fafc;
}
body.gm-checkout-embed-open {
  overflow: hidden;
}
@media (min-width: 900px) {
  .gm-meet-checkout-embed {
    padding: 18px;
  }
  .gm-meet-checkout-embed-shell {
    width: min(980px, 100%);
    height: min(92dvh, 100%);
    min-height: 0;
    margin: auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  }
}
.gm-meet-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.gm-meet-modal-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}
.gm-meet-modal-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
}
.gm-meet-modal-text {
  margin: 0 0 10px;
  line-height: 1.7;
  color: #bdc1c6;
}
.gm-meet-modal-hint {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.75;
  font-size: 0.88rem;
  color: #9aa0a6;
}
.gm-meet-chat-status {
  margin: 0;
  padding: 6px 12px 8px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #9aa0a6;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.gm-meet-chat-status[hidden] { display: none !important; }
.gm-meet-chat-sidebar.is-private-chat .gm-meet-chat-status {
  color: #b39ddb;
}

.gm-meet-chat-head-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.gm-meet-chat-sidebar.is-private-chat {
  box-shadow: inset 3px 0 0 rgba(92, 107, 192, 0.65);
}
.gm-meet-chat-sidebar.is-private-chat .gm-meet-chat-head-title i {
  color: #9fa8da;
}
.gm-meet-chat-leave-private {
  border: 0;
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  margin-inline-end: 6px;
}
.gm-meet-chat-leave-private[hidden] { display: none !important; }
.gm-meet-chat-leave-private:hover {
  background: rgba(239, 68, 68, 0.28);
}

.gm-meet-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Main stage */
.gm-meet-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #202124;
  overflow: hidden;
}

.gm-meet-stage-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.gm-meet-stage--viewer .gm-meet-stage-body {
  flex-direction: row;
  align-items: stretch;
}

.gm-meet-stage--viewer .gm-meet-grid {
  flex: 1;
  min-width: 0;
  min-height: 0;
}

.gm-meet-stage--viewer .gm-meet-waiting { display: none !important; }

.gm-meet-stage--with-chat .gm-meet-stage-body {
  flex-direction: row;
  align-items: stretch;
}
.gm-meet-stage--with-chat .gm-meet-main-pane,
.gm-meet-stage--with-chat .gm-meet-viewer-main,
.gm-meet-stage--with-chat .gm-meet-product-live,
.gm-meet-stage--with-chat .gm-meet-waiting,
.gm-meet-stage--with-chat .gm-meet-grid {
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.gm-meet-stage--speaker .gm-meet-stage-body {
  flex-direction: column;
}
.gm-meet-stage--speaker.gm-meet-stage--with-chat .gm-meet-chat-sidebar {
  display: none !important;
}
.gm-meet-stage--private-purchase.gm-meet-stage--speaker .gm-meet-chat-sidebar {
  display: flex !important;
}
.gm-meet-stage--private-purchase.gm-meet-stage--speaker .gm-meet-stage-body {
  flex-direction: row !important;
  align-items: stretch;
}
.gm-meet-stage--private-purchase.gm-meet-stage--speaker .gm-meet-main-pane,
.gm-meet-stage--private-purchase.gm-meet-stage--speaker .gm-meet-grid {
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.gm-meet-stage--private-purchase .gm-meet-chat-sidebar.is-private-chat {
  border-color: rgba(134, 239, 172, 0.35);
}

/* Viewer main area (right / center) */
.gm-meet-viewer-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #202124;
}
.gm-meet-viewer-main[hidden] { display: none !important; }

.gm-meet-audio-unlock {
  position: absolute;
  left: 50%;
  bottom: 88px;
  transform: translateX(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  animation: gm-audio-pulse 1.6s ease-in-out infinite;
}
.gm-meet-audio-unlock[hidden] { display: none !important; }
.gm-meet-audio-unlock:hover {
  background: #0f766e;
}
@keyframes gm-audio-pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.03); }
}

.gm-meet-viewer-hero {
  text-align: center;
  max-width: 420px;
}
.gm-meet-viewer-hero-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5c6bc0, #7e57c2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  opacity: 0.9;
}
.gm-meet-viewer-hero-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #e8eaed;
}
.gm-meet-viewer-hero-sub {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #9aa0a6;
}

.gm-meet-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  gap: 6px;
  padding: 6px 6px 0;
  overflow: hidden;
  align-content: stretch;
  justify-content: stretch;
}
.gm-meet-grid--solo {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.gm-meet-grid--duo {
  grid-template-columns: 1fr 1fr;
}
.gm-meet-grid--trio,
.gm-meet-grid--quad {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}
.gm-meet-grid--many {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  overflow-y: auto;
  align-content: start;
}

/* Participant tile */
.gm-meet-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #3c4043;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gm-meet-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.gm-meet-tile iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 1;
  background: #000;
}
.gm-meet-tile.is-linked {
  cursor: zoom-in;
  border: 2px solid rgba(56, 189, 248, 0.85);
}
.gm-linked-cam-enlarge {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(2, 6, 23, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
}
.gm-linked-cam-enlarge[hidden] { display: none !important; }
.gm-linked-cam-enlarge-inner {
  width: min(96vw, 1100px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.gm-linked-cam-enlarge-inner video,
.gm-linked-cam-enlarge-inner iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}
.gm-linked-cam-enlarge-title {
  margin: 0;
  color: #e2e8f0;
  font-size: 1rem;
  font-weight: 700;
}
.gm-linked-cam-enlarge-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
}
.gm-linked-cam-enlarge-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
.gm-meet-tile.is-local video { transform: scaleX(-1); }
.gm-meet-tile-avatar {
  position: relative;
  z-index: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #5c6bc0, #3949ab);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gm-meet-tile.has-video .gm-meet-tile-avatar { display: none; }
.gm-meet-tile.has-video video { display: block; }
.gm-meet-tile:not(.has-video) video { display: none; }
.gm-meet-tile-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  gap: 6px;
}
html[dir="rtl"] .gm-meet-tile-badge { left: auto; right: 10px; }
.gm-meet-tile-muted {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ea4335;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
}
.gm-meet-tile-name {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 3;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[dir="rtl"] .gm-meet-tile-name { right: auto; left: 12px; }

/* Chat sidebar — physical left */
.gm-meet-chat-sidebar {
  width: min(300px, 34vw);
  max-width: 300px;
  flex-shrink: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #292a2d;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  order: -1;
}
html[dir="rtl"] .gm-meet-chat-sidebar {
  order: 10;
  border-right: none;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.gm-meet-chat-sidebar[hidden] { display: none !important; }
.gm-meet-chat-sidebar.is-collapsed {
  width: 0 !important;
  max-width: 0 !important;
  min-width: 0 !important;
  border: none !important;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 0;
  margin: 0;
}

/* Sales conference — chat & purchase as bottom drawers above dock */
.gm-meet-stage--dock-drawers {
  --gm-dock-offset: calc(72px + env(safe-area-inset-bottom, 0px));
}
.gm-meet-stage--dock-drawers .gm-meet-stage-body {
  flex-direction: column !important;
  align-items: stretch;
}
.gm-meet-stage--dock-drawers .gm-meet-main-pane {
  flex: 1;
  width: 100%;
  min-height: 0;
}
.gm-meet-stage--dock-drawers .gm-meet-grid,
.gm-meet-stage--dock-drawers .gm-meet-viewer-main,
.gm-meet-stage--dock-drawers .gm-meet-waiting {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 0;
}
.gm-meet-stage--dock-drawers .gm-meet-chat-sidebar {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: min(520px, calc(100% - 24px));
  max-width: min(520px, calc(100% - 24px));
  margin-inline: 0;
  height: min(340px, 44vh);
  max-height: 44vh;
  order: unset;
  flex-shrink: unset;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.5);
  z-index: 28;
  transform: translate(-50%, calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.gm-meet-stage--dock-drawers .gm-meet-chat-sidebar.is-collapsed {
  width: min(520px, calc(100% - 24px)) !important;
  max-width: min(520px, calc(100% - 24px)) !important;
  min-width: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  padding: 0;
  margin-inline: 0;
  opacity: 0;
}
.gm-meet-stage--dock-drawers.gm-meet-stage--chat-open .gm-meet-chat-sidebar {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.gm-meet-stage--dock-drawers.gm-meet-stage--speaker .gm-meet-chat-sidebar,
.gm-meet-stage--dock-drawers.gm-meet-stage--private-purchase .gm-meet-chat-sidebar {
  display: flex !important;
}
.gm-meet-stage--dock-drawers .gm-meet-main-pane .gm-meet-purchase,
.gm-meet-stage--dock-drawers .gm-meet-main-pane .gm-meet-purchase-checkout {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 12px;
  inset-inline: auto;
  width: min(480px, calc(100% - 24px));
  max-width: min(480px, calc(100% - 24px));
  margin-inline: 0;
  z-index: 27;
  transform: translate(-50%, calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.gm-meet-stage--dock-drawers .gm-meet-main-pane .gm-meet-purchase-dock,
.gm-meet-stage--dock-drawers .gm-meet-main-pane #salesPurchaseCheckoutDock {
  display: none !important;
}
.gm-meet-stage--dock-drawers.gm-meet-stage--purchase-open .gm-meet-main-pane .gm-meet-purchase:not([hidden]),
.gm-meet-stage--dock-drawers.gm-meet-stage--purchase-open .gm-meet-main-pane .gm-meet-purchase-checkout:not([hidden]) {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.gm-meet-stage--dock-drawers .gm-meet-purchase-checkout-card {
  max-height: min(340px, 44vh);
}
.gm-meet-ctrl--purchase-panel.is-active {
  background: rgba(120, 168, 70, 0.28);
  color: #c5e1a5;
}
.gm-meet-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(0, 0, 0, 0.52);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: default;
}
.gm-meet-drawer-backdrop[hidden] { display: none !important; }

.gm-meet-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.gm-meet-chat-head-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #e8eaed;
  min-width: 0;
}
.gm-meet-chat-head-title i { color: #8ab4f8; font-size: 0.9rem; flex-shrink: 0; }
.gm-meet-chat-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #9aa0a6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.gm-meet-chat-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #e8eaed;
}
.gm-meet-viewer-notice {
  margin: 0;
  padding: 8px 10px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #9aa0a6;
  background: rgba(138, 180, 248, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}
.gm-meet-chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gm-meet-chat-empty {
  margin: auto;
  text-align: center;
  color: #9aa0a6;
  font-size: 0.78rem;
  padding: 16px 8px;
}
.gm-meet-chat-msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 100%;
}
.gm-meet-chat-msg.is-me {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.gm-meet-chat-msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #5f6368;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #e8eaed;
}
.gm-meet-chat-msg-body {
  background: #3c4043;
  border-radius: 10px 10px 10px 4px;
  padding: 6px 9px;
  min-width: 0;
  max-width: calc(100% - 34px);
}
.gm-meet-chat-msg.is-me .gm-meet-chat-msg-body {
  background: #3949ab;
  border-radius: 10px 10px 4px 10px;
}
.gm-meet-chat-msg-head {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 0.65rem;
  color: #bdc1c6;
}
.gm-meet-chat-msg.is-me .gm-meet-chat-msg-head { color: rgba(255,255,255,0.75); }
.gm-meet-chat-msg-head strong { color: #e8eaed; font-weight: 700; font-size: 0.68rem; }
.gm-meet-chat-msg-body p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: break-word;
  color: #e8eaed;
}
.gm-meet-chat-reply {
  margin: 0 0 4px;
  padding: 4px 8px;
  border-inline-start: 2px solid #86efac;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
  color: #9aa0a6;
}
.gm-meet-chat-expert-badge {
  font-size: 0.62rem;
  background: #16a34a;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  margin-inline-start: 4px;
}
.gm-meet-chat-form {
  display: flex;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.gm-meet-chat-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: 999px;
  padding: 9px 12px;
  background: #3c4043;
  color: #e8eaed;
  font: inherit;
  font-size: 0.8rem;
}
.gm-meet-chat-input::placeholder { color: #9aa0a6; }
.gm-meet-chat-input:focus { outline: 2px solid #8ab4f8; }
.gm-meet-chat-send {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: #8ab4f8;
  color: #202124;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}
.gm-meet-chat-send:hover { background: #aecbfa; }
.gm-meet-chat-guest-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.gm-meet-chat-guest-bar a {
  color: #8ab4f8;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
}
.gm-meet-grid[hidden] { display: none !important; }

/* Waiting state */
.gm-meet-waiting {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
  z-index: 2;
  background: #202124;
}
.gm-meet-waiting[hidden] { display: none !important; }
.gm-meet-waiting-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5c6bc0, #7e57c2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.gm-meet-waiting-title {
  margin: 8px 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #e8eaed;
}
.gm-meet-waiting-sub {
  margin: 0;
  font-size: 0.88rem;
  color: #9aa0a6;
  max-width: 360px;
  line-height: 1.6;
}

/* Control dock — pinned footer inside stage */
.gm-meet-dock {
  position: relative;
  flex-shrink: 0;
  z-index: 30;
  width: 100%;
  padding: 10px 12px max(12px, env(safe-area-inset-bottom, 12px));
  box-sizing: border-box;
  pointer-events: none;
}
.gm-meet-dock[hidden] { display: none !important; }
.gm-meet-dock-bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: nowrap;
  padding: 8px 12px;
  margin: 0 auto;
  max-width: 720px;
  background: rgba(32, 33, 36, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gm-meet-dock-bar::-webkit-scrollbar { display: none; }
.gm-meet-ctrl {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  height: 56px;
  padding: 6px 10px;
  border: none;
  border-radius: 999px;
  background: #3c4043;
  color: #e8eaed;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  font-size: 1.05rem;
}
.gm-meet-ctrl:hover { background: #5f6368; }
.gm-meet-ctrl:active { transform: scale(0.96); }
.gm-meet-ctrl[hidden] { display: none !important; }
.gm-meet-ctrl-label {
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.85;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gm-meet-ctrl.is-active {
  background: #8ab4f8;
  color: #202124;
}
.gm-meet-ctrl--mic.is-off,
.gm-meet-ctrl--cam.is-off {
  background: #ea4335;
  color: #fff;
}
.gm-meet-ctrl--mic.is-off:hover,
.gm-meet-ctrl--cam.is-off:hover {
  background: #d93025;
}
.gm-meet-ctrl--hangup {
  background: #ea4335;
  color: #fff;
  min-width: 64px;
}
.gm-meet-ctrl--hangup:hover { background: #d93025; }
.gm-meet-ctrl--login {
  background: rgba(138, 180, 248, 0.18);
  color: #8ab4f8;
}
.gm-meet-ctrl--chat.is-active {
  background: rgba(138, 180, 248, 0.22);
  color: #8ab4f8;
}

/* Empty state */
.gm-meet-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  text-align: center;
}
.gm-meet-empty-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #9aa0a6;
}
.gm-meet-empty h2 { margin: 0; font-size: 1.1rem; }
.gm-meet-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.gm-meet-btn--primary {
  background: #8ab4f8;
  color: #202124;
}

@media (max-width: 768px) {
  .gm-meet-topbar {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "start end"
      "center center";
    padding: max(8px, env(safe-area-inset-top, 0px)) 10px 8px;
    gap: 6px;
  }
  .gm-meet-topbar-start { grid-area: start; }
  .gm-meet-topbar-center { grid-area: center; padding-top: 4px; }
  .gm-meet-topbar-end { grid-area: end; }
  .gm-meet-meta { display: none; }
  .gm-meet-ctrl-label { display: none; }
  .gm-meet-ctrl {
    min-width: 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .gm-meet-dock {
    padding: 8px 8px max(10px, env(safe-area-inset-bottom, 10px));
  }
  .gm-meet-dock-bar {
    gap: 4px;
    padding: 6px 8px;
    justify-content: flex-start;
  }
  .gm-meet-grid {
    padding: 4px 4px 0;
    gap: 4px;
  }
  .gm-meet-grid--duo {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
  .gm-meet-grid--trio,
  .gm-meet-grid--quad {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .gm-meet-tile-avatar { width: 56px; height: 56px; font-size: 1.2rem; }
  .gm-meet-viewer-hero-icon { width: 64px; height: 64px; font-size: 1.5rem; }
  .gm-meet-viewer-hero-title { font-size: 1rem; }

  /* Dock drawers — mobile sheet above control bar */
  .gm-meet-stage--dock-drawers {
    --gm-dock-offset: calc(76px + env(safe-area-inset-bottom, 0px));
  }
  .gm-meet-stage--dock-drawers .gm-meet-chat-sidebar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: var(--gm-dock-offset, calc(76px + env(safe-area-inset-bottom, 0px)));
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: min(52dvh, 360px);
    max-height: min(52dvh, 360px);
    margin: 0;
    border-radius: 16px 16px 0 0;
    border-inline: none;
    border-bottom: none;
    transform: translateY(110%);
    z-index: 28;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box;
  }
  .gm-meet-stage--dock-drawers .gm-meet-chat-sidebar[hidden] {
    display: none !important;
  }
  .gm-meet-stage--dock-drawers .gm-meet-chat-sidebar.is-collapsed {
    width: 100% !important;
    max-width: 100% !important;
    transform: translateY(110%);
  }
  .gm-meet-stage--dock-drawers.gm-meet-stage--chat-open .gm-meet-chat-sidebar {
    transform: translateY(0);
  }
  .gm-meet-stage--dock-drawers .gm-meet-chat-status,
  .gm-meet-stage--dock-drawers .gm-meet-viewer-notice {
    flex-shrink: 0;
  }
  .gm-meet-stage--dock-drawers .gm-meet-chat-messages {
    flex: 1 1 0;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .gm-meet-stage--dock-drawers .gm-meet-chat-form,
  .gm-meet-stage--dock-drawers .gm-meet-chat-guest-bar {
    flex: 0 0 auto;
    flex-shrink: 0;
    margin-top: auto;
    background: #292a2d;
    position: relative;
    z-index: 2;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
  }
  .gm-meet-stage--dock-drawers .gm-meet-chat-input {
    font-size: 16px;
    padding: 10px 14px;
  }
  .gm-meet-stage--dock-drawers .gm-meet-chat-send {
    width: 40px;
    height: 40px;
  }
  .gm-meet-stage--dock-drawers .gm-meet-main-pane .gm-meet-purchase,
  .gm-meet-stage--dock-drawers .gm-meet-main-pane .gm-meet-purchase-checkout {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: var(--gm-dock-offset, calc(76px + env(safe-area-inset-bottom, 0px)));
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    transform: translateY(110%);
    z-index: 27;
  }
  .gm-meet-stage--dock-drawers.gm-meet-stage--purchase-open .gm-meet-main-pane .gm-meet-purchase:not([hidden]),
  .gm-meet-stage--dock-drawers.gm-meet-stage--purchase-open .gm-meet-main-pane .gm-meet-purchase-checkout:not([hidden]) {
    transform: translateY(0);
  }
  .gm-meet-stage--dock-drawers .gm-meet-purchase-checkout-card,
  .gm-meet-stage--dock-drawers .gm-meet-purchase-card {
    border-radius: 16px 16px 0 0;
    max-height: min(58dvh, 420px);
    border-bottom: none;
  }
  .gm-meet-stage--dock-drawers .gm-meet-purchase-checkout-actions {
    flex-direction: column;
  }
  .gm-meet-stage--dock-drawers .gm-meet-purchase-checkout-actions .gm-meet-btn {
    width: 100%;
    justify-content: center;
  }
  .gm-meet-stage--dock-drawers .gm-meet-purchase-qr-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .gm-meet-stage--dock-drawers .gm-meet-purchase-mic-hint {
    font-size: 0.68rem;
  }
  .gm-meet-stage--dock-drawers .gm-meet-main-pane {
    overflow: hidden;
  }
  .gm-meet-stage:not(.gm-meet-stage--dock-drawers) .gm-meet-chat-sidebar {
    width: min(260px, 42vw);
    max-width: 260px;
  }
}

@media (max-width: 480px) {
  .gm-meet-stage--dock-drawers .gm-meet-chat-sidebar {
    height: min(48dvh, 340px);
    max-height: min(48dvh, 340px);
  }
  .gm-meet-stage--dock-drawers .gm-meet-purchase-checkout-card,
  .gm-meet-stage--dock-drawers .gm-meet-purchase-card {
    max-height: min(48dvh, 340px);
  }
  .gm-meet-dock-bar {
    max-width: 100%;
  }
}

/* Legacy commercial-meet aliases (keep grid compat) */
.commercial-meet-page { display: contents; }
.commercial-meet-grid { display: contents; }
.conference-meet-tile { display: contents; }


/* ── Conference room (home) ── */
.conference-section { margin-bottom: 48px; }
.conference-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 18px;
}
.conference-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.conference-enter-btn {
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.22);
}
.conference-live-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #f87171 0%, #ef4444 45%, #dc2626 100%);
  box-shadow: 0 6px 22px rgba(239, 68, 68, 0.38);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.conference-live-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: conference-live-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
.conference-live-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(239, 68, 68, 0.45);
}
.conference-live-btn:active {
  transform: translateY(0);
}
.conference-live-btn__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: conference-live-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes conference-live-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55); }
  50% { opacity: 0.75; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}
@keyframes conference-live-shine {
  0%, 72% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.conference-preview {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.conference-preview--clickable {
  cursor: pointer;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
.conference-preview--clickable:hover {
  border-color: rgba(120, 168, 70, 0.45);
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.12);
}
.conference-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.conference-preview-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
}
.conference-preview-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.conference-preview-tab {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.conference-preview-tab.is-active,
.conference-preview-tab:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: rgba(22, 163, 74, 0.08);
}
.conference-preview-body {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  min-height: 0;
}
.conference-preview-body--live-only {
  grid-template-columns: 1fr;
}
.conference-preview-body--live-only .conference-preview-live {
  border-inline-end: none;
}
.conference-preview-live {
  background: #0f172a;
  color: #fff;
  border-inline-end: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  min-height: 0;
}
.conference-preview-live-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}
.conference-preview-live-dot {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ef4444;
  animation: conference-pulse 1.5s infinite;
}
.conference-preview-live-badge {
  position: absolute;
  top: 8px;
  inset-inline-start: 28px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.92);
  font-size: 0.68rem;
  font-weight: 700;
}
.conference-preview-live-media {
  width: 100%;
  height: 260px;
  min-height: 260px;
  max-height: 260px;
  flex: 0 0 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #111827;
}
.conference-preview-live-placeholder {
  width: 100%;
  height: 260px;
  min-height: 260px;
  max-height: 260px;
  flex: 0 0 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(160deg, #111827 0%, #1e293b 100%);
  color: rgba(255, 255, 255, 0.45);
}
.conference-preview-live-placeholder i {
  font-size: 2.75rem;
  line-height: 1;
}
.conference-preview-live-placeholder span {
  font-size: 0.78rem;
  line-height: 1.45;
  max-width: 200px;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}
.conference-preview-live-placeholder--full {
  width: 100%;
  height: 260px;
  min-height: 260px;
  max-height: 260px;
  flex: 0 0 260px;
}
.conference-preview-live-meta {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(0, 0, 0, 0.45);
  flex-shrink: 0;
}
.conference-preview-live-meta strong {
  font-size: 0.88rem;
  line-height: 1.35;
}
.conference-preview-live-meta span {
  font-size: 0.76rem;
  opacity: 0.75;
}
.conference-preview-chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
}
.conference-preview-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
  max-height: 240px;
}
.conference-preview-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.conference-preview-compose .k-input {
  flex: 1;
  min-height: 40px;
}
.conference-preview-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.conference-preview-guest p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.conference-msg--compact .conference-msg-body {
  padding: 6px 10px;
}
.conference-msg--compact .conference-msg-head {
  font-size: 0.72rem;
  margin-bottom: 2px;
}
.conference-msg--compact .conference-msg-body p {
  font-size: 0.82rem;
}
.conference-msg-avatar--sm {
  width: 28px;
  height: 28px;
}
.conference-shell { position: relative; }
.conference-shell[hidden] { display: none !important; }
.conference-preview[hidden] { display: none !important; }
.conference-section.is-expanded .conference-preview { display: none !important; }
.conference-shell-toolbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.conference-shell-toolbar[hidden] { display: none !important; }
.conference-shell-toolbar-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--brand-dark);
}
.conference-exit-btn {
  background: #fff;
}
.conference-section.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 20001;
  margin: 0;
  padding: 0;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: conference-expand-in 0.28s ease;
}
@keyframes conference-expand-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.conference-section.is-expanded .conference-head { display: none; }
.conference-section.is-expanded .conference-shell {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}
.conference-section.is-expanded .conference-shell-toolbar {
  display: flex;
  flex-shrink: 0;
  margin: 0;
  padding: 12px 16px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}
.conference-section.is-expanded .conference-grid {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}
.conference-section.is-expanded .conference-live-stage,
.conference-section.is-expanded .conference-chat {
  min-height: 0;
}
.conference-section.is-expanded .conference-messages {
  max-height: none;
  min-height: 0;
  flex: 1;
}
.conference-section.is-expanded .conference-live-video,
.conference-section.is-expanded .conference-live-poster,
.conference-section.is-expanded .conference-live-placeholder {
  min-height: 0;
  flex: 1;
}
html.conference-room-open,
body.conference-room-open {
  overflow: hidden;
}
html.conference-room-open .main-header,
html.conference-room-open .k-footer,
html.conference-room-open .k-toast-wrap,
html.conference-room-open .neural-bg,
html.conference-room-open .k-site-main > * {
  visibility: hidden;
  pointer-events: none;
}
.conference-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-full);
  background: rgba(22, 163, 74, 0.12); color: var(--brand-dark);
  font-size: 0.78rem; font-weight: 700; margin-bottom: 8px;
}
.conference-title { margin: 0 0 6px; }
.conference-sub { margin: 0; color: var(--text-muted); max-width: 640px; }
.conference-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 0;
  padding: 0; overflow: hidden; min-height: 420px;
}
.conference-grid--live-only {
  grid-template-columns: 1fr;
}
.conference-grid--live-only .conference-live {
  border-inline-end: none;
}
.conference-live {
  background: #0f172a; color: #fff; display: flex; flex-direction: column;
  border-inline-end: 1px solid var(--border);
}
.conference-live-stage { flex: 1; display: flex; flex-direction: column; min-height: 420px; }
.conference-live-active { position: relative; flex: 1; display: flex; flex-direction: column; }
.conference-live-dot {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2;
  width: 10px; height: 10px; border-radius: 50%; background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: conference-pulse 1.5s infinite;
}
@keyframes conference-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.conference-live-label {
  position: absolute; top: 10px; inset-inline-start: 32px; z-index: 2;
  padding: 4px 10px; border-radius: var(--radius-full);
  background: rgba(239, 68, 68, 0.9); font-size: 0.72rem; font-weight: 700;
}
.conference-live-video,
.conference-live-poster,
.conference-live-placeholder {
  width: 100%; flex: 1; min-height: 240px; object-fit: cover; background: #111827;
}
.conference-live-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; opacity: 0.35;
}
.conference-live-meta {
  padding: 12px 16px; background: rgba(0,0,0,0.45);
  display: flex; flex-direction: column; gap: 2px;
}
.conference-live-meta strong { font-size: 0.95rem; }
.conference-live-meta span { font-size: 0.82rem; opacity: 0.75; }
.conference-live-list {
  display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto;
  background: rgba(255,255,255,0.04); border-top: 1px solid rgba(255,255,255,0.08);
}
.conference-live-item {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.15); background: transparent;
  color: #fff; cursor: pointer; white-space: nowrap; font: inherit; font-size: 0.78rem;
}
.conference-live-item.is-active,
.conference-live-item:hover { border-color: var(--brand); background: rgba(22,163,74,0.15); }
.conference-live-item-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #ef4444; flex-shrink: 0;
}
.conference-live-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 32px; text-align: center; opacity: 0.7;
}
.conference-live-empty i { font-size: 2.4rem; opacity: 0.45; }
.conference-chat { display: flex; flex-direction: column; min-height: 420px; background: #fff; }
.conference-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 12px 12px 0;
  border-bottom: 1px solid var(--border);
}
.conference-tab {
  padding: 8px 14px; border: 1px solid var(--border); border-bottom: none;
  border-radius: 10px 10px 0 0; background: var(--bg-soft);
  color: var(--text-muted); cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 600;
}
.conference-tab.is-active {
  background: #fff; color: var(--brand-dark); border-color: var(--brand);
  box-shadow: inset 0 2px 0 var(--brand);
}
.conference-messages {
  flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  min-height: 260px; max-height: 340px;
}
.conference-loading,
.conference-empty {
  margin: auto; text-align: center; color: var(--text-muted); padding: 24px 12px;
}
.conference-msg { display: flex; gap: 10px; align-items: flex-start; }
.conference-msg.is-me { flex-direction: row-reverse; }
.conference-msg.is-me .conference-msg-body {
  background: rgba(22, 163, 74, 0.12); border-color: rgba(22, 163, 74, 0.25);
}
.conference-msg-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.conference-msg-avatar-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 0.82rem;
}
.conference-msg-body {
  flex: 1; min-width: 0; padding: 8px 12px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg-soft);
}
.conference-msg-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 4px; font-size: 0.78rem;
}
.conference-msg-head time { color: var(--text-muted); font-weight: 400; }
.conference-msg-body p { margin: 0; font-size: 0.88rem; line-height: 1.45; word-break: break-word; }
.conference-compose {
  display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border);
}
.conference-compose .k-input { flex: 1; }
.conference-guest-prompt {
  padding: 14px 16px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--bg-soft);
}
.conference-guest-prompt p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* Meet (WebRTC) */
.conference-meet-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft);
  flex-wrap: wrap;
}
.conference-meet-toolbar[hidden] { display: none !important; }
.conference-meet-status {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600;
  color: var(--brand-dark);
}
.conference-meet-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #ef4444;
  animation: conference-pulse 1.5s infinite;
}
.conference-meet-controls { display: flex; gap: 8px; flex-wrap: wrap; }
.conference-meet-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--text); cursor: pointer; display: inline-flex;
  align-items: center; justify-content: center; font-size: 1rem; transition: all 0.15s;
}
.conference-meet-btn:hover { border-color: var(--brand); color: var(--brand); }
.conference-meet-btn.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.conference-meet-btn.is-muted { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.conference-meet-btn[hidden] { display: none !important; }
.conference-meet-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
  padding: 12px; min-height: 240px; background: #0f172a;
}
.conference-meet-grid[hidden] { display: none !important; }
.conference-meet-tile {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 16/10;
  background: #1e293b;
}
.conference-meet-tile video {
  width: 100%; height: 100%; object-fit: cover;
}
.conference-meet-tile.is-local video { transform: scaleX(-1); }
.conference-meet-tile-meta {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 6px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: #fff; font-size: 0.75rem; display: flex; justify-content: space-between; gap: 6px;
}
.conference-meet-tile-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conference-meet-tile-icons { display: flex; gap: 4px; opacity: 0.9; }
.conference-meet-empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 8px; padding: 40px; color: #94a3b8; text-align: center;
}
.conference-meet-empty i { font-size: 2rem; opacity: 0.5; }

.conference-purchase-offer {
  padding: 12px;
}
.conference-purchase-offer[hidden] { display: none !important; }
.conference-purchase-offer-inner {
  border: 2px solid rgba(22, 163, 74, 0.25);
  background: linear-gradient(135deg, #f0fdf4, #fff);
  padding: 14px;
}
.conference-purchase-offer-head {
  display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px;
}
.conference-purchase-offer-head i {
  color: var(--brand); font-size: 1.2rem; margin-top: 2px;
}
.conference-purchase-offer-head p {
  margin: 4px 0 0; font-size: 0.85rem; color: var(--text-muted);
}
.conference-purchase-product {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.conference-purchase-product img {
  width: 48px; height: 48px; border-radius: 10px; object-fit: cover;
}
.conference-purchase-line {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.06); font-size: 0.9rem;
}
.conference-purchase-line.is-total {
  border-bottom: none; font-size: 1rem; color: var(--brand); font-weight: 700;
}
.conference-purchase-offer-actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
}
.conference-purchase-draft-msg {
  margin: 0; padding: 10px; background: #ecfdf5; border-radius: 10px; color: #166534;
}

@media (max-width: 960px) {
  .conference-preview-body { grid-template-columns: 1fr; }
  .conference-preview-live {
    border-inline-end: none;
    border-bottom: 1px solid var(--border);
  }
  .conference-preview-live-media,
  .conference-preview-live-placeholder,
  .conference-preview-live-placeholder--full {
    height: 220px;
    min-height: 220px;
    max-height: 220px;
    flex: 0 0 220px;
  }
  .conference-grid { grid-template-columns: 1fr; }
  .conference-live { border-inline-end: none; border-bottom: 1px solid var(--border); }
  .conference-messages { max-height: 280px; }
  .conference-section.is-expanded .conference-messages { max-height: none; }
  .conference-section.is-expanded .conference-live-stage { min-height: 0; }
}

/* ── World routes map (home) ── */
.world-routes-section { margin-top: 48px; margin-bottom: 16px; }

/* Collapsed map layer switcher (street / satellite / terrain / traffic) */
.kako-map-layers-control.leaflet-control-layers {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.kako-map-layers-control .leaflet-control-layers-toggle {
  width: 38px;
  height: 38px;
  background-size: 22px 22px;
}
.kako-map-layers-control.leaflet-control-layers-expanded {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
  min-width: 150px;
}
.kako-map-layers-control .leaflet-control-layers-base label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}
.kako-map-layers-control .leaflet-control-layers-base label:last-child {
  margin-bottom: 0;
}
.kako-map-layers-control input.leaflet-control-layers-selector {
  accent-color: #16a34a;
  margin: 0;
}
html[dir="rtl"] .kako-map-layers-control.leaflet-control-layers-expanded {
  text-align: right;
}
.world-routes-section.is-dashboard {
  margin-top: 0;
  margin-bottom: 0;
}
.world-routes-section.is-dashboard .world-routes-map {
  border-radius: var(--radius);
}
.world-routes-section.is-dashboard .world-routes-leaflet {
  min-height: 420px;
  height: min(62vh, 560px);
}
.world-map-switchers-bar {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 650;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.world-products-switcher,
.world-trucks-switcher {
  position: static;
  top: auto;
  inset-inline: auto;
  transform: none;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: min(340px, 100%);
  min-width: 0;
  flex: 1 1 220px;
  padding: 6px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.world-products-switcher[hidden],
.world-trucks-switcher[hidden] { display: none !important; }
.world-trucks-switcher-icon.is-product {
  background: #0f766e;
}
.world-routes-section.is-dashboard .world-routes-legend {
  padding: 10px 12px;
}
.world-routes-head { margin-bottom: 18px; }
.world-routes-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--radius-full);
  background: rgba(22, 163, 74, 0.12); color: var(--brand-dark);
  font-size: 0.78rem; font-weight: 700; margin-bottom: 8px;
}
.world-routes-sub { margin: 0; color: var(--text-muted); max-width: 680px; }
.world-routes-map {
  padding: 0; overflow: hidden;
  display: grid; grid-template-columns: 1fr; gap: 0;
  position: relative;
}
.world-routes-map-stage {
  position: relative;
}
.world-trucks-switcher-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--brand-dark);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.world-trucks-switcher-btn:hover {
  background: var(--brand-muted);
  border-color: var(--brand);
}
.world-trucks-switcher-body {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  text-align: start;
  min-width: 0;
  flex: 1;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}
.world-trucks-switcher-body:hover {
  background: var(--surface-2);
}
.world-trucks-switcher-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.world-trucks-switcher-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);
  flex-shrink: 0;
}
.world-trucks-switcher-label {
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
}
.world-trucks-switcher-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-dark);
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-muted);
}
.world-truck-leaflet.is-focused .world-truck-pin {
  transform: scale(1.12);
}
.world-truck-leaflet.is-focused .world-truck-img {
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.85)) drop-shadow(0 3px 5px rgba(15, 23, 42, 0.4));
}
.world-truck-wrap {
  position: relative;
  width: 160px;
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.world-truck-bubble {
  position: absolute;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%) translateY(6px) scale(0.94);
  max-width: 168px;
  min-width: 88px;
  padding: 7px 11px;
  background: #fff;
  border: 2px solid #22c55e;
  border-radius: 14px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  line-height: 1.4;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  z-index: 3;
}
.world-truck-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #22c55e;
}
.world-truck-bubble.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.world-truck-bubble[hidden] { display: none !important; }
.world-truck-leaflet.is-focused .world-truck-bubble {
  border-color: #16a34a;
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.35);
}
.world-routes-live-toast {
  position: absolute;
  inset-inline-start: 16px;
  top: 16px;
  bottom: auto;
  z-index: 600;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid rgba(34, 197, 94, 0.35);
  max-width: 420px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.world-routes-live-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.world-routes-live-toast-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: #86efac;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.world-routes-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
  animation: world-live-dot 1.4s ease-out infinite;
}
@keyframes world-live-dot {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
.world-routes-live-icon {
  margin-inline-start: auto;
  font-size: 0.95rem;
  color: #fde047;
}
.world-routes-live-toast p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  font-weight: 600;
}
.world-route-line { cursor: pointer; }
.world-routes-leaflet {
  width: 100%;
  height: min(420px, 62vh);
  min-height: 320px;
  z-index: 1;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #e2e8f0;
  position: relative;
}
.world-routes-leaflet.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 500;
  pointer-events: none;
}
.world-routes-leaflet.is-loading::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top-color: #22c55e;
  border-radius: 50%;
  animation: world-map-spin 0.8s linear infinite;
  z-index: 501;
}
@keyframes world-map-spin { to { transform: rotate(360deg); } }
.world-routes-leaflet .leaflet-control-zoom a {
  border-radius: 8px;
  color: var(--brand-dark);
  font-weight: 800;
  line-height: 26px;
}
.world-routes-leaflet .leaflet-control-zoom {
  border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.world-routes-leaflet.is-wheel-active {
  cursor: grab;
}
.world-routes-leaflet.is-wheel-active:active {
  cursor: grabbing;
}
.world-routes-leaflet:focus {
  outline: 2px solid rgba(22, 163, 74, 0.45);
  outline-offset: 2px;
}
.world-city-tooltip {
  background: rgba(15, 23, 42, 0.88);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  cursor: pointer;
}
.world-city-tooltip.is-clickable:hover {
  background: rgba(22, 163, 74, 0.95);
}
.world-city-tooltip::before { display: none; }
.world-city-marker { cursor: pointer; }
.world-truck-leaflet.leaflet-div-icon {
  background: transparent !important;
  border: none !important;
}
.world-truck-leaflet {
  cursor: pointer;
}
.world-truck-pin {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: transform 0.25s ease;
}
.world-truck-leaflet .world-truck-img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(15, 23, 42, 0.4));
  transition: transform 0.35s ease-out, filter 0.25s ease;
  pointer-events: none;
}
.world-routes-legend {
  list-style: none; margin: 0; padding: 14px 18px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px;
  background: var(--surface-2); border-top: 1px solid var(--border);
}
.world-routes-legend li {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem; font-weight: 600; color: var(--text);
}
.world-routes-legend-item {
  cursor: pointer;
  border-radius: 10px;
  padding: 6px 8px;
  margin: -6px -8px;
  transition: background 0.2s, color 0.2s;
}
.world-routes-legend-item:hover,
.world-routes-legend-item:focus-visible {
  background: var(--brand-muted);
  color: var(--brand-dark);
  outline: none;
}
.world-routes-legend i { color: var(--brand); font-size: 0.9rem; flex-shrink: 0; }

@media (prefers-reduced-motion: reduce) {
  .world-truck-leaflet .world-truck-img { transition: none; }
}

@media (max-width: 640px) {
  .world-routes-legend { grid-template-columns: 1fr; }
  .world-routes-leaflet { min-height: 260px; height: 300px; }
  .world-routes-leaflet .leaflet-top.leaflet-left {
    left: auto;
    right: 10px;
  }
  .world-routes-live-toast {
    inset-inline: 10px;
    top: 10px;
    bottom: auto;
    max-width: none;
  }
  .world-map-switchers-bar {
    inset-inline: 8px;
    bottom: 8px;
    gap: 8px;
  }
  .world-products-switcher,
  .world-trucks-switcher {
    flex: 1 1 100%;
    max-width: none;
    padding: 5px 6px;
    gap: 4px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
  }
  .world-trucks-switcher-btn {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .world-trucks-switcher-body {
    padding: 3px 4px;
    gap: 6px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .world-trucks-switcher-icon {
    width: 30px;
    height: 30px;
    font-size: 0.82rem;
  }
  .world-trucks-switcher-label {
    font-size: 0.66rem;
    line-height: 1.25;
  }
  .world-trucks-switcher-count {
    font-size: 0.62rem;
    padding: 1px 6px;
  }
}

/* ── Checkout page (modern) ── */
.checkout-page {
  width: 100%;
  min-width: 0;
  padding-top: 8px;
  scrollbar-gutter: stable;
}
.checkout-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%, #f0fdf4 100%);
  border: 1px solid rgba(22, 163, 74, 0.15);
  overflow: hidden;
  position: relative;
}
.checkout-hero::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.06);
  inset-inline-end: -40px;
  top: -40px;
}
.checkout-hero-content { position: relative; z-index: 1; }
.checkout-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.checkout-hero-title {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 900;
  color: var(--brand-dark);
}
.checkout-hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.text-rotator-wrap { transition: opacity 0.45s ease; }
.text-rotator-wrap.is-fading { opacity: 0.35; }
.checkout-map-badge.text-rotator-wrap.is-fading { opacity: 0.65; }
@media (prefers-reduced-motion: reduce) {
  .text-rotator-wrap { transition: none; }
}
.checkout-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.checkout-hero-meta i { color: var(--brand); margin-inline-end: 4px; }
.checkout-progress {
  padding: 18px 22px 16px;
}
.checkout-progress-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  position: relative;
}
.checkout-progress-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: var(--muted);
  position: relative;
}
.checkout-progress-index {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e8f0;
  color: #475569;
  font-weight: 900;
  font-size: 0.92rem;
  border: 2px solid transparent;
}
.checkout-progress-item.is-active {
  color: var(--brand-dark);
}
.checkout-progress-item.is-active .checkout-progress-index {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 8px 18px rgba(22, 163, 74, 0.22);
}
.checkout-progress-item.is-done .checkout-progress-index {
  background: #166534;
  color: #fff;
}
.checkout-progress-item.is-locked .checkout-progress-index {
  background: #f1f5f9;
  color: #94a3b8;
}
.checkout-progress-label {
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}
.checkout-progress-note {
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}
.checkout-step-card.is-locked {
  opacity: 0.72;
  background: #f8fafc;
}
.checkout-step-card.is-complete {
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}
.checkout-step-card.is-current {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  box-shadow: 0 10px 28px rgba(22, 163, 74, .08);
}
.checkout-direct-panel { margin-top: 8px; }
.checkout-direct-panel p { margin: 0 0 14px; color: #475569; }
.checkout-direct-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.checkout-payment-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.checkout-gateway-picker {
  margin-top: 16px;
}
.checkout-gateway-picker .wallet-gateway-logo img {
  width: 132px;
}
.checkout-side-cost-amount {
  margin-inline-start: auto;
  font-size: 0.88rem;
  white-space: nowrap;
}
.checkout-stage-paid-note {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.86rem;
  line-height: 1.55;
}
.checkout-hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.25);
  position: relative;
  z-index: 1;
}
.checkout-empty {
  text-align: center;
  padding: 48px 28px;
}
.checkout-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--brand-muted);
  color: var(--brand);
  font-size: 1.6rem;
}
.checkout-empty h2 { margin: 0 0 8px; }
.checkout-empty p { margin: 0 0 20px; color: var(--muted); }
.checkout-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}
.checkout-main { display: flex; flex-direction: column; gap: 18px; width: 100%; min-width: 0; }
.checkout-step-card { padding: 24px 26px; }
.checkout-step-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.checkout-step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-weight: 900;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.checkout-step-head h2 {
  margin: 0 0 4px;
  font-size: 1.08rem;
  font-weight: 900;
}
.checkout-step-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.checkout-fields-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: 16px;
}
.checkout-input-wrap { position: relative; }
.checkout-input-wrap i {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.checkout-input-wrap .k-input { padding-inline-start: 42px; min-height: 46px; }
.checkout-map-shell {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4);
  background: #fff;
}
.checkout-map-toolbar {
  position: relative;
  z-index: 2;
  padding: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.checkout-map-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.checkout-map-search {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex: 1;
  min-width: min(100%, 240px);
}
.checkout-map-gps-btn {
  flex-shrink: 0;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.checkout-map-gps-btn.is-loading i {
  animation: kako-spin 0.8s linear infinite;
}
@keyframes kako-spin {
  to { transform: rotate(360deg); }
}
.profile-delivery-fields { margin-bottom: 14px; }
.profile-delivery-map {
  height: 320px;
  min-height: 320px;
}
.checkout-map-search .k-input {
  flex: 1;
  min-height: 46px;
  background: #fff;
  box-shadow: var(--shadow);
}
.checkout-map-search .k-btn {
  flex-shrink: 0;
  min-width: 46px;
  min-height: 46px;
  padding-inline: 16px;
}
.checkout-map-results {
  margin-top: 8px;
  box-shadow: var(--shadow);
}
.checkout-map-body {
  position: relative;
}
.checkout-map-badge {
  position: absolute;
  bottom: 14px;
  inset-inline-start: 14px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-dark);
  box-shadow: var(--shadow);
  max-width: calc(100% - 28px);
}
.checkout-map {
  height: 400px;
  min-height: 400px;
}
.checkout-map .leaflet-top.leaflet-left,
.checkout-map .leaflet-top.leaflet-right {
  top: 12px;
}
.checkout-map .leaflet-left {
  inset-inline-start: 12px;
}
.checkout-map .leaflet-right {
  inset-inline-end: 12px;
}
.checkout-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.checkout-option-grid-compact { grid-template-columns: 1fr; }
.checkout-option-grid-shipping { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.checkout-service-history {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 16px;
}
.checkout-service-history h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-service-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.checkout-service-history li {
  display: grid;
  gap: 2px;
}
.checkout-service-history small,
.checkout-service-history em {
  color: #64748b;
  font-style: normal;
  font-size: 0.85rem;
}
.checkout-service-history em { font-weight: 700; color: #15803d; }
.checkout-option-card { cursor: pointer; }
.checkout-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkout-option-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 100%;
}
.checkout-option-card input:checked + .checkout-option-body {
  border-color: var(--brand);
  background: linear-gradient(180deg, #f0fdf4, #fff);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
}
.checkout-option-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.checkout-option-icon.is-alt {
  background: #eff6ff;
  color: #2563eb;
}
.checkout-option-text { flex: 1; min-width: 0; }
.checkout-option-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 3px;
}
.checkout-option-text small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.checkout-option-check {
  color: var(--brand);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
}
.checkout-option-card input:checked + .checkout-option-body .checkout-option-check {
  opacity: 1;
  transform: scale(1);
}
.checkout-quote-panel { margin-top: 16px; }
.checkout-quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.checkout-quote-stat {
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-align: center;
}
.checkout-quote-stat span {
  display: block;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}
.checkout-quote-stat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}
.checkout-quote-stat.is-accent {
  background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
  border-color: rgba(22, 163, 74, 0.25);
}
.checkout-quote-stat.is-accent span { color: var(--brand-dark); }
.checkout-quote-formula {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}
.checkout-vehicle-classes {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border);
}
.checkout-vehicle-classes-title {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 800;
}
.checkout-vehicle-classes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.checkout-vehicle-classes-list li {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--border);
}
.checkout-vehicle-classes-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.checkout-vehicle-classes-list span,
.checkout-vehicle-classes-list em {
  color: var(--muted);
  font-style: normal;
}
.checkout-side-costs {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.checkout-side-costs-weight {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-dark);
}
.checkout-side-costs-weight i {
  color: var(--brand);
}
.checkout-side-costs-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-dark);
}
.checkout-side-costs-hint {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.checkout-side-costs-list {
  display: grid;
  gap: 10px;
}
.checkout-side-cost-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  background: #fff;
}
.checkout-side-cost-item:has(input:checked) {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 16%, transparent);
}
.checkout-side-cost-item input {
  margin-top: 3px;
  accent-color: var(--brand);
}
.checkout-side-cost-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.checkout-side-cost-text strong {
  font-size: 0.92rem;
}
.checkout-side-cost-text small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.checkout-required-cost { color: #b45309 !important; font-weight: 700; }
.checkout-side-cost-item.is-required {
  cursor: default;
  user-select: none;
}
.checkout-side-cost-item.is-required > input[type="checkbox"] {
  pointer-events: none;
  cursor: default;
}
.checkout-quote-empty {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.checkout-quote-empty i { margin-top: 2px; }
.checkout-quote-empty p { margin: 0; font-size: 0.88rem; line-height: 1.55; }
.checkout-gateways { margin-top: 16px; }
.checkout-gateways-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
}
.checkout-gateway-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-gateway-pill { cursor: pointer; }
.checkout-gateway-pill input { position: absolute; opacity: 0; }
.checkout-gateway-pill span {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  transition: var(--ease);
}
.checkout-gateway-pill input:checked + span {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.checkout-summary-card {
  width: 360px;
  min-width: 0;
  padding: 24px;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  border: 1px solid rgba(22, 163, 74, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}
.checkout-summary-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.checkout-summary-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-summary-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}
.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  max-height: 280px;
  overflow-y: auto;
  padding-inline-end: 4px;
}
.checkout-item-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface-2);
}
.checkout-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
}
.checkout-item-info strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.35;
  margin-bottom: 2px;
}
.checkout-item-info span { font-size: 0.78rem; color: var(--muted); }
.checkout-item-price {
  font-size: 0.88rem;
  color: var(--brand-dark);
  white-space: nowrap;
}
.checkout-summary-rows {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-bottom: 16px;
}
.checkout-summary-row,
.checkout-item-row,
.order-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
}
.checkout-summary-total {
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-weight: 800;
  font-size: 1rem;
}
.checkout-summary-total strong { font-size: 1.25rem; color: var(--brand-dark); }
.checkout-submit {
  width: 100%;
  justify-content: center;
  min-height: 50px;
  font-size: 1rem;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(22, 163, 74, 0.22);
}
.checkout-submit:disabled,
.checkout-submit[disabled] {
  background: #cbd5e1 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  transform: none !important;
}
.checkout-back-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.checkout-back-cart:hover { color: var(--brand-dark); }

.order-badge { display: inline-block; margin-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: var(--brand-muted); color: var(--brand-dark); font-size: 0.75rem; }
.order-shipment-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.checkout-proposal-panel { margin-top: 4px; }
.checkout-proposal-info i { color: #2563eb; }
.order-proposals-head { margin-bottom: 14px; }
.order-proposals-sub { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.order-proposals-list { display: flex; flex-direction: column; gap: 10px; }
.order-proposal-card {
  display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2);
}
.order-proposal-card.is-accepted { border-color: var(--brand); background: var(--brand-muted); }
.order-proposal-main { flex: 1; min-width: 0; }
.order-proposal-main small { display: block; color: var(--muted); margin-top: 4px; }
.order-proposal-main p { margin: 8px 0 0; font-size: 0.88rem; color: var(--muted); }
.order-proposal-meta { text-align: end; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.order-proposal-price { font-weight: 900; color: var(--brand-dark); font-size: 1.05rem; }
.order-proposal-status { font-size: 0.78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--border); }
.order-shipment-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-history-card { margin-top: 20px; }
.wallet-history-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.wallet-history-row p { margin: 4px 0 0; color: var(--text-muted); font-size: 0.85rem; }
.wallet-tx-in { color: var(--brand-dark); font-weight: 800; }
.wallet-tx-out { color: #dc2626; font-weight: 800; }
.dash-map-wrap { position: relative; }
.dash-map.is-wheel-active { cursor: grab; }
.dash-map.is-wheel-active:active { cursor: grabbing; }
.dash-map .leaflet-control-zoom a {
  width: 34px;
  height: 34px;
  line-height: 34px;
  font-size: 18px;
}
.dash-map .leaflet-control-zoom { border: none; box-shadow: none; }
.dash-map-popup-wrap.leaflet-popup {
  transition: opacity 0.32s ease, transform 0.32s ease;
}
.buyer-map-switcher {
  position: absolute; top: 50%; inset-inline-start: 12px; transform: translateY(-50%);
  z-index: 500; width: 102px; padding: 5px;
  display: flex; flex-direction: column; gap: 3px; border-radius: 12px;
  background: rgba(255,255,255,0.94); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.buyer-map-switcher-btn { height: 28px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); cursor: pointer; }
.buyer-map-switcher-body { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; text-align: center; }
.buyer-map-switcher-icon { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.buyer-map-switcher-label { font-size: 0.58rem; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.buyer-map-switcher-count { font-size: 0.62rem; color: var(--brand-dark); }
.dash-map-product-marker-wrap.is-focused .dash-map-product-marker { transform: scale(1.15); box-shadow: 0 0 0 3px rgba(34,197,94,0.45); }

/* ── Dashboard product filters ── */
.dash-prod-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.dash-prod-filters-row {
  display: grid;
  grid-template-columns: 1fr minmax(150px, 190px);
  gap: 10px;
}
.dash-prod-search-wrap { position: relative; }
.dash-prod-search { width: 100%; padding-inline-start: 38px; }
.dash-prod-search-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}
.dash-prod-sort { width: 100%; }
.dash-prod-filter-group { display: flex; flex-direction: column; gap: 8px; }
.dash-prod-filter-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.dash-prod-filter-label i { color: var(--brand); font-size: 0.72rem; }
.dash-prod-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-prod-chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.dash-prod-chip:hover {
  border-color: rgba(22, 163, 74, 0.35);
  background: var(--brand-muted);
}
.dash-prod-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.dash-prod-filter-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-prod-count { margin: 0; font-size: 0.82rem; color: var(--text-muted); font-weight: 700; }
.dash-prod-clear {
  border: none;
  background: transparent;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.dash-prod-clear:hover { text-decoration: underline; }
.dash-prod-grid-wrap { position: relative; }
.dash-prod-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
}
.dash-prod-empty i { font-size: 2rem; color: var(--brand); margin-bottom: 10px; }
.dash-prod-empty h4 { margin: 0 0 6px; color: var(--text); font-size: 1rem; }
.dash-prod-empty p { margin: 0; font-size: 0.88rem; }
@media (max-width: 640px) {
  .dash-prod-filters-row { grid-template-columns: 1fr; }
}
.track-truck-icon-wrap { background: none; border: none; }
.track-truck-icon {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.35);
  border: 2px solid #fff;
  font-size: 0.95rem;
}
.track-basket-icon-wrap { background: none; border: none; }
.track-basket-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.28);
  background: #fff7ed;
  display: flex;
  align-items: center;
  justify-content: center;
}
.track-basket-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.track-basket-icon i {
  position: absolute;
  inset-inline-end: 2px;
  bottom: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ea580c;
  color: #fff;
  font-size: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.45);
}
.shipment-track-distant {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.shipment-track-distant:last-child { margin-bottom: 0; }
.shipment-track-distant-media {
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 10;
}
.shipment-track-distant-media video,
.shipment-track-distant-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shipment-track-distant-label {
  font-size: 0.85rem;
  color: var(--text, #0f172a);
}
.track-cabin-video {
  width: 100%;
  max-height: 280px;
  border-radius: 14px;
  background: #0f172a;
  display: block;
}
.track-video-placeholder { color: var(--muted); margin: 0; }

/* ── Shipment tracking (buyer dashboard) ── */
.shipment-track-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.shipment-track-hero {
  padding: 20px 22px;
  border-inline-start: 4px solid var(--brand);
}
.shipment-track-hero-main { min-width: 0; }
.shipment-track-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 900;
  line-height: 1.4;
}
.shipment-track-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.shipment-track-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #dbeafe;
  color: #1d4ed8;
}
.shipment-track-badge--in_transit,
.shipment-track-badge--assigned {
  background: #fef3c7;
  color: #b45309;
}
.shipment-track-badge--delivered {
  background: #dcfce7;
  color: #15803d;
}
.shipment-track-badge--pending,
.shipment-track-badge--awaiting_proposal,
.shipment-track-badge--awaiting_expert {
  background: var(--surface-2);
  color: var(--muted);
}
.shipment-track-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}
.shipment-track-code code {
  font-size: 0.82rem;
  color: var(--brand-dark);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 8px;
}
.shipment-track-route-summary {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}
.shipment-track-route-summary > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.shipment-track-route-summary i { color: var(--brand); font-size: 0.8rem; }
.shipment-track-route-arrow {
  color: var(--brand) !important;
  font-size: 0.72rem !important;
  opacity: 0.8;
}
.shipment-track-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) min(340px, 100%);
  gap: 18px;
  align-items: start;
}
.shipment-track-map-card,
.shipment-track-panel {
  padding: 20px 22px;
  overflow: hidden;
}
.shipment-track-map-card .dash-section-head { margin-bottom: 14px; }
.shipment-track-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}
.shipment-track-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.shipment-track-legend .is-origin { color: #2563eb; font-size: 0.55rem; }
.shipment-track-legend .is-dest { color: #dc2626; font-size: 0.55rem; }
.shipment-track-map {
  height: 420px;
  min-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.shipment-track-map .leaflet-control-zoom a {
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.shipment-track-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.shipment-track-points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.shipment-track-point {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.shipment-track-point-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.shipment-track-point-icon.is-origin {
  background: #eff6ff;
  color: #2563eb;
}
.shipment-track-point-icon.is-dest {
  background: #fef2f2;
  color: #dc2626;
}
.shipment-track-point-icon.is-device {
  background: var(--brand-muted);
  color: var(--brand-dark);
}
.shipment-track-point strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 4px;
}
.shipment-track-point p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
  word-break: break-word;
}
.shipment-track-video-empty {
  padding: 28px 18px;
  text-align: center;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px dashed var(--border);
}
.shipment-track-video-empty i {
  font-size: 1.6rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: block;
}
.shipment-track-video-empty p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .shipment-track-layout { grid-template-columns: 1fr; }
  .shipment-track-map { height: 340px; }
  .shipment-track-legend { width: 100%; }
}
@media (max-width: 520px) {
  .shipment-track-route-summary { flex-direction: column; align-items: flex-start; }
  .shipment-track-route-arrow { display: none; }
}

.driver-quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }

/* Driver proposals list */
.driver-proposals-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.driver-proposals-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.driver-proposal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.driver-proposal-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
.driver-proposal-tab:hover {
  border-color: rgba(22, 163, 74, 0.35);
  color: var(--brand-dark);
}
.driver-proposal-tab.is-active {
  background: var(--brand-muted);
  border-color: var(--brand);
  color: var(--brand-dark);
  box-shadow: var(--shadow);
}
.driver-proposal-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
}
.driver-proposal-tab.is-active .driver-proposal-tab-count {
  background: rgba(22, 163, 74, 0.18);
  color: var(--brand-dark);
}
.driver-proposals-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.driver-proposals-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.driver-proposals-section-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.driver-proposals-section-head h3 i { color: var(--brand); }
.driver-proposals-section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
}
.driver-proposal-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.driver-proposal-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.driver-proposal-card:hover {
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.driver-proposal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.driver-proposal-card-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.driver-proposal-card-id h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.45;
}
.driver-proposal-card-head time {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.driver-proposal-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.driver-proposal-badge--pending {
  background: #fef3c7;
  color: #b45309;
}
.driver-proposal-badge--accepted {
  background: #dcfce7;
  color: #15803d;
}
.driver-proposal-badge--rejected {
  background: #fee2e2;
  color: #b91c1c;
}
.driver-proposal-route {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
.driver-proposal-route > i:first-child { color: var(--brand); font-size: 0.78rem; }
.driver-proposal-route-arrow {
  color: var(--muted);
  font-size: 0.72rem;
  opacity: 0.7;
}
.driver-proposal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.driver-proposal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.driver-proposal-meta i { color: var(--brand); font-size: 0.74rem; }
.driver-proposal-price strong {
  color: var(--brand-dark);
  font-size: 0.92rem;
}
.driver-proposal-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.driver-proposal-card-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 2px;
}
.driver-proposal-empty {
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.driver-proposal-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand);
  font-size: 1.4rem;
}
.driver-proposal-empty p {
  margin: 0;
  font-weight: 800;
}
.driver-proposal-empty-hint {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.55;
}
.driver-proposal-pagination { margin-top: 4px; }

@media (max-width: 640px) {
  .driver-proposals-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .driver-proposals-toolbar .k-btn { justify-content: center; }
  .driver-proposal-route { flex-direction: column; align-items: flex-start; }
  .driver-proposal-route-arrow { display: none; }
  .driver-proposal-card-foot .k-btn { width: 100%; justify-content: center; }
}

/* Driver work history */
.driver-history-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.driver-history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.driver-history-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.driver-history-card:hover {
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.driver-history-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.driver-history-card-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.driver-history-card-id h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
}
.driver-history-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.driver-history-badge--delivered,
.driver-history-badge--completed {
  background: #dcfce7;
  color: #15803d;
}
.driver-history-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.driver-history-code {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.driver-history-code code {
  font-size: 0.86rem;
  color: var(--brand-dark);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 8px;
}
.driver-history-route {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
.driver-history-route > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.driver-history-route i { color: var(--brand); font-size: 0.78rem; margin-top: 0.2rem; }
.driver-history-route-arrow {
  color: var(--muted);
  font-size: 0.72rem;
  opacity: 0.7;
}
.driver-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.driver-history-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.driver-history-meta i { color: var(--brand); font-size: 0.74rem; }
.driver-history-freight strong {
  color: var(--brand-dark);
  font-size: 0.92rem;
}
.driver-history-card-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.driver-history-empty {
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.driver-history-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand);
  font-size: 1.5rem;
}
.driver-history-empty p {
  margin: 0;
  font-weight: 800;
}
.driver-history-empty-hint {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.55;
}
.driver-history-pagination { margin-top: 4px; }

@media (max-width: 640px) {
  .driver-history-route { flex-direction: column; align-items: flex-start; }
  .driver-history-route-arrow { display: none; }
  .driver-history-card-foot .k-btn { width: 100%; justify-content: center; }
}

.driver-quick-card {
  padding: 18px 14px; text-align: center; font-weight: 800; font-size: 0.84rem;
  color: var(--brand-dark); display: flex; flex-direction: column; gap: 10px;
  align-items: center; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.driver-quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(22, 163, 74, 0.28); }
.driver-quick-card i {
  width: 42px; height: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-muted); font-size: 1.15rem; color: var(--brand);
}
.driver-bid-card { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--border); }
.driver-bid-form { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 220px; }
.driver-offer-card {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 260px);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.driver-offer-card:last-child { border-bottom: none; padding-bottom: 0; }
.driver-offer-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.driver-offer-head strong { font-size: 1rem; }
.driver-offer-range { font-size: 0.82rem; color: var(--brand-dark); font-weight: 700; }
.driver-offer-desc { margin: 0 0 10px; color: var(--text-muted); line-height: 1.6; font-size: 0.88rem; }
.driver-offer-meta { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.driver-offer-meta i { color: var(--brand); margin-inline-end: 4px; }
.driver-offer-cargo-img { width: 100%; max-width: 220px; height: 130px; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 10px; }
.driver-route-map { width: 100%; height: 160px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin-top: 4px; }
.driver-offer-action { display: flex; align-items: flex-start; }
.driver-offer-price-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.driver-offer-sent { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 12px; background: var(--brand-muted); border: 1px solid rgba(22,163,74,0.2); }
.driver-offer-sent.is-locked { background: var(--surface-2); border-color: var(--border); }
.driver-offer-sent-badge { color: var(--brand-dark); font-weight: 800; font-size: 0.84rem; }
.driver-offer-sent-price { margin: 0; font-size: 0.88rem; }
.driver-offer-sent-note { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.driver-offer-edit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fef3c7;
  color: #b45309;
  font-size: 0.78rem;
  font-weight: 800;
}
.driver-offer-notes {
  min-height: 72px;
  resize: vertical;
}
.driver-onboarding-form { display: flex; flex-direction: column; gap: 16px; }
.driver-onboarding-page { display: flex; flex-direction: column; gap: 16px; max-width: 920px; }
.driver-onboarding-hero {
  display: flex; gap: 16px; align-items: center; padding: 22px 24px;
  background: linear-gradient(135deg, rgba(22,163,74,0.08), rgba(255,255,255,0.95));
}
.driver-onboarding-hero-icon {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 1.4rem;
}
.driver-onboarding-hero h1 { margin: 0 0 6px; font-size: 1.25rem; }
.driver-onboarding-hero p { margin: 0; color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.driver-onboarding-step-badge {
  display: inline-block; margin-bottom: 8px; padding: 4px 10px; border-radius: 999px;
  background: rgba(220,38,38,0.1); color: #b91c1c; font-size: 0.72rem; font-weight: 800;
}
.driver-onboarding-section { padding: 22px 24px; }
.driver-onboarding-section-head {
  display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.driver-onboarding-section-num {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 0.9rem;
}
.driver-onboarding-section-head h3 { margin: 0 0 4px; font-size: 1rem; }
.driver-onboarding-section-head p { margin: 0; color: var(--text-muted); font-size: 0.82rem; }
.driver-onboarding-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.driver-onboarding-full { grid-column: 1 / -1; }
.driver-onboarding-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.driver-onboarding-submit { display: flex; justify-content: flex-end; }
.driver-onboarding-errors { margin: 0; padding-inline-start: 18px; }
.media-upload-field { display: flex; flex-direction: column; gap: 8px; }
.media-upload-hint { margin: 0; font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.media-upload-zone { margin-bottom: 0; }
.media-upload-preview-wrap { padding: 14px; }
.media-upload-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 10px; }
.media-upload-thumb {
  position: relative; margin: 0; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 4/3; background: var(--surface-2);
}
.media-upload-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-upload-thumb-name, .media-upload-thumb-badge {
  position: absolute; inset-inline: 0; bottom: 0; padding: 4px 6px;
  background: rgba(15,23,42,0.72); color: #fff; font-size: 0.62rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-upload-thumb-badge { text-align: center; background: rgba(22,163,74,0.85); }
.media-upload-gallery { padding: 16px; margin-bottom: 0; }
.media-upload-gallery.is-empty { background: var(--brand-muted); border-style: dashed; }
.media-upload-gallery.is-empty .media-upload-gallery-grid { max-width: 180px; margin: 0 auto; }
.media-upload-gallery.has-items { background: var(--surface); border-style: solid; border-color: var(--border); }
.media-upload-gallery-head { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.media-upload-count {
  font-size: 0.78rem; font-weight: 800; color: var(--brand-dark);
  padding: 4px 10px; border-radius: 999px; background: var(--brand-muted);
}
.media-upload-gallery-grid .media-upload-thumb { aspect-ratio: 1; min-height: 110px; }
.media-upload-gallery-empty { padding: 24px 16px; }
.media-upload-add-tile {
  aspect-ratio: 1;
  min-height: 110px;
  border: 2px dashed rgba(22, 163, 74, 0.45);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(220,252,231,0.5), rgba(255,255,255,0.9));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.media-upload-add-tile i {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 1rem;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.28);
}
.media-upload-add-tile:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: #ecfdf5;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.12);
}
.media-upload-remove {
  position: absolute; top: 6px; inset-inline-end: 6px;
  width: 26px; height: 26px; border: none; border-radius: 50%;
  background: rgba(15,23,42,0.72); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; transition: background 0.15s ease;
}
.media-upload-remove:hover { background: #dc2626; }
.media-upload-thumb-actions {
  position: absolute; inset-inline: 0; bottom: 0;
  display: flex; justify-content: center; gap: 6px;
  padding: 6px;
  background: linear-gradient(transparent, rgba(15,23,42,0.78));
}
.media-upload-action {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--brand-dark);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.78rem; transition: transform 0.15s ease, background 0.15s ease;
}
.media-upload-action:hover { transform: scale(1.06); background: #fff; }
.media-upload-action.is-danger { color: #dc2626; }
.driver-photo-modal .story-editor-stage--image { min-height: 280px; }
.media-upload-gallery-grid .media-upload-preview-grid,
.media-upload-gallery .media-upload-preview-grid { margin-bottom: 0; }
.media-upload-gallery .media-upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}
.driver-onboarding-status { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.driver-onboarding-status i { font-size: 1.6rem; color: var(--brand); margin-top: 2px; }
.driver-onboarding-status.is-pending i { color: #d97706; }
.driver-onboarding-status.is-rejected i { color: #dc2626; }
.driver-onboarding-status.is-approved i { color: var(--brand); }
.driver-onboarding-reject-reason {
  margin: 10px 0 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.18);
}
.driver-onboarding-reject-reason span {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #b91c1c;
  margin-bottom: 6px;
}
.driver-onboarding-reject-reason p {
  margin: 0;
  color: #7f1d1d;
  font-size: 0.92rem;
  line-height: 1.65;
  white-space: pre-wrap;
}
.driver-panel-lock { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; padding: 18px; }
.driver-panel-lock i { font-size: 1.6rem; color: var(--brand); }
.driver-mandatory-modal {
  position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px;
}
.driver-mandatory-modal.is-open { display: flex; }
.driver-mandatory-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(4px); }
.driver-mandatory-panel {
  position: relative; width: min(420px, 100%); padding: 28px 24px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.driver-mandatory-icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-muted); color: var(--brand-dark); font-size: 1.6rem;
}
.driver-mandatory-panel h2 { margin: 0 0 10px; font-size: 1.15rem; }
.driver-mandatory-panel p { margin: 0 0 18px; color: var(--text-muted); line-height: 1.7; font-size: 0.9rem; }
body.driver-modal-open { overflow: hidden; }
.k-required { color: #dc2626; margin-inline-start: 2px; }
@media (max-width: 768px) {
  .driver-offer-card { grid-template-columns: 1fr; }
  .driver-onboarding-grid, .driver-onboarding-docs { grid-template-columns: 1fr; }
  .driver-onboarding-hero { flex-direction: column; align-items: flex-start; }
}

/* Searchable select (combobox) */
.k-searchable-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.k-searchable-select.is-open {
  z-index: 60;
}
/* Elevate parent cards so the open panel is not covered by the next section */
.k-card:has(.k-searchable-select.is-open),
.driver-onboarding-section:has(.k-searchable-select.is-open) {
  position: relative;
  z-index: 30;
}
.k-searchable-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.k-searchable-select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius, 10px);
  background: var(--surface, #fff);
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  cursor: pointer;
  text-align: start;
}
.k-searchable-select-trigger.is-placeholder .k-searchable-select-trigger-text {
  color: var(--text-muted);
}
.k-searchable-select-trigger:hover,
.k-searchable-select.is-open .k-searchable-select-trigger {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}
.k-searchable-select-trigger-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.k-searchable-select-trigger-icon {
  color: var(--muted);
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.k-searchable-select.is-open .k-searchable-select-trigger-icon {
  transform: rotate(180deg);
}
.k-searchable-select-panel {
  position: absolute;
  z-index: 70;
  top: calc(100% + 6px);
  inset-inline: 0;
  background: var(--surface, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow, 0 12px 32px rgba(15, 23, 42, 0.12));
  overflow: hidden;
}
.k-searchable-select-panel[hidden] { display: none !important; }
.k-searchable-select-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
  background: var(--surface-2);
}
.k-searchable-select-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 240px;
  overflow-y: auto;
}
.k-searchable-select-option {
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.45;
}
.k-searchable-select-option:hover,
.k-searchable-select-option.is-selected {
  background: var(--brand-muted);
  color: var(--brand-dark);
}
.k-searchable-select-empty {
  padding: 12px 10px;
  color: var(--text-muted);
  font-size: 0.84rem;
}
@media (max-width: 960px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-card { position: static; width: 100%; }
  .checkout-fields-grid { grid-template-columns: 1fr; }
  .checkout-option-grid { grid-template-columns: 1fr; }
  .checkout-quote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkout-hero { padding: 22px 20px; }
  .checkout-hero-icon { width: 58px; height: 58px; font-size: 1.4rem; }
  .checkout-map { height: 280px; min-height: 280px; }
  .checkout-facility-map { min-height: 260px; height: 260px; }
  .checkout-map-toolbar-row { flex-direction: column; }
  .checkout-map-search { min-width: 0; width: 100%; }
  .checkout-map-gps-btn { width: 100%; justify-content: center; }
  .checkout-direct-choice-actions { flex-direction: column; }
  .dash-grid-2 { grid-template-columns: 1fr; }
  .driver-quick-grid, .dash-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-banner { padding: 20px 22px; }
  .dash-banner-icon { width: 50px; height: 50px; font-size: 1.2rem; }
}
@media (max-width: 520px) {
  .checkout-map { height: 220px; min-height: 220px; }
  .checkout-facility-map { min-height: 200px; height: 200px; }
  .checkout-step-card { padding: 16px; }
  .checkout-quote-grid { grid-template-columns: 1fr; }
  .driver-quick-grid,
  .dash-quick-grid,
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-stat {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 12px;
  }
  .dash-stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
  .dash-stat-value { font-size: 1.05rem; }
  .dash-stat-label { font-size: 0.72rem; }
  .dash-quick-link { padding: 16px 10px; font-size: 0.8rem; }
}

/* ── Finance / withdrawals ── */
.finance-wallet-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; margin-bottom: 4px;
  background: linear-gradient(135deg, #ecfdf5 0%, #fff 55%, #f0fdf4 100%);
  border: 1px solid rgba(22, 163, 74, 0.18); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.finance-wallet-banner__label { display: block; font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.finance-wallet-banner__amount { font-size: clamp(1.2rem, 3vw, 1.65rem); font-weight: 900; color: var(--brand-dark); line-height: 1.2; }
.finance-wallet-banner__icon {
  width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand); color: #fff; font-size: 1.1rem;
}
.finance-panel { padding: 20px 22px; }
.finance-panel-title {
  margin: 0 0 6px; font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; gap: 8px;
}
.finance-panel-title i { color: var(--brand); }
.finance-panel-hint { margin: 0 0 18px; color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.finance-withdraw-form { padding: 20px 22px; max-width: 640px; }
.finance-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.finance-form-actions { margin-top: 6px; }
.finance-page-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.finance-page-links--top { margin-bottom: 4px; }
.finance-withdraw-list { display: grid; gap: 12px; }
.finance-withdraw-item {
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.finance-withdraw-item__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.finance-withdraw-item__head strong { font-size: 1.05rem; color: var(--brand-dark); }
.finance-withdraw-item__meta {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
}
.finance-withdraw-item__meta li {
  display: flex; justify-content: space-between; gap: 12px; font-size: 0.84rem;
}
.finance-withdraw-item__meta span { color: var(--muted); }
.finance-withdraw-item__meta strong { text-align: end; }
.finance-badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; white-space: nowrap;
}
.finance-badge--wait { background: #fef3c7; color: #92400e; }
.finance-badge--done { background: #dcfce7; color: #166534; }
.finance-badge--fail { background: #fee2e2; color: #991b1b; }
.finance-amount-in { color: var(--brand-dark); font-weight: 800; }
.finance-bank-list { display: grid; gap: 12px; }
.finance-bank-card {
  padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff;
}
.finance-bank-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.finance-bank-card__meta {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 8px;
}
.finance-bank-card__meta li {
  display: flex; justify-content: space-between; gap: 12px; font-size: 0.84rem;
}
.finance-bank-card__meta span { color: var(--muted); }
.finance-bank-card__meta strong { text-align: end; }
.finance-pagination { margin-top: 16px; }
.finance-card-list { display: grid; gap: 14px; margin-bottom: 18px; }
.finance-pay-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
}
.finance-pay-card.is-default { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); background: #f8fff9; }
.finance-pay-card__visual {
  position: relative;
  min-height: 132px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #14532d 0%, #16a34a 55%, #86efac 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}
.finance-pay-card__chip {
  width: 34px; height: 24px; border-radius: 5px;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  margin-bottom: auto;
}
.finance-pay-card__number {
  font-size: 1rem; letter-spacing: 0.08em; font-weight: 800; font-variant-numeric: tabular-nums;
}
.finance-pay-card__footer {
  display: flex; justify-content: space-between; gap: 8px;
  font-size: 0.72rem; opacity: 0.92; font-weight: 600;
}
.finance-pay-card__body { min-width: 0; }
.finance-pay-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.finance-pay-card__actions {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
}
.finance-pay-card__actions form { margin: 0; }
.finance-pay-card__delete { color: #b91c1c !important; }
.finance-card-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.finance-card-form--add {
  margin-top: 18px;
  padding: 16px;
  border: 1px dashed color-mix(in srgb, var(--brand) 40%, var(--border));
  border-radius: var(--radius-sm);
  background: #f8fafc;
}
.finance-card-form__title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  display: flex; align-items: center; gap: 8px;
  color: var(--brand-dark);
}
.finance-check {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 4px 0 12px;
  font-size: 0.86rem;
  color: var(--text, #0f172a);
  cursor: pointer;
}
.finance-check input { width: 16px; height: 16px; accent-color: var(--brand); }
@media (max-width: 640px) {
  .finance-form-grid { grid-template-columns: 1fr; }
  .finance-withdraw-item__meta li,
  .finance-bank-card__meta li { flex-direction: column; align-items: flex-start; }
  .finance-pay-card { grid-template-columns: 1fr; }
}

/* FAQ page */
.faq-page { padding-top: 8px; max-width: 860px; }
.faq-hero { text-align: center; margin-bottom: 28px; }
.faq-hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px;
  border-radius: 999px; background: var(--brand-muted, #dcfce7); color: var(--brand, #16a34a);
  font-size: 0.82rem; font-weight: 700; margin-bottom: 14px;
}
.faq-hero-title { margin: 0 0 10px; font-size: clamp(1.6rem, 4vw, 2.1rem); color: #0f172a; }
.faq-hero-sub { margin: 0 auto 14px; max-width: 560px; color: #64748b; line-height: 1.7; font-size: 0.95rem; }
.faq-hero-meta {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 18px;
}
.faq-lang-pill, .faq-count-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #e2e8f0; font-size: 0.82rem; font-weight: 700; color: #475569;
}
.faq-search-wrap { position: relative; max-width: 480px; margin: 0 auto; }
.faq-search-wrap i { position: absolute; top: 50%; transform: translateY(-50%); right: 14px; color: #94a3b8; }
[dir=ltr] .faq-search-wrap i { right: auto; left: 14px; }
.faq-search-input {
  width: 100%; padding: 14px 44px 14px 16px; border: 1px solid #e2e8f0; border-radius: 14px;
  font-family: inherit; font-size: 0.95rem; background: #fff; box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}
[dir=ltr] .faq-search-input { padding: 14px 16px 14px 44px; }
.faq-search-input:focus { outline: none; border-color: var(--brand, #16a34a); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { padding: 0; overflow: hidden; transition: box-shadow 0.2s, border-color 0.2s; }
.faq-item.is-open { border-color: rgba(22, 163, 74, 0.35); box-shadow: 0 8px 24px rgba(22, 163, 74, 0.08); }
.faq-item-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; border: none; background: transparent; cursor: pointer; text-align: start; font-family: inherit;
}
.faq-item-q { font-size: 0.98rem; font-weight: 700; color: #0f172a; line-height: 1.6; }
.faq-item-icon {
  width: 32px; height: 32px; border-radius: 10px; background: #f1f5f9; color: #64748b;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s, color 0.2s;
}
.faq-item.is-open .faq-item-icon { background: var(--brand-muted, #dcfce7); color: var(--brand, #16a34a); }
.faq-item-panel { padding: 0 20px 18px; }
.faq-item-a { color: #475569; line-height: 1.85; font-size: 0.92rem; border-top: 1px solid #f1f5f9; padding-top: 14px; }
.faq-empty { text-align: center; padding: 48px 24px; color: #64748b; }
.faq-empty i { font-size: 2rem; margin-bottom: 12px; color: #cbd5e1; }
.faq-no-results { text-align: center; color: #64748b; margin-top: 16px; }
.faq-cta {
  position: relative;
  margin-top: 32px;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  border: 1px solid rgba(22, 163, 74, 0.18);
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 45%, #ffffff 100%);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.1);
}
.faq-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 50%, rgba(74, 222, 128, 0.22), transparent 42%),
    radial-gradient(circle at 88% 20%, rgba(22, 163, 74, 0.12), transparent 38%);
}
.faq-cta-bg::before,
.faq-cta-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(22, 163, 74, 0.08);
}
.faq-cta-bg::before {
  width: 140px;
  height: 140px;
  top: -40px;
  inset-inline-end: 8%;
}
.faq-cta-bg::after {
  width: 90px;
  height: 90px;
  bottom: -30px;
  inset-inline-start: 35%;
}
.faq-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px 32px;
}
.faq-cta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-cta-icon-stack {
  position: relative;
  width: 88px;
  height: 88px;
}
.faq-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.18);
}
.faq-cta-icon--main {
  width: 72px;
  height: 72px;
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
  color: #fff;
  font-size: 1.6rem;
  position: absolute;
  inset-inline-start: 0;
  top: 8px;
}
.faq-cta-icon--sub {
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--brand);
  font-size: 0.95rem;
  position: absolute;
  inset-inline-end: -4px;
  top: 0;
  border: 2px solid rgba(22, 163, 74, 0.15);
}
.faq-cta-body { min-width: 0; }
.faq-cta-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(22, 163, 74, 0.15);
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.faq-cta-body h2 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 900;
  color: #0f172a;
  line-height: 1.4;
}
.faq-cta-body p {
  margin: 0 0 18px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 520px;
}
.faq-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.faq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.faq-cta-btn:hover { transform: translateY(-1px); }
.faq-cta-btn--primary {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.28);
}
.faq-cta-btn--primary:hover {
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.34);
}
.faq-cta-btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-cta-btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
  border: 1px solid rgba(22, 163, 74, 0.22);
}
.faq-cta-btn--ghost:hover {
  background: #fff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}
@media (max-width: 720px) {
  .faq-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 22px;
  }
  .faq-cta-body p { margin-inline: auto; }
  .faq-cta-actions { justify-content: center; }
  .faq-cta-visual { margin-bottom: 4px; }
}
@media (max-width: 640px) {
  .faq-cta-actions { flex-direction: column; width: 100%; }
  .faq-cta-btn { width: 100%; justify-content: center; }
}

.guest-invoice-body {
  margin: 0;
  font-family: Vazirmatn, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 80% 50% at 100% -10%, rgba(22, 163, 74, 0.14), transparent 55%),
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(15, 23, 42, 0.08), transparent 50%),
    #eef2f0;
  min-height: 100vh;
  color: #0f172a;
}
.guest-invoice-page {
  width: min(1080px, 100%);
  margin: 0 auto;
  padding: 20px 16px 48px;
  box-sizing: border-box;
}
.guest-invoice-page *,
.guest-invoice-page *::before,
.guest-invoice-page *::after {
  box-sizing: border-box;
}
.guest-invoice-page--center {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guest-invoice-hero {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 18px;
  margin-bottom: 20px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, #0f172a 0%, #14532d 55%, #166534 100%);
  color: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}
.guest-invoice-back {
  grid-column: 1 / -1;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.guest-invoice-back:hover { color: #fff; }
.guest-invoice-hero-main {
  color: #fff;
  min-width: 0;
}
.guest-invoice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.22);
  color: #bbf7d0;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  margin-bottom: 10px;
}
.guest-invoice-hero h1 { margin: 0 0 8px; font-size: clamp(1.25rem, 3vw, 1.65rem); color: #fff; }
.guest-invoice-hero-main > p { margin: 0; color: #d1fae5; line-height: 1.55; }
.guest-invoice-qr-card {
  background: #fff;
  color: #0f172a;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
  align-self: start;
}
.guest-invoice-qr-card img { display: block; margin: 0 auto 10px; border-radius: 8px; }
.guest-invoice-qr-card p { margin: 0 0 8px; font-size: 0.82rem; color: #64748b; }
.guest-invoice-link {
  display: block;
  font-size: 0.72rem;
  color: #2563eb;
  word-break: break-all;
}
.guest-invoice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.guest-invoice-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}
.guest-invoice-card h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.guest-invoice-product {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.guest-invoice-product img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
}
.guest-invoice-product strong { display: block; margin-bottom: 4px; }
.guest-invoice-product span { display: block; font-size: 0.82rem; color: #64748b; }
.guest-invoice-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  font-size: 0.95rem;
}
.guest-invoice-meta {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: #64748b;
}
.guest-invoice-pay-note {
  margin: 0 0 14px;
  font-size: 0.84rem;
  color: #64748b;
}
.guest-invoice-field { margin-bottom: 12px; }
.guest-invoice-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: #475569;
}
.guest-invoice-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
}
.guest-invoice-error { margin: 6px 0 0; color: #dc2626; font-size: 0.78rem; }
.guest-invoice-gateways {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.guest-invoice-gateway {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
}
.guest-invoice-gateway input { accent-color: #16a34a; }
.guest-invoice-pay-methods {
  display: grid;
  gap: 8px;
}
.guest-invoice-pay-method {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
}
.guest-invoice-pay-method:has(input:checked) {
  border-color: #16a34a;
  background: #f0fdf4;
}
.guest-invoice-pay-method input { margin-top: 3px; accent-color: #16a34a; }
.guest-invoice-pay-method-body {
  display: grid;
  gap: 2px;
}
.guest-invoice-pay-method-body i { color: #16a34a; margin-inline-end: 4px; }
.guest-invoice-pay-method-body strong { display: inline; font-size: 0.92rem; }
.guest-invoice-pay-method-body small { display: block; color: #64748b; font-size: 0.78rem; }
.guest-invoice-map-shell {
  margin-top: 6px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.guest-invoice-map {
  height: 280px;
  width: 100%;
}
.guest-invoice-map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.guest-invoice-map-btn.is-primary {
  border: none;
  background: #16a34a;
  color: #fff;
}
.guest-invoice-map-btn.is-outline {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
}
.guest-invoice-map-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
.guest-invoice-map-shell .checkout-map-search {
  flex: 1;
  display: flex;
  gap: 6px;
}
.guest-invoice-map-shell .checkout-map-search .guest-invoice-input {
  margin: 0;
  flex: 1;
}
.guest-invoice-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  background: #16a34a;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.guest-invoice-card--success,
.guest-invoice-card--unavailable {
  max-width: 480px;
  text-align: center;
}
.guest-invoice-success-icon {
  font-size: 3rem;
  color: #16a34a;
  margin-bottom: 10px;
}
.guest-invoice-success-icon.is-muted { color: #94a3b8; }
@media (max-width: 900px) {
  .guest-invoice-hero { grid-template-columns: 1fr; }
  .guest-invoice-grid { grid-template-columns: 1fr; }
}

/* Guest invoice full checkout */
.guest-invoice-page--checkout {
  width: min(1120px, 100%);
}
.guest-invoice-saved-hint {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: #bbf7d0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.guest-invoice-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: start;
}
.guest-invoice-checkout-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #0f172a;
}
.guest-invoice-step-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
.guest-invoice-step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}
.guest-invoice-step-num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #14532d;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.guest-invoice-step-head h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: #0f172a;
}
.guest-invoice-step-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.84rem;
}
.guest-invoice-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.guest-invoice-summary-card {
  position: sticky;
  top: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
.guest-invoice-summary-head h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
}
.guest-invoice-summary-rows {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.guest-invoice-summary-rows .checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
  color: #334155;
}
.guest-invoice-summary-rows .checkout-summary-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 1.05rem;
  color: #0f172a;
}
.guest-invoice-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.guest-invoice-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 11px 16px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.guest-invoice-save:hover { background: #f8fafc; }
.guest-invoice-lock-note {
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: #64748b;
  line-height: 1.5;
}
.guest-invoice-page--checkout .checkout-option-grid {
  margin-bottom: 14px;
}
.guest-invoice-page--checkout .checkout-option-card {
  background: #fff;
  color: #0f172a;
}
.guest-invoice-page--checkout .checkout-option-text strong,
.guest-invoice-page--checkout .checkout-option-text small {
  color: inherit;
}
.guest-invoice-page--checkout .checkout-option-text small {
  color: #64748b;
}
.guest-invoice-page--checkout .vehicle-picker,
.guest-invoice-page--checkout .checkout-side-costs,
.guest-invoice-page--checkout .checkout-quote-panel,
.guest-invoice-page--checkout .checkout-proposal-panel {
  margin-top: 14px;
  color: #0f172a;
}
.guest-invoice-page--checkout .checkout-map-shell,
.guest-invoice-page--checkout .checkout-map-toolbar {
  background: #fff;
  color: #0f172a;
}
@media (max-width: 900px) {
  .guest-invoice-hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .guest-invoice-qr-card { justify-self: stretch; }
  .guest-invoice-checkout-layout { grid-template-columns: 1fr; }
  .guest-invoice-summary-card { position: static; }
  .guest-invoice-fields-grid { grid-template-columns: 1fr; }
}

/* ── Buyer manual invoices (dashboard) ── */
.buyer-invoices-page,
.buyer-invoice-show {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.buyer-invoice-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.buyer-invoice-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.buyer-invoice-card:hover {
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.buyer-invoice-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.buyer-invoice-card-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.buyer-invoice-num {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.02em;
}
.buyer-invoice-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.buyer-invoice-badge--pending {
  background: #fef3c7;
  color: #b45309;
}
.buyer-invoice-badge--partial {
  background: #dbeafe;
  color: #1d4ed8;
}
.buyer-invoice-badge--paid {
  background: #dcfce7;
  color: #15803d;
}
.buyer-invoice-badge--cancelled {
  background: #fee2e2;
  color: #dc2626;
}
.buyer-invoice-badge--default {
  background: var(--surface-2);
  color: var(--muted);
}
.buyer-invoice-date,
.buyer-invoice-hero-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.buyer-invoice-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.45;
  color: var(--text);
}
.buyer-invoice-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}
.buyer-invoice-meta i { color: var(--brand); font-size: 0.78rem; }
.buyer-invoice-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.buyer-invoice-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}
.buyer-invoice-amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.buyer-invoice-amount span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
}
.buyer-invoice-amount strong {
  font-size: 1.05rem;
  color: var(--brand-dark);
}
.buyer-invoice-amount.is-remaining strong { color: #b45309; }
.buyer-invoice-empty {
  padding: 40px 24px;
  text-align: center;
}
.buyer-invoice-empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.5rem;
}
.buyer-invoice-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.buyer-invoice-pagination { margin-top: 4px; }

.buyer-invoice-hero {
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-inline-start: 4px solid var(--brand);
}
.buyer-invoice-hero-main { min-width: 0; flex: 1; }
.buyer-invoice-hero-num {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.03em;
}
.buyer-invoice-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-weight: 900;
  line-height: 1.4;
}
.buyer-invoice-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.buyer-invoice-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.buyer-invoice-type-pill i { color: var(--brand); }
.buyer-invoice-alert { margin: 0; }
.buyer-invoice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(360px, 100%);
  gap: 20px;
  align-items: start;
}
.buyer-invoice-main,
.buyer-invoice-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.buyer-invoice-aside {
  position: sticky;
  top: calc(var(--header-h, 64px) + 16px);
}
.buyer-invoice-section,
.buyer-invoice-summary,
.buyer-invoice-pay {
  padding: 20px 22px;
}
.buyer-invoice-section-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
}
.buyer-invoice-section-title i {
  color: var(--brand);
  font-size: 0.92rem;
}
.buyer-invoice-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}
.buyer-invoice-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.buyer-invoice-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.buyer-invoice-line:last-child { border-bottom: none; padding-bottom: 0; }
.buyer-invoice-line:first-child { padding-top: 0; }
.buyer-invoice-line-info { min-width: 0; }
.buyer-invoice-line-info strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
  line-height: 1.4;
}
.buyer-invoice-line-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.buyer-invoice-line-price {
  font-size: 0.92rem;
  color: var(--brand-dark);
  white-space: nowrap;
  text-align: end;
}
.buyer-invoice-installments {
  display: flex;
  flex-direction: column;
}
.buyer-invoice-installment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.buyer-invoice-installment:last-child { border-bottom: none; padding-bottom: 0; }
.buyer-invoice-installment-info strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 3px;
}
.buyer-invoice-installment-info span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}
.buyer-invoice-installment-meta {
  text-align: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.buyer-invoice-installment-meta strong {
  font-size: 0.92rem;
  color: var(--brand-dark);
  white-space: nowrap;
}
.buyer-invoice-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.buyer-invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}
.buyer-invoice-total-row strong {
  font-size: 0.95rem;
  white-space: nowrap;
}
.buyer-invoice-total-row:last-child {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 2px solid var(--border);
  font-weight: 800;
}
.buyer-invoice-total-row:last-child strong {
  font-size: 1.15rem;
  color: var(--brand-dark);
}
.buyer-invoice-total-row.is-paid strong { color: #15803d; }
.buyer-invoice-total-row.is-remaining strong { color: #b45309; }
.buyer-invoice-pay-hint {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.buyer-invoice-pay-form .k-field { margin-bottom: 14px; }
.buyer-invoice-gateways { margin-bottom: 14px; }
.buyer-invoice-status {
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: start;
}
.buyer-invoice-status i { font-size: 1.35rem; flex-shrink: 0; margin-top: 2px; }
.buyer-invoice-status p { margin: 0; font-size: 0.92rem; line-height: 1.6; }
.buyer-invoice-status.is-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
}
.buyer-invoice-status.is-success i { color: #15803d; }
.buyer-invoice-status.is-cancelled {
  background: #fef2f2;
  border-color: #fecaca;
}
.buyer-invoice-status.is-cancelled i { color: #dc2626; }

@media (max-width: 900px) {
  .buyer-invoice-layout { grid-template-columns: 1fr; }
  .buyer-invoice-aside { position: static; }
  .buyer-invoice-card-foot { align-items: stretch; }
  .buyer-invoice-card-foot .k-btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .buyer-invoice-line,
  .buyer-invoice-installment {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .buyer-invoice-line-price,
  .buyer-invoice-installment-meta {
    text-align: start;
    align-items: flex-start;
  }
  .buyer-invoice-hero {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Buyer orders (dashboard) ── */
.buyer-orders-page,
.buyer-order-show {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.buyer-order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.buyer-order-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.buyer-order-card:hover {
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.buyer-order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.buyer-order-card-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.buyer-order-num,
.buyer-order-hero-num {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 0.02em;
}
.buyer-order-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.buyer-order-badge--pending {
  background: #fef3c7;
  color: #b45309;
}
.buyer-order-badge--processing {
  background: #dbeafe;
  color: #1d4ed8;
}
.buyer-order-badge--shipped {
  background: #e0e7ff;
  color: #4338ca;
}
.buyer-order-badge--delivered {
  background: #dcfce7;
  color: #15803d;
}
.buyer-order-badge--cancelled {
  background: #fee2e2;
  color: #dc2626;
}
.buyer-order-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.buyer-order-meta {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}
.buyer-order-meta i { color: var(--brand); font-size: 0.78rem; }
.buyer-order-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.buyer-order-amount {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.buyer-order-amount span {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 700;
}
.buyer-order-amount strong {
  font-size: 1.05rem;
  color: var(--brand-dark);
}
.buyer-order-empty {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.buyer-order-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 1.5rem;
}
.buyer-order-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.buyer-order-pagination { margin-top: 4px; }

.buyer-order-hero {
  padding: 20px 22px;
  border-inline-start: 4px solid var(--brand);
}
.buyer-order-hero-main { min-width: 0; }
.buyer-order-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.buyer-order-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}
.buyer-order-type-pill i { color: var(--brand); }
.buyer-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(340px, 100%);
  gap: 20px;
  align-items: start;
}
.buyer-order-main,
.buyer-order-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.buyer-order-aside {
  position: sticky;
  top: calc(var(--header-h, 64px) + 16px);
}
.buyer-order-section,
.buyer-order-summary {
  padding: 20px 22px;
}
.buyer-order-section .dash-section-head,
.buyer-order-summary .dash-section-head {
  margin-bottom: 14px;
}
.buyer-order-section .order-proposals-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.buyer-order-delivery {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}
.buyer-order-lines {
  display: flex;
  flex-direction: column;
}
.buyer-order-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.buyer-order-line:last-child { border-bottom: none; padding-bottom: 0; }
.buyer-order-line:first-child { padding-top: 0; }
.buyer-order-line-info { min-width: 0; }
.buyer-order-line-info strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 3px;
  line-height: 1.4;
}
.buyer-order-line-info span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}
.buyer-order-line-price {
  font-size: 0.92rem;
  color: var(--brand-dark);
  white-space: nowrap;
  text-align: end;
}
.buyer-order-cameras {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.buyer-order-camera-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.buyer-order-camera-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 12px;
}
.buyer-order-camera-head strong { font-size: 0.95rem; }
.buyer-order-camera-head span {
  font-size: 0.8rem;
  color: var(--muted);
}
.buyer-order-camera-block { margin-top: 10px; }
.buyer-order-camera-block h4 {
  margin: 0 0 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text);
}
.buyer-order-stream-ip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.buyer-order-stream-ip code {
  display: inline-block;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--brand-dark);
  word-break: break-all;
  font-size: 0.78rem;
}
.buyer-order-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
  aspect-ratio: 16 / 9;
}
.buyer-order-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f172a;
}
.buyer-order-camera-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.buyer-order-camera-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.buyer-order-camera-item > strong {
  font-size: 0.84rem;
}
.buyer-order-camera-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}
.buyer-order-shipments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.buyer-order-shipment {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}
.buyer-order-shipment-info { min-width: 0; flex: 1; }
.buyer-order-shipment-info strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.buyer-order-shipment-info .buyer-order-badge { margin-bottom: 6px; }
.buyer-order-shipment-info .order-tracking-code { margin: 6px 0 0; }
.buyer-order-neg-meta {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.buyer-order-totals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.buyer-order-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}
.buyer-order-total-row strong {
  font-size: 0.95rem;
  white-space: nowrap;
}
.buyer-order-total-row.is-grand {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 2px solid var(--border);
  font-weight: 800;
}
.buyer-order-total-row.is-grand strong {
  font-size: 1.15rem;
  color: var(--brand-dark);
}

@media (max-width: 900px) {
  .buyer-order-layout { grid-template-columns: 1fr; }
  .buyer-order-aside { position: static; }
  .buyer-order-card-foot { align-items: stretch; }
  .buyer-order-card-foot .k-btn { width: 100%; justify-content: center; }
}
@media (max-width: 520px) {
  .buyer-order-line {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .buyer-order-line-price {
    text-align: start;
  }
  .buyer-order-shipment .k-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ── Buyer shipments list (dashboard) ── */
.buyer-shipments-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.buyer-shipment-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.buyer-shipment-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.buyer-shipment-card:hover {
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.buyer-shipment-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.buyer-shipment-card-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.buyer-shipment-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
  color: var(--text);
}
.buyer-shipment-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--surface-2);
  color: var(--muted);
}
.buyer-shipment-badge--in_transit,
.buyer-shipment-badge--assigned {
  background: #fef3c7;
  color: #b45309;
}
.buyer-shipment-badge--delivered {
  background: #dcfce7;
  color: #15803d;
}
.buyer-shipment-badge--pending,
.buyer-shipment-badge--awaiting_proposal,
.buyer-shipment-badge--awaiting_expert,
.buyer-shipment-badge--own_driver {
  background: #dbeafe;
  color: #1d4ed8;
}
.buyer-shipment-date {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.buyer-shipment-code {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.buyer-shipment-code code {
  font-size: 0.86rem;
  color: var(--brand-dark);
  background: var(--surface-2);
  padding: 2px 8px;
  border-radius: 8px;
}
.buyer-shipment-route {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
.buyer-shipment-route > span {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.buyer-shipment-route i { color: var(--brand); font-size: 0.78rem; margin-top: 0.2rem; }
.buyer-shipment-route-arrow {
  color: var(--muted);
  font-size: 0.72rem;
  opacity: 0.7;
}
.buyer-shipment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}
.buyer-shipment-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.buyer-shipment-meta i { color: var(--brand); font-size: 0.74rem; }
.buyer-shipment-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}
.buyer-shipment-card-foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.buyer-shipment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.buyer-shipment-empty {
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.buyer-shipment-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.buyer-shipment-empty p {
  margin: 0;
  font-weight: 800;
  color: var(--text);
}
.buyer-shipment-empty-hint {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 320px;
  line-height: 1.55;
}
.buyer-shipment-pagination { margin-top: 4px; }

@media (max-width: 640px) {
  .buyer-shipment-route { flex-direction: column; align-items: flex-start; }
  .buyer-shipment-route-arrow { display: none; }
  .buyer-shipment-card-foot { justify-content: stretch; }
  .buyer-shipment-actions { width: 100%; }
  .buyer-shipment-actions .k-btn {
    flex: 1;
    justify-content: center;
  }
}

/* Farmer my products */
.farmer-products-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.farmer-products-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.farmer-product-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.farmer-product-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.farmer-product-tab:hover {
  border-color: rgba(22, 163, 74, 0.35);
  color: var(--brand-dark);
}
.farmer-product-tab.is-active {
  background: var(--brand-muted);
  border-color: var(--brand);
  color: var(--brand-dark);
  box-shadow: var(--shadow);
}
.farmer-product-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
}
.farmer-product-tab.is-active .farmer-product-tab-count {
  background: rgba(22, 163, 74, 0.18);
}
.farmer-product-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.farmer-product-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 16px 18px;
  align-items: start;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.farmer-product-card:hover {
  border-color: rgba(22, 163, 74, 0.28);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.farmer-product-card-media img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.farmer-product-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.farmer-product-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}
.farmer-product-card-id {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.farmer-product-card-id h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.45;
}
.farmer-product-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
}
.farmer-product-badge--pending {
  background: #fef3c7;
  color: #b45309;
}
.farmer-product-badge--approved {
  background: #dcfce7;
  color: #15803d;
}
.farmer-product-badge--rejected {
  background: #fee2e2;
  color: #b91c1c;
}
.farmer-product-badge--sold {
  background: #dbeafe;
  color: #1d4ed8;
}
.farmer-product-card-head time {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.farmer-product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 700;
}
.farmer-product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.farmer-product-meta i { color: var(--brand); font-size: 0.74rem; }
.farmer-product-location {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}
.farmer-product-location i { color: var(--brand); margin-top: 0.15rem; }
.farmer-product-note {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}
.farmer-product-note.is-approved {
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.2);
  color: #166534;
}
.farmer-product-note.is-rejected {
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.2);
  color: #b91c1c;
}
.farmer-product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}
.farmer-product-card-actions .k-btn { justify-content: center; }
.farmer-product-card-actions form { margin: 0; }
.farmer-product-card-actions .is-danger { color: #b91c1c; }
.farmer-product-empty {
  padding: 36px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.farmer-product-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand);
  font-size: 1.5rem;
}
.farmer-product-empty p { margin: 0; font-weight: 800; }
.farmer-product-empty-hint {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.55;
}
.farmer-product-pagination { margin-top: 4px; }
.farmer-product-edit-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

@media (max-width: 768px) {
  .farmer-product-card {
    grid-template-columns: 1fr;
  }
  .farmer-product-card-media img {
    width: 100%;
    height: 180px;
  }
  .farmer-product-card-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .farmer-product-card-actions .k-btn { flex: 1; min-width: 120px; }
}

/* Farmer province chats */
.farmer-chats-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.farmer-chats-section-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.farmer-chats-section-tab {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.farmer-chats-section-tab:hover {
  border-color: rgba(22, 163, 74, 0.35);
  color: var(--text);
  background: var(--brand-muted);
}
.farmer-chats-section-tab.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.farmer-chats-section-tab-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.farmer-chats-section-tab:not(.is-active) .farmer-chats-section-tab-count {
  background: #ef4444;
  color: #fff;
}
.farmer-chats-section[hidden] { display: none !important; }
.farmer-support-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 20px;
  align-items: start;
  padding: 22px;
}
.farmer-support-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 1.35rem;
}
.farmer-support-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.farmer-support-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.farmer-support-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.farmer-support-card-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.farmer-support-card-badge[hidden] { display: none !important; }
.farmer-support-card-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}
.farmer-support-card-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.farmer-support-card-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
}
.farmer-support-card-points i { color: var(--brand); font-size: 0.82rem; }
.farmer-support-card-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.farmer-support-card-actions {
  display: flex;
  align-items: center;
}
.farmer-support-card-actions .k-btn { white-space: nowrap; }
.farmer-chats-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.farmer-chats-search-wrap { position: relative; }
.farmer-chats-search {
  width: 100%;
  padding-inline-start: 38px;
}
.farmer-chats-search-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}
.farmer-chat-filter-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.farmer-chat-filter-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.18s ease, color 0.18s ease;
}
.farmer-chat-filter-tab:hover {
  color: var(--text);
  background: rgba(22, 163, 74, 0.08);
}
.farmer-chat-filter-tab.is-active {
  background: var(--brand);
  color: #fff;
}
.farmer-chat-filter-tab-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.farmer-chats-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.farmer-chats-count {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 700;
}
.farmer-chats-clear {
  border: none;
  background: transparent;
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.farmer-chats-clear:hover { text-decoration: underline; }
.farmer-chats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.farmer-chats-grid[hidden] { display: none !important; }
.farmer-chat-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "icon body badge"
    "icon body action";
  gap: 4px 12px;
  align-items: center;
  padding: 14px 16px;
  text-align: start;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
}
.farmer-chat-card[hidden] { display: none !important; }
.farmer-chat-card:hover,
.farmer-chat-card:focus-visible {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
  outline: none;
}
.farmer-chat-card.is-active-border {
  border-color: rgba(22, 163, 74, 0.45);
  background: rgba(22, 163, 74, 0.04);
}
.farmer-chat-card-icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand-dark);
  font-size: 1.05rem;
  align-self: center;
}
.farmer-chat-card-body {
  grid-area: body;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.farmer-chat-card-title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}
.farmer-chat-card-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
}
.farmer-chat-card-badge {
  grid-area: badge;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
}
.farmer-chat-card-action {
  grid-area: action;
  font-size: 0.76rem;
  color: var(--brand);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
}
.farmer-chat-empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
}
.farmer-chat-empty-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-muted);
  color: var(--brand);
  font-size: 1.2rem;
}
.farmer-chat-empty p {
  margin: 0;
  font-weight: 800;
  color: var(--text);
}
.farmer-chat-empty-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
}
.farmer-chat-empty[hidden] { display: none !important; }
@media (max-width: 768px) {
  .farmer-chats-toolbar {
    grid-template-columns: 1fr;
  }
  .farmer-chat-filter-tabs {
    width: 100%;
    justify-content: center;
  }
  .farmer-support-card {
    grid-template-columns: 1fr;
  }
  .farmer-support-card-icon {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
  .farmer-support-card-actions .k-btn {
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 520px) {
  .farmer-chats-grid {
    grid-template-columns: 1fr;
  }
  .farmer-chat-card {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "icon body"
      "icon action"
      "badge badge";
  }
  .farmer-chat-card-badge {
    justify-self: start;
    margin-top: 4px;
  }
  .farmer-chat-card-action {
    justify-self: start;
    margin-top: 2px;
  }
}

/* Maintain checkout stages */
.checkout-flow-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.checkout-flow-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  padding: 12px 18px;
  border: 1px solid #dbe3ea;
  border-radius: 15px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.checkout-flow-tab:hover,
.checkout-flow-tab.is-active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, white);
  color: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(22, 163, 74, .10);
}
.checkout-flow-tab i { font-size: 1.05rem; }
.checkout-flow-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  margin-top: 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
}
.checkout-flow-coming-soon[hidden] { display: none !important; }
.checkout-auction-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.checkout-auction-range[hidden] { display: none !important; }
.checkout-step-card[hidden] { display: none !important; }
.checkout-step-next {
  display: flex;
  width: fit-content;
  margin-top: 18px;
  margin-inline-start: auto;
  gap: 8px;
}
.checkout-step-next[hidden] { display: none !important; }
@media (max-width: 560px) {
  .checkout-flow-tabs { grid-template-columns: 1fr; }
}
.checkout-maintain-paths { margin-top: 8px; }
.checkout-facility-map { min-height: 360px; }
.checkout-facility-search {
  position: relative;
  margin-bottom: 14px;
}
.checkout-facility-search > i {
  position: absolute;
  inset-inline-start: 15px;
  top: 50%;
  translate: 0 -50%;
  color: #94a3b8;
  z-index: 2;
}
.checkout-facility-search .k-input {
  width: 100%;
  min-height: 48px;
  padding-inline-start: 43px;
  padding-inline-end: 43px;
}
.checkout-facility-search > button {
  position: absolute;
  inset-inline-end: 10px;
  top: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 9px;
  background: #eef2f7;
  color: #64748b;
  cursor: pointer;
  z-index: 3;
}
.checkout-facility-search > button[hidden] { display: none !important; }
.checkout-facility-search-results {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 6px);
  inset-inline: 0;
  max-height: 280px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #dbe3ea;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .14);
}
.checkout-facility-search-results[hidden] { display: none !important; }
.checkout-facility-search-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1e293b;
  text-align: start;
  font: inherit;
  cursor: pointer;
}
.checkout-facility-search-result:hover { background: #f0fdf4; }
.checkout-facility-search-result small,
.checkout-facility-search-empty { color: #64748b; }
.checkout-facility-search-empty { margin: 0; padding: 12px; text-align: center; }
.checkout-facility-selected {
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}
.checkout-facility-selected strong { display: block; margin-bottom: 4px; }
.checkout-facility-selected p { margin: 0; color: #64748b; font-size: 0.9rem; }
.checkout-facility-empty { color: #b45309; margin: 10px 0 0; }
.checkout-facility-fees { display: flex; flex-direction: column; gap: 10px; }
.checkout-cold-shock-option { margin-bottom: 14px; }
.checkout-cold-shock-option[hidden] { display: none !important; }
.checkout-facility-fee-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}
.checkout-facility-fee-row div { display: flex; flex-direction: column; gap: 2px; }
.checkout-facility-fee-row small { color: #b45309; font-size: 0.78rem; }
.checkout-facility-fee-row em { color: #64748b; font-style: normal; font-size: 0.8rem; }
.checkout-facility-fee-total {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  padding-top: 6px;
}
.facility-map-marker-wrap { background: none; border: none; }
.facility-map-marker {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
  font-size: 0.85rem;
}
.facility-map-marker.is-cold_storage {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}
.facility-map-marker.is-sorting {
  background: linear-gradient(135deg, #34d399, #059669);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35);
}
.facility-map-marker.is-basket_maker {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}
.world-map-facility-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px 0;
}
.world-map-facility-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.world-map-facility-filter.is-on {
  border-color: transparent;
  color: #fff;
}
.world-map-facility-filter[data-facility-layer="cold_storage"].is-on {
  background: #0284c7;
}
.world-map-facility-filter[data-facility-layer="sorting"].is-on {
  background: #059669;
}
.world-map-facility-filter[data-facility-layer="basket_maker"].is-on {
  background: #d97706;
}
.dash-map-popup-type {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f766e;
  margin-bottom: 4px;
}
.checkout-fee-month-note { color: #b45309; font-size: 0.88rem; }
/* Keep the desktop navigation compact and single-line on mid-width screens. */
@media (min-width: 1361px) and (max-width: 1600px) {
  .main-header .container { gap: 6px; padding-inline: 16px; }
  .header-nav .nav-links-site { gap: 0; }
  .header-nav .nav-links-site a {
    padding: 4px 6px;
    font-size: 0.74rem;
    white-space: nowrap;
    word-break: keep-all;
  }
  .header-actions { gap: 4px; }
  .currency-trigger, .lang-trigger { padding-inline: 7px; }
}
.checkout-direct-choice { text-align: center; padding: 28px; }
.checkout-direct-choice h3 { margin: 0 0 8px; font-size: 1.2rem; }
.checkout-direct-choice p { max-width: 580px; margin: 0 auto 20px; color: var(--muted); line-height: 1.8; }
.checkout-direct-choice-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.checkout-direct-choice-actions .k-btn { min-width: 180px; }
/* ── Chat Call Styles (Buyer) ── */
.chat-call-btn {
  color: #10b981 !important;
  position: relative;
}
.chat-call-btn:hover {
  color: #059669 !important;
  background: #d1fae5 !important;
}

.chat-call-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s;
}
.chat-call-popup[hidden] { display: none; }
.chat-call-popup.is-visible { opacity: 1; }

.chat-call-popup-dialog {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  width: 320px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: callPopupIn 0.3s ease;
}

@keyframes callPopupIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.chat-call-popup-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--brand-dark, #059669);
}
.chat-call-popup-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.chat-call-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
}
.chat-call-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.chat-call-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 3px solid #10b981;
  opacity: 0;
}
.chat-call-ring.is-ringing {
  animation: callRing 1.5s infinite;
}

@keyframes callRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}

.chat-call-status {
  color: #374151;
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.chat-call-timer {
  color: #10b981;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 0 24px;
  font-variant-numeric: tabular-nums;
}

.chat-call-end-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(239,68,68,0.4);
}
.chat-call-end-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

body.chat-call-open {
  overflow: hidden;
}

/* ── Mobile button short text ── */
@media (max-width: 640px) {
  .cart-btn-text { font-size: 0; letter-spacing: 0; }
  .cart-btn-text::before { content: attr(data-short); font-size: 0.8rem; letter-spacing: normal; }
}

.baskets-hero { margin-bottom: 16px; }
.baskets-hero h1 { margin: 8px 0 6px; font-size: 1.55rem; }
.baskets-hero p { color: #64748b; margin: 0; }
.baskets-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  align-items: center;
}
.baskets-search {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
}
.baskets-search input {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  font: inherit;
}
.baskets-view-toggle {
  display: flex;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}
.baskets-view-toggle button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 9px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: #475569;
}
.baskets-view-toggle button.is-on {
  background: #d97706;
  color: #fff;
}
.baskets-map-wrap { padding: 0; overflow: hidden; margin-bottom: 14px; }
.baskets-map { height: min(42vh, 380px); width: 100%; }
.baskets-map.is-single { height: min(36vh, 280px); }
.baskets-list { display: grid; gap: 12px; }
.baskets-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  padding: 12px;
  cursor: pointer;
}
.baskets-card.is-active { box-shadow: 0 0 0 2px #d97706; }
.baskets-card-media {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}
.baskets-card-media img { width: 100%; height: 112px; object-fit: cover; display: block; }
.baskets-card-body { min-width: 0; }
.baskets-card-body h2 { margin: 0 0 6px; font-size: 1.05rem; }
.baskets-card-body h2 a { color: inherit; text-decoration: none; }
.baskets-card-meta { margin: 0 0 8px; color: #64748b; font-size: 0.86rem; }
.baskets-card-meta.is-muted { font-style: italic; }
.baskets-card-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.86rem;
  margin-bottom: 10px;
}
.baskets-card-actions { display: flex; gap: 8px; flex-wrap: wrap; min-width: 0; }
.baskets-card-actions .k-btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; }

/* basket models preview inside a workshop card */
.baskets-card-models {
  min-width: 0;
  max-width: 100%;
  display: flex;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.baskets-card-models li { flex: 0 0 auto; }
.baskets-card-models a {
  display: grid;
  gap: 2px;
  width: 92px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--ease), background var(--ease);
}
.baskets-card-models a:hover { border-color: var(--brand); background: var(--brand-muted); }
.baskets-card-models img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
  display: block;
}
.baskets-card-model-title {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.baskets-card-model-price {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.baskets-card-models-more a {
  width: auto;
  min-width: 70px;
  align-content: center;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-color: transparent;
}
.baskets-page.is-map-only .baskets-list { display: none; }
.baskets-page.is-map-only .baskets-map { height: min(70vh, 640px); }
.baskets-page.is-list-only .baskets-map-wrap { display: none; }
.baskets-search-empty { text-align: center; color: #64748b; }
.baskets-show, .baskets-page, .baskets-checkout { overflow-x: clip; }
.baskets-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 10px;
}
.baskets-back:hover { color: var(--brand); }

/* ---- workshop page: hero ---- */
.baskets-show-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--brand-muted), var(--surface) 62%);
}
.baskets-show-hero-main { min-width: 0; flex: 1 1 260px; }
.baskets-show-hero h1 {
  margin: 10px 0 6px;
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.baskets-show-address {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.baskets-show-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.baskets-fact {
  display: grid;
  gap: 2px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.baskets-fact { min-width: 0; }
.baskets-fact strong { font-size: 1rem; color: var(--brand-dark); overflow-wrap: anywhere; }
.baskets-fact span { font-size: 0.76rem; color: var(--muted); }
.baskets-show-cta { flex: 0 0 auto; }

.baskets-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.6;
}
.baskets-chip-brand { background: var(--brand-light); border-color: transparent; color: var(--brand-dark); }

.baskets-specs { padding: 16px; margin-bottom: 16px; }
.baskets-specs h2 { margin: 0 0 8px; font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.baskets-specs p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.8; }

/* ---- workshop page: catalog ---- */
.baskets-catalog-head { margin-bottom: 12px; }
.baskets-catalog-head h2 { margin: 0 0 4px; font-size: 1.1rem; }
.baskets-order-hint { margin: 0; color: var(--muted); font-size: 0.86rem; }
.baskets-empty { padding: 28px 16px; text-align: center; color: var(--muted); }
.baskets-empty i { font-size: 1.8rem; color: #cbd5e1; display: block; margin-bottom: 8px; }
.baskets-empty p { margin: 0; }

.baskets-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.baskets-product {
  display: flex;
  flex-direction: column;
  padding: 10px;
  transition: box-shadow var(--ease);
}
.baskets-product.is-picked { box-shadow: 0 0 0 2px var(--brand), var(--shadow); }
.baskets-product-media { position: relative; }
.baskets-product-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: block;
}
.baskets-product-price {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 1rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.baskets-product-body { flex: 1 1 auto; padding: 10px 4px 0; min-width: 0; }
.baskets-product-body h3 { margin: 0 0 6px; font-size: 0.98rem; line-height: 1.5; }
.baskets-product-desc {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* quantity stepper */
.baskets-qty {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: stretch;
  gap: 6px;
  margin-top: 12px;
}
.baskets-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--brand-dark);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.baskets-qty-btn:hover { background: var(--brand-light); }
.baskets-qty-btn:active { background: var(--brand); color: #fff; }
.baskets-qty-input {
  min-height: 44px;
  width: 100%;
  min-width: 0;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  -moz-appearance: textfield;
  appearance: textfield;
}
.baskets-qty-input::-webkit-outer-spin-button,
.baskets-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.baskets-qty-input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.baskets-product-line {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-dark);
}

/* ---- sticky order bar ---- */
.baskets-order-bar {
  position: sticky;
  inset-block-end: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
}
.baskets-order-summary { display: flex; flex-wrap: wrap; gap: 18px; }
.baskets-order-figure { display: grid; gap: 2px; min-width: 0; }
.baskets-order-figure span { font-size: 0.74rem; color: var(--muted); }
.baskets-order-figure strong { font-size: 0.98rem; color: var(--text); overflow-wrap: anywhere; }
.baskets-order-figure.is-total strong { color: var(--brand-dark); font-size: 1.08rem; }
.baskets-order-submit { flex: 0 0 auto; min-height: 46px; }
.baskets-order-submit:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---- checkout + order pages ---- */
.baskets-checkout .k-card { padding: 16px; margin-bottom: 16px; }
.baskets-checkout .k-card h2 { margin: 0 0 12px; font-size: 1.02rem; }
.baskets-checkout-lines { display: grid; gap: 8px; }
.baskets-checkout-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.baskets-checkout-line span { display: block; font-size: 0.82rem; }
.baskets-checkout-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #cbd5e1;
}
.baskets-checkout-totals div { display: grid; gap: 2px; }
.baskets-checkout-totals span { font-size: 0.82rem; color: var(--muted); }
.baskets-checkout-totals strong { font-size: 1.05rem; color: var(--brand-dark); }
.baskets-company-note { margin-top: 12px; font-size: 0.85rem; line-height: 1.8; }
.baskets-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.baskets-pay-options { display: grid; gap: 8px; }
.baskets-pay-options label { display: flex; align-items: center; gap: 8px; font-weight: 500; }

@media (max-width: 640px) {
  .baskets-card { grid-template-columns: 88px 1fr; }
  .baskets-card-media img { height: 88px; }
  .baskets-map { height: 38vh; }

  .baskets-show-hero { padding: 14px; }
  .baskets-show-cta { width: 100%; justify-content: center; }
  .baskets-fact { flex: 1 1 0; padding: 8px 10px; }
  .baskets-catalog-grid { grid-template-columns: 1fr; gap: 12px; }
  .baskets-product { flex-direction: row; flex-wrap: wrap; gap: 12px; padding: 12px; }
  .baskets-product-media { flex: 0 0 104px; }
  .baskets-product-media img { aspect-ratio: 1 / 1; }
  .baskets-product-body { flex: 1 1 140px; padding: 0; }
  .baskets-product-desc { -webkit-line-clamp: 3; }
  .baskets-qty { flex: 1 1 100%; margin-top: 4px; grid-template-columns: 52px minmax(0, 1fr) 52px; }
  .baskets-product-line { flex: 1 1 100%; text-align: start; margin-top: 0; }

  .baskets-order-bar {
    margin-inline: 0;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    border-radius: var(--radius) var(--radius) 0 0;
    gap: 10px;
  }
  .baskets-order-summary { flex: 1 1 100%; justify-content: space-between; gap: 10px; }
  .baskets-order-submit { width: 100%; justify-content: center; }

  /* workshop list cards */
  .baskets-card-stats { flex-wrap: wrap; }
  .baskets-card-models a { width: 78px; }
  .baskets-card-models img { border-radius: 6px; }
  .baskets-card-actions { gap: 6px; }
  .baskets-card-actions .k-btn { flex: 1 1 auto; justify-content: center; }

  /* checkout page */
  .baskets-checkout-line { flex-wrap: wrap; gap: 6px; }
  .baskets-checkout-line > div { flex: 1 1 100%; }
  .baskets-checkout-totals { gap: 12px; }
  .baskets-checkout-totals div { flex: 1 1 45%; }
  .baskets-checkout-form .k-btn { width: 100%; justify-content: center; min-height: 46px; }
  .baskets-field-grid { grid-template-columns: 1fr; }
}
