:root {
  --bg-main: #0f1115;
  --bg-soft: #171a21;
  --card-bg: #1e222b;
  --card-bg-strong: #242a35;
  --text-main: #f4f5f7;
  --text-soft: #b8bec8;
  --text-muted: #7f8794;
  --accent: #d6a84f;
  --accent-hover: #e2bc6a;
  --accent-dark: #b88732;
  --success: #36c28b;
  --warning: #f0b84b;
  --danger: #ef5b5b;
  --info: #65a7ff;
  --border-soft: rgba(255, 255, 255, 0.1);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --navy: var(--bg-main);
  --red: var(--accent);
  --red-soft: rgba(214, 168, 79, 0.13);
  --ink: var(--text-main);
  --muted: var(--text-soft);
  --line: var(--border-soft);
  --surface: var(--card-bg);
  --page: var(--bg-main);
  --green: var(--success);
  --amber: var(--warning);
  --blue: var(--info);
  --shadow-soft: 0 18px 44px rgba(0, 0, 0, 0.28);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  max-width: 760px;
  margin: 0 auto;
  padding: 12px 14px 92px;
  position: relative;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-card {
  width: min(430px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.auth-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 8px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 5px;
  margin: 16px 0;
}

.auth-tab {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 9px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.auth-form {
  display: none;
  gap: 10px;
}

.auth-form.active {
  display: grid;
}

.auth-message {
  display: none;
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
}

.auth-message.show {
  display: block;
}

.auth-message.error {
  background: var(--red-soft);
  color: var(--danger);
}

.auth-message.info {
  background: #eef5ff;
  color: var(--blue);
}

.startup-check {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  background: #fff;
}

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

.startup-check.ok {
  border-left-color: var(--green);
}

.startup-check.error {
  border-left-color: var(--danger);
}

button:disabled,
input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  margin: 0 0 18px;
  padding: 12px 14px;
}

.brand-lockup {
  display: flex;
  align-items: center;
}

.brand-lockup img {
  display: block;
  max-width: 100%;
}

.auth-brand {
  justify-content: center;
  margin-bottom: 12px;
}

.auth-brand img {
  width: min(280px, 100%);
  height: auto;
}

.brand-header {
  align-items: center;
  display: flex;
  min-width: 0;
}

.brand-header img {
  display: block;
  height: auto;
  max-height: 72px;
  max-width: min(390px, 100%);
  object-fit: contain;
  width: auto;
}

.brand-header img {
  height: auto;
}

.page-title-block {
  display: none;
}

.topbar .page-title-block h1 {
  color: var(--navy);
}

.topbar .firm-switcher {
  color: var(--muted);
}

.topbar .firm-switcher select,
.topbar .icon-button,
.topbar .ghost-button {
  background: #fff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 2;
  grid-row: 1;
}

.firm-switcher {
  min-width: 142px;
  color: var(--muted);
  font-size: 11px;
}

.firm-switcher select {
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 12px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 26px;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 15px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
}

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

.metric {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  min-height: 86px;
}

.metric span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.metric strong {
  display: block;
  font-size: 28px;
  margin-top: 10px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}

.compact-section-head {
  margin-top: 8px;
}

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

.pool-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  background: linear-gradient(145deg, rgba(31, 35, 45, 0.98), rgba(20, 23, 31, 0.98));
  border: 1px solid rgba(214, 168, 79, 0.16);
  border-radius: 18px;
  padding: 12px;
  gap: 10px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.pool-filter-row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.pool-filter-row-primary {
  grid-template-columns: minmax(260px, 1fr) minmax(118px, 170px) minmax(118px, 170px) minmax(116px, 132px);
}

.pool-filter-row-secondary {
  display: none;
  grid-template-columns: minmax(92px, 112px) minmax(92px, 112px) minmax(150px, 1fr) minmax(118px, 148px) minmax(138px, 178px) minmax(218px, 250px);
  align-items: stretch;
  padding-top: 4px;
}

.pool-toolbar.is-open .pool-filter-row-secondary {
  display: grid;
}

.pool-clear-button {
  min-width: 108px;
  white-space: nowrap;
  height: 46px;
  border-radius: 14px;
}

.pool-filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
  align-items: stretch;
}

.pool-apply-button {
  display: inline-flex;
  min-width: 0;
  height: 46px;
  border-radius: 14px;
}

.pool-filter-toggle {
  min-width: 0;
  height: 46px;
  border-radius: 14px;
  background: rgba(214, 168, 79, 0.12);
  border-color: rgba(214, 168, 79, 0.34);
  color: var(--accent-hover);
  font-weight: 900;
}

.firm-toolbar {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 320px);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
}

.firm-search {
  min-width: 0;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.admin-summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 12px;
}

.admin-summary-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.admin-summary-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.admin-summary-log-list {
  margin-bottom: 16px;
}

.pilot-start-card {
  display: grid;
  gap: 14px;
  margin: 14px 0;
  padding: 16px;
  border: 1px solid rgba(214, 168, 79, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 14% 0%, rgba(214, 168, 79, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(34, 39, 50, 0.98), rgba(20, 23, 31, 0.98));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.pilot-start-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(214, 168, 79, 0.12);
  border: 1px solid rgba(214, 168, 79, 0.24);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 900;
}

.pilot-start-card h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 22px;
}

.pilot-start-card p {
  margin: 6px 0 0;
  color: var(--text-soft);
  line-height: 1.45;
}

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

.pilot-action-button {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 12px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.pilot-action-button strong {
  color: var(--accent-hover);
  font-size: 15px;
}

.pilot-action-button span {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.35;
}

#profileSummaryCard .card-top {
  align-items: center;
  gap: 12px;
}

#profileSummaryCard h3 {
  color: var(--text-main);
  margin-bottom: 6px;
}

#dashboardNotificationList {
  display: grid;
  gap: 8px;
}

.profile-summary-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.profile-summary-main {
  min-width: 0;
}

.profile-summary-eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(214, 168, 79, 0.10);
  border: 1px solid rgba(214, 168, 79, 0.20);
  color: var(--accent-hover);
  font-size: 11px;
  font-weight: 900;
}

#profileSummaryCard h3 {
  color: var(--text-main);
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0 0 10px;
}

.profile-summary-lines {
  display: grid;
  gap: 5px;
  margin-bottom: 10px;
}

.profile-summary-lines p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--text-soft);
  font-size: 13px;
}

.profile-summary-lines strong {
  color: var(--text-main);
  font-weight: 800;
}

.profile-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.profile-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(214, 168, 79, 0.20);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(214, 168, 79, 0.08);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 900;
}

.profile-summary-email {
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.pilot-action-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(214, 168, 79, 0.34);
}

.pilot-action-button.featured {
  background: linear-gradient(145deg, rgba(214, 168, 79, 0.18), rgba(255, 255, 255, 0.055));
  border-color: rgba(214, 168, 79, 0.34);
}

.request-filter-bar {
  margin-bottom: 12px;
}

.request-filter-bar label {
  display: grid;
  gap: 6px;
  max-width: 280px;
}

.request-filter-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.pool-search {
  min-width: 0;
}

#poolSort {
  min-width: 160px;
}

#poolLocationFilter {
  min-width: 130px;
}

.pool-clear-button {
  min-height: 42px;
  white-space: nowrap;
}

.search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
  border-color: rgba(197, 13, 35, 0.42);
  box-shadow: 0 0 0 3px rgba(197, 13, 35, 0.08);
  outline: none;
}

.vehicle-list,
.rental-list,
.service-list,
.need-list,
.firm-list,
.request-list,
.deal-list,
.history-list,
.dispute-list,
.price-band-list,
.alert-list,
.compact-list {
  display: grid;
  gap: 10px;
}

.vehicle-card,
.rental-card,
.service-card,
.firm-card,
.deal-card,
.history-card,
.dispute-card,
.price-band-card,
.alert-card,
.compact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.vehicle-card {
  display: grid;
  gap: 12px;
}

.my-listings-section {
  display: grid;
  gap: 10px;
}

.my-listings-section + .my-listings-section {
  margin-top: 12px;
}

.my-listings-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 0;
}

.my-listings-section-head h3 {
  font-size: 16px;
}

.my-listings-section-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.my-listing-card.closed-listing {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.03)),
    var(--bg-soft);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  opacity: 1;
  position: relative;
}

.my-listing-card.closed-listing::before {
  background: linear-gradient(180deg, rgba(240, 184, 75, 0.78), rgba(127, 135, 148, 0.28));
  border-radius: 999px;
  content: "";
  inset: 14px auto 14px 0;
  position: absolute;
  width: 3px;
}

.compact-closed-listing {
  gap: 9px;
  padding: 14px 14px 14px 18px;
}

.closed-listing-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.closed-listing-main h3 {
  color: var(--text-main);
  font-size: 16px;
}

.closed-listing-main .muted {
  color: var(--text-soft);
}

.closed-listing-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.closed-listing-summary-grid div {
  background: rgba(15, 17, 21, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
}

.closed-listing-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 3px;
}

.closed-listing-summary-grid strong {
  font-size: 13px;
}

.closed-listing-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.closed-listing-details summary {
  color: var(--accent-hover);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.closed-listing-details summary::-webkit-details-marker {
  display: none;
}

.closed-listing-details .hide-label,
.closed-listing-details[open] .show-label {
  display: none;
}

.closed-listing-details[open] .hide-label {
  display: inline;
}

.closed-listing-details .vehicle-detail-grid {
  margin-top: 8px;
}

.my-listing-request-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  padding: 10px;
}

.my-listing-request-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.my-listing-request-summary strong {
  color: var(--ink);
  font-size: 18px;
  justify-self: end;
}

.my-listing-request-summary small {
  color: var(--muted);
  font-size: 12px;
}

.my-listing-request-summary.has-pending {
  border-color: rgba(197, 13, 35, 0.24);
  background: #fff6f7;
}

.closed-listing-note {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.closed-listing .status.service {
  background: rgba(240, 184, 75, 0.14);
  border: 1px solid rgba(240, 184, 75, 0.32);
  color: var(--warning);
}

.compact-empty {
  padding: 14px;
}

.vehicle-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vehicle-title-block {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.vehicle-title-block h3 {
  font-size: 19px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.vehicle-price-block {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.vehicle-price-block strong {
  color: var(--red);
  font-size: 18px;
  white-space: nowrap;
}

.vehicle-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.vehicle-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafbfc;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
}

.reservation-summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
}

.reservation-summary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(214, 168, 79, 0.28);
  border-radius: 999px;
  background: rgba(214, 168, 79, 0.12);
  color: var(--text-main);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 11px;
}

.reservation-summary-pill.strong {
  color: var(--accent-hover);
}

.reservation-summary-pill.expired {
  border-color: rgba(239, 91, 91, 0.28);
  background: rgba(239, 91, 91, 0.12);
  color: #ffb4b4;
}

.vehicle-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 8px;
}

.vehicle-detail-box {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: #fafbfc;
}

.vehicle-detail-box span,
.vehicle-company-row span,
.vehicle-note span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
}

.vehicle-detail-box strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.vehicle-company-row {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.company-name-inline {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 0;
  text-align: left;
}

.company-name-inline:hover {
  color: var(--red);
}

.vehicle-note {
  color: var(--ink);
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.vehicle-actions {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.need-offer-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.need-card {
  border-left: 4px solid rgba(197, 13, 35, 0.72);
}

.need-offer-list > strong {
  font-size: 13px;
}

.empty-need-offers {
  background: #fafbfc;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px;
}

.empty-need-offers p {
  margin: 0;
}

.need-offer-item {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfc;
  padding: 9px;
}

.need-offer-item span:not(.status) {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 3px;
}

.need-offer-item strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.need-offer-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.small-action {
  min-height: 30px;
  padding: 6px 10px;
}

.offer-sent-note {
  align-items: center;
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 12px;
}

.reservation-privacy-note {
  align-items: center;
  border: 1px solid rgba(54, 194, 139, 0.18);
  border-radius: 999px;
  background: rgba(54, 194, 139, 0.08);
  color: #bff5dd;
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  margin: 0;
  min-height: 28px;
  padding: 6px 10px;
  width: fit-content;
  max-width: 100%;
}

.reservation-privacy-note span {
  color: rgba(191, 245, 221, 0.72);
  font-weight: 700;
}

.reservation-offer-badge {
  align-items: center;
  border: 1px solid rgba(214, 168, 79, 0.26);
  border-radius: 999px;
  background: rgba(214, 168, 79, 0.12);
  color: var(--accent-hover);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 30px;
  padding: 5px 10px;
}

.dialog-subtitle {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.35;
}

.need-summary-row {
  margin-top: 8px;
}

.status.urgent {
  background: rgba(239, 91, 91, 0.14);
  color: #ffd8d8;
  border: 1px solid rgba(239, 91, 91, 0.34);
}

.need-card .status.service {
  border: 1px solid rgba(214, 168, 79, 0.24);
}

.active-deal-card {
  display: grid;
  gap: 12px;
}

.active-deal-card .vehicle-actions {
  order: 1;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.deal-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.agreement-section {
  display: grid;
  gap: 8px;
}

.agreement-section h4 {
  color: var(--accent-hover);
  font-size: 13px;
  line-height: 1.1;
  margin: 0;
}

.agreement-date-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.agreement-date-row div {
  border: 1px solid rgba(197, 13, 35, 0.18);
  border-radius: 8px;
  background: #fff6f7;
  padding: 10px;
}

.agreement-date-row span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 4px;
}

.agreement-date-row strong {
  color: var(--ink);
  font-size: 15px;
}

.deal-highlight-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
}

.deal-highlight-box {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px;
  background: #fafbfc;
}

.deal-highlight-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 3px;
}

.deal-highlight-box strong {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.plate-highlight strong {
  font-size: 17px;
  letter-spacing: 0;
}

.whatsapp-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 7px;
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  text-decoration: none;
}

.whatsapp-action-link.compact {
  margin-top: 0;
  min-height: 28px;
  padding: 5px 9px;
}

.compact-agreement-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.firm-card-simple {
  display: grid;
  gap: 12px;
}

.firm-card-main {
  display: grid;
  gap: 5px;
}

.firm-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.firm-card-title-row h3 {
  font-size: 18px;
  line-height: 1.2;
}

.firm-name-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  padding: 0;
  text-align: left;
}

.firm-name-button:hover {
  color: var(--red);
}

.admin-approval-card {
  display: grid;
  gap: 10px;
}

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

.admin-approval-field {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: #fafbfc;
}

.admin-approval-field span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.admin-approval-field strong {
  display: block;
  font-size: 13px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.profile-edit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

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

.profile-read-field {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: #fafbfc;
}

.profile-read-field span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.profile-read-field strong {
  display: block;
  font-size: 13px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.profile-edit-form {
  display: grid;
  gap: 10px;
}

.profile-message {
  display: none;
  border-radius: 7px;
  padding: 9px;
  font-size: 13px;
}

.profile-message.show {
  display: block;
}

.profile-message.error {
  background: var(--red-soft);
  color: var(--danger);
}

.profile-message.info {
  background: #eef5ff;
  color: var(--blue);
}

.firm-trust-line {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.trust-badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 24px;
  border: 1px solid #b8d8c7;
  border-radius: 999px;
  background: #eef8f2;
  color: #0f6f4e;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.trust-badge.compact {
  min-height: 22px;
  padding: 3px 7px;
}

.pool-company-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.firm-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notice {
  display: grid;
  gap: 5px;
  background: var(--red-soft);
  border: 1px solid #ffd5db;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.notice span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.connection-card {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  margin-bottom: 12px;
}

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

.connection-card.ok {
  border-left-color: var(--green);
}

.connection-card.error {
  border-left-color: var(--danger);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.plate {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #111827;
  border-radius: 5px;
  font-weight: 800;
  letter-spacing: 0;
  background: #fff;
}

.company-profile-link {
  cursor: pointer;
  text-align: left;
}

.company-profile-link:hover {
  border-color: var(--red);
  color: var(--red);
}

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

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 700;
}

.status.available {
  background: #e9f8f1;
  color: var(--green);
}

.status.rented {
  background: #eef5ff;
  color: var(--blue);
}

.status.service {
  background: #fff5e6;
  color: var(--amber);
}

.status.damage {
  background: #fff0ef;
  color: var(--danger);
}

.status.warning {
  background: #fff5e6;
  color: var(--amber);
}

.status.ok {
  background: #e9f8f1;
  color: var(--green);
}

.price-band-card {
  display: grid;
  gap: 8px;
}

.band-line {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e9f8f1, #fff5e6);
  border: 1px solid var(--line);
}

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

.meta-box {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px;
  background: #fafbfc;
}

.meta-box span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.meta-box strong {
  display: block;
  font-size: 13px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 9999;
  pointer-events: auto;
}

.vehicle-card .request-action-button {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 9999;
}

.primary-button,
.text-button,
.ghost-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  background: var(--red);
  color: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  font-weight: 700;
}

.primary-button.full {
  width: 100%;
  margin-top: 14px;
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 7px;
  padding: 8px 10px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  border-radius: 7px;
  padding: 8px 10px;
  text-decoration: none;
}

.text-button {
  color: var(--red);
  background: transparent;
  padding: 6px 0;
  font-weight: 700;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 22px;
  line-height: 1;
}

.alert-card {
  border-left: 4px solid var(--amber);
}

.notification-card {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: start;
  gap: 10px;
}

.notification-card.read {
  opacity: 0.58;
}

.notification-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  background: transparent;
}

.notification-card.unread .notification-dot {
  background: var(--red);
}

.notification-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.notification-read-button {
  white-space: nowrap;
  align-self: center;
  font-size: 12px;
}

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

.menu-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.menu-card:hover {
  border-color: #cfd5df;
  background: #fbfcfd;
}

.menu-card:focus-visible {
  outline: 2px solid rgba(197, 13, 35, 0.24);
  outline-offset: 2px;
}

.menu-card strong {
  font-size: 15px;
}

.menu-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.danger-menu-card strong {
  color: var(--red);
}

.company-profile-content {
  display: grid;
  gap: 12px;
}

.company-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

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

.profile-ratings {
  display: grid;
  gap: 8px;
}

.rating-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
}

.rating-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.alert-card.critical {
  border-left-color: var(--danger);
}

.dispute-card {
  border-left: 4px solid var(--danger);
}

.history-card {
  border-left: 4px solid var(--green);
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  display: grid;
  gap: 5px;
  text-align: center;
  background: #fff;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(732px, calc(100% - 24px));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
}

.nav-item {
  border: 0;
  border-radius: 8px;
  padding: 10px 4px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.nav-item.active {
  background: var(--red-soft);
  color: var(--red);
}

.nav-pasla-action {
  align-self: center;
  min-height: 54px;
  border: 1px solid rgba(255, 232, 178, 0.32);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 48%, var(--accent-dark));
  color: #17110a;
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 0 10px;
  transform: translateY(-10px);
  box-shadow: 0 14px 30px rgba(214, 168, 79, 0.28), 0 0 0 8px rgba(214, 168, 79, 0.08);
  animation: paslaPulse 3.6s ease-in-out infinite;
}

.nav-pasla-action:hover {
  background: linear-gradient(135deg, #f0cf86, var(--accent-hover), var(--accent));
  transform: translateY(-12px);
}

@keyframes paslaPulse {
  0%,
  100% {
    box-shadow: 0 14px 30px rgba(214, 168, 79, 0.24), 0 0 0 6px rgba(214, 168, 79, 0.06);
  }

  50% {
    box-shadow: 0 18px 36px rgba(214, 168, 79, 0.36), 0 0 0 10px rgba(214, 168, 79, 0.1);
  }
}

.fab {
  position: fixed;
  right: max(16px, calc((100vw - 760px) / 2 + 18px));
  bottom: 82px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 14px 16px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(183, 15, 34, 0.28);
  cursor: pointer;
}

.debug-console {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 760px;
  margin: 0 auto;
  z-index: 20;
  background: #111827;
  color: #e5e7eb;
  border: 1px solid #374151;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.debug-console.collapsed {
  left: auto;
  right: 12px;
  width: 190px;
}

.debug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #0b1220;
  font-size: 12px;
}

.debug-head div {
  display: flex;
  gap: 6px;
}

.debug-button {
  border: 1px solid #4b5563;
  border-radius: 6px;
  background: #1f2937;
  color: #e5e7eb;
  padding: 5px 8px;
  font-size: 12px;
}

.debug-console pre {
  margin: 0;
  padding: 10px;
  max-height: 190px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 11px;
  line-height: 1.35;
}

.debug-console.collapsed pre {
  display: none;
}

dialog {
  width: min(680px, calc(100% - 22px));
  border: 0;
  border-radius: 12px;
  padding: 0;
  background: transparent;
}

dialog::backdrop {
  background: rgba(17, 24, 39, 0.42);
}

.dialog-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--line);
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

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

.form-sections {
  display: grid;
  gap: 12px;
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: 0;
  background: #fbfcfd;
}

.form-section legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 0 6px;
}

.required-mark {
  color: var(--red);
  font-weight: 800;
}

.help-text {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.field-error {
  color: var(--red);
  font-size: 11px;
  min-height: 14px;
}

.field-invalid {
  border-color: rgba(197, 13, 35, 0.72);
  box-shadow: 0 0 0 3px rgba(197, 13, 35, 0.08);
}

.form-message {
  min-height: 18px;
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.form-message.error {
  color: var(--red);
  font-weight: 700;
}

.date-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  grid-column: 1 / -1;
}

label {
  color: var(--muted);
  font-size: 12px;
  display: grid;
  gap: 5px;
}

.wide {
  grid-column: 1 / -1;
}

/* FleetTrust UI polish */
.auth-card,
.metric,
.pool-toolbar,
.firm-toolbar,
.admin-summary-card,
.vehicle-card,
.rental-card,
.service-card,
.firm-card,
.deal-card,
.history-card,
.dispute-card,
.price-band-card,
.alert-card,
.compact-card,
.profile-edit-card,
.connection-card,
.notice,
.startup-check {
  border-color: var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.auth-card,
.vehicle-card,
.rental-card,
.service-card,
.firm-card,
.deal-card,
.history-card,
.dispute-card,
.price-band-card,
.alert-card,
.compact-card,
.profile-edit-card {
  padding: 16px;
}

.topbar h1,
.section-head h2,
.section-head h3,
.dialog-head h2 {
  color: var(--navy);
  letter-spacing: 0;
}

.eyebrow {
  color: var(--red);
  letter-spacing: 0;
}

input,
select {
  border-color: var(--line);
  border-radius: 12px;
  min-height: 44px;
}

input:focus,
select:focus {
  border-color: rgba(215, 38, 56, 0.5);
  box-shadow: 0 0 0 4px rgba(215, 38, 56, 0.1);
}

.primary-button,
.ghost-button,
.ghost-link,
.text-button,
.icon-button,
.auth-tab,
.nav-item {
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-button {
  align-items: center;
  background: var(--red);
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  box-shadow: 0 10px 20px rgba(215, 38, 56, 0.18);
}

.primary-button:hover,
.fab:hover {
  background: #bf1f30;
  transform: translateY(-1px);
}

.ghost-button,
.ghost-link {
  align-items: center;
  background: #f9fafb;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 9px 14px;
}

.ghost-button:hover,
.ghost-link:hover,
.icon-button:hover {
  background: #fff;
  border-color: rgba(23, 35, 58, 0.22);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.text-button {
  color: var(--red);
  font-weight: 800;
}

.icon-button {
  border-color: var(--line);
  color: var(--navy);
}

.status {
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  min-height: 26px;
  padding: 4px 10px;
}

.status.available,
.status.ok {
  background: #ecfdf3;
  border-color: rgba(22, 163, 74, 0.18);
  color: var(--green);
}

.status.rented {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.18);
  color: var(--blue);
}

.status.service,
.status.warning {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.22);
  color: #b45309;
}

.status.damage {
  background: #fef2f2;
  border-color: rgba(220, 38, 38, 0.18);
  color: var(--danger);
}

.trust-badge,
.vehicle-chip,
.offer-sent-note {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
}

.vehicle-chip {
  background: #f9fafb;
  color: var(--navy);
}

.vehicle-detail-box,
.meta-box,
.deal-highlight-box,
.profile-read-field,
.admin-approval-field,
.closed-listing-summary-grid div,
.my-listing-request-summary,
.need-offer-item,
.rating-item {
  background: #f9fafb;
  border-color: var(--line);
  border-radius: 12px;
}

.empty-state {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 22px 18px;
}

.empty-state strong {
  color: var(--navy);
  font-size: 15px;
}

.empty-state span,
.empty-state p {
  color: var(--muted);
  line-height: 1.45;
}

.bottom-nav {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 8px;
}

.nav-item {
  border-radius: 14px;
  min-height: 44px;
}

.nav-pasla-action {
  min-height: 56px;
}

.nav-item.active {
  background: var(--red-soft);
  color: var(--red);
  box-shadow: inset 0 0 0 1px rgba(215, 38, 56, 0.12);
}

.fab {
  background: var(--red);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(215, 38, 56, 0.24);
  min-height: 48px;
}

.pasla-action-dialog {
  max-width: 520px;
}

.pasla-action-grid {
  display: grid;
  gap: 12px;
}

.pasla-choice-card {
  position: relative;
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 92px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pasla-choice-card:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(214, 168, 79, 0.42);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.26);
  transform: translateY(-1px);
}

.pasla-choice-card strong {
  color: var(--accent-hover);
  font-size: 17px;
}

.pasla-choice-card span {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
}

.soon-badge {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(240, 184, 75, 0.32);
  border-radius: 999px;
  background: rgba(240, 184, 75, 0.14);
  color: var(--warning) !important;
  font-size: 12px !important;
  font-weight: 800;
}

dialog {
  border-radius: 20px;
  width: min(680px, 92vw);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.dialog-card {
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
  padding: 20px;
}

.form-section {
  background: #f9fafb;
  border-radius: 16px;
}

.menu-card {
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.danger-menu-card strong {
  color: var(--danger);
}

/* Visual Polish v2: premium dark PaslaCar theme */
body {
  background:
    radial-gradient(circle at 18% 0%, rgba(214, 168, 79, 0.14), transparent 30%),
    radial-gradient(circle at 100% 12%, rgba(101, 167, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #11141a 0%, var(--bg-main) 42%, #0a0c10 100%);
  color: var(--text-main);
}

.auth-shell {
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 168, 79, 0.16), transparent 34%),
    linear-gradient(180deg, #141820 0%, #0f1115 100%);
}

.topbar,
.auth-card,
.vehicle-card,
.rental-card,
.service-card,
.firm-card,
.deal-card,
.history-card,
.dispute-card,
.price-band-card,
.alert-card,
.compact-card,
.profile-edit-card,
.connection-card,
.admin-summary-card,
.menu-card,
.notification-card,
.dialog-card,
.empty-state {
  background: linear-gradient(180deg, rgba(36, 42, 53, 0.98), rgba(30, 34, 43, 0.98));
  border-color: var(--border-soft);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  color: var(--text-main);
}

.topbar {
  backdrop-filter: blur(14px);
  border-radius: 22px;
}

.topbar {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 16px;
  padding: 10px 14px;
}

.top-actions {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.top-actions .ghost-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: none;
  color: #d9dee7;
  min-height: 42px;
  padding-inline: 18px;
}

.top-actions .ghost-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(214, 168, 79, 0.34);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  color: var(--text-main);
}

.header-notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #d9dee7;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.header-notification-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(214, 168, 79, 0.34);
}

.header-notification-icon {
  color: var(--accent-hover);
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.header-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 0 0 3px rgba(15, 17, 21, 0.95);
}

.header-notification-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 78px;
  z-index: 80;
  width: min(340px, calc(100vw - 24px));
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(214, 168, 79, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(31, 35, 45, 0.98), rgba(14, 16, 22, 0.98));
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.notification-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-popover-head strong {
  color: var(--text-main);
  font-size: 15px;
}

.notification-popover-head span {
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 800;
}

.notification-popover-list {
  display: grid;
  gap: 8px;
  max-height: 292px;
  overflow: auto;
}

.notification-popover-item {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
}

.notification-popover-item.read {
  opacity: 0.68;
}

.notification-popover-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.20);
}

.notification-popover-item.unread .notification-popover-dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(214, 168, 79, 0.10);
}

.notification-popover-item strong,
.notification-popover-item p,
.notification-popover-item time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-popover-item strong {
  color: var(--text-main);
  font-size: 13px;
}

.notification-popover-item p {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
}

.notification-popover-item time {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
}

.notification-popover-empty {
  padding: 18px 12px;
  text-align: center;
  color: var(--text-soft);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.notification-popover-all {
  min-height: 38px;
  border: 1px solid rgba(214, 168, 79, 0.30);
  border-radius: 13px;
  background: rgba(214, 168, 79, 0.11);
  color: var(--accent-hover);
  font-weight: 900;
  cursor: pointer;
}

.notification-popover-all:hover {
  background: rgba(214, 168, 79, 0.17);
}

.brand-header img,
.auth-brand img,
.status-brand img {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.auth-brand img,
.status-brand img {
  width: min(360px, 100%);
}

.brand-header img {
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.32));
}

h1,
h2,
h3,
.topbar h1,
.dialog-head h2,
.firm-name-button,
.vehicle-title-block h3,
.menu-card strong,
.card-top strong,
.auth-card h1,
.auth-card h2,
.empty-state strong {
  color: var(--text-main);
}

.section-head h2,
.section-head h3,
.my-listings-section-head h3 {
  color: var(--accent-hover);
  font-weight: 800;
}

.section-head {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}

.screen > .section-head:first-child {
  border-top: 0;
  padding-top: 0;
}

.auth-copy,
.startup-check span,
.connection-card span,
.menu-card span,
.empty-state span,
.empty-state p,
.card-top span,
.metric-card span,
.vehicle-meta-row,
.vehicle-note,
.vehicle-location,
.request-subtext,
.firm-card-subtitle,
.muted,
label,
.profile-field span,
.detail-box span {
  color: var(--text-soft);
}

input,
select,
textarea,
.form-section,
.detail-box,
.vehicle-detail-item,
.vehicle-note-box,
.deal-highlight,
.profile-field,
.admin-approval-field,
.closed-listing-summary-item,
.need-offer-item,
.request-filter-bar,
.pool-toolbar,
.firm-toolbar,
.toolbar,
.auth-tabs {
  background: rgba(15, 17, 21, 0.52);
  border-color: var(--border-soft);
  color: var(--text-main);
}

.my-listing-request-summary,
.closed-listing-summary-grid div,
.vehicle-detail-box {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.my-listing-request-summary span,
.closed-listing-summary-grid span,
.vehicle-detail-box span {
  color: var(--text-soft);
  opacity: 0.92;
}

.my-listing-request-summary strong,
.closed-listing-summary-grid strong,
.vehicle-detail-box strong {
  color: var(--text-main);
  font-weight: 800;
}

.my-listing-request-summary strong {
  color: var(--accent-hover);
}

/* Dark field fix v1: display boxes and readonly-like fields */
.agreement-date-row div,
.deal-highlight-box,
.vehicle-detail-box,
.meta-box,
.detail-box,
.vehicle-detail-item,
.vehicle-note-box,
.profile-read-field,
.profile-field,
.admin-approval-field,
.need-offer-item,
.rating-item,
.request-filter-bar,
.closed-listing-summary-grid div,
.my-listing-request-summary,
.startup-check,
.connection-card,
.form-section,
input,
select,
textarea {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8ecf3;
}

input[readonly],
input:disabled,
select:disabled,
textarea:disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #cfd6e2;
  opacity: 1;
}

.agreement-date-row span,
.deal-highlight-box span,
.vehicle-detail-box span,
.meta-box span,
.detail-box span,
.vehicle-detail-item span,
.vehicle-note-box span,
.profile-read-field span,
.profile-field span,
.admin-approval-field span,
.need-offer-item span:not(.status),
.rating-item p,
.request-filter-bar span {
  color: #aeb6c2;
}

.agreement-date-row strong,
.deal-highlight-box strong,
.vehicle-detail-box strong,
.meta-box strong,
.detail-box strong,
.vehicle-detail-item strong,
.vehicle-note-box strong,
.profile-read-field strong,
.profile-field strong,
.admin-approval-field strong,
.need-offer-item strong,
.rating-item strong {
  color: #f4f5f7;
}

.agreement-date-row div,
.deal-highlight-box,
.vehicle-detail-box,
.meta-box,
.detail-box,
.vehicle-detail-item,
.vehicle-note-box,
.profile-read-field,
.profile-field,
.admin-approval-field,
.need-offer-item,
.rating-item {
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.fab {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 48%, var(--accent-dark));
  box-shadow: 0 14px 30px rgba(214, 168, 79, 0.24);
  color: #17110a;
}

.fab:hover {
  background: linear-gradient(135deg, #f0cf86, var(--accent-hover), var(--accent));
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus,
.menu-card:focus-visible {
  border-color: rgba(214, 168, 79, 0.7);
  box-shadow: 0 0 0 4px rgba(214, 168, 79, 0.14);
  outline: none;
}

select option {
  background: var(--bg-soft);
  color: var(--text-main);
}

.primary-button,
.fab,
.auth-tab.active,
.nav-item.active {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent) 48%, var(--accent-dark));
  color: #17110a;
  border: 1px solid rgba(255, 232, 178, 0.26);
  box-shadow: 0 14px 32px rgba(214, 168, 79, 0.22);
}

.primary-button:hover,
.fab:hover,
.nav-item.active:hover {
  background: linear-gradient(135deg, #f0cf86, var(--accent-hover), var(--accent));
  transform: translateY(-1px);
}

.ghost-button,
.ghost-link,
.icon-button,
.text-button,
.pool-clear-button,
.notification-read-button,
.menu-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

.text-button,
.danger-menu-card strong {
  color: var(--accent-hover);
}

.ghost-button:hover,
.ghost-link:hover,
.icon-button:hover,
.text-button:hover,
.pool-clear-button:hover,
.menu-card:hover {
  background: var(--surface-hover);
  border-color: rgba(214, 168, 79, 0.38);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.bottom-nav {
  background: rgba(18, 21, 28, 0.94);
  border-color: var(--border-soft);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
}

.nav-item {
  color: var(--text-soft);
}

.nav-item:not(.active):hover {
  background: var(--surface-hover);
  color: var(--text-main);
}

.status-pill,
.status-badge,
.badge,
.trust-badge,
.vehicle-tag,
.firm-badge,
.request-status,
.plate-chip {
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.status-pill.active,
.status-badge.active,
.badge.success,
.trust-badge,
.connection-card.ok {
  background: rgba(54, 194, 139, 0.15);
  border-color: rgba(54, 194, 139, 0.28);
  color: var(--success);
}

.status-pill.pending,
.status-badge.pending,
.badge.warning,
.connection-card.checking {
  background: rgba(240, 184, 75, 0.15);
  border-color: rgba(240, 184, 75, 0.28);
  color: var(--warning);
}

.status-pill.rejected,
.status-badge.rejected,
.badge.danger,
.connection-card.error,
.auth-message.error {
  background: rgba(239, 91, 91, 0.14);
  border-color: rgba(239, 91, 91, 0.26);
  color: var(--danger);
}

.status-pill.closed,
.status-badge.closed,
.status-pill.suspended,
.status-badge.suspended {
  background: rgba(127, 135, 148, 0.16);
  border-color: rgba(127, 135, 148, 0.28);
  color: var(--text-soft);
}

.badge.info,
.status-pill.info,
.vehicle-tag {
  background: rgba(101, 167, 255, 0.14);
  border-color: rgba(101, 167, 255, 0.26);
  color: var(--info);
}

.auth-message.info,
.startup-check,
.alert-card {
  background: rgba(240, 184, 75, 0.12);
  border-color: rgba(240, 184, 75, 0.24);
  color: var(--text-main);
}

.notification-card.read {
  opacity: 0.64;
}

.notification-card.unread .notification-dot {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(214, 168, 79, 0.12);
}

dialog::backdrop {
  background: rgba(3, 5, 10, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.danger-button,
.reject-button,
.critical .primary-button {
  background: linear-gradient(135deg, #ff7a7a, var(--danger));
  color: #1a0808;
}

.success-button,
.approve-button {
  background: linear-gradient(135deg, #5de0a9, var(--success));
  color: #061611;
}

@media (max-width: 520px) {
  .app-shell {
    padding-inline: 12px;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .top-actions {
    grid-column: 1;
    grid-row: auto;
    grid-column: auto;
    justify-content: flex-end;
    width: auto;
  }

  .header-notification-popover {
    right: 0;
    width: min(330px, calc(100vw - 24px));
  }

  .brand-header img {
    max-height: 50px;
    max-width: min(230px, 100%);
  }

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

  .pool-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 16px;
  }

  .pool-filter-row-primary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pool-filter-row-secondary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 4px;
  }

  .pool-search,
  #poolLocationFilter,
  #poolSort,
  .pool-filter-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pool-filter-toggle {
    min-height: 42px;
    height: auto;
    border-radius: 13px;
    font-size: 13px;
    padding-inline: 12px;
  }

  .pool-toolbar input,
  .pool-toolbar select {
    height: 42px;
    border-radius: 13px;
    font-size: 14px;
  }

  .pool-filter-actions {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
  }

  .pool-apply-button {
    display: inline-flex;
    height: auto;
    min-height: 42px;
    border-radius: 13px;
  }

  .pool-filter-actions .pool-clear-button {
    min-width: 0;
    height: auto;
    min-height: 42px;
    border-radius: 13px;
  }

  .firm-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

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

  .pilot-action-button {
    min-height: 62px;
  }

  .actions .primary-button,
  .actions .ghost-button,
  .actions .ghost-link {
    flex: 1 1 140px;
  }

  .dialog-card {
    padding: 16px;
  }

  #poolSort,
  #groupFilter,
  #poolLocationFilter,
  #poolTransmissionFilter,
  .pool-clear-button {
    grid-column: 1 / -1;
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vehicle-card-head {
    display: grid;
  }

  .vehicle-price-block {
    justify-items: start;
  }

  .vehicle-detail-grid {
    grid-template-columns: 1fr;
  }

  .closed-listing-main,
  .closed-listing-summary-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .deal-card-head,
  .deal-highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .active-deal-card {
    gap: 10px;
  }

  .active-deal-card .vehicle-actions {
    order: 0;
    gap: 8px;
    padding-bottom: 8px;
  }

  .active-deal-card .vehicle-actions .primary-button,
  .active-deal-card .vehicle-actions .ghost-button {
    flex: 1 1 140px;
    min-height: 40px;
    padding: 9px 10px;
  }

  .agreement-date-row,
  .compact-agreement-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .agreement-date-row > div:last-child {
    grid-column: 1 / -1;
  }

  .active-deal-card .agreement-date-row > div,
  .active-deal-card .deal-highlight-box,
  .active-deal-card .vehicle-detail-box {
    padding: 8px 9px;
  }

  .agreement-section {
    gap: 6px;
  }

  .need-offer-item {
    grid-template-columns: 1fr;
  }

  .need-offer-actions {
    justify-content: flex-start;
  }

  .profile-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-approval-grid {
    grid-template-columns: 1fr;
  }

  .profile-edit-grid {
    grid-template-columns: 1fr;
  }

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

  .form-section {
    padding: 10px;
  }

  .date-row {
    grid-template-columns: 1fr;
  }

  .firm-card-title-row {
    display: grid;
  }

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

/* Pilot final polish */
.topbar {
  background: linear-gradient(145deg, rgba(36, 42, 53, 0.96), rgba(24, 28, 36, 0.96));
  border-color: rgba(214, 168, 79, 0.16);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.notice {
  background: linear-gradient(145deg, rgba(214, 168, 79, 0.15), rgba(255, 255, 255, 0.045));
  border: 1px solid rgba(214, 168, 79, 0.22);
  color: var(--text-main);
}

.notice strong,
.section-head h2,
.screen h1,
.screen > h2 {
  color: var(--accent-hover);
}

.notice span {
  color: var(--text-soft);
}

.connection-card {
  background: linear-gradient(145deg, rgba(54, 194, 139, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(54, 194, 139, 0.22);
  color: var(--text-main);
}

.connection-card strong {
  color: var(--success);
}

.connection-card span {
  color: var(--text-soft);
}

.metric,
.compact-card,
.profile-edit-card,
.menu-card,
.vehicle-card,
.deal-card,
.history-card,
.request-card,
.firm-card,
.need-card {
  background: linear-gradient(145deg, rgba(34, 39, 50, 0.98), rgba(27, 31, 41, 0.98));
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.metric span,
.compact-card p,
.muted {
  color: var(--text-soft);
}

.metric strong,
.compact-card strong,
.vehicle-title-block h3,
.deal-card h3,
.history-card h3 {
  color: var(--text-main);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}

.vehicle-card.reservation-pass-card {
  border-color: rgba(214, 168, 79, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34), inset 3px 0 0 rgba(214, 168, 79, 0.58);
}

.vehicle-card.reservation-pass-card .vehicle-title-block h3 {
  color: #fff6df;
}

.vehicle-chip,
.reservation-summary-pill,
.status {
  white-space: nowrap;
}

.vehicle-chip {
  background: rgba(255, 255, 255, 0.085);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.vehicle-detail-box,
.meta-box,
.deal-highlight-box,
.agreement-date-row > div,
.need-offer-item,
.closed-listing-summary-grid div {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.10);
  color: var(--text-main);
}

.active-deal-card .agreement-date-row > div,
.active-deal-card .deal-highlight-box,
.active-deal-card .vehicle-detail-box {
  padding: 9px 10px;
  border-radius: 12px;
}

.vehicle-detail-box span,
.meta-box span,
.deal-highlight-box span,
.agreement-date-row span,
.need-offer-item span:not(.status),
.vehicle-note span {
  color: #aeb6c2;
}

.vehicle-detail-box strong,
.meta-box strong,
.deal-highlight-box strong,
.agreement-date-row strong,
.need-offer-item strong {
  color: var(--text-main);
}

.reservation-privacy-note {
  background: rgba(54, 194, 139, 0.075);
  border-color: rgba(54, 194, 139, 0.22);
}

.pool-toolbar {
  background:
    linear-gradient(145deg, rgba(31, 35, 45, 0.94), rgba(16, 18, 24, 0.98)),
    radial-gradient(circle at 18% 0%, rgba(214, 168, 79, 0.13), transparent 34%);
  border-color: rgba(214, 168, 79, 0.18);
}

.pool-toolbar input,
.pool-toolbar select {
  min-width: 0;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.11);
}

.pool-toolbar input:focus,
.pool-toolbar select:focus {
  border-color: rgba(214, 168, 79, 0.56);
  box-shadow: 0 0 0 3px rgba(214, 168, 79, 0.10);
}

.pool-clear-button {
  height: 46px;
  background: rgba(214, 168, 79, 0.10);
  border-color: rgba(214, 168, 79, 0.34);
  color: var(--accent-hover);
  font-weight: 900;
}

.pool-clear-button:hover {
  background: rgba(214, 168, 79, 0.17);
  border-color: rgba(214, 168, 79, 0.58);
  color: #ffe6a8;
}

.pasla-action-dialog {
  background: linear-gradient(145deg, rgba(30, 34, 43, 0.98), rgba(18, 21, 28, 0.98));
}

.pasla-action-dialog .dialog-head h2 {
  color: var(--accent-hover);
}

.pasla-choice-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
}

.pasla-choice-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(214, 168, 79, 0.16), transparent 46%);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.pasla-choice-card:hover::after {
  opacity: 1;
}

.empty-state {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(214, 168, 79, 0.16);
}

.empty-state strong {
  color: var(--text-main);
}

.empty-state span,
.empty-state p {
  color: var(--text-soft);
}

.bottom-nav {
  border-color: rgba(214, 168, 79, 0.18);
}

.nav-pasla-action {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(214, 168, 79, 0.28);
}

.nav-pasla-action:hover {
  transform: translateY(-10px);
}

.history-card {
  background:
    linear-gradient(145deg, rgba(34, 39, 50, 0.98), rgba(22, 25, 33, 0.98)),
    radial-gradient(circle at 0% 0%, rgba(214, 168, 79, 0.10), transparent 34%);
  border-color: rgba(214, 168, 79, 0.18);
}

.history-card .meta-box {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.10);
}

.history-card .meta-box .status {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  box-shadow: none;
}

.history-card .meta-box .status.service,
.history-card .actions .status.service {
  background: rgba(214, 168, 79, 0.13);
  border-color: rgba(214, 168, 79, 0.32);
  color: #f2ca78;
}

.history-card .meta-box .status.ok,
.history-card .actions .status.ok {
  background: rgba(54, 194, 139, 0.12);
  border-color: rgba(54, 194, 139, 0.30);
  color: #72e2b4;
}

.history-card .meta-box .status.damage,
.history-card .actions .status.damage {
  background: rgba(239, 91, 91, 0.12);
  border-color: rgba(239, 91, 91, 0.30);
  color: #ff9a9a;
}

.history-card .ghost-button {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
  color: var(--text-main);
}

.history-card .ghost-button:hover {
  border-color: rgba(214, 168, 79, 0.36);
  background: rgba(214, 168, 79, 0.10);
}

@media (max-width: 520px) {
  .section-head {
    align-items: center;
    gap: 8px;
  }

  .section-head h2,
  .section-head h3 {
    min-width: 0;
  }

  .section-head .text-button,
  .section-head button {
    font-size: 13px;
    min-height: 36px;
    padding-inline: 10px;
    max-width: 52%;
    white-space: normal;
    text-align: right;
    line-height: 1.15;
  }

  #profileSummaryCard .card-top {
    align-items: stretch;
  }

  .profile-summary-layout {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #profileSummaryCard .ghost-button {
    width: 100%;
  }

  .reservation-summary-row {
    gap: 6px;
  }

  .reservation-summary-pill {
    font-size: 11px;
    min-height: 28px;
    padding: 5px 9px;
  }

  .nav-pasla-action {
    min-height: 52px;
    transform: translateY(-7px);
  }

  .pasla-choice-card {
    min-height: 86px;
    padding: 14px;
  }
}
