:root {
  --primary: #0f2854;
  --primaryBtn: #1c4d8d;
  --primaryHover: #4988c4;
  --primaryLight: #ebf4ff;
  --bg: #bde8f5;
  --surface: #fff;
  --surface2: #f3f4f6;
  --border: #e2e8f3;
  --text: #0f2854;
  --text2: #4a5675;
  --text3: #8a96b0;
  --accent: #ff6b2b;
  --success: #12b76a;
  --danger: #f04438;
  --warning: #4988c4;
  --shadow: 0 2px 12px rgba(15, 40, 84, 0.08);
  --shadowMd: 0 8px 32px rgba(15, 40, 84, 0.14);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  display: flex;
  overflow-x: hidden;
}
.font-display {
  font-family: "Syne", sans-serif;
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 48;
}
a {
  text-decoration: none;
}
.sidebar {
  width: 264px;
  background: var(--primary);
  min-height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  overflow: auto;
  flex-shrink: 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font:
    800 22px "Syne",
    sans-serif;
}
.logo img {
  display: block;
  width: auto;
  max-width: 176px;
  height: 42px;
  object-fit: contain;
}

.logo.image-logo {
  min-height: 74px;
}

.brand-logo-image {
  display: block;
  width: 176px;
  height: 43px;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 150% auto;
}
.logo .logo-fallback {
  display: none;
  align-items: center;
  gap: 0;
}
.logo span {
  color: #bde8f5;
}
.logo span:first-of-type { color:#fff; }
.logo span + span { margin-left:-10px;color:#bde8f5; }
.nav-label {
  padding: 16px 20px 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 3px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.18s;
}
.nav-item:hover,
.nav-item.active {
  background: rgba(189, 232, 245, 0.16);
  color: #bde8f5;
  transform: translateX(2px);
}
.main {
  flex: 1;
  min-width: 0;
  margin-left: 264px;
  width: calc(100% - 264px);
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 64px;
  background: var(--primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(15, 40, 84, 0.2);
}
.searchbar {
  flex: 1;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
}
.searchbar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 13.5px;
}
.searchbar input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.avatar,
.icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.page {
  padding: 28px 32px;
  animation: fadeUp 0.45s ease both;
}
.page-title {
  font:
    800 26px "Syne",
    sans-serif;
  color: var(--primary);
}
.page-subtitle {
  font-size: 14px;
  color: var(--text2);
  margin-top: 4px;
}
.page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-body {
  padding: 22px;
}
.card-header {
  padding: 18px 22px 0;
}
.card-title {
  font:
    800 17px "Syne",
    sans-serif;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  transition: 0.18s;
}
.btn-primary {
  background: var(--primaryBtn);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primaryHover);
  box-shadow: 0 4px 16px rgba(28, 77, 141, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--primaryBtn);
  border: 1.5px solid var(--primaryBtn);
}
.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1.5px solid var(--border);
}
.btn-danger {
  background: #f04438;
  color: #fff;
}
.grid {
  display: grid;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.stat-value {
  font:
    800 28px "Syne",
    sans-serif;
}
.stat-label {
  font-size: 13px;
  color: var(--text2);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
}
.badge-green {
  background: #ecfdf5;
  color: #12b76a;
}
.badge-blue {
  background: #ebf4ff;
  color: #1c4d8d;
}
.badge-orange {
  background: #fff0e9;
  color: #ff6b2b;
}
.badge-red {
  background: #fef3f2;
  color: #f04438;
}
.badge-gray {
  background: #f3f4f6;
  color: #4a5675;
}
.form-control,
.select-control,
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  outline: none;
  font: inherit;
}
.form-control:focus,
.select-control:focus,
textarea:focus {
  border-color: var(--primaryBtn);
  box-shadow: 0 0 0 4px rgba(28, 77, 141, 0.1);
}
label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
  display: block;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  padding: 14px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  background: var(--surface2);
  white-space: nowrap;
}
td {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--text);
  vertical-align: middle;
}
tr:hover td {
  background: #fafcff;
}
.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.car-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: 0.2s;
}
.car-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadowMd);
}
.car-img {
  height: 180px;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}
.car-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.car-info {
  padding: 16px;
}
.car-name {
  font-weight: 800;
}
.car-sub {
  font-size: 12.5px;
  color: var(--text3);
}
.car-price {
  font:
    800 19px "Syne",
    sans-serif;
  color: var(--primaryBtn);
}
.heart.active .material-symbols-outlined {
  color: #ef4444;
  font-variation-settings: "FILL" 1;
}
.heart .material-symbols-outlined {
  color: #8a96b0;
}
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 13.5px;
}
.alert-success {
  background: #ecfdf5;
  color: #067647;
}
.alert-error {
  background: #fef3f2;
  color: #b42318;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1100px) {
  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  body {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: auto;
  }
  .topbar {
    padding: 0 14px;
  }
  .page {
    padding: 20px;
  }
  .car-grid,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* Root-flat improved UI patch */
body {
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 255, 255, 0.42),
      transparent 34%
    ),
    linear-gradient(135deg, #bde8f5 0%, #eaf7ff 54%, #bde8f5 100%);
}
.logo {
  text-decoration: none;
}
.sidebar {
  box-shadow: 10px 0 30px rgba(15, 40, 84, 0.12);
}
.topbar {
  backdrop-filter: blur(10px);
}
.topbar-logout {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.action-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.action-form .form-control,
.action-form .select-control {
  height: 38px;
  padding: 7px 10px;
}
.action-form .btn {
  padding: 8px 11px;
  font-size: 12.5px;
}
.table-wrap table {
  min-width: 760px;
}
.card,
.stat-card {
  backdrop-filter: blur(8px);
}
@media (max-width: 760px) {
  .topbar {
    position: relative;
  }
  .topbar-logout {
    display: none;
  }
}
/* V2 dashboard/profile UI */
.role-toggle-group {
  display: flex;
  border-radius: 20px;
  padding: 4px;
  background: #f0f0f0;
  gap: 4px;
}
.role-toggle-group a {
  flex: 1;
  border-radius: 16px;
  padding: 8px 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #0f2854;
}
.role-toggle-group a.active {
  background: #4988c4;
  color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon.blue {
  background: #ebf4ff;
  color: #1c4d8d;
}
.stat-icon.orange {
  background: #fff0e9;
  color: #ff6b2b;
}
.stat-icon.green {
  background: #ecfdf5;
  color: #12b76a;
}
.stat-icon.blue-soft {
  background: #ebf4ff;
  color: #1c4d8d;
}
.stat-icon.purple {
  background: #f3e8ff;
  color: #8b5cf6;
}
.stat-icon.teal {
  background: #ccfbf1;
  color: #14b8a6;
}
.section-label {
  font-weight: 900;
  font-family: "Syne", sans-serif;
  margin: 24px 0 12px;
  color: #0f2854;
}
.stats-grid-6 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.admin-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ebf4ff;
  border: 1px solid #bde8f5;
  color: #0f2854;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 20px;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.qab {
  border: 0;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.qab-red {
  background: #fef3f2;
  color: #b42318;
}
.qab-amber {
  background: #ebf4ff;
  color: #1c4d8d;
}
.qab-blue {
  background: #ebf4ff;
  color: #1c4d8d;
}
.profile-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2854, #1c4d8d);
  padding: 28px;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 14px 38px rgba(15, 40, 84, 0.25);
}
.profile-avatar-lg {
  height: 84px;
  width: 84px;
  border-radius: 999px;
  border: 4px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  overflow: hidden;
}
.profile-avatar-lg img,
.topbar-avatar-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 999px;
}
.profile-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}
.td-muted {
  font-size: 12.5px;
  color: #8a96b0;
}
.price-text {
  color: #1c4d8d;
  font-weight: 900;
}
.timeline {
  position: relative;
}
.tl-item {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
}
.tl-dot {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-dot.green {
  background: #ecfdf5;
  color: #12b76a;
}
.tl-dot.blue {
  background: #ebf4ff;
  color: #1c4d8d;
}
@media (max-width: 1200px) {
  .stats-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .stats-grid-6,
  .quick-actions {
    grid-template-columns: 1fr;
  }
  .role-toggle-group {
    display: none;
  }
}


.password-input-wrap {
  position: relative;
  width: 100%;
}
.password-input-wrap .form-control {
  padding-right: 52px;
}
.password-toggle {
  position: absolute;
  right: 10px;
  top: 0;
  bottom: 0;
  margin: auto 0;
  transform: none !important;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  line-height: 1;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: var(--primaryLight);
  color: var(--primaryBtn);
  outline: none;
  transform: none !important;
}
.password-input-wrap .password-toggle:hover {
  right: 10px;
}
.password-toggle .material-symbols-outlined {
  font-size: 21px;
}

/* Mobile-first CarLink polish + animated OTP UI */
.notice-shell {
  max-width: 780px;
  margin: 32px auto;
  padding: 0 16px;
}
.notice-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid rgba(28, 77, 141, 0.14);
  box-shadow: 0 24px 70px rgba(15, 40, 84, 0.14);
}
.notice-panel::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: rgba(28, 77, 141, 0.10);
}
.notice-panel::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  left: -70px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(115, 168, 216, 0.18);
}
.notice-content {
  position: relative;
  z-index: 1;
  padding: 44px;
  text-align: center;
}
.notice-icon {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 24px;
  background: #1C4D8D;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 30px rgba(28, 77, 141, 0.25);
}
.notice-icon.error { background: #b42318; }
.notice-icon.success { background: #12b76a; }
.notice-icon .material-symbols-outlined { font-size: 38px; }
.notice-title {
  color: #0F2854;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 12px;
}
.notice-text {
  max-width: 560px;
  margin: 0 auto;
  color: #4A5675;
  font-size: 16px;
  line-height: 1.7;
}
.notice-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.otp-form {
  max-width: 440px;
  margin: 28px auto 0;
  text-align: left;
}
.otp-digit-group {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 8px;
}
.otp-digit {
  width: 100%;
  aspect-ratio: 1;
  min-height: 54px;
  border: 2px solid #d9e2f0;
  border-radius: 14px;
  background: #fff;
  color: #0F2854;
  text-align: center;
  font-size: 24px;
  font-weight: 900;
  outline: none;
  box-shadow: 0 6px 16px rgba(15, 40, 84, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.otp-digit:focus {
  border-color: #1C4D8D;
  box-shadow: 0 0 0 4px rgba(28, 77, 141, 0.12), 0 8px 20px rgba(15, 40, 84, 0.12);
  transform: translateY(-2px);
}
.otp-digit.filled {
  border-color: #4988c4;
  background: #ebf4ff;
}
.otp-digit-group.is-complete .otp-digit {
  border-color: #12b76a;
  background: #ecfdf5;
  animation: otpPulse 0.36s ease both;
}
.otp-countdown {
  margin-top: 12px;
  text-align: center;
  color: #1C4D8D;
  font-weight: 900;
  font-size: 13px;
}
.otp-countdown.expired { color: #b42318; }
.otp-success-animation {
  position: relative;
  height: 92px;
  max-width: 360px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.otp-success-boxes {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.otp-success-boxes span {
  width: 48px;
  height: 54px;
  border-radius: 14px;
  background: #ebf4ff;
  border: 2px solid #1C4D8D;
  box-shadow: 0 8px 18px rgba(15, 40, 84, 0.11);
  animation: otpBoxCombine 0.78s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: calc(var(--i, 0) * 0.04s);
}
.otp-success-boxes span:nth-child(1) { --i: 0; --x: 145px; }
.otp-success-boxes span:nth-child(2) { --i: 1; --x: 87px; }
.otp-success-boxes span:nth-child(3) { --i: 2; --x: 29px; }
.otp-success-boxes span:nth-child(4) { --i: 3; --x: -29px; }
.otp-success-boxes span:nth-child(5) { --i: 4; --x: -87px; }
.otp-success-boxes span:nth-child(6) { --i: 5; --x: -145px; }
.otp-success-tick {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  background: #12b76a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.4);
  opacity: 0;
  box-shadow: 0 18px 34px rgba(18, 183, 106, 0.30);
  animation: otpTickPop 0.45s ease forwards;
  animation-delay: 0.68s;
}
.otp-success-tick .material-symbols-outlined {
  font-size: 44px;
  font-weight: 900;
}
@keyframes otpPulse {
  0% { transform: translateY(-2px) scale(1); }
  50% { transform: translateY(-3px) scale(1.04); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes otpBoxCombine {
  0% { transform: translateX(0) scale(1); opacity: 1; }
  70% { transform: translateX(var(--x)) scale(0.78); opacity: 0.9; border-color: #12b76a; background: #ecfdf5; }
  100% { transform: translateX(var(--x)) scale(0.25); opacity: 0; border-color: #12b76a; background: #12b76a; }
}
@keyframes otpTickPop {
  0% { transform: scale(0.4) rotate(-12deg); opacity: 0; }
  75% { transform: scale(1.08) rotate(0); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@media (max-width: 760px) {
  html { -webkit-text-size-adjust: 100%; }
  body {
    display: block;
    min-width: 0;
  }
  .sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 8px 24px rgba(15, 40, 84, 0.16);
  }
  .sidebar .logo {
    justify-content: center;
    padding: 16px 18px;
    font-size: 20px;
  }
  .sidebar nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px 14px;
    scrollbar-width: none;
  }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar .nav-label { display: none; }
  .sidebar .nav-item {
    flex: 0 0 auto;
    margin: 0;
    padding: 10px 12px;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
  }
  .sidebar .nav-item:hover,
  .sidebar .nav-item.active {
    transform: none;
    background: rgba(189, 232, 245, 0.22);
  }
  .main { width: 100%; }
  .main { margin-left:0; }
  .topbar {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
  }
  .searchbar {
    order: 10;
    flex: 1 0 100%;
    height: 42px;
  }
  .topbar > .btn {
    padding: 9px 12px;
    font-size: 12px;
  }
  .topbar .avatar,
  .topbar .icon-btn {
    width: 36px;
    height: 36px;
  }
  .page {
    padding: 16px 12px 28px;
  }
  .page-header {
    gap: 10px;
    margin-bottom: 18px;
  }
  .page-title {
    font-size: 22px;
    line-height: 1.15;
  }
  .page-subtitle,
  .notice-text {
    font-size: 14px;
  }
  .card,
  .stat-card,
  .notice-panel,
  .auth-mobile-shell {
    border-radius: 18px;
  }
  .card-body,
  .notice-content {
    padding: 22px 16px;
  }
  .notice-shell {
    margin: 18px auto;
    padding: 0;
  }
  .notice-icon {
    width: 62px;
    height: 62px;
    border-radius: 20px;
  }
  .notice-title {
    font-size: 25px;
  }
  .notice-actions .btn,
  .otp-form .btn {
    width: 100%;
  }
  .otp-digit-group {
    gap: 7px;
  }
  .otp-digit {
    min-height: 44px;
    border-radius: 12px;
    font-size: 20px;
  }
  .otp-success-animation {
    height: 78px;
    max-width: 280px;
  }
  .otp-success-boxes span {
    width: 38px;
    height: 44px;
    border-radius: 12px;
  }
  .otp-success-boxes span:nth-child(1) { --x: 114px; }
  .otp-success-boxes span:nth-child(2) { --x: 68px; }
  .otp-success-boxes span:nth-child(3) { --x: 23px; }
  .otp-success-boxes span:nth-child(4) { --x: -23px; }
  .otp-success-boxes span:nth-child(5) { --x: -68px; }
  .otp-success-boxes span:nth-child(6) { --x: -114px; }
  .otp-success-tick {
    width: 64px;
    height: 64px;
    border-radius: 21px;
  }
  .form-control,
  .select-control,
  textarea {
    font-size: 16px;
  }
  .table-wrap {
    border-radius: 14px;
    -webkit-overflow-scrolling: touch;
  }
  .car-img { height: 210px; }
  .btn { min-height: 42px; }
}

/* Luxury visual refresh: glass surfaces, premium motion, and richer OTP/tracking UI */
:root {
  --luxuryNavy: #071832;
  --luxuryBlue: #0f2854;
  --luxuryBlueAccent: #4988c4;
  --luxuryBlueSoft: #dff3ff;
  --luxuryGlass: rgba(255, 255, 255, 0.78);
  --luxuryGlow: 0 24px 70px rgba(15, 40, 84, 0.18);
}
body {
  background:
    radial-gradient(circle at 12% 10%, rgba(73, 136, 196, 0.24), transparent 28%),
    radial-gradient(circle at 92% 4%, rgba(73, 136, 196, 0.28), transparent 30%),
    linear-gradient(135deg, #eaf7fb 0%, #f8fbff 42%, #eef5ff 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 40, 84, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 40, 84, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.75), transparent 78%);
  z-index: 0;
}
.sidebar,
.topbar,
.main,
.page { position: relative; }
.main,
.page { z-index: 1; }
.sidebar {
  background:
    linear-gradient(180deg, rgba(7, 24, 50, 0.98) 0%, rgba(15, 40, 84, 0.98) 72%, rgba(7, 24, 50, 0.98) 100%);
  box-shadow: 18px 0 48px rgba(7, 24, 50, 0.18);
}
.logo {
  background: transparent;
}
.logo::before {
  content: "";
  width: 8px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--luxuryBlueSoft), var(--luxuryBlueAccent));
  box-shadow: 0 0 18px rgba(73, 136, 196, 0.42);
}
.logo:has(img:not([style*="display: none"]))::before {
  display: none;
}
.logo.image-logo::before {
  display: none;
}
.nav-item {
  position: relative;
  overflow: hidden;
}
.nav-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.16), transparent);
  transform: translateX(-120%);
  transition: transform .48s ease;
}
.nav-item:hover::after,
.nav-item.active::after { transform: translateX(120%); }
.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, rgba(189,232,245,.20), rgba(73,136,196,.18));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 10px 22px rgba(0,0,0,.14);
}
.topbar {
  background: rgba(7, 24, 50, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.searchbar,
.avatar,
.icon-btn {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.card,
.notice-panel {
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,255,255,.72));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--luxuryGlow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.card {
  position: relative;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(73,136,196,.22), transparent 22%, transparent 78%, rgba(189,232,245,.20));
  opacity: 0;
  transition: opacity .24s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 78px rgba(7, 24, 50, 0.20);
  border-color: rgba(73, 136, 196, 0.30);
}
.card:hover::before { opacity: 1; }
.btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.btn::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -40%;
  width: 35%;
  height: 220%;
  background: rgba(255,255,255,.28);
  transform: rotate(28deg) translateX(-180%);
  transition: transform .55s ease;
}
.btn:hover::after { transform: rotate(28deg) translateX(420%); }
.btn-primary {
  background: linear-gradient(135deg, #071832, #1c4d8d 62%, #4988c4);
  box-shadow: 0 12px 24px rgba(28, 77, 141, 0.24);
}
.btn-outline {
  background: rgba(255,255,255,.62);
  border-color: rgba(28,77,141,.32);
}
.page-title {
  background: linear-gradient(135deg, #071832, #1c4d8d 68%, #73a8d8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(73, 136, 196, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(73, 136, 196, 0.15), 0 10px 24px rgba(15, 40, 84, 0.10) !important;
}
.notice-shell.otp-page-shell {
  max-width: 880px;
}
.notice-shell.otp-page-shell .notice-panel {
  background:
    radial-gradient(circle at 20% 10%, rgba(73,136,196,.26), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(73,136,196,.23), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(245,250,255,.84));
}
.notice-shell.otp-page-shell .notice-panel::before {
  background: linear-gradient(135deg, rgba(73,136,196,.28), rgba(189,232,245,.18));
  filter: blur(1px);
}
.otp-form {
  max-width: 520px;
  padding: 20px;
  border-radius: 26px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: 0 18px 46px rgba(7,24,50,.10);
}
.otp-digit-group {
  gap: 12px;
}
.otp-digit {
  border-radius: 18px;
  background: linear-gradient(145deg, #fff, #f4f8ff);
  border-color: rgba(28, 77, 141, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.92), 0 12px 24px rgba(7,24,50,.10);
}
.otp-digit:focus {
  border-color: var(--luxuryBlueAccent);
  box-shadow: 0 0 0 5px rgba(73, 136, 196, .18), 0 18px 34px rgba(7,24,50,.14);
}
.otp-digit.filled {
  color: #071832;
  background: linear-gradient(145deg, #fffaf0, #eef6ff);
  border-color: rgba(73, 136, 196, .72);
}
.otp-digit-group.is-complete .otp-digit {
  background: linear-gradient(145deg, #ecfdf5, #ffffff);
  box-shadow: 0 0 0 4px rgba(18,183,106,.10), 0 18px 34px rgba(18,183,106,.12);
}
.otp-countdown {
  width: fit-content;
  margin: 16px auto 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(28,77,141,.08);
}
.otp-success-tick {
  border-radius: 28px;
  background: linear-gradient(135deg, #0ba360, #12b76a, #5ee59c);
  box-shadow: 0 20px 44px rgba(18,183,106,.34), inset 0 1px 0 rgba(255,255,255,.38);
}
.tracking-card .card-header,
.tracking-card .card-body { position: relative; z-index: 1; }
.tracking-flow-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(15,40,84,.10);
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(235,244,255,.72));
}
.tracking-flow-banner .material-symbols-outlined {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #071832, #1c4d8d);
  box-shadow: 0 12px 28px rgba(28,77,141,.22);
}
.tracking-flow-banner.is-online .material-symbols-outlined {
  background: linear-gradient(135deg, #0b7a4b, #12b76a);
}
.tracking-flow-banner p {
  margin: 4px 0 0;
  color: var(--text2);
  line-height: 1.55;
}
.tracking-stage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.tracking-step {
  display: flex;
  gap: 12px;
  min-height: 120px;
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(15,40,84,.10);
  background: rgba(255,255,255,.66);
  transition: transform .22s ease, box-shadow .22s ease;
}
.tracking-step:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(7,24,50,.10);
}
.tracking-step.is-done {
  border-color: rgba(18,183,106,.30);
  background: linear-gradient(145deg, rgba(236,253,245,.92), rgba(255,255,255,.75));
}
.tracking-step-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: #eef2f7;
  color: #667085;
}
.tracking-step.is-done .tracking-step-icon {
  background: linear-gradient(135deg, #0ba360, #12b76a);
  color: #fff;
  box-shadow: 0 10px 20px rgba(18,183,106,.22);
}
.tracking-step-title {
  font-weight: 900;
  color: #071832;
  margin-bottom: 4px;
}
[data-luxury-reveal] {
  opacity: 1;
  transform: none;
}
[data-luxury-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .58s ease, transform .58s ease;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
@media (max-width: 760px) {
  .tracking-flow-banner,
  .tracking-step { border-radius: 16px; }
  .tracking-stage-grid { grid-template-columns: 1fr; }
  .otp-form { padding: 14px; border-radius: 20px; }
  .otp-digit-group { gap: 8px; }
  .otp-digit { border-radius: 14px; min-height: 48px; font-size: 21px; }
}

/* Site-wide premium mobile finish */
.page > .alert:first-child {
  max-width: 980px;
  box-shadow: 0 14px 34px rgba(7, 24, 50, 0.10);
}
.alert-info,
.alert-warning {
  background: #ebf4ff;
  color: #0f2854;
}
.profile-meta > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.profile-meta .material-symbols-outlined {
  font-size: 18px;
}
.otp-inline-form {
  align-items: flex-end;
  padding: 14px;
  border: 1px solid rgba(28, 77, 141, 0.10);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.78), rgba(235,244,255,.58));
}
.otp-inline-field {
  flex: 1.3 1 320px;
  min-width: 280px;
}
.otp-digit-group-inline {
  grid-template-columns: repeat(6, minmax(38px, 52px));
  justify-content: start;
  margin-top: 0;
}
.otp-digit-group-inline .otp-digit {
  min-height: 46px;
  border-radius: 14px;
  font-size: 20px;
}
.inline-otp-success {
  max-width: 420px;
  margin: 0 0 18px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(18, 183, 106, .22);
  background: linear-gradient(145deg, rgba(236,253,245,.92), rgba(255,255,255,.72));
  box-shadow: 0 18px 42px rgba(18,183,106,.13);
}
.inline-otp-success .otp-success-animation {
  height: 70px;
  margin-bottom: 0;
}
.inline-otp-success .otp-success-boxes span {
  width: 36px;
  height: 40px;
  border-radius: 12px;
}
.inline-otp-success .otp-success-boxes span:nth-child(1) { --x: 108px; }
.inline-otp-success .otp-success-boxes span:nth-child(2) { --x: 65px; }
.inline-otp-success .otp-success-boxes span:nth-child(3) { --x: 22px; }
.inline-otp-success .otp-success-boxes span:nth-child(4) { --x: -22px; }
.inline-otp-success .otp-success-boxes span:nth-child(5) { --x: -65px; }
.inline-otp-success .otp-success-boxes span:nth-child(6) { --x: -108px; }
.inline-otp-success .otp-success-tick {
  width: 58px;
  height: 58px;
  border-radius: 20px;
}
.inline-otp-success .otp-success-tick .material-symbols-outlined {
  font-size: 36px;
}
.about-luxury-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 22px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 30px;
  color: #fff;
  background:
    radial-gradient(circle at 12% 18%, rgba(73, 136, 196, .34), transparent 30%),
    linear-gradient(135deg, #071832 0%, #0f2854 58%, #1c4d8d 100%);
  box-shadow: 0 28px 82px rgba(7, 24, 50, .24);
  overflow: hidden;
  position: relative;
}
.about-luxury-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
}
.about-kicker {
  color: #dff3ff;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}
.about-luxury-hero h1 {
  margin: 8px 0 10px;
  font: 900 clamp(32px, 5vw, 56px) "Syne", sans-serif;
  line-height: 1;
}
.about-luxury-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.7;
}
.about-search-tick {
  position: relative;
  z-index: 1;
  width: clamp(150px, 18vw, 220px);
  aspect-ratio: 1;
  border-radius: 38px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(135deg, #0ba360, #12b76a 62%, #5ee59c);
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 24px 54px rgba(18,183,106,.34), inset 0 1px 0 rgba(255,255,255,.38);
  transform: rotate(-2deg);
  animation: aboutTickFloat 3.2s ease-in-out infinite;
}
.about-search-tick::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 46px;
  border: 1px solid rgba(189,232,245,.46);
  animation: aboutTickRing 1.9s ease-in-out infinite;
}
.about-search-tick .material-symbols-outlined {
  font-size: clamp(64px, 9vw, 108px);
  font-weight: 900;
}
.about-search-tick strong {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
@keyframes aboutTickFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes aboutTickRing {
  0%, 100% { transform: scale(.96); opacity: .62; }
  50% { transform: scale(1.04); opacity: .22; }
}
@media (max-width: 900px) {
  .about-luxury-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-luxury-hero p {
    margin: 0 auto;
  }
  .about-search-tick {
    width: min(210px, 62vw);
    justify-self: center;
  }
}
@media (max-width: 760px) {
  .card:hover,
  .car-card:hover {
    transform: none;
  }
  .otp-inline-form {
    padding: 12px;
  }
  .otp-inline-field {
    min-width: 100%;
  }
  .otp-digit-group-inline {
    grid-template-columns: repeat(6, 1fr);
    width: 100%;
  }
  .otp-inline-form .btn {
    width: 100%;
    margin-top: 8px !important;
  }
  .about-luxury-hero {
    border-radius: 22px;
    margin-bottom: 16px;
    padding: 24px 16px;
  }
}

/* Premium showroom refresh: stronger luxury styling and true square OTP boxes */
:root {
  --premiumInk: #050b18;
  --premiumNavy: #071832;
  --premiumBlue: #123b74;
  --premiumBlue2: #1c4d8d;
  --premiumBlue3: #4988c4;
  --premiumIce: #dff3ff;
  --premiumLine: rgba(73, 136, 196, .34);
}
body {
  background:
    radial-gradient(circle at 18% 8%, rgba(73, 136, 196, .36), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(28, 77, 141, .28), transparent 30%),
    linear-gradient(135deg, #f8fbff 0%, #edf7ff 42%, #dff3ff 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255,255,255,.34) 38%, transparent 52%) -80vw 0 / 80vw 100% no-repeat;
  animation: luxurySweep 8s ease-in-out infinite;
}
.page {
  max-width: 1520px;
  width: 100%;
}
.topbar {
  background:
    linear-gradient(90deg, rgba(5,11,24,.96), rgba(7,24,50,.90) 58%, rgba(18,59,116,.92));
  border-bottom: 1px solid rgba(73, 136, 196, .24);
}
.sidebar {
  border-right: 1px solid rgba(73, 136, 196, .24);
}
.page-header {
  padding: 22px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(223,243,255,.66)),
    radial-gradient(circle at top right, rgba(73,136,196,.28), transparent 36%);
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 22px 58px rgba(7,24,50,.12);
}
.page-title {
  letter-spacing: .01em;
  text-shadow: 0 10px 34px rgba(73,136,196,.22);
}
.card,
.stat-card,
.car-card {
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.88);
  background:
    linear-gradient(145deg, rgba(255,255,255,.96), rgba(255,255,255,.70)),
    radial-gradient(circle at top left, rgba(73,136,196,.16), transparent 34%);
  box-shadow: 0 22px 60px rgba(18,59,116,.15);
}
.card-title,
.card h3 {
  color: var(--premiumInk);
  letter-spacing: .01em;
}
.card-title::after,
.card h3::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--premiumBlue3), transparent);
}
.btn {
  border-radius: 14px;
  letter-spacing: .01em;
}
.btn-primary {
  color: #fff;
  background:
    linear-gradient(135deg, var(--premiumInk), var(--premiumBlue2) 58%, var(--premiumBlue3));
  box-shadow: 0 16px 30px rgba(18,59,116,.28), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(18,59,116,.36), 0 0 0 4px rgba(73,136,196,.16);
}
.btn-outline,
.btn-ghost {
  background: rgba(255,255,255,.70);
  border-color: rgba(73,136,196,.34);
}
.form-control,
.select-control,
textarea {
  border-radius: 15px;
  background: rgba(255,255,255,.86);
  border-color: rgba(18,59,116,.14);
}
.badge {
  border: 1px solid rgba(255,255,255,.74);
  box-shadow: 0 8px 18px rgba(7,24,50,.07);
}
.profile-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(73,136,196,.28);
  background:
    radial-gradient(circle at 16% 10%, rgba(73,136,196,.30), transparent 28%),
    linear-gradient(135deg, #050b18, #0f2854 62%, #123b74);
}
.profile-hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -130px;
  top: -160px;
  border-radius: 50%;
  background: rgba(73,136,196,.18);
}
.profile-hero > * {
  position: relative;
  z-index: 1;
}
.notice-shell.otp-page-shell {
  min-height: min(720px, calc(100vh - 150px));
  display: grid;
  align-items: center;
}
.notice-shell.otp-page-shell .notice-panel {
  border-radius: 34px;
  border: 1px solid rgba(73,136,196,.34);
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,251,255,.86)),
    radial-gradient(circle at 15% 0%, rgba(73,136,196,.26), transparent 28%);
  box-shadow: 0 36px 100px rgba(7,24,50,.20);
}
.notice-shell.otp-page-shell .notice-content {
  padding: clamp(30px, 5vw, 58px);
}
.notice-icon {
  background:
    linear-gradient(135deg, var(--premiumInk), var(--premiumBlue2) 62%, var(--premiumBlue3));
  border: 1px solid rgba(255,255,255,.42);
  box-shadow: 0 22px 46px rgba(18,59,116,.30), 0 0 0 10px rgba(73,136,196,.12);
}
.otp-form,
.otp-inline-form {
  background:
    linear-gradient(145deg, rgba(255,255,255,.90), rgba(223,243,255,.62));
  border: 1px solid rgba(73,136,196,.30);
  box-shadow: 0 24px 58px rgba(7,24,50,.13), inset 0 1px 0 rgba(255,255,255,.78);
}
.otp-form {
  max-width: 560px;
}
.otp-digit-group {
  grid-template-columns: repeat(6, 64px);
  justify-content: center;
  gap: 12px;
}
.otp-digit,
.otp-digit-group-inline .otp-digit {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  max-width: 64px;
  max-height: 64px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-radius: 18px;
  font-size: 25px;
  line-height: 64px;
  background:
    linear-gradient(145deg, #ffffff, #edf7ff 52%, #dff3ff);
  border: 2px solid rgba(73,136,196,.34);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 14px 28px rgba(7,24,50,.12);
}
.otp-digit:focus {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--premiumBlue3);
  box-shadow: 0 0 0 6px rgba(73,136,196,.18), 0 24px 44px rgba(7,24,50,.18);
}
.otp-digit.filled {
  background:
    linear-gradient(145deg, #dff3ff, #ffffff 55%, #e9f4ff);
  color: var(--premiumInk);
  border-color: var(--premiumBlue3);
}
.otp-digit-group.is-complete .otp-digit {
  border-color: #12b76a;
  background: linear-gradient(145deg, #e8fff4, #ffffff);
}
.otp-digit-group-inline {
  grid-template-columns: repeat(6, 56px);
  justify-content: start;
  gap: 10px;
}
.otp-digit-group-inline .otp-digit {
  width: 56px;
  height: 56px;
  min-width: 56px;
  min-height: 56px;
  max-width: 56px;
  max-height: 56px;
  line-height: 56px;
  font-size: 22px;
}
.otp-inline-form {
  position: relative;
  padding: 18px;
}
.profile-edit-card {
  grid-column: 1 / -1;
}
.profile-edit-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  gap: 22px;
  align-items: start;
}
.profile-edit-main,
.profile-edit-side {
  min-width: 0;
}
.license-upload-stack {
  display: grid;
  gap: 12px;
}
.profile-edit-side {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(235, 248, 255, .96), rgba(255, 255, 255, .98));
  border: 1px solid rgba(73, 136, 196, .22);
  box-shadow: 0 18px 38px rgba(28, 77, 141, .1);
}
.profile-phone-note {
  padding: 10px 12px;
  margin-bottom: 12px;
}
.compact-phone-otp {
  padding: 12px;
  gap: 10px;
}
.compact-phone-otp .otp-inline-field {
  flex-basis: 100%;
  min-width: 0;
}
.compact-phone-otp .otp-digit-group-inline {
  grid-template-columns: repeat(6, 42px);
  gap: 7px;
}
.compact-phone-otp .otp-digit-group-inline .otp-digit {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  max-width: 42px;
  max-height: 42px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 42px;
}
.compact-phone-otp .btn {
  margin-top: 0 !important;
}
@media (max-width: 640px) {
  .profile-edit-split {
    grid-template-columns: 1fr;
  }
  .profile-edit-side {
    padding: 14px;
  }
}
@media (max-width: 560px) {
  .compact-phone-otp .otp-digit-group-inline {
    grid-template-columns: repeat(6, minmax(34px, 1fr));
  }
  .compact-phone-otp .otp-digit-group-inline .otp-digit {
    width: 100%;
    min-width: 0;
  }
}
.otp-inline-form::before {
  content: "Secure verification";
  position: absolute;
  top: -12px;
  left: 18px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #0f2854;
  background: linear-gradient(135deg, #dff3ff, #ffffff);
  border: 1px solid rgba(73,136,196,.32);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.about-luxury-hero {
  min-height: 320px;
  border: 1px solid rgba(73,136,196,.34);
  background:
    radial-gradient(circle at 18% 10%, rgba(73,136,196,.34), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(73,136,196,.26), transparent 30%),
    linear-gradient(135deg, #050b18 0%, #071832 44%, #123b74 100%);
}
.about-search-tick {
  box-shadow:
    0 30px 72px rgba(18,183,106,.40),
    0 0 0 12px rgba(73,136,196,.12),
    inset 0 1px 0 rgba(255,255,255,.42);
}
.compare-slot-add {
  text-decoration: none;
  cursor: pointer;
}
.compare-slot-add:hover {
  color: #fff;
  background: linear-gradient(135deg, #071832, #1c4d8d 62%, #73a8d8);
}
.compare-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.compare-picker-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  overflow: hidden;
  min-height: 100%;
}
.compare-picker-card:hover {
  color: inherit;
}
.compare-picker-image {
  position: relative;
  height: 165px;
  overflow: hidden;
  background: #ebf4ff;
}
.compare-picker-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}
.compare-picker-card:hover .compare-picker-image img {
  transform: scale(1.06);
}
.compare-picker-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(7, 24, 50, .82);
  color: #fff;
  border: 1px solid rgba(189,232,245,.34);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.compare-picker-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}
.compare-picker-meta {
  color: #4a5675;
  font-size: 13px;
  line-height: 1.5;
}
.compare-picker-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.compare-picker-price {
  color: #1c4d8d;
  font: 900 18px "Syne", sans-serif;
}
@keyframes luxurySweep {
  0%, 70%, 100% { background-position: -80vw 0; opacity: 0; }
  35% { background-position: 120vw 0; opacity: 1; }
}
@media (max-width: 760px) {
  .page-header {
    padding: 16px;
    border-radius: 20px;
  }
  .otp-digit-group {
    grid-template-columns: repeat(6, min(13vw, 48px));
    gap: 7px;
  }
  .otp-digit,
  .otp-digit-group-inline .otp-digit {
    width: min(13vw, 48px);
    height: min(13vw, 48px);
    min-width: min(13vw, 48px);
    min-height: min(13vw, 48px);
    max-width: min(13vw, 48px);
    max-height: min(13vw, 48px);
    line-height: min(13vw, 48px);
    border-radius: 14px;
    font-size: 20px;
  }
  .otp-digit-group-inline {
    grid-template-columns: repeat(6, min(13vw, 48px));
    justify-content: center;
  }
  .notice-shell.otp-page-shell {
    min-height: auto;
  }
  .notice-shell.otp-page-shell .notice-panel {
    border-radius: 24px;
  }
}

/* Profile page final layout override */
.profile-edit-card {
  grid-column: 1 / -1 !important;
}
.profile-edit-card .profile-edit-split {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px) !important;
  gap: 24px !important;
  align-items: start !important;
}
.profile-edit-card .profile-edit-main,
.profile-edit-card .profile-edit-side {
  width: 100%;
  min-width: 0;
}
.profile-edit-card .profile-edit-side {
  align-self: stretch;
}
@media (max-width: 640px) {
  .profile-edit-card .profile-edit-split {
    grid-template-columns: 1fr !important;
  }
}

/* CarLink micro-interactions: role switch, notifications, favourites */
.role-switch-animated {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #eef3f8;
  box-shadow: inset 0 0 0 1px rgba(15, 40, 84, .06);
}
.role-switch-animated::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 6px);
  height: calc(100% - 8px);
  border-radius: 16px;
  background: linear-gradient(135deg, #1C4D8D, #4EA3FF);
  box-shadow: 0 10px 22px rgba(28, 77, 141, .25);
  transform: translateX(0);
  transition: transform .34s cubic-bezier(.2,.9,.2,1), box-shadow .34s ease;
  z-index: -1;
}
.role-switch-animated[data-active-role="seller"]::before {
  transform: translateX(calc(100% + 4px));
  background: linear-gradient(135deg, #0F766E, #22C55E);
}
.role-switch-animated a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: color .22s ease, transform .22s ease;
  text-decoration: none;
}
.role-switch-animated a .material-symbols-outlined {
  font-size: 17px;
}
.role-switch-animated a.active {
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
  animation: roleSwitchPop .38s ease both;
}
.role-switch-animated a:hover {
  transform: translateY(-1px);
}
.role-switch-animated a.role-switch-clicking {
  animation: roleSwitchTap .36s ease both;
}
@keyframes roleSwitchPop {
  0% { transform: scale(.96); }
  55% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes roleSwitchTap {
  0% { transform: scale(1); }
  45% { transform: scale(.92); }
  100% { transform: scale(1.02); }
}
.notification-icon-btn {
  position: relative;
}
.notification-red-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(239,68,68,.16);
  animation: carlinkRedDotBlink 1.15s ease-in-out infinite;
}
.notification-red-dot::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 2px solid rgba(239, 68, 68, .34);
  animation: carlinkRedDotPulse 1.15s ease-out infinite;
}
@keyframes carlinkRedDotBlink {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  45% { transform: scale(.72); filter: brightness(.8); }
  70% { transform: scale(1.22); filter: brightness(1.2); }
}
@keyframes carlinkRedDotPulse {
  0% { transform: scale(.55); opacity: .75; }
  100% { transform: scale(1.75); opacity: 0; }
}
.heart {
  overflow: visible;
  position: relative;
}
.heart.fav-pop {
  animation: favouriteButtonPop .35s ease both;
}
.heart-drop {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  color: #ef4444;
  font-family: 'Material Symbols Outlined';
  font-variation-settings: "FILL" 1;
  font-size: 20px;
  line-height: 1;
  animation: heartDropFall .95s cubic-bezier(.17,.67,.3,1) forwards;
  text-shadow: 0 8px 18px rgba(239, 68, 68, .28);
}
@keyframes favouriteButtonPop {
  0% { transform: scale(1); }
  42% { transform: scale(1.22) rotate(-6deg); }
  100% { transform: scale(1); }
}
@keyframes heartDropFall {
  0% { transform: translate(0, 0) scale(.72) rotate(0deg); opacity: 0; }
  12% { opacity: 1; }
  55% { transform: translate(var(--heart-x, 0px), 38px) scale(1.05) rotate(12deg); opacity: .95; }
  100% { transform: translate(calc(var(--heart-x, 0px) * 1.7), 92px) scale(.55) rotate(-18deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .role-switch-animated::before,
  .role-switch-animated a,
  .notification-red-dot,
  .notification-red-dot::after,
  .heart.fav-pop,
  .heart-drop {
    animation: none !important;
    transition: none !important;
  }
}

/* CarLink global UX animation layer */
:root {
  --motion-fast: 160ms;
  --motion-normal: 260ms;
  --motion-slow: 520ms;
  --motion-spring: cubic-bezier(.2,.9,.22,1);
}

[data-cl-reveal] {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity var(--motion-slow) ease,
    transform var(--motion-slow) var(--motion-spring),
    filter var(--motion-slow) ease,
    box-shadow var(--motion-normal) ease;
}
[data-cl-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.card,
.stat-card,
.dashboard-card,
.notice-panel,
.table-card,
.car-card,
.listing-card,
.profile-card,
.metric-card,
.summary-card,
.order-card,
.request-card,
.notification-card,
.chat-item,
.message-bubble,
.badge-meaning-block {
  transition:
    transform var(--motion-normal) var(--motion-spring),
    box-shadow var(--motion-normal) ease,
    border-color var(--motion-normal) ease,
    background-color var(--motion-normal) ease;
}

.card:hover,
.stat-card:hover,
.dashboard-card:hover,
.car-card:hover,
.listing-card:hover,
.profile-card:hover,
.order-card:hover,
.request-card:hover,
.notification-card:hover,
.chat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadowMd);
}

.btn,
.icon-btn,
.avatar,
.nav-item,
select,
input,
textarea,
button,
[data-action],
[data-nav-link] {
  transition:
    transform var(--motion-fast) ease,
    box-shadow var(--motion-normal) ease,
    border-color var(--motion-normal) ease,
    background-color var(--motion-normal) ease,
    color var(--motion-normal) ease,
    opacity var(--motion-normal) ease;
}

.btn:hover,
.icon-btn:hover,
button:hover,
[data-action]:hover {
  transform: translateY(-1px);
}
.btn:active,
.icon-btn:active,
button:active,
.nav-item:active,
[data-action]:active {
  transform: scale(.97);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primaryBtn) !important;
  box-shadow: 0 0 0 4px rgba(28, 77, 141, .12) !important;
}

.form-group,
.field-group,
.input-group,
.form-row,
[data-field-wrap] {
  transition: opacity var(--motion-normal) ease, transform var(--motion-normal) var(--motion-spring);
}

.cl-ripple-host {
  position: relative;
  overflow: hidden;
}
.cl-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  animation: carlinkRipple .58s ease-out forwards;
}
.btn-outline .cl-ripple,
.icon-btn .cl-ripple,
.nav-item .cl-ripple {
  background: rgba(28, 77, 141, .18);
}
@keyframes carlinkRipple {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(18);
  }
}

.cl-submit-loading {
  pointer-events: none;
  opacity: .82;
}
.cl-submit-loading::after {
  content: "";
  width: 13px;
  height: 13px;
  border-radius: 999px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  margin-left: 8px;
  display: inline-block;
  animation: carlinkSpin .7s linear infinite;
}
@keyframes carlinkSpin {
  to { transform: rotate(360deg); }
}

.table tbody tr,
table tbody tr {
  transition: background-color var(--motion-normal) ease, transform var(--motion-fast) ease;
}
.cl-row-enter {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
.table tbody tr:hover,
table tbody tr:hover {
  background: rgba(189, 232, 245, .25);
}

.badge,
.status-badge,
.chip,
.label-pill,
.pill,
[class*="badge"] {
  transition: transform var(--motion-fast) ease, box-shadow var(--motion-normal) ease, filter var(--motion-normal) ease;
}
.badge:hover,
.status-badge:hover,
.chip:hover,
.label-pill:hover,
.pill:hover,
[class*="badge"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.alert,
.toast,
#toast {
  animation: carlinkSlideToast .34s var(--motion-spring) both;
}
@keyframes carlinkSlideToast {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal,
.modal-backdrop,
[role="dialog"],
.popup,
.dropdown-menu,
.notification-menu,
.profile-menu {
  animation: carlinkSoftOpen .24s var(--motion-spring) both;
}
@keyframes carlinkSoftOpen {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.sidebar .nav-item {
  position: relative;
  overflow: hidden;
}
.sidebar .nav-item::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  opacity: .55;
  transition: transform var(--motion-normal) var(--motion-spring);
}
.sidebar .nav-item:hover::after,
.sidebar .nav-item.active::after {
  transform: scaleX(1);
}

.car-card img,
.listing-card img,
.gallery-main img,
.profile-photo,
.avatar img,
img[data-animate-image] {
  transition: transform .55s var(--motion-spring), filter .32s ease;
}
.car-card:hover img,
.listing-card:hover img,
.gallery-main:hover img,
img[data-animate-image]:hover {
  transform: scale(1.025);
}

.cl-field-highlight {
  animation: carlinkFieldHighlight .85s ease both;
}
@keyframes carlinkFieldHighlight {
  0% { box-shadow: 0 0 0 0 rgba(28, 77, 141, .22); }
  45% { box-shadow: 0 0 0 6px rgba(28, 77, 141, .13); }
  100% { box-shadow: 0 0 0 0 rgba(28, 77, 141, 0); }
}

.cl-row-enter {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}
@keyframes carlinkRowEnter {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

.cl-page-ready .page-title,
.cl-page-ready h1,
.cl-page-ready h2 {
  animation: carlinkTitleIn .44s var(--motion-spring) both;
}
@keyframes carlinkTitleIn {
  from { opacity: 0; transform: translateY(8px); letter-spacing: -.02em; }
  to { opacity: 1; transform: translateY(0); letter-spacing: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  [data-cl-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

.hci-hero-card{
  position:relative; overflow:hidden; padding:22px; border-radius:26px;
  background:linear-gradient(135deg,rgba(12,35,72,.92),rgba(21,96,189,.82));
  color:#fff; box-shadow:0 24px 70px rgba(15,64,138,.28);
  border:1px solid rgba(255,255,255,.20); backdrop-filter:blur(18px);
}
.hci-hero-card::after{content:""; position:absolute; width:220px; height:220px; right:-70px; top:-80px; border-radius:50%; background:radial-gradient(circle,rgba(102,217,255,.38),transparent 68%); animation:hciFloat 8s ease-in-out infinite; pointer-events:none}
.eyebrow{font-size:12px; letter-spacing:.14em; text-transform:uppercase; opacity:.82; font-weight:900; margin-bottom:6px}
.confidence-chip,.score-card{display:inline-flex; flex-direction:column; align-items:flex-start; gap:2px; padding:12px 16px; border-radius:18px; background:rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.28); box-shadow:inset 0 1px 0 rgba(255,255,255,.15); color:#fff; font-weight:800}
.score-card b{font-size:28px; line-height:1}.score-card span,.confidence-chip span{font-size:12px; opacity:.85}.hci-glass-card{border:1px solid rgba(42,112,220,.16)!important; background:linear-gradient(145deg,rgba(255,255,255,.92),rgba(239,247,255,.78))!important; box-shadow:0 18px 55px rgba(20,91,170,.12)!important; backdrop-filter:blur(14px)}
.hci-primary-action{position:relative; overflow:hidden}.hci-primary-action::after{content:""; position:absolute; inset:0; background:linear-gradient(90deg,transparent,rgba(255,255,255,.26),transparent); transform:translateX(-110%)}.hci-primary-action:hover::after{animation:hciShimmer .85s ease}.hci-nudge-row,.quality-item{display:flex; align-items:flex-start; gap:12px; padding:12px; border-radius:16px; background:rgba(30,103,200,.06); margin:8px 0}.quality-item .material-symbols-outlined{color:#1677ff}.quality-item p{margin:3px 0 0; color:#64748b}.coverage-pill-row{display:flex; flex-wrap:wrap; gap:10px; margin-top:12px}.coverage-pill-row span{padding:8px 12px; border-radius:999px; font-weight:800; color:#0c3f88; background:#e8f2ff; border:1px solid #cfe3ff}.hci-score-grid .metric{display:flex; flex-direction:column; gap:4px; align-items:flex-start}.hci-score-grid .metric b{font-size:28px; color:#0d47a1}.hci-score-grid .metric span{color:#64748b; font-weight:700}.recommendation-grid{display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:18px}.match-card{cursor:pointer; border-radius:24px; overflow:hidden; border:1px solid rgba(25,118,210,.14); background:rgba(255,255,255,.92); box-shadow:0 15px 45px rgba(15,75,160,.12); transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease}.match-card:hover{transform:translateY(-7px); box-shadow:0 24px 70px rgba(23,96,190,.22); border-color:rgba(21,101,216,.36)}.match-card img{width:100%; height:170px; object-fit:cover; display:block}.match-card-body{padding:16px; position:relative}.match-score-ring{position:absolute; right:16px; top:-34px; width:68px; height:68px; border-radius:50%; display:grid; place-items:center; background:conic-gradient(#1677ff calc(var(--score)*1%),#e6eefc 0); box-shadow:0 12px 30px rgba(22,119,255,.24)}.match-score-ring::after{content:""; position:absolute; inset:7px; background:#fff; border-radius:50%}.match-score-ring span{position:relative; z-index:1; font-weight:900; color:#0d47a1}.mini-progress{height:8px; background:#eaf1fb; border-radius:999px; overflow:hidden; margin:12px 0}.mini-progress span{display:block; height:100%; background:linear-gradient(90deg,#0d47a1,#22c1ff); border-radius:999px}.reason-list{padding-left:18px; color:#475569; font-size:13px}.reason-list .warn{color:#b45309}.empty-state{padding:24px; border-radius:20px; background:#f8fbff; text-align:center}.empty-state .material-symbols-outlined{font-size:42px; color:#1677ff}.smart-form label{font-weight:800; color:#24324b}.smart-form input,.smart-form select{margin-top:6px}.form-grid.two{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px}.section-head{display:flex; justify-content:space-between; gap:16px; align-items:flex-start}.hci-clickable-card:focus-visible,.match-card:focus-visible{outline:4px solid rgba(22,119,255,.28); outline-offset:4px}
@keyframes hciFloat{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(-18px,22px,0)}}@keyframes hciShimmer{to{transform:translateX(110%)}}
@media(max-width:760px){.form-grid.two,.matchmaker-layout{grid-template-columns:1fr!important}.section-head{flex-direction:column}.hci-hero-card{padding:18px}.recommendation-grid{grid-template-columns:1fr}.match-score-ring{width:60px;height:60px}}
@media(prefers-reduced-motion:reduce){.hci-hero-card::after,.hci-primary-action:hover::after{animation:none}.match-card,.hci-clickable-card{transition:none!important}}

.dashboard-hero-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(12,35,72,.96), rgba(21,96,189,.88));
  color: #fff;
  box-shadow: 0 24px 70px rgba(15,64,138,.28);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(18px);
}
.dashboard-hero-card .page-title,
.dashboard-hero-card .page-subtitle,
.dashboard-hero-card .eyebrow { color: #fff; }
.dashboard-hero-card .page-subtitle { opacity: .88; }
.dashboard-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 20px;
}
.dashboard-mini-stats .stat-card {
  min-height: 112px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(37, 99, 235, .12);
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(239,247,255,.82));
  box-shadow: 0 14px 40px rgba(20, 91, 170, .10);
}
.dashboard-mini-stats .stat-card:hover { transform: translateY(-3px); box-shadow: 0 20px 54px rgba(20,91,170,.16); }
.dashboard-mini-stats .stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  color: #fff;
}
.dashboard-mini-stats .stat-icon.blue { background: linear-gradient(135deg,#1d4ed8,#38bdf8); }
.dashboard-mini-stats .stat-icon.orange { background: linear-gradient(135deg,#f59e0b,#f97316); }
.dashboard-mini-stats .stat-icon.green { background: linear-gradient(135deg,#059669,#22c55e); }
.dashboard-mini-stats .stat-value { font-size: 24px; font-weight: 900; color: #0f172a; }
.dashboard-mini-stats .stat-label { font-size: 12.5px; line-height: 1.2; color: #64748b; font-weight: 800; }
.admin-safe-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.btn-small { padding: 8px 12px; font-size: 12px; border-radius: 12px; }
.empty-state { padding: 24px; border-radius: 20px; background: #f8fbff; text-align: center; border: 1px solid #edf2fb; }
.empty-state b { display:block; color:#102a43; margin: 4px 0; }
.empty-state p { margin: 0; color:#64748b; }
.empty-state .material-symbols-outlined { font-size: 42px; color: #1677ff; display:block; margin: 0 auto 6px; }
.admin-inactive-page .table-wrap table { min-width: 980px; }
.buyer-dashboard-page .table-wrap table { min-width: 760px; }
@media(max-width:900px){
  .dashboard-mini-stats{grid-template-columns:repeat(2,minmax(0,1fr));}
  .admin-safe-stats{grid-template-columns:1fr;}
}
@media(max-width:560px){
  .dashboard-mini-stats{grid-template-columns:1fr;}
  .dashboard-hero-card{padding:18px;}
  .dashboard-hero-card .btn{width:100%; justify-content:center; margin-top:10px;}
}


.matchmaker-layout .smart-form {
  margin-top: 18px;
}
.matchmaker-layout .smart-form .form-grid {
  gap: 18px;
}
.matchmaker-layout .smart-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}
.matchmaker-layout .smart-form input,
.matchmaker-layout .smart-form select {
  min-height: 48px;
}
.profile-otp-verify-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.profile-otp-verify-row .btn {
  white-space: nowrap;
  min-height: 46px;
}
.otp-digit-group-inline {
  display: grid;
  grid-template-columns: repeat(6, minmax(32px, 44px));
  gap: 6px;
  max-width: 100%;
}
.otp-digit-group-inline .otp-digit {
  width: 100%;
  min-width: 0;
}
.alert.flash-floating {
  position: fixed;
  top: 86px;
  right: 22px;
  max-width: min(420px, calc(100vw - 32px));
  z-index: 9998;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
}
@media (max-width: 760px) {
  .profile-otp-verify-row {
    grid-template-columns: 1fr;
  }
  .profile-otp-verify-row .btn {
    width: 100%;
  }
  .otp-digit-group-inline {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .otp-digit-group-inline .otp-digit {
    min-height: 42px;
    font-size: 18px;
  }
}

.password-input-wrap {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}
.password-input-wrap input,
.password-input-wrap .form-control,
.password-input-wrap .password-input {
  width: 100% !important;
  padding-right: 3.25rem !important;
}
.password-input-wrap .password-toggle,
.password-input-wrap button.password-toggle,
.password-input-wrap [data-password-toggle] {
  position: absolute !important;
  top: 50% !important;
  right: .55rem !important;
  bottom: auto !important;
  left: auto !important;
  width: 2.35rem !important;
  height: 2.35rem !important;
  min-width: 2.35rem !important;
  min-height: 2.35rem !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: .85rem !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 20 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}
.password-input-wrap .password-toggle:hover,
.password-input-wrap .password-toggle:focus,
.password-input-wrap .password-toggle:active,
.password-input-wrap [data-password-toggle]:hover,
.password-input-wrap [data-password-toggle]:focus,
.password-input-wrap [data-password-toggle]:active {
  right: .55rem !important;
  transform: translateY(-50%) !important;
  background: #ebf4ff !important;
  color: #1c4d8d !important;
  box-shadow: none !important;
  outline: none !important;
}
.password-input-wrap .password-toggle::after,
.password-input-wrap [data-password-toggle]::after { display: none !important; }

.matchmaker-page .hci-glass-card {
  padding: 22px !important;
}
.matchmaker-page .hci-glass-card > h3,
.matchmaker-page .hci-glass-card > p {
  margin-left: 2px;
  margin-right: 2px;
}
.matchmaker-page .smart-form {
  margin-top: 22px !important;
  padding: 6px 2px 2px !important;
}
.matchmaker-page .smart-form .form-grid.two {
  gap: 20px !important;
}
.matchmaker-page .smart-form label {
  margin-bottom: 16px !important;
}

.profile-otp-verify-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(118px, auto) !important;
  gap: 12px !important;
  align-items: end !important;
  width: 100% !important;
}
.profile-otp-verify-row > div { min-width: 0 !important; }
.profile-otp-verify-row .btn { width: auto !important; white-space: nowrap !important; }
.compact-phone-otp .otp-digit-group-inline,
.otp-digit-group-inline {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(26px, 1fr)) !important;
  gap: clamp(4px, 1vw, 8px) !important;
  width: 100% !important;
  max-width: 360px !important;
  min-width: 0 !important;
}
.compact-phone-otp .otp-digit-group-inline .otp-digit,
.otp-digit-group-inline .otp-digit {
  width: 100% !important;
  min-width: 0 !important;
  height: clamp(38px, 7vw, 48px) !important;
  padding: 0 !important;
  text-align: center !important;
}
@media (max-width: 520px) {
  .profile-otp-verify-row {
    grid-template-columns: 1fr !important;
  }
  .profile-otp-verify-row .btn {
    width: 100% !important;
  }
  .compact-phone-otp .otp-digit-group-inline,
  .otp-digit-group-inline {
    max-width: 100% !important;
  }
}

.form-grid [data-ev-field],
.form-grid [data-ice-field] { min-width: 0; }
.ev-visible { display: block !important; }
.ev-hidden { display: none !important; }
.card, .hci-glass-card, .dashboard-hero-card { max-width: 100%; }
.table-wrap { overflow-x: auto; }


.matchmaker-page .matchmaker-search-card {
  padding: 30px !important;
  margin-bottom: 8px !important;
}
.matchmaker-page .matchmaker-search-card .smart-form {
  display: grid !important;
  gap: 18px !important;
  margin-top: 0 !important;
  padding: 0 !important;
}
.matchmaker-page .matchmaker-search-card .form-grid.two {
  gap: 20px !important;
}
.matchmaker-page .matchmaker-search-card label {
  margin-bottom: 0 !important;
}
.profile-otp-verify-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
}
.profile-otp-verify-row > div,
.profile-otp-verify-row label,
.profile-otp-verify-row .otp-digit-group-inline {
  min-width: 0 !important;
  max-width: 100% !important;
}
.profile-otp-verify-row .btn {
  width: 100% !important;
  max-width: 100% !important;
  justify-content: center !important;
}
.phone-otp-session-success {
  display: grid;
  place-items: center;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: linear-gradient(135deg,#ecfdf5,#ffffff);
  border: 1px solid #a7f3d0;
}
.inline-otp-success .otp-success-animation {
  position: relative;
  width: 214px;
  max-width: 100%;
  height: 54px;
  display: grid;
  place-items: center;
}
.inline-otp-success .otp-success-boxes {
  display: grid;
  grid-template-columns: repeat(6, 28px);
  gap: 6px;
  animation: otpBoxesMerge .75s ease forwards;
}
.inline-otp-success .otp-success-boxes span {
  width: 28px;
  height: 38px;
  border-radius: 10px;
  border: 2px solid #10b981;
  background: #fff;
  box-shadow: 0 8px 16px rgba(16,185,129,.14);
}
.inline-otp-success .otp-success-tick {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(.72);
  animation: otpTickPop .55s ease .72s forwards;
}
.inline-otp-success .otp-success-tick .material-symbols-outlined {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: #10b981;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 34px;
  box-shadow: 0 16px 28px rgba(16,185,129,.28);
}
@keyframes otpBoxesMerge {
  0% { opacity: 1; transform: scale(1); gap: 6px; }
  70% { opacity: 1; transform: scale(.82); gap: 0; }
  100% { opacity: 0; transform: scale(.28); gap: 0; }
}
@keyframes otpTickPop {
  to { opacity: 1; transform: scale(1); }
}
.alert.flash-floating {
  position: fixed !important;
  top: 86px !important;
  right: 22px !important;
  left: auto !important;
  max-width: min(440px, calc(100vw - 32px)) !important;
  z-index: 10050 !important;
  pointer-events: auto;
}
.ev-visible { display: block !important; }
.ev-hidden { display: none !important; }
@media (max-width: 720px) {
  .matchmaker-page .matchmaker-search-card { padding: 22px !important; }
  .alert.flash-floating { right: 16px !important; top: 76px !important; }
}


.page { background-image:radial-gradient(circle at 92% 4%,rgba(245,158,11,.07),transparent 24%),radial-gradient(circle at 8% 88%,rgba(16,185,129,.06),transparent 26%); }
.card-header { border-top:3px solid rgba(245,158,11,.65); }
.nav-item:nth-of-type(4n+1) .material-symbols-outlined { color:#7dd3fc; }
.nav-item:nth-of-type(4n+2) .material-symbols-outlined { color:#fbbf24; }
.nav-item:nth-of-type(4n+3) .material-symbols-outlined { color:#86efac; }
.nav-item:nth-of-type(4n+4) .material-symbols-outlined { color:#c4b5fd; }
.nav-item.active .material-symbols-outlined { color:#fff; }
.stat-card:nth-child(3n+1) { border-top:3px solid #38bdf8; }
.stat-card:nth-child(3n+2) { border-top:3px solid #f59e0b; }
.stat-card:nth-child(3n+3) { border-top:3px solid #10b981; }
.inline-otp-success, .otp-success-animation, .otp-success-boxes, .otp-success-tick { display: none !important; }
.profile-phone-session-success { margin-top: 10px; }


.otp-success-animation,
.otp-success-boxes,
.otp-success-tick,
.inline-otp-success,
[data-otp-success-animation],
[data-inline-otp-success] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.profile-phone-session-success { animation:none!important; }
.profile-otp-verify-row{grid-template-columns:minmax(0,1fr)!important;min-width:0!important}.profile-otp-verify-row .btn{position:static!important;width:100%!important}.otp-digit-group-inline{grid-template-columns:repeat(6,minmax(30px,1fr))!important;max-width:100%!important}
@media(max-width:640px){.otp-digit-group-inline{grid-template-columns:repeat(3,minmax(42px,1fr))!important;max-width:260px!important}}

@media(min-width:761px){
  .sidebar{position:fixed!important;left:0!important;top:0!important;height:100vh!important;min-height:100vh!important;overflow-y:auto!important;overscroll-behavior:contain!important}
  .main{margin-left:264px!important;width:calc(100% - 264px)!important}
}
.required-label::after{content:" *";color:#dc2626;font-weight:900}

.carlink-flash-message,
.alert.carlink-flash-message {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  margin: 0 0 18px 0 !important;
  z-index: auto !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08) !important;
  pointer-events: auto !important;
}
.alert.flash-floating {
  position: static !important;
  inset: auto !important;
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  margin: 0 0 18px 0 !important;
  z-index: auto !important;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .08) !important;
}

.sidebar {
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(189, 232, 245, .28); border-radius: 999px; }
.sidebar::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
.car-card-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1c4d8d;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid #d9eaff;
  white-space: nowrap;
}
.glass-listing-card { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease; }
.glass-listing-card:hover { transform: translateY(-3px); box-shadow: var(--shadowMd); }
@media (max-width: 900px) {
  .sidebar { position: fixed; height: 100vh; max-height: 100vh; }
  .main { min-height: 100vh; }
}
