/* ==========================================================================
   SOLO CAR CENTER - STYLESHEET (AUTOMOTIVE LUXURY LIGHT SHOWROOM UI)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;800&display=swap');
@import url('/common/design-tokens.css');

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Base Layout */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navigation Bar */
/* ==========================================================================
   PREMIER AUTOMOTIVE LUXURY NAVBAR (DESKTOP & MOBILE)
   ========================================================================== */

/* Sticky Navbar Container */
.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.06);
  transition: all 0.25s ease;
}

.nav-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Brand Logo */
.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-logo-wrap img {
  height: 44px;
  max-width: 190px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.brand-logo-wrap:hover img {
  transform: scale(1.02);
}

.brand-emblem {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 50%, #B45309 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 19px;
  box-shadow: var(--shadow-gold);
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.brand-tagline {
  font-size: 11px;
  color: var(--gold-dark);
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

/* Desktop Navigation Links */
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  margin: 0 auto 0 8px;
  flex-wrap: nowrap;
}

.nav-link {
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap !important;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.nav-link:hover {
  color: var(--gold-dark);
  background: #FFFBEB;
}

.nav-link.active {
  color: var(--gold-dark);
  background: #FEF3C7;
  font-weight: 800;
}

/* Dropdown: Layanan & Info */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 290px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  z-index: 1050;
  animation: navDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-dropdown-menu.active {
  display: flex !important;
  flex-direction: column;
  gap: 2px;
}

@keyframes navDropdownFade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #0F172A;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-dropdown-link:hover {
  background: #F8FAFC;
}

.nav-dropdown-link i {
  font-size: 16px;
  margin-top: 3px;
  width: 20px;
  text-align: center;
}

.nav-dropdown-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
}

.nav-dropdown-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
  line-height: 1.3;
}

/* Right Actions Cluster */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-user-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-portals-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-portal-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap !important;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-portal-pill.showroom {
  background: #FEF3C7;
  color: #B45309;
  border-color: #FDE68A;
}
.nav-portal-pill.showroom:hover {
  background: #FDE68A;
  color: #92400E;
}

.nav-portal-pill.leasing {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}
.nav-portal-pill.leasing:hover {
  background: #D1FAE5;
  color: #065F46;
}

.nav-utils-cluster {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-icon-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  font-size: 14px;
}

.nav-icon-circle-btn:hover {
  background: #FFFBEB;
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  transform: translateY(-1px);
}

.nav-icon-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #FFFFFF;
}

/* User Profile Pill & Dropdown Menu */
.nav-user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap !important;
}

.nav-user-pill-btn:hover {
  border-color: var(--gold-primary);
  background: #FFFBEB;
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.nav-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
}

.nav-user-caret {
  font-size: 9.5px;
  color: #94A3B8;
  transition: transform 0.2s;
}

.nav-user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
  z-index: 1050;
  overflow: hidden;
  animation: navDropdownFade 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-user-dropdown-header {
  padding: 12px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
}

.nav-user-role-badge {
  display: inline-block;
  background: #FEF3C7;
  color: #B45309;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #FDE68A;
}

.nav-user-dropdown-body {
  padding: 6px;
}

.nav-user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.nav-user-dropdown-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.nav-user-dropdown-item.highlight-gold {
  color: var(--gold-dark);
  font-weight: 700;
  background: #FEF3C7;
  margin-bottom: 4px;
}

.nav-user-dropdown-item.highlight-amber {
  color: #B45309;
  font-weight: 700;
  background: #FFFBEB;
  margin-bottom: 4px;
}

.nav-user-dropdown-item.highlight-emerald {
  color: #047857;
  font-weight: 700;
  background: #ECFDF5;
  margin-bottom: 4px;
}

.nav-user-dropdown-footer {
  padding: 6px;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.nav-user-dropdown-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #DC2626;
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-user-dropdown-logout:hover {
  background: #FEE2E2;
}

/* Guest Cluster */
.nav-guest-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-login {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background: #FFFBEB;
  border-color: var(--gold-primary);
  color: var(--gold-dark);
}

/* Backwards compatibility classes */
.action-pill-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap !important;
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold-primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section - Clean, Bright & Plain Theme */
.hero-section {
  position: relative;
  padding: 55px 24px 65px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  color: #B45309;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 900;
  line-height: 1.25;
  color: #0F172A;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hero-title .gold-gradient-text {
  background: linear-gradient(135deg, #B45309 0%, #D97706 50%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 16px;
  color: #475569;
  max-width: 780px;
  margin: 0 auto 32px;
  line-height: 1.65;
  font-weight: 500;
}

/* Quick Search Box */
.hero-search-box {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: 20px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr auto;
  gap: 14px;
  align-items: center;
}

.search-field {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.search-field label {
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}

.search-field select, .search-field input {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.2s ease;
}

.search-field select:focus, .search-field input:focus {
  background: #FFFFFF;
  border-color: #D97706;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.search-field select option {
  background: #FFFFFF;
  color: var(--text-primary);
}

/* Trust Badges Strip */
.trust-strip {
  max-width: 1240px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.trust-item {
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.trust-item:hover {
  transform: translateY(-3px);
  background: #FFFFFF;
  box-shadow: 0 14px 28px -4px rgba(0, 0, 0, 0.35);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #FEF08A 0%, #FDE047 50%, #F59E0B 100%);
  color: #78350F;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.trust-text h4 {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 12px;
  color: #475569;
  font-weight: 500;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: #FEF3C7;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

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

/* Content Sections */
.section-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 60px 24px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}

.section-title-wrap h2 {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.section-title-wrap p {
  font-size: 15px;
  color: var(--text-muted);
}

/* Catalog Layout with Filters */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
}

.filter-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 90px;
  box-shadow: var(--shadow-card);
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-group {
  margin-bottom: 22px;
}

.filter-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-dark);
  display: block;
  margin-bottom: 8px;
}

.filter-group input, .filter-group select {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-family: var(--font-sans);
  outline: none;
}

.filter-group input:focus, .filter-group select:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.12);
}

.filter-group select option {
  background: #FFFFFF;
  color: var(--text-primary);
}

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

/* Vehicle Grid & Cards */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.vehicle-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
}

.vehicle-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card-hover);
}

.card-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  background: #E2E8F0;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vehicle-card:hover .card-img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.badge-status {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-status.available {
  background: #059669;
  color: #FFFFFF;
}

.badge-status.booked {
  background: #D97706;
  color: #FFFFFF;
}

.badge-status.sold {
  background: #DC2626;
  color: #FFFFFF;
}

.badge-grade {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--gold-primary);
  color: var(--gold-dark);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.btn-card-fav:hover {
  color: #DC2626;
  background: #FFFFFF;
  transform: scale(1.1);
}

.btn-card-fav.active {
  color: #DC2626;
  background: #FEF2F2;
  border-color: #F87171;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-brand {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-specs-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.spec-pill {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.price-main {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-dark);
}

.price-installment {
  font-size: 11px;
  color: var(--text-muted);
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Modals & Overlays */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-content-box {
  transform: translateY(0);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
}

.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  background: #FFFFFF;
}

/* Slot Selection Buttons in Booking */
.slots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.slot-btn {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  background: #F8FAFC;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--gold-primary);
  background: #FFFBEB;
  color: var(--gold-dark);
}

.slot-btn.selected {
  border-color: var(--gold-primary);
  background: var(--gold-primary);
  color: #FFFFFF;
  font-weight: 700;
}

.slot-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #E2E8F0;
  border-color: #CBD5E1;
}

/* Chat Modal Styles */
.chat-window {
  display: flex;
  flex-direction: column;
  height: 480px;
  background: #FFFFFF;
}

.chat-car-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-bottom: 1px solid var(--border-subtle);
}

.chat-car-img {
  width: 52px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.chat-messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #F8FAFC;
}

.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: var(--radius-lg);
  font-size: 13.5px;
  line-height: 1.45;
}

.chat-bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  font-weight: 500;
  border-bottom-right-radius: 2px;
}

.chat-bubble.other {
  align-self: flex-start;
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.chat-bubble-time {
  font-size: 10px;
  opacity: 0.75;
  margin-top: 4px;
  text-align: right;
}

.chat-input-bar {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 10px;
  background: #FFFFFF;
}

.chat-input {
  flex: 1;
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 10px 14px;
  border-radius: var(--radius-full);
  outline: none;
  font-size: 13.5px;
}

.chat-input:focus {
  border-color: var(--gold-primary);
  background: #FFFFFF;
}

/* Detail Vehicle View */
.detail-gallery-main {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-xl);
  object-fit: cover;
  background: #E2E8F0;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card);
}

.detail-thumbnails-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.detail-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.7;
}

.detail-thumb.active, .detail-thumb:hover {
  border-color: var(--gold-primary);
  opacity: 1;
  transform: translateY(-2px);
}

/* Inspection Scorecard */
.inspection-scorecard {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08) 0%, #FFFFFF 100%);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-card);
}

.scorecard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.score-badge-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #059669;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
}

.score-badge-circle span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.score-items-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.score-item-box {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-title { font-size: 36px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-sidebar { display: none; }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-search-box { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .score-items-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   EFFICIENT HOME HERO & UNIFIED SEARCH STYLES
   ========================================================================== */
.home-hero-compact {
  background: radial-gradient(1200px 420px at 80% 20%, rgba(2, 65, 163, 0.07) 0%, rgba(254, 243, 199, 0.16) 55%, #FFFFFF 100%);
  border-bottom: 1px solid #E2E8F0;
  padding: 18px 24px 16px;
}

.home-hero-inner {
  max-width: 1320px;
  padding: 0 20px;
  margin: 0 auto;
}

/* ==========================================================================
   OFFICIAL SHOWCASE BILLBOARD AT TOP (OPSI A: MELINTANG DI PALING ATAS)
   ========================================================================== */
.home-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.home-hero-col-main {
  width: 100%;
  min-width: 0;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #FEF3C7;
  color: #B45309;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
  border: 1px solid #FDE68A;
}

.home-hero-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 850;
  color: #0F172A;
  margin: 0 0 12px;
  line-height: 1.25;
  letter-spacing: -0.4px;
}

/* Official Brand Billboard Card (Melintang di Paling Atas Sesuai Arahan) */
.home-hero-banner-col {
  order: -1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home-hero-banner-card {
  position: relative;
  width: 100%;
  max-width: 1280px;
  box-sizing: border-box;
  border-radius: 18px;
  overflow: hidden;
  background: #0241A3;
  border: 2px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 12px 32px -4px rgba(2, 65, 163, 0.20), 0 4px 12px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  line-height: 0;
  margin: 0 auto;
  aspect-ratio: 16 / 7;
  max-height: 380px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-hero-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -6px rgba(2, 65, 163, 0.32);
  border-color: #F59E0B;
}

.home-hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
  transition: transform 0.35s ease;
}

.home-hero-banner-card:hover .home-hero-banner-img {
  transform: scale(1.015);
}

.home-unified-search {
  display: flex;
  align-items: center;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 2px 12px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.home-unified-search:focus-within {
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

.home-unified-search .search-icon {
  color: #94A3B8;
  font-size: 14px;
  margin-right: 8px;
}

.home-unified-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 4px;
  font-size: 13.5px;
  font-family: var(--font-sans);
  color: #0F172A;
  outline: none;
  font-weight: 500;
}

.home-unified-search input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.home-unified-search .search-clear-btn {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 4px;
  transition: color 0.15s;
}
.home-unified-search .search-clear-btn:hover {
  color: #0F172A;
}

/* ==========================================================================
   HOME UNIFIED FILTER HUB & SEGMENT SWITCHER
   ========================================================================== */
.home-filter-hub {
  margin-top: 10px;
  margin-bottom: 6px;
}

.home-filter-segmented-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 8px;
  border: 1px solid #E2E8F0;
  max-width: 440px;
}

.filter-segment-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: #64748B;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-segment-btn.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.filter-segment-btn.active i {
  color: var(--gold-dark);
}

.filter-reset-icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  color: #64748B;
  font-size: 12px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.filter-reset-icon-btn:hover {
  color: #B45309;
  border-color: #FCD34D;
  background: #FFFBEB;
}

/* Dropdown Chevron for Mobile Filter */
.filter-dropdown-chevron {
  font-size: 10px;
  margin-left: 5px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
  color: #94A3B8;
  display: none;
}

@keyframes mobileDropdownSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-8px) scaleY(0.97);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scaleY(1);
  }
}

@keyframes mobileOptionPop {
  0% {
    opacity: 0;
    transform: translateY(-6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Strips styling with smooth touch scroll */
.home-categories-strip,
.home-brands-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  padding: 2px 4px 8px;
  scrollbar-width: none;
}

@media (min-width: 769px) {
  .home-categories-strip,
  .home-brands-strip {
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
    gap: 7px;
    padding-bottom: 2px;
  }
}

.home-categories-strip::-webkit-scrollbar,
.home-brands-strip::-webkit-scrollbar {
  display: none;
}

/* UNIFIED LUXURY PILLS (MATCHING 100% FOR BOTH CATEGORY & BRAND) */
.home-brand-pill,
.home-tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  border-radius: 99px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #CBD5E1 !important;
  color: #334155 !important;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  height: 34px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  text-overflow: clip !important;
  overflow: visible !important;
}

.home-brand-pill:hover,
.home-tab-pill:hover {
  border-color: #D97706 !important;
  color: #0F172A !important;
  background: #FFFBEB !important;
}

/* Cohesive Active State: Luxury Amber/Gold Gradient for both rows */
.home-brand-pill.active,
.home-tab-pill.active {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  color: #FFFFFF !important;
  border-color: #B45309 !important;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.3) !important;
}

.home-brand-pill.active i,
.home-tab-pill.active i {
  color: #FEF3C7 !important;
}

.sort-select-compact {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  outline: none;
  font-family: var(--font-sans);
}

.btn-reset-compact {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-reset-compact:hover {
  background: #F1F5F9;
  color: #0F172A;
}

/* ==========================================================================
   MOBILE APP BOTTOM NAVIGATION BAR (STICKY)
   ========================================================================== */
.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 56px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  z-index: 998;
  display: none;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  padding: 0 4px;
}

.mobile-bottom-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 700;
  color: #64748B;
  text-decoration: none;
  cursor: pointer;
  flex: 1;
  height: 100%;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.15s ease;
}

.mobile-bottom-item i {
  font-size: 17px;
  transition: transform 0.15s ease;
}

.mobile-bottom-item.active {
  color: #D97706;
}
.mobile-bottom-item.active i {
  color: #D97706;
  transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE SLIDE-OUT DRAWER PANEL
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.mobile-drawer-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-panel {
  position: fixed;
  top: 0;
  right: -310px;
  width: 290px;
  max-width: 85vw;
  height: 100%;
  background: #FFFFFF;
  z-index: 1001;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  transition: right 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.mobile-drawer-panel.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid #E2E8F0;
}

.mobile-drawer-close-btn {
  background: none;
  border: none;
  font-size: 26px;
  color: #64748B;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.mobile-drawer-body {
  padding: 16px 18px;
  overflow-y: auto;
  flex: 1;
}

.mobile-drawer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: #FFFBEB;
  color: #B45309;
}
.mobile-drawer-link i {
  font-size: 15px;
  width: 20px;
  text-align: center;
  color: var(--gold-dark);
}

/* ==========================================================================
   MOBILE VIEW ADAPTATION (MAX-WIDTH: 768PX)
   ========================================================================== */

/* ==========================================================================
   LEASING PARTNERS & CREDIT SIMULATION UI
   ========================================================================== */
.leasing-section {
  padding: 64px 24px;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border-top: 1px solid var(--border-subtle);
}

.leasing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.leasing-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.leasing-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card-hover);
}

.leasing-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.leasing-logo-img {
  height: 44px;
  max-width: 150px;
  object-fit: contain;
}

.leasing-rate-badge {
  background: #FEF3C7;
  color: var(--gold-dark);
  border: 1px solid #FCD34D;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

.leasing-features-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  flex-grow: 1;
}

.leasing-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.leasing-features-list li i {
  color: #059669;
  font-size: 13px;
}

/* Simulation Calculator */
.sim-calculator-box {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 32px;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08);
}

.sim-calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
}

.sim-control-group {
  margin-bottom: 22px;
}

.sim-control-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sim-control-value {
  color: var(--gold-dark);
  font-weight: 800;
}

.sim-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #E2E8F0;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-primary);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.4);
  border: 2px solid #FFFFFF;
  transition: transform 0.15s;
}

.sim-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.dp-quick-presets {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.dp-preset-btn {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.dp-preset-btn:hover, .dp-preset-btn.active {
  background: #FEF3C7;
  color: var(--gold-dark);
  border-color: var(--gold-primary);
}

.tenor-pills-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.tenor-pill-btn {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 10px 4px;
  text-align: center;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
}

.tenor-pill-btn .tenor-months {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.tenor-pill-btn .tenor-years {
  font-size: 11px;
  color: var(--text-muted);
}

.tenor-pill-btn:hover {
  border-color: var(--gold-primary);
}

.tenor-pill-btn.active {
  background: #FEF3C7;
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15);
}

.tenor-pill-btn.active .tenor-years {
  color: var(--gold-dark);
}

.sim-summary-panel {
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sim-installment-hero {
  background: #FEF3C7;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-bottom: 20px;
}

.sim-installment-hero .label {
  font-size: 12px;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}

.sim-installment-hero .amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--gold-dark);
  margin: 4px 0;
}

.sim-installment-hero .sub {
  font-size: 12px;
  color: var(--text-muted);
}

.sim-details-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 20px;
}

.sim-detail-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.sim-detail-row span:first-child {
  color: var(--text-muted);
}

.sim-detail-row span:last-child {
  color: var(--text-primary);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .leasing-grid { grid-template-columns: repeat(2, 1fr); }
  .sim-calculator-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .leasing-grid { grid-template-columns: 1fr; }
  .tenor-pills-row { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   FORUM KOMUNITAS & MULTI-ANGLE MEDIA UI
   ========================================================================== */
.forum-thread-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
}

.forum-thread-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-card);
}

.forum-thread-card.pinned {
  border-left: 4px solid var(--gold-primary);
  background: linear-gradient(90deg, #FFFBEB 0%, #FFFFFF 100%);
}

.forum-thread-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
}

.forum-thread-title:hover {
  color: var(--gold-primary);
}

.forum-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.forum-role-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.role-mekanik {
  background: #FEF3C7;
  color: var(--gold-dark);
  border: 1px solid #FCD34D;
}

.role-moderator {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
}

.role-member {
  background: #F1F5F9;
  color: var(--text-secondary);
}

.forum-solved-badge {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.forum-solution-box {
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
  border: 1.5px solid #059669;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.08);
}

.forum-reply-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-subtle);
}

.forum-reply-card.is-solution {
  border-color: #059669;
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.12);
}

/* Multi-angle media tabs */
.media-angles-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.angle-pill-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.angle-pill-btn:hover, .angle-pill-btn.active {
  background: #FEF3C7;
  color: var(--gold-dark);
  border-color: var(--gold-primary);
}

.thumb-angle-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: rgba(15, 23, 42, 0.85);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   HOMEPAGE SHOWROOM & SEPARATE PAGES EXTENSIONS
   ========================================================================== */

/* Quick Showroom Stats Strip */
.quick-stats-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.stat-pill i {
  color: var(--gold-dark);
}

/* Home Offer Filter Tabs */
.home-tabs-wrapper {
  margin: 16px 0 24px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.home-tabs-container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.home-tab-pill {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  background: #FFFFFF;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.home-tab-pill:hover {
  border-color: var(--gold-primary);
  color: var(--gold-dark);
  background: #FFFBEB;
}

.home-tab-pill.active {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border-color: #D97706;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

/* Budget Cards Grid */
.budget-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}

.budget-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  box-shadow: var(--shadow-card);
  transition: all 0.25s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.budget-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--card-accent, #2563EB);
}

.budget-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -6px rgba(15, 23, 42, 0.12);
  border-color: var(--gold-light);
}

.budget-card-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--card-accent, #2563EB);
  margin-bottom: 6px;
}

.budget-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.budget-card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
}

.budget-card-action {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Home Showroom Filter Bar */
.home-showroom-filter-bar {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.home-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.home-search-input-wrap i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 15px;
}

.home-search-input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  font-size: 14px;
  outline: none;
  background: #F8FAFC;
  transition: all 0.2s;
  box-sizing: border-box;
}

.home-search-input-wrap input:focus {
  background: #FFFFFF;
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Promo Banners Grid */
.promo-banners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.promo-banner-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.subpage-hero {
  padding: 55px 24px 65px;
  background: linear-gradient(180deg, #0A1E3F 0%, #0F172A 100%);
  color: #FFFFFF;
  text-align: center;
  border-bottom: 3px solid #EAB308;
  margin-bottom: 40px;
}

.subpage-hero h1 {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.subpage-hero p {
  font-size: 16px;
  color: #CBD5E1;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 992px) {
  .budget-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .promo-banners-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .budget-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SHOWROOM PORTAL & PUBLIC STOREFRONT LUXURY ENHANCEMENTS
   ========================================================================== */

/* Showroom Navigation Pills */
.shr-tabs-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.shr-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.shr-nav-pill:hover {
  color: #0F172A;
  background: #F1F5F9;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.shr-nav-pill.active {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}

.shr-nav-pill.active i {
  color: #F59E0B !important;
}

/* ELEVATED SHOWROOM KPI CARDS & GRID */
.shr-kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 1350px) {
  .shr-kpi-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
  }
}

@media (max-width: 820px) {
  .shr-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .shr-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
}

.shr-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.shr-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -2px rgba(15, 23, 42, 0.08);
}

.shr-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: #CBD5E1;
}

.shr-kpi-card.accent-dark::before { background: #0F172A; }
.shr-kpi-card.accent-blue::before { background: #2563EB; }
.shr-kpi-card.accent-gold::before { background: #D97706; }
.shr-kpi-card.accent-emerald::before { background: #059669; }
.shr-kpi-card.accent-rose::before { background: #DC2626; }
.shr-kpi-card.accent-pnl-positive {
  background: #F0FDF4;
  border-color: #BBF7D0;
}
.shr-kpi-card.accent-pnl-positive::before { background: #10B981; }
.shr-kpi-card.accent-pnl-negative {
  background: #FEF2F2;
  border-color: #FECACA;
}
.shr-kpi-card.accent-pnl-negative::before { background: #EF4444; }

.shr-kpi-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shr-kpi-label i {
  font-size: 11.5px;
}

.shr-kpi-val,
.shr-kpi-value {
  font-size: 16px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 6px;
  letter-spacing: -0.35px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-feature-settings: "tnum";
}

.shr-kpi-value.text-dark { color: #0F172A; }
.shr-kpi-value.text-blue { color: #2563EB; }
.shr-kpi-value.text-gold { color: #B45309; }
.shr-kpi-value.text-emerald { color: #059669; }
.shr-kpi-value.text-rose { color: #DC2626; }

.shr-kpi-sub {
  font-size: 11px;
  color: #64748B;
  line-height: 1.3;
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shr-kpi-sub.highlight-margin {
  color: #059669;
  font-weight: 700;
}

/* Badge Status */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-status.available {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.badge-status.sold {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.badge-status.booked {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

/* Social Share Buttons */
.btn-social-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-share-wa {
  background: #25D366;
  color: #FFFFFF;
  border: none;
}
.btn-share-wa:hover {
  background: #1EBE5D;
  color: #FFFFFF;
}

.btn-share-fb {
  background: #1877F2;
  color: #FFFFFF;
  border: none;
}
.btn-share-fb:hover {
  background: #0E65D9;
  color: #FFFFFF;
}

.btn-share-x {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
}
.btn-share-x:hover {
  background: #020617;
  color: #FFFFFF;
}

.btn-share-copy {
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #CBD5E1;
}
.btn-share-copy:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Quota Progress Bar */
.quota-progress-track {
  width: 100%;
  height: 8px;
  background: #F1F5F9;
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 6px;
}

.quota-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #D97706, #F59E0B);
  border-radius: 9999px;
  transition: width 0.4s ease;
}

/* ============================================================
   FOOTER STYLES (DESKTOP)
   ============================================================ */
.footer-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

/* ============================================================
   SOLO CAR CENTER — COMPREHENSIVE MOBILE CSS
   Covers ALL pages at <= 768px
   Mobile-first, app-like, clean and usable
   ============================================================ */

/* ————————————————————————————
   BASE RESET FOR MOBILE
———————————————————————————— */
@media (max-width: 768px) {
  * {
    box-sizing: border-box;
  }

  /* Prevent horizontal overflow on the entire page */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .app-container {
    padding-bottom: 64px !important;
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  /* ————————————————————————————
     NAVBAR
  ———————————————————————————— */
  .navbar-sticky {
    height: 54px !important;
    padding: 0 !important;
  }
  .nav-inner {
    height: 54px !important;
    padding: 0 12px !important;
    max-width: 100% !important;
  }
  .brand-logo-wrap img {
    height: 36px !important;
    max-width: 140px !important;
  }
  .nav-links-desktop {
    display: none !important;
  }
  .nav-auth-desktop-only,
  .nav-portals-desktop {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    font-size: 16px;
    color: #0F172A;
    cursor: pointer;
  }

  /* ————————————————————————————
     MOBILE BOTTOM NAV BAR
  ———————————————————————————— */
  .mobile-bottom-bar {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    z-index: 999 !important;
    height: 60px !important;
    padding: 0 !important;
    box-shadow: 0 -4px 16px rgba(15,23,42,0.08) !important;
  }

  .mobile-bottom-item {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    color: #94A3B8 !important;
    cursor: pointer !important;
    padding: 6px 0 !important;
    border: none !important;
    background: none !important;
    transition: color 0.15s !important;
    min-height: 44px !important;
  }
  .mobile-bottom-item i {
    font-size: 18px !important;
  }
  .mobile-bottom-item.active,
  .mobile-bottom-item:focus {
    color: #D97706 !important;
  }

  /* ————————————————————————————
     AD BANNER TOP
  ———————————————————————————— */
  #ad-header-top {
    padding: 5px 10px !important;
    font-size: 11px !important;
  }
  #ad-header-top a {
    gap: 6px !important;
    flex-wrap: nowrap !important;
    overflow: hidden !important;
  }
  #ad-header-title {
    font-size: 11px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 55vw !important;
  }
  #ad-header-img {
    height: 20px !important;
    max-width: 20px !important;
  }

  /* ————————————————————————————
     HOME HERO SECTION
  ———————————————————————————— */
  .home-hero-compact {
    padding: 12px 12px 10px !important;
    background: linear-gradient(180deg, #FFFBF0 0%, #FFFFFF 100%) !important;
  }
  .home-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }
  .home-hero-col-main {
    width: 100% !important;
    min-width: 0 !important;
  }
  .home-hero-banner-col {
    order: -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 2px !important;
  }
  .home-hero-banner-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 6px 18px rgba(2, 65, 163, 0.16) !important;
    aspect-ratio: 16 / 9 !important;
    max-height: none !important;
  }
  .home-hero-banner-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .home-hero-desc {
    display: none !important;
  }
  .home-hero-trust-row {
    display: none !important;
  }
  .home-hero-cta-group {
    display: none !important;
  }
  .home-hero-search-filter-wrap {
    border-top: none !important;
    padding-top: 0 !important;
  }
  .home-hero-badge {
    font-size: 10.5px !important;
    padding: 4px 10px !important;
    margin-bottom: 8px !important;
  }
  .home-hero-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    margin-bottom: 10px !important;
  }

  /* Search bar */
  .home-unified-search {
    margin-bottom: 10px !important;
    border-radius: 10px !important;
  }
  .home-unified-search input {
    font-size: 13px !important;
    padding: 10px 36px 10px 36px !important;
  }

  /* Mobile Filter Dropdown Switcher */
  .filter-dropdown-chevron {
    display: inline-block !important;
  }
  .filter-segment-btn.dropdown-open .filter-dropdown-chevron {
    transform: rotate(180deg) !important;
    color: #D97706 !important;
  }
  .filter-segment-btn.dropdown-open {
    background: #FFFFFF !important;
    color: #B45309 !important;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.2) !important;
    border: 1px solid #FDE68A !important;
  }

  /* When closed on mobile, hide the strips */
  .home-categories-strip:not(.mobile-dropdown-open),
  .home-brands-strip:not(.mobile-dropdown-open) {
    display: none !important;
  }

  /* When open as animated dropdown card */
  .home-categories-strip.mobile-dropdown-open,
  .home-brands-strip.mobile-dropdown-open {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 7px !important;
    background: #FFFFFF !important;
    border: 1.5px solid #CBD5E1 !important;
    border-radius: 14px !important;
    padding: 10px !important;
    margin-top: 8px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.12), 0 3px 8px -2px rgba(15, 23, 42, 0.06) !important;
    overflow: visible !important;
    white-space: normal !important;
    animation: mobileDropdownSlideDown 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }

  /* Options inside mobile dropdown */
  .home-categories-strip.mobile-dropdown-open .home-tab-pill,
  .home-brands-strip.mobile-dropdown-open .home-brand-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: 100% !important;
    height: auto !important;
    min-height: 38px !important;
    box-sizing: border-box !important;
    padding: 8.5px 11px !important;
    border-radius: 9px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-align: left !important;
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
    color: #1E293B !important;
    white-space: normal !important;
    flex-shrink: 1 !important;
    transition: all 0.18s ease !important;
    animation: mobileOptionPop 0.24s cubic-bezier(0.16, 1, 0.3, 1) backwards !important;
  }

  .home-categories-strip.mobile-dropdown-open .home-tab-pill:nth-child(1),
  .home-brands-strip.mobile-dropdown-open .home-brand-pill:nth-child(1) { animation-delay: 0.02s; }
  .home-categories-strip.mobile-dropdown-open .home-tab-pill:nth-child(2),
  .home-brands-strip.mobile-dropdown-open .home-brand-pill:nth-child(2) { animation-delay: 0.04s; }
  .home-categories-strip.mobile-dropdown-open .home-tab-pill:nth-child(3),
  .home-brands-strip.mobile-dropdown-open .home-brand-pill:nth-child(3) { animation-delay: 0.06s; }
  .home-categories-strip.mobile-dropdown-open .home-tab-pill:nth-child(4),
  .home-brands-strip.mobile-dropdown-open .home-brand-pill:nth-child(4) { animation-delay: 0.08s; }
  .home-categories-strip.mobile-dropdown-open .home-tab-pill:nth-child(5),
  .home-brands-strip.mobile-dropdown-open .home-brand-pill:nth-child(5) { animation-delay: 0.10s; }
  .home-categories-strip.mobile-dropdown-open .home-tab-pill:nth-child(6),
  .home-brands-strip.mobile-dropdown-open .home-brand-pill:nth-child(6) { animation-delay: 0.12s; }
  .home-categories-strip.mobile-dropdown-open .home-tab-pill:nth-child(7),
  .home-brands-strip.mobile-dropdown-open .home-brand-pill:nth-child(7) { animation-delay: 0.14s; }
  .home-brands-strip.mobile-dropdown-open .home-brand-pill:nth-child(8) { animation-delay: 0.16s; }

  /* Active state inside dropdown */
  .home-categories-strip.mobile-dropdown-open .home-tab-pill.active,
  .home-brands-strip.mobile-dropdown-open .home-brand-pill.active {
    background: linear-gradient(135deg, #D97706, #B45309) !important;
    color: #FFFFFF !important;
    border-color: #B45309 !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.28) !important;
  }
  .home-categories-strip.mobile-dropdown-open .home-tab-pill.active i,
  .home-brands-strip.mobile-dropdown-open .home-brand-pill.active i {
    color: #FFFFFF !important;
  }

  /* ————————————————————————————
     SECTION WRAPPERS & PADDING
  ———————————————————————————— */
  .section-wrapper {
    padding: 12px 10px 24px !important;
  }

  /* Meta bar (count + sort) */
  .section-wrapper > div:first-child {
    flex-wrap: wrap !important;
    gap: 6px !important;
  }
  .sort-select-compact {
    font-size: 12px !important;
    padding: 6px 8px !important;
  }

  /* ————————————————————————————
     VEHICLE GRID & CARDS
  ———————————————————————————— */
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .vehicle-card {
    border-radius: 12px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06) !important;
  }
  .vehicle-card:hover {
    transform: none !important;
  }

  .card-img-wrap {
    height: 110px !important;
    background: linear-gradient(135deg, #E2E8F0, #CBD5E1) !important;
    position: relative !important;
    overflow: hidden !important;
  }
  .card-img-wrap img,
  .card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .card-badges {
    top: 4px !important;
    left: 4px !important;
    gap: 2px !important;
  }
  .card-badges .badge-status {
    font-size: 8px !important;
    padding: 2px 5px !important;
    letter-spacing: 0 !important;
  }
  .card-badges .badge-grade {
    font-size: 8px !important;
    padding: 2px 5px !important;
  }

  .btn-card-fav {
    top: 4px !important;
    right: 4px !important;
    width: 26px !important;
    height: 26px !important;
    font-size: 10px !important;
  }

  .card-body {
    padding: 7px 8px 10px !important;
  }
  .card-category-brand {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }
  .card-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    margin-bottom: 4px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  .card-specs-strip {
    gap: 2px 5px !important;
    margin-bottom: 5px !important;
    padding-bottom: 5px !important;
  }
  .spec-pill {
    font-size: 9px !important;
    gap: 2px !important;
  }
  .spec-pill i {
    font-size: 9px !important;
  }

  .card-price-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1px !important;
    margin-bottom: 6px !important;
  }
  .price-main {
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #B45309 !important;
  }
  .price-installment {
    font-size: 9px !important;
  }

  .card-actions-grid {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }
  .card-actions-grid button {
    padding: 7px 4px !important;
    font-size: 11px !important;
    height: 32px !important;
    border-radius: 7px !important;
  }
  .card-actions-grid button:not(:first-child) {
    display: none !important;
  }
  .card-actions-grid button:first-child {
    background: #0F172A !important;
    color: #FFFFFF !important;
    border-color: #0F172A !important;
    font-weight: 700 !important;
  }

  /* ————————————————————————————
     VEHICLE DETAIL PAGE
  ———————————————————————————— */
  .detail-gallery-main {
    height: 220px !important;
    border-radius: 10px !important;
  }
  .detail-angles-bar {
    overflow-x: auto !important;
    scrollbar-width: none !important;
    gap: 6px !important;
  }
  .detail-angles-bar::-webkit-scrollbar { display: none !important; }

  /* ————————————————————————————
     MODALS — BOTTOM SHEET STYLE
  ———————————————————————————— */
  .modal-overlay {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .modal-content-box {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 88vh !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    transform: none !important;
  }
  .modal-header {
    padding: 14px 16px !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #FFFFFF !important;
  }
  .modal-header h2, .modal-header h3 {
    font-size: 15px !important;
  }
  .modal-body {
    padding: 12px 14px 24px !important;
  }
  /* Modal inner grids (1fr 1fr form fields) already handled by JS */

  /* ————————————————————————————
     SUBPAGE HERO BANNERS
  ———————————————————————————— */
  .subpage-hero {
    padding: 24px 14px 28px !important;
    margin-bottom: 0 !important;
  }
  .subpage-hero h1 {
    font-size: 20px !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
  }
  .subpage-hero p {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  /* ————————————————————————————
     SHOWROOM PORTAL
  ———————————————————————————— */
  #view-showroom-portal {
    padding: 12px 0 70px !important;
  }
  #view-showroom-portal .section-wrapper {
    padding: 0 10px !important;
  }

  /* Portal header card */
  #view-showroom-portal > div > div:first-child {
    padding: 14px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
  }

  /* Showroom logo */
  #shr-header-logo-wrap {
    width: 52px !important;
    height: 52px !important;
    border-radius: 10px !important;
  }

  /* Title in header */
  #shr-header-title {
    font-size: 17px !important;
    letter-spacing: 0 !important;
  }
  #shr-header-tagline {
    font-size: 12px !important;
  }
  #shr-header-desc {
    font-size: 11px !important;
  }

  /* Domain/link bar in portal */
  #shr-domain-link {
    font-size: 12px !important;
  }

  /* Portal CTA buttons — stack horizontally, 2 per row */
  #view-showroom-portal .gold-btn,
  #view-showroom-portal .btn-outline,
  #view-showroom-portal .btn {
    padding: 9px 10px !important;
    font-size: 12px !important;
  }

  /* Tab nav pills */
  .shr-tabs-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding-bottom: 2px !important;
    gap: 6px !important;
    margin-bottom: 14px !important;
  }
  .shr-tabs-nav::-webkit-scrollbar { display: none !important; }

  .shr-nav-pill {
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
    gap: 5px !important;
  }

  /* KPI Cards */
  .shr-kpi-card {
    padding: 10px 12px !important;
    min-height: 82px !important;
  }
  .shr-kpi-val, .shr-kpi-value {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .shr-kpi-title, .shr-kpi-label {
    font-size: 9.5px !important;
    margin-bottom: 4px !important;
  }
  .shr-kpi-sub {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
  }

  /* Stock table wrapper */
  #shr-stock-grid-wrap .table-responsive,
  #shr-stock-grid-wrap {
    display: none !important;
  }
  #shr-stock-mobile-cards {
    display: block !important;
  }

  /* ————————————————————————————
     SHOWROOM PORTAL OVERVIEW CARDS
  ———————————————————————————— */
  /* Recent cars preview in overview tab */
  #shr-recent-cars-preview > div {
    padding: 8px 0 !important;
  }
  #shr-recent-cars-preview img {
    width: 42px !important;
    height: 30px !important;
  }

  /* ————————————————————————————
     TRUST STRIP & SCORE CARDS
  ———————————————————————————— */
  .trust-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .score-items-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  /* ————————————————————————————
     LEASING PAGE
  ———————————————————————————— */
  .leasing-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .leasing-section {
    padding: 24px 14px !important;
  }

  /* Sim calculator */
  .sim-calculator-box {
    padding: 16px !important;
    margin-top: 16px !important;
  }
  .sim-calculator-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* ————————————————————————————
     FORUM
  ———————————————————————————— */
  .forum-thread-card {
    padding: 14px !important;
  }
  .forum-thread-title {
    font-size: 14px !important;
  }
  .forum-meta-row {
    font-size: 11px !important;
  }

  /* ————————————————————————————
     BOOKING VIEW
  ———————————————————————————— */
  #view-bookings .section-wrapper {
    padding: 12px 10px !important;
  }

  /* ————————————————————————————
     CATALOG VIEW
  ———————————————————————————— */
  #view-catalog .section-wrapper {
    padding: 10px 10px !important;
  }
  /* Sidebar hidden on mobile */
  #catalog-filter-sidebar,
  .filter-sidebar {
    display: none !important;
  }
  /* Catalog grid goes full width */
  #view-catalog .catalog-layout {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .catalog-main {
    min-width: 0 !important;
  }

  /* ————————————————————————————
     FOOTER
  ———————————————————————————— */
  footer,
  .footer-wrapper,
  .site-footer,
  .app-footer {
    padding: 24px 14px 76px !important;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 22px 14px !important;
    margin-bottom: 24px !important;
  }
  .footer-col-brand {
    grid-column: 1 / -1 !important;
  }
  .footer-col-nav {
    grid-column: 1 !important;
  }
  .footer-col-types {
    grid-column: 2 !important;
  }
  .footer-col-contact {
    grid-column: 1 / -1 !important;
    margin-top: 4px;
    padding-top: 14px;
    border-top: 1px dashed var(--border-medium);
  }
  footer h3, footer h4 {
    font-size: 13.5px !important;
    margin-bottom: 12px !important;
  }
  footer p, footer a, footer li {
    font-size: 12px !important;
  }
  .footer-col-nav ul,
  .footer-col-types ul {
    gap: 8px !important;
  }
  .footer-bottom-bar {
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center !important;
    font-size: 11px !important;
    padding-top: 16px !important;
  }

  /* ————————————————————————————
     GENERIC GRID & FLEX HELPERS
  ———————————————————————————— */
  /* Any flex with large gap that might overflow */
  [style*="gap:36px"],
  [style*="gap: 36px"],
  [style*="gap:40px"],
  [style*="gap: 40px"] {
    gap: 12px !important;
  }

  /* Budget cards */
  .budget-cards-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  .budget-card {
    padding: 14px !important;
  }
  .budget-card-title {
    font-size: 14px !important;
  }

  /* Promo banners */
  .promo-banners-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* Step journey cards */
  [style*="minmax(240px"] {
    grid-template-columns: 1fr !important;
  }
  [style*="minmax(220px"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ————————————————————————————
     DRAWER / SIDE NAV
  ———————————————————————————— */
  .mobile-drawer-panel {
    width: 82vw !important;
    max-width: 300px !important;
  }
  .mobile-drawer-link {
    padding: 11px 16px !important;
    font-size: 14px !important;
  }

  /* ————————————————————————————
     TOAST NOTIFICATIONS
  ———————————————————————————— */
  .toast-container,
  #toast-container {
    bottom: 70px !important;
    right: 10px !important;
    left: 10px !important;
    max-width: none !important;
  }

  /* ————————————————————————————
     QUICK STATS STRIP
  ———————————————————————————— */
  .quick-stats-strip {
    gap: 6px !important;
    margin-top: 10px !important;
  }
  .stat-pill {
    font-size: 11px !important;
    padding: 6px 12px !important;
  }

  /* ————————————————————————————
     KEUNGGULAN PAGE
  ———————————————————————————— */
  /* 4 step cards */
  [style*="minmax(240px, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  /* 5 jaminan cards */
  [style*="minmax(220px, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* ————————————————————————————
     USER PROFILE / ACCOUNT PAGE
  ———————————————————————————— */
  #view-profile .section-wrapper,
  #view-favorites .section-wrapper,
  #view-account .section-wrapper {
    padding: 12px 10px !important;
  }

  /* ————————————————————————————
     SPK & INVOICE MODALS
  ———————————————————————————— */
  .modal-body label {
    font-size: 12px !important;
    margin-bottom: 3px !important;
  }
  .modal-body input,
  .modal-body select,
  .modal-body textarea {
    font-size: 13px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
  }
  .modal-body .gold-btn,
  .modal-body .btn {
    padding: 10px 16px !important;
    font-size: 13px !important;
  }

  /* ————————————————————————————
     DATA TABLES (non-stock ones)
  ———————————————————————————— */
  .data-table {
    font-size: 11px !important;
  }
  .data-table th,
  .data-table td {
    padding: 7px 6px !important;
    white-space: nowrap !important;
  }

  /* ————————————————————————————
     SHOWROOM PUBLIC VIEW (MOBILE REFINEMENTS)
  ———————————————————————————— */
  #view-showroom-public {
    padding: 16px 0 60px !important;
  }
  #view-showroom-public .section-wrapper {
    padding: 0 10px !important;
  }
  #shr-public-hero {
    border-radius: 16px !important;
    margin-bottom: 20px !important;
  }
  #shr-public-banner-wrap {
    height: 140px !important;
  }
  #shr-public-hero > div:nth-child(2) {
    padding: 0 14px 18px !important;
  }
  #shr-public-logo {
    width: 72px !important;
    height: 72px !important;
    border-radius: 16px !important;
    margin-top: -36px !important;
    border-width: 3px !important;
  }
  #shr-public-logo-icon {
    font-size: 28px !important;
  }
  #shr-public-name {
    font-size: 19px !important;
  }
  #shr-public-tagline {
    font-size: 12.5px !important;
  }
  #shr-public-desc {
    font-size: 12px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
  }
  #shr-public-bank-strip {
    padding: 10px 14px !important;
    font-size: 11px !important;
  }
  .shr-public-search-wrap {
    width: 100% !important;
  }
  #shr-public-search {
    width: 100% !important;
  }
  #shr-public-cars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* ————————————————————————————
     LEASING PORTAL
  ———————————————————————————— */
  #view-leasing-portal .subpage-hero {
    padding: 20px 14px 24px !important;
    text-align: left !important;
    border-bottom: none !important;
    margin-bottom: 0 !important;
  }
  #view-leasing-portal .section-wrapper {
    padding: 12px 10px !important;
  }

  /* ————————————————————————————
     TABLET ADJUSTMENT (480-768px)
  ———————————————————————————— */
}

/* Very small phones (< 380px) */
@media (max-width: 380px) {
  .vehicle-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .card-img-wrap {
    height: 95px !important;
  }
  .card-title {
    font-size: 11px !important;
  }
  .price-main {
    font-size: 12px !important;
  }
  .home-hero-title {
    font-size: 17px !important;
  }
  .home-brand-pill,
  .home-tab-pill {
    font-size: 11.5px !important;
    padding: 6px 12px !important;
    height: 32px !important;
  }
  .shr-nav-pill {
    font-size: 10px !important;
    padding: 7px 10px !important;
  }
  .budget-cards-grid {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   EXPLICIT CORE RESPONSIVE UTILITIES & GRID OVERRIDES
   ========================================================================== */
.desktop-only {
  display: flex !important;
}
.mobile-only {
  display: none !important;
}
.detail-main-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.nav-auth-desktop-only {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
  .mobile-only {
    display: block !important;
  }
  .detail-main-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    margin-bottom: 24px !important;
  }
  .nav-auth-desktop-only {
    display: none !important;
  }
  .shr-stock-table-wrap {
    display: none !important;
  }
  #shr-stock-mobile-cards {
    display: block !important;
  }
}

/* ==========================================================================
   POLISHED MOBILE REFINEMENTS (AUTOMOTIVE LUXURY UI)
   ========================================================================== */
.btn-card-unit {
  width: 100%;
  padding: 8px 0;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15,23,42,0.12);
  transition: all 0.2s;
}
.btn-card-unit:hover {
  background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
  color: #FFFFFF;
}
.card-plate-tag {
  font-size: 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  padding: 2px 6px;
  border-radius: 5px;
  color: #475569;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.btn-nav-login {
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* SHOWROOM PORTAL DEDICATED TOPBAR */
.shr-portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: #0F172A;
  color: #F8FAFC;
  padding: 10px 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.shr-portal-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.shr-portal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.shr-portal-back-btn:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}
.shr-portal-topbar-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
}
.shr-portal-storefront-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F59E0B;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}
.shr-portal-storefront-btn:hover {
  background: rgba(245, 158, 11, 0.22);
  color: #FBBF24;
}
.shr-portal-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}
.shr-portal-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.06);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.shr-portal-role-tag {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #0F172A;
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.shr-portal-btn-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #CBD5E1;
  cursor: pointer;
  transition: all 0.2s ease;
}
.shr-portal-btn-refresh:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
}
.shr-portal-logout-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EF4444;
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}
.shr-portal-logout-btn:hover {
  background: #DC2626;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.45);
}

@media (max-width: 768px) {
  .shr-portal-topbar {
    padding: 10px 12px;
    border-radius: 12px;
    gap: 10px;
  }
  .shr-portal-topbar-left, .shr-portal-topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .shr-portal-topbar-divider {
    display: none;
  }
  .shr-portal-back-btn, .shr-portal-storefront-btn {
    font-size: 11px;
    padding: 5px 8px;
  }
  .shr-portal-user-badge {
    font-size: 11px;
    padding: 4px 8px;
  }
  .shr-portal-logout-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* Showroom Portal Luxury Responsive */
.shr-header-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px -4px rgba(15,23,42,0.06);
}
.shr-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}
.shr-header-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex: 1;
  min-width: 320px;
}
.shr-logo-box {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  border: 2px solid #E2E8F0;
  background: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.shr-header-meta {
  flex: 1;
}
.shr-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.shr-badge-role {
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: #F59E0B;
  font-weight: 800;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.shr-badge-pkg {
  background: #0F172A;
  color: #F8FAFC;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
}
.shr-title {
  font-size: 26px;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 4px 0;
  letter-spacing: -0.5px;
}
.shr-tagline {
  color: #D97706;
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 4px 0;
}
.shr-desc {
  color: #64748B;
  font-size: 12.5px;
  margin: 0 0 14px 0;
  line-height: 1.5;
}
.shr-header-cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 290px;
}
.btn-cta-exp {
  background: #FAF5FF;
  color: #6B21A8;
  border: 1px solid #D8B4FE;
  font-weight: 700;
}
/* MODERN DOMAIN & STOREFRONT SHARE BAR */
.shr-domain-bar {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}
.shr-domain-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #2563EB;
  min-width: 0;
}
.shr-domain-info a {
  color: #2563EB;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  word-break: break-all;
  transition: color 0.15s ease;
}
.shr-domain-info a:hover {
  color: #1D4ED8;
  text-decoration: underline;
}
.shr-domain-btns {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.shr-domain-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  line-height: 1.2;
}
.shr-domain-btn.btn-copy {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #334155;
}
.shr-domain-btn.btn-copy:hover {
  background: #F1F5F9;
  border-color: #94A3B8;
  color: #0F172A;
  transform: translateY(-1px);
}
.shr-domain-btn.btn-copy.copied {
  background: #ECFDF5;
  border-color: #10B981;
  color: #065F46;
}
.shr-domain-btn.btn-storefront {
  background: #0F172A;
  border: 1.5px solid #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.shr-domain-btn.btn-storefront:hover {
  background: #1E293B;
  border-color: #1E293B;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}
.shr-domain-btn.btn-share-wa {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: none;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
}
.shr-domain-btn.btn-share-wa:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.38);
}

/* ==========================================================================
   TABLET & SMALL SCREEN OVERRIDES (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-inner {
    height: 60px !important;
    padding: 0 16px !important;
  }
  .brand-logo-wrap img {
    height: 38px !important;
    max-width: 160px !important;
  }
  .nav-links-desktop,
  .nav-portals-desktop {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
}

/* ==========================================================================
   MOBILE SCREEN STRICT OVERRIDES (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* Layout Padding - Room for sticky bottom nav */
  .app-container {
    padding-bottom: 84px !important;
  }
  #view-showroom-portal {
    padding: 10px 0 130px !important;
  }
  .section-wrapper {
    padding: 10px 10px 40px !important;
  }

  /* Compact Navbar */
  .navbar-sticky {
    height: 52px !important;
  }
  .nav-inner {
    height: 52px !important;
  }
  .brand-logo-wrap img {
    height: 32px !important;
  }
  .btn-nav-login {
    padding: 5px 12px !important;
    font-size: 11.5px !important;
  }

  /* Compact Home Hero */
  .home-hero-compact {
    padding: 10px 12px 10px !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid #F1F5F9 !important;
  }
  .home-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
  }
  .home-hero-col-main {
    width: 100% !important;
    min-width: 0 !important;
  }
  .home-hero-banner-col {
    order: -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 2px !important;
  }
  .home-hero-banner-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    border-radius: 14px !important;
    border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
    box-shadow: 0 6px 18px rgba(2, 65, 163, 0.16) !important;
    aspect-ratio: 16 / 9 !important;
    max-height: none !important;
  }
  .home-hero-banner-img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .home-hero-desc {
    display: none !important;
  }
  .home-hero-trust-row {
    display: none !important;
  }
  .home-hero-cta-group {
    display: none !important;
  }
  .home-hero-search-filter-wrap {
    border-top: none !important;
    padding-top: 0 !important;
  }
  .home-hero-badge {
    padding: 2px 8px !important;
    font-size: 9.5px !important;
    margin-bottom: 5px !important;
  }
  .home-hero-title {
    font-family: var(--font-sans) !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    letter-spacing: -0.3px !important;
    text-transform: none !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
  }
  .home-unified-search {
    height: 38px !important;
    border-radius: 99px !important;
    border: 1.5px solid #CBD5E1 !important;
    background: #F8FAFC !important;
    padding: 0 12px !important;
    margin-bottom: 6px !important;
  }
  .home-unified-search input {
    font-size: 12px !important;
  }
  .home-brands-strip:not(.mobile-dropdown-open),
  .home-categories-strip:not(.mobile-dropdown-open) {
    display: none !important;
  }
  .home-filter-segmented-bar {
    width: 100% !important;
    max-width: 100% !important;
    gap: 6px !important;
    padding: 3px !important;
    margin-bottom: 8px !important;
  }
  .filter-segment-btn {
    padding: 7px 10px !important;
    font-size: 11.5px !important;
    gap: 5px !important;
  }
  .filter-reset-icon-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 11px !important;
  }

  /* Showroom Header on Mobile */
  .shr-header-card {
    padding: 12px 14px !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
  }
  .shr-header-main {
    min-width: 0 !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .shr-logo-box {
    width: 46px !important;
    height: 46px !important;
    border-radius: 10px !important;
  }
  .shr-title {
    font-size: 15.5px !important;
    margin-bottom: 2px !important;
  }
  .shr-tagline {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }
  .shr-desc {
    font-size: 10px !important;
    margin-bottom: 0 !important;
  }
  .shr-badges-row {
    gap: 4px !important;
    margin-bottom: 4px !important;
  }
  .shr-badge-role, .shr-badge-pkg {
    font-size: 9.5px !important;
    padding: 2px 6px !important;
  }

  /* 4 Operations CTA buttons in ergonomic 2x2 grid on mobile */
  .shr-header-cta-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin-top: 12px !important;
  }
  .shr-header-cta-group button {
    padding: 8px 6px !important;
    font-size: 11.5px !important;
    height: 40px !important;
    border-radius: 9px !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
  .btn-cta-upload {
    background: linear-gradient(135deg, #D97706, #F59E0B) !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 800 !important;
  }
  .btn-cta-spk {
    background: linear-gradient(135deg, #1E3A8A, #2563EB) !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 800 !important;
  }
  .btn-cta-inv {
    background: linear-gradient(135deg, #065F46, #059669) !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 800 !important;
  }
  .btn-cta-exp {
    background: #FFFFFF !important;
    color: #6B21A8 !important;
    border: 1.5px solid #C084FC !important;
    font-weight: 800 !important;
  }

  /* Domain Bar on Mobile */
  .shr-domain-bar {
    padding: 10px 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin-top: 10px !important;
    border-radius: 10px !important;
  }
  .shr-domain-info {
    font-size: 11.5px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .shr-domain-btns {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1.15fr !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .shr-domain-btn {
    padding: 7px 6px !important;
    font-size: 11px !important;
    justify-content: center !important;
    width: 100% !important;
  }

  /* KPI Cards numbers fit cleanly */
  .shr-kpi-card {
    padding: 10px 12px !important;
    min-height: 82px !important;
  }
  .shr-kpi-val, .shr-kpi-value {
    font-size: 13.5px !important;
    font-weight: 800 !important;
    letter-spacing: -0.2px !important;
    margin-bottom: 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .shr-kpi-label {
    font-size: 9.5px !important;
    margin-bottom: 4px !important;
  }
  .shr-kpi-sub {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
  }

  /* Sponsor Ad banner on Mobile */
  #ad-header-top {
    height: 32px !important;
    padding: 4px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  #ad-header-top a {
    gap: 6px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
  #ad-header-title {
    font-size: 10.5px !important;
    max-width: 48vw !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}


/* ==========================================================================
   MODERN CATALOG HEADER & FILTERS
   ========================================================================== */
.catalog-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
}
.catalog-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 6px;
  border: 1px solid #FDE68A;
}
.catalog-title {
  font-family: var(--font-sans) !important;
  font-size: 26px;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.4px;
  margin: 0 0 4px 0;
  line-height: 1.25;
}
.catalog-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin: 0;
}
.catalog-sort-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.catalog-sort-select {
  padding: 8px 12px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  outline: none;
}

/* ==========================================================================
   SHOWROOM BILLING & SUBSCRIPTION HUB
   ========================================================================== */
.shr-billing-hub {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(15,23,42,0.04);
}
.shr-billing-hub-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.shr-billing-info {
  flex: 1;
  min-width: 280px;
}
.shr-billing-badge-row {
  margin-bottom: 6px;
}
.shr-billing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #B45309;
  background: #FEF3C7;
  padding: 3px 10px;
  border-radius: 6px;
}
.shr-billing-title {
  font-family: var(--font-sans) !important;
  font-size: 18px;
  font-weight: 800;
  color: #0F172A;
  margin: 4px 0 8px 0;
  line-height: 1.35;
}
.shr-billing-meter-box {
  max-width: 440px;
}
.shr-quota-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 4px;
}
.quota-progress-track {
  height: 8px;
  background: #E2E8F0;
  border-radius: 99px;
  overflow: hidden;
}
.quota-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #D97706, #F59E0B);
  border-radius: 99px;
  transition: width 0.3s ease;
}
.shr-billing-status-desc {
  font-size: 12.5px;
  color: #64748B;
  margin-top: 8px;
}
.shr-billing-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Charts & Previews */
.shr-charts-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.shr-chart-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.shr-chart-card-header {
  margin-bottom: 14px;
}
.shr-chart-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
}
.shr-chart-card-sub {
  font-size: 12px;
  color: #64748B;
  margin: 0;
}
.shr-chart-canvas-box {
  position: relative;
  height: 260px;
  width: 100%;
}
.shr-overview-previews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.shr-preview-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.shr-preview-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

/* Mobile Data Cards */
.mobile-data-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(15,23,42,0.04);
}

@media (max-width: 768px) {
  .catalog-header-modern {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
  }
  .catalog-title {
    font-size: 18px !important;
    line-height: 1.3 !important;
  }
  .catalog-sort-box {
    width: 100% !important;
    justify-content: space-between !important;
  }
  .catalog-sort-select {
    flex: 1 !important;
  }
  .shr-billing-hub {
    padding: 14px 16px !important;
    margin-bottom: 16px !important;
  }
  .shr-billing-hub-content {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 14px !important;
  }
  .shr-billing-info {
    width: 100% !important;
    min-width: 0 !important;
  }
  .shr-billing-title {
    font-size: 14.5px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }
  .shr-billing-meter-box {
    max-width: 100% !important;
    width: 100% !important;
  }
  .shr-quota-labels {
    white-space: nowrap !important;
    font-size: 11px !important;
    gap: 8px !important;
  }
  .shr-billing-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .shr-billing-actions button {
    width: 100% !important;
    padding: 10px 6px !important;
    font-size: 11.5px !important;
    justify-content: center !important;
  }
  .shr-charts-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .shr-chart-canvas-box {
    height: 220px !important;
  }
  .shr-overview-previews-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  #shr-stock-grid-wrap .table-responsive,
  #shr-stock-grid-wrap {
    display: none !important;
  }
  #shr-stock-mobile-cards,
  #shr-spk-mobile-cards,
  #shr-invoices-mobile-cards,
  #shr-expenses-mobile-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}

/* ==========================================================================
   SHOWROOM STOCK & ASSET VALUATION UPGRADE (LEGA, INTUITIF & MUDAH DIGUNAKAN)
   ========================================================================== */
.shr-inventory-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: inherit;
  font-size: 13px;
}

.shr-inventory-table thead tr {
  background: #F1F5F9;
}

.shr-inventory-table th {
  padding: 13px 16px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #475569;
  border-bottom: 2px solid #CBD5E1;
  text-align: left;
}

.shr-inventory-table tbody tr {
  background: #FFFFFF;
  transition: background 0.15s ease, box-shadow 0.15s ease;
  border-bottom: 1px solid #E2E8F0;
}

.shr-inventory-table tbody tr:hover {
  background: #F8FAFC;
}

.shr-inventory-table td {
  padding: 14px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #E2E8F0;
}

/* Inventory Grid Card View */
.shr-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.shr-car-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}

.shr-car-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.12);
  border-color: #CBD5E1;
}

/* Quick Filter Chips */
.stock-chip-btn {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.stock-chip-btn:hover {
  background: #EFF6FF;
  border-color: #93C5FD;
  color: #1E40AF;
}

.stock-chip-btn.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

@media (max-width: 900px) {
  .shr-stock-kpi-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .shr-stock-kpi-strip {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================================
   SHOWROOM EXECUTIVE TABLES & ACTION BAR (CLEAN, SPACIOUS & NON-CRAMPED)
   ========================================================================== */
.shr-header-cta-group {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}

.shr-btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  text-decoration: none;
}
.shr-btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
}
.shr-btn-cta.cta-upload {
  background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
  color: #FFFFFF;
}
.shr-btn-cta.cta-spk {
  background: linear-gradient(135deg, #1E40AF 0%, #2563EB 100%);
  color: #FFFFFF;
}
.shr-btn-cta.cta-invoice {
  background: linear-gradient(135deg, #065F46 0%, #059669 100%);
  color: #FFFFFF;
}
.shr-btn-cta.cta-expense {
  background: linear-gradient(135deg, #581C87 0%, #7C3AED 100%);
  color: #FFFFFF;
}
.shr-btn-cta.cta-calc {
  background: #FFFFFF;
  color: #0F172A;
  border: 1.5px solid #CBD5E1;
}
.shr-btn-cta.cta-calc:hover {
  border-color: #2563EB;
  color: #2563EB;
  background: #EFF6FF;
}

/* Universal Responsive Table Container */
.table-responsive {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}
.table-responsive::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.table-responsive::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Quick Action Toolbar for Tables */
.shr-table-quick-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
  background: #F8FAFC;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
}
.shr-quick-export-btn {
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.15s ease;
}
.shr-quick-export-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Unified Executive Table Styling for Expenses, SPK & Invoices */
.shr-executive-table {
  width: 100%;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: inherit;
  font-size: 12.5px;
  background: #FFFFFF;
}
.shr-executive-table thead tr {
  background: #F8FAFC;
}
.shr-executive-table th {
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #475569;
  border-bottom: 2px solid #CBD5E1;
  text-align: left;
  white-space: nowrap;
}
.shr-executive-table tbody tr {
  background: #FFFFFF;
  transition: background 0.15s ease;
  border-bottom: 1px solid #E2E8F0;
}
.shr-executive-table tbody tr:hover {
  background: #F8FAFC;
}
.shr-executive-table td {
  padding: 9px 8px;
  vertical-align: middle;
  border-bottom: 1px solid #E2E8F0;
  color: #1E293B;
  font-size: 12px;
}

.btn-expense-del {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FCA5A5;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-expense-del:hover {
  background: #DC2626;
  color: #FFFFFF;
  border-color: #DC2626;
}

/* Expense Category Badge Pills */
.exp-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.exp-cat-payroll { background: #EEF2FF; color: #4338CA; border: 1px solid #C7D2FE; }
.exp-cat-rent    { background: #FEF3C7; color: #B45309; border: 1px solid #FDE68A; }
.exp-cat-utility { background: #E0F2FE; color: #0369A1; border: 1px solid #BAE6FD; }
.exp-cat-salon   { background: #DCFCE7; color: #15803D; border: 1px solid #BBF7D0; }
.exp-cat-ads     { background: #FCE7F3; color: #BE185D; border: 1px solid #FBCFE8; }
.exp-cat-other   { background: #F1F5F9; color: #475569; border: 1px solid #CBD5E1; }

/* ==========================================================================
   SHOWROOM AUTOMOTIVE POS CASHIER STATION & CREDIT ROUTING STYLES
   ========================================================================== */

.shr-btn-cta.cta-pos {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  border: 1px solid #059669;
}
.shr-btn-cta.cta-pos:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.shr-btn-cta.cta-report {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  font-weight: 700;
  border: 1px solid #0F172A;
}
.shr-btn-cta.cta-report:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
  border-color: #F59E0B;
}

.shr-report-period-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  background: #F8FAFC;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.shr-report-period-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.shr-report-period-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  border-color: #0F172A;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.shr-report-kpi-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.shr-report-kpi-card.accent-revenue { border-left: 4px solid #059669; }
.shr-report-kpi-card.accent-cogs { border-left: 4px solid #2563EB; }
.shr-report-kpi-card.accent-gross { border-left: 4px solid #D97706; }
.shr-report-kpi-card.accent-expenses { border-left: 4px solid #7C3AED; }
.shr-report-kpi-card.accent-net-pos { border-left: 4px solid #10B981; background: #F0FDF4; }
.shr-report-kpi-card.accent-net-neg { border-left: 4px solid #EF4444; background: #FEF2F2; }

/* Filter Toolbar Box for Overview, Expenses & Reports */
.shr-filter-toolbar-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shr-filter-toolbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.shr-filter-toolbar-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shr-period-active-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.shr-filter-btn-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.shr-custom-date-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: 4px;
}

/* Compact Export & Download Grid Toolbar */
.shr-report-download-grid {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.shr-export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.shr-export-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}
.shr-export-sales-pdf { background: #0F172A; color: #FFFFFF; }
.shr-export-sales-pdf i { color: #F59E0B; }
.shr-export-sales-pdf:hover { background: #1E293B; }
.shr-export-sales-xls { background: #059669; color: #FFFFFF; }
.shr-export-sales-xls:hover { background: #047857; }
.shr-export-pnl-pdf { background: #2563EB; color: #FFFFFF; }
.shr-export-pnl-pdf:hover { background: #1D4ED8; }
.shr-export-pnl-xls { background: #7C3AED; color: #FFFFFF; }
.shr-export-pnl-xls:hover { background: #6D28D9; }

/* Automotive Sales Mobile Cards */
.shr-sales-mob-card {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.shr-sales-mob-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.shr-sales-mob-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 2px 0;
  line-height: 1.3;
}
.shr-sales-mob-plate {
  font-size: 11px;
  font-weight: 700;
  background: #F1F5F9;
  color: #334155;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}
.shr-sales-mob-inv {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}
.shr-sales-mob-cust {
  font-size: 12px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shr-sales-mob-finance {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  background: #F8FAFC;
  border-radius: 10px;
  padding: 8px 10px;
  border: 1px solid #E2E8F0;
}
.shr-sales-mob-fin-col {
  display: flex;
  flex-direction: column;
}
.shr-sales-mob-fin-lbl {
  font-size: 9.5px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
}
.shr-sales-mob-fin-val {
  font-size: 12px;
  font-weight: 800;
}
.shr-sales-mob-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed #E2E8F0;
}

/* ============================================================================
   AUTOMOTIVE POS WORKSTATION & CASHIER REGISTER STYLES
   ============================================================================ */
.pos-station-overlay {
  display: none;
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pos-station-overlay.active {
  display: flex !important;
}

.pos-workstation-box {
  width: 96vw;
  max-width: 1520px;
  height: 94vh;
  max-height: 94vh;
  background: #FFFFFF;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: posStationPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes posStationPop {
  0% { opacity: 0; transform: scale(0.97) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* TOP WORKSTATION BAR */
.pos-workstation-header {
  padding: 14px 24px;
  background: #0F172A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1E293B;
  flex-shrink: 0;
}
.pos-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pos-station-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.pos-station-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.2px;
}
.pos-live-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.pos-station-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #94A3B8;
  margin-top: 3px;
}
.pos-meta-dot {
  color: #475569;
}
.pos-stock-pill {
  background: #1E293B;
  color: #CBD5E1;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
}
.pos-close-btn {
  background: #1E293B;
  border: 1px solid #334155;
  color: #94A3B8;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.pos-close-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: #FFFFFF;
}

/* WORKSTATION 2-COLUMN SPLIT BODY */
.pos-workstation-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  overflow: hidden;
  background: #F8FAFC;
}

/* LEFT COLUMN: VEHICLE CATALOG & DOCK */
.pos-left-station {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-right: 1px solid #E2E8F0;
  background: #F8FAFC;
  overflow: hidden;
}

.pos-catalog-toolbar {
  padding: 14px 18px 10px;
  background: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.pos-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.pos-search-icon {
  position: absolute;
  left: 12px;
  color: #94A3B8;
  font-size: 13px;
}
.pos-search-wrap input {
  width: 100%;
  padding: 9px 36px 9px 36px;
  font-size: 12.5px;
  border: 1.5px solid #CBD5E1;
  border-radius: 9px;
  background: #F8FAFC;
  color: #0F172A;
  outline: none;
  transition: all 0.15s;
}
.pos-search-wrap input:focus {
  background: #FFFFFF;
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.pos-search-clear-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
}

.pos-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.pos-chips-scroll::-webkit-scrollbar {
  display: none;
}
.pos-filter-chip {
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  background: #F1F5F9;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.pos-filter-chip:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.pos-filter-chip.active {
  background: #0F172A;
  border-color: #0F172A;
  color: #FFFFFF;
}

/* VEHICLE CARDS GRID */
.pos-catalog-grid {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  align-content: start;
}

.pos-grid-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 200px;
}
.pos-grid-card:hover {
  border-color: #2563EB;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.pos-grid-card.active {
  border-color: #10B981;
  background: #F0FDF4;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3), 0 8px 20px rgba(16, 185, 129, 0.15);
}

.pos-card-media {
  position: relative;
  width: 100%;
  height: 115px;
  min-height: 115px;
  flex-shrink: 0;
  background: #E2E8F0;
  overflow: hidden;
}
.pos-card-img-el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.pos-grid-card:hover .pos-card-img-el {
  transform: scale(1.04);
}
.pos-card-plate-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.9);
  color: #FFFFFF;
  font-family: monospace;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}
.pos-card-trans-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #0F172A;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}
.pos-card-active-check {
  position: absolute;
  inset: 0;
  background: rgba(16, 185, 129, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #10B981;
  pointer-events: none;
}

.pos-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pos-card-title-text {
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pos-card-sub-meta {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 8px;
}
.pos-card-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
}
.pos-card-price-val {
  font-size: 13.5px;
  font-weight: 900;
  color: #059669;
}
.pos-card-cta-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: #EFF6FF;
  color: #2563EB;
}
.pos-grid-card.active .pos-card-cta-tag {
  background: #10B981;
  color: #FFFFFF;
}

/* SELECTED VEHICLE DOCK AT BOTTOM OF LEFT PANEL */
.pos-selected-veh-dock {
  padding: 12px 18px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.pos-dock-thumb-wrap {
  position: relative;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: #E2E8F0;
  flex-shrink: 0;
}
.pos-dock-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pos-dock-plate {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  background: rgba(15, 23, 42, 0.9);
  color: #FFFFFF;
  font-family: monospace;
  font-size: 8.5px;
  font-weight: 800;
  text-align: center;
  padding: 1px 0;
  border-radius: 3px;
}
.pos-dock-details {
  flex: 1;
  min-width: 0;
}
.pos-dock-title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-dock-meta {
  font-size: 11px;
  color: #64748B;
  margin: 2px 0 4px;
}
.pos-dock-financials {
  display: flex;
  gap: 12px;
  font-size: 11px;
}
.pos-fin-item span {
  color: #64748B;
  margin-right: 3px;
}
.pos-fin-item strong, .pos-fin-item span:last-child {
  font-weight: 700;
  color: #0F172A;
}

/* RIGHT COLUMN: DYNAMIC CHECKOUT REGISTER */
.pos-right-station {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #FFFFFF;
  overflow: hidden;
}
.pos-checkout-form-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
}

/* 3-WAY SEGMENTED ROUTE BAR */
.pos-payment-route-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 14px 22px 10px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-shrink: 0;
}
.pos-route-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}
.pos-route-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #F1F5F9;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.pos-route-texts strong {
  display: block;
  font-size: 12.5px;
  color: #1E293B;
  line-height: 1.2;
}
.pos-route-texts span {
  display: block;
  font-size: 10.5px;
  color: #64748B;
  margin-top: 2px;
}
.pos-route-tab:hover {
  border-color: #94A3B8;
  background: #F8FAFC;
}

.pos-route-tab.active#pos-tab-cash {
  border-color: #10B981;
  background: #F0FDF4;
  box-shadow: 0 0 0 1px #10B981;
}
.pos-route-tab.active#pos-tab-cash .pos-route-icon {
  background: #10B981;
  color: #FFFFFF;
}
.pos-route-tab.active#pos-tab-cash strong {
  color: #065F46;
}

.pos-route-tab.active#pos-tab-dp {
  border-color: #2563EB;
  background: #EFF6FF;
  box-shadow: 0 0 0 1px #2563EB;
}
.pos-route-tab.active#pos-tab-dp .pos-route-icon {
  background: #2563EB;
  color: #FFFFFF;
}
.pos-route-tab.active#pos-tab-dp strong {
  color: #1E40AF;
}

.pos-route-tab.active#pos-tab-credit {
  border-color: #0284C7;
  background: #F0F9FF;
  box-shadow: 0 0 0 1px #0284C7;
}
.pos-route-tab.active#pos-tab-credit .pos-route-icon {
  background: #0284C7;
  color: #FFFFFF;
}
.pos-route-tab.active#pos-tab-credit strong {
  color: #0369A1;
}

/* SCROLLABLE CHECKOUT SECTIONS */
.pos-checkout-scroll-area {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pos-section-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.pos-section-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}
.pos-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0F172A;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pos-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}
.pos-section-sub {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: #64748B;
}

/* PRICING & BUYER GRIDS */
.pos-pricing-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.pos-buyer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pos-field-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pos-field-wrap.full-width {
  grid-column: span 2;
}
.pos-field-wrap label {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  margin: 0;
}
.pos-field-wrap .req {
  color: #EF4444;
}
.pos-field-wrap input,
.pos-select-input,
.pos-date-input,
.pos-textarea-input {
  width: 100%;
  padding: 7px 10px;
  font-size: 12.5px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: #FFFFFF;
  color: #0F172A;
  outline: none;
  transition: all 0.15s;
}
.pos-field-wrap input:focus,
.pos-select-input:focus,
.pos-date-input:focus,
.pos-textarea-input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.pos-input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.pos-input-prefix {
  position: absolute;
  left: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  pointer-events: none;
}
.pos-input-prefix-wrap input {
  padding-left: 32px !important;
  font-weight: 700;
}
.pos-input-prefix-wrap.highlight-dp input {
  border-color: #2563EB;
  font-size: 14px;
  color: #1D4ED8;
}
.pos-input-prefix-wrap.highlight-credit input {
  border-color: #0284C7;
  font-size: 14px;
  color: #0369A1;
}

.pos-input-helper {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  margin-top: 1px;
}
.pos-input-helper.discount {
  color: #DC2626;
}

/* GRAND TOTAL BANNER */
.pos-grand-total-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}
.pos-banner-label {
  font-size: 11px;
  font-weight: 800;
  color: #94A3B8;
  letter-spacing: 0.5px;
}
.pos-banner-amount {
  font-size: 22px;
  font-weight: 900;
  color: #34D399;
  letter-spacing: -0.3px;
}
.pos-banner-badge {
  background: #10B981;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 8px;
}

/* SUB-PANEL ALERTS & CARDS */
.pos-info-alert {
  border-radius: 9px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
}
.pos-info-alert.cash {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}
.pos-info-alert.dp {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
}
.pos-info-alert.credit {
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  color: #0369A1;
}

.pos-preset-dp-chips {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.pos-balance-card {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pos-bal-label {
  font-size: 11px;
  color: #64748B;
}
.pos-bal-value {
  font-size: 17px;
  font-weight: 900;
  color: #0F172A;
}
.pos-date-input-sm {
  padding: 4px 8px;
  font-size: 11.5px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  display: block;
  margin-top: 2px;
}
.pos-leasing-hint {
  font-size: 11.5px;
  color: #0284C7;
  margin-top: 4px;
  font-weight: 600;
}

/* SIMULATION BOX */
.pos-simulation-box {
  background: #F0F9FF;
  border: 1.5px solid #BAE6FD;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 12px;
}
.pos-sim-lbl {
  font-size: 11px;
  color: #64748B;
}
.pos-sim-lbl.primary {
  font-weight: 700;
  color: #0F172A;
}
.pos-sim-val {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
}
.pos-sim-val.highlight {
  color: #2563EB;
}
.pos-sim-installment-val {
  font-size: 20px;
  font-weight: 900;
  color: #0284C7;
}
.pos-sim-tdp-val {
  font-size: 13px;
  font-weight: 800;
  color: #475569;
}

/* UPLOAD DOCS GRID */
.pos-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pos-doc-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 8px;
  transition: all 0.15s;
}
.pos-doc-card.uploaded {
  border-style: solid;
  border-color: #10B981;
  background: #F0FDF4;
}
.pos-doc-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #64748B;
  flex-shrink: 0;
}
.pos-doc-card.uploaded .pos-doc-icon {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #15803D;
}
.pos-doc-btn {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  background: #FFFFFF;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}
.pos-doc-btn:hover {
  border-color: #2563EB;
  color: #2563EB;
}

/* STICKY BOTTOM CHECKOUT ACTION BAR */
.pos-checkout-sticky-footer {
  padding: 14px 22px;
  background: #FFFFFF;
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  z-index: 10;
}
.pos-footer-left {
  display: flex;
  flex-direction: column;
}
.pos-footer-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748B;
  letter-spacing: 0.3px;
}
.pos-footer-amount {
  font-size: 22px;
  font-weight: 900;
  color: #059669;
  letter-spacing: -0.3px;
  line-height: 1.15;
}
.pos-footer-veh {
  font-size: 11.5px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.pos-submit-action-btn {
  padding: 12px 24px;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.pos-submit-action-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}
.pos-submit-action-btn.cash {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.pos-submit-action-btn.dp {
  background: linear-gradient(135deg, #1D4ED8 0%, #2563EB 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}
.pos-submit-action-btn.credit {
  background: linear-gradient(135deg, #0284C7 0%, #0369A1 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

/* DESKTOP DEFAULTS FOR MOBILE ELEMENTS */
.pos-mobile-stepper-bar {
  display: none;
}
.pos-mob-proceed-btn {
  display: none;
}
.pos-mob-selected-veh-banner {
  display: none;
}

/* RESPONSIVE MEDIA QUERIES FOR POS WORKSTATION */
@media (max-width: 1100px) {
  .pos-workstation-box {
    width: 98vw;
    height: 96vh;
    max-height: 96vh;
  }
  .pos-workstation-body {
    grid-template-columns: 1fr 1.2fr;
  }
}

@media (max-width: 860px) {
  .pos-station-overlay {
    padding: 0 !important;
    background: #0F172A !important;
  }
  .pos-workstation-box {
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
  .pos-workstation-header {
    padding: 10px 14px !important;
  }
  .pos-station-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }
  .pos-station-title {
    font-size: 14px !important;
  }
  .pos-live-badge {
    font-size: 9.5px !important;
    padding: 2px 5px !important;
  }
  .pos-station-meta {
    display: none !important;
  }
  .pos-close-btn {
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
  }

  /* MOBILE STEPPER NAVIGATION BAR */
  .pos-mobile-stepper-bar {
    display: flex !important;
    background: #1E293B !important;
    border-bottom: 1px solid #334155 !important;
    flex-shrink: 0 !important;
    padding: 6px 10px !important;
    gap: 8px !important;
  }
  .pos-mobile-step-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0F172A;
    color: #94A3B8;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  .pos-mobile-step-btn.active {
    background: #10B981 !important;
    border-color: #10B981 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35) !important;
  }
  .pos-mob-count-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 800;
  }
  .pos-mobile-step-btn:not(.active) .pos-mob-count-badge {
    background: #334155;
    color: #94A3B8;
  }
  .pos-mob-step-indicator {
    color: #34D399;
    font-size: 12px;
  }
  .pos-mobile-step-btn.active .pos-mob-step-indicator {
    color: #FFFFFF;
  }

  /* MOBILE TAB SWITCHING LOGIC (CATALOG VS CHECKOUT) */
  .pos-workstation-box[data-mobile-tab="catalog"] .pos-left-station {
    display: flex !important;
  }
  .pos-workstation-box[data-mobile-tab="catalog"] .pos-right-station {
    display: none !important;
  }

  .pos-workstation-box[data-mobile-tab="checkout"] .pos-left-station {
    display: none !important;
  }
  .pos-workstation-box[data-mobile-tab="checkout"] .pos-right-station {
    display: flex !important;
  }

  /* WORKSPACE BODY IN MOBILE */
  .pos-workstation-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    min-height: 0 !important;
    height: calc(100vh - 104px) !important;
    height: calc(100dvh - 104px) !important;
    overflow: hidden !important;
    grid-template-columns: none !important;
  }

  /* TAB 1: VEHICLE CATALOG (LEFT STATION) */
  .pos-left-station {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    border-right: none !important;
    border-bottom: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  .pos-catalog-toolbar {
    padding: 8px 10px !important;
  }
  .pos-search-wrap {
    margin-bottom: 6px !important;
  }
  .pos-search-wrap input {
    padding: 7px 30px 7px 30px !important;
    font-size: 12px !important;
  }
  .pos-chips-scroll {
    gap: 4px !important;
  }
  .pos-filter-chip {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }
  .pos-catalog-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 8px 10px !important;
  }
  .pos-grid-card {
    min-height: 195px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 10px !important;
  }
  .pos-card-media {
    height: 95px !important;
    min-height: 95px !important;
    flex-shrink: 0 !important;
    width: 100% !important;
    position: relative !important;
  }
  .pos-card-img-el {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }
  .pos-card-plate-badge {
    font-size: 9px !important;
    padding: 1px 5px !important;
    top: 5px !important;
    left: 5px !important;
  }
  .pos-card-trans-badge {
    font-size: 9px !important;
    padding: 1px 5px !important;
    top: 5px !important;
    right: 5px !important;
  }
  .pos-card-body {
    padding: 7px 8px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
  }
  .pos-card-title-text {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    margin-bottom: 3px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .pos-card-sub-meta {
    font-size: 10px !important;
    margin-bottom: 4px !important;
  }
  .pos-card-price-row {
    margin-top: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding-top: 4px !important;
    border-top: 1px solid #F1F5F9 !important;
  }
  .pos-card-price-val {
    font-size: 12px !important;
    font-weight: 900 !important;
    color: #059669 !important;
  }
  .pos-card-cta-tag {
    font-size: 9px !important;
    padding: 1px 4px !important;
  }

  /* SELECTED VEHICLE DOCK & PROCEED BUTTON */
  .pos-selected-veh-dock {
    padding: 8px 10px !important;
    background: #0F172A !important;
    color: #FFFFFF !important;
    border-top: 1px solid #1E293B !important;
    gap: 8px !important;
  }
  .pos-dock-thumb-wrap {
    width: 48px !important;
    height: 38px !important;
  }
  .pos-dock-title {
    font-size: 11.5px !important;
    color: #FFFFFF !important;
  }
  .pos-dock-meta {
    display: none !important;
  }
  .pos-dock-financials {
    gap: 6px !important;
    font-size: 9.5px !important;
  }
  .pos-fin-item span {
    color: #94A3B8 !important;
  }
  .pos-fin-item strong,
  .pos-fin-item span:last-child {
    color: #FFFFFF !important;
  }
  .pos-dock-financials .pos-fin-item:nth-child(2) {
    display: none !important;
  }
  .pos-mob-proceed-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
  }

  /* TAB 2: CASHIER REGISTER (RIGHT STATION) */
  .pos-right-station {
    width: 100% !important;
    height: 100% !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  /* SELECTED VEHICLE BANNER AT TOP OF REGISTER */
  .pos-mob-selected-veh-banner {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #0F172A;
    color: #FFFFFF;
    border-bottom: 1px solid #1E293B;
    cursor: pointer;
    flex-shrink: 0;
  }
  .pos-mob-banner-car-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #1E293B;
    color: #34D399;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
  }
  .pos-mob-banner-title {
    font-size: 11.5px;
    font-weight: 800;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }
  .pos-mob-banner-price {
    font-size: 11px;
    font-weight: 800;
    color: #34D399;
  }
  .pos-mob-change-btn {
    font-size: 10.5px;
    font-weight: 700;
    color: #93C5FD;
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* COMPACT PAYMENT ROUTE TABS IN ONE ROW */
  .pos-payment-route-bar {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 4px !important;
    padding: 6px 8px !important;
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
  }
  .pos-route-tab {
    padding: 6px 3px !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 3px !important;
  }
  .pos-route-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 10.5px !important;
  }
  .pos-route-texts strong {
    font-size: 9.5px !important;
    line-height: 1.15 !important;
    display: block !important;
  }
  .pos-route-texts span {
    display: none !important;
  }

  /* CHECKOUT SCROLL AREA */
  .pos-checkout-scroll-area {
    padding: 8px 10px !important;
    gap: 10px !important;
    flex: 1 !important;
    overflow-y: auto !important;
  }
  .pos-section-card {
    padding: 10px !important;
    border-radius: 10px !important;
  }
  .pos-section-header {
    margin-bottom: 8px !important;
    gap: 8px !important;
  }
  .pos-step-num {
    width: 20px !important;
    height: 20px !important;
    font-size: 10.5px !important;
  }
  .pos-section-title {
    font-size: 12.5px !important;
  }
  .pos-section-sub {
    font-size: 10.5px !important;
  }
  .pos-pricing-grid,
  .pos-buyer-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .pos-field-wrap.full-width {
    grid-column: span 1 !important;
  }
  .pos-docs-grid {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
  }
  .pos-doc-card {
    padding: 6px 8px !important;
  }

  /* STICKY BOTTOM ACTION FOOTER */
  .pos-checkout-sticky-footer {
    padding: 10px 14px !important;
    flex-direction: column !important;
    gap: 8px !important;
    position: sticky !important;
    bottom: 0 !important;
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08) !important;
    z-index: 50 !important;
  }
  .pos-footer-left {
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .pos-footer-veh {
    display: none !important;
  }
  .pos-footer-label {
    font-size: 10px !important;
    color: #64748B !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
  }
  .pos-footer-amount {
    font-size: 18px !important;
    font-weight: 900 !important;
    color: #059669 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    line-height: 1.2 !important;
  }
  .pos-footer-right {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .pos-submit-action-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
    border-radius: 10px !important;
    white-space: normal !important;
    text-align: center !important;
  }
}

@media (max-width: 768px) {
  .shr-header-cta-group {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .shr-btn-cta {
    height: 38px !important;
    padding: 0 10px !important;
    font-size: 11.5px !important;
    justify-content: center !important;
  }
  .shr-spk-table-wrap,
  .shr-invoices-table-wrap,
  .shr-expenses-table-wrap,
  .shr-report-sales-table-wrap {
    display: none !important;
  }
  #shr-report-sales-mobile-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .shr-report-download-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .shr-export-btn {
    width: 100% !important;
    padding: 8px 8px !important;
    font-size: 11px !important;
    justify-content: center !important;
  }
  .shr-period-filter-scroll,
  .shr-filter-btn-row {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    padding-bottom: 4px !important;
  }
  .shr-report-period-btn {
    flex-shrink: 0 !important;
  }
  .shr-report-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  .shr-report-kpi-grid > div:last-child {
    grid-column: 1 / -1 !important;
  }
}

/* ================= SHOWROOM PORTAL VISITOR & MAP ANALYTICS (RESPONSIVE & DYNAMIC MOBILE FIT) ================= */
.shr-ana-section-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.shr-ana-ai-box {
  border: 1.5px solid #CBD5E1;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
}

.shr-ana-sec-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

.shr-ana-sec-sub {
  font-size: 12px;
  color: #64748B;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.shr-ana-map-pill {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

/* 4-KPI Grid */
.shr-ana-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

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

.shr-kpi-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* Map Grid */
.shr-geo-map-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 20px;
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.shr-ana-map-wrapper {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #CBD5E1;
  height: 380px !important;
  min-height: 380px !important;
  background: #F1F5F9;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

#shr-analytics-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 380px !important;
  z-index: 1;
}

.shr-geo-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  transition: all 0.2s ease;
}

.shr-geo-list-item:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

/* Desktop vs Mobile Top Products */
.shr-ana-desktop-table-wrap {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.shr-ana-mobile-cards-wrap {
  display: none;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

.shr-top-car-mob-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.shr-top-car-mob-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.shr-top-car-rank {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.shr-top-car-rank.gold {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.shr-top-car-rank.silver {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.shr-top-car-rank.bronze {
  background: #FFEDD5;
  color: #9A3412;
  border: 1px solid #FED7AA;
}

.shr-top-car-rank.normal {
  background: #F8FAFC;
  color: #64748B;
  border: 1px solid #E2E8F0;
}

.shr-top-car-mob-body {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.shr-top-car-mob-img {
  width: 74px;
  height: 54px;
  min-width: 74px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}

.shr-top-car-mob-info {
  flex: 1;
  min-width: 0;
}

.shr-top-car-mob-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shr-top-car-mob-specs {
  font-size: 10.5px;
  color: #64748B;
  margin-top: 2px;
}

.shr-top-car-mob-price {
  font-size: 13.5px;
  font-weight: 900;
  color: #0F172A;
  margin-top: 3px;
}

.shr-top-car-mob-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 8px 10px;
}

.shr-top-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.shr-top-stat-lbl {
  font-size: 10px;
  color: #64748B;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 3px;
}

.shr-top-stat-val {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  margin-top: 1px;
}

.stat-blue .shr-top-stat-val { color: #0284C7; }
.stat-green .shr-top-stat-val { color: #059669; }
.stat-purple .shr-top-stat-val { color: #7C3AED; }

.shr-top-stat-sub {
  font-size: 9px;
  color: #94A3B8;
  margin-top: 1px;
}

.shr-top-car-mob-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.shr-top-btn-detail {
  flex: 1;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.shr-top-btn-share {
  flex: 1;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 800;
  background: #0284C7;
  color: #FFF;
  border: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* AI Recommendations */
.shr-ana-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.shr-rec-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
}

.shr-rec-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.shr-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.shr-rec-title {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px 0;
  line-height: 1.35;
}

.shr-rec-desc {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 14px 0;
  flex: 1;
}

.shr-rec-action-btn {
  width: 100%;
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 800;
  border: none;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-top: auto;
}

/* ================= MOBILE VIEW RULES (< 992px - TABLETS & SMARTPHONES) ================= */
@media (max-width: 992px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  #view-showroom-portal,
  #view-showroom-portal .section-wrapper,
  #shr-tab-analytics,
  .shr-ana-section-card,
  .shr-geo-map-grid,
  .shr-charts-grid,
  .shr-ana-rec-grid {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .shr-ana-section-card {
    padding: 14px 12px !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
  }

  .shr-ana-sec-title {
    font-size: 14px !important;
  }

  .shr-ana-sec-sub {
    font-size: 11px !important;
  }

  /* 2x2 Clean KPI Grid on mobile */
  .shr-ana-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .shr-kpi-card {
    padding: 10px 10px !important;
    min-height: 85px !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .shr-kpi-header {
    margin-bottom: 4px !important;
  }

  .shr-kpi-label {
    font-size: 9px !important;
    letter-spacing: 0.2px !important;
  }

  .shr-kpi-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
  }

  .shr-kpi-val {
    font-size: 14px !important;
    margin-bottom: 3px !important;
  }

  .shr-kpi-meta {
    font-size: 9px !important;
    line-height: 1.25 !important;
    word-break: break-word !important;
  }

  /* Map Container on mobile */
  .shr-geo-map-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .shr-ana-map-wrapper {
    min-height: 250px !important;
    height: 250px !important;
    width: 100% !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  #shr-analytics-map {
    min-height: 250px !important;
    height: 250px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Switch Desktop Table to Exclusive Dynamic Mobile Cards */
  .shr-ana-desktop-table-wrap {
    display: none !important;
  }

  .shr-ana-mobile-cards-wrap {
    display: flex !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .shr-top-car-mob-card {
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .shr-top-car-mob-body {
    width: 100% !important;
    min-width: 0 !important;
  }

  .shr-top-car-mob-info {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .shr-top-car-mob-title {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    max-width: 100% !important;
    font-size: 12.5px !important;
  }

  .shr-top-car-mob-price {
    font-size: 13.5px !important;
    font-weight: 900 !important;
    color: #0F172A !important;
  }

  /* Charts on mobile */
  .shr-charts-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
  }

  .shr-chart-card {
    padding: 14px 10px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .shr-chart-card-title {
    font-size: 13px !important;
  }

  .shr-chart-card-sub {
    font-size: 10.5px !important;
  }

  .shr-chart-canvas-box {
    height: 200px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
  }

  /* Recommendations Grid on mobile */
  .shr-ana-rec-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
  }

  .shr-rec-card {
    padding: 14px 12px !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

/* ==========================================================================
   LEASING PARTNER PORTAL ENTERPRISE REDESIGN
   ========================================================================== */
#view-leasing-portal .subpage-hero {
  background: linear-gradient(135deg, #022C22 0%, #064E3B 55%, #065F46 100%) !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.25) !important;
  padding: 34px 24px 28px !important;
  margin-bottom: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  text-align: left !important;
}

#view-leasing-portal .subpage-hero::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.lsg-hero-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.lsg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.2);
  color: #6EE7B7;
  border: 1px solid rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(4px);
}

.lsg-hero-badge.ojk {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
}

.lsg-hero-title {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #FFFFFF !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.4px !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lsg-hero-desc {
  font-size: 13.5px !important;
  color: #A7F3D0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.5 !important;
}

.lsg-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lsg-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.lsg-hero-btn.primary {
  background: #10B981;
  color: #FFFFFF;
  border: 1px solid #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.lsg-hero-btn.primary:hover {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.45);
}

.lsg-hero-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.lsg-hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

/* LEASING KPI SUMMARY CARDS */
.lsg-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.lsg-kpi-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.lsg-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.lsg-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.lsg-kpi-card.blue::before { background: #3B82F6; }
.lsg-kpi-card.amber::before { background: #F59E0B; }
.lsg-kpi-card.sky::before { background: #0284C7; }
.lsg-kpi-card.emerald::before { background: #10B981; }
.lsg-kpi-card.slate::before { background: #64748B; }

.lsg-kpi-card.emerald {
  background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%);
  border-color: #BBF7D0;
}

.lsg-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.lsg-kpi-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lsg-kpi-val {
  font-size: 22px;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.2;
  margin-bottom: 4px;
}

.lsg-kpi-card.emerald .lsg-kpi-val {
  color: #047857;
}

.lsg-kpi-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: auto;
  line-height: 1.3;
}

/* LEASING SUB NAVIGATION PILLS */
.lsg-tabs-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #CBD5E1;
}

.lsg-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lsg-nav-pill:hover {
  color: #0F172A;
  background: #F8FAFC;
  border-color: #94A3B8;
  transform: translateY(-1px);
}

.lsg-nav-pill.active {
  background: linear-gradient(135deg, #064E3B 0%, #065F46 100%);
  color: #FFFFFF;
  border-color: #047857;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.25);
}

.lsg-nav-pill.active i {
  color: #34D399 !important;
}

.lsg-nav-pill .badge-count {
  background: #047857;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  margin-left: 4px;
}

.lsg-nav-pill.active .badge-count {
  background: #34D399;
  color: #064E3B;
}

/* SEARCH & FILTER TOOLBAR */
.lsg-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.lsg-search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.lsg-search-box i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94A3B8;
  font-size: 13px;
}

.lsg-search-box input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-size: 13px;
  background: #FFFFFF;
  box-sizing: border-box;
}

.lsg-search-box input:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.lsg-filter-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  font-size: 13px;
  background: #FFFFFF;
  font-weight: 600;
  color: #334155;
  box-sizing: border-box;
}

/* DESKTOP TABLE STYLING */
.lsg-table-wrap {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.lsg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.lsg-table th {
  background: #F8FAFC;
  color: #475569;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  padding: 12px 14px;
  border-bottom: 1px solid #E2E8F0;
  text-align: left;
  white-space: nowrap;
}

.lsg-table td {
  padding: 14px;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

.lsg-table tbody tr:hover {
  background: #F8FAFC;
}

/* MOBILE APPLICATION CARDS */
.lsg-mobile-cards-wrap {
  display: none;
}

.lsg-mobile-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  position: relative;
}

.lsg-mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
  margin-bottom: 10px;
}

.lsg-mc-code {
  font-family: monospace;
  font-weight: 800;
  font-size: 12px;
  color: #0F172A;
  background: #F1F5F9;
  padding: 3px 8px;
  border-radius: 6px;
}

.lsg-mc-car {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.lsg-mc-car-img {
  width: 68px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
  background: #F1F5F9;
  flex-shrink: 0;
  border: 1px solid #E2E8F0;
}

.lsg-mc-car-info {
  flex: 1;
  min-width: 0;
}

.lsg-mc-car-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.lsg-mc-car-sub {
  font-size: 11.5px;
  color: #64748B;
}

.lsg-mc-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.lsg-mc-dg-item label {
  font-size: 10px;
  color: #64748B;
  font-weight: 700;
  display: block;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.lsg-mc-dg-item span {
  font-size: 12px;
  font-weight: 800;
  color: #0F172A;
  display: block;
}

.lsg-mc-party {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
}

.lsg-mc-party-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lsg-mc-docs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.lsg-mc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

.lsg-mc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}

.lsg-mc-btn.update {
  background: #ECFDF5;
  color: #059669;
  border-color: #A7F3D0;
}

.lsg-mc-btn.memo {
  background: #EFF6FF;
  color: #2563EB;
  border-color: #BFDBFE;
}

/* SUB-TAB FORMS CARDS */
.lsg-card-box {
  max-width: 920px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lsg-card-title {
  font-size: 19px;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lsg-card-desc {
  font-size: 13px;
  color: #64748B;
  margin: 0 0 24px;
  line-height: 1.5;
}

.lsg-form-section-title {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin: 20px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lsg-rates-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.lsg-rate-box {
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.lsg-rate-box label {
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  margin-bottom: 6px;
  display: block;
}

.lsg-rate-box input {
  width: 100%;
  font-size: 16px;
  font-weight: 800;
  color: #059669;
  text-align: center;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 6px;
  background: #FFFFFF;
  box-sizing: border-box;
}

.lsg-params-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.lsg-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3);
  transition: all 0.2s ease;
}

.lsg-submit-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #065F46 100%);
  transform: translateY(-1px);
}

.lsg-explainer-box {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.lsg-explainer-box h4 {
  font-size: 13.5px;
  font-weight: 800;
  color: #065F46;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lsg-explainer-box p {
  font-size: 12.5px;
  color: #166534;
  margin: 0;
  line-height: 1.5;
}

/* RESPONSIVE BREAKPOINTS FOR LEASING */
@media (max-width: 1024px) {
  .lsg-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lsg-rates-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  #view-leasing-portal .subpage-hero {
    padding: 20px 14px 22px !important;
    border-bottom: none !important;
  }
  .lsg-hero-title {
    font-size: 20px !important;
  }
  .lsg-hero-desc {
    font-size: 12px !important;
    gap: 8px !important;
  }
  .lsg-hero-actions {
    width: 100% !important;
    margin-top: 10px !important;
  }
  .lsg-hero-btn {
    padding: 8px 14px !important;
    font-size: 12px !important;
  }
  .lsg-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .lsg-kpi-card {
    padding: 12px 14px !important;
  }
  .lsg-kpi-val {
    font-size: 18px !important;
  }
  .lsg-tabs-nav {
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
    padding-bottom: 6px !important;
    gap: 8px !important;
    margin-bottom: 16px !important;
  }
  .lsg-tabs-nav::-webkit-scrollbar {
    display: none !important;
  }
  .lsg-nav-pill {
    white-space: nowrap !important;
    padding: 8px 14px !important;
    font-size: 11.5px !important;
    flex-shrink: 0 !important;
  }
  .lsg-table-wrap {
    display: none !important;
  }
  .lsg-mobile-cards-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .lsg-card-box {
    padding: 20px 14px !important;
  }
  .lsg-rates-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .lsg-params-grid {
    grid-template-columns: 1fr !important;
  }
}
