/* ==========================================================================
   MAHINDRA DEALERSHIP PRICE PORTAL - STYLESHEET
   Typography: Plus Jakarta Sans (Clean, Highly Legible, Modern Humanist)
   Theme: Airy White Glassmorphism with Royal Blue Accents
   Spacious, De-congested Layout • Mobile-First Responsive
   ========================================================================== */

:root {
  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Palette */
  --bg-page: #f8fafc;
  --bg-glass-card: rgba(255, 255, 255, 0.82);
  --bg-glass-card-hover: rgba(255, 255, 255, 0.96);
  --bg-glass-nav: rgba(255, 255, 255, 0.88);
  --bg-glass-tint: rgba(239, 246, 255, 0.7);

  /* Borders */
  --border-glass: rgba(255, 255, 255, 0.95);
  --border-subtle: rgba(226, 232, 240, 0.8);
  --border-blue: rgba(37, 99, 235, 0.35);

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Royal Blue Accent */
  --blue-primary: #2563eb;
  --blue-hover: #1d4ed8;
  --blue-soft: #eff6ff;
  --blue-soft-border: rgba(191, 219, 254, 0.8);
  --blue-glow: rgba(37, 99, 235, 0.18);

  /* Shadows */
  --shadow-card: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 20px 40px -8px rgba(37, 99, 235, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
  --shadow-modal: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  /* Glass Blur */
  --blur: blur(20px) saturate(180%);

  /* Border Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset & Mobile Bounds */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Soft ambient white-to-light-blue gradient mesh */
body {
  background-image: 
    radial-gradient(at 0% 0%, rgba(224, 242, 254, 0.7) 0px, transparent 45%),
    radial-gradient(at 100% 30%, rgba(219, 234, 254, 0.6) 0px, transparent 50%),
    radial-gradient(at 20% 90%, rgba(238, 242, 255, 0.8) 0px, transparent 55%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 1.75rem;
  }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass-nav);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 0;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  min-width: 0;
}

.mahindra-header-logo {
  height: 36px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  transition: transform 0.2s ease;
  display: block;
}

.brand-wrapper:hover .mahindra-header-logo {
  transform: scale(1.03);
}

.horizon-header-logo {
  height: 40px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  transition: transform 0.2s ease;
  display: block;
}

.brand-wrapper:hover .horizon-header-logo {
  transform: scale(1.03);
}

.brand-divider {
  width: 1.5px;
  height: 30px;
  background: var(--border-subtle);
  margin: 0 0.25rem;
  border-radius: 1px;
}

@media (max-width: 540px) {
  .mahindra-header-logo {
    height: 28px;
    max-width: 65px;
  }
  .horizon-header-logo {
    height: 30px;
    max-width: 105px;
  }
  .brand-divider {
    display: none;
  }
  .brand-subtitle {
    display: none;
  }
}

.brand-info {
  min-width: 0;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.brand-title span {
  color: var(--blue-primary);
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Action Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
}

.btn-primary {
  background: var(--blue-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--blue-glow);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.btn-secondary:hover {
  background: var(--blue-soft);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
}

@media (max-width: 520px) {
  .btn-upload-text {
    display: none;
  }
}

/* ==========================================================================
   PORTAL BAR / METADATA & FILTERS (SPACIOUS & AIRY)
   ========================================================================== */
.portal-bar {
  padding: 2rem 0 1.5rem;
}

.portal-meta-card {
  background: var(--bg-glass-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

@media (min-width: 768px) {
  .portal-meta-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.portal-meta-title h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.portal-meta-title p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.meta-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.badge-blue {
  background: var(--blue-soft);
  color: var(--blue-primary);
  border-color: var(--blue-soft-border);
  font-weight: 700;
}

/* Search & Categories */
.filter-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-wrap {
  position: relative;
  width: 100%;
}

.search-wrap input {
  width: 100%;
  padding: 0.85rem 2.75rem 0.85rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.search-wrap input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 4px var(--blue-glow);
}

.search-clear-btn {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 1rem;
  display: none;
}

/* Category Pills */
.category-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}

.category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.cat-pill:hover {
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.cat-pill.active {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 14px var(--blue-glow);
}

/* ==========================================================================
   MODEL CARDS GRID (DE-CONGESTED & COMFORTABLE)
   ========================================================================== */
.view-section {
  display: block;
  width: 100%;
}

.hidden-section {
  display: none !important;
}

.models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

@media (min-width: 640px) {
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .models-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.85rem;
  }
}

.model-card {
  background: var(--bg-glass-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.65rem 1.5rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  min-width: 0;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.model-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: var(--transition);
}

.model-card:hover {
  background: var(--bg-glass-card-hover);
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.model-card:hover::after {
  background: linear-gradient(90deg, var(--blue-primary), #60a5fa);
}

.model-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}

.model-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.model-cat-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--blue-soft);
  color: var(--blue-primary);
  border: 1px solid var(--blue-soft-border);
  flex-shrink: 0;
}

.model-desc {
  font-size: 0.885rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.45;
  min-height: 2.5rem;
}

/* Soft, readable tags with generous padding */
.model-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.spec-tag {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  color: #475569;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.spec-tag.spec-tag-primary {
  background: var(--blue-soft);
  color: var(--blue-primary);
  border-color: var(--blue-soft-border);
  font-weight: 600;
}

/* Dedicated, spacious pricing block */
.model-price-box {
  margin-top: auto;
  background: var(--bg-glass-tint);
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.price-main {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.price-sub {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.btn-card-action {
  background: #ffffff;
  color: var(--blue-primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.06);
}

.model-card:hover .btn-card-action {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 12px var(--blue-glow);
}

/* ==========================================================================
   MODEL DETAIL / PRICE LIST VIEW (AIRY & ACCESSIBLE)
   ========================================================================== */
.detail-view {
  width: 100%;
  margin-bottom: 3.5rem;
}

.detail-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.back-link:hover {
  color: var(--blue-primary);
  border-color: var(--blue-primary);
  background: var(--blue-soft);
}

.detail-header-card {
  background: var(--bg-glass-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.detail-header-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .detail-header-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.detail-title-group h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.detail-title-group p {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

.detail-price-summary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-price-summary .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.detail-price-summary .val {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: -0.02em;
}

/* Detail Filter Panel */
.detail-filters-panel {
  background: var(--bg-glass-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  width: 100%;
}

.filter-pill {
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.filter-pill:hover {
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.filter-pill.active {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 3px 10px var(--blue-glow);
}

/* Detail Controls Footer */
.detail-controls-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

@media (min-width: 640px) {
  .detail-controls-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.pricing-selector {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
}

@media (min-width: 640px) {
  .pricing-selector {
    width: auto;
  }
}

.pricing-selector label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.pricing-select {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.95rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.pricing-select:focus {
  border-color: var(--blue-primary);
}

.view-switcher {
  display: flex;
  align-items: center;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
  gap: 0.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .view-switcher {
    width: auto;
  }
}

.view-btn {
  flex: 1;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
  font-family: inherit;
}

.view-btn.active {
  background: #ffffff;
  color: var(--blue-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Results Status Bar */
.results-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   VARIANT CARDS (SPACIOUS & LEGIBLE)
   ========================================================================== */
.variant-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .variant-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .variant-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.variant-card {
  background: var(--bg-glass-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.variant-card:hover {
  background: var(--bg-glass-card-hover);
  border-color: var(--blue-primary);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.variant-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.variant-trim-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.variant-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.variant-price-block {
  background: var(--bg-glass-tint);
  border: 1px solid rgba(219, 234, 254, 0.9);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.price-line-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.price-line-main .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.price-line-main .val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-primary);
  letter-spacing: -0.02em;
}

.price-line-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

.variant-card-actions {
  margin-top: auto;
}

.btn-breakdown {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.25);
  background: #ffffff;
  color: var(--blue-primary);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  font-family: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.btn-breakdown:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
  box-shadow: 0 4px 14px var(--blue-glow);
}

/* ==========================================================================
   RESPONSIVE DATA TABLE
   ========================================================================== */
.table-scroll-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-glass-card);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
  display: block;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
  min-width: 720px;
}

.data-table th {
  background: rgba(241, 245, 249, 0.95);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.data-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  white-space: nowrap;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.95);
}

.data-table .td-bold {
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 0;
  width: 100%;
  max-width: 100vw;
}

@media (min-width: 600px) {
  .modal-overlay {
    align-items: center;
    padding: 1.5rem;
  }
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: var(--shadow-modal);
}

@media (min-width: 600px) {
  .modal-sheet {
    border-radius: var(--radius-lg);
  }
}

.modal-header {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.8);
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.modal-close-btn {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
}

.modal-content-scroll {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.breakdown-table {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.35rem;
  width: 100%;
}

.breakdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(241, 245, 249, 0.7);
  font-size: 0.875rem;
  border: 1px solid rgba(226, 232, 240, 0.7);
}

.breakdown-item .lbl {
  color: var(--text-secondary);
  font-weight: 500;
}

.breakdown-item .val {
  font-weight: 700;
  color: var(--text-primary);
}

.breakdown-item.total-item {
  background: var(--blue-soft);
  border: 1px solid var(--blue-soft-border);
  font-size: 1.05rem;
  font-weight: 800;
  padding: 1rem 1.15rem;
  margin-top: 0.5rem;
}

.breakdown-item.total-item .lbl {
  color: var(--blue-primary);
}

.breakdown-item.total-item .val {
  color: var(--blue-primary);
  font-size: 1.35rem;
}

/* EMI Estimator */
.emi-box {
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.emi-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

.slider-field {
  margin-bottom: 0.85rem;
}

.slider-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.slider-range {
  width: 100%;
  accent-color: var(--blue-primary);
  cursor: pointer;
}

.emi-output {
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.06);
}

.emi-output .txt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.emi-output .val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-primary);
}

/* Upload Dropzone */
.dropzone {
  border: 2px dashed rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(241, 245, 249, 0.6);
  margin-bottom: 1.25rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  transition: var(--transition);
}

.dropzone:hover {
  border-color: var(--blue-primary);
  background: var(--blue-soft);
}

.dropzone-file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dropzone h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

.dropzone p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.upload-select-field {
  margin-bottom: 1.25rem;
  width: 100%;
}

.upload-select-field label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.upload-select-field select {
  width: 100%;
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.95rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}

.upload-preview {
  background: var(--blue-soft);
  border: 1px solid var(--blue-soft-border);
  border-radius: var(--radius-sm);
  padding: 1.15rem;
  display: none;
  margin-bottom: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

/* Toast Notifications */
.toast-outlet {
  position: fixed;
  bottom: 1.5rem;
  left: 1rem;
  right: 1rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 420px;
  margin: 0 auto;
}

.toast-msg {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.15rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
  pointer-events: auto;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.25s ease;
}

.toast-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast-msg.success {
  border-left: 4px solid var(--blue-primary);
}

.toast-msg.error {
  border-left: 4px solid #ef4444;
}

/* Empty State */
.empty-box {
  text-align: center;
  padding: 3.5rem 1.5rem;
  color: var(--text-muted);
  width: 100%;
  grid-column: 1 / -1;
  background: var(--bg-glass-card);
  backdrop-filter: var(--blur);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
}

.empty-box h3 {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass-nav);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  padding: 2rem 0;
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.modal-sheet-lg {
  max-width: 860px;
  max-height: 88vh;
}

.modal-sheet-sm {
  max-width: 440px;
}

/* Admin Auth Modal */
.auth-sheet {
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.35);
}

.auth-header {
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.85) 0%, rgba(255, 255, 255, 0.95) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.auth-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.auth-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  border: 1px solid var(--blue-soft-border);
  color: var(--blue-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.auth-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}

.auth-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.auth-form-body {
  padding: 1.4rem;
}

.auth-input-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.45rem;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-password-input {
  width: 100%;
  padding: 0.75rem 2.8rem 0.75rem 0.95rem;
  font-family: inherit;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.auth-password-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-password-input.input-error {
  border-color: #ef4444;
  background: #fffafa;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
  animation: authShake 0.4s ease-in-out;
}

.auth-toggle-pwd-btn {
  position: absolute;
  right: 0.65rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease;
}

.auth-toggle-pwd-btn:hover {
  color: var(--text-primary);
}

.auth-error-msg {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

@keyframes authShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.admin-stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .admin-stats-bar {
    grid-template-columns: repeat(5, 1fr);
  }
}

.admin-stat-card {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.admin-stat-card .stat-num {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--blue-primary);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.admin-stat-card .stat-lbl {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.admin-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .admin-toolbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.admin-search-wrap {
  flex: 1;
}

.admin-search-wrap input {
  width: 100%;
  padding: 0.65rem 0.95rem;
  font-family: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
}

.admin-actions-group {
  display: flex;
  gap: 0.5rem;
}

.admin-inline-form {
  background: var(--blue-soft);
  border: 1px solid var(--blue-soft-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.inline-form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.inline-form-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--blue-primary);
}

.btn-text-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-sizing: border-box;
  outline: none;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
}

.admin-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: #ffffff;
  margin-bottom: 1rem;
  max-height: 48vh;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.admin-table th {
  background: rgba(248, 250, 252, 0.9);
  padding: 0.75rem 0.95rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-table td {
  padding: 0.75rem 0.95rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(241, 245, 249, 0.4);
}

.admin-model-title {
  font-weight: 700;
  color: var(--text-primary);
  display: block;
}

.admin-model-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-row-actions {
  display: flex;
  gap: 0.4rem;
}

.btn-admin-action {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.btn-admin-action.view {
  background: var(--blue-soft);
  color: var(--blue-primary);
  border-color: var(--blue-soft-border);
}

.btn-admin-action.view:hover {
  background: var(--blue-primary);
  color: #ffffff;
}

.btn-admin-action.print {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

.btn-admin-action.print:hover {
  background: #059669;
  color: #ffffff;
}

.btn-admin-action.delete {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-color: rgba(239, 68, 68, 0.2);
}

.btn-admin-action.delete:hover {
  background: #dc2626;
  color: #ffffff;
}

.admin-footer-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .admin-footer-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.admin-hint {
  font-size: 0.785rem;
  color: var(--text-muted);
}

.btn-danger-soft {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.25);
  font-size: 0.75rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.btn-danger-soft:hover {
  background: #dc2626;
  color: #ffffff;
}

@media (max-width: 640px) {
  .btn-admin-text {
    display: none;
  }
}

/* ==========================================================================
   MONTHLY CONSUMER SCHEMES & OFFERS STYLING
   ========================================================================== */

/* Model Card Offer Pill */
.model-offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.28);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.price-offer-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: #059669;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Detail View Promotional Scheme Banner */
.detail-offer-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(37, 99, 235, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.45rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.06);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
}

@media (min-width: 640px) {
  .detail-offer-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.offer-banner-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.offer-banner-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.offer-banner-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #065f46;
  margin-bottom: 0.15rem;
}

.offer-banner-text p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.offer-banner-badge {
  background: #059669;
  color: #ffffff;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  white-space: nowrap;
  align-self: flex-start;
}

@media (min-width: 640px) {
  .offer-banner-badge {
    align-self: center;
  }
}

/* Variant Card Offer Details */
.variant-offer-badge {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  margin: 0.65rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.variant-offer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.variant-offer-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.variant-offer-val {
  font-size: 0.85rem;
  font-weight: 800;
  color: #059669;
}

.variant-offer-breakdown {
  font-size: 0.7rem;
  color: #065f46;
  opacity: 0.85;
}

.price-strikethrough {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 0.4rem;
}

.price-net-highlight {
  color: #059669 !important;
  font-weight: 800 !important;
}

/* Variant Table Columns */
.table-offer-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.td-net-price {
  font-weight: 800;
  color: #059669;
}

/* Modal Breakdown Offer Lines */
.breakdown-item.offer-item {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  margin: 0.35rem 0;
}

.breakdown-item.net-total-item {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

/* Admin Panel Monthly Schemes Card */
.admin-schemes-panel {
  background: linear-gradient(135deg, rgba(240, 253, 250, 0.9) 0%, rgba(239, 246, 255, 0.9) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.45rem;
  margin-bottom: 1.35rem;
}

.admin-schemes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 0.75rem;
}

.schemes-title-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.schemes-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.schemes-title-group h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 0.15rem;
}

.schemes-title-group p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.schemes-status-pill {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.schemes-status-pill.inactive {
  background: rgba(100, 116, 139, 0.1);
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.2);
}

.schemes-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (max-width: 580px) {
  .schemes-stats-row {
    grid-template-columns: 1fr;
  }
}

.scheme-stat-box {
  background: #ffffff;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.scheme-stat-box .lbl {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scheme-stat-box .val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #065f46;
}

.schemes-actions-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   OFFICIAL A4 LANDSCAPE PRINT STYLES
   ========================================================================== */

#printableModelPriceSheet {
  display: none;
}

@page {
  size: A4 landscape;
  margin: 7mm 9mm 7mm 9mm;
}

@media print {
  /* Hide all web application chrome */
  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 8pt !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .portal-header,
  .portal-bar,
  .view-section,
  .modal-overlay,
  .site-footer,
  .toast-outlet,
  button,
  .btn,
  .admin-toolbar,
  .admin-actions-group {
    display: none !important;
  }

  /* Show only the designated printable sheet */
  #printableModelPriceSheet {
    display: block !important;
    position: static !important;
    width: 100% !important;
    background: #ffffff !important;
    color: #0f172a !important;
  }

  .print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1e3a8a;
    padding-bottom: 6px;
    margin-bottom: 8px;
  }

  .print-brand-left-group {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .print-mahindra-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
  }

  .print-divider {
    width: 1.5px;
    height: 34px;
    background: #cbd5e1;
    margin: 0 2px;
  }

  .print-dealer-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
  }

  .print-brand-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
  }

  .print-brand-badge {
    font-size: 6.8pt;
    font-weight: 800;
    background: #e0f2fe;
    color: #0369a1;
    padding: 1.5px 6px;
    border-radius: 3px;
    letter-spacing: 0.05em;
  }

  .print-dealer-code {
    font-size: 6.8pt;
    color: #64748b;
    font-weight: 600;
  }

  .print-dealer-name {
    font-size: 13pt;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.015em;
    margin: 0;
    line-height: 1.2;
  }

  .print-dealer-sub {
    font-size: 7pt;
    color: #475569;
    margin: 1px 0 0;
  }

  .print-meta-card {
    text-align: right;
  }

  .print-model-title {
    font-size: 12pt;
    font-weight: 800;
    color: #1e40af;
    margin: 0 0 1px;
    letter-spacing: -0.01em;
  }

  .print-meta-line {
    font-size: 7.2pt;
    font-weight: 600;
    color: #334155;
  }

  .print-scheme-line {
    font-size: 7pt;
    color: #047857;
    font-weight: 700;
    margin-top: 2px;
  }

  .print-date-line {
    font-size: 6.5pt;
    color: #94a3b8;
    margin-top: 1px;
  }

  /* Table */
  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7pt;
    margin-bottom: 8px;
    border: 1px solid #cbd5e1;
  }

  .print-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 6.5pt;
    border: 1px solid #cbd5e1;
    padding: 3.5px 4px;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .print-table td {
    border: 1px solid #cbd5e1;
    padding: 2.8px 4px;
    vertical-align: middle;
    white-space: nowrap;
  }

  .print-table tbody tr:nth-child(even) {
    background: #f8fafc !important;
  }

  .print-table tr {
    page-break-inside: avoid;
  }

  .td-trim-name {
    font-weight: 700;
    color: #0f172a;
    white-space: normal !important;
    max-width: 220px;
  }

  .text-center {
    text-align: center;
  }

  .text-right {
    text-align: right;
  }

  .td-regular-price.has-offer-striked {
    text-decoration: line-through;
    color: #64748b;
  }

  .td-offer-discount.offer-active {
    font-weight: 700;
    color: #047857;
    background: rgba(16, 185, 129, 0.08) !important;
  }

  .td-net-payable.offer-highlight {
    font-weight: 800;
    color: #047857;
  }

  /* Footer Terms & Signoff */
  .print-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    border-top: 1px solid #cbd5e1;
    padding-top: 6px;
    page-break-inside: avoid;
  }

  .print-terms {
    flex: 1;
  }

  .print-terms h4 {
    font-size: 7pt;
    font-weight: 700;
    margin: 0 0 2px;
    color: #334155;
    text-transform: uppercase;
  }

  .print-terms ul {
    margin: 0;
    padding-left: 12px;
    font-size: 6.2pt;
    color: #64748b;
    line-height: 1.35;
  }

  .print-signoff {
    width: 180px;
    text-align: center;
  }

  .signoff-box {
    border: 1px dashed #94a3b8;
    padding: 6px 8px;
    border-radius: 4px;
    background: #ffffff;
  }

  .signoff-lbl {
    display: block;
    font-size: 6.2pt;
    color: #64748b;
    margin-bottom: 20px;
  }

  .signoff-stamp {
    font-size: 7pt;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
  }

  .signoff-auth {
    display: block;
    font-size: 5.8pt;
    color: #64748b;
  }
}

