:root {
  color-scheme: dark;
  --color-bg: #070b12;
  --color-bg-soft: rgba(22, 163, 74, 0.10);
  --color-card: rgba(14, 22, 34, 0.72);
  --color-text: #edf7f3;
  --color-muted: #9aa8b4;
  --color-border: rgba(255, 255, 255, 0.10);
  --color-primary: #f4fbf7;
  --color-navy: #09111d;
  --color-green: #35d184;
  --color-emerald: #18b979;
  --color-solar: #f5c542;
  --color-blue: #5ab7ff;
  --color-danger: #ff5f6c;
  --color-success: #35d184;
  --shadow-xs: 0 8px 24px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 14px 42px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.44);
  --glass-bg: rgba(13, 20, 32, 0.68);
  --glass-bg-strong: rgba(13, 20, 32, 0.86);
  --glass-line: rgba(255, 255, 255, 0.12);
  --glass-line-soft: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(22px) saturate(145%);
  --premium-ring: 0 0 0 1px rgba(255,255,255,0.08), 0 18px 60px rgba(0,0,0,0.35);
}

html,
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(53, 209, 132, 0.13), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(245, 197, 66, 0.08), transparent 28%),
    linear-gradient(180deg, #080d15 0%, #060912 48%, #05070c 100%);
  color: var(--color-text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.72), transparent 78%);
}

h1, h2, h3, h4, h5, h6,
.brand,
.admin-logo {
  color: #f6fff9;
}

p, small,
.text-muted,
.product-card p,
.panel p,
.role-card p,
.module-card p {
  color: var(--color-muted);
}

a:hover {
  color: #d9ffe9;
}

.site-header,
.advanced-header,
.admin-topbar,
.admin-sidebar,
.panel,
.card,
.auth-card,
.stat-card,
.role-card,
.module-card,
.product-card,
.shop-filters,
.shop-toolbar,
.cart-item,
.cart-summary,
.order-summary,
.customer-box,
.recommendation-panel,
.offer-history article,
.table-wrap,
.account-panel,
.account-metric-card,
.egs-filter-form,
.egs-shop-toolbar,
.egs-product-card,
.account-sidebar,
.account-brand-card,
.account-support-card {
  border-color: var(--glass-line) !important;
  background: var(--glass-bg) !important;
  box-shadow: var(--premium-ring) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.header-main,
.header-mega,
.site-footer,
.modern-footer,
.footer-main,
.footer-bottom {
  border-color: var(--glass-line-soft) !important;
}

.header-main {
  background: rgba(8, 13, 22, 0.82) !important;
  backdrop-filter: var(--glass-blur);
}

.header-topline {
  background: linear-gradient(90deg, rgba(4, 8, 14, 0.96), rgba(8, 41, 34, 0.92)) !important;
}

.header-promo-bar {
  background: linear-gradient(90deg, #031a0c 0%, #052c14 50%, #031a0c 100%) !important;
}

.header-mega {
  background: rgba(9, 15, 24, 0.78) !important;
}

/* Legacy header-link/account-chip pill buttons */
.header-mega a,
.header-link,
.account-chip,
.public-nav a {
  color: #d9e7df;
}

.header-link,
.account-chip,
.footer-badges span,
.auth-proof span,
.hero-proof span,
.product-badges .badge,
.badge,
.status-pill,
.account-status,
.egs-active-filters span,
.egs-product-specs span {
  border-color: var(--glass-line) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #dff9ec !important;
}

/* New header icon buttons + mega links */
.header-icon-btn,
.mega-link {
  border-color: var(--glass-line) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #d9e7df !important;
}

.header-icon-btn:hover,
.mega-link:hover {
  background: rgba(53, 209, 132, 0.12) !important;
  border-color: rgba(53, 209, 132, 0.22) !important;
  color: #7defa0 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22) !important;
}

.mega-link.is-current {
  background: rgba(53, 209, 132, 0.14) !important;
  border-color: rgba(53, 209, 132, 0.30) !important;
  color: #7defa0 !important;
}

.mega-cat-icon {
  background: rgba(53, 209, 132, 0.10) !important;
}

.mega-cat-icon svg {
  color: #35d184;
}

.account-label {
  color: #d9e7df;
}

.hamburger-line {
  background: #c8e6d4;
}

.cart-badge {
  border-color: rgba(7, 11, 20, 0.85) !important;
}



.btn-primary,
.btn.primary,
.account-primary-action,
.egs-filter-actions button,
.egs-card-actions button,
.egs-shop-empty a,
.auth-submit-btn,
.filter-actions .btn-primary {
  color: #06110c !important;
  background: linear-gradient(135deg, #f5c542 0%, #35d184 100%) !important;
  border: 0 !important;
  box-shadow: 0 18px 38px rgba(53, 209, 132, 0.22) !important;
}

.btn-outline,
.btn.outline,
.btn-ghost,
.btn.ghost,
.account-secondary-action,
.egs-filter-actions a,
.egs-card-actions a,
.account-row-action,
.admin-topbar .btn.ghost,
.admin-topbar .btn-outline {
  color: #e8f5ef !important;
  border-color: var(--glass-line) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

input,
select,
textarea,
.form-control,
.shop-filters input,
.shop-filters select,
.egs-filter-field input,
.egs-filter-field select,
.account-form-grid input,
.account-form-grid select,
.account-form-stack input,
.footer-newsletter input {
  color: #f3fff8 !important;
  border-color: var(--glass-line) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

input::placeholder,
textarea::placeholder,
.footer-newsletter input::placeholder {
  color: rgba(230, 242, 235, 0.48) !important;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
  border-color: rgba(53, 209, 132, 0.62) !important;
  box-shadow: 0 0 0 4px rgba(53, 209, 132, 0.14) !important;
}

option {
  color: #f4fbf7;
  background: #0b121d;
}

.home-hero,
.hero,
.shop-hero,
.egs-shop-hero,
.account-dashboard-hero,
.account-page-title,
.auth-body,
.account-auth {
  background:
    linear-gradient(120deg, rgba(5, 9, 16, 0.96), rgba(7, 38, 31, 0.84)),
    radial-gradient(circle at 74% 18%, rgba(245, 197, 66, 0.12), transparent 34%),
    url("../images/hero-solar-home.webp") center/cover no-repeat !important;
}

.home-hero p,
.hero p,
.shop-hero-content p,
.egs-shop-copy p,
.account-dashboard-hero p,
.account-page-title p,
.auth-visual p {
  color: rgba(242, 255, 248, 0.76) !important;
}

.section,
.section-tight,
.lead-section,
.newsletter-band,
.configurator-page,
.cart-layout,
.checkout-layout,
.shop-layout,
.egs-shop-page,
.account-page {
  background: transparent !important;
}

.trust-bar div,
.category-card,
.solution-card,
.finance-card,
.advantage-card,
.feature-card,
.product-detail,
.product-summary,
.product-info,
.add-cart-box,
.quote-strip,
.configurator-form,
.recommendation-list div,
.egs-shop-empty,
.account-empty-state,
.metric-card,
.account-energy-card {
  border-color: var(--glass-line) !important;
  background: rgba(13, 20, 32, 0.66) !important;
  box-shadow: var(--premium-ring) !important;
  backdrop-filter: var(--glass-blur);
}

.product-card .product-image,
.egs-product-media,
.cart-thumb,
.price-row,
.egs-price-box,
.account-table td,
.account-order-row,
.egs-stock-check,
.account-profile-card dl div,
.account-detail-side dl div,
.account-line-items > div,
.account-totals > div {
  border-color: var(--glass-line-soft) !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.product-card h2 a,
.egs-product-card h2 a,
.product-meta .product-brand,
.egs-product-meta span,
.account-metric-card strong,
.account-panel-header h2,
.egs-shop-toolbar h2,
.egs-filter-head h2,
.egs-shop-empty h2,
.account-profile-card dd,
.account-detail-side dd,
.cart-price strong,
.summary-total strong,
.account-grand-total strong {
  color: #f7fff9 !important;
}

.price-row strong,
.egs-price-box strong,
.summary-total strong,
.account-grand-total strong,
.shop-stat strong,
.egs-shop-stats strong {
  color: #35d184 !important;
  -webkit-text-fill-color: initial !important;
}

.site-footer,
.modern-footer {
  background:
    linear-gradient(135deg, rgba(6, 10, 17, 0.98), rgba(6, 32, 27, 0.94)) !important;
}

.footer-column a,
.footer-brand p,
.footer-column span,
.footer-bottom {
  color: rgba(238, 249, 242, 0.68) !important;
}

table {
  color: #edf7f3;
}

th {
  color: #aebdb5 !important;
}

td {
  border-color: var(--glass-line-soft) !important;
}

.table-wrap table,
.account-table,
.admin-content table {
  background: transparent !important;
}

.admin-body {
  background:
    radial-gradient(circle at top left, rgba(53, 209, 132, 0.12), transparent 32%),
    linear-gradient(180deg, #060a11, #05070c) !important;
}

.admin-sidebar {
  background: rgba(8, 13, 22, 0.84) !important;
}

.admin-sidebar nav a {
  color: #b8c7c0 !important;
  border-color: transparent !important;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  color: #f7fff9 !important;
  border-color: var(--glass-line) !important;
  background: rgba(53, 209, 132, 0.12) !important;
}

.admin-content,
.admin-shell {
  background: transparent !important;
}

.alert {
  border-color: var(--glass-line) !important;
  background: rgba(13, 20, 32, 0.86) !important;
  color: #eefbf4 !important;
  backdrop-filter: var(--glass-blur);
}

.alert.success {
  border-color: rgba(53, 209, 132, 0.28) !important;
}

.alert.error {
  border-color: rgba(255, 95, 108, 0.32) !important;
}

.status-new,
.status-processing,
.status-paid,
.status-shipped,
.status-completed,
.status-cancelled,
.in-stock,
.on-order,
.egs-product-media .in-stock,
.egs-product-media .on-order {
  color: #f3fff8 !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.pagination a,
.pagination span {
  color: #dff9ec !important;
  border-color: var(--glass-line) !important;
  background: rgba(255, 255, 255, 0.07) !important;
}

.pagination a.active,
.pagination span.active {
  color: #06110c !important;
  background: linear-gradient(135deg, #f5c542, #35d184) !important;
}

.offcanvas-menu,
.offcanvas-overlay.active + .offcanvas-menu {
  background: rgba(8, 13, 22, 0.94) !important;
  backdrop-filter: var(--glass-blur);
}

@media (max-width: 1080px) {
  .egs-filter-panel {
    background: #070b12 !important;
  }
}

/* Signature public polish for the dark theme */
html.theme-dark body {
  background:
    radial-gradient(circle at 12% 0%, rgba(90, 183, 255, 0.14), transparent 30%),
    radial-gradient(circle at 88% 8%, rgba(53, 209, 132, 0.11), transparent 26%),
    linear-gradient(180deg, #070b12 0%, #060912 58%, #05070c 100%) !important;
}

html.theme-dark body::before {
  opacity: 0.88;
}

html.theme-dark .public-nav {
  gap: 6px;
  padding: 6px;
  background: rgba(9, 15, 24, 0.70) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

html.theme-dark .public-nav a.is-current {
  color: #06110c !important;
  background: linear-gradient(135deg, #5ab7ff 0%, #35d184 100%) !important;
  box-shadow: 0 18px 32px rgba(53, 209, 132, 0.18) !important;
}

html.theme-dark .header-link.is-current,
html.theme-dark .account-chip.is-current {
  border-color: rgba(90, 183, 255, 0.22) !important;
  background: rgba(90, 183, 255, 0.08) !important;
}

html.theme-dark .offcanvas-menu {
  background: rgba(8, 13, 22, 0.97) !important;
}

html.theme-dark .site-footer,
html.theme-dark .modern-footer {
  position: relative;
  overflow: hidden;
}

html.theme-dark .site-footer::before,
html.theme-dark .modern-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(90, 183, 255, 0.10), transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(53, 209, 132, 0.09), transparent 28%);
  pointer-events: none;
}

html.theme-dark .configurator-market-strip span {
  border-color: rgba(255, 255, 255, 0.10) !important;
  background: rgba(9, 15, 24, 0.70) !important;
  color: #e2efe8 !important;
}

html.theme-dark .wizard-selectable-card {
  background: rgba(13, 20, 32, 0.66) !important;
  border-color: var(--glass-line) !important;
}

html.theme-dark .wizard-selectable-card:hover {
  background: rgba(20, 30, 46, 0.82) !important;
}

html.theme-dark .wizard-selectable-card.selected {
  background: linear-gradient(180deg, rgba(53, 209, 132, 0.12), rgba(13, 20, 32, 0.72)) !important;
  border-color: rgba(53, 209, 132, 0.5) !important;
}

html.theme-dark .wizard-selectable-card.power-choice.selected,
html.theme-dark .wizard-selectable-card.storage-choice.selected {
  background: linear-gradient(180deg, rgba(90, 183, 255, 0.08), rgba(53, 209, 132, 0.10)) !important;
}

html.theme-dark .wizard-selectable-card strong,
html.theme-dark .wizard-selectable-card .icon {
  color: #eaf2ff !important;
}

html.theme-dark .wizard-step-bullet span {
  background: rgba(9, 15, 24, 0.8) !important;
  border-color: var(--glass-line) !important;
  color: #9fb0c3 !important;
}

html.theme-dark .wizard-step-bullet.active span {
  background: #35d184 !important;
  border-color: #35d184 !important;
  color: #04240f !important;
  box-shadow: 0 0 0 4px rgba(53, 209, 132, 0.18) !important;
}

html.theme-dark .wizard-step-bullet.completed span {
  background: rgba(53, 209, 132, 0.14) !important;
  border-color: rgba(53, 209, 132, 0.4) !important;
  color: #35d184 !important;
}

html.theme-dark .wizard-custom-row input,
html.theme-dark .wizard-custom-row select {
  background: rgba(9, 15, 24, 0.7) !important;
  border-color: var(--glass-line) !important;
  color: #e2efe8 !important;
}

html.theme-dark .recommendation-panel::before {
  background: linear-gradient(90deg, #5ab7ff, #35d184) !important;
}

html.theme-dark .configuration-summary {
  background:
    radial-gradient(circle at top right, rgba(90, 183, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(12, 18, 30, 0.96), rgba(8, 13, 22, 0.98)) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

html.theme-dark .wizard-custom-panel,
html.theme-dark .summary-grid article,
html.theme-dark .summary-pricing > div {
  background: rgba(13, 20, 32, 0.84) !important;
  border-color: rgba(255, 255, 255, 0.10) !important;
}

html.theme-dark .summary-ai-note {
  background: linear-gradient(135deg, rgba(90, 183, 255, 0.10), rgba(53, 209, 132, 0.08)) !important;
  border-color: rgba(90, 183, 255, 0.22) !important;
}

html.theme-dark .summary-warning-note {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.14), rgba(249, 115, 22, 0.10)) !important;
  border-color: rgba(234, 179, 8, 0.34) !important;
}

html.theme-dark .summary-warning-note strong {
  color: #fbbf24 !important;
}

html.theme-dark .wizard-live-note {
  background: rgba(53, 209, 132, 0.08) !important;
  border-color: rgba(53, 209, 132, 0.16) !important;
  color: #edf7f3 !important;
}

/* Header corner cleanup: one continuous premium glass shell */
.site-header.advanced-header {
  z-index: 1000;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(180deg, rgba(8, 13, 22, 0.94), rgba(8, 13, 22, 0.82)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 18px 45px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.advanced-header .header-topline,
.advanced-header .header-main,
.advanced-header .header-mega {
  max-width: none;
  width: 100%;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.advanced-header .header-topline {
  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
  background:
    linear-gradient(90deg, rgba(5, 9, 16, 0.92), rgba(8, 38, 32, 0.78)) !important;
}

.advanced-header .header-main {
  margin: 0;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
  background: rgba(9, 15, 24, 0.58) !important;
}

.advanced-header .header-mega {
  border-top: 1px solid rgba(255, 255, 255, 0.075) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075) !important;
  background: rgba(6, 10, 17, 0.52) !important;
}

.advanced-header .brand-mark,
.advanced-header .header-link,
.advanced-header .account-chip,
.advanced-header .admin-panel-chip,
.advanced-header .btn,
.advanced-header .header-mega a {
  border-radius: 10px !important;
}

.advanced-header .header-mega a {
  border-radius: 999px !important;
}

/* Premium home index */
.home-premium-hero {
  padding: clamp(58px, 8vw, 112px) 24px 42px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(5, 9, 16, 0.96), rgba(8, 39, 33, 0.88)),
    radial-gradient(circle at 76% 18%, rgba(245, 197, 66, 0.13), transparent 34%),
    url("../images/hero-solar-home.webp") center/cover no-repeat;
}

.home-premium-inner,
.home-section,
.home-trust-strip,
.home-brands-band > div,
.home-lead-section,
.home-newsletter {
  width: min(1380px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.home-premium-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(28px, 5vw, 76px);
  align-items: end;
}

.home-premium-copy h1 {
  max-width: 940px;
  margin: 14px 0 18px;
  color: #fff;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

.home-premium-copy p {
  max-width: 780px;
  color: rgba(242, 255, 248, 0.78);
  font-size: clamp(17px, 1.6vw, 22px);
}

.home-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 6px 11px;
  color: #d9ffe9;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-hero-actions,
.home-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.home-primary-action,
.home-secondary-action,
.home-package-card a,
.home-lead-form button,
.home-newsletter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 900;
}

.home-primary-action,
.home-package-card.featured a,
.home-lead-form button,
.home-newsletter button {
  color: #06110c;
  background: linear-gradient(135deg, #f5c542, #35d184);
  box-shadow: 0 18px 38px rgba(53, 209, 132, 0.22);
}

.home-secondary-action,
.home-package-card a {
  color: #f4fbf7;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.07);
}

.home-primary-action.full {
  width: 100%;
}

.home-proof-row span {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(242, 255, 248, 0.82);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 800;
}

.home-hero-card,
.home-category-card,
.home-solution-grid article,
.home-package-card,
.home-info-grid article,
.home-lead-form,
.home-newsletter,
.home-trust-strip div {
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  box-shadow: var(--premium-ring);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.home-hero-card {
  display: grid;
  gap: 16px;
  border-radius: 18px;
  padding: 24px;
}

.home-hero-card h2,
.home-section-head h2,
.home-lead-copy h2,
.home-newsletter h2 {
  color: #f7fff9;
}

.home-card-metrics {
  display: grid;
  gap: 9px;
}

.home-card-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--glass-line-soft);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.055);
}

.home-card-metrics span {
  color: var(--color-muted);
  font-weight: 800;
}

.home-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: -24px;
  position: relative;
  z-index: 2;
}

.home-trust-strip div {
  border-radius: 16px;
  padding: 20px;
}

.home-trust-strip strong {
  display: block;
  color: #35d184;
  font-size: 32px;
  line-height: 1;
}

.home-trust-strip span {
  color: var(--color-muted);
  font-weight: 800;
}

.home-section {
  padding: clamp(54px, 7vw, 90px) 0 0;
}

.home-section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}

.home-section-head h2 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 48px);
}

.home-section-head p {
  max-width: 700px;
}

.home-category-grid,
.home-solution-grid,
.home-package-grid,
.home-info-grid {
  display: grid;
  gap: 18px;
}

.home-category-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.home-category-card,
.home-solution-grid article,
.home-package-card,
.home-info-grid article {
  border-radius: 18px;
  padding: 22px;
}

.home-category-card span,
.home-solution-grid span,
.home-package-card > span {
  color: #f5c542;
  font-weight: 900;
}

.home-category-card h3,
.home-solution-grid h3,
.home-package-card h3,
.home-info-grid h3 {
  margin: 10px 0 8px;
  color: #f7fff9;
}

.home-category-card strong {
  display: inline-flex;
  margin-top: 10px;
  color: #35d184;
}

.home-solution-grid,
.home-package-grid,
.home-info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-package-card.featured {
  border-color: rgba(53, 209, 132, 0.38);
  background: rgba(16, 49, 39, 0.78);
}

.home-package-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.home-package-card li {
  color: #dceae3;
}

.home-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-info-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-featured-products .product-grid {
  margin-top: 0;
}

.home-brands-band {
  padding: 70px 0 0;
}

.home-brands-band > div {
  display: grid;
  gap: 18px;
  border: 1px solid var(--glass-line);
  border-radius: 18px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.055);
}

.home-brand-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.home-brand-strip span {
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #dff9ec;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 900;
}

.home-lead-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 78px 0 0;
}

.home-lead-copy h2 {
  margin: 12px 0;
  font-size: clamp(32px, 4.5vw, 56px);
}

.home-lead-form,
.home-newsletter {
  display: grid;
  gap: 16px;
  border-radius: 18px;
  padding: 24px;
}

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

.home-lead-form label,
.home-newsletter label {
  display: grid;
  gap: 7px;
  color: #dceae3;
  font-weight: 900;
}

.home-lead-form input,
.home-lead-form select,
.home-lead-form textarea,
.home-newsletter input {
  width: 100%;
  border: 1px solid var(--glass-line);
  border-radius: 10px;
  padding: 12px 13px;
  color: #f3fff8;
  background: rgba(255, 255, 255, 0.07);
}

.home-check {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.home-check input {
  width: auto;
}

.home-newsletter {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  align-items: center;
  margin-top: 70px;
  margin-bottom: 70px;
}

.home-newsletter form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 12px;
}

@media (max-width: 1080px) {
  .home-premium-inner,
  .home-lead-section,
  .home-newsletter,
  .home-info-grid,
  .home-info-grid.four,
  .home-solution-grid,
  .home-package-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .home-premium-inner,
  .home-section,
  .home-trust-strip,
  .home-brands-band > div,
  .home-lead-section,
  .home-newsletter {
    width: min(100% - 28px, 1380px);
  }

  .home-premium-hero {
    padding-top: 44px;
  }

  .home-premium-copy h1 {
    font-size: clamp(36px, 12vw, 56px);
  }

  .home-section-head,
  .home-newsletter form,
  .home-form-pair {
    grid-template-columns: 1fr;
    display: grid;
  }

  .home-trust-strip {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }
}

/* =====================================================================
   ADMIN DARK-MODE FIXES
   admin.css codeaza fundaluri/culori deschise fixe (#fff, #F8FAFC, navy)
   care nu se adaptau temei dark. Scopam totul sub html.theme-dark ca sa
   nu afectam tema original (light).
   ===================================================================== */

/* --- Tabele admin: header, hover, coduri, badge muted --- */
html.theme-dark .table-wrap th {
  background-color: rgba(255, 255, 255, 0.045) !important;
  color: #d2ded7 !important;
  border-bottom-color: var(--glass-line) !important;
}

html.theme-dark .table-wrap tr:hover td {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

html.theme-dark .table-wrap td code {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #dff0e7 !important;
  border-color: var(--glass-line) !important;
}

html.theme-dark .table-wrap td .badge.muted {
  background-color: rgba(255, 255, 255, 0.09) !important;
  color: #cdd9d2 !important;
  border-color: var(--glass-line) !important;
}

/* --- Filtre / cautare --- */
html.theme-dark .filters.compact {
  background: var(--glass-bg) !important;
  border-color: var(--glass-line) !important;
}

/* --- Permission cards hover --- */
html.theme-dark .permission-check:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

/* --- Carduri/panouri cu fundal alb fix --- */
html.theme-dark .quotes-stat-card,
html.theme-dark .quote-workflow {
  background: var(--glass-bg) !important;
  border-color: var(--glass-line) !important;
}

html.theme-dark .quote-context-box,
html.theme-dark .quote-message-box,
html.theme-dark .quote-detail-grid div,
html.theme-dark .quote-offer-item,
html.theme-dark .quote-workflow-step,
html.theme-dark .product-media-card,
html.theme-dark .product-media-file {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--glass-line) !important;
}

/* Imaginile de produs raman pe fundal deschis (pentru PNG-uri transparente),
   dar mai bland decat alb pur. */
html.theme-dark .admin-body .product-media-thumb {
  background: #e9eef2 !important;
}

/* --- Text navy (inchis) devine deschis pe fundal dark --- */
html.theme-dark .table-wrap td code,
html.theme-dark .product-media-radio,
html.theme-dark .product-media-file span,
html.theme-dark .quote-type-pill,
html.theme-dark .quote-detail-grid dd,
html.theme-dark .quote-workflow-step.is-done {
  color: #e7f2ec !important;
}

html.theme-dark .quote-type-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--glass-line) !important;
}

/* --- Numere statistici si badge-uri colorate: tonuri mai luminoase --- */
html.theme-dark .quotes-stat-card.is-new strong { color: #6ea8ff !important; }
html.theme-dark .quotes-stat-card.is-review strong { color: #f6b651 !important; }
html.theme-dark .quotes-stat-card.is-sent strong { color: #c4a3f7 !important; }

html.theme-dark .badge.badge-info {
  background: rgba(96, 165, 250, 0.16) !important;
  color: #bfdbfe !important;
  border-color: rgba(96, 165, 250, 0.32) !important;
}
html.theme-dark .badge.badge-warn {
  background: rgba(251, 191, 36, 0.16) !important;
  color: #fde68a !important;
  border-color: rgba(251, 191, 36, 0.32) !important;
}
html.theme-dark .badge.badge-accent {
  background: rgba(167, 139, 250, 0.16) !important;
  color: #ddd6fe !important;
  border-color: rgba(167, 139, 250, 0.32) !important;
}
html.theme-dark .badge.badge-danger {
  background: rgba(248, 113, 113, 0.16) !important;
  color: #fecaca !important;
  border-color: rgba(248, 113, 113, 0.32) !important;
}

/* --- Tab-uri setari: hover vizibil pe dark --- */
html.theme-dark .settings-tabs .tab-btn:hover:not(.active) {
  background-color: rgba(255, 255, 255, 0.06) !important;
}

html.theme-dark .settings-shortcut-card {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--glass-line) !important;
}

html.theme-dark .settings-shortcut-card strong {
  color: #eaf6ff !important;
}

html.theme-dark .settings-shortcut-card p {
  color: rgba(220, 235, 228, 0.74) !important;
}

/* --- AI digest: text lizibil pe panourile colorate translucide --- */
html.theme-dark .ai-digest-summary { color: #eaf6ff !important; }

/* --- Editor texte emailuri: chips variabile + cod --- */
html.theme-dark .tpl-var {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #dff0e7 !important;
}

/* --- Product form premium (dark) --- */
html.theme-dark .product-form-preview-media {
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)) !important;
}

html.theme-dark .product-form-pill {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--glass-line) !important;
}

html.theme-dark .product-form-tabs {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--glass-line) !important;
}

html.theme-dark .product-form-tabs .tab-btn:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

html.theme-dark .product-form-highlight-item {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--glass-line) !important;
}

html.theme-dark .product-form-preview {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: var(--glass-line) !important;
}

html.theme-dark .product-form-footer-inner {
  background: rgba(13, 20, 32, 0.92) !important;
  border-color: var(--glass-line) !important;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35), var(--premium-ring) !important;
  backdrop-filter: var(--glass-blur);
}

html.theme-dark .review-site-section {
  background: linear-gradient(180deg, rgba(13, 20, 32, 0.35) 0%, transparent 100%);
}

html.theme-dark .review-status-note.is-pending {
  background: rgba(234, 88, 12, 0.14) !important;
  color: #fdba74 !important;
  border-color: rgba(234, 88, 12, 0.28) !important;
}

html.theme-dark .review-status-note.is-approved {
  background: rgba(22, 163, 74, 0.14) !important;
  color: #86efac !important;
  border-color: rgba(22, 163, 74, 0.28) !important;
}
