:root {
  --duvito-ink: #151922;
  --duvito-muted: #667085;
  --duvito-line: #d9dee8;
  --duvito-soft: #f5f7fb;
  --duvito-panel: #ffffff;
  --duvito-dark: #111827;
  --duvito-radius: 8px;
}

body {
  background: #eef1f5;
  color: var(--duvito-ink);
}

.btn .ti {
  margin-right: 4px;
}

.btn-icon .ti {
  margin-right: 0;
}

.prototype-page {
  min-height: 100vh;
}

.prototype-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--duvito-line);
}

.prototype-sidebar.navbar .container-fluid {
  align-items: stretch;
  display: block;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.prototype-sidebar .navbar-nav {
  width: 100%;
}

.navbar-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  margin: 0;
  min-height: auto;
  padding: 18px 0 8px;
  text-transform: none;
}

.brand-mark {
  align-items: center;
  background: var(--duvito-dark);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.sidebar-note {
  color: var(--duvito-muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 14px;
}

.print-actions {
  border-bottom: 1px solid var(--duvito-line);
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 16px;
}

.nav-section-title {
  color: #7a8495;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 18px 0 6px;
  text-transform: uppercase;
}

.prototype-sidebar .nav-link {
  border-radius: 7px;
  color: #344054;
  font-size: 14px;
  justify-content: flex-start !important;
  padding: 8px 10px;
  text-align: left;
}

.prototype-sidebar .nav-link:hover,
.prototype-sidebar .nav-link.active {
  background: #eef2f7;
  color: #111827;
}

.topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--duvito-line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.prototype-intro {
  align-items: center;
  background: var(--duvito-panel);
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 18px;
}

.prototype-intro h2 {
  font-size: 22px;
  margin: 0 0 4px;
}

.prototype-intro p {
  color: var(--duvito-muted);
  margin: 0;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.screen-shell {
  background: var(--duvito-panel);
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.07);
  margin-bottom: 28px;
  overflow: hidden;
}

.screen-head {
  align-items: flex-start;
  border-bottom: 1px solid var(--duvito-line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 20px;
}

.screen-head h1 {
  font-size: 24px;
  margin: 0 0 5px;
}

.screen-head p {
  color: var(--duvito-muted);
  margin: 0;
}

.screen-url {
  background: var(--duvito-soft);
  border: 1px solid var(--duvito-line);
  border-radius: 999px;
  color: #475467;
  font-size: 12px;
  padding: 6px 10px;
  white-space: nowrap;
}

.screen-body {
  background: #f8fafc;
  padding: 20px;
}

.product-frame {
  background: #fff;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  overflow: hidden;
}

.product-nav {
  align-items: center;
  border-bottom: 1px solid var(--duvito-line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px 16px;
}

.product-nav .nav-left,
.product-nav .nav-right {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.logo-word {
  font-size: 18px;
  font-weight: 800;
  margin-right: 8px;
}

.content-pad {
  padding: 18px;
}

.search-panel {
  background: #f3f5f8;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  padding: 16px;
}

.home-search {
  background: #f3f5f8;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  padding: 18px;
}

.home-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.home-sell-card {
  align-content: start;
  background: #111827;
  border-radius: var(--duvito-radius);
  color: #fff;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
}

.home-sell-card:hover {
  color: #fff;
  opacity: 0.96;
}

.home-sell-card strong {
  font-size: 28px;
  line-height: 1.1;
}

.home-sell-card span:not(.status-chip) {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.45;
}

.dealer-card {
  background: #fff;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  color: var(--duvito-ink);
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 16px;
}

.dealer-card:hover {
  border-color: #aab4c3;
}

.dealer-card span:not(.status-chip) {
  color: var(--duvito-muted);
}

.popular-searches {
  background: #fff;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  display: grid;
  gap: 10px;
  padding: 16px;
}

.popular-searches div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.popular-searches a {
  color: #2f5f9f;
}

.vehicle-photo {
  align-items: center;
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #d8dde6, #f6f7f9);
  border: 1px solid #cfd6e1;
  border-radius: var(--duvito-radius);
  display: flex;
  justify-content: center;
  min-height: 160px;
  overflow: hidden;
  position: relative;
}

.vehicle-photo .vehicle-svg {
  display: block;
  height: auto;
  max-height: 68%;
  opacity: 0.96;
  width: min(74%, 390px);
}

.vehicle-photo.compact {
  min-height: 88px;
}

.vehicle-photo.compact .vehicle-svg {
  max-height: 60px;
  width: 78%;
}

.vehicle-photo .photo-label {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
  padding: 5px 10px;
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 1;
}

.car-card {
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  display: grid;
  gap: 12px;
  padding: 10px;
}

.car-title {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
}

.car-price {
  font-size: 18px;
  font-weight: 800;
}

.car-meta,
.mini-meta {
  color: var(--duvito-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 6px 12px;
}

.section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
}

.metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric {
  background: #fff;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  padding: 14px;
}

.metric strong {
  display: block;
  font-size: 22px;
}

.metric span {
  color: var(--duvito-muted);
  font-size: 13px;
}

.chat-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 300px 1fr;
}

.chat-list {
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  overflow: hidden;
}

.chat-list-item {
  border-bottom: 1px solid var(--duvito-line);
  display: grid;
  gap: 3px;
  padding: 12px;
}

.chat-list-item:last-child {
  border-bottom: 0;
}

.message-area {
  background: #fff;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 520px;
}

.message-head,
.message-compose {
  border-bottom: 1px solid var(--duvito-line);
  padding: 12px;
}

.message-compose {
  border-bottom: 0;
  border-top: 1px solid var(--duvito-line);
}

.messages {
  background: #f8fafc;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.bubble {
  border-radius: 12px;
  max-width: 72%;
  padding: 10px 12px;
}

.bubble.in {
  background: #fff;
  border: 1px solid var(--duvito-line);
}

.bubble.out {
  background: #111827;
  color: #fff;
  justify-self: end;
}

.status-chip {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.status-chip.ok {
  background: #e8f5ee;
  color: #1f7a45;
}

.status-chip.wait {
  background: #fff4df;
  color: #996100;
}

.status-chip.muted {
  background: #eef2f7;
  color: #475467;
}

.status-chip.danger {
  background: #ffe9e9;
  color: #b42318;
}

.mobile-device {
  background: #111827;
  border-radius: 28px;
  margin: 0 auto;
  max-width: 390px;
  padding: 12px;
}

.mobile-screen {
  background: #fff;
  border-radius: 20px;
  min-height: 720px;
  overflow: hidden;
}

.mobile-head {
  border-bottom: 1px solid var(--duvito-line);
  padding: 16px;
}

.mobile-body {
  padding: 14px;
}

.step-list {
  display: grid;
  gap: 10px;
}

.step-item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  display: grid;
  gap: 3px;
  grid-template-columns: 32px 1fr auto;
  padding: 12px;
}

.step-number {
  align-items: center;
  background: #111827;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid .full {
  grid-column: 1 / -1;
}

.table-card {
  background: #fff;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  overflow: hidden;
}

.table-card .table {
  margin: 0;
}

.map-panel {
  background:
    linear-gradient(90deg, transparent 24%, rgba(17, 24, 39, 0.06) 25%, transparent 26%),
    linear-gradient(0deg, transparent 24%, rgba(17, 24, 39, 0.06) 25%, transparent 26%),
    #eef2f7;
  background-size: 72px 72px;
  border: 1px solid var(--duvito-line);
  border-radius: var(--duvito-radius);
  min-height: 260px;
  position: relative;
}

.map-pin {
  background: #111827;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.24);
  height: 18px;
  position: absolute;
  width: 18px;
}

.map-pin:nth-child(1) { left: 24%; top: 34%; }
.map-pin:nth-child(2) { left: 52%; top: 45%; }
.map-pin:nth-child(3) { left: 74%; top: 28%; }
.map-pin:nth-child(4) { left: 38%; top: 68%; }

.thumb-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 10px;
}

.thumb-row .vehicle-photo {
  min-height: 70px;
}

.flow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.empty-state {
  align-items: center;
  background: #fff;
  border: 1px dashed #b9c2d0;
  border-radius: var(--duvito-radius);
  display: grid;
  justify-items: center;
  min-height: 220px;
  padding: 24px;
  text-align: center;
}

.rtl-note {
  direction: rtl;
  text-align: right;
}

@media (max-width: 991px) {
  .prototype-sidebar {
    display: none;
  }

  .prototype-sidebar.is-open {
    display: block;
    height: 100vh;
    left: 0;
    max-width: 320px;
    overflow: auto;
    position: fixed;
    top: 0;
    width: 86vw;
    z-index: 50;
  }

  .prototype-intro,
  .screen-head,
  .product-nav {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .form-grid,
  .form-grid.three,
  .chat-layout {
    grid-template-columns: 1fr;
  }
}

@media print {
  body {
    background: #fff;
  }

  .prototype-sidebar,
  .topbar,
  .prototype-intro,
  .screen-url,
  .btn,
  .flow-strip {
    display: none !important;
  }

  .page-wrapper,
  .page-body,
  .container-xl {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .screen-shell {
    border: 0;
    box-shadow: none;
    break-after: page;
    margin: 0;
  }

  .screen-body {
    background: #fff;
    padding: 12px;
  }
}
