/* ==========================================================================
   DriveX — targeted refinement (DX_REFINE, 2026-11-14)
   Scope: homepage hero + search console, customer/seller portal.
   Loaded last; every selector is prefixed with :root:root body.dx-refine so it
   outranks the older layers without touching them. Switch: inc/dx-refine.php.
   Identity kept: Space Grotesk (headings) + DM Sans (body), navy / blue /
   orange. Weights limited to what is actually loaded (headings 700 max,
   body 600 max) so no faux bold.
   ========================================================================== */

:root {
  --rf-ink: #0D1B2E;
  --rf-ink-2: #41546E;
  --rf-ink-3: #5E7089;
  --rf-blue: #07367A;
  --rf-blue-2: #0A4A9E;
  --rf-orange: #F96501;
  --rf-orange-text: #C24E00;   /* orange as text: 4.6:1 on white */
  --rf-line: #E3E9F1;
  --rf-line-2: #D3DDEA;
  --rf-canvas: #F6F8FB;
  --rf-tint: #EDF3FA;
  --rf-head: 'Space Grotesk', 'DM Sans', system-ui, sans-serif;
  --rf-body: 'DM Sans', system-ui, sans-serif;
  --rf-ease: cubic-bezier(.16, 1, .3, 1);
}

/* ─────────────────────────── HOMEPAGE HERO ─────────────────────────────── */

:root:root body.dx-refine.home .al-hero {
  background: var(--rf-canvas) !important;
  background-image: none !important;
  padding: 64px 0 56px !important;
  border-bottom: 1px solid var(--rf-line);
  overflow: visible !important;
  text-align: left !important;
}
:root:root body.dx-refine.home .al-hero::before,
:root:root body.dx-refine.home .al-hero::after,
:root:root body.dx-refine.home .al-hero .al-hero-orbs,
:root:root body.dx-refine.home .al-hero .dx-hero-particles,
:root:root body.dx-refine.home .al-hero .al-hero-badge { display: none !important; }

:root:root body.dx-refine.home .al-hero > .al-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 56px;
  row-gap: 44px;
  align-items: center;
  max-width: 1200px;
}

:root:root body.dx-refine.home .al-hero .al-hero-desktop-only {
  display: block !important;
  grid-column: 1; grid-row: 1;
  text-align: left !important;
  margin: 0 !important;
}

:root:root body.dx-refine.home .al-hero h1 {
  font-family: var(--rf-head) !important;
  font-weight: 700 !important;
  font-size: clamp(40px, 4.2vw, 60px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.03em !important;
  color: var(--rf-ink) !important;
  text-align: left !important;
  margin: 0 !important;
  max-width: none !important;
  text-wrap: balance;
}
:root:root body.dx-refine.home .al-hero h1 .highlight {
  display: inline-block;
  white-space: nowrap;
  min-height: 1.04em;
  color: var(--rf-orange-text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}
:root:root body.dx-refine.home .al-hero .al-typed-cursor {
  color: var(--rf-orange) !important;
  font-weight: 400 !important;
  margin-left: 1px;
}
:root:root body.dx-refine.home .al-hero .al-hero-sub {
  font-family: var(--rf-body) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  color: var(--rf-ink-2) !important;
  max-width: 44ch !important;
  margin: 20px 0 0 !important;
  text-align: left !important;
}

/* No hero picture (owner decision 2026-11-15): headline and search share one column. */
:root:root body.dx-refine.home .al-hero > .al-container { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
:root:root body.dx-refine.home .al-hero .al-hero-sub { max-width: 60ch !important; }

/* ── Search console ── */
:root:root body.dx-refine.home .al-hero .al-search-box {
  grid-column: 1 / -1; grid-row: 2;
  margin: 0 !important;
  max-width: none !important;
  background: #fff !important;
  border: 1px solid var(--rf-line-2) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px -24px rgba(13, 27, 46, .35), 0 2px 4px rgba(13, 27, 46, .04) !important;
  padding: 0 !important;
  overflow: visible !important;
}
:root:root body.dx-refine.home .al-hero .al-search-tabs {
  display: flex !important;
  gap: 8px !important;
  padding: 0 20px !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rf-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
:root:root body.dx-refine.home .al-hero .al-search-tab {
  flex: 0 0 auto !important;
  display: inline-flex !important; align-items: center; gap: 8px;
  background: none !important; background-image: none !important;
  box-shadow: none !important;
  border: 0 !important; border-radius: 0 !important;
  border-bottom: 2px solid transparent !important;
  margin: 0 0 -1px !important;
  padding: 16px 12px 14px !important;
  min-height: 0 !important;
  font-family: var(--rf-head) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  color: var(--rf-ink-3) !important;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease !important;
}
:root:root body.dx-refine.home .al-hero .al-search-tab i { font-size: 18px !important; color: inherit !important; }
:root:root body.dx-refine.home .al-hero .al-search-tab:hover { color: var(--rf-ink) !important; }
:root:root body.dx-refine.home .al-hero .al-search-tab.active {
  color: var(--rf-ink) !important;
  border-bottom-color: var(--rf-orange) !important;
}
:root:root body.dx-refine.home .al-hero .al-search-tab.active i { color: var(--rf-orange) !important; }
:root:root body.dx-refine.home .al-hero .al-search-tab:focus-visible { outline: 2px solid var(--rf-blue); outline-offset: -4px; border-radius: 6px !important; }

:root:root body.dx-refine.home .al-hero .al-search-box form { margin: 0 !important; padding: 0 !important; }
:root:root body.dx-refine.home .al-hero .al-search-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto !important;
  gap: 0 !important;
  padding: 8px !important;
  align-items: stretch !important;
}
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field {
  margin: 0 !important;
  padding: 12px 18px 10px !important;
  border-radius: 10px;
  position: relative;
  min-width: 0;
  transition: background-color .15s ease;
}
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field + .al-field::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--rf-line);
}
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field:hover { background: var(--rf-canvas); }
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field:focus-within { background: var(--rf-tint); }
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field:hover::before,
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field:focus-within::before,
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field:hover + .al-field::before,
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field:focus-within + .al-field::before { opacity: 0; }
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field label {
  display: block !important;
  font-family: var(--rf-head) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .06em !important;
  text-transform: uppercase !important;
  color: var(--rf-ink-3) !important;
  margin: 0 0 4px !important;
  line-height: 1.3 !important;
}
:root:root body.dx-refine.home .al-hero .al-search-grid select,
:root:root body.dx-refine.home .al-hero .al-search-grid input[type="date"] {
  width: 100% !important;
  height: 30px !important; min-height: 0 !important;
  padding: 0 24px 0 0 !important;
  border: 0 !important; border-radius: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
  font-family: var(--rf-body) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: var(--rf-ink) !important;
  outline: none !important;
  cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235E7089' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 2px center !important;
  background-size: 12px !important;
}
:root:root body.dx-refine.home .al-hero .al-search-grid input[type="date"] { background-image: none !important; padding-right: 0 !important; }

:root:root body.dx-refine.home .al-hero .al-search-grid > button[type="submit"] {
  height: auto !important; min-height: 64px;
  align-self: stretch !important;
  margin: 0 0 0 8px !important;
  padding: 0 32px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--rf-blue) !important; background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-family: var(--rf-head) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  transition: background-color .15s ease, transform .1s ease !important;
}
:root:root body.dx-refine.home .al-hero .al-search-grid > button[type="submit"]:hover { background: var(--rf-blue-2) !important; }
:root:root body.dx-refine.home .al-hero .al-search-grid > button[type="submit"]:active { transform: scale(.98); }
:root:root body.dx-refine.home .al-hero .al-search-grid > button[type="submit"]:focus-visible { outline: 2px solid var(--rf-orange); outline-offset: 2px; }
:root:root body.dx-refine.home .al-hero .al-search-grid > button[type="submit"] i { font-size: 18px !important; }

/* Taxi: the searchable picker inherits the quiet field style */
:root:root body.dx-refine.home .al-hero .al-search-grid .al-field > *:not(label):not(select):not(input) {
  border-color: transparent !important; background-color: transparent !important; box-shadow: none !important;
}

/* Tablet */
@media (max-width: 1024px) {
  :root:root body.dx-refine.home .al-hero { padding: 44px 0 40px !important; }
  :root:root body.dx-refine.home .al-hero > .al-container { row-gap: 28px; grid-template-columns: minmax(0, 1fr); }
  :root:root body.dx-refine.home .al-hero h1 { font-size: clamp(34px, 4.6vw, 44px) !important; }
  :root:root body.dx-refine.home .al-hero .al-hero-sub { font-size: 16px !important; }
  :root:root body.dx-refine.home .al-hero .al-search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  :root:root body.dx-refine.home .al-hero .al-search-grid .al-field:nth-child(odd)::before { display: none; }
  :root:root body.dx-refine.home .al-hero .al-search-grid .al-field:nth-child(n+3) { box-shadow: inset 0 1px 0 var(--rf-line); border-radius: 0; }
  :root:root body.dx-refine.home .al-hero .al-search-grid > button[type="submit"] { grid-column: 1 / -1; margin: 8px 0 0 !important; min-height: 52px; }
}

/* Phone */
@media (max-width: 768px) {
  :root:root body.dx-refine.home .al-hero { padding: 24px 0 28px !important; }
  :root:root body.dx-refine.home .al-hero > .al-container { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  :root:root body.dx-refine.home .al-hero h1 { font-size: 32px !important; line-height: 1.08 !important; }
  :root:root body.dx-refine.home .al-hero .al-hero-sub { display: none !important; }
  :root:root body.dx-refine.home .al-hero .al-search-box { grid-row: 2; }
  :root:root body.dx-refine.home .al-hero .al-search-tabs { padding: 0 6px !important; gap: 0 !important; }
  :root:root body.dx-refine.home .al-hero .al-search-tab { flex: 1 1 0 !important; justify-content: center; padding: 14px 4px 12px !important; font-size: 14px !important; gap: 6px; white-space: nowrap; }
  :root:root body.dx-refine.home .al-hero .al-search-tab i { font-size: 16px !important; }
  :root:root body.dx-refine.home .al-hero .al-search-grid { grid-template-columns: minmax(0, 1fr) !important; padding: 6px 6px 10px !important; }
  :root:root body.dx-refine.home .al-hero .al-search-grid .al-field { padding: 12px 14px 10px !important; border-radius: 0; }
  :root:root body.dx-refine.home .al-hero .al-search-grid .al-field::before { display: none !important; }
  :root:root body.dx-refine.home .al-hero .al-search-grid .al-field + .al-field { box-shadow: inset 0 1px 0 var(--rf-line); }
  :root:root body.dx-refine.home .al-hero .al-search-grid > button[type="submit"] { margin: 6px 4px 0 !important; min-height: 52px; }
}

/* ─────────────────────────── CUSTOMER / SELLER PORTAL ──────────────────── */

:root:root body.dx-refine .dxr-portal {
  max-width: 1160px !important;
  font-family: var(--rf-body);
}

/* Header */
:root:root body.dx-refine .dxr-head { margin-bottom: 24px !important; }
:root:root body.dx-refine .dxr-head > div:first-child > div:first-child {
  width: 48px !important; height: 48px !important;
  background: var(--rf-tint) !important; border: 0 !important;
  color: var(--rf-blue) !important; font-size: 18px !important;
}
:root:root body.dx-refine .dxr-head > div:first-child > div:last-child > div:first-child {
  font-family: var(--rf-head) !important; font-size: 22px !important; font-weight: 700 !important;
  letter-spacing: -0.01em; color: var(--rf-ink) !important; line-height: 1.2;
}
:root:root body.dx-refine .dxr-head > div:first-child > div:last-child > div:last-child { font-size: 14px !important; color: var(--rf-ink-3) !important; }
:root:root body.dx-refine .dxr-head .al-btn { min-height: 40px; padding: 0 16px !important; border-radius: 8px !important; font-family: var(--rf-head) !important; font-weight: 600 !important; font-size: 14px !important; box-shadow: none !important; }

/* Stats strip: one surface, hairline dividers, no tiles */
:root:root body.dx-refine .dxr-stats {
  display: flex !important; flex-wrap: wrap;
  gap: 1px !important;
  background: var(--rf-line) !important;
  border: 1px solid var(--rf-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px !important;
}
:root:root body.dx-refine .dxr-stats > a {
  flex: 1 1 0; min-width: 120px;
  background: #fff !important;
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  text-align: left !important;
  padding: 16px 20px 14px !important;
  position: relative;
  transition: background-color .15s ease !important;
}
:root:root body.dx-refine .dxr-stats > a:hover { background: var(--rf-canvas) !important; }
:root:root body.dx-refine .dxr-stats > a > div:first-child {
  font-family: var(--rf-head) !important; font-size: 26px !important; font-weight: 700 !important; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
:root:root body.dx-refine .dxr-stats > a > div:last-child {
  font-size: 13px !important; font-weight: 500 !important; color: var(--rf-ink-3) !important; margin-top: 4px !important;
}
:root:root body.dx-refine .dxr-stats > a[style*="box-shadow:0 0 0 1px"]::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; background: var(--rf-orange);
}
:root:root body.dx-refine .dxr-stats > a[style*="box-shadow:0 0 0 1px"] > div:last-child { color: var(--rf-ink) !important; font-weight: 600 !important; }

/* Profile completion: flat, no chip borders */
:root:root body.dx-refine .dxr-meter > div {
  background: var(--rf-canvas) !important;
  border: 0 !important; border-radius: 12px !important;
  padding: 16px 20px !important; margin-bottom: 24px !important;
}
:root:root body.dx-refine .dxr-meter [data-dx-completion-pct] { font-weight: 700 !important; color: var(--rf-orange-text) !important; }
:root:root body.dx-refine .dxr-meter [data-dx-completion-bar] { background: var(--rf-orange) !important; }
:root:root body.dx-refine .dxr-meter > div > div:nth-child(2) { height: 6px !important; background: #fff !important; }
:root:root body.dx-refine .dxr-meter > div > div:nth-child(3) { gap: 4px 18px !important; }
:root:root body.dx-refine .dxr-meter [data-dx-completion-item],
:root:root body.dx-refine .dxr-meter > div > div:nth-child(3) > span {
  border: 0 !important; background: none !important; padding: 2px 0 !important; font-size: 13px !important;
}
:root:root body.dx-refine .dxr-meter .al-btn { margin-top: 14px !important; border-radius: 8px !important; box-shadow: none !important; font-weight: 600 !important; }
:root:root body.dx-refine .dxr-meter span[style*="font-weight:700"],
:root:root body.dx-refine .dxr-meter div[style*="font-weight:700"] { font-weight: 600 !important; }

/* Shell: sidebar navigation + content */
:root:root body.dx-refine .dxr-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
:root:root body.dx-refine .dxr-main { min-width: 0; }

:root:root body.dx-refine .dxr-nav {
  position: sticky; top: 96px;
  display: flex !important; flex-direction: column !important; flex-wrap: nowrap !important;
  gap: 2px !important;
  margin: 0 !important; padding: 0 !important;
  background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  overflow: visible !important;
}
:root:root body.dx-refine .dxr-nav .al-search-tab {
  display: flex !important; align-items: center; gap: 12px;
  width: 100% !important; flex: 0 0 auto !important;
  min-height: 42px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  background: transparent !important; background-image: none !important;
  border: 0 !important; border-radius: 8px !important; box-shadow: none !important;
  font-family: var(--rf-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: var(--rf-ink-2) !important;
  text-align: left !important;
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  transition: background-color .15s ease, color .15s ease !important;
}
:root:root body.dx-refine .dxr-nav .al-search-tab i { font-size: 19px !important; width: 20px; text-align: center; color: var(--rf-ink-3) !important; flex: 0 0 20px; }
:root:root body.dx-refine .dxr-nav .al-search-tab:hover { background: var(--rf-canvas) !important; color: var(--rf-ink) !important; }
:root:root body.dx-refine .dxr-nav .al-search-tab.active {
  background: var(--rf-tint) !important;
  color: var(--rf-blue) !important;
  font-weight: 600 !important;
}
:root:root body.dx-refine .dxr-nav .al-search-tab.active i { color: var(--rf-blue) !important; }
:root:root body.dx-refine .dxr-nav .al-search-tab:focus-visible { outline: 2px solid var(--rf-blue); outline-offset: 1px; }
/* counts and badges sit at the right edge, one style */
:root:root body.dx-refine .dxr-nav .al-search-tab > span,
:root:root body.dx-refine .dxr-nav .dx-sp-badge {
  margin-left: auto !important;
  background: var(--rf-orange) !important; color: #fff !important;
  border-radius: 999px !important; padding: 1px 8px !important;
  font-size: 12px !important; font-weight: 600 !important; line-height: 18px !important;
  font-family: var(--rf-body) !important;
}

/* Content: section headings and the listing-type filter */
:root:root body.dx-refine .dxr-main h2,
:root:root body.dx-refine .dxr-main h3,
:root:root body.dx-refine .dxr-main .dx-sp-h {
  font-family: var(--rf-head) !important; font-weight: 700 !important; letter-spacing: -0.01em; color: var(--rf-ink) !important;
}
:root:root body.dx-refine .dxr-types {
  gap: 4px !important;
  border-bottom: 1px solid var(--rf-line);
  margin-bottom: 4px !important;
}
:root:root body.dx-refine .dxr-types > a {
  border: 0 !important; border-radius: 0 !important; background: none !important;
  padding: 10px 10px 12px !important;
  font-size: 14px !important; font-weight: 500 !important;
  color: var(--rf-ink-3) !important;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent !important;
}
:root:root body.dx-refine .dxr-types > a[style*="var(--accent)"] {
  color: var(--rf-ink) !important; font-weight: 600 !important; border-bottom-color: var(--rf-orange) !important;
}
:root:root body.dx-refine .dxr-types > a > span {
  background: var(--rf-tint) !important; color: var(--rf-ink-2) !important;
  font-size: 12px !important; padding: 0 7px !important; line-height: 18px; font-weight: 600;
}

/* Listing rows: one surface per listing, no nested boxes */
:root:root body.dx-refine .dxr-main .al-listing-card {
  background: #fff !important;
  border: 0 !important; border-bottom: 1px solid var(--rf-line) !important;
  border-radius: 0 !important; box-shadow: none !important;
  padding: 20px 0 !important; margin: 0 !important;
}
:root:root body.dx-refine .dxr-main .al-listing-card:hover { border-color: var(--rf-line) !important; }
:root:root body.dx-refine .dxr-main .al-listing-card-top { gap: 16px !important; margin-bottom: 12px !important; align-items: flex-start; }
:root:root body.dx-refine .dxr-main .al-listing-thumb {
  width: 112px !important; height: 84px !important; border-radius: 8px !important;
  background: var(--rf-tint) !important; border: 0 !important; flex: 0 0 112px;
}
:root:root body.dx-refine .dxr-main .al-listing-title {
  font-family: var(--rf-head) !important; font-size: 17px !important; font-weight: 600 !important;
  line-height: 1.3 !important; color: var(--rf-ink) !important;
  white-space: normal !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
:root:root body.dx-refine .dxr-main .al-listing-sub { font-size: 13px !important; color: var(--rf-ink-3) !important; margin: 4px 0 8px !important; }
:root:root body.dx-refine .dxr-main .al-listing-row {
  background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
  padding: 0 !important; margin: 0 !important; gap: 10px !important;
}
:root:root body.dx-refine .dxr-main .al-listing-price {
  font-family: var(--rf-head) !important; font-size: 18px !important; font-weight: 700 !important;
  color: var(--rf-ink) !important; font-variant-numeric: tabular-nums;
}
:root:root body.dx-refine .dxr-main .al-status-pill {
  border: 0 !important; box-shadow: none !important;
  font-size: 12px !important; font-weight: 600 !important; padding: 2px 9px !important; border-radius: 999px !important;
}
:root:root body.dx-refine .dxr-main .al-listing-meta > div[style*="font-size:11px"] { font-size: 13px !important; margin-top: 6px !important; }

:root:root body.dx-refine .dxr-main .al-lc-actions {
  border-top: 0 !important; padding-top: 0 !important; margin: 0 0 0 128px !important; gap: 6px !important;
}
:root:root body.dx-refine .dxr-main .al-lc-btn {
  min-height: 34px; padding: 0 12px !important;
  border: 1px solid var(--rf-line-2) !important; border-radius: 8px !important;
  background: #fff !important; box-shadow: none !important;
  color: var(--rf-ink-2) !important;
  font-family: var(--rf-body) !important; font-size: 13px !important; font-weight: 500 !important;
}
:root:root body.dx-refine .dxr-main .al-lc-btn:hover { border-color: var(--rf-blue) !important; color: var(--rf-blue) !important; }
:root:root body.dx-refine .dxr-main .al-lc-btn.del { border-color: transparent !important; color: #B42318 !important; margin-left: auto; }
:root:root body.dx-refine .dxr-main .al-lc-btn.del:hover { border-color: #F3C5C0 !important; background: #FEF3F2 !important; }

/* P6 panels (Verification, Payments, Packages, Drafts): flatten rows */
:root:root body.dx-refine .dxr-main .dx-sp-row {
  background: #fff !important; border: 0 !important; border-bottom: 1px solid var(--rf-line) !important;
  border-radius: 0 !important; padding: 14px 0 !important; font-size: 15px !important;
}
:root:root body.dx-refine .dxr-main .dx-sp-rows { gap: 0 !important; border-top: 1px solid var(--rf-line); }
:root:root body.dx-refine .dxr-main .dx-sp-btn { border-radius: 8px !important; font-weight: 600 !important; }

/* Generic cards inside the content area lose their second frame */
:root:root body.dx-refine .dxr-main .al-card .al-card,
:root:root body.dx-refine .dxr-main [style*="border:1px solid var(--border)"] [style*="border:1px solid var(--border)"] {
  border-color: transparent !important; box-shadow: none !important;
}

/* Tablet + phone: navigation becomes one scrolling strip */
@media (max-width: 1024px) {
  :root:root body.dx-refine .dxr-shell { display: block; }
  :root:root body.dx-refine .dxr-nav {
    position: relative; top: auto;
    flex-direction: row !important;
    gap: 4px !important;
    overflow-x: auto !important; overflow-y: hidden !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    border-bottom: 1px solid var(--rf-line) !important;
    margin: 0 0 16px !important;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    padding-right: 24px !important;
  }
  :root:root body.dx-refine .dxr-nav::-webkit-scrollbar { display: none; }
  :root:root body.dx-refine .dxr-nav .al-search-tab {
    width: auto !important;
    flex: 0 0 auto !important;
    min-height: 46px !important;
    padding: 0 12px !important;
    gap: 8px;
    border-radius: 0 !important;
    border-bottom: 2px solid transparent !important;
    scroll-snap-align: start;
  }
  :root:root body.dx-refine .dxr-nav .al-search-tab:hover { background: none !important; }
  :root:root body.dx-refine .dxr-nav .al-search-tab.active {
    background: none !important; color: var(--rf-ink) !important; border-bottom-color: var(--rf-orange) !important;
  }
  :root:root body.dx-refine .dxr-nav .al-search-tab.active i { color: var(--rf-orange) !important; }
  :root:root body.dx-refine .dxr-nav .al-search-tab > span,
  :root:root body.dx-refine .dxr-nav .dx-sp-badge { margin-left: 2px !important; }
}

@media (max-width: 640px) {
  :root:root body.dx-refine .dxr-head { align-items: flex-start !important; }
  :root:root body.dx-refine .dxr-head > div:last-child { width: 100%; }
  :root:root body.dx-refine .dxr-head > div:last-child .al-btn { flex: 1; justify-content: center; }
  :root:root body.dx-refine .dxr-stats > a { flex: 1 1 30%; min-width: 0; padding: 12px 14px 10px !important; }
  :root:root body.dx-refine .dxr-stats > a > div:first-child { font-size: 22px !important; }
  :root:root body.dx-refine .dxr-stats > a > div:last-child { font-size: 12px !important; }
  :root:root body.dx-refine .dxr-meter > div { padding: 14px 16px !important; }
  :root:root body.dx-refine .dxr-main .al-listing-thumb { width: 88px !important; height: 66px !important; flex: 0 0 88px; }
  :root:root body.dx-refine .dxr-main .al-listing-title { font-size: 15px !important; }
  :root:root body.dx-refine .dxr-main .al-lc-actions { margin-left: 0 !important; }
  :root:root body.dx-refine .dxr-main .al-lc-btn.del { margin-left: 0; }
}

/* Three portal sections reference icons that do not exist in the loaded
   Tabler 2.x font, so they rendered blank. Borrow glyphs that do exist. */
:root:root body.dx-refine .dxr-nav .ti-receipt::before { content: "\ea84"; }      /* credit-card */
:root:root body.dx-refine .dxr-nav .ti-package::before { content: "\ed12"; }      /* crown (packages) */
:root:root body.dx-refine .dxr-nav .ti-file-pencil::before { content: "\ea98"; }  /* edit */

/* Listing-type filter stays on one line on phones */
@media (max-width: 640px) {
  :root:root body.dx-refine .dxr-types { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; }
  :root:root body.dx-refine .dxr-types::-webkit-scrollbar { display: none; }
  :root:root body.dx-refine .dxr-types > a { flex: 0 0 auto; white-space: nowrap; }
}

/* Header navigation (alignment fix only): between 769px and 1100px the six
   links ran into each other ("Airport TaxiRentals"). Tighter spacing, no wrap. */
@media (min-width: 769px) and (max-width: 1100px) {
  :root:root body.dx-refine .al-nav-links { gap: 0 !important; flex-wrap: nowrap !important; }
  :root:root body.dx-refine .al-nav-link { padding: 8px 9px !important; font-size: 14px !important; margin: 0 !important; white-space: nowrap !important; }
}

/* Profile tab: the form wrapper framed three framed sections (boxes in a box).
   The wrapper becomes invisible; sections become flat groups with a rule. */
:root:root body.dx-refine .dxr-main > .al-post-form {
  max-width: 760px !important;
  border: 0 !important; background: none !important; box-shadow: none !important;
  padding: 0 !important; border-radius: 0 !important;
}
:root:root body.dx-refine .dxr-main > .al-post-form > .al-form-section {
  border: 0 !important; border-top: 1px solid var(--rf-line) !important;
  border-radius: 0 !important; box-shadow: none !important; background: none !important;
  padding: 24px 0 28px !important; margin: 0 !important;
}
:root:root body.dx-refine .dxr-main > .al-post-form > .al-form-section:first-child { border-top: 0 !important; padding-top: 4px !important; }
:root:root body.dx-refine .dxr-main .al-form-section-title {
  border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 14px !important;
  font-family: var(--rf-head) !important; font-size: 18px !important; font-weight: 700 !important; color: var(--rf-ink) !important;
}
:root:root body.dx-refine .dxr-main .al-form-section-title i,
:root:root body.dx-refine .dxr-main .al-form-section-title > span:first-child { background: none !important; border: 0 !important; }
:root:root body.dx-refine .dxr-main .al-form-field label { font-family: var(--rf-head) !important; font-weight: 600 !important; letter-spacing: .04em; }
:root:root body.dx-refine .dxr-main .al-form-field input,
:root:root body.dx-refine .dxr-main .al-form-field select { border-radius: 8px !important; border-color: var(--rf-line-2) !important; font-size: 16px !important; }
:root:root body.dx-refine .dxr-main .al-form-field input:focus { border-color: var(--rf-blue) !important; box-shadow: 0 0 0 3px rgba(7, 54, 122, .12) !important; }

/* Wallet: the info note rendered white text on an opaque near-white tint
   (unreadable). On the navy balance card it becomes a translucent band. */
:root:root body.dx-refine .dxr-main .dx-wallet-card > div[style*="rgba(249,115,22,.08)"] {
  background: rgba(255, 255, 255, .1) !important; color: rgba(255, 255, 255, .88) !important; font-size: 13px !important;
}
:root:root body.dx-refine .dxr-main .dx-wallet-card > div[style*="rgba(249,115,22,.08)"] i { color: #FFB27A !important; }
/* Wallet history filters sit in rows instead of a tall stack */
:root:root body.dx-refine .dxr-main .dx-wf-bar { flex-wrap: wrap !important; gap: 8px !important; }
:root:root body.dx-refine .dxr-main .dx-wf-bar > input,
:root:root body.dx-refine .dxr-main .dx-wf-bar > select { flex: 1 1 160px !important; width: auto !important; min-width: 0 !important; margin: 0 !important; }
:root:root body.dx-refine .dxr-main .dx-wf-bar > input[type="hidden"] { display: none !important; }
:root:root body.dx-refine .dxr-main .dx-wf-bar > button { flex: 0 0 auto !important; }
