/* ============ base ============ */
:root {
  --brand-navy: #082b51;
  --brand-red: #db1723;
  --brand-white: #ffffff;
  --primary: var(--brand-navy);
  --accent: var(--brand-red);
  --primary-hover: #061f3b;
  --accent-hover: #b9121c;
  --ink: color-mix(in srgb, var(--primary) 15%, #111b27);
  --muted: color-mix(in srgb, var(--primary) 25%, #5a6675);
  --line: color-mix(in srgb, var(--primary) 8%, #e2e8f0);
  --bg: color-mix(in srgb, var(--primary) 3%, #f8fafc);
  --danger: #c71720;
  --green: #1e8e5a;
  --radius: 10px;
  --font-en: 'Inter', 'Segoe UI', sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-en);
  background: #fff;
}

[lang="ar"] {
  font-family: var(--font-ar);
}

img { max-width: 100%; }
a { color: var(--primary); }

.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ============ buttons / alerts / misc ============ */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 10px 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, background .15s;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.button-group, .lang-toggle {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.btn:hover { filter: brightness(1.08); }
.btn-primary { background: var(--primary); color: var(--brand-white); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-white { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, 0.8); }
.btn-outline-white:hover { background: #fff; color: var(--primary) !important; border-color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-danger { background: #fdecea; color: var(--danger); }
.btn-lg { padding: 14px 34px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: .85rem; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: default; }

.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-block: 12px;
  font-weight: 600;
}
.alert-error { background: #fdecea; color: var(--danger); }
.alert-success { background: #e8f7ef; color: var(--green); }

.spinner {
  width: 34px; height: 34px;
  margin: 60px auto;
  border: 4px solid var(--line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.muted { color: var(--muted); }
code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: .85em;
}

/* ============ public site ============ */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 18px;
  flex-wrap: wrap;
}
.brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav-link:hover { background: var(--bg); color: var(--primary); }

.nav-lang-selector { margin-left: auto; }

/* Auth Group */
.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
[dir="rtl"] .nav-auth-group {
  margin-left: 0;
  margin-right: 20px;
  padding-left: 0;
  padding-right: 20px;
  border-left: none;
  border-right: 1px solid var(--line);
}
.nav-btn-login {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-btn-login:hover {
  background: var(--bg);
  color: var(--primary);
}
.nav-btn-signup {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 99px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 10px rgba(15, 76, 129, 0.15);
}
.nav-btn-signup:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 76, 129, 0.25);
  color: #fff;
}
.nav-user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, #f1f8ff);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.nav-btn-logout {
  color: var(--danger);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.nav-btn-logout:hover {
  background: #fdecea;
}

/* Custom Language Selector */
.custom-lang-selector {
  position: relative;
  display: inline-block;
}

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.lang-trigger:hover {
  border-color: var(--primary);
  background: var(--bg);
}

.lang-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.lang-label {
  font-weight: 600;
}

.lang-arrow {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.custom-lang-selector.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
  z-index: 100;
  animation: langFadeIn 0.15s ease-out;
}

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  transition: all 0.15s ease;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

.lang-option:hover {
  background: var(--bg);
  color: var(--primary);
}

.lang-option.active {
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  color: var(--primary);
  font-weight: 700;
}

@keyframes langFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: 48px 24px;
  margin-top: 60px;
}
.footer-inner { display: flex; flex-direction: column; gap: 32px; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.footer-col h3 { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; margin-top: 0; }
.footer-desc { color: var(--muted); line-height: 1.6; font-size: 0.95rem; margin: 0; }
.footer-links-list, .footer-contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links-list li .nav-link { color: var(--text); text-decoration: none; font-size: 0.95rem; transition: color 0.2s; display: inline-block; }
.footer-links-list li .nav-link:hover { color: var(--primary); transform: translateX(2px); }
html[dir="rtl"] .footer-links-list li .nav-link:hover { transform: translateX(-2px); }
.footer-contact-list li { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--muted); line-height: 1.4; }
.footer-contact-list li .material-symbols-outlined { font-size: 1.2rem; color: var(--primary); flex-shrink: 0; }
.footer-payment-cards { display: flex; flex-wrap: wrap; gap: 10px; }
.payment-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 6px 14px; font-size: 0.85rem; font-weight: 700; color: var(--text); box-shadow: 0 2px 4px rgba(0,0,0,0.02); display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s; }
.payment-card:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.payment-card.mada { color: #008800; border-color: rgba(0,136,0,0.2); }
.payment-card.visa { color: #1a1f71; border-color: rgba(26,31,113,0.2); }
.payment-card.apple-pay { background: #000; color: #fff; border-color: #000; }
.payment-card.mastercard { color: #eb001b; border-color: rgba(235,0,27,0.2); }
.footer-bottom { border-top: 1px dashed var(--line); padding-top: 24px; text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 10px; }

.page-status { text-align: center; padding: 90px 20px; }
.page-status h1 { font-size: 3.4rem; margin-bottom: 4px; }

/* blocks */
.page-blocks { padding-bottom: 30px; }
.block { margin-block: 26px; }

.block-hero {
  background: radial-gradient(circle at 80% 20%, rgba(219, 23, 35, 0.18) 0%, transparent 40%), radial-gradient(circle at 20% 80%, rgba(8, 43, 81, 0.55) 0%, transparent 50%), linear-gradient(135deg, var(--primary) 0%, #041a33 100%);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 120px 0;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  box-shadow: inset 0 -100px 100px rgba(0, 0, 0, 0.15);
}
.block-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
  pointer-events: none;
}
.block-hero h1 {
  font-size: 3.6rem;
  font-weight: 900;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  background: linear-gradient(120deg, #ffffff 40%, #e3f2fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.hero-subtitle {
  font-size: 1.3rem;
  max-width: 720px;
  margin: 0 auto 36px;
  opacity: .90;
  line-height: 1.8;
  color: #f1f8ff;
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.hero-actions .btn {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease;
}
.hero-actions .btn:hover {
  transform: translateY(-3px);
}
.hero-actions .btn-primary {
  background: var(--danger);
  color: #fff;
  box-shadow: 0 4px 15px rgba(199, 23, 32, 0.3);
  border: 2px solid var(--danger);
}
.hero-actions .btn-primary:hover {
  background: color-mix(in srgb, var(--danger) 85%, #000);
  color: #fff !important;
  box-shadow: 0 8px 25px rgba(199, 23, 32, 0.4);
}
.hero-actions .btn-outline-white {
  border: 2px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}
.hero-actions .btn-outline-white:hover {
  border-color: #fff;
  background: #fff;
  color: var(--primary) !important;
}

.block-text p { line-height: 2; font-size: 1.05rem; }

.block-image { text-align: center; }
.block-image img { border-radius: var(--radius); }
.image-caption { color: var(--muted); font-size: .9rem; }

.block-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.column-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.column-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(15, 76, 129, 0.08);
  border-color: var(--primary);
}
.column-icon {
  font-size: 2.2rem;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-bottom: 20px;
  transition: background 0.25s ease, color 0.25s ease;
}
.column-card:hover .column-icon {
  background: var(--primary);
  color: #fff;
}
.column-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
}
.column-card p {
  line-height: 1.8;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.column-card-action {
  margin-top: auto;
  padding-top: 16px;
  width: 100%;
}

/* data list block */
.block-data-list h2 { margin-bottom: 20px; }
.data-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.data-list-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.data-list-item:has(> .car-card) {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
}

/* public forms */
.koreanlines_platform-form {
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.form-title { margin-top: 0; }
.form-field { margin-bottom: 16px; }
.form-field > label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}
.required-mark { color: var(--danger); }

input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 35%, transparent);
  border-color: var(--primary);
}
input[type="checkbox"], input[type="radio"] { width: auto; }

.radio-group { display: flex; flex-direction: column; gap: 6px; }
.radio-option { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* ============ admin panel ============ */
.admin {
  font-family: var(--font-en);
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
}

.admin-sidebar {
  position: fixed;
  z-index: 50;
  inset-block: 0;
  inset-inline-start: 0;
  width: 230px;
  height: 100vh;
  height: 100dvh;
  padding: 18px 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: var(--primary);
  color: #d7dee8;
  display: flex;
  flex-direction: column;
}
.admin-logo {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  padding: 6px 12px 20px;
}
.admin-logo-sub {
  margin-left: 8px;
  font-size: .7rem;
  background: var(--primary);
  border-radius: 6px;
  padding: 2px 7px;
  vertical-align: middle;
}
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #d7dee8;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.admin-nav-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav-link.is-active {
  position: relative;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(110deg, rgba(219, 23, 35, .92), rgba(219, 23, 35, .68));
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.admin-language-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin: 0 4px 16px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 11px;
  background: rgba(255, 255, 255, .07);
}

.admin-language-option {
  appearance: none;
  min-width: 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, .7);
  font: inherit;
  font-size: .75rem;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.admin-language-option:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.admin-language-option.is-active {
  color: var(--primary);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

.admin-language-option:disabled { cursor: wait; opacity: .7; }

/* ============ LOCALIZATION CATALOG ========================= */
.localizations-page { max-width: 1420px; }
.localization-guide-card {
  overflow: hidden;
  border-inline-start: 5px solid var(--primary);
  background: linear-gradient(125deg, #fff 0%, #f3f8fd 100%);
}
.localization-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.localization-guide-head h2 { margin: 0 0 6px; color: var(--primary); }
.localization-guide-head p { margin: 0; }
.localization-guide-badge {
  flex: 0 0 auto;
  padding: 6px 11px;
  border-radius: 999px;
  background: #e8f7ef;
  color: #08784a;
  font-size: .75rem;
  font-weight: 850;
}
.localization-rules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.localization-rule {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #dce5ef;
  border-radius: 13px;
  background: rgba(255, 255, 255, .86);
}
.localization-rule-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}
.localization-rule strong { color: #19344f; }
.localization-rule p { margin: 5px 0 9px; color: #657487; font-size: .83rem; line-height: 1.45; }
.localization-rule code { display: block; overflow-wrap: anywhere; color: #a50f1a; font-size: .75rem; }
.localization-tip { margin-top: 14px; padding: 12px 14px; border-radius: 11px; background: #fff5dc; color: #6d4b08; font-size: .84rem; }
.localization-create-card { padding: 0; overflow: hidden; }
.localization-create-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 14px; padding: 18px 20px 5px; }
.localization-search-card { padding-block: 14px; }
.localization-search-card .field-row { margin: 0; }
.localizations-page .lang-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.localization-table-card { padding: 0; overflow: hidden; }
.localization-table { table-layout: fixed; }
.localization-table th,
.localization-table td { padding: 12px 14px; }
.localization-table th:nth-child(1),
.localization-table td:nth-child(1) { width: 28%; }
.localization-table th:nth-child(2),
.localization-table td:nth-child(2),
.localization-table th:nth-child(3),
.localization-table td:nth-child(3) { width: 31%; }
.localization-table th:nth-child(4),
.localization-table td:nth-child(4) { width: 110px; text-align: center; }
.localization-table input { width: 100%; min-width: 0; }
.localization-table code { display: block; overflow-wrap: anywhere; color: #173b61; }
.localization-table td:last-child .btn { min-width: 78px; }

@media (max-width: 900px) {
  .localization-create-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .localization-guide-head { flex-direction: column; }
  .localization-rules-grid { grid-template-columns: 1fr; }
  .localization-table-card { overflow: visible; border: 0; background: transparent; }
  .localization-table,
  .localization-table tbody,
  .localization-table tr,
  .localization-table td { display: block; width: 100%; }
  .localization-table thead { display: none; }
  .localization-table tbody { display: grid; gap: 14px; }
  .localization-table tr {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(8, 43, 81, .05);
  }
  .localization-table td,
  .localization-table td:nth-child(n) {
    width: 100%;
    padding: 7px 0;
    border: 0;
    text-align: start;
  }
  .localization-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .localization-table td:last-child { padding-top: 10px; }
  .localization-table td:last-child .btn { width: 100%; }
}
.admin-nav-link.is-active::before {
  content: "";
  position: absolute;
  inset-block: 8px;
  inset-inline-start: -8px;
  width: 3px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, .7);
}
.admin-nav-link.is-active .nav-icon {
  opacity: 1;
  transform: scale(1.08);
}
.nav-icon { width: 18px; text-align: center; opacity: .8; }
.admin-nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-nav-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-inline-start: auto;
  padding-inline: 6px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .16);
  font-size: .68rem;
  font-weight: 900;
  line-height: 1;
}
.admin-nav-count.tone-urgent { background: #db1723; }
.admin-nav-count.tone-waiting { color: #422b00; background: #ffc84a; }
.admin-nav-count.tone-new { background: #1671c5; }
.admin-nav-link.is-active .admin-nav-count {
  color: var(--primary);
  border-color: #fff;
  background: #fff;
}
.admin-sidebar-footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 14px 4px 4px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: var(--primary);
}

.nav-section-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 8px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.nav-group-header {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
  padding-left: 8px;
  font-weight: 600;
}

.admin-main {
  flex: 1;
  min-width: 0;
  width: calc(100% - 230px);
  margin-inline-start: 230px;
}
.admin-page { padding: 28px 32px; max-width: 1200px; }
.admin-page h1 { margin: 0; font-size: 1.5rem; }
.admin-page h2 { font-size: 1.05rem; margin: 0 0 14px; }

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.head-actions { display: flex; align-items: center; gap: 10px; }
.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  margin-bottom: 4px;
}
.back-link:hover { color: var(--primary); }
.save-notice { color: var(--green); font-weight: 600; font-size: .9rem; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.stat-card:hover { border-color: var(--primary); }
.stat-value { font-size: 1.9rem; font-weight: 700; color: var(--primary); }
.stat-label { color: var(--muted); font-weight: 600; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }

/* ============ ADMIN CUSTOM DIALOGS ======================== */
.admin-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 18, 34, .68);
  backdrop-filter: blur(7px);
  animation: admin-dialog-fade .18s ease-out;
}

.admin-dialog {
  width: min(100%, 560px);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgba(8, 43, 81, .14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 15, 35, .34);
  animation: admin-dialog-rise .2s ease-out;
}

.admin-dialog-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.admin-dialog-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #082b51;
  background: #eaf2fa;
  font-size: 26px;
}

.admin-dialog.tone-warning .admin-dialog-icon { color: #8a5200; background: #fff2cf; }
.admin-dialog.tone-danger .admin-dialog-icon { color: #b60f1c; background: #ffe8eb; }
.admin-dialog h2 { margin: 1px 0 6px; color: #082b51; font-size: 1.2rem; }
.admin-dialog p { margin: 0; color: #647487; line-height: 1.65; white-space: pre-line; }

.admin-dialog textarea {
  width: 100%;
  min-height: 112px;
  margin-top: 20px;
  padding: 13px 14px;
  resize: vertical;
  border: 1px solid #cad5e1;
  border-radius: 13px;
  color: #082b51;
  background: #f9fbfd;
  font: inherit;
}

.admin-dialog textarea:focus { border-color: #082b51; box-shadow: 0 0 0 4px rgba(8, 43, 81, .1); outline: 0; }

.admin-dialog-choices {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}

.admin-dialog-choice {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d7e0e9;
  border-radius: 12px;
  color: #34485e;
  background: #fafcfe;
  text-align: start;
  cursor: pointer;
}

.admin-dialog-choice:hover { border-color: #8ca2b8; background: #f2f7fc; }
.admin-dialog-choice.is-selected { border-color: #db1723; color: #8e1019; background: #fff1f3; box-shadow: 0 0 0 3px rgba(219, 23, 35, .08); }
.admin-dialog-choice .material-symbols-outlined { flex: 0 0 auto; color: #db1723; font-size: 20px; }

.admin-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e6ebf0;
}

.admin-dialog-actions .btn { min-width: 110px; min-height: 42px; }

@keyframes admin-dialog-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes admin-dialog-rise { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .admin-dialog-backdrop { align-items: end; padding: 10px; }
  .admin-dialog { padding: 19px; border-radius: 20px; }
  .admin-dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-dialog-actions .btn { width: 100%; }
}
.row-actions { display: flex; gap: 12px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.table-scroll { overflow-x: auto; }

.badge {
  border-radius: 99px;
  padding: 3px 11px;
  font-size: .78rem;
  font-weight: 700;
}
.badge-green { background: #e8f7ef; color: var(--green); }
.badge-gray { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.badge-info { background: #e8f1fb; color: #1d5f9f; }
.badge-warning { background: #fff5dc; color: #926000; }
.badge-success { background: #e8f7ef; color: var(--green); }
.badge-neutral { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }

.logged-in-hint { font-size: 0.85rem; font-style: italic; }

/* editor layout */
.editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 980px) {
  .editor-layout { grid-template-columns: 1fr; }
}

.block-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}
.block-item:hover { border-color: var(--primary); }
.block-item.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}
.block-item-main { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.block-type { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.block-preview {
  color: var(--muted);
  font-size: .85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.block-item-actions { display: flex; gap: 2px; flex-shrink: 0; }

.add-block-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.panel-switch { margin-top: 10px; }

.field-row { margin-bottom: 14px; }
.field-row > label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 5px;
}
.field-hint {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  margin-top: 4px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9rem;
  margin-block: 10px;
}

.field-card { padding: 14px 16px; }
.field-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
@media (max-width: 700px) { .field-grid { grid-template-columns: 1fr; } }

.setting-row {
  display: grid;
  grid-template-columns: 240px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-block: 10px;
  border-bottom: 1px solid var(--line);
}
.setting-row:last-child { border-bottom: none; }
.setting-key { min-width: 0; }
.setting-new { background: var(--bg); border-radius: 8px; padding: 12px; margin-top: 10px; }
@media (max-width: 700px) { .setting-row { grid-template-columns: 1fr; } }

.marketplace-settings-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 18px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid #d9e3ed;
  border-radius: 14px;
  background: #f3f6f9;
  scrollbar-width: thin;
}

.marketplace-settings-tab {
  display: inline-flex;
  min-width: 145px;
  min-height: 46px;
  flex: 1 0 145px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #53657a;
  font: inherit;
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.marketplace-settings-tab:hover {
  border-color: #d3dfeb;
  background: #fff;
  color: #082b51;
}

.marketplace-settings-tab.is-active {
  border-color: #082b51;
  background: #082b51;
  color: #fff;
  box-shadow: 0 4px 11px rgba(8, 43, 81, .2);
}

.marketplace-settings-tab.is-active .material-symbols-outlined { color: #fff; }
.marketplace-settings-tab .material-symbols-outlined { flex: 0 0 auto; font-size: 18px; line-height: 1; }

.marketplace-settings-panel { padding: 0; overflow: hidden; }
.marketplace-settings-panel-head {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #dce4ec;
  background: linear-gradient(115deg, #f7fafd, #fff);
}
.marketplace-settings-panel-head h2 { margin: 5px 0 7px; color: #082b51; }
.marketplace-settings-panel-head p { max-width: 850px; margin: 0; color: #64748b; line-height: 1.55; }
.marketplace-settings-panel > .setting-row,
.marketplace-settings-panel > .alert { margin-inline: 24px; }
.marketplace-settings-leading { padding: 18px 24px 0; }
.marketplace-settings-fields { padding: 4px 24px 18px; }

.sandbox-mode-stack {
  display: grid;
  gap: 12px;
}

.sandbox-mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 15px 17px;
  border: 1px solid;
  border-inline-start-width: 5px;
  border-radius: 14px;
}

.sandbox-mode-card.is-sandbox {
  border-color: #f1b641;
  background: linear-gradient(110deg, #fffaf0, #fffdf7);
}

.sandbox-mode-card.is-live {
  border-color: #46a87a;
  background: linear-gradient(110deg, #f1fbf6, #fbfefc);
}

.sandbox-mode-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.sandbox-mode-copy strong {
  color: #142d48;
  font-size: .95rem;
}

.sandbox-mode-copy .field-hint {
  max-width: 680px;
  margin: 0;
  line-height: 1.4;
}

.sandbox-mode-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
}

.sandbox-mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 96px;
  padding: 7px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .035em;
}

.is-sandbox .sandbox-mode-badge { color: #8a5700; background: #fff3cf; }
.is-live .sandbox-mode-badge { color: #08784a; background: #dcf6e8; }

.sandbox-mode-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px currentColor;
  opacity: .75;
}

@media (max-width: 850px) {
  .marketplace-settings-tabs { scroll-snap-type: x proximity; }
  .marketplace-settings-tab { flex-basis: 155px; scroll-snap-align: start; }
}

@media (max-width: 520px) {
  .marketplace-settings-tabs { scroll-snap-type: x mandatory; }
  .marketplace-settings-tab { min-width: 145px; flex-basis: 145px; }
  .marketplace-settings-panel-head { padding: 19px 17px 16px; }
  .marketplace-settings-panel > .setting-row,
  .marketplace-settings-panel > .alert { margin-inline: 16px; }
  .marketplace-settings-leading { padding: 15px 16px 0; }
  .marketplace-settings-fields { padding-inline: 16px; }
  .sandbox-mode-card { align-items: stretch; flex-direction: column; gap: 13px; }
  .sandbox-mode-actions { justify-content: space-between; }
  .sandbox-mode-badge { min-width: 0; }
}

/* ============ Admin Authentication Styles ============ */
.admin-loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background: #0f1a24;
}

.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100vw;
  background: radial-gradient(circle at 10% 20%, rgba(15,26,36,1) 0%, rgba(26,45,64,1) 90.1%);
  padding: 20px;
  box-sizing: border-box;
}

.login-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 420px;
  padding: 40px;
  box-sizing: border-box;
  text-align: center;
}

.login-logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #101c2c;
  margin-bottom: 24px;
}
.login-logo-sub {
  margin-left: 8px;
  font-size: 0.8rem;
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  vertical-align: middle;
}

.login-card h2 {
  font-size: 1.3rem;
  color: #1a202c;
  margin: 0 0 8px;
  font-weight: 700;
}

.login-desc {
  font-size: 0.9rem;
  color: #718096;
  margin: 0 0 28px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--primary);
}

.btn-block {
  display: block;
  width: 100%;
}

.admin-user-info {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: #a0aec0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 10px;
}
.admin-user-info .user-name {
  font-weight: 600;
  color: #fff;
}
.admin-user-info .user-email {
  font-size: 0.75rem;
  word-break: break-all;
  margin-top: 2px;
}

.logout-btn {
  margin-bottom: 14px;
}

/* ============ car cards (ported for koreanlines data_list) ============ */
.cars-section {
  padding-block: 40px;
}
.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 28px;
  color: var(--ink);
}
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.car-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15, 76, 129, 0.12);
}
.car-image-area {
  height: 180px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.car-image-area .material-symbols-outlined {
  font-size: 4.5rem;
  opacity: 0.18;
}
.car-card-name-overlay {
  position: absolute;
  bottom: 14px;
  right: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.car-badge-status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  background: rgba(255,255,255,0.92);
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.car-badge-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}
.car-badge-status.available::before {
  background: var(--green);
}
.car-badge-status.available {
  color: var(--green);
}
.car-badge-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  background: rgba(22, 33, 46, 0.8);
  color: #fff;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
}
.car-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.car-card-content > button {
  margin-top: auto;
}
.car-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.car-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.car-card-serial {
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--muted);
  font-weight: 600;
}
.car-card-subtitle {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
  margin-top: 0;
}
.car-specs {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.car-spec-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--ink);
  font-weight: 600;
  background: var(--bg);
  padding: 4px 8px;
  border-radius: 6px;
}
.car-spec-item .material-symbols-outlined {
  font-size: 1rem;
  color: var(--muted);
}
.car-card-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.car-card-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary);
}
.car-card-location {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.car-card-location .material-symbols-outlined {
  font-size: 0.95rem;
}

/* ============ interactive image gallery ============ */
.block-gallery {
  margin-block: 60px;
}
.gallery-section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
  margin-bottom: 36px;
}
.gallery-wrapper {
  display: flex;
  gap: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}
.gallery-main-display {
  flex: 1.4;
  position: relative;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  min-height: 450px;
}
.gallery-img-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}
.gallery-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.gallery-main-display:hover .gallery-img-container img {
  transform: scale(1.03);
}
.gallery-caption-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(10, 20, 40, 0.88) 70%);
  color: #ffffff;
  padding: 50px 24px 24px;
  z-index: 2;
}
.gallery-caption-overlay h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.gallery-caption-overlay p {
  font-size: 0.95rem;
  opacity: 0.9;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.gallery-steps-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #fcfdfe;
}
[dir="rtl"] .gallery-steps-list {
  border-left: none;
  border-right: 1px solid var(--line);
}
.gallery-step-tab {
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s, border-left-color 0.25s;
  border-left: 4px solid transparent;
}
[dir="rtl"] .gallery-step-tab {
  border-left: none;
  border-right: 4px solid transparent;
}
.gallery-step-tab:last-child {
  border-bottom: none;
}
.gallery-step-tab:hover {
  background: rgba(15, 76, 129, 0.02);
}
.gallery-step-tab.active {
  background: rgba(15, 76, 129, 0.05);
  border-left-color: var(--primary);
}
[dir="rtl"] .gallery-step-tab.active {
  border-left-color: transparent;
  border-right-color: var(--primary);
}
.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.25s, color 0.25s;
}
.gallery-step-tab.active .step-badge {
  background: var(--primary);
  color: #ffffff;
}
.step-tab-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.step-tab-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  transition: color 0.25s;
}
.gallery-step-tab.active h4 {
  color: var(--primary);
}
.step-tab-content p {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .gallery-wrapper {
    flex-direction: column;
  }
  .gallery-main-display {
    min-height: 300px;
  }
  .gallery-img-container {
    position: relative;
    height: 300px;
  }
  .gallery-steps-list {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  [dir="rtl"] .gallery-steps-list {
    border-right: none;
  }
  .gallery-step-tab {
    padding: 16px 20px;
  }
}


/* ============ Toggle Switch ============ */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.toggle-switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e0;
  transition: .3s;
  border-radius: 34px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

input:checked + .toggle-slider {
  background-color: var(--green);
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px var(--green);
}

input:checked + .toggle-slider:before {
  transform: translateX(22px);
}

.toggle-label-text {
  margin-left: 10px;
  font-weight: 600;
  color: var(--ink);
  vertical-align: super;
}

/* ============================================================ */
/* ============ MARKETPLACE PREMIUM UI (Vanilla CSS) ============ */
/* ============================================================ */

/* --- Container & Grids --- */
.mk-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px;
}
.mk-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}
.mk-grid-2 {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 960px) {
  .mk-grid-2 { grid-template-columns: 1fr; }
}

/* --- Hero & Headers --- */
.mk-hero {
  text-align: center;
  margin-bottom: 60px;
  background-image: linear-gradient(to bottom, rgba(17, 24, 39, 0.5), rgba(17, 24, 39, 0.2)), url('/images/korean_car_hero.png');
  background-size: cover;
  background-position: center;
  padding: 100px 20px;
  border-radius: 24px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.mk-hero:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.4);
}
.mk-title-main {
  font-size: 3.5rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.mk-subtitle {
  font-size: 1.25rem;
  color: #f3f4f6;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* --- Search Bar --- */
.mk-search-bar {
  display: flex;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  padding: 6px;
  max-width: 800px;
  margin: 0 auto 60px;
}
.mk-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 16px 20px;
  font-size: 1.1rem;
  color: #1f2937;
  outline: none;
}
.mk-btn-search {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 0 30px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1.05rem;
}
.mk-btn-search:hover {
  background: #4338ca;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* --- Product Cards --- */
.mk-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  border: 1px solid #f3f4f6;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mk-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}
.mk-card-img-wrapper {
  position: relative;
  height: 260px;
  overflow: hidden;
}
.mk-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.mk-card:hover .mk-card-img {
  transform: scale(1.06);
}
.mk-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  opacity: 0.6;
  transition: opacity 0.3s;
}
.mk-card:hover .mk-card-overlay { opacity: 0.8; }

.mk-glass-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mk-card-price-overlay {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-weight: 900;
  font-size: 1.6rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mk-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.mk-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
  transition: color 0.2s;
}
.mk-card:hover .mk-card-title { color: var(--primary); }
.mk-card-desc {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mk-card-footer {
  border-top: 1px solid #f3f4f6;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mk-card-action {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: #eef2ff;
  padding: 6px 14px;
  border-radius: 99px;
}
.mk-arrow { color: #9ca3af; font-weight: bold; }

/* --- Product Detail --- */
.mk-breadcrumb {
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 30px;
}
.mk-breadcrumb a { color: var(--primary); text-decoration: none; }
.mk-breadcrumb a:hover { text-decoration: underline; }

.mk-detail-img-box {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
  position: relative;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mk-detail-img-box:hover {
  transform: scale(1.02);
  box-shadow: 0 35px 60px -15px rgba(0,0,0,0.4);
}
.mk-detail-img {
  width: 100%;
  height: 550px;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.mk-detail-img-box:hover .mk-detail-img {
  transform: scale(1.05);
}

.mk-detail-title {
  font-size: 3rem;
  font-weight: 900;
  color: #111827;
  margin: 0 0 16px 0;
  line-height: 1.1;
}
.mk-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.mk-price-main {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  margin: 0;
}
.mk-price-old {
  font-size: 1.25rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin: 0;
}
.mk-detail-desc {
  font-size: 1.1rem;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 32px;
}
.mk-specs-box {
  background: #f9fafb;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}
.mk-specs-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: #111827;
}
  .mk-specs-text {
    font-family: monospace;
    font-size: 0.95rem;
    color: #4b5563;
    white-space: pre-wrap;
    line-height: 1.8;
    margin: 0;
  }
  .mk-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
  }
  .mk-spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  }
  .mk-spec-label {
    font-size: 0.85rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .mk-spec-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
  }
.mk-action-row {
  display: flex;
  gap: 20px;
  margin-top: auto;
}
.mk-qty-box {
  display: flex;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 4px;
}
.mk-qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  color: #4b5563;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.2s;
}
.mk-qty-btn:hover { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.mk-qty-val {
  width: 44px;
  text-align: center;
  font-weight: 800;
  font-size: 1.1rem;
}
  .mk-btn-primary {
    flex: 1;
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 99px;
    padding: 16px 32px;
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.35);
    transition: transform 0.25s, box-shadow 0.25s, filter 0.25s;
  }
  .mk-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(79, 70, 229, 0.5);
    filter: brightness(1.1);
  }

/* --- Cart & Checkout --- */
.mk-cart-box {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  border: 1px solid #f3f4f6;
  overflow: hidden;
}
.mk-table {
  width: 100%;
  border-collapse: collapse;
}
.mk-table th {
  background: #f9fafb;
  padding: 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.05em;
  font-weight: 700;
  text-align: left;
}
.mk-table td {
  padding: 24px 20px;
  border-top: 1px solid #f3f4f6;
  vertical-align: middle;
}
.mk-cart-img-wrap {
  width: 100px;
  height: 100px;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}
.mk-cart-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.mk-item-info { display: flex; align-items: center; gap: 20px; }
.mk-item-title { font-weight: 800; font-size: 1.1rem; color: #111827; display: block; margin-bottom: 4px; }
.mk-item-subtitle { font-size: 0.85rem; color: #6b7280; }
.mk-cart-qty { background: #f3f4f6; font-weight: 800; padding: 8px 16px; border-radius: 8px; display: inline-block; }
.mk-cart-price { font-weight: 600; color: #4b5563; }
.mk-cart-total { font-weight: 900; font-size: 1.15rem; color: var(--primary); }
.mk-cart-summary {
  background: #f9fafb;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e5e7eb;
}
.mk-link-back { font-weight: 600; color: #6b7280; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.mk-link-back:hover { color: var(--primary); }
.mk-summary-details {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  border: 1px solid #f3f4f6;
  min-width: 300px;
  text-align: right;
}
.mk-subtotal-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 8px; }
.mk-subtotal-label { color: #6b7280; font-weight: 600; }
.mk-subtotal-val { font-size: 2rem; font-weight: 900; color: #111827; }
.mk-tax-note { font-size: 0.85rem; color: #9ca3af; margin-bottom: 24px; }

/* Checkout */
.mk-checkout-banner {
  background: #f9fafb;
  padding: 16px 32px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #4b5563;
}
.mk-form-section { padding: 40px; }
.mk-form-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 32px 0; }
.mk-input-group { margin-bottom: 24px; }
.mk-label { display: block; font-size: 0.9rem; font-weight: 700; color: #374151; margin-bottom: 8px; }
.mk-input {
  width: 100%;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.2s;
}
.mk-input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}
.mk-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 600px) { .mk-form-grid { grid-template-columns: 1fr; } }
.mk-checkout-actions {
  border-top: 1px solid #f3f4f6;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mk-btn-pay {
  background: #111827;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 18px 40px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}
.mk-btn-pay:hover:not([disabled]) {
  transform: translateY(-2px);
  background: #000;
  box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}
.mk-btn-pay[disabled] { opacity: 0.6; cursor: not-allowed; }

.mk-success-box {
  background: #fff;
  max-width: 600px;
  margin: 80px auto;
  border-radius: 32px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
  border: 1px solid #f3f4f6;
  position: relative;
  overflow: hidden;
}
.mk-success-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0; height: 12px;
  background: linear-gradient(90deg, #34d399, #059669);
}
.mk-success-icon {
  width: 90px;
  height: 90px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 30px;
  border: 2px solid #d1fae5;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.mk-success-title { font-size: 2.5rem; font-weight: 900; color: #111827; margin-bottom: 16px; }
.mk-success-desc { font-size: 1.1rem; color: #6b7280; margin-bottom: 40px; line-height: 1.6; }
.mk-success-id { background: #f3f4f6; padding: 4px 8px; border-radius: 6px; font-weight: 800; color: #374151; }

.mk-empty-state {
  text-align: center;
  padding: 80px 20px;
  background: #f9fafb;
  border-radius: 24px;
  border: 1px dashed #d1d5db;
}
.mk-empty-icon { font-size: 4rem; margin-bottom: 20px; opacity: 0.8; }
.mk-empty-title { font-size: 1.8rem; font-weight: 800; color: #111827; margin-bottom: 8px; }
.mk-empty-desc { color: #6b7280; margin-bottom: 30px; font-size: 1.1rem; }
.mk-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 100px auto;
}

.preview-image {
  height: 150px;
  margin-top: 10px;
  border-radius: 8px;
  object-fit: cover;
}
/* Image Upload UI */
.upload-zone {
  position: relative;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: hidden;
}

.upload-zone:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.upload-zone input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: #64748b;
}

.upload-zone-content .upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #94a3b8;
}

.upload-zone:hover .upload-icon {
  color: #3b82f6;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.gallery-item .preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .preview-image {
  transform: scale(1.05);
}

.remove-img-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.gallery-item:hover .remove-img-btn {
  opacity: 1;
  transform: scale(1);
}

.remove-img-btn:hover {
  background: rgb(220, 38, 38);
  transform: scale(1.1) !important;
}

.uploading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  color: #3b82f6;
  font-weight: 500;
}

.uploading-indicator::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 3px solid #bfdbfe;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
\n/* ============================================================ */
/* ============ STEPS TIMELINE COMPONENT ====================== */
/* ============================================================ */
.block-steps {
  margin-block: 52px;
}
.steps-section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
  margin-bottom: 48px;
}
.steps-timeline {
  display: flex;
  gap: 24px;
  position: relative;
}

.step-card {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number-badge {
  width: auto;
  min-width: 100px;
  padding: 0 24px;
  height: 54px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  border: 4px solid #ffffff;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: -27px; /* Overlap the box */
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 71, 160, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.step-card:hover .step-number-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  box-shadow: 0 10px 24px rgba(205, 46, 58, 0.3);
  transform: translateY(-4px) scale(1.05);
}

.step-number {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  position: static;
  transition: all 0.3s ease;
}

.step-icon {
  font-size: 1.6rem;
  color: #ffffff;
  transition: all 0.3s ease;
  z-index: 2;
}

/* The actual box is now the step-content */
.step-content {
  background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
  border-radius: 20px;
  padding: 45px 24px 30px; /* Extra top padding for the overlapping badge */
  box-shadow: 0 10px 30px rgba(0, 71, 160, 0.05);
  border: 1px solid rgba(0, 71, 160, 0.1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  text-align: center;
}

.step-card:hover .step-content {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 71, 160, 0.12);
  border-color: rgba(205, 46, 58, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #fff5f6 100%);
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  transition: color 0.3s ease;
}

.step-card:hover .step-title {
  color: var(--accent);
}

.step-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 960px) {
  .steps-timeline {
    flex-direction: column;
    gap: 40px;
  }
}
\n/* ============================================================ */
/* ============ CAR SHOWCASE COMPONENT ======================== */
/* ============================================================ */
.block-car-showcase {
  margin-block: 60px;
}
.showcase-section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  text-align: center;
  margin-bottom: 32px;
}
.showcase-search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.showcase-search-box {
  position: relative;
  width: 100%;
  max-width: 500px;
}
.search-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--muted);
}
[dir="rtl"] .search-icon {
  left: auto;
  right: 16px;
}
.showcase-search-input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 1.05rem;
  outline: none;
  background: #f8fafc;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
[dir="rtl"] .showcase-search-input {
  padding: 16px 48px 16px 20px;
}
.showcase-search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 76, 129, 0.1);
}
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.showcase-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--line);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}
.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 30px rgba(15, 76, 129, 0.1);
  border-color: var(--primary);
}
.showcase-card-img-wrapper {
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  overflow: hidden;
}
.showcase-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.showcase-card:hover .showcase-card-img {
  transform: scale(1.05);
}
.showcase-card-content {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: 1;
}
.showcase-card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}
.showcase-card-action {
  width: 36px;
  height: 36px;
  background: #f1f5f9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.3s ease;
}
.showcase-card:hover .showcase-card-action {
  background: var(--primary);
  color: #ffffff;
}
.showcase-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Modal */
.showcase-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 20, 40, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.showcase-modal {
  background: #ffffff;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  animation: modalFadeIn 0.3s ease-out forwards;
}
@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.showcase-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  color: var(--ink);
  transition: all 0.2s ease;
}
[dir="rtl"] .showcase-modal-close {
  right: auto;
  left: 20px;
}
.showcase-modal-close:hover {
  background: var(--red);
  color: #ffffff;
  transform: rotate(90deg);
}
.showcase-modal-body {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  height: 100%;
  overflow-y: auto;
}
.showcase-modal-gallery {
  background: #f8fafc;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.showcase-carousel-main {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  background: #e2e8f0;
}
.showcase-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  animation: imgFadeIn 0.4s ease;
}
@keyframes imgFadeIn {
  from { opacity: 0.5; }
  to { opacity: 1; }
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}
.carousel-btn:hover {
  background: #ffffff;
  color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.showcase-carousel-thumbs {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.showcase-carousel-thumbs::-webkit-scrollbar {
  height: 6px;
}
.showcase-carousel-thumbs::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}
.showcase-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.showcase-thumb:hover {
  opacity: 0.9;
}
.showcase-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}
.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-modal-info {
  padding: 40px;
  background: #ffffff;
}
.showcase-modal-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 32px;
}
.showcase-specs-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.showcase-specs-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.specs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--primary);
}
.specs-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
}
.specs-text {
  font-size: 1rem;
  color: #4a5568;
  line-height: 1.8;
  margin: 0;
  white-space: pre-wrap;
}

@media (max-width: 960px) {
  .showcase-modal-body {
    grid-template-columns: 1fr;
  }
  .showcase-modal-gallery {
    padding: 20px;
  }
  .showcase-carousel-main {
    height: 250px;
  }
  .showcase-modal-info {
    padding: 20px;
  }
}
\n/* Steps Images Update */
.step-image-wrapper {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #f1f5f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.step-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.step-card:hover .step-image {
  transform: scale(1.05);
}

/* =========================================
   Car Showcase Block Styles (Premium Design)
   ========================================= */

.block-car-showcase {
  padding: 76px 0;
  background: transparent;
  position: relative;
}

.showcase-section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 40px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.showcase-search-container {
  max-width: 600px;
  margin: 0 auto 50px auto;
  position: relative;
}

.showcase-search-box {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 99px;
  padding: 8px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.showcase-search-box:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(15, 76, 129, 0.15);
  border-color: rgba(15, 76, 129, 0.2);
}

.search-icon {
  color: var(--text);
  font-size: 1.5rem;
  margin-right: 12px;
  opacity: 0.6;
}

[dir="rtl"] .search-icon {
  margin-right: 0;
  margin-left: 12px;
}

.showcase-search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 1.1rem;
  color: var(--ink);
  outline: none;
  font-family: inherit;
}

.showcase-search-input::placeholder {
  color: #94a3b8;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.car-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.car-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 76, 129, 0.12);
}

.car-image-container {
  width: 100%;
  height: 220px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.car-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.car-card:hover .car-image {
  transform: scale(1.08);
}

.car-image-placeholder {
  color: #cbd5e1;
  font-size: 4rem;
}

.car-image-placeholder.large {
  font-size: 8rem;
}

.car-info {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.car-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.car-specs-preview {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text);
  font-size: 1.2rem;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

/* Modal Styles */
.showcase-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.showcase-modal {
  background: #fff;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.showcase-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}

[dir="rtl"] .showcase-modal-close {
  right: auto;
  left: 20px;
}

.showcase-modal-close:hover {
  background: #fff;
  transform: scale(1.1);
  color: var(--danger);
}

.car-modal-content {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow-y: auto;
}

@media (max-width: 900px) {
  .car-modal-content {
    flex-direction: column;
  }
}

.car-modal-gallery {
  flex: 1.2;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  position: relative;
}

.car-modal-main-image {
  width: 100%;
  height: 450px;
  object-fit: cover;
  background: #f1f5f9;
}

.car-modal-gallery-nav {
  position: absolute;
  top: 225px;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
}

.gallery-nav-btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
  transition: all 0.2s;
}

.gallery-nav-btn:hover {
  background: #fff;
  transform: scale(1.1);
  color: var(--primary);
}

.car-modal-thumbnails {
  display: flex;
  gap: 12px;
  padding: 20px;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid var(--line);
}

.car-modal-thumbnails::-webkit-scrollbar {
  height: 6px;
}
.car-modal-thumbnails::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 6px;
}

.car-modal-thumb {
  width: 80px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  opacity: 0.6;
}

.car-modal-thumb:hover {
  opacity: 1;
}

.car-modal-thumb.active {
  border-color: var(--primary);
  opacity: 1;
}

.car-modal-details {
  flex: 1;
  padding: 40px;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.car-modal-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 30px 0;
  line-height: 1.2;
}

.car-modal-section {
  margin-bottom: 30px;
}

.car-modal-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.car-modal-section-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

.car-sold-badge {
  position: absolute;
  inset-block-start: 16px;
  inset-inline-start: 16px;
  z-index: 2;
  padding: 7px 15px;
  border-radius: 999px;
  background: #db1723;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(219, 23, 35, 0.25);
}

.car-sold-action {
  background: #f4f5f7;
  color: #667085;
  border: 1px solid #d0d5dd;
  cursor: not-allowed;
}

.car-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.car-detail-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
}

.car-detail-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.car-detail-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .car-details-grid {
    grid-template-columns: 1fr;
  }
}

.car-modal-actions {
  margin-top: auto;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.car-modal-actions .btn {
  width: 100%;
  padding: 16px;
  font-size: 1.1rem;
  justify-content: center;
}

.site-logo { height: 40px; width: auto; object-fit: contain; }
.site-logo-ar { height: 40px; width: auto; object-fit: contain; }
.site-logo-icon { height: 42px; width: auto; object-fit: contain; }


.admin-logo-img { height: 40px; width: auto; object-fit: contain; transform: scale(1.5); transform-origin: left center; }

.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-card-header { border-bottom: 1px solid #eee; padding-bottom: 10px; margin-bottom: 15px; }
.info-row { margin-bottom: 10px; }
.btn-full { width: 100%; }
.nav-group-header { color: #818cf8; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 24px; margin-bottom: 8px; padding-left: 16px; }

/* ============================================================ */
/* ============ APP DOWNLOAD COMPONENT ======================== */
/* ============================================================ */
.block-app-download .container {
  margin-block: 64px;
  background-image: linear-gradient(135deg, rgba(0, 31, 77, 0.95) 0%, rgba(0, 71, 160, 0.85) 100%), url('/images/premium_import_car.png');
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  color: #ffffff;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 71, 160, 0.2);
  padding: 0;
}

.app-download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.app-download-content {
  padding: 60px 40px;
}

.app-download-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: #ffffff;
}

.app-download-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 40px;
}

.app-store-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-app-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  background: #ffffff;
  color: var(--primary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
}

.btn-app-store:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  color: var(--accent);
  background: #ffffff;
}

.btn-app-store .material-symbols-outlined {
  font-size: 28px;
}

.app-download-image {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.app-download-image img {
  position: absolute;
  bottom: -20px;
  right: 0;
  width: 90%;
  max-width: 500px;
  object-fit: contain;
  transform: rotate(-5deg);
  transition: transform 0.5s ease;
}

.block-app-download:hover .app-download-image img {
  transform: rotate(0deg) scale(1.05);
}

[dir="rtl"] .app-download-image img {
  right: auto;
  left: 0;
  transform: rotate(5deg);
}
[dir="rtl"] .block-app-download:hover .app-download-image img {
  transform: rotate(0deg) scale(1.05);
}

@media (max-width: 960px) {
  .app-download-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .app-download-content {
    padding: 40px 20px 0;
    text-align: center;
  }
  .app-store-buttons {
    justify-content: center;
  }
  .app-download-image {
    min-height: 350px;
    display: flex;
    justify-content: center;
  }
  .app-download-image img {
    position: relative;
    right: auto;
    bottom: -20px;
    width: 80%;
  }
  [dir="rtl"] .app-download-image img {
    left: auto;
  }
}
}

/* Settings Image Uploader */
.setting-image-uploader {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.image-preview-area {
  display: flex;
  align-items: center;
  gap: 12px;
}
.image-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Feature Cards UI Improvement */
.feature-cards-container .columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.feature-cards-container .feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-cards-container .feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.feature-cards-container .feature-card-icon {
  font-size: 36px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 15%, transparent);
  padding: 16px;
  border-radius: 50%;
  margin-bottom: 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.feature-cards-container .feature-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  font-weight: 600;
  color: var(--text);
}

.feature-cards-container .feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 1rem;
}

/* --- App Features List --- */
.app-features-list {
  list-style: none !important;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: center;
  height: 100%;
}

.app-features-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.25rem;
  color: #ffffff;
}

.app-features-list .feature-icon {
  color: #ffffff;
  font-size: 1.8rem;
}

.app-features-list .feature-text {
  flex: 1;
}

.app-download-config-hint {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .66);
  font-size: .78rem;
}

.app-download-visual {
  min-height: 440px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(190px, 225px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: rgba(2, 20, 41, .28);
  border-inline-start: 1px solid rgba(255, 255, 255, .12);
}

.app-qr-link {
  color: inherit;
  text-decoration: none;
}

.app-qr-card {
  position: relative;
  padding: 15px 15px 18px;
  border-radius: 22px;
  background: #fff;
  color: var(--primary);
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .24);
  transition: transform .3s ease, box-shadow .3s ease;
}

.app-qr-link:hover .app-qr-card {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: 0 25px 48px rgba(0, 0, 0, .3);
}

[dir="rtl"] .app-qr-link:hover .app-qr-card {
  transform: translateY(-6px) rotate(1deg);
}

.app-qr-code {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 13px;
  overflow: hidden;
  background: #fff;
}

.app-qr-svg {
  display: block;
  width: 100%;
  height: 100%;
  shape-rendering: crispEdges;
}

.app-qr-logo {
  position: absolute;
  top: 44%;
  left: 50%;
  width: 29px;
  height: 29px;
  padding: 6px;
  object-fit: contain;
  border: 3px solid #fff;
  border-radius: 10px;
  background: var(--primary);
  transform: translate(-50%, -50%);
  box-shadow: 0 4px 10px rgba(8, 43, 81, .24);
}

.app-qr-card strong {
  display: block;
  margin-top: 10px;
  color: var(--primary);
  font-size: .94rem;
}

.app-qr-card > span {
  display: block;
  margin-top: 3px;
  color: #6a7887;
  font-size: .7rem;
}

.app-download-visual .app-features-list {
  gap: 1rem;
}

.app-download-visual .app-features-list li {
  font-size: .95rem;
  line-height: 1.5;
}

.app-download-visual .app-features-list .feature-icon {
  color: #ffbbc0;
  font-size: 1.45rem;
}

@media (max-width: 1100px) {
  .app-download-visual {
    grid-template-columns: minmax(180px, 215px) minmax(0, 1fr);
    padding: 28px;
  }
}

@media (max-width: 700px) {
  .app-download-visual {
    min-height: 0;
    padding: 28px 20px 34px;
    grid-template-columns: 1fr;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .app-qr-link {
    width: min(230px, 78vw);
    margin-inline: auto;
  }
  .app-download-visual .app-features-list {
    width: min(430px, 100%);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-qr-card { transition: none; }
}

/* ============================================================ */
/* ============ PURCHASE PROCESS COMPONENT ==================== */
/* ============================================================ */
.block-purchase-process {
  padding: 76px 0;
  background: #ffffff;
}

.process-section-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 52px;
}

.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 60px;
}

.process-step.step-reverse {
  flex-direction: row-reverse;
}

.process-step-image {
  flex: 1.2;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(20, 52, 93, 0.15);
  transition: transform 0.4s ease;
}

.process-step:hover .process-step-image {
  transform: translateY(-5px);
}

.process-step-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.process-step-content {
  flex: 1;
  padding: 20px;
}

.process-step-content .step-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 24px;
}

.process-step-content .step-desc {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--muted);
}

@media (max-width: 900px) {
  .process-step, .process-step.step-reverse {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
}
/* ============================================================ */
/* ============ BRANDS TICKER COMPONENT ======================= */
/* ============================================================ */
.block-brands-ticker {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  padding: 22px 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
  box-sizing: content-box;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 30s linear infinite;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

[lang="ar"] .ticker-track {
  animation: ticker-ar 30s linear infinite;
}

@keyframes ticker-ar {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

.ticker-item {
  width: 230px;
  height: 154px;
  margin: 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.brand-car-img {
  width: 218px;
  height: 123px;
  object-fit: cover;
  object-position: center;
  border-radius: 13px 13px 8px 8px;
  transition: transform 0.35s ease;
}

.ticker-brand-name {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.ticker-item:hover .brand-car-img {
  transform: scale(1.06);
}

/* ============ INSPECTION ASSIGNMENT ======================== */
.inspection-assignment-workspace {
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7e1ec;
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(8, 43, 81, .07);
}

.inspection-assignment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0, rgba(219, 23, 35, .28), transparent 240px),
    linear-gradient(120deg, #082b51, #0d3d70);
}

.inspection-assignment-summary > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.inspection-assignment-summary strong { font-size: 1.05rem; }
.inspection-assignment-summary > div:first-child span { color: rgba(255, 255, 255, .7); font-size: .76rem; }

.inspection-assignment-counts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.inspection-assignment-counts span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .09);
  font-size: .72rem;
  font-weight: 800;
}

.inspection-auto-assignment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin: 22px 24px 0;
  padding: 22px;
  border: 1px solid #cbdced;
  border-inline-start: 5px solid #db1723;
  border-radius: 17px;
  background: linear-gradient(105deg, #f6f9fc, #fff);
}

.inspection-auto-assignment h3 {
  margin: 0 0 7px;
  color: #082b51;
  font-size: 1rem;
}

.inspection-auto-assignment h3::before {
  content: "↻";
  display: inline-grid;
  width: 29px;
  height: 29px;
  margin-inline-end: 9px;
  place-items: center;
  border-radius: 9px;
  color: #db1723;
  background: #ffecef;
}

.inspection-auto-assignment p {
  max-width: 720px;
  margin: 0;
  line-height: 1.65;
}

.inspection-auto-assignment .alert {
  margin: 13px 0 0;
  padding: 10px 12px;
}

.inspection-auto-assignment .btn {
  min-width: 190px;
  min-height: 44px;
  white-space: nowrap;
}

.inspection-auto-controls {
  display: grid;
  width: min(100%, 330px);
  gap: 10px;
}

.inspection-auto-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #d7e1eb;
  border-radius: 13px;
  background: #fff;
}

.inspection-auto-mode > div {
  display: grid;
  gap: 3px;
}

.inspection-auto-mode strong {
  color: #082b51;
  font-size: .82rem;
}

.inspection-auto-mode span:not(.toggle-slider) {
  color: #708094;
  font-size: .7rem;
}

.inspection-auto-controls > small {
  color: #718096;
  text-align: center;
  font-size: .7rem;
}

.inspection-assignment-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 26px 24px 20px;
  color: #8492a2;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.inspection-assignment-divider::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 50%;
  height: 1px;
  background: #e1e7ee;
}

.inspection-assignment-divider span {
  position: relative;
  z-index: 1;
  padding: 0 13px;
  background: #fff;
}

.inspection-manual-title {
  margin: 0 24px 17px;
  color: #082b51;
  font-size: 1rem;
}

.inspection-manual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 0 24px;
}

.inspection-selection-field {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dce4ed;
  border-radius: 17px;
  background: #fbfcfe;
}

.inspection-selection-label {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.inspection-selection-label > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inspection-selection-label strong { color: #082b51; font-size: .88rem; }
.inspection-selection-label div span { color: #8290a0; font-size: .69rem; }

.inspection-step-number {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: #082b51;
  font-size: .78rem;
  font-weight: 900;
}

.inspection-select-shell {
  position: relative;
  display: flex;
  align-items: center;
}

.inspection-select-shell > .material-symbols-outlined {
  position: absolute;
  inset-inline-start: 14px;
  z-index: 1;
  pointer-events: none;
  color: #db1723;
  font-size: 20px;
}

.inspection-select-shell select {
  width: 100%;
  height: 50px;
  margin: 0;
  padding-inline-start: 45px;
  padding-inline-end: 34px;
  border: 1px solid #c9d5e2;
  border-radius: 13px;
  color: #082b51;
  background-color: #fff;
  font-weight: 700;
  text-overflow: ellipsis;
  cursor: pointer;
}

.inspection-select-shell input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding-inline-start: 45px;
  padding-inline-end: 14px;
  border: 1px solid #c9d5e2;
  border-radius: 13px;
  color: #082b51;
  background: #fff;
  font-weight: 700;
}

.inspection-inspector-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 50px;
  margin: 0;
  padding-inline: 45px 12px;
  border: 1px solid #c9d5e2;
  border-radius: 13px;
  color: #082b51;
  background: #fff;
  font: inherit;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
}

.inspection-inspector-trigger:hover:not(:disabled) { border-color: #6f8aa6; }
.inspection-inspector-trigger:disabled { cursor: not-allowed; opacity: .62; }
.inspection-inspector-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inspection-inspector-trigger .material-symbols-outlined { flex: 0 0 auto; color: #58708a; }

.inspection-inspector-close,
.order-inspector-close {
  appearance: none;
  position: absolute;
  z-index: 3;
  inset-inline-end: 6px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #58708a;
  cursor: pointer;
  transform: translateY(-50%);
}

.inspection-inspector-close:hover,
.order-inspector-close:hover { background: #edf3f8; color: var(--primary); }
.inspection-inspector-close .material-symbols-outlined,
.order-inspector-close .material-symbols-outlined { font-size: 20px; }

.inspection-select-shell input:hover:not(:disabled) { border-color: #6f8aa6; }
.inspection-select-shell input:focus { border-color: #082b51; box-shadow: 0 0 0 4px rgba(8, 43, 81, .1); outline: 0; }

.inspection-bulk-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
  align-items: start;
  gap: 18px;
  margin: 0 24px;
}

.inspection-queue-table-wrap {
  overflow: auto;
  max-height: 390px;
  border: 1px solid #dce4ed;
  border-radius: 17px;
  background: #fff;
}

.inspection-queue-table { min-width: 620px; }
.inspection-queue-table thead { position: sticky; top: 0; z-index: 2; background: #f4f7fa; }
.inspection-queue-table th:first-child,
.inspection-queue-table td:first-child { width: 48px; text-align: center; }
.inspection-queue-table input[type='checkbox'] { width: 18px; height: 18px; accent-color: #db1723; cursor: pointer; }
.inspection-queue-table tr:has(input:checked) td { background: #fff6f7; }

.inspector-search-field { position: relative; }

.inspection-inspector-options {
  max-height: 230px;
  margin-top: 8px;
  overflow-y: auto;
  border: 1px solid #d5dee8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 43, 81, .1);
}

.inspection-inspector-options button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  color: #082b51;
  background: #fff;
  text-align: start;
  cursor: pointer;
}

.inspection-inspector-options button:last-child { border-bottom: 0; }
.inspection-inspector-options button:hover { background: #f2f7fc; }
.inspection-inspector-options button span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.inspection-inspector-options button small { flex: 0 0 auto; color: #718096; }
.inspection-no-results { padding: 14px; text-align: center; }

.inspection-select-shell select:hover:not(:disabled) { border-color: #6f8aa6; }
.inspection-select-shell select:focus { border-color: #082b51; box-shadow: 0 0 0 4px rgba(8, 43, 81, .1); }
.inspection-select-shell select:disabled { cursor: not-allowed; opacity: .62; }

.inspection-assignment-connector {
  min-height: 145px;
  display: grid;
  place-items: center;
  color: #9aa7b5;
}

[dir="rtl"] .inspection-assignment-connector .material-symbols-outlined { transform: rotate(180deg); }

.inspection-selection-preview {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px 11px;
  border-radius: 11px;
  color: #126a4d;
  background: #eaf8f2;
}

.inspection-selection-preview > .material-symbols-outlined { flex: 0 0 auto; font-size: 19px; }
.inspection-selection-preview > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.inspection-selection-preview strong { overflow: hidden; font-size: .74rem; text-overflow: ellipsis; white-space: nowrap; }
.inspection-selection-preview div span { color: #4f806d; font-size: .65rem; }
.inspection-selection-preview.inspector { color: #155b92; background: #eaf4fc; }
.inspection-selection-preview.inspector div span { color: #567d9b; }

.inspection-manual-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 18px 24px;
  border-top: 1px solid #e2e8ef;
  background: #f8fafc;
}

.inspection-assignment-readiness {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #647487;
  font-size: .76rem;
}

.inspection-assignment-readiness .material-symbols-outlined { color: #1769aa; font-size: 19px; }

.inspection-manual-button {
  min-width: 170px;
  min-height: 43px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.inspection-manual-button .material-symbols-outlined { font-size: 19px; }

@media (max-width: 850px) {
  .inspection-bulk-workspace { grid-template-columns: 1fr; }
  .inspection-manual-grid { grid-template-columns: 1fr; }
  .inspection-assignment-connector { min-height: auto; height: 28px; transform: rotate(90deg); }
  [dir="rtl"] .inspection-assignment-connector { transform: rotate(90deg); }
}

@media (max-width: 620px) {
  .inspection-assignment-summary,
  .inspection-auto-assignment,
  .inspection-manual-footer { align-items: stretch; flex-direction: column; }
  .inspection-assignment-summary { padding: 18px; }
  .inspection-auto-assignment { display: flex; margin: 16px 16px 0; padding: 17px; }
  .inspection-auto-controls { width: 100%; }
  .inspection-auto-assignment .btn { width: 100%; }
  .inspection-assignment-divider { margin-inline: 16px; }
  .inspection-manual-title,
  .inspection-manual-grid,
  .inspection-bulk-workspace { margin-inline: 16px; }
  .inspection-selection-field { padding: 15px; }
  .inspection-manual-footer { margin-top: 16px; padding: 16px; }
  .inspection-manual-button { width: 100%; }
}

/* ============ INSPECTION REPORT DETAILS ==================== */
.inspection-attachments-card {
  margin-block: 20px;
  padding: 20px;
  border: 1px solid #cfdae7;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f6f9fc 100%);
  box-shadow: 0 12px 30px rgba(8, 43, 81, .07);
}

.inspection-attachments-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inspection-attachments-head h3,
.inspection-attachments-head p { margin: 0; }
.inspection-attachments-head p { margin-top: 4px; }

.inspection-attachments-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #e8f1fb;
  color: var(--primary);
}

.inspection-attachment-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 16px;
}

.inspection-attachment-stats span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf0f6;
  color: #506176;
  font-size: .74rem;
  font-weight: 800;
}

.inspection-upload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
  gap: 14px;
}

.inspection-upload-panel {
  min-width: 0;
  padding: 15px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #fff;
}

.inspection-upload-panel-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.inspection-upload-panel-head small,
.inspection-upload-limits { color: var(--muted); }

.inspection-file-picker {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 132px;
  padding: 18px;
  overflow: hidden;
  border: 1.5px dashed #9db2c9;
  border-radius: 13px;
  background: #f8fbfe;
  color: var(--primary);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.inspection-file-picker:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: #f0f6fc;
}

.inspection-file-picker.is-pdf { color: #b6121c; }
.inspection-file-picker > .material-symbols-outlined { font-size: 32px; }
.inspection-file-picker small { color: var(--muted); }
.inspection-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inspection-uploading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 132px;
  color: var(--primary);
  font-weight: 750;
}

.inspection-attached-list {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}

.inspection-attached-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 8px 9px;
  border-radius: 9px;
  background: #f2f6fa;
}

.inspection-attached-row > .material-symbols-outlined {
  color: var(--primary);
  font-size: 20px;
}

.inspection-attached-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspection-remove-attachment {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #b6121c;
  cursor: pointer;
}

.inspection-remove-attachment:hover { background: #fdebed; }
.inspection-remove-attachment .material-symbols-outlined { font-size: 18px; }
.inspection-upload-limits { margin: 12px 0 0; font-size: .76rem; }
.inspection-task-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.inspection-report-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.inspection-report-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.inspection-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.inspection-review-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid #f3cf82;
  border-inline-start: 4px solid #d99a16;
  border-radius: 12px;
  background: #fff9e9;
  color: #5d430b;
}

.inspection-review-callout p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.inspection-report-summary,
.inspection-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}

.inspection-summary-item,
.inspection-detail-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.inspection-summary-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inspection-report-section h2 {
  margin-top: 0;
}

.inspection-notes {
  margin-bottom: 0;
  line-height: 1.75;
  white-space: pre-wrap;
}

.inspection-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.inspection-media-card {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #eef2f7;
}

.inspection-media-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.inspection-media-card:hover .inspection-media-image {
  transform: scale(1.03);
}

.inspection-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.inspection-video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f172a;
}

.inspection-video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.inspection-media-link {
  display: block;
  padding: 10px 14px;
  color: #fff;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 700px) {
  .inspection-upload-grid { grid-template-columns: 1fr; }
  .inspection-attachments-card { padding: 15px; }
  .inspection-report-head {
    flex-direction: column;
  }

  .inspection-review-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .inspection-review-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .inspection-video-grid {
    grid-template-columns: 1fr;
  }
}

/* Korean Lines business story */
.brand-story {
  --story-navy: #082b51;
  --story-red: #db1723;
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(219, 23, 35, .09), transparent 24rem),
    radial-gradient(circle at 92% 42%, rgba(8, 43, 81, .1), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #f5f8fc 54%, #fff 100%);
}
.brand-story::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .45;
  background-image: radial-gradient(rgba(8, 43, 81, .12) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}
.brand-story .container { position: relative; z-index: 1; }
.brand-story-head {
  max-width: 790px;
  margin: 0 auto 44px;
  text-align: center;
}
.brand-story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--story-red);
  font-weight: 850;
  letter-spacing: .02em;
}
.brand-story-kicker .material-symbols-outlined { font-size: 20px; }
.brand-story-head h2 {
  margin: 12px 0 14px;
  color: var(--story-navy);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.brand-story-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.9;
}
.brand-proof-grid {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(0, 1.35fr);
  gap: 28px;
  align-items: stretch;
}
.inspection-stage-card,
.brand-proof-copy,
.korea-advantage {
  border: 1px solid rgba(8, 43, 81, .12);
  border-radius: 30px;
  box-shadow: 0 22px 55px rgba(8, 43, 81, .08);
}
.inspection-stage-card {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.14), transparent 35%),
    linear-gradient(145deg, #0b396b, #041a33);
  overflow: hidden;
}
.inspection-orbit {
  width: 230px;
  height: 230px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.inspection-orbit::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 50%;
}
.orbit-core {
  width: 132px;
  height: 132px;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #fff;
  color: var(--story-navy);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}
.orbit-core strong { font-size: 3.4rem; line-height: .95; }
.orbit-core span { max-width: 92px; font-size: .78rem; font-weight: 800; }
.orbit-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px;
  border-radius: 50%;
  background: var(--story-red);
  box-shadow: 0 0 0 5px rgba(219, 23, 35, .16);
  z-index: 3;
}
.orbit-dot:nth-child(1)  { transform: rotate(0deg) translateY(-108px); }
.orbit-dot:nth-child(2)  { transform: rotate(30deg) translateY(-108px); }
.orbit-dot:nth-child(3)  { transform: rotate(60deg) translateY(-108px); }
.orbit-dot:nth-child(4)  { transform: rotate(90deg) translateY(-108px); }
.orbit-dot:nth-child(5)  { transform: rotate(120deg) translateY(-108px); }
.orbit-dot:nth-child(6)  { transform: rotate(150deg) translateY(-108px); }
.orbit-dot:nth-child(7)  { transform: rotate(180deg) translateY(-108px); }
.orbit-dot:nth-child(8)  { transform: rotate(210deg) translateY(-108px); }
.orbit-dot:nth-child(9)  { transform: rotate(240deg) translateY(-108px); }
.orbit-dot:nth-child(10) { transform: rotate(270deg) translateY(-108px); }
.orbit-dot:nth-child(11) { transform: rotate(300deg) translateY(-108px); }
.orbit-dot:nth-child(12) { transform: rotate(330deg) translateY(-108px); }
.inspection-score {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 28px;
}
.inspection-score strong { font-size: 2rem; color: #fff; }
.inspection-score span { color: rgba(255,255,255,.7); font-weight: 700; }
.brand-proof-copy {
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
}
.brand-proof-copy > h3 {
  color: var(--story-navy);
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
}
.brand-proof-copy > p { color: var(--muted); line-height: 2; margin: 0; }
.brand-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 26px 0;
}
.brand-stat {
  padding: 14px 10px;
  border-radius: 16px;
  background: #f3f7fb;
  text-align: center;
}
.brand-stat strong { display: block; color: var(--story-red); font-size: 1.55rem; }
.brand-stat span { display: block; color: var(--story-navy); font-size: .78rem; font-weight: 750; }
.aftercare-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 17px;
  border-inline-start: 4px solid var(--story-red);
  border-radius: 14px;
  background: #fff4f4;
}
.aftercare-note .material-symbols-outlined { color: var(--story-red); }
.aftercare-note p { margin: 0; color: #4e5f72; line-height: 1.8; font-size: .93rem; }
.inspection-program { margin-top: 74px; }
.inspection-program-title {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.inspection-program-title p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.9;
}
.inspection-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: inspection-stage;
}
.inspection-program-card {
  position: relative;
  min-height: 245px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(8, 43, 81, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 28px rgba(8, 43, 81, .055);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.inspection-program-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -42px;
  bottom: -52px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(219, 23, 35, .08), transparent 68%);
  pointer-events: none;
}
.inspection-program-card:hover {
  transform: translateY(-6px);
  border-color: rgba(219, 23, 35, .4);
  box-shadow: 0 20px 42px rgba(8, 43, 81, .1);
}
.inspection-program-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.inspection-program-number {
  color: var(--story-red);
  font-size: 1.55rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -.04em;
}
.inspection-program-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #0b396b, #041a33);
  box-shadow: 0 9px 20px rgba(8, 43, 81, .16);
}
.inspection-program-icon .material-symbols-outlined { font-size: 23px; }
.inspection-program-card h4 {
  margin: 0 0 9px;
  color: var(--story-navy);
  font-size: 1.08rem;
}
.inspection-program-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.8;
}
.brand-services { margin-top: 74px; }
.brand-section-title { max-width: 720px; margin-bottom: 28px; }
.brand-section-title > span { color: var(--story-red); font-weight: 850; }
.brand-section-title h3 {
  color: var(--story-navy);
  margin: 8px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}
.brand-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.brand-service-card {
  min-height: 220px;
  padding: 22px 18px;
  border: 1px solid rgba(8, 43, 81, .12);
  border-radius: 22px;
  background: #fff;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.brand-service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(219, 23, 35, .5);
  box-shadow: 0 18px 38px rgba(8, 43, 81, .1);
}
.brand-service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--story-red);
  background: #fff0f1;
}
.brand-service-card h4 { color: var(--story-navy); font-size: 1.03rem; margin: 18px 0 9px; }
.brand-service-card p { color: var(--muted); font-size: .88rem; line-height: 1.7; margin: 0; }
.korea-advantage {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  overflow: hidden;
  margin-top: 74px;
  background: #fff;
}
.korea-climate {
  position: relative;
  min-height: 480px;
  padding: clamp(30px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 10%, rgba(34, 121, 193, .3), transparent 31%),
    radial-gradient(circle at 90% 92%, rgba(219, 23, 35, .14), transparent 28%),
    linear-gradient(145deg, #0c3b6e, #041a33);
}
.korea-climate::before,
.korea-climate::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}
.korea-climate::before {
  width: 270px;
  height: 270px;
  inset-inline-start: -150px;
  top: -120px;
}
.korea-climate::after {
  width: 180px;
  height: 180px;
  inset-inline-end: -90px;
  bottom: -75px;
}
.climate-panel-head {
  max-width: 330px;
}
.climate-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8bc7f4;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.climate-panel-kicker::before {
  content: "";
  width: 26px;
  height: 3px;
  border-radius: 999px;
  background: var(--story-red);
}
.climate-panel-head h4 {
  margin: 10px 0 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.3;
}
.climate-feature-list {
  display: grid;
  gap: 13px;
}
.climate-feature {
  --climate-accent: #fff;
  position: relative;
  min-height: 82px;
  padding: 14px;
  padding-inline-end: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .19);
  border-inline-start: 4px solid var(--climate-accent);
  border-radius: 20px 8px 20px 8px;
  color: #fff;
  background: linear-gradient(100deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .055));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 28px rgba(0, 0, 0, .12);
  backdrop-filter: blur(8px);
}
.climate-feature::after {
  content: "";
  position: absolute;
  inset-inline-end: -23px;
  top: 50%;
  width: 75px;
  height: 75px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--climate-accent) 14%, transparent);
  transform: translateY(-50%) rotate(24deg);
}
.climate-feature.heat { --climate-accent: #ffcf4a; }
.climate-feature.rain { --climate-accent: #64c4ff; }
.climate-feature.snow { --climate-accent: #d9efff; }
.climate-feature-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--climate-accent) 42%, transparent);
  border-radius: 15px;
  color: var(--climate-accent);
  background: color-mix(in srgb, var(--climate-accent) 12%, rgba(255, 255, 255, .04));
}
.climate-feature-icon .material-symbols-outlined { font-size: 25px; }
.climate-feature-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.climate-feature-copy > span {
  color: rgba(255, 255, 255, .62);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .035em;
}
.climate-feature-copy strong {
  color: #fff;
  font-size: .95rem;
  line-height: 1.35;
}
.climate-feature-number {
  position: absolute;
  z-index: 1;
  inset-inline-end: 14px;
  top: 12px;
  color: rgba(255, 255, 255, .36);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.korea-advantage-copy { padding: clamp(30px, 5vw, 58px); }
.korea-advantage-copy h3 {
  color: var(--story-navy);
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  margin: 10px 0 18px;
}
.korea-advantage-copy p { color: var(--muted); line-height: 2; }
.korea-advantage-cta { margin-top: 12px; }
@media (max-width: 1050px) {
  .inspection-program-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-services-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
  .brand-story { padding: 56px 0; }
  .brand-proof-grid,
  .korea-advantage { grid-template-columns: 1fr; }
  .inspection-stage-card { min-height: 360px; }
  .inspection-program { margin-top: 54px; }
  .brand-services { margin-top: 54px; }
  .brand-services-grid { grid-template-columns: repeat(2, 1fr); }
  .korea-advantage { margin-top: 54px; }
  .korea-climate { min-height: auto; }
}
@media (max-width: 520px) {
  .inspection-program-grid { grid-template-columns: 1fr; }
  .inspection-program-card { min-height: 0; }
  .brand-stat-row { grid-template-columns: 1fr; }
  .brand-services-grid { grid-template-columns: 1fr; }
  .brand-service-card { min-height: 0; }
  .inspection-stage-card,
  .brand-proof-copy,
  .korea-advantage { border-radius: 22px; }
  .korea-climate { padding: 26px 20px; }
  .climate-feature {
    min-height: 76px;
    padding: 12px;
    padding-inline-end: 48px;
  }
  .climate-feature-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand-service-card,
  .inspection-program-card { transition: none; }
}

/* ============================================================ */
/* ============ MARKETPLACE ANALYTICS ========================= */
/* ============================================================ */
.marketplace-analytics-page {
  --analytics-navy: #082b51;
  --analytics-red: #db1723;
  --analytics-blue: #1769aa;
  --analytics-green: #12805c;
  --analytics-amber: #b76c08;
  max-width: 1540px;
}

.analytics-page-head {
  align-items: flex-end;
  margin-bottom: 18px;
}

.analytics-page-head h1 {
  margin: 6px 0 6px;
  color: var(--analytics-navy);
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  letter-spacing: -.035em;
}

.analytics-page-head p { margin: 0; }

.analytics-eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--analytics-red);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .14em;
}

.analytics-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.analytics-head-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.analytics-head-actions .material-symbols-outlined { font-size: 19px; }
.analytics-updated { font-size: .78rem; }

.analytics-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 22px;
  padding: 10px 12px;
  border: 1px solid #dbe3ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 28px rgba(8, 43, 81, .04);
}

.analytics-period-controls {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.analytics-range-switch {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #edf2f7;
}

.analytics-range-button {
  min-width: 54px;
  padding: 8px 13px;
  border: 0;
  border-radius: 9px;
  color: #53657a;
  background: transparent;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.analytics-range-button:hover { color: var(--analytics-navy); }

.analytics-range-button.active {
  color: #fff;
  background: var(--analytics-navy);
  box-shadow: 0 5px 14px rgba(8, 43, 81, .2);
}

.analytics-period-label {
  color: var(--analytics-navy);
  font-size: .82rem;
  font-weight: 800;
}

.analytics-custom-range {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.analytics-date-field {
  display: grid;
  gap: 4px;
  color: #53657a;
  font-size: .69rem;
  font-weight: 800;
}

.analytics-date-field input {
  width: 142px;
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid #cbd7e4;
  border-radius: 9px;
  color: var(--analytics-navy);
  background: #fff;
  font: inherit;
  font-size: .78rem;
}

.analytics-date-field input:focus {
  border-color: var(--analytics-navy);
  outline: 3px solid rgba(8, 43, 81, .1);
}

.analytics-apply-range {
  min-height: 38px;
  margin-bottom: 0;
}

.analytics-apply-range.active {
  color: #fff;
  border-color: var(--analytics-navy);
  background: var(--analytics-navy);
}

.analytics-period-summary {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: end;
}

.analytics-date-error {
  color: #b42318;
  font-size: .72rem;
  font-weight: 750;
}

.analytics-loading {
  min-height: 270px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
}

.analytics-loading p { margin: 0; }
.analytics-error-action { margin: -10px 0 22px; }

.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.analytics-kpi-card {
  position: relative;
  min-width: 0;
  min-height: 176px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid #dce4ed;
  border-radius: 20px;
  color: var(--analytics-navy);
  text-decoration: none;
  background: #fff;
  box-shadow: 0 12px 32px rgba(8, 43, 81, .055);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.analytics-kpi-card::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  inset-inline-end: -38px;
  bottom: -46px;
  border-radius: 50%;
  background: currentColor;
  opacity: .045;
}

.analytics-kpi-card:hover {
  transform: translateY(-4px);
  border-color: currentColor;
  box-shadow: 0 18px 38px rgba(8, 43, 81, .1);
}

.analytics-kpi-card.tone-red { color: var(--analytics-red); }
.analytics-kpi-card.tone-green { color: var(--analytics-green); }
.analytics-kpi-card.tone-amber { color: var(--analytics-amber); }
.analytics-kpi-card.tone-blue { color: var(--analytics-blue); }
.analytics-kpi-card.tone-navy { color: var(--analytics-navy); }

.analytics-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.analytics-kpi-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: currentColor;
  background: color-mix(in srgb, currentColor 10%, white);
  font-size: 21px;
}

.analytics-kpi-arrow { color: #a8b4c1; font-size: 18px; }

.analytics-kpi-value {
  overflow: hidden;
  color: currentColor;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-kpi-label {
  margin-top: 6px;
  color: var(--analytics-navy);
  font-size: .9rem;
  font-weight: 850;
}

.analytics-kpi-card small {
  margin-top: auto;
  padding-top: 10px;
  color: #778697;
  font-size: .72rem;
  line-height: 1.45;
}

.analytics-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .8fr);
  gap: 18px;
  margin-bottom: 18px;
}

.analytics-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.analytics-card {
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  box-shadow: 0 12px 35px rgba(8, 43, 81, .05);
}

.analytics-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.analytics-heading-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--analytics-red);
  background: #fff0f1;
  font-size: 21px;
}

.analytics-card-heading h2 {
  margin: 0;
  color: var(--analytics-navy);
  font-size: 1.04rem;
}

.analytics-card-heading p {
  margin: 4px 0 0;
  color: #7a8898;
  font-size: .75rem;
}

.analytics-trend-chart {
  height: 265px;
  display: grid;
  grid-template-columns: repeat(10, minmax(20px, 1fr));
  align-items: end;
  gap: clamp(6px, 1.3vw, 14px);
  margin-top: 25px;
  padding-top: 18px;
  border-bottom: 1px solid #dce5ee;
  background: repeating-linear-gradient(
    to bottom,
    #fff 0,
    #fff 52px,
    #edf2f6 53px
  );
}

.analytics-trend-column {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.analytics-bar-track {
  width: min(38px, 75%);
  min-height: 0;
  flex: 1;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 10px 10px 3px 3px;
  background: rgba(8, 43, 81, .045);
}

.analytics-trend-bar {
  width: 100%;
  min-height: 5px;
  border-radius: 9px 9px 3px 3px;
  background: linear-gradient(180deg, var(--analytics-red), #b70d18);
  box-shadow: 0 8px 16px rgba(219, 23, 35, .18);
  transition: height .45s ease, filter .2s ease;
}

.analytics-trend-bar:hover { filter: brightness(1.12); }
.analytics-trend-column > span { color: #8491a0; font-size: .65rem; }

.analytics-chart-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 17px;
  color: #718092;
  font-size: .78rem;
}

.analytics-chart-legend strong { color: var(--analytics-navy); }

.analytics-mix-content {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
}

.analytics-donut {
  --car-angle: 0deg;
  --spare-angle: 0deg;
  width: 178px;
  height: 178px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(
    var(--analytics-red) 0 var(--car-angle),
    var(--analytics-navy) var(--car-angle) var(--spare-angle),
    #dce4ec var(--spare-angle) 360deg
  );
  box-shadow: 0 18px 35px rgba(8, 43, 81, .12);
}

.analytics-donut-center {
  width: 112px;
  height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: #fff;
}

.analytics-donut-center strong {
  color: var(--analytics-navy);
  font-size: 2rem;
  line-height: 1;
}

.analytics-donut-center span { margin-top: 5px; color: #8491a0; font-size: .72rem; }

.analytics-mix-legend {
  width: 100%;
  display: grid;
  gap: 9px;
}

.analytics-legend-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  color: #607185;
  font-size: .8rem;
}

.analytics-legend-item strong { color: var(--analytics-navy); }
.analytics-legend-dot { width: 9px; height: 9px; border-radius: 50%; }
.analytics-legend-dot.red { background: var(--analytics-red); }
.analytics-legend-dot.navy { background: var(--analytics-navy); }
.analytics-legend-dot.gray { background: #c8d2dd; }

.analytics-breakdown-list { display: grid; gap: 17px; margin-top: 24px; }
.analytics-breakdown-row { display: grid; gap: 7px; }

.analytics-breakdown-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #617286;
  font-size: .76rem;
}

.analytics-breakdown-copy strong { color: var(--analytics-navy); }

.analytics-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf2f6;
}

.analytics-progress-value {
  height: 100%;
  min-width: 5px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--analytics-navy), var(--analytics-blue));
}

.analytics-catalog-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 24px 0 18px;
}

.analytics-catalog-summary > div {
  padding: 12px 7px;
  border-radius: 13px;
  text-align: center;
  background: #f2f6fa;
}

.analytics-catalog-summary strong {
  display: block;
  color: var(--analytics-navy);
  font-size: 1.25rem;
}

.analytics-catalog-summary span { color: #7b8998; font-size: .68rem; }
.analytics-catalog-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.analytics-catalog-tag,
.analytics-table-pill {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--analytics-navy);
  background: #edf3f8;
  font-size: .69rem;
  font-weight: 800;
}

.analytics-text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--analytics-red);
  font-size: .8rem;
  font-weight: 850;
  text-decoration: none;
}

.analytics-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}

.analytics-recent-card { margin-bottom: 20px; }
.analytics-orders-table { min-width: 940px; }
.analytics-orders-table td strong { display: block; color: var(--analytics-navy); }
.analytics-orders-table td small { display: block; margin-top: 3px; color: #7b8998; }
.analytics-orders-table a { color: var(--analytics-red); font-weight: 850; }
.analytics-empty { padding: 34px 0 14px; text-align: center; }

.dashboard-marketplace-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  border-inline-start: 5px solid var(--primary);
  background: linear-gradient(110deg, #fff 0%, #f2f7fc 100%);
}

.dashboard-marketplace-callout h2 { margin: 7px 0; color: #082b51; }
.dashboard-marketplace-callout p { margin: 0; }

@media (max-width: 1200px) {
  .analytics-toolbar { align-items: stretch; flex-direction: column; }
  .analytics-period-summary { justify-items: start; text-align: start; }
  .analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-catalog-card { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .analytics-page-head { align-items: flex-start; }
  .analytics-head-actions { justify-content: flex-start; }
  .analytics-main-grid,
  .analytics-detail-grid { grid-template-columns: 1fr; }
  .analytics-catalog-card { grid-column: auto; }
  .analytics-mix-content { min-height: 0; padding-top: 28px; }
}

@media (max-width: 620px) {
  .marketplace-analytics-page { padding-inline: 12px; }
  .analytics-toolbar { align-items: stretch; flex-direction: column; }
  .analytics-range-switch { width: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
  .analytics-range-button { min-width: 0; padding-inline: 7px; }
  .analytics-period-controls,
  .analytics-custom-range { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .analytics-range-switch { grid-column: 1 / -1; }
  .analytics-date-field input { box-sizing: border-box; width: 100%; }
  .analytics-apply-range { grid-column: 1 / -1; width: 100%; }
  .analytics-kpi-grid { grid-template-columns: 1fr; gap: 10px; }
  .analytics-kpi-card { min-height: 158px; }
  .analytics-card { padding: 18px; border-radius: 18px; }
  .analytics-trend-chart { height: 230px; gap: 5px; }
  .analytics-trend-column > span { font-size: .57rem; transform: rotate(-35deg); transform-origin: center; }
  [dir="rtl"] .analytics-trend-column > span { transform: rotate(35deg); }
  .analytics-card-title-row,
  .dashboard-marketplace-callout { flex-direction: column; align-items: stretch; }
  .dashboard-marketplace-callout .btn { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .analytics-kpi-card,
  .analytics-trend-bar { transition: none; }
}

/* ============ ADMIN PRODUCT CATALOG ======================== */
.product-filter-card {
  margin-bottom: 18px;
}

.product-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(5, minmax(125px, 1fr));
  gap: 12px;
  align-items: end;
}

.category-creator-grid {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 14px;
  align-items: end;
}

.product-filter-grid .form-group,
.category-creator-grid .form-group {
  margin-bottom: 0;
}

.category-creator {
  margin-bottom: 18px;
  border-inline-start: 4px solid var(--accent);
}

.category-create-action {
  display: flex;
  align-items: end;
  min-height: 42px;
}

.category-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.category-chip {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 8%, #fff);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-table-card {
  padding: 0;
  overflow: hidden;
}

.selection-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 6%, #fff);
}

.selection-action-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.bulk-status-select {
  width: auto;
  min-width: 190px;
  min-height: 34px;
  padding-block: 5px;
  border-color: var(--primary);
  border-radius: 9px;
  background-color: #fff;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
}

.order-assignment-action-bar {
  align-items: flex-start;
  flex-wrap: wrap;
  padding-block: 14px;
}

.order-assignment-action-bar > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 180px;
}

.order-assignment-eligibility {
  color: #7b5b00;
  font-size: .73rem;
  font-weight: 750;
}

.order-inspector-assignment {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 390px;
  max-width: 550px;
}

.order-inspector-search {
  position: relative;
  flex: 1 1 280px;
}

.order-inspector-search > .material-symbols-outlined {
  position: absolute;
  z-index: 2;
  inset-inline-start: 11px;
  top: 9px;
  color: #58708a;
  font-size: 19px;
  pointer-events: none;
}

.order-inspector-search input {
  width: 100%;
  min-height: 38px;
  padding-inline-start: 38px;
  border: 1px solid #b9c9da;
  border-radius: 10px;
  background: #fff;
}

.order-inspector-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 7px 9px 7px 38px;
  border: 1px solid #b9c9da;
  border-radius: 10px;
  background: #fff;
  color: #536579;
  font: inherit;
  text-align: start;
  cursor: pointer;
}

[dir='rtl'] .order-inspector-trigger { padding: 7px 38px 7px 9px; }
.order-inspector-trigger:hover:not(:disabled) { border-color: var(--primary); }
.order-inspector-trigger:disabled { cursor: not-allowed; opacity: .62; }
.order-inspector-trigger > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-inspector-trigger .material-symbols-outlined { flex: 0 0 auto; font-size: 20px; }
.order-inspector-search input { padding-inline-end: 40px; }

.order-inspector-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 43, 81, .1);
  outline: 0;
}

.order-inspector-dropdown {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  inset-inline: 0;
  max-height: 230px;
  overflow-y: auto;
  border: 1px solid #cbd7e3;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 15px 34px rgba(8, 43, 81, .18);
}

.order-inspector-dropdown button {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: var(--primary);
  text-align: start;
  cursor: pointer;
}

.order-inspector-dropdown button:last-of-type { border-bottom: 0; }
.order-inspector-dropdown button:hover { background: #f2f7fc; }
.order-inspector-dropdown button span { overflow: hidden; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.order-inspector-dropdown button small { flex: 0 0 auto; color: #718096; }
.order-inspector-empty { padding: 13px; color: var(--muted); text-align: center; }

.order-assign-inspector-button {
  width: 100%;
  justify-content: center;
  margin-top: 7px;
  white-space: nowrap;
}

.order-direct-assignment {
  display: flex;
  width: 100%;
  min-width: 210px;
  flex-direction: column;
  gap: 10px;
}

.order-assignment-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-assignment-heading > .material-symbols-outlined {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: #e8f1fa;
  color: #174f82;
  font-size: 18px;
}

.order-assignment-heading > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.order-next-action-cell .order-assignment-heading strong {
  color: #102a49;
  font-size: .8rem;
  font-weight: 850;
}

.order-assignment-heading small {
  color: #6b7c90;
  font-size: .66rem;
  line-height: 1.3;
}

.order-assignment-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.order-assignment-actions .btn {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding-inline: 8px;
  border-radius: 8px;
  font-size: .7rem;
  line-height: 1;
  white-space: nowrap;
}

.order-assignment-actions .material-symbols-outlined {
  display: block;
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1;
}

.order-auto-assign-button {
  border-color: #b9cee1;
  background: #f5f9fd;
  color: #123f69;
}

.order-auto-assign-button:hover {
  border-color: #7da6ca;
  background: #eaf3fb;
}

.order-inspection-state {
  display: flex;
  min-width: 215px;
  flex-direction: column;
  gap: 9px;
}

.order-inspection-state-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.order-inspection-state-head > .material-symbols-outlined {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 8px;
  background: #e8f1fa;
  color: #174f82;
  font-size: 18px;
}

.order-inspection-state.is-ready .order-inspection-state-head > .material-symbols-outlined {
  background: #ddf5e9;
  color: #08784a;
}

.order-inspection-state-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.order-next-action-cell .order-inspection-state-head strong {
  overflow: hidden;
  color: #102a49;
  font-size: .78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-inspection-state-head small {
  color: #6b7c90;
  font-size: .66rem;
  line-height: 1.3;
}

.order-report-action {
  display: inline-flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 2px;
  line-height: 1;
  white-space: nowrap;
}

.order-report-action .material-symbols-outlined {
  flex: 0 0 auto;
  font-size: 17px;
  line-height: 1;
}

.order-round-robin-control {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border-color: #c9dcef;
  background: linear-gradient(135deg, #f5f9fd 0%, #fff 72%);
}

.order-round-robin-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  background: #e3eef9;
  color: var(--primary);
}

.order-round-robin-icon .material-symbols-outlined { font-size: 25px; }

.order-round-robin-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.order-round-robin-copy strong { color: #102a49; font-size: .9rem; }
.order-round-robin-copy span { color: var(--muted); font-size: .75rem; line-height: 1.4; }

.order-round-robin-button {
  min-width: 150px;
  min-height: 42px;
  justify-content: center;
  white-space: nowrap;
}

.order-round-robin-button .material-symbols-outlined { font-size: 18px; }

.order-round-robin-count {
  display: inline-grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding-inline: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .68rem;
  font-weight: 850;
}

@media (max-width: 760px) {
  .order-round-robin-control { grid-template-columns: 42px minmax(0, 1fr); }
  .order-round-robin-icon { width: 42px; height: 42px; }
  .order-round-robin-button { grid-column: 1 / -1; width: 100%; }
}

.order-inspector-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 18, 34, .72);
  backdrop-filter: blur(8px);
  animation: admin-dialog-fade .18s ease-out;
}

.order-inspector-modal {
  display: flex;
  flex-direction: column;
  width: min(100%, 1040px);
  max-height: min(90vh, 820px);
  overflow: hidden;
  border: 1px solid rgba(8, 43, 81, .15);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 15, 35, .42);
  animation: admin-dialog-rise .2s ease-out;
}

.order-inspector-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #e3e9ef;
}

.order-inspector-modal-title {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.order-inspector-modal-title > .material-symbols-outlined {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: #fff;
  background: var(--primary);
  font-size: 25px;
}

.order-inspector-modal-title h2 {
  margin: 1px 0 5px;
  color: var(--primary);
  font-size: 1.3rem;
}

.order-inspector-modal-title p { margin: 0; color: var(--muted); }

.order-inspector-modal-close {
  appearance: none;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #d7e0e9;
  border-radius: 12px;
  color: #526579;
  background: #fff;
  cursor: pointer;
}

.order-inspector-modal-close:hover:not(:disabled) { color: #a30f1a; background: #fff1f3; border-color: #f2bdc2; }

.order-inspector-modal-body {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 1.65fr);
  min-height: 0;
  overflow: hidden;
}

.order-inspector-order-summary {
  padding: 24px;
  overflow-y: auto;
  border-inline-end: 1px solid #e3e9ef;
  background: linear-gradient(155deg, #f5f8fb, #edf3f8);
}

.order-inspector-summary-label {
  color: #7b8998;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.order-inspector-order-summary h3 { margin: 7px 0 13px; color: var(--primary); font-size: 1.25rem; }
.order-inspector-customer { display: flex; flex-direction: column; gap: 3px; color: #586a7d; font-size: .82rem; }
.order-inspector-customer strong { color: #263d55; }

.order-inspector-vehicles { display: grid; gap: 9px; margin-top: 22px; }
.order-inspector-vehicle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d7e1ea;
  border-radius: 13px;
  background: #fff;
}
.order-inspector-vehicle img,
.order-inspector-vehicle > .material-symbols-outlined {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
}
.order-inspector-vehicle > .material-symbols-outlined { display: grid; place-items: center; color: var(--primary); background: #eaf1f8; }
.order-inspector-vehicle > div { display: grid; min-width: 0; gap: 3px; }
.order-inspector-vehicle strong { overflow: hidden; color: var(--primary); font-size: .79rem; text-overflow: ellipsis; white-space: nowrap; }
.order-inspector-vehicle small { color: var(--muted); font-size: .68rem; }

.order-inspector-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 11px 12px;
  border: 1px solid #bfe5d1;
  border-radius: 12px;
  color: #08784a;
  background: #ecf9f2;
  font-size: .76rem;
  font-weight: 800;
}
.order-inspector-stage .material-symbols-outlined { font-size: 19px; }

.order-inspector-directory {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 24px;
}

.order-inspector-modal-search { position: relative; flex: 0 0 auto; }
.order-inspector-modal-search .material-symbols-outlined {
  position: absolute;
  z-index: 2;
  inset-inline-start: 14px;
  top: 13px;
  color: #6c7e91;
  pointer-events: none;
}
.order-inspector-modal-search input {
  width: 100%;
  height: 50px;
  padding-inline: 45px 14px;
  border: 1px solid #bdcad8;
  border-radius: 14px;
  background: #f9fbfd;
  color: var(--primary);
  font: inherit;
}
.order-inspector-modal-search input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(8, 43, 81, .1); outline: 0; }

.order-inspector-modal-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 2px 10px;
  color: var(--primary);
  font-size: .82rem;
}
.order-inspector-modal-results-head span { min-width: 28px; padding: 4px 8px; border-radius: 999px; background: #eaf1f8; text-align: center; }

.order-inspector-modal-results {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 180px;
  overflow-y: auto;
  padding: 2px 5px 4px 2px;
}

.order-inspector-result {
  appearance: none;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #d9e2eb;
  border-radius: 14px;
  color: var(--primary);
  background: #fff;
  text-align: start;
  cursor: pointer;
}
.order-inspector-result:hover { border-color: #8ca4bb; background: #f6f9fc; }
.order-inspector-result.is-selected { border-color: #db1723; background: #fff4f5; box-shadow: 0 0 0 3px rgba(219, 23, 35, .08); }
.order-inspector-result > .material-symbols-outlined { color: #9aabba; }
.order-inspector-result.is-selected > .material-symbols-outlined { color: #db1723; }
.order-inspector-avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #082b51, #1b5d94); font-weight: 900; }
.order-inspector-result-copy { display: grid; min-width: 0; gap: 3px; }
.order-inspector-result-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-inspector-result-copy small { color: var(--muted); }

.order-inspector-modal-empty { display: grid; place-items: center; align-content: center; min-height: 190px; padding: 24px; color: var(--muted); text-align: center; }
.order-inspector-modal-empty .material-symbols-outlined { margin-bottom: 8px; color: #9aabba; font-size: 38px; }
.order-inspector-modal-empty strong { color: var(--primary); }

.order-inspector-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 24px;
  border-top: 1px solid #e3e9ef;
  background: #fbfcfd;
}
.order-inspector-selected-copy { display: grid; min-width: 0; gap: 2px; }
.order-inspector-selected-copy span { color: var(--muted); font-size: .7rem; }
.order-inspector-selected-copy strong { overflow: hidden; color: var(--primary); text-overflow: ellipsis; white-space: nowrap; }
.order-inspector-modal-actions { display: flex; gap: 9px; }

@media (max-width: 760px) {
  .order-inspector-modal-backdrop { align-items: end; padding: 8px; }
  .order-inspector-modal { max-height: 94vh; border-radius: 22px 22px 12px 12px; }
  .order-inspector-modal-head { padding: 17px; }
  .order-inspector-modal-title > .material-symbols-outlined { width: 42px; height: 42px; flex-basis: 42px; }
  .order-inspector-modal-body { display: block; overflow-y: auto; }
  .order-inspector-order-summary { border-inline-end: 0; border-bottom: 1px solid #e3e9ef; }
  .order-inspector-directory { min-height: 390px; padding: 18px; }
  .order-inspector-modal-results { overflow: visible; }
  .order-inspector-modal-footer { align-items: stretch; flex-direction: column; padding: 15px 17px; }
  .order-inspector-modal-actions { display: grid; grid-template-columns: 1fr 1.4fr; }
  .order-inspector-modal-actions .btn { width: 100%; justify-content: center; }
}

@media (max-width: 820px) {
  .order-inspector-assignment { max-width: none; width: 100%; }
}

@media (max-width: 520px) {
  .order-inspector-assignment { align-items: stretch; flex-direction: column; }
  .order-inspector-search { flex-basis: auto; }
  .order-inspector-assignment .btn { width: 100%; justify-content: center; }
}

.table-scroll {
  overflow-x: auto;
}

.product-table-card .data-table {
  min-width: 980px;
}

.order-customer-cell {
  min-width: 190px;
  max-width: 260px;
}

.order-customer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  line-height: 1.25;
}

.order-customer-name,
.order-customer-email {
  display: block;
  width: 100%;
}

.order-customer-name {
  overflow-wrap: anywhere;
}

.order-customer-email {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-status-select {
  width: 112px;
  min-height: 34px;
  padding: 5px 28px 5px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.product-status-select.is-active {
  border-color: #b9e8cf;
  background-color: #e8f7ef;
  color: var(--green);
}

.product-status-select.is-draft {
  border-color: var(--line);
  background-color: var(--bg);
  color: var(--muted);
}

.inspection-status-cell .badge {
  white-space: nowrap;
}

.product-edit-heading,
.product-edit-cell {
  width: 86px;
  min-width: 86px;
  text-align: center;
}

.product-edit-cell {
  display: table-cell;
  vertical-align: middle;
}

.product-edit-cell .btn {
  margin: 0 auto;
  white-space: nowrap;
}

.product-name-cell strong,
.product-name-cell small {
  display: block;
}

.product-name-cell small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
}

.product-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.pagination-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pagination-label {
  min-width: 100px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 900px) {
  .product-filter-grid,
  .category-creator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .product-filter-grid,
  .category-creator-grid {
    grid-template-columns: 1fr;
  }

  .product-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions {
    justify-content: space-between;
  }

  .selection-action-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ============ ORDER OPERATIONS WORKSPACE =================== */
.orders-workspace-page,
.order-detail-page,
.order-tasks-page {
  max-width: 1480px;
}

.order-queue-grid,
.task-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.order-queue-card,
.task-summary-card {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(8, 43, 81, .05);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.order-queue-card:hover,
.task-summary-card:hover,
.order-queue-card.is-selected,
.task-summary-card.is-selected {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(8, 43, 81, .12);
}

.order-queue-card.is-selected,
.task-summary-card.is-selected {
  outline: 3px solid color-mix(in srgb, var(--primary) 12%, transparent);
}

.order-queue-value,
.task-summary-card strong {
  font-size: 1.8rem;
  line-height: 1;
  color: var(--primary);
}

.order-queue-label,
.task-summary-card span {
  font-size: .86rem;
  font-weight: 800;
  color: #556476;
}

.order-queue-card.queue-urgent { border-block-start: 4px solid #db1723; }
.order-queue-card.queue-waiting { border-block-start: 4px solid #d99000; }
.order-queue-card.queue-active { border-block-start: 4px solid #1d5f9f; }
.order-queue-card.queue-complete { border-block-start: 4px solid #15945f; }

.orders-workspace-page .product-filter-grid {
  grid-template-columns: minmax(230px, 1.8fr) repeat(6, minmax(135px, 1fr));
}

.order-sort-bar,
.list-sort-bar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: -6px 0 18px;
  padding: 13px 16px;
  border: 1px solid #d8e1eb;
  border-radius: 14px;
  background: #f8fafc;
}

.order-sort-title,
.list-sort-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--primary);
}

.order-sort-title .material-symbols-outlined,
.list-sort-title .material-symbols-outlined { font-size: 21px; }

.order-sort-fields,
.list-sort-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 230px));
  gap: 12px;
}

.order-sort-fields .form-group,
.list-sort-fields .form-group { margin: 0; }

.orders-workspace-page .product-table-card .data-table {
  min-width: 1120px;
  table-layout: fixed;
}

.orders-workspace-page .data-table th:first-child,
.orders-workspace-page .data-table td:first-child { width: 42px; }
.orders-workspace-page .data-table th:nth-child(2),
.orders-workspace-page .data-table td:nth-child(2) { width: 124px; }
.orders-workspace-page .data-table th:nth-child(3),
.orders-workspace-page .data-table td:nth-child(3) { width: 220px; }
.orders-workspace-page .data-table th:nth-child(4),
.orders-workspace-page .data-table td:nth-child(4) { width: 175px; }
.orders-workspace-page .data-table th:nth-child(5),
.orders-workspace-page .data-table td:nth-child(5) { width: 165px; }
.orders-workspace-page .data-table th:nth-child(6),
.orders-workspace-page .data-table td:nth-child(6) { width: 190px; }
.orders-workspace-page .data-table th:nth-child(7),
.orders-workspace-page .data-table td:nth-child(7) { width: 145px; }
.orders-workspace-page .data-table th:nth-child(8),
.orders-workspace-page .data-table td:nth-child(8) { width: 105px; }

.orders-workspace-page .data-table th:first-child,
.orders-workspace-page .data-table td:first-child,
.orders-workspace-page .data-table th:nth-child(2),
.orders-workspace-page .data-table td:nth-child(2) {
  position: sticky;
  z-index: 2;
  background: #fff;
}

.orders-workspace-page .data-table th:first-child,
.orders-workspace-page .data-table td:first-child { inset-inline-start: 0; }
.orders-workspace-page .data-table th:nth-child(2),
.orders-workspace-page .data-table td:nth-child(2) {
  inset-inline-start: 42px;
  box-shadow: 8px 0 14px -14px rgba(8, 43, 81, .75);
}

.orders-workspace-page .data-table th:first-child,
.orders-workspace-page .data-table th:nth-child(2) { z-index: 3; }

[dir='rtl'] .orders-workspace-page .data-table th:nth-child(2),
[dir='rtl'] .orders-workspace-page .data-table td:nth-child(2) {
  box-shadow: -8px 0 14px -14px rgba(8, 43, 81, .75);
}

.orders-workspace-page .order-tracking-row:hover td:first-child,
.orders-workspace-page .order-tracking-row:hover td:nth-child(2) {
  background: #f8fbff;
}

.order-tracking-row td {
  padding-block: 16px;
}

.order-tracking-row td:first-child {
  border-inline-start: 4px solid transparent;
}

.order-tracking-row.order-tone-urgent td:first-child { border-inline-start-color: #db1723; }
.order-tracking-row.order-tone-active td:first-child { border-inline-start-color: #1d5f9f; }
.order-tracking-row.order-tone-waiting td:first-child { border-inline-start-color: #d99000; }
.order-tracking-row.order-tone-complete td:first-child { border-inline-start-color: #15945f; }

.order-tracking-row:hover { background: #f8fbff; }

.order-id-cell,
.order-cell-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.order-progress-cell,
.order-next-action-cell,
.order-financial-cell,
.order-updated-cell {
  display: table-cell;
  vertical-align: middle;
}

.order-progress-cell .order-cell-stack,
.order-next-action-cell .order-cell-stack,
.order-financial-cell .order-cell-stack,
.order-updated-cell .order-cell-stack {
  width: 100%;
}

.order-id-cell strong { color: var(--primary); font-size: 1rem; }

.order-open-link {
  width: 100%;
  min-height: 32px;
  justify-content: center;
  gap: 5px;
  padding-inline: 8px;
  white-space: nowrap;
}

.order-open-link .material-symbols-outlined { font-size: 16px; }

.order-products-cell { min-width: 0; max-width: 320px; }

.order-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-product-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease;
}

.order-product-link:hover {
  border-color: #ccd9e7;
  background: #f4f8fc;
}

.order-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  object-fit: cover;
  background: #edf2f7;
}

.order-product-thumb.is-placeholder {
  display: grid;
  place-items: center;
  color: #708196;
}

.order-product-thumb .material-symbols-outlined { font-size: 22px; }

.order-product-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.order-product-copy strong,
.order-product-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-product-copy strong { color: #102a49; font-size: .84rem; }
.order-product-copy small { color: var(--muted); font-size: .7rem; }
.order-product-open { color: #7890aa; font-size: 17px; }
.order-id-cell small,
.order-updated-cell small,
.order-financial-cell small,
.order-next-action-cell small,
.order-customer-phone { color: var(--muted); }

.order-type-chip {
  display: inline-flex;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: #edf3f9;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 850;
}

.order-progress-cell { min-width: 0; }
.order-stage-line { display: flex; align-items: center; gap: 7px; width: 100%; }
.order-stage-line strong { flex: 1; font-size: .86rem; }
.order-stage-line small { color: var(--muted); font-weight: 800; }

.workflow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #8492a4;
  flex: 0 0 auto;
}

.workflow-dot.tone-urgent,
.order-progress-fill.tone-urgent { background: #db1723; }
.workflow-dot.tone-active,
.order-progress-fill.tone-active { background: #1d5f9f; }
.workflow-dot.tone-waiting,
.order-progress-fill.tone-waiting { background: #d99000; }
.workflow-dot.tone-complete,
.order-progress-fill.tone-complete { background: #15945f; }
.workflow-dot.tone-neutral,
.order-progress-fill.tone-neutral { background: #8492a4; }

.order-progress-track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf3;
}

.order-progress-fill { height: 100%; border-radius: inherit; }
.order-next-action-cell { min-width: 0; max-width: 300px; }
.order-next-action-cell strong { color: #162a43; }

.order-owner-chip,
.payment-state {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 850;
}

.order-owner-chip.tone-urgent { background: #fdebed; color: #b6121c; }
.order-owner-chip.tone-active { background: #e8f1fb; color: #1d5f9f; }
.order-owner-chip.tone-waiting { background: #fff5dc; color: #8a5a00; }
.order-owner-chip.tone-complete { background: #e8f7ef; color: #08784a; }
.order-owner-chip.tone-neutral { background: #eef1f4; color: #596779; }

.payment-state { background: #eef1f4; color: #596779; }
.payment-state.payment-paid,
.payment-state.payment-captured { background: #e8f7ef; color: #08784a; }
.payment-state.payment-pending_verification,
.payment-state.payment-partially_paid { background: #fff5dc; color: #8a5a00; }
.payment-state.payment-rejected,
.payment-state.payment-failed { background: #fdebed; color: #b6121c; }

/* Order detail command center */
.order-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 22px;
}

.order-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.order-head-progress { width: min(320px, 100%); display: grid; gap: 7px; }
.order-head-progress small { color: var(--muted); text-align: end; }

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(300px, .8fr);
  gap: 20px;
  align-items: start;
}

.order-action-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  overflow: hidden;
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid #cdd9e7;
  border-inline-start: 6px solid #8492a4;
  border-radius: 18px;
  background: linear-gradient(125deg, #fff 0%, #f4f8fc 100%);
  box-shadow: 0 12px 32px rgba(8, 43, 81, .08);
}

.order-action-panel.tone-urgent { border-inline-start-color: #db1723; background: linear-gradient(125deg, #fff 0%, #fff4f5 100%); }
.order-action-panel.tone-active { border-inline-start-color: #1d5f9f; }
.order-action-panel.tone-waiting { border-inline-start-color: #d99000; background: linear-gradient(125deg, #fff 0%, #fff9ec 100%); }
.order-action-panel.tone-complete { border-inline-start-color: #15945f; background: linear-gradient(125deg, #fff 0%, #effbf5 100%); }

.order-action-eyebrow,
.task-page-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .11em;
}

.order-action-copy h2 { margin: 0 0 8px; color: var(--primary); font-size: 1.45rem; }
.order-action-copy p { margin: 0; max-width: 720px; color: #516174; line-height: 1.55; }
.order-action-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; color: #68778a; font-size: .78rem; font-weight: 750; }
.order-primary-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; min-width: 210px; }
.order-waiting-message { max-width: 260px; color: #66768a; font-size: .85rem; font-weight: 700; text-align: end; }

.order-content-card { padding: 0; overflow: hidden; }
.order-section-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.order-section-header h3 { margin: 0; color: var(--primary); }
.order-section-header span { color: var(--muted); font-size: .8rem; }

.order-item-row,
.payment-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.order-item-row:last-child,
.payment-record:last-child { border-bottom: 0; }
.order-item-row > div,
.order-item-money,
.payment-record-copy { display: flex; flex-direction: column; gap: 4px; }
.order-item-row small,
.payment-record small { color: var(--muted); }
.order-item-money { align-items: flex-end; white-space: nowrap; }

.payment-record { justify-content: flex-start; }
.payment-record-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; font-size: .65rem; font-weight: 900; }
.payment-record-copy { flex: 1; min-width: 0; }
.payment-record-copy code { width: fit-content; color: #58677a; font-size: .76rem; overflow-wrap: anywhere; }

.order-side-card { padding: 18px; }
.order-detail-line { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef1f4; }
.order-detail-line:last-child { border-bottom: 0; }
.order-detail-line span { color: var(--muted); font-size: .78rem; }
.order-detail-line strong { text-align: end; overflow-wrap: anywhere; font-size: .84rem; }
.order-money-line.is-positive strong { color: #08784a; }
.order-money-line.is-emphasized { margin-top: 5px; padding: 12px; border: 0; border-radius: 10px; background: #f2f6fa; }
.order-money-line.is-emphasized strong { color: var(--accent); font-size: 1rem; }

.order-timeline { padding: 20px; }
.order-timeline-event { position: relative; display: grid; grid-template-columns: 16px 1fr; gap: 12px; padding-bottom: 20px; }
.order-timeline-event::before { content: ''; position: absolute; inset-inline-start: 7px; top: 14px; bottom: -2px; width: 2px; background: #dce4ed; }
.order-timeline-event:last-child::before { display: none; }
.order-timeline-dot { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 2px; border: 4px solid #dce9f5; border-radius: 50%; background: var(--primary); }
.order-timeline-event > div { display: grid; gap: 5px; }
.order-timeline-event p { margin: 2px 0; color: #59687a; }
.order-timeline-event small { color: var(--muted); }
.order-event-status { width: fit-content; color: #1d5f9f; font-size: .72rem; font-weight: 800; }

.advanced-workflow-card { padding: 0; overflow: hidden; scroll-margin-block: 24px; transition: border-color .2s ease, box-shadow .2s ease; }
.advanced-workflow-card.is-open { border-color: #8fb2d4; box-shadow: 0 10px 28px rgba(8, 43, 81, .12); }
.advanced-workflow-toggle { appearance: none; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border: 0; background: #fff; color: var(--ink); text-align: start; cursor: pointer; }
.advanced-workflow-toggle > div { display: flex; flex-direction: column; gap: 3px; }
.advanced-workflow-toggle small { color: var(--muted); }
.advanced-workflow-toggle > span { color: var(--primary); font-size: 1.5rem; }
.advanced-workflow-fields { display: grid; gap: 12px; padding: 16px 18px 4px; border-top: 1px solid var(--line); }
.advanced-workflow-card > .btn { margin: 10px 18px 18px; width: calc(100% - 36px); }

/* Role-aware task center */
.task-role-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -8px 0 18px; color: var(--muted); font-size: .8rem; }
.task-role-chip { padding: 4px 9px; border-radius: 999px; background: #e8f1fb; color: #1d5f9f; font-weight: 850; }

/* Roles and workflow task assignment */
.role-management-page { display: grid; gap: 18px; }
.role-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.role-page-head h1, .role-section-copy h2 { margin: 0; }
.role-page-head p, .role-section-copy p { margin: 6px 0 0; }
.role-catalog-card, .role-task-card { padding: 22px; }
.role-chip-list { display: flex; flex-wrap: wrap; gap: 9px; margin: 18px 0; }
.role-admin-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 10px 7px 14px; border: 1px solid #cbd9e8; border-radius: 999px; background: #f7faff; color: var(--navy); font-weight: 800; }
[dir="rtl"] .role-admin-chip { padding: 7px 14px 7px 10px; }
.role-lock { font-size: 16px; color: #7b8da3; }
.role-delete-button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: #feecec; color: #c51d2d; font-size: 18px; line-height: 1; cursor: pointer; }
.role-create-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto; gap: 10px; max-width: 680px; }
.role-create-row input, .role-task-row select { min-height: 44px; border: 1px solid #cbd9e8; border-radius: 10px; background: #fff; padding: 0 12px; color: var(--navy); }
.role-task-list { display: grid; gap: 10px; margin-top: 18px; }
.role-task-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); align-items: center; gap: 18px; padding: 13px 15px; border: 1px solid #dde5ef; border-radius: 12px; background: #fbfcfe; }
.role-task-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.role-task-name > .material-symbols-outlined { color: #176db0; }
.role-task-name strong, .role-task-name small { display: block; }
.role-task-name small { margin-top: 3px; color: var(--muted); }

@media (max-width: 720px) {
  .role-page-head { align-items: stretch; flex-direction: column; }
  .role-page-head .btn { width: 100%; justify-content: center; }
  .role-create-row, .role-task-row { grid-template-columns: 1fr; }
  .role-task-row { gap: 10px; }
  .role-task-row select { width: 100%; }
}
.task-summary-card { flex-direction: column; align-items: flex-start; justify-content: center; }
.task-summary-card.tone-urgent { border-block-start: 4px solid #db1723; }
.task-summary-card.tone-waiting { border-block-start: 4px solid #d99000; }
.task-summary-card.tone-active { border-block-start: 4px solid #1d5f9f; }
.task-summary-card.tone-complete { border-block-start: 4px solid #15945f; }
.task-list { display: grid; gap: 14px; }

.task-card {
  position: relative;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  gap: 20px;
  overflow: hidden;
  padding: 20px 22px 20px 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(8, 43, 81, .05);
}

.task-card-marker { background: #8492a4; }
.task-card.tone-urgent .task-card-marker { background: #db1723; }
.task-card.tone-active .task-card-marker { background: #1d5f9f; }
.task-card.tone-waiting .task-card-marker { background: #d99000; }
.task-card-main { min-width: 0; }
.task-card-main h2 { margin: 8px 0 6px; color: var(--primary); font-size: 1.08rem; }
.task-card-main p { margin: 0; color: #59687a; }
.task-card-topline,
.task-order-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.task-order-context { margin-top: 14px; }
.task-card-action { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px; }
.task-loading-card { display: grid; place-items: center; min-height: 180px; }
.task-empty-state { display: grid; place-items: center; min-height: 280px; text-align: center; }
.task-empty-state h2 { margin-bottom: 2px; color: var(--primary); }
.task-empty-check { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #e8f7ef; color: #08784a; font-size: 1.5rem; font-weight: 900; }

@media (max-width: 1180px) {
  .orders-workspace-page .product-filter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .orders-workspace-page .product-table-card .data-table { min-width: 1020px; }
  .orders-workspace-page .data-table th:nth-child(3),
  .orders-workspace-page .data-table td:nth-child(3) { width: 195px; }
  .orders-workspace-page .data-table th:nth-child(4),
  .orders-workspace-page .data-table td:nth-child(4) { width: 155px; }
  .orders-workspace-page .data-table th:nth-child(6),
  .orders-workspace-page .data-table td:nth-child(6) { width: 170px; }
  .order-detail-layout { grid-template-columns: 1fr; }
  .order-detail-layout > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .order-detail-layout > aside .advanced-workflow-card { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .order-queue-grid,
  .task-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-detail-head { align-items: flex-start; flex-direction: column; }
  .order-action-panel { grid-template-columns: 1fr; }
  .order-primary-actions { justify-content: flex-start; }
  .order-waiting-message { text-align: start; }
  .task-card { grid-template-columns: 5px minmax(0, 1fr); }
  .task-card-action { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
  .order-sort-bar,
  .list-sort-bar { align-items: stretch; flex-direction: column; gap: 10px; }
  .order-sort-title,
  .list-sort-title { min-height: auto; }
  .order-sort-fields,
  .list-sort-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .orders-workspace-page,
  .order-detail-page,
  .order-tasks-page { padding-inline: 12px; }
  .orders-workspace-page .product-filter-grid,
  .order-queue-grid,
  .task-summary-grid,
  .order-detail-layout > aside { grid-template-columns: 1fr; }
  .order-detail-layout > aside .advanced-workflow-card { grid-column: auto; }
  .order-action-panel { padding: 20px; }
  .order-primary-actions,
  .order-primary-actions .btn,
  .task-card-action .btn { width: 100%; }
  .order-primary-actions .btn,
  .task-card-action .btn { justify-content: center; text-align: center; }
  .order-item-row,
  .payment-record { align-items: flex-start; flex-wrap: wrap; }
  .order-item-money { align-items: flex-start; }
  .payment-record-copy { flex-basis: calc(100% - 64px); }
  .task-card { padding-inline-end: 15px; gap: 14px; }
  .order-sort-fields,
  .list-sort-fields { grid-template-columns: 1fr; }
  .task-card-action { flex-direction: column; align-items: stretch; }
}

/* ============ UNIFIED OPERATIONS CONTROL =================== */
.operations-page {
  max-width: 1540px;
}

.operations-page-head {
  align-items: flex-end;
  margin-bottom: 20px;
}

.operations-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr)) minmax(150px, .7fr);
  gap: 14px;
  margin-bottom: 18px;
}

.operations-overview-card,
.operations-total-card {
  min-height: 112px;
  border: 1px solid #d8e1eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(8, 43, 81, .06);
}

.operations-overview-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  color: var(--ink);
  text-align: start;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.operations-overview-card:hover,
.operations-overview-card.is-selected {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 13px 32px rgba(8, 43, 81, .12);
}

.operations-overview-card.is-selected {
  outline: 3px solid color-mix(in srgb, var(--primary) 11%, transparent);
}

.operations-overview-card.tone-urgent { border-block-start: 4px solid #db1723; }
.operations-overview-card.tone-new { border-block-start: 4px solid #1988d4; }
.operations-overview-card.tone-waiting { border-block-start: 4px solid #d99000; }

.operations-overview-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #edf3f9;
  color: var(--primary);
  font-size: 1.35rem;
  font-weight: 900;
}

.operations-overview-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.operations-overview-copy strong {
  color: var(--primary);
  font-size: 1.75rem;
  line-height: 1;
}

.operations-overview-copy > span { font-size: .94rem; font-weight: 850; }
.operations-overview-copy small { color: var(--muted); font-size: .74rem; }

.operations-total-card {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 18px;
  color: #fff;
  text-align: center;
  background: linear-gradient(145deg, #082b51, #164e80);
  border-color: transparent;
}

.operations-total-card span { font-size: .75rem; font-weight: 750; opacity: .8; }
.operations-total-card strong { font-size: 2rem; line-height: 1; }

.operations-count-warning {
  margin: -4px 0 16px;
  padding: 10px 14px;
  border: 1px solid #f0d69d;
  border-radius: 12px;
  background: #fff8e7;
  color: #765300;
  font-size: .82rem;
}

.operations-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  gap: 6px;
  padding: 7px;
  border: 1px solid #d8e1eb;
  border-radius: 15px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(8, 43, 81, .07);
  backdrop-filter: blur(12px);
}

.operations-tab {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1 1 0;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #526277;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.operations-tab:hover { background: #f2f6fa; color: var(--primary); }
.operations-tab.is-active { background: var(--primary); color: #fff; }
.operations-tab-icon { font-size: 1rem; }
.operations-tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding-inline: 6px;
  border-radius: 999px;
  background: #e8eef5;
  color: var(--primary);
  font-size: .7rem;
}
.operations-tab.is-active .operations-tab-count { background: #fff; }

.operations-view {
  margin-top: 18px;
  border-top: 1px solid #e3e9f0;
}

.operations-view > .admin-page {
  max-width: none;
  padding: 24px 0 0;
}

@media (max-width: 980px) {
  .operations-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .operations-page { padding-inline: 12px; }
  .operations-page-head { align-items: stretch; }
  .operations-page-head .btn { width: 100%; justify-content: center; }
  .operations-overview { grid-template-columns: 1fr; }
  .operations-tabs { overflow-x: auto; justify-content: flex-start; }
  .operations-tab { flex: 0 0 auto; min-width: 145px; }
  .operations-view > .admin-page { padding-inline: 0; }
}

/* ============================================================ */
/* ============ TESTIMONIALS COMPONENT ======================== */
/* ============================================================ */
.block-testimonials {
  padding: 76px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.testimonials-title {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 44px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(20, 52, 93, 0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
  border: 1px solid rgba(20, 52, 93, 0.05);
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-card .stars {
  color: #fbbf24;
  display: flex;
  gap: 4px;
}

.testimonial-card .stars span {
  font-size: 24px;
  font-variation-settings: 'FILL' 1;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.author-info h4 {
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.author-info span {
  font-size: 0.9rem;
  color: var(--muted);
}

@media (max-width: 700px) {
  .block-steps {
    margin-block: 40px;
  }

  .block-car-showcase,
  .block-purchase-process,
  .block-testimonials {
    padding-block: 48px;
  }

  .block-app-download .container {
    margin-block: 48px;
  }

  .steps-section-title,
  .showcase-section-title,
  .process-section-title,
  .testimonials-title {
    margin-bottom: 36px;
  }

  .process-timeline {
    gap: 48px;
  }
}
.notification-page-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-row {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border: 1px solid #dbe3ed;
  border-radius: 14px;
  background: #fff;
  color: #082b51;
  text-align: start;
  cursor: pointer;
  font: inherit;
}

.notification-row:hover { border-color: #9eb4cc; }
.notification-row.is-unread { background: #eef5fc; border-color: #b9cee3; }
.notification-symbol {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e7edf4;
  font-weight: 800;
}
.notification-row.is-unread .notification-symbol { background: #082b51; color: #fff; }
.notification-copy { min-width: 0; flex: 1; }
.notification-title-line { display: flex; align-items: center; gap: 8px; }
.notification-title-line strong { font-size: 15px; }
.notification-copy p { margin: 5px 0 7px; color: #526579; line-height: 1.45; }
.notification-copy small { color: #8291a3; }
.notification-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: #db1723; }
.notification-empty { padding: 64px 24px; text-align: center; border: 1px dashed #c8d4e1; border-radius: 16px; background: #fff; }
.notification-empty-icon { font-size: 52px; color: #9aa8b8; }
