/* =====================================================================
   TsVaRent design system (on top of Bootstrap 5.3)
   ===================================================================== */

:root {
  --brand: #5b5bf6;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --accent: #22d3ee;
  --ink: #0f172a;
  --ink-2: #1e293b;
  --body: #334155;
  --muted: #64748b;
  --line: #e7eaf3;
  --bg: #f5f7fc;
  --card: #ffffff;

  --success: #10b981; --success-50: #ecfdf5; --success-700: #047857;
  --warning: #f59e0b; --warning-50: #fffbeb; --warning-700: #b45309;
  --danger: #ef4444;  --danger-50: #fef2f2;  --danger-700: #b91c1c;
  --info: #3b82f6;    --info-50: #eff6ff;    --info-700: #1d4ed8;

  --radius-lg: 24px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 12px 32px -14px rgba(15, 23, 42, .22);
  --shadow-lg: 0 32px 64px -24px rgba(15, 23, 42, .38);
  --grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #22d3ee 100%);
  --grad-dark:
    radial-gradient(1100px 560px at 8% -20%, rgba(99, 102, 241, .5), transparent 60%),
    radial-gradient(800px 480px at 100% 0%, rgba(34, 211, 238, .22), transparent 55%),
    #070b1a;

  /* Latin → Plus Jakarta Sans, Cyrillic → Manrope, Georgian → Noto Sans Georgian (per-glyph fallback). */
  --bs-body-font-family: 'Plus Jakarta Sans', 'Manrope', 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--body);
  --bs-body-bg: var(--bg);
  --bs-primary: #5b5bf6;
  --bs-primary-rgb: 91, 91, 246;
  --bs-link-color: #4f46e5;
  --bs-link-color-rgb: 79, 70, 229;
  --bs-link-hover-color: #4338ca;
  --bs-link-hover-color-rgb: 67, 56, 202;
  --bs-border-color: var(--line);
  --bs-border-radius: 12px;
  --bs-border-radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
a { text-decoration: none; }
::selection { background: var(--brand-100); }

.text-ink { color: var(--ink) !important; }
.text-muted { color: var(--muted) !important; }
.text-brand { color: var(--brand-600) !important; }
.fw-800 { font-weight: 800 !important; }
.fs-7 { font-size: .8rem !important; }
.min-w-0 { min-width: 0; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: 12px; padding: .6rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; }
.btn-lg { border-radius: 14px; padding: .8rem 1.5rem; font-size: 1rem; }
.btn-sm { border-radius: 10px; padding: .38rem .75rem; font-size: .82rem; gap: .35rem; }
.btn-primary {
  --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: var(--brand-700); --bs-btn-hover-border-color: var(--brand-700);
  --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
  box-shadow: 0 8px 20px -10px rgba(91, 91, 246, .7);
}
.btn-success { --bs-btn-bg: #10b981; --bs-btn-border-color: #10b981; --bs-btn-hover-bg: #059669; --bs-btn-hover-border-color: #059669; }
.btn-gradient {
  background: var(--grad); background-size: 160% 160%; color: #fff; border: 0;
  box-shadow: 0 10px 24px -10px rgba(99, 102, 241, .85);
  transition: background-position .5s, transform .15s, box-shadow .2s;
}
.btn-gradient:hover, .btn-gradient:focus { color: #fff; background-position: 100% 0; transform: translateY(-1px); }
.btn-gradient:disabled { color: #fff; opacity: .55; }
.btn-soft { background: var(--brand-50); color: var(--brand-700); border: 0; }
.btn-soft:hover { background: var(--brand-100); color: var(--brand-700); }
.btn-light-outline { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.btn-light-outline:hover { border-color: #c9cfe0; background: #fafbff; color: var(--ink); }
.btn-danger-soft { background: var(--danger-50); color: var(--danger-700); border: 0; }
.btn-danger-soft:hover { background: #fee2e2; color: var(--danger-700); }
.btn-success-soft { background: var(--success-50); color: var(--success-700); border: 0; }
.btn-success-soft:hover { background: #d1fae5; color: var(--success-700); }
.btn-glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }

/* ---------- Forms ---------- */
.form-control, .form-select { border-radius: 12px; border-color: #dde2ee; padding: .62rem .9rem; font-weight: 500; color: var(--ink-2); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(91, 91, 246, .12); }
.form-control-lg { border-radius: 14px; }
.form-label { font-weight: 600; font-size: .86rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-text { color: var(--muted); font-size: .8rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; }
.input-group-text { border-radius: 12px; background: var(--bg); border-color: #dde2ee; color: var(--muted); font-weight: 600; }
.field-validation-error, .text-danger { color: var(--danger-700) !important; font-size: .8rem; font-weight: 600; }
.input-validation-error { border-color: var(--danger) !important; }
.validation-summary-errors { background: var(--danger-50); border: 1px solid #fecaca; color: var(--danger-700); border-radius: 12px; padding: .8rem 1rem; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.validation-summary-errors ul { margin: 0; padding-left: 1.1rem; }
.validation-summary-valid { display: none; }

/* ---------- Public navbar ---------- */
.site-nav { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .84); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid rgba(231, 234, 243, .9); }
.site-nav .navbar { padding: .8rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.28rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-size: 1.15rem; box-shadow: 0 8px 18px -8px rgba(99, 102, 241, .9); }
.site-nav .nav-link { font-weight: 600; color: var(--body); padding: .5rem .9rem !important; border-radius: 10px; }
.site-nav .nav-link:hover, .site-nav .nav-link.active { color: var(--brand-700); background: var(--brand-50); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: .82rem; flex-shrink: 0; }
.user-chip { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .25rem .8rem .25rem .25rem; color: var(--ink-2); font-weight: 600; font-size: .9rem; }
.user-chip:hover { border-color: #c9cfe0; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .45rem; }
.dropdown-item { border-radius: 10px; padding: .55rem .8rem; font-weight: 600; font-size: .9rem; display: flex; align-items: center; gap: .6rem; color: var(--ink-2); }
.dropdown-item:active { background: var(--brand); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grad-dark); color: #fff; overflow: hidden; padding: 4.5rem 0 9rem; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 52px 52px; -webkit-mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.04; letter-spacing: -.035em; color: #fff; margin: 1.1rem 0 1.2rem; }
.hero .lead { color: #c7d2fe; font-size: 1.14rem; max-width: 33rem; opacity: .9; }
.text-gradient { background: linear-gradient(90deg, #a5b4fc, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; padding: .42rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-size: .84rem; font-weight: 600; color: #e0e7ff; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .25); }
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.hero-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(129, 140, 248, .55), transparent 68%); filter: blur(24px); }
.hero-car { position: relative; width: 108%; max-width: 640px; filter: drop-shadow(0 40px 40px rgba(0, 0, 0, .55)); animation: drive 7s ease-in-out infinite; }
@keyframes drive { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-10px); } }
.float-chip { position: absolute; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 16px; padding: .7rem 1rem; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: .65rem; font-weight: 700; font-size: .88rem; animation: float 6s ease-in-out infinite; z-index: 2; }
.float-chip small { display: block; color: var(--muted); font-weight: 600; font-size: .74rem; }
.float-chip .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1.05rem; }
.float-chip.c1 { top: 8%; left: 2%; }
.float-chip.c2 { bottom: 10%; right: 0; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Search card ---------- */
.search-card { position: relative; z-index: 5; margin-top: -5.5rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1rem; border: 1px solid var(--line); }
.field { background: var(--bg); border-radius: 14px; padding: .55rem .95rem; border: 1px solid transparent; transition: .2s; height: 100%; }
.field:focus-within { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px rgba(91, 91, 246, .1); }
.field label { display: flex; align-items: center; gap: .35rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .1rem; }
.field .form-control, .field .form-select { border: 0; background-color: transparent; padding: 0; font-weight: 700; color: var(--ink); box-shadow: none; border-radius: 0; min-height: 1.8rem; }
.field .form-select { background-position: right 0 center; padding-right: 1.4rem; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.03em; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 40rem; }
.kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-600); margin-bottom: .6rem; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-strip .stat { text-align: center; padding: 1.25rem .5rem; }
.stat .num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: .9rem; }
@media (max-width: 767.98px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

.cat-tile { display: flex; flex-direction: column; align-items: center; gap: .65rem; padding: 1.3rem .75rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: .92rem; transition: .2s; text-align: center; height: 100%; }
.cat-tile i { font-size: 1.5rem; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); transition: .2s; }
.cat-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; color: var(--brand-700); }
.cat-tile:hover i { background: var(--grad); color: #fff; }

.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; height: 100%; transition: .2s; }
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num { width: 50px; height: 50px; border-radius: 15px; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1.1rem; box-shadow: 0 10px 20px -10px rgba(99, 102, 241, .9); }
.step-card h3 { font-size: 1.15rem; }
.step-card p { color: var(--muted); margin: 0; }

.cta-band { background: var(--grad-dark); border-radius: 28px; color: #fff; padding: clamp(2rem, 5vw, 3.75rem); position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { color: #c7d2fe; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: .8rem; margin-bottom: 1rem; color: #e0e7ff; }
.feature-list li i { color: #67e8f9; font-size: 1.25rem; line-height: 1.3; }
.feature-list b { color: #fff; display: block; }
.mock-panel { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 20px; padding: 1.25rem; backdrop-filter: blur(6px); }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem .85rem; background: rgba(255, 255, 255, .06); border-radius: 12px; margin-bottom: .55rem; font-size: .88rem; font-weight: 600; }
.mock-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; width: 90px; }
.mock-bar span { display: block; height: 100%; border-radius: 99px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--grad-dark); color: #fff; padding: 2.6rem 0 5.5rem; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin: 0; }
.page-hero p { color: #c7d2fe; margin: .4rem 0 0; }
.overlap { margin-top: -3.8rem; position: relative; z-index: 2; }
.crumbs { font-size: .85rem; color: var(--muted); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); font-weight: 600; }
.crumbs a:hover { color: var(--brand-600); }

/* ---------- Panels & KPI ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-body { padding: 1.4rem; }
.panel-head { padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: .5rem; }
.panel-head h2 i, .panel-head h3 i { color: var(--brand-600); }
.panel-foot { padding: .9rem 1.4rem; border-top: 1px solid var(--line); }

.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; gap: .95rem; align-items: flex-start; height: 100%; box-shadow: var(--shadow-sm); transition: .2s; }
.kpi:hover { box-shadow: var(--shadow); }
.kpi-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.kpi-label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kpi-value { font-size: 1.55rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1.25; }
.kpi-sub { font-size: .78rem; color: var(--muted); font-weight: 600; }
.trend-up { color: var(--success-700); }
.trend-down { color: var(--danger-700); }
.ic-brand { background: var(--brand-50); color: var(--brand-600); }
.ic-success { background: var(--success-50); color: var(--success-700); }
.ic-warning { background: var(--warning-50); color: var(--warning-700); }
.ic-danger { background: var(--danger-50); color: var(--danger-700); }
.ic-info { background: var(--info-50); color: var(--info-700); }
.ic-violet { background: #f5f3ff; color: #6d28d9; }
.ic-cyan { background: #ecfeff; color: #0e7490; }

/* ---------- Pills, stars, meters ---------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 700; padding: .3rem .66rem; border-radius: 999px; white-space: nowrap; line-height: 1.2; }
.pill .bi { font-size: .85em; }
.pill-success { background: var(--success-50); color: var(--success-700); }
.pill-warning { background: var(--warning-50); color: var(--warning-700); }
.pill-danger { background: var(--danger-50); color: var(--danger-700); }
.pill-info { background: var(--info-50); color: var(--info-700); }
.pill-brand { background: var(--brand-50); color: var(--brand-700); }
.pill-muted { background: #f1f5f9; color: #475569; }
.pill-success .bi-circle-fill { font-size: .5rem; }

.stars { font-weight: 700; color: var(--ink-2); font-size: .86rem; white-space: nowrap; }
.stars .bi { color: #f59e0b; }
.stars-count { color: var(--muted); font-weight: 500; }
.stars-new { color: var(--brand-600); }
.stars-new .bi { color: var(--brand-600); }
.star-row { color: #f59e0b; letter-spacing: 1px; font-size: .85rem; }

.meter { height: 8px; background: #edf0f7; border-radius: 999px; overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
.fill-success { background: linear-gradient(90deg, #6ee7b7, #10b981); }
.fill-warning { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.fill-danger { background: linear-gradient(90deg, #fca5a5, #ef4444); }
.fill-muted { background: #cbd5e1; }
.fill-brand { background: var(--grad); }
.meter-caption { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: .35rem; gap: .5rem; font-weight: 600; }

/* ---------- Car cards ---------- */
.car-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; height: 100%; display: flex; flex-direction: column; position: relative; }
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.car-card .media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-50); }
.car-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.car-card:hover .car-img { transform: scale(1.05); }
.car-placeholder { display: grid; place-items: center; background: radial-gradient(120% 95% at 25% 15%, #ffffff 0%, #eef2ff 45%, #dff4fb 100%); }
.car-placeholder svg { width: 80%; height: auto; max-height: 90%; }
.media-tag { position: absolute; top: 12px; left: 12px; background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: .72rem; font-weight: 800; padding: .3rem .65rem; border-radius: 999px; backdrop-filter: blur(6px); text-transform: uppercase; letter-spacing: .05em; z-index: 1; }
.media-tag-r { left: auto; right: 12px; }
.price-tag { position: absolute; right: 12px; bottom: 12px; background: rgba(15, 23, 42, .86); color: #fff; border-radius: 12px; padding: .35rem .7rem; font-weight: 800; backdrop-filter: blur(6px); z-index: 1; }
.price-tag small { font-weight: 500; color: #cbd5e1; margin-left: 2px; }
.car-card .body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.car-card h3 { font-size: 1.06rem; margin: 0; }
.specs { display: flex; flex-wrap: wrap; gap: .4rem; }
.spec { display: inline-flex; align-items: center; gap: .32rem; font-size: .76rem; font-weight: 600; color: #475569; background: var(--bg); border-radius: 8px; padding: .28rem .55rem; }
.spec .bi { color: var(--brand-600); }
.car-card .meta { display: flex; justify-content: space-between; align-items: center; font-size: .84rem; color: var(--muted); margin-top: auto; padding-top: .7rem; border-top: 1px dashed var(--line); font-weight: 600; }
.stretched { position: absolute; inset: 0; z-index: 2; }
.car-card .actions { position: relative; z-index: 3; }

/* ---------- Car details ---------- */
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: var(--brand-50); box-shadow: var(--shadow); }
.gallery-thumbs { display: flex; gap: .6rem; margin-top: .8rem; overflow-x: auto; padding-bottom: .2rem; }
.gallery-thumbs button { border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; width: 100px; aspect-ratio: 16 / 10; flex-shrink: 0; background: none; opacity: .7; transition: .2s; }
.gallery-thumbs button.active, .gallery-thumbs button:hover { border-color: var(--brand); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.spec-box { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem .95rem; display: flex; gap: .75rem; align-items: center; }
.spec-box > i { font-size: 1.2rem; color: var(--brand-600); width: 38px; height: 38px; border-radius: 11px; background: var(--brand-50); display: grid; place-items: center; flex-shrink: 0; }
.spec-box .k { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.spec-box .v { font-weight: 700; color: var(--ink); font-size: .95rem; }
.book-card { position: sticky; top: 92px; }
.book-price { font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price-lines { list-style: none; padding: 0; margin: 0; }
.price-lines li { display: flex; justify-content: space-between; padding: .38rem 0; color: var(--body); font-weight: 500; }
.price-lines li.discount { color: var(--success-700); font-weight: 700; }
.price-lines li.total { border-top: 1px dashed var(--line); margin-top: .4rem; padding-top: .75rem; font-weight: 800; color: var(--ink); font-size: 1.12rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .28rem .7rem; font-size: .76rem; font-weight: 700; background: var(--success-50); color: var(--success-700); }
.provider-card { display: flex; gap: 1rem; align-items: center; }
.provider-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex-shrink: 0; }
.review { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.rating-big { font-size: 2.6rem; font-weight: 800; color: var(--ink); line-height: 1; }

/* ---------- flatpickr theme ---------- */
.flatpickr-calendar { border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); font-family: inherit; }
.flatpickr-calendar.inline { box-shadow: none; border: 0; width: 100% !important; margin: 0 auto; }
.flatpickr-calendar.inline .flatpickr-rContainer, .flatpickr-calendar.inline .flatpickr-days { width: 100% !important; }
.flatpickr-calendar.inline .dayContainer { width: 100%; min-width: 100%; max-width: 100%; }
.flatpickr-calendar.inline .flatpickr-day { max-width: none; flex-basis: 14.2857%; height: 42px; line-height: 40px; }
.flatpickr-months .flatpickr-month { height: 44px; }
.flatpickr-current-month { font-size: 1rem; font-weight: 800; }
.flatpickr-current-month .flatpickr-monthDropdown-months { font-weight: 800; }
.flatpickr-weekday { font-weight: 700; color: var(--muted); }
.flatpickr-day { border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.flatpickr-day.today { border-color: var(--brand-100); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.flatpickr-day.inRange { background: var(--brand-50); border-color: var(--brand-50); box-shadow: -5px 0 0 var(--brand-50), 5px 0 0 var(--brand-50); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: #cbd5e1; text-decoration: line-through; }
.flatpickr-day.notAllowed { color: #e2e8f0; }

/* ---------- Tables ---------- */
.table-modern { margin: 0; --bs-table-bg: transparent; font-size: .9rem; }
.table-modern thead th { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; background: #f8fafc; border-bottom: 1px solid var(--line); padding: .75rem 1rem; white-space: nowrap; }
.table-modern td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--line); }
.table-modern tbody tr { transition: background .15s; }
.table-modern tbody tr:hover { background: #fafbff; }
.table-modern tbody tr:last-child td { border-bottom: 0; }
.thumb-sm { width: 64px; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--brand-50); }
.thumb-sm .car-placeholder svg { width: 88%; }
.cell-title { font-weight: 700; color: var(--ink); }
.cell-sub { font-size: .78rem; color: var(--muted); font-weight: 500; }

/* ---------- Filter tabs ---------- */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-tab { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--body); font-weight: 700; font-size: .83rem; transition: .15s; }
.filter-tab:hover { border-color: #c9cfe0; color: var(--ink); }
.filter-tab .count { background: var(--bg); border-radius: 999px; padding: .05rem .5rem; font-size: .72rem; }
.filter-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-tab.active .count { background: rgba(255, 255, 255, .16); }

.tabs-modern { gap: .25rem; border-bottom: 1px solid var(--line); flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
.tabs-modern .nav-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; color: var(--muted); font-weight: 700; padding: .8rem 1rem; white-space: nowrap; display: flex; align-items: center; gap: .45rem; background: none; }
.tabs-modern .nav-link:hover { color: var(--ink); }
.tabs-modern .nav-link.active { color: var(--brand-700); border-bottom-color: var(--brand); background: transparent; }

/* ---------- Alerts / banners ---------- */
.alert-item { display: flex; gap: .85rem; padding: .8rem .95rem; border-radius: 14px; align-items: flex-start; }
.alert-item + .alert-item { margin-top: .5rem; }
.alert-item .ai-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 1.05rem; }
.alert-item .ai-title { font-weight: 800; color: var(--ink); font-size: .9rem; }
.alert-item .ai-text { font-size: .84rem; color: var(--body); }
.alert-danger-soft { background: var(--danger-50); } .alert-danger-soft .ai-icon { background: #fee2e2; color: var(--danger-700); }
.alert-warning-soft { background: var(--warning-50); } .alert-warning-soft .ai-icon { background: #fef3c7; color: var(--warning-700); }
.alert-info-soft { background: var(--info-50); } .alert-info-soft .ai-icon { background: #dbeafe; color: var(--info-700); }
.banner { border-radius: 16px; padding: 1rem 1.2rem; display: flex; gap: .9rem; align-items: flex-start; font-weight: 500; }
.banner > i { font-size: 1.35rem; line-height: 1.2; }
.banner-warning { background: linear-gradient(90deg, #fffbeb, #fff7ed); border: 1px solid #fde68a; color: #92400e; }
.banner-danger { background: var(--danger-50); border: 1px solid #fecaca; color: var(--danger-700); }
.banner-info { background: var(--info-50); border: 1px solid #bfdbfe; color: var(--info-700); }
.banner-success { background: var(--success-50); border: 1px solid #a7f3d0; color: var(--success-700); }

/* ---------- Flash toasts ---------- */
.flash-stack { position: fixed; top: 86px; right: 20px; z-index: 1090; display: flex; flex-direction: column; gap: .6rem; max-width: 400px; }
.flash { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border-radius: 14px; padding: .9rem 1rem; box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: slideIn .35s ease; font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.flash > .bi { font-size: 1.2rem; line-height: 1.3; }
.flash-success { border-left: 4px solid var(--success); } .flash-success > .bi { color: var(--success); }
.flash-error { border-left: 4px solid var(--danger); } .flash-error > .bi { color: var(--danger); }
.flash .btn-close { margin-left: auto; font-size: .65rem; padding: .4rem; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Empty states & charts ---------- */
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .ic { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 1rem; display: grid; place-items: center; font-size: 1.9rem; background: var(--brand-50); color: var(--brand-600); }
.empty h3 { font-size: 1.15rem; }
.chart-box { position: relative; width: 100%; }
.chart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; color: #94a3b8; border-radius: 14px; border: 1px dashed var(--line); font-weight: 600; font-size: .9rem; background: #fcfdff; }
.chart-empty i { font-size: 1.8rem; }

/* ---------- Timeline ---------- */
.timeline { display: flex; justify-content: space-between; position: relative; gap: .5rem; }
.timeline::before { content: ""; position: absolute; top: 19px; left: 10%; right: 10%; height: 3px; background: var(--line); border-radius: 3px; }
.tl-step { position: relative; z-index: 1; text-align: center; flex: 1; }
.tl-dot { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto .55rem; color: #94a3b8; font-size: 1rem; }
.tl-step.done .tl-dot { background: var(--grad); border-color: #fff; color: #fff; box-shadow: 0 8px 18px -8px rgba(99, 102, 241, .9); }
.tl-step.stop .tl-dot { background: var(--danger-50); border-color: #fecaca; color: var(--danger-700); }
.tl-step .t { font-weight: 800; font-size: .84rem; color: var(--ink-2); }
.tl-step .s { font-size: .74rem; color: var(--muted); font-weight: 600; }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-size: .7rem; font-weight: 800; text-transform: uppercase; color: var(--muted); text-align: center; padding-bottom: .2rem; letter-spacing: .06em; }
.cal-day { min-height: 82px; border-radius: 12px; padding: .45rem .5rem; background: #fff; border: 1px solid var(--line); font-size: .76rem; display: flex; flex-direction: column; gap: .2rem; color: inherit; min-width: 0; }
.cal-day .d { font-weight: 800; color: var(--ink-2); font-size: .85rem; }
.cal-day .lbl { font-size: .68rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.cal-day.out { opacity: .38; }
.cal-day.past:not(.st-completed):not(.st-active):not(.st-confirmed):not(.st-pending) { background: #fafbfd; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal-day.today .d { color: var(--brand-700); }
.st-pending { background: var(--warning-50); border-color: #fde68a; } .st-pending .lbl { color: var(--warning-700); }
.st-confirmed { background: var(--info-50); border-color: #bfdbfe; } .st-confirmed .lbl { color: var(--info-700); }
.st-active { background: var(--brand-50); border-color: #c7d2fe; } .st-active .lbl { color: var(--brand-700); }
.st-completed { background: #f0fdf4; border-color: #bbf7d0; } .st-completed .lbl { color: var(--success-700); }
.st-blocked { background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 6px, #eef1f6 6px, #eef1f6 12px); border-color: #e2e8f0; } .st-blocked .lbl { color: #475569; }
.cal-legend { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .8rem; color: var(--muted); font-weight: 600; }
.cal-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .38rem; vertical-align: -1px; background: var(--c); border: 1px solid rgba(15, 23, 42, .08); }
@media (max-width: 767.98px) { .cal-day { min-height: 48px; padding: .3rem; } .cal-day .lbl { display: none; } }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-side { background: var(--grad-dark); color: #fff; padding: 4rem clamp(2rem, 5vw, 5rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.1; }
.auth-side p { color: #c7d2fe; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 3rem 1.25rem; }
.auth-card { width: 100%; max-width: 470px; }
.auth-card h1 { font-size: 1.9rem; }
.demo-box { border: 1px dashed #c7d2fe; background: #f8faff; border-radius: 14px; padding: .8rem 1rem; }
.demo-box button { border: 0; background: #fff; border-radius: 10px; padding: .45rem .7rem; font-size: .8rem; font-weight: 700; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.demo-box button:hover { background: var(--brand-50); }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (max-width: 991.98px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { display: none; } }

/* ---------- Rating input ---------- */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: .2rem; }
.rating-input input { position: absolute; opacity: 0; pointer-events: none; }
.rating-input label { font-size: 1.9rem; color: #e2e8f0; cursor: pointer; transition: color .15s, transform .15s; }
.rating-input label:hover { transform: scale(1.12); }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f59e0b; }

/* ---------- Photos (car form) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
.photo-item { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); background: var(--bg); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item .photo-actions { position: absolute; inset: auto 0 0 0; display: flex; gap: .3rem; justify-content: flex-end; padding: .4rem; background: linear-gradient(transparent, rgba(15, 23, 42, .65)); }
.photo-item .photo-actions .btn { padding: .22rem .5rem; font-size: .75rem; border-radius: 8px; }
.photo-item .cover-flag { position: absolute; top: 8px; left: 8px; }
.dropzone { display: block; border: 2px dashed #c9cfe0; border-radius: 16px; padding: 1.6rem 1rem; text-align: center; background: #fafbff; cursor: pointer; transition: .2s; color: var(--muted); font-weight: 600; }
.dropzone:hover { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.dropzone i { font-size: 2rem; color: var(--brand-600); display: block; margin-bottom: .35rem; }
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; }
.preview-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.section-label { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }
.section-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Info list & misc ---------- */
.info-list { display: grid; grid-template-columns: auto 1fr; gap: .6rem 1.25rem; margin: 0; }
.info-list dt { color: var(--muted); font-weight: 600; font-size: .86rem; }
.info-list dd { margin: 0; font-weight: 600; color: var(--ink-2); font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.row-item { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.row-item:last-child { border-bottom: 0; }
.modal-content { border-radius: 20px; border: 0; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--line); padding: 1.1rem 1.4rem; }
.modal-header .modal-title { font-weight: 800; color: var(--ink); }
.modal-body { padding: 1.4rem; }
.modal-footer { border-top: 1px solid var(--line); padding: .9rem 1.4rem; }
.pagination-modern { display: flex; gap: .35rem; justify-content: center; flex-wrap: wrap; }
.pagination-modern a, .pagination-modern span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; padding: 0 .75rem; }
.pagination-modern a:hover { border-color: var(--brand); color: var(--brand-700); }
.pagination-modern .active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination-modern .disabled { opacity: .45; }
.status-hero { text-align: center; padding: 6rem 1rem; }
.status-hero .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.05em; }

/* ---------- Booking list (customer) ---------- */
.trip-card { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; transition: .2s; position: relative; align-items: center; }
.trip-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.trip-card .thumb { width: 150px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--brand-50); }
.trip-card h3 { font-size: 1.02rem; margin: 0; }
@media (max-width: 575.98px) { .trip-card { flex-direction: column; align-items: stretch; } .trip-card .thumb { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { background: #070b1a; color: #94a3b8; padding: 3.5rem 0 2rem; margin-top: 5rem; font-size: .92rem; }
.site-footer a { color: #cbd5e1; font-weight: 500; }
.site-footer a:hover { color: #fff; }
.site-footer h6 { color: #fff; font-weight: 800; margin-bottom: 1rem; font-size: .95rem; }
.site-footer .brand { color: #fff; }
.site-footer .list-clean li { margin-bottom: .55rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 2.5rem; padding-top: 1.5rem; }

/* =====================================================================
   Dashboard layout (provider + admin)
   ===================================================================== */
.dash { display: flex; min-height: 100vh; }
.dash-sidebar { width: 262px; flex-shrink: 0; background: #0a0f1f; color: #cbd5e1; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.2rem .9rem; overflow-y: auto;
  background-image: radial-gradient(520px 300px at 0% 0%, rgba(99, 102, 241, .28), transparent 60%); z-index: 1040; }
.dash-sidebar .brand { color: #fff; margin: .2rem .5rem 1.4rem; font-size: 1.12rem; white-space: nowrap; }
.side-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: #64748b; font-weight: 800; margin: 1rem .8rem .45rem; }
.side-link { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 12px; color: #cbd5e1; font-weight: 600; font-size: .92rem; transition: .15s; margin-bottom: 2px; width: 100%; text-align: left; }
.side-link i { font-size: 1.08rem; width: 1.2rem; text-align: center; color: #94a3b8; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.active { background: linear-gradient(90deg, rgba(99, 102, 241, .38), rgba(99, 102, 241, .06)); color: #fff; box-shadow: inset 3px 0 0 #818cf8; }
.side-link.active i { color: #a5b4fc; }
.side-badge { margin-left: auto; background: #f59e0b; color: #1f2937; font-size: .68rem; font-weight: 800; border-radius: 999px; padding: .1rem .5rem; }
.side-badge.danger { background: #ef4444; color: #fff; }
.side-card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); border-radius: 16px; padding: 1rem; margin: 1rem .2rem; font-size: .82rem; }
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dash-top { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1020; gap: 1rem; }
.dash-content { padding: 1.75rem 2rem 3rem; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.65rem; margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--muted); font-weight: 500; }
.dash-backdrop { display: none; }
@media (max-width: 991.98px) {
  .dash-sidebar { position: fixed; left: -280px; transition: left .25s ease; }
  .dash-sidebar.open { left: 0; box-shadow: var(--shadow-lg); }
  .dash-sidebar.open + .dash-backdrop { display: block; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 1035; }
  .dash-content { padding: 1.25rem 1rem 2.5rem; }
  .dash-top { padding: 0 1rem; }
}

/* Provider car header */
.car-hero { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.car-hero .thumb { width: 210px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; flex-shrink: 0; background: var(--brand-50); box-shadow: var(--shadow); }
.car-hero h1 { font-size: 1.7rem; margin: 0; }
.plate { display: inline-flex; align-items: center; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-weight: 700; font-size: .8rem; background: #fff; border: 1.5px solid #1e293b; color: #1e293b; border-radius: 6px; padding: .12rem .45rem; letter-spacing: .06em; }
.oil-card .big { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.fleet-card .media { aspect-ratio: 16 / 9; }

/* =====================================================================
   Languages
   ===================================================================== */
.lang-btn { padding: .45rem .7rem; gap: .4rem; font-size: .85rem; }
.lang-btn .bi { font-size: 1rem; color: var(--brand-600); }
.lang-code { display: inline-grid; place-items: center; min-width: 1.9rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; border-radius: 6px; background: var(--bg); color: var(--ink-2); padding: .12rem .3rem; }
.lang-btn .lang-code { background: transparent; padding: 0; min-width: 0; font-size: .78rem; }
.lang-switch .dropdown-item.active, .lang-switch .dropdown-item:active { background: var(--brand-50); color: var(--brand-700); }
.lang-switch .dropdown-item.active .lang-code { background: #fff; }
body.is-switching main, body.is-switching .dash-content { opacity: .45; transition: opacity .15s; pointer-events: none; }

/* Georgian and Russian words are longer: let headings and buttons wrap nicely. */
:lang(ka) h1, :lang(ka) .section-title, :lang(ru) h1, :lang(ru) .section-title { overflow-wrap: anywhere; }
/* Georgian words are long (e.g. "პროვაიდერებისგან" ≈ 10em): keep the hero title small enough to never split a word */
:lang(ka) .hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.15; }
:lang(ru) .hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
:lang(ka) .btn, :lang(ru) .btn { white-space: normal; }

/* Caption editor (admin) */
.caption-row { display: grid; grid-template-columns: minmax(180px, 1fr) repeat(var(--langs), minmax(200px, 1.4fr)) auto; gap: .6rem; align-items: start; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.caption-row:last-child { border-bottom: 0; }
.caption-row.is-new { background: linear-gradient(90deg, #fffbeb, transparent 40%); }
.caption-head { position: sticky; top: 66px; z-index: 5; background: #f8fafc; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.caption-key { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .78rem; color: var(--ink-2); word-break: break-word; }
.caption-row textarea { font-size: .86rem; min-height: 2.4rem; resize: vertical; padding: .4rem .6rem; border-radius: 10px; }
.caption-row textarea:placeholder-shown { background: #fffdf5; border-color: #fde68a; }
.save-state { font-size: .72rem; font-weight: 700; display: block; margin-top: .3rem; min-height: 1em; }
.lang-card { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.lang-card-stack { flex-direction: column; align-items: stretch; gap: 0; }
@media (max-width: 991.98px) { .caption-row { grid-template-columns: 1fr; } .caption-head { display: none; } }
