:root {
  --bg: #06080b;
  --panel: rgba(11, 14, 18, 0.8);
  --panel-soft: rgba(11, 14, 18, 0.68);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text: #eef2f7;
  --muted: #99a2af;
  --good: #18c27a;
  --warn: #f1b326;
  --danger: #ff4d4d;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: transparent;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  overflow-x: hidden;
}

body.admin-locked .sidebar {
  display: none;
}

body.admin-locked .app-layout {
  grid-template-columns: 1fr;
}

body.admin-locked .mobile-nav-toggle {
  display: none !important;
}

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(180deg, rgba(4, 8, 14, 0.12), rgba(4, 8, 14, 0.34)),
    url("./assets/city-bw-bg.png");
  background-position: center center, center center;
  background-size: auto, cover;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, fixed;
  pointer-events: none;
  filter: contrast(1.08) brightness(0.78);
}

.bg-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.01;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 92px 92px;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 255, 255, 0.04), transparent 48%),
    linear-gradient(180deg, rgba(2, 4, 7, 0.05), rgba(2, 4, 7, 0.2));
  pointer-events: none;
}

.app-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-soft);
  background: rgba(7, 9, 12, 0.82);
  backdrop-filter: blur(8px);
  padding: 18px 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(8, 12, 18, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.brand-icon {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border-radius: 11px;
  background: linear-gradient(145deg, #f8fbff, #cfd9e8);
  color: #0d141d;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 9px;
  letter-spacing: 0.02em;
}

.brand-name {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin: 3px 0 0;
  font-size: 10px;
  color: #a8b3c2;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.nav-links {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.sidebar-legal {
  margin: auto 6px 2px;
  color: #8692a3;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.admin-logout-btn {
  width: calc(100% - 12px);
  margin: 10px 6px 8px;
}

.sidebar-tools {
  display: grid;
  gap: 8px;
  margin: 0 6px 10px;
}

.sidebar-tools .btn {
  width: 100%;
}

body.admin-locked .admin-logout-btn {
  display: none;
}

body.admin-locked .sidebar-tools {
  display: none;
}


.nav-link {
  height: 42px;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #a4acb6;
  text-align: left;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-link:hover {
  border-color: var(--line-soft);
  color: #f4f7fb;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.content {
  padding: 24px;
}

.view {
  display: none;
  animation: fade-in 0.2s ease;
}

.view.active {
  display: block;
}

html[data-preload-route] .view {
  display: none !important;
}

html[data-preload-route="dashboard"] .view[data-view="dashboard"],
html[data-preload-route="vehicles"] .view[data-view="vehicles"],
html[data-preload-route="financials"] .view[data-view="financials"],
html[data-preload-route="solo-financials"] .view[data-view="solo-financials"],
html[data-preload-route="profit-graph"] .view[data-view="profit-graph"],
html[data-preload-route="maintenance"] .view[data-view="maintenance"],
html[data-preload-route="partnerships"] .view[data-view="partnerships"],
html[data-preload-route="appointments"] .view[data-view="appointments"],
html[data-preload-route="reminders"] .view[data-view="reminders"],
html[data-preload-route="leads"] .view[data-view="leads"],
html[data-preload-route="inquiry"] .view[data-view="inquiry"],
html[data-preload-route="customer"] .view[data-view="customer"] {
  display: block !important;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.page-header h1 {
  margin: 0;
  font-size: 37px;
  font-weight: 800;
  line-height: 1.08;
}

.page-header p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.page-actions {
  align-items: center;
}

.card {
  background: rgba(11, 14, 18, 0.74);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(4px);
  margin-bottom: 12px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-head h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
}

.card-head small {
  color: var(--muted);
  font-size: 13px;
}

.stat-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.stat-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.stat-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.stat-card h2 {
  margin: 8px 0 6px;
  font-size: 36px;
  line-height: 1;
}

.stat-card span {
  font-size: 12px;
  color: var(--muted);
}

.good {
  color: var(--good) !important;
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.list li:last-child {
  border-bottom: none;
}

.list .title {
  font-size: 14px;
  font-weight: 700;
}

.list .meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.list .amount {
  font-size: 14px;
  font-weight: 800;
}

.fleet-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fleet-item {
  border: 1px solid var(--line-soft);
  background: var(--panel-soft);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.fleet-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}

.fleet-item .dot.available {
  background: var(--good);
}

.fleet-item .dot.rented {
  background: #f0f3f8;
}

.fleet-item .dot.maintenance {
  background: var(--danger);
}

.fleet-item .vehicle {
  font-size: 13px;
  font-weight: 700;
}

.fleet-item .status {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  text-transform: capitalize;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 10px;
  margin-bottom: 12px;
}

input,
select {
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 10, 13, 0.86);
  color: var(--text);
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
}

textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 10, 13, 0.86);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
  outline: 2px solid rgba(89, 142, 225, 0.45);
  outline-offset: 2px;
}

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

.customer-grid {
  align-items: start;
}

.customer-top-header {
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  position: relative;
  text-align: center;
}

.customer-top-header > div h1 {
  margin: 0;
}

.customer-top-header > div p {
  margin: 8px 0 0;
}

.customer-top-header #openAdminLoginBtn {
  position: absolute;
  right: 0;
  top: 0;
}

.customer-form {
  display: grid;
  gap: 8px;
}

.customer-form label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.customer-legal {
  margin: 8px 0 0;
  text-align: center;
  color: #8a94a3;
  font-size: 11px;
  letter-spacing: 0.02em;
}

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

.customer-car {
  margin-bottom: 0;
}

.customer-photo-slot {
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 10px;
  padding: 10px;
  overflow: hidden;
}

.customer-car-photo {
  width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: center;
  background: rgba(6, 9, 12, 0.72);
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  margin-bottom: 10px;
  transform: none;
}

.customer-photo-slot span {
  display: block;
  font-size: 13px;
  font-weight: 700;
}

.customer-photo-slot small {
  color: var(--muted);
  font-size: 12px;
}

.customer-car-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.customer-car-head h4 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.customer-car-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0;
  font-size: 13px;
}

.customer-car-meta span {
  color: var(--muted);
}

.vehicle-card {
  margin-bottom: 0;
}

.vehicle-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}

.vehicle-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.1;
}

.vehicle-plate {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.vehicle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
}

.vehicle-row b {
  font-size: 14px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(8, 10, 13, 0.95);
  color: #f1f5fb;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 0 14px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: var(--line);
}

.btn-light {
  background: #f4f7fb;
  color: #10151d;
  border-color: rgba(244, 247, 251, 0.55);
}

.btn-ghost {
  background: transparent;
}

.btn-danger {
  border-color: rgba(255, 88, 88, 0.4);
  color: #ff7d7d;
}

.button-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.month-filter-select {
  min-width: 164px;
  max-width: 220px;
}

.button-group.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.tag.gray {
  color: #eef2f7;
}

.tag.amber {
  color: var(--warn);
  border-color: rgba(241, 179, 38, 0.26);
  background: rgba(241, 179, 38, 0.14);
}

.tag.red {
  color: #ff7171;
  border-color: rgba(255, 77, 77, 0.3);
  background: rgba(255, 77, 77, 0.14);
}

.tag.green {
  color: #3ad18a;
  border-color: rgba(58, 209, 138, 0.26);
  background: rgba(58, 209, 138, 0.12);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.chart-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(7, 10, 14, 0.75);
  padding: 10px;
}

.chart-wrap canvas {
  width: 100%;
  height: 360px;
  display: block;
}

.chart-legend {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--panel-soft);
  padding: 7px 10px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 10px;
}

.legend-name {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}

.legend-value {
  font-size: 13px;
  font-weight: 700;
}

.chart-totals {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.chart-total-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
}

.chart-total-item small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 2px;
}

.chart-total-item b {
  font-size: 15px;
  line-height: 1.1;
}

.chart-total-expense {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-weight: 650;
}

tbody tr:last-child td {
  border-bottom: none;
}

td.strong {
  font-weight: 700;
}

td.positive {
  color: var(--good);
  font-weight: 700;
}

td.negative {
  color: var(--danger);
  font-weight: 700;
}

.status-select {
  min-width: 122px;
  height: 32px;
  font-size: 12px;
}

.table-actions {
  display: inline-flex;
  gap: 8px;
}

.section-title {
  margin: 14px 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
}

.stack {
  display: grid;
  gap: 10px;
}

.task {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task input {
  width: 16px;
  height: 16px;
}

.task-main {
  flex: 1;
}

.task-main b {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.task-main p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.task.completed {
  opacity: 0.62;
}

.inquiry-wrap {
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  display: grid;
  place-items: center;
}

.inquiry-card {
  width: min(560px, 100%);
}

.inquiry-logo {
  width: fit-content;
  min-width: 56px;
  height: 56px;
  padding: 0 14px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.inquiry-card h1 {
  text-align: center;
  margin: 0;
  font-size: 33px;
  line-height: 1.1;
}

.inquiry-card > p {
  text-align: center;
  margin: 7px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stepper .step {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line-soft);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}

.stepper .step.active {
  background: #f4f7fb;
  color: #11161d;
}

.stepper .line {
  width: 34px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.36);
}

.step-form {
  display: none;
}

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

.inquiry-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.step-form label {
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.summary {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--panel-soft);
  padding: 12px;
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 6px;
}

.summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.summary-row span {
  color: var(--muted);
  font-size: 12px;
}

.summary-row b {
  font-size: 13px;
}

.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 50;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(7, 10, 13, 0.95);
  color: #f5f8fc;
  font-size: 13px;
  font-weight: 700;
  height: 38px;
  width: 70px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(12, 16, 20, 0.95);
  color: #eef2f7;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 80;
  max-width: 280px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(5, 9, 14, 0.62);
  backdrop-filter: blur(3px);
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(520px, calc(100vw - 24px));
  transform: translate(-50%, -50%);
  z-index: 91;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(10, 14, 20, 0.96);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  padding: 14px;
  max-height: calc(100vh - 24px);
  overflow: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
}

.modal-form {
  display: grid;
  gap: 8px;
}

.modal-form label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.admin-login-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.checkbox-line input {
  width: 16px;
  height: 16px;
}

.modal-photo-preview {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 8px;
}

.modal-photo-preview img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  object-position: center;
  background: rgba(6, 9, 12, 0.72);
  border-radius: 10px;
}

.modal-form input[readonly] {
  opacity: 0.86;
  background: rgba(18, 23, 30, 0.9);
}

.empty {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0;
}

@media (max-width: 1180px) {
  .stat-grid.four,
  .vehicle-grid,
  .customer-vehicle-grid,
  .fleet-grid {
    grid-template-columns: 1fr 1fr;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .mobile-nav-toggle {
    display: block;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    width: 270px;
    height: 100vh;
    z-index: 40;
    transition: left 0.22s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .content {
    padding:
      calc(max(52px, env(safe-area-inset-top) + 40px))
      max(12px, env(safe-area-inset-right))
      max(12px, env(safe-area-inset-bottom))
      max(12px, env(safe-area-inset-left));
  }

  .stat-grid.four,
  .stat-grid.three,
  .vehicle-grid,
  .customer-vehicle-grid,
  .fleet-grid,
  .toolbar,
  .button-group.split {
    grid-template-columns: 1fr;
  }

  .page-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-group {
    width: 100%;
  }

  .button-group .btn {
    flex: 1;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .customer-top-header {
    place-items: start;
    text-align: left;
  }

  .customer-top-header #openAdminLoginBtn {
    position: static;
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .page-header h1 {
    font-size: 31px;
  }

  .card {
    padding: 12px;
    border-radius: 12px;
  }

  .card-head h3 {
    font-size: 22px;
    line-height: 1.12;
  }

  .inquiry-card h1 {
    font-size: 28px;
  }

  .btn,
  .mobile-nav-toggle {
    min-height: 42px;
    font-size: 14px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }

  .toolbar {
    gap: 8px;
  }

  .table-wrap {
    overflow: visible;
  }

  .table-wrap table,
  .table-wrap thead,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap th,
  .table-wrap td {
    display: block;
    width: 100%;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody {
    display: grid;
    gap: 9px;
  }

  .table-wrap tbody tr {
    border: 1px solid var(--line-soft);
    border-radius: 11px;
    background: rgba(9, 13, 19, 0.72);
    padding: 8px 10px;
  }

  .table-wrap tbody td {
    border-bottom: 1px solid var(--line-soft);
    padding: 7px 0;
    white-space: normal;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .table-wrap tbody td:last-child {
    border-bottom: none;
    padding-bottom: 2px;
  }

  .table-wrap tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    flex: 0 0 43%;
    max-width: 43%;
  }

  .table-wrap tbody td > * {
    margin-left: auto;
  }

  .table-wrap tbody td .btn {
    min-height: 34px;
    padding: 0 10px;
  }

  .modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 12px;
  }
}

@media (max-width: 460px) {
  .brand-name {
    font-size: 13px;
  }

  .page-header h1 {
    font-size: 27px;
  }

  .page-header p,
  .stat-card p,
  .stat-card span {
    font-size: 12px;
  }

  .stat-card h2 {
    font-size: 30px;
  }

  .inquiry-wrap {
    min-height: calc(100dvh - 64px);
  }

  .inquiry-card {
    width: 100%;
  }

  .stepper .line {
    width: 24px;
  }
}
