/* ============================================================
   VEOHALDUS.EE — Global styles
   ============================================================ */

:root {
  /* Dark theme (default — matches the reference images) */
  --bg: #07091a;
  --bg-2: #0a0e22;
  --panel: #0d1228;
  --panel-2: #111634;
  --panel-3: #161c3e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: #9aa3b8;
  --text-dim: #6b7390;

  --blue: #2f6bff;
  --blue-2: #3b82f6;
  --blue-bright: #4f8bff;
  --purple: #7c3aed;
  --purple-2: #8b5cf6;
  --purple-bright: #a78bfa;

  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --cyan: #06b6d4;

  --grad-blue: linear-gradient(135deg, #2f6bff 0%, #4f8bff 100%);
  --grad-purple: linear-gradient(135deg, #7c3aed 0%, #a78bfa 100%);
  --grad-blue-purple: linear-gradient(135deg, #2f6bff 0%, #7c3aed 100%);
  --grad-purple-blue: linear-gradient(135deg, #7c3aed 0%, #2f6bff 100%);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 20px 60px rgba(0, 0, 0, 0.55);

  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg: #f4f6fb;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f8fc;
  --panel-3: #eef1f8;
  --border: rgba(20, 25, 60, 0.08);
  --border-strong: rgba(20, 25, 60, 0.14);
  --text: #0b1030;
  --text-muted: #525a78;
  --text-dim: #7a8298;
  --shadow-card: 0 1px 0 rgba(0,0,0,0.02), 0 8px 24px rgba(20, 25, 60, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.14); }

/* App container */
.app { min-height: 100vh; background: var(--bg); position: relative; }

/* Logo */
.logo { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo-mark { width: 36px; height: 36px; display: inline-block; margin-right: 6px; }
.logo-text { color: var(--text); }
.logo-text .accent { background: var(--grad-blue-purple); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text .dot { color: var(--text-muted); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  transition: all var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--grad-blue); color: white; box-shadow: 0 8px 24px rgba(47, 107, 255, 0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(47, 107, 255, 0.45); }
.btn-purple { background: var(--grad-purple); color: white; box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35); }
.btn-purple:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: rgba(255,255,255,0.04); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }

/* Cards */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card-pad { padding: 24px; }
.card-pad-sm { padding: 16px; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.input-wrap {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--panel-2); border: 1px solid var(--border);
  transition: all var(--transition);
}
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.15); }
.input-wrap .icon { color: var(--text-muted); flex-shrink: 0; }
.input-content { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.input-content .label { font-size: 11px; color: var(--text-dim); }
.input-content input, .input-content select {
  background: transparent; border: none; outline: none; color: var(--text);
  font-size: 14px; padding: 0; width: 100%;
}
.input-content input::placeholder { color: var(--text-dim); }
.input-error { color: var(--red); font-size: 12px; margin-top: 4px; }
.input-wrap.has-error { border-color: var(--red); }

/* Checkbox */
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-muted); user-select: none; }
.checkbox input { display: none; }
.checkbox .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; transition: all var(--transition); }
.checkbox input:checked + .box { background: var(--blue); border-color: var(--blue); }
.checkbox input:checked + .box::after { content: ''; width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }

/* Badges / pills */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.pill-blue { background: rgba(47, 107, 255, 0.15); color: #6ea0ff; }
.pill-purple { background: rgba(124, 58, 237, 0.15); color: var(--purple-bright); }
.pill-green { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.pill-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.pill-red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.pill-gray { background: rgba(255,255,255,0.08); color: var(--text-muted); }
.pill-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }

/* Tag pills used in tables */
.tag { padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.tag-uus { background: rgba(47, 107, 255, 0.18); color: #6ea0ff; }
.tag-ootel { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.tag-toos { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.tag-lopetatud { background: rgba(124, 58, 237, 0.18); color: var(--purple-bright); }
.tag-tyhistatud { background: rgba(239, 68, 68, 0.18); color: #f87171; }
.tag-ftl { background: rgba(47, 107, 255, 0.18); color: #6ea0ff; }
.tag-ltl { background: rgba(124, 58, 237, 0.18); color: var(--purple-bright); }

/* Topbar — global */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; gap: 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 26, 0.6); backdrop-filter: blur(20px);
  position: sticky; top: 0; z-index: 50;
}
.topbar-actions { display: flex; align-items: center; gap: 12px; }

/* Lang + theme toggle */
.lang-switch { display: inline-flex; padding: 3px; background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; }
.lang-switch button { padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--text-muted); border-radius: 7px; transition: all var(--transition); }
.lang-switch button.active { background: var(--panel-3); color: var(--text); }
.theme-toggle { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--border); color: var(--text-muted); transition: all var(--transition); }
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }

/* Stars background for landing hero */
.stars-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(47, 107, 255, 0.25), transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(124, 58, 237, 0.18), transparent 50%),
    #060818;
}
.stars-bg::before, .stars-bg::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 24% 67%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 41% 28%, rgba(160,200,255,0.9), transparent),
    radial-gradient(1px 1px at 56% 78%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 72% 12%, rgba(180,210,255,0.8), transparent),
    radial-gradient(1px 1px at 84% 56%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 16% 88%, rgba(180,210,255,0.7), transparent),
    radial-gradient(1px 1px at 92% 32%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 48% 48%, rgba(255,255,255,0.4), transparent);
}
.stars-bg::after {
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(80, 140, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 140, 255, 0.10) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at 60% 50%, black 0%, transparent 70%);
}

/* Truck placeholder */
.truck-illus {
  position: relative; height: 100%; width: 100%; border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 90%, rgba(47, 107, 255, 0.35), transparent 60%),
    linear-gradient(180deg, #060818 0%, #0a1230 100%);
}
.truck-svg { position: absolute; bottom: 10%; left: 50%; transform: translateX(-50%); width: 85%; max-width: 520px; }
.road { position: absolute; bottom: 0; left: 0; right: 0; height: 30%; background: linear-gradient(180deg, transparent 0%, #06091c 50%, #050816 100%); }
.road::before { content: ''; position: absolute; bottom: 12%; left: 0; right: 0; height: 3px; background: repeating-linear-gradient(90deg, rgba(255,255,255,0.25) 0 30px, transparent 30px 60px); }

/* Sidebar nav (dashboard) */
.sidebar { width: 240px; padding: 20px; display: flex; flex-direction: column; gap: 4px; background: var(--panel); border-right: 1px solid var(--border); flex-shrink: 0; }
.sidebar-title { font-size: 11px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.1em; padding: 12px 12px 8px; }
.sidebar-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--text-muted); font-weight: 500; font-size: 14px; transition: all var(--transition); cursor: pointer;
}
.sidebar-item:hover { background: var(--panel-2); color: var(--text); }
.sidebar-item.active { background: var(--panel-3); color: var(--text); }
.sidebar-item.active .ico { color: var(--blue-bright); }
.sidebar-item .ico { color: var(--text-dim); display: inline-flex; }

/* Dashboard layout */
.dashboard { display: flex; min-height: 100vh; }
.dashboard-main { flex: 1; padding: 28px 32px; }
.page-title { font-size: 36px; font-weight: 800; margin: 0 0 24px; letter-spacing: -0.025em; }

/* Stat box */
.stat { padding: 18px 20px; }
.stat-label { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 8px; }
.stat-delta { font-size: 12px; font-weight: 600; }
.stat-delta.up { color: #4ade80; }
.stat-delta.down { color: #f87171; }

/* Table */
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table th { text-align: left; font-weight: 600; color: var(--text-muted); padding: 12px 14px; font-size: 12px; border-bottom: 1px solid var(--border); }
.table td { padding: 14px; border-bottom: 1px solid var(--border); }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: rgba(255,255,255,0.02); }
.table-row-num { width: 28px; height: 28px; border-radius: 50%; background: var(--panel-2); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: var(--text-muted); }
.route { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.route-arrow { color: var(--text-dim); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-pop); }
.modal-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-size: 18px; font-weight: 700; margin: 0; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }
.modal-close { width: 32px; height: 32px; border-radius: 8px; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; transition: all var(--transition); }
.modal-close:hover { background: var(--panel-2); color: var(--text); }

/* Toast */
.toast-host { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 18px; background: var(--panel); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow-pop); display: flex; align-items: center; gap: 12px; min-width: 260px; animation: slideIn 200ms ease-out; }
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--blue); }
@keyframes slideIn { from { transform: translateX(40px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Premium dashboard search */
.dash-search {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; min-width: 240px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  transition: border-color 160ms, background 160ms;
}
.dash-search:focus-within {
  border-color: rgba(47,107,255,0.55);
  background: rgba(47,107,255,0.06);
}
.dash-search input {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: 13px; flex: 1; min-width: 0;
}
.dash-search input::placeholder { color: var(--text-muted); }
html[data-theme="light"] .dash-search {
  background: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.10);
}

/* Dashboard select — sama välimus mis .dash-search */
.dash-select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding: 8px 36px 8px 14px;
  background-color: rgba(255,255,255,0.04);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 160ms, background-color 160ms;
  outline: none;
}
.dash-select:hover {
  background-color: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}
.dash-select:focus {
  border-color: rgba(47,107,255,0.55);
  background-color: rgba(47,107,255,0.06);
}
.dash-select option {
  background: #0b1226;
  color: var(--text);
}
html[data-theme="light"] .dash-select {
  background-color: rgba(15,23,42,0.04);
  border-color: rgba(15,23,42,0.10);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
html[data-theme="light"] .dash-select:hover {
  background-color: rgba(15,23,42,0.07);
}
html[data-theme="light"] .dash-select option {
  background: #ffffff;
}
/* ===== Vehicle card v2 ===== */
.vehicle-card-v2 {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.85) 100%);
  border: 1px solid rgba(96,165,250,0.35);
  box-shadow: 0 0 0 1px rgba(96,165,250,0.10), 0 10px 30px rgba(0,0,0,0.30);
  overflow: hidden;
}
html[data-theme="light"] .vehicle-card-v2 {
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border-color: rgba(47,107,255,0.30);
  box-shadow: 0 0 0 1px rgba(47,107,255,0.06), 0 6px 22px rgba(15,23,42,0.06);
}
.vc-inner { padding: 22px 24px 18px; }
.vc-header { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.vc-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; }
.vc-pill {
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: rgba(96,165,250,0.10); color: #6ea0ff;
  border: 1px solid rgba(96,165,250,0.30);
}
html[data-theme="light"] .vc-pill { background: rgba(47,107,255,0.08); color: #2f6bff; border-color: rgba(47,107,255,0.30); }

.vc-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.05fr) minmax(280px, 1.6fr) minmax(180px, 0.85fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 1080px) { .vc-grid { grid-template-columns: 1fr; } }

.vc-spec-list {
  border: 1px solid rgba(96,165,250,0.18);
  border-radius: 14px;
  overflow: hidden;
}
html[data-theme="light"] .vc-spec-list { border-color: rgba(47,107,255,0.18); }
.vc-spec-row {
  display: grid; grid-template-columns: 32px 1fr auto;
  align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(96,165,250,0.10);
  font-size: 13px;
}
.vc-spec-row:last-child { border-bottom: none; }
html[data-theme="light"] .vc-spec-row { border-bottom-color: rgba(47,107,255,0.10); }
.vc-spec-icon {
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(96,165,250,0.10); color: #6ea0ff;
  border: 1px solid rgba(96,165,250,0.25);
}
.vc-spec-label { text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 700; }
.vc-spec-value { font-weight: 700; font-variant-numeric: tabular-nums; }

.vc-illustration {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px;
}
.vc-illustration svg { max-height: 180px; }
.vc-dims {
  margin-top: 8px; font-size: 12px; color: #6ea0ff; font-weight: 700; letter-spacing: 0.02em;
}

.vc-summary {
  border: 1px solid rgba(96,165,250,0.30);
  border-radius: 14px;
  padding: 14px 16px;
  background: rgba(47,107,255,0.04);
  display: grid; gap: 8px;
}
html[data-theme="light"] .vc-summary { background: #f0f6ff; border-color: rgba(47,107,255,0.22); }
.vc-summary-title { font-size: 14px; font-weight: 800; color: #6ea0ff; margin-bottom: 4px; }
html[data-theme="light"] .vc-summary-title { color: #2f6bff; }
.vc-sum-row { display: flex; flex-direction: column; gap: 1px; }
.vc-sum-label { font-size: 12px; color: var(--text-muted); }
.vc-sum-value { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

.vc-tip {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 14px; border-radius: 10px;
  background: rgba(96,165,250,0.06);
  border: 1px solid rgba(96,165,250,0.18);
  font-size: 13px;
}
.vc-tip-icon {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: rgba(251,191,36,0.14); color: #fbbf24;
  flex-shrink: 0;
}

html[data-theme="light"] .dash-search:focus-within {
  background: rgba(47,107,255,0.06);
  border-color: rgba(47,107,255,0.45);
}

/* Image placeholders (truck/laptop) */
.placeholder-img {
  position: relative;
  border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(47, 107, 255, 0.25), transparent 60%),
    linear-gradient(180deg, #050816 0%, #0a1130 100%);
}

/* Utility */
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.flex-1 { flex: 1; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; }
.center { display: flex; align-items: center; justify-content: center; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-xs { font-size: 11px; } .text-sm { font-size: 12px; } .text-base { font-size: 14px; } .text-lg { font-size: 16px; } .text-xl { font-size: 18px; } .text-2xl { font-size: 22px; } .text-3xl { font-size: 28px; } .text-4xl { font-size: 36px; } .text-5xl { font-size: 48px; }
.fw-5 { font-weight: 500; } .fw-6 { font-weight: 600; } .fw-7 { font-weight: 700; } .fw-8 { font-weight: 800; }
.mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-20 { margin-bottom: 20px; } .mb-24 { margin-bottom: 24px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.tracking-tight { letter-spacing: -0.02em; }
.opacity-60 { opacity: 0.6; }

/* Responsive helpers */
/* Sidebar mobile dropdown — desktop peal peidetud */
.sidebar-mobile-bar { display: none; }
.sidebar-burger { background: transparent; border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sidebar-burger:hover { background: rgba(255,255,255,0.04); }

@media (max-width: 900px) {
  /* MÄRKUS: ÄRA pane overflow-x: hidden/clip html/body/#root peale — iOS Safari blokeerib siis vertikaalse scrolli */
  /* Sidebar = mobile dropdown */
  .sidebar { width: 100% !important; flex-direction: column !important; overflow: visible !important; padding: 0 !important; border-bottom: 1px solid var(--border); }
  .sidebar-logo-desktop, .sidebar-pill-desktop { display: none !important; }
  .sidebar-mobile-bar { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--panel); }
  .sidebar-mobile-bar .pill { flex: 0 0 auto; white-space: nowrap; }
  .sidebar-items { display: none; flex-direction: column; gap: 2px; padding: 8px 12px 12px; border-top: 1px solid var(--border); background: var(--panel); }
  .sidebar-items.open { display: flex !important; }
  .sidebar-items .sidebar-item { padding: 12px 14px; border-radius: 8px; }
  .sidebar-logout { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 16px !important; }
  .hide-mob { display: none !important; }
  .dashboard-main { padding: 20px; min-width: 0; }
  .topbar { flex-wrap: wrap; gap: 8px; }
  .topbar > * { min-width: 0; }
  /* Resource page card grid: force 1-col on mobile to avoid horizontal overflow */
  [style*="repeat(auto-fit, minmax(280px"] { grid-template-columns: 1fr !important; }
  [style*="repeat(auto-fit, minmax(260px"] { grid-template-columns: 1fr !important; }
  [style*="repeat(auto-fit, minmax(240px"] { grid-template-columns: 1fr !important; }
  /* Reduce card padding on mobile so content fits */
  .card { padding: 18px !important; }
  .sidebar-title { display: none; }
  .sidebar-item { white-space: nowrap; }
  .dashboard { flex-direction: column; }
  .topbar { padding: 14px 18px; }
  /* Tabelid on mobile peal horisontaalselt scrollitavad — väldib overflow probleemi */
  .card-pad { padding: 16px; overflow-x: auto; }
  .table { min-width: 560px; font-size: 12px; }
  .table th, .table td { padding: 10px 8px; }
  /* Topbar otsing on mobile peal peidetud (võtab liiga palju ruumi) */
  .dash-search { display: none !important; }
  /* DashTopBar: title + actions stack vertikaalselt mobile peal */
  .dashboard-main > div:first-child > .row { flex-wrap: wrap; row-gap: 12px; }
  .dashboard-main > div:first-child > .row > div:first-child { flex: 1 1 100%; }
  .page-title { font-size: 22px !important; }
  /* Sidebar rolli pill: lühem mobile peal */
  .sidebar .pill { font-size: 9px !important; padding: 4px 8px !important; letter-spacing: 0.05em !important; }
  .sidebar a:first-child { padding: 4px 4px 8px !important; margin-bottom: 4px !important; border-bottom: none !important; }
  /* Lang-switch ja theme-toggle peidetud mobile dashboardilt (ET/EN on burger menus avalehel niikuinii; dashboardis võib hetkel ilma) */
  .dashboard-main .lang-switch { display: none !important; }
  /* Modaalid mobile peal — väiksem padding */
  .modal { max-width: 100vw; margin: 0; border-radius: 0; max-height: 100vh; }
  /* NewTripModal 2-tulbaline grid → 1 mobile peal (rakendub Field sees) */
  .modal [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .modal [style*="grid-template-columns: 1.2fr 0.8fr"] { grid-template-columns: 1fr !important; }
  /* KPI 4-tulp grid mobile peal 2-tulb */
  [style*="repeat(auto-fit, minmax(180px"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="repeat(auto-fit, minmax(200px"] { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 560px) {
  .dashboard-main { padding: 14px; }
  [style*="repeat(auto-fit, minmax(180px"],
  [style*="repeat(auto-fit, minmax(200px"] { grid-template-columns: 1fr !important; }
  .page-title { font-size: 22px !important; }
  h1, h2 { font-size: 22px !important; }
}

/* ============ Marketing landing layout ============ */
.marketing-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}
.marketing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 20px;
  margin-bottom: 8px;
  background: rgba(13, 18, 40, 0.6);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  position: sticky;
  top: 12px;
  z-index: 40;
}
.marketing-nav .brand-link { cursor: pointer; display: inline-flex; align-items: center; }
.marketing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.marketing-nav .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 160ms;
}
.marketing-nav .nav-link:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}
.marketing-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero with truck */
.hero-section { background: linear-gradient(135deg, #0a0f28 0%, #11163a 100%); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 32px;
  align-items: center;
}
.hero-truck-wrap {
  position: relative;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
}
.hero-truck-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* RoleCard hover lift */
.role-card { transition: transform 180ms, border-color 180ms, background 180ms; }
.role-card:hover { transform: translateY(-2px); }

/* Footer column links hover */
.marketing-shell footer a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-truck-wrap { height: 220px; }
  .marketing-nav .nav-links { display: none; }
  .marketing-shell { padding: 16px 14px 48px; }
}
@media (max-width: 700px) {
  .marketing-shell footer > div:first-child { grid-template-columns: 1fr 1fr !important; }
  /* Quick-links 4-tulp → 2-tulp mobile peal */
  .marketing-shell [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, 1fr) !important; }
  .marketing-shell [style*="grid-template-columns: repeat(6"] { grid-template-columns: repeat(2, 1fr) !important; }
  /* Hero stat-rida vertikaalseks (1 248+, 2 850+ jne) */
  .marketing-shell [style*="grid-auto-flow: column"] { grid-auto-flow: row !important; grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
  /* MarketingNav: peida ET/EN ja dark-mode peenelt mobile peal hoiu */
  .marketing-nav [data-mobile-hide] { display: none; }
}

/* KPI strip avalehel: 4 → 2 tulpa mobile peal */
@media (max-width: 700px) {
  .kpi-strip > div { grid-template-columns: repeat(2, 1fr) !important; gap: 14px !important; }
  .kpi-strip > div > div { border-right: none !important; padding: 6px 0; }
  .kpi-strip .kpi-strip-value { font-size: 24px !important; }
  .kpi-strip { padding: 18px !important; }
  /* Marketing nav: peida ET/EN switch + theme toggle mobile peal, et CTA mahuks */
  .marketing-nav .lang-switch,
  .marketing-nav .theme-toggle { display: none !important; }
  .marketing-nav .nav-actions { gap: 8px; }
  .marketing-nav .nav-cta { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
  .marketing-nav .nav-login-btn { padding: 8px 12px; font-size: 13px; }
}
@media (max-width: 380px) {
  /* Veelgi väiksem — peida login nupp, ainult CTA */
  .marketing-nav .nav-login-btn { display: none; }
}

/* Hamburger menüü mobile peal */
.nav-burger {
  width: 38px; height: 38px;
  display: none !important;
  align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}
.nav-burger:hover { background: var(--panel-3); }
.marketing-nav { position: relative; }
.nav-mobile-drawer {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: var(--shadow-pop);
  z-index: 50;
  display: flex; flex-direction: column;
  animation: drawerOpen 180ms ease-out;
}
@keyframes drawerOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.nav-mobile-link {
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  border-radius: 10px;
  transition: background var(--transition);
}
.nav-mobile-link:hover { background: var(--panel-2); }
.nav-mobile-divider { height: 1px; background: var(--border); margin: 8px 4px; }
.nav-mobile-row { display: flex; align-items: center; gap: 12px; padding: 6px 10px; }

@media (max-width: 900px) {
  /* Mobile peal: peida desktop nav-links, kuva hamburger */
  .marketing-nav .nav-links { display: none !important; }
  .marketing-nav .nav-burger { display: inline-flex !important; }
}

/* Hero headline sizing — fits 2 lines max */
.hero-headline { font-size: 60px; letter-spacing: -0.03em; font-weight: 900; line-height: 1.05; }
@media (max-width: 1100px) { .hero-headline { font-size: 52px; } }
@media (max-width: 900px)  { .hero-headline { font-size: 42px; white-space: normal !important; } }
@media (max-width: 600px)  { .hero-headline { font-size: 34px; } }

/* Hero with full-width background truck */
.hero-fullbg { background: #0a0f28; }
.hero-fullbg .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
  z-index: 0;
}
.hero-fullbg .hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7,9,26,0.92) 0%, rgba(7,9,26,0.78) 35%, rgba(7,9,26,0.35) 65%, rgba(7,9,26,0.05) 100%),
    linear-gradient(180deg, rgba(7,9,26,0.15) 0%, rgba(7,9,26,0.3) 100%);
}
@media (max-width: 900px) {
  .hero-fullbg .hero-bg-overlay {
    background: linear-gradient(180deg, rgba(7,9,26,0.55) 0%, rgba(7,9,26,0.92) 70%);
  }
  .hero-fullbg-content { padding: 36px 28px !important; }
}

/* === Gap utility classes for flex/grid (were missing) === */
.col.gap-4   { gap: 4px; }
.col.gap-6   { gap: 6px; }
.col.gap-8   { gap: 8px; }
.col.gap-10  { gap: 10px; }
.col.gap-12  { gap: 12px; }
.col.gap-14  { gap: 14px; }
.col.gap-16  { gap: 16px; }
.col.gap-20  { gap: 20px; }
.col.gap-24  { gap: 24px; }
.col.gap-28  { gap: 28px; }
.col.gap-32  { gap: 32px; }
.col.gap-40  { gap: 40px; }
.col.gap-48  { gap: 48px; }
.row.gap-4   { gap: 4px; }
.row.gap-6   { gap: 6px; }
.row.gap-8   { gap: 8px; }
.row.gap-10  { gap: 10px; }
.row.gap-12  { gap: 12px; }
.row.gap-16  { gap: 16px; }
.row.gap-20  { gap: 20px; }
.row.gap-24  { gap: 24px; }
.row.gap-32  { gap: 32px; }

/* ============ IconChip hover effect ============ */
.icon-chip { will-change: transform, box-shadow; }
.card:hover .icon-chip,
button:hover .icon-chip,
a:hover .icon-chip {
  transform: translateY(-1px) scale(1.04);
}
.icon-chip-violet:hover, .card:hover .icon-chip-violet { box-shadow: 0 0 30px rgba(124, 58, 237, 0.48), inset 0 0 22px rgba(124, 58, 237, 0.35); }
.icon-chip-blue:hover,   .card:hover .icon-chip-blue   { box-shadow: 0 0 30px rgba(47, 107, 255, 0.48), inset 0 0 22px rgba(47, 107, 255, 0.35); }
.icon-chip-green:hover,  .card:hover .icon-chip-green  { box-shadow: 0 0 30px rgba(34, 197, 94, 0.45),  inset 0 0 22px rgba(34, 197, 94, 0.30); }
.icon-chip-amber:hover,  .card:hover .icon-chip-amber  { box-shadow: 0 0 30px rgba(245, 158, 11, 0.50), inset 0 0 22px rgba(245, 158, 11, 0.35); }
.icon-chip-red:hover,    .card:hover .icon-chip-red    { box-shadow: 0 0 30px rgba(239, 68, 68, 0.50),  inset 0 0 22px rgba(239, 68, 68, 0.35); }
.icon-chip-cyan:hover,   .card:hover .icon-chip-cyan   { box-shadow: 0 0 30px rgba(6, 182, 212, 0.45),  inset 0 0 22px rgba(6, 182, 212, 0.30); }

/* ============ Themed icon swap (dark / light variant) ============ */
.themed-icon { position: relative; display: inline-block; }
html[data-theme="dark"]  .themed-icon .ico-light { display: none !important; }
html[data-theme="light"] .themed-icon .ico-dark  { display: none !important; }

/* ============ Hero theme swap ============ */
html[data-theme="dark"]  .hero-bg-light { display: none !important; }
html[data-theme="light"] .hero-bg-dark  { display: none !important; }

/* Light hero overlay — much lighter gradient, dark text */
html[data-theme="light"] .hero-fullbg { background: #f4f6fb; }
html[data-theme="light"] .hero-fullbg .hero-bg-overlay {
  background:
    linear-gradient(90deg, rgba(244,246,251,0.96) 0%, rgba(244,246,251,0.80) 38%, rgba(244,246,251,0.15) 70%, rgba(244,246,251,0.00) 100%);
}
html[data-theme="light"] .hero-fullbg .hero-headline { color: #0b1030; }
html[data-theme="light"] .hero-fullbg .text-muted   { color: #525a78 !important; }
html[data-theme="light"] .hero-section .row.items-center .text-muted { color: #525a78 !important; }

/* Card overall light bg for landing sections */
html[data-theme="light"] .card { background: #ffffff; border-color: rgba(20,25,60,0.08); }
html[data-theme="light"] .text-muted { color: #525a78; }
html[data-theme="light"] .text-dim   { color: #7a8298; }
html[data-theme="light"] .quick-link:hover { background: rgba(20,25,60,0.035) !important; }

/* Marketing nav light */
html[data-theme="light"] .marketing-nav {
  background: rgba(255,255,255,0.85);
  border-color: rgba(20,25,60,0.08);
}
html[data-theme="light"] .marketing-nav .nav-link { color: #525a78; }
html[data-theme="light"] .marketing-nav .nav-link:hover { background: rgba(20,25,60,0.04); color: #0b1030; }

/* KPI strip + Platform showcase + Footer keep light card bg from .card override above */
html[data-theme="light"] body, html[data-theme="light"] .app { background: #f4f6fb; }

/* ============ Marketing nav (light) — match reference ============ */
html[data-theme="light"] .marketing-nav {
  background: #ffffff;
  border: 1px solid rgba(20,25,60,0.08);
  box-shadow: 0 1px 0 rgba(20,25,60,0.02), 0 8px 24px rgba(20,25,60,0.04);
}
html[data-theme="light"] .marketing-nav .nav-link { color: #525a78; }
html[data-theme="light"] .marketing-nav .nav-link:hover { color: #0b1030; background: rgba(20,25,60,0.04); }

/* Lang-switch pill in nav (light) */
html[data-theme="light"] .marketing-nav .lang-switch {
  background: #ffffff;
  border: 1px solid rgba(20,25,60,0.08);
  border-radius: 10px;
  padding: 3px;
  display: inline-flex;
}
html[data-theme="light"] .marketing-nav .lang-switch button {
  color: #525a78;
  padding: 6px 12px;
  border-radius: 7px;
  font-weight: 700;
}
html[data-theme="light"] .marketing-nav .lang-switch button.active {
  background: #f1f3f8;
  color: #0b1030;
}

/* Theme toggle (sun/moon) in light nav */
html[data-theme="light"] .marketing-nav .theme-toggle,
html[data-theme="light"] .marketing-nav button.theme-toggle {
  background: #ffffff;
  border: 1px solid rgba(20,25,60,0.08);
  color: #0b1030;
  border-radius: 10px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* "Logi sisse" ghost button in light */
html[data-theme="light"] .marketing-nav .btn-ghost {
  background: #ffffff;
  border: 1px solid rgba(20,25,60,0.10);
  color: #0b1030;
}
html[data-theme="light"] .marketing-nav .btn-ghost:hover {
  background: #f4f6fb;
  border-color: rgba(20,25,60,0.18);
}

/* "Alusta kohe tasuta" primary stays blue but shadow slightly toned for light */
html[data-theme="light"] .marketing-nav .btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(37,99,235,0.30);
}
html[data-theme="light"] .marketing-nav .btn-primary:hover {
  box-shadow: 0 10px 28px rgba(37,99,235,0.40);
}

/* Light hero: keep real text/buttons over the image with a soft white gradient for legibility */
html[data-theme="light"] .hero-fullbg .hero-bg-overlay {
  display: block !important;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.78) 38%, rgba(255,255,255,0.30) 66%, rgba(255,255,255,0.04) 100%);
}
html[data-theme="light"] .hero-fullbg .hero-fullbg-content { display: block !important; }
html[data-theme="light"] .hero-fullbg .hero-headline { color: var(--text); }
html[data-theme="light"] .hero-fullbg .btn-ghost {
  background: rgba(255,255,255,0.85);
  border-color: rgba(20,25,60,0.14);
  box-shadow: 0 8px 22px rgba(20,25,60,0.06);
}

/* ============================================================
   VEOHALDUS.EE — Theme repair pass
   Fixes light/dark consistency across marketing, dashboard and shared UI.
   ============================================================ */
:root {
  color-scheme: dark;
  --quick-link-hover: rgba(255,255,255,0.035);
  --glass-nav: rgba(7, 9, 26, 0.62);
  --row-hover: rgba(255,255,255,0.025);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fb;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f9fd;
  --panel-3: #eef3fb;
  --border: rgba(20, 25, 60, 0.10);
  --border-strong: rgba(20, 25, 60, 0.18);
  --text: #071027;
  --text-muted: #586176;
  --text-dim: #7b8496;
  --blue-bright: #2563eb;
  --purple-bright: #7c3aed;
  --shadow-card: 0 1px 0 rgba(20,25,60,0.02), 0 12px 38px rgba(20,25,60,0.08);
  --shadow-pop: 0 24px 80px rgba(20,25,60,0.16);
  --quick-link-hover: rgba(20,25,60,0.035);
  --glass-nav: rgba(255,255,255,0.82);
  --row-hover: rgba(20,25,60,0.035);
}
html[data-theme="light"], html[data-theme="light"] body, html[data-theme="light"] .app {
  background: var(--bg);
  color: var(--text);
}
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(20,25,60,0.14); }
html[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: rgba(20,25,60,0.22); }
html[data-theme="light"] .card,
html[data-theme="light"] .modal,
html[data-theme="light"] .toast {
  background: var(--panel);
  border-color: var(--border);
  box-shadow: var(--shadow-card);
}
html[data-theme="light"] .btn-ghost {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
}
html[data-theme="light"] .btn-ghost:hover { background: #f4f7fb; }
html[data-theme="light"] .topbar {
  background: var(--glass-nav);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 28px rgba(20,25,60,0.06);
}
html[data-theme="light"] .lang-switch,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .input-wrap,
html[data-theme="light"] .checkbox .box,
html[data-theme="light"] .sidebar,
html[data-theme="light"] .sidebar-item.active,
html[data-theme="light"] .table-row-num {
  background: var(--panel-2);
  border-color: var(--border);
}
html[data-theme="light"] .lang-switch button.active { background: #ffffff; box-shadow: 0 4px 14px rgba(20,25,60,0.06); }
html[data-theme="light"] .sidebar-item:hover,
html[data-theme="light"] .table tr:hover td { background: var(--row-hover); }
html[data-theme="light"] .modal-backdrop { background: rgba(15,23,42,0.32); }
html[data-theme="light"] .stars-bg {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(47, 107, 255, 0.12), transparent 52%),
    radial-gradient(ellipse at 70% 60%, rgba(124, 58, 237, 0.08), transparent 52%),
    #ffffff;
}
html[data-theme="light"] .stars-bg::before {
  opacity: 0.36;
  filter: invert(1) saturate(0.6);
}
html[data-theme="light"] .stars-bg::after {
  background-image:
    linear-gradient(rgba(20,25,60,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,25,60,0.04) 1px, transparent 1px);
}

/* Inquiry form */
.inquiry-form { border-radius: 22px; }
.inquiry-divider { height: 1px; background: var(--border); margin: 4px 0; }
.inquiry-input {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 160ms, box-shadow 160ms;
}
.inquiry-input:focus-within {
  border-color: var(--blue, #2563eb);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
html[data-theme="light"] .inquiry-input {
  background: #ffffff;
  border-color: rgba(20,25,60,0.12);
}
html[data-theme="light"] .inquiry-input:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.inquiry-form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 22px;
  cursor: pointer;
}
html[data-theme="light"] .inquiry-form .btn-primary:not(:disabled) { box-shadow: 0 12px 28px rgba(37,99,235,0.30); }

/* Hero image: use crisp light hero in light mode, dark hero in dark mode */
html[data-theme="dark"]  .hero-bg-light { display: none !important; }
html[data-theme="dark"]  .hero-bg-dark  { display: block !important; filter: none; opacity: 1; }
html[data-theme="light"] .hero-bg-dark  { display: none !important; }
html[data-theme="light"] .hero-bg-light { display: block !important; filter: none; opacity: 1; object-fit: cover; }
html[data-theme="light"] .hero-fullbg {
  background: #ffffff;
  box-shadow: 0 18px 60px rgba(20,25,60,0.10);
}

/* Resource icons and hover states */
.quick-link { border: 1px solid transparent; }
.quick-link:hover { border-color: var(--border); }
html[data-theme="light"] .quick-link:hover { background: var(--quick-link-hover) !important; }
.themed-icon { position: relative; display: inline-block; }
html[data-theme="dark"] .themed-icon .ico-light { display: none !important; }
html[data-theme="light"] .themed-icon .ico-dark { display: none !important; }
html[data-theme="light"] .themed-icon img { filter: drop-shadow(0 8px 18px rgba(20,25,60,0.10)) !important; }

/* Replaces the cheap placeholder laptop/phone with the approved premium visual. */
.platform-device-preview {
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-2);
  box-shadow: var(--shadow-card);
}
.platform-device-preview img {
  width: 100%;
  height: auto;
  display: block;
}
html[data-theme="light"] .platform-device-preview {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
html[data-theme="light"] .platform-showcase-card {
  background: #F3F7FE !important;
  border-color: rgba(20, 25, 60, 0.06) !important;
}
html[data-theme="light"] .platform-device-preview img {
  filter: none;
}

/* Responsive repair for marketing sections with inline grids. */
@media (max-width: 980px) {
  .platform-device-preview { height: auto; }
}
@media (max-width: 700px) {
  .platform-device-preview { height: auto; }
  .hero-fullbg-content { padding: 34px 22px !important; }
}
