/* ============================================================
   SunEnergy Mobile App - Luxury Solar Theme & Mobile Styles
   Palette: Light Green (#10b981), Pure White (#ffffff),
            Golden Sun & Amber (#f59e0b, #fbbf24), Dark Emerald (#07130e)
   ============================================================ */

:root {
  /* Primary & Accents */
  --green-light: #22c55e;
  --green-vibrant: #10b981;
  --green-glow: rgba(34, 197, 94, 0.35);
  --green-soft: rgba(34, 197, 94, 0.12);

  --gold-sun: #fbbf24;
  --gold-amber: #f59e0b;
  --gold-dark: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --gold-gradient: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  --green-gradient: linear-gradient(135deg, #22c55e, #10b981, #059669);

  /* Neutrals & Dark Glass */
  --bg-deep: #07130e;
  --bg-card: #0d2218;
  --bg-card-hover: #132e21;
  --bg-card-glass: rgba(13, 34, 24, 0.82);
  --border-glass: rgba(34, 197, 94, 0.22);
  --border-gold: rgba(245, 158, 11, 0.35);

  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 8px 30px rgba(34, 197, 94, 0.22);
  --shadow-gold: 0 8px 30px rgba(245, 158, 11, 0.28);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-family: 'Cairo', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-white);
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 85% 12%, rgba(245, 158, 11, 0.09), transparent 40%),
              radial-gradient(circle at 15% 85%, rgba(34, 197, 94, 0.12), transparent 45%),
              var(--bg-deep);
  color: var(--text-white);
  padding-bottom: 95px; /* Space for bottom navigation */
  line-height: 1.55;
  overflow-x: hidden;
}

/* Mobile Frame Container */
.mobile-app-shell {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  background: rgba(7, 19, 14, 0.95);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.6);
}

@media (min-width: 600px) {
  .mobile-app-shell {
    border-left: 1px solid var(--border-glass);
    border-right: 1px solid var(--border-glass);
  }
}

/* ================= Top App Bar ================= */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 19, 14, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 16px;
}

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

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  border-radius: 8px;
  filter: drop-shadow(0 2px 8px rgba(34, 197, 94, 0.3));
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--green-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.brand-tag .status-dot {
  width: 6px;
  height: 6px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.currency-btn {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-sun);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.currency-btn:hover {
  background: var(--gold-gradient);
  color: #000;
}

.lang-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 8px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active {
  background: var(--green-gradient);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--green-glow);
}

/* ================= Hero Banner ================= */
.hero-banner {
  padding: 20px 18px 14px;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.08) 0%, transparent 100%);
  border-bottom: 1px solid rgba(34, 197, 94, 0.1);
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid var(--green-light);
  border-radius: 50px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-light);
  margin-bottom: 10px;
}

.hero-title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text-white);
}

.hero-title .highlight-gold {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.quick-stats-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.quick-stat-badge {
  flex: 1;
  background: rgba(13, 34, 24, 0.8);
  border: 1px solid var(--border-glass);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quick-stat-badge i {
  font-size: 1.1rem;
  color: var(--gold-sun);
}

.badge-text b {
  display: block;
  font-size: 0.85rem;
  color: var(--text-white);
}

.badge-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ================= Tab Views ================= */
.tab-view {
  display: none;
  padding: 16px 16px 30px;
  animation: fadeIn 0.3s ease;
}

.tab-view.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Section Headings */
.section-title-wrap {
  margin-bottom: 14px;
}

.section-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--gold-sun);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.section-h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
}

.section-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ================= Step 1: Bill Input ================= */
.card-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.bill-input-box {
  display: flex;
  align-items: center;
  background: rgba(7, 19, 14, 0.85);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  margin: 14px 0 12px;
  transition: all 0.2s;
}

.bill-input-box:focus-within {
  border-color: var(--green-light);
  box-shadow: 0 0 16px var(--green-glow);
}

.bill-currency-symbol {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold-sun);
  margin-inline-end: 10px;
}

.bill-input-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  font-family: inherit;
}

.bill-per-month {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.bill-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bill-preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.bill-preset-chip:hover,
.bill-preset-chip.active {
  background: var(--green-gradient);
  border-color: var(--green-light);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--green-glow);
}

/* ================= Packages Grid ================= */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.package-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-light);
  box-shadow: var(--shadow-glow);
}

.package-card.selected {
  border-color: var(--green-light);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.15) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 20px var(--green-glow);
}

.popular-badge {
  position: absolute;
  top: -10px;
  right: 12px;
  background: var(--gold-gradient);
  color: #000000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px var(--gold-glow);
}

.package-check {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: all 0.2s;
}

.package-card.selected .package-check {
  background: var(--green-light);
  color: #ffffff;
  box-shadow: 0 2px 8px var(--green-glow);
}

.package-header {
  margin-top: 8px;
}

.panels-count {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--gold-sun);
  line-height: 1;
}

.panels-label {
  font-size: 0.78rem;
  color: var(--text-white);
  font-weight: 700;
  display: block;
}

.package-power, .package-area {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.package-price-wrap {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.package-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-white);
  display: block;
}

.package-vat-note {
  font-size: 0.65rem;
  color: var(--green-light);
  font-weight: 600;
}

.package-desc {
  font-size: 0.68rem;
  color: var(--text-subtle);
  margin-top: 6px;
  line-height: 1.3;
}

/* ================= Battery Selection ================= */
.batteries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.battery-card {
  position: relative;
  background: var(--bg-card);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.battery-card:hover {
  border-color: var(--gold-sun);
}

.battery-card.selected {
  border-color: var(--gold-sun);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 16px var(--gold-glow);
}

.battery-check {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: transparent;
}

.battery-card.selected .battery-check {
  background: var(--gold-sun);
  color: #000;
}

.battery-icon {
  font-size: 1.4rem;
  color: var(--green-light);
  margin-bottom: 6px;
}

.battery-card.selected .battery-icon {
  color: var(--gold-sun);
}

.battery-capacity {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
}

.battery-name {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.battery-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-sun);
  margin-top: 8px;
}

.battery-price.free {
  color: var(--green-light);
}

.battery-autonomy {
  font-size: 0.68rem;
  color: var(--green-light);
  margin-top: 4px;
}

/* ================= Quote Result Box ================= */
.quote-summary-card {
  background: linear-gradient(180deg, #11291d 0%, #0c1e15 100%);
  border: 2px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  box-shadow: var(--shadow-glow);
  margin-top: 20px;
}

.quote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote-header h3 i {
  color: var(--gold-sun);
}

.spec-pills-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.spec-pill {
  flex: 1;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.spec-pill span {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.spec-pill b {
  font-size: 0.88rem;
  color: var(--text-white);
}

.price-breakdown-table {
  margin: 14px 0;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.price-row.total-row {
  padding: 12px 0 6px;
  margin-top: 8px;
  border-top: 2px dashed rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.total-row .total-label {
  font-size: 1.05rem;
  font-weight: 800;
}

.total-row .total-amount {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-sun);
  text-shadow: 0 2px 10px var(--gold-glow);
}

/* Savings Box */
.savings-metric-box {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid var(--green-light);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 14px 0;
}

.metric-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.metric-row span {
  color: var(--text-muted);
}

.metric-row strong {
  color: var(--green-light);
  font-size: 0.95rem;
}

.amort-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0 6px;
}

.amort-bar-fill {
  height: 100%;
  background: var(--green-gradient);
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Action CTA Buttons */
.cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.btn-whatsapp-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.2s;
  animation: pulseWa 3s infinite;
}

.btn-whatsapp-primary:hover {
  background: #1ebc59;
  transform: translateY(-2px);
}

@keyframes pulseWa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.65); }
}

.btn-secondary-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--green-light);
}

/* ================= Scanner Tab ================= */
.scanner-dropzone {
  border: 2px dashed var(--green-light);
  background: rgba(34, 197, 94, 0.05);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  margin: 16px 0;
}

.scanner-dropzone:hover,
.scanner-dropzone.dragover {
  background: rgba(34, 197, 94, 0.12);
  border-color: var(--gold-sun);
}

.dropzone-icon {
  font-size: 2.8rem;
  color: var(--green-light);
  margin-bottom: 12px;
}

.dropzone-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-white);
}

.dropzone-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Scan Preview & Laser */
.scan-preview-box {
  position: relative;
  width: 100%;
  max-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-glass);
  margin: 14px 0;
  background: #000;
}

.scan-preview-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.85;
}

.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green-light);
  box-shadow: 0 0 15px var(--green-light), 0 0 30px #22c55e;
  animation: laserScan 2s ease-in-out infinite;
  z-index: 10;
}

@keyframes laserScan {
  0% { top: 5%; }
  50% { top: 90%; }
  100% { top: 5%; }
}

.scan-status-pill {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-glass);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-sun);
  display: inline-block;
  margin-bottom: 12px;
}

.sample-bills-row {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.sample-bill-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-white);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all 0.2s;
}

.sample-bill-btn:hover {
  background: var(--green-soft);
  border-color: var(--green-light);
}

/* ================= Map Tab ================= */
.map-controls-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.map-search-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.map-btn {
  background: var(--green-gradient);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

#solarMap {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-glass);
  margin-bottom: 14px;
  z-index: 10;
}

.custom-solar-marker {
  position: relative;
}

.marker-icon {
  width: 36px;
  height: 36px;
  background: var(--gold-gradient);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.marker-pulse {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-glow);
  animation: markerPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes markerPing {
  75%, 100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.regions-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.region-chip {
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}

.region-chip:hover {
  background: var(--gold-gradient);
  color: #000;
}

/* ================= Appliances Tab ================= */
.appliance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: all 0.2s;
}

.appliance-card.active {
  border-color: var(--green-light);
  background: rgba(34, 197, 94, 0.07);
}

.appliance-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.appliance-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--gold-sun);
}

.appliance-info {
  flex: 1;
}

.appliance-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
}

.appliance-watts {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.appliance-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 3px 6px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: var(--green-light);
}

.qty-val {
  font-size: 0.95rem;
  font-weight: 800;
  min-width: 18px;
  text-align: center;
}

.appliance-slider-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.slider-label b {
  color: var(--gold-sun);
}

.appliance-slider {
  width: 100%;
  accent-color: var(--green-light);
}

.daily-item-kwh {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.daily-item-kwh strong {
  color: var(--green-light);
}

/* ================= Bottom Tab Bar ================= */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 520px;
  margin: 0 auto;
  background: rgba(7, 19, 14, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-around;
  padding: 8px 6px 12px;
  z-index: 2000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  font-family: inherit;
}

.bottom-nav-item i {
  font-size: 1.25rem;
  transition: transform 0.2s;
}

.bottom-nav-item.active {
  color: var(--green-light);
}

.bottom-nav-item.active i {
  color: var(--gold-sun);
  transform: translateY(-2px);
}

/* Toast Notifications */
.app-toast {
  position: fixed;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #11291d;
  border: 1px solid var(--green-light);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 3000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.app-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================= Projects Showcase Gallery ================= */
.projects-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.project-showcase-card {
  position: relative;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-showcase-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border-color: var(--green-light);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 19, 14, 0.1) 0%, rgba(7, 19, 14, 0.88) 100%);
}

.project-content-wrap {
  position: relative;
  z-index: 2;
}

.project-tag {
  display: inline-block;
  background: var(--gold-gradient);
  color: #000;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 4px;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.project-stats {
  font-size: 0.72rem;
  color: var(--green-light);
  font-weight: 600;
  display: flex;
  gap: 12px;
  margin-top: 2px;
}

/* ================= Official Devis Modal ================= */
.devis-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.devis-modal-card {
  background: #0d2218;
  border: 2px solid var(--gold-sun);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.modal-close-btn:hover {
  background: var(--green-light);
}

.devis-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 14px;
}

.devis-voucher-table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.devis-voucher-table td {
  padding: 8px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.devis-voucher-table tr:last-child td {
  border-bottom: none;
  padding-top: 12px;
}

/* Print Styles */
@media print {
  .app-header, .bottom-nav-bar, .hero-banner, .cta-stack, .bill-presets-grid, .modal-close-btn {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .mobile-app-shell {
    max-width: 100% !important;
    box-shadow: none !important;
  }
}

/* Video Play Badge */
.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.9);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  transition: transform 0.2s, background 0.2s;
  z-index: 5;
}

.project-showcase-card:hover .video-play-badge {
  transform: translate(-50%, -50%) scale(1.15);
  background: var(--gold-gradient);
}

.admin-del-proj-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(239, 68, 68, 0.85);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.admin-del-proj-btn:hover {
  background: #ef4444;
  transform: scale(1.1);
}

/* Admin Add Project Form Styles */
.form-group-block {
  margin-bottom: 12px;
}

.form-group-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-sun);
  margin-bottom: 4px;
}

.form-input-control {
  width: 100%;
  background: rgba(7, 19, 14, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
}

.form-input-control:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 10px var(--green-glow);
}

.form-radio-row {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.form-radio-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #fff;
  cursor: pointer;
}

.admin-btn-accent {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--border-gold);
  color: var(--gold-sun);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.admin-btn-accent:hover {
  background: var(--gold-gradient);
  color: #000;
}

/* Video Player Modal Video Element */
.project-video-element {
  width: 100%;
  max-height: 420px;
  border-radius: var(--radius-md);
  background: #000;
  display: block;
}

/* Lightbox Image */
.lightbox-img-element {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  display: block;
  margin: 0 auto;
}



/* ================= Customer contact (lead) box — PRO ================= */
.contact-lead-box {
  position: relative;
  background: linear-gradient(160deg, rgba(34,197,94,0.10), rgba(13,34,24,0.85) 55%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px 16px 14px;
  margin: 18px 0 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.contact-lead-box::before {
  content: '';
  position: absolute; inset-block: 0; inset-inline-start: 0;
  width: 3px; background: var(--gold-gradient);
}
.contact-lead-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.contact-lead-icon {
  flex: 0 0 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--green-gradient); color: #fff; font-size: 1.05rem;
  box-shadow: var(--shadow-glow);
}
.contact-lead-title { font-weight: 800; font-size: 1rem; color: #fff; line-height: 1.2; }
.contact-lead-sub { font-size: 0.74rem; color: var(--text-muted); margin-top: 2px; line-height: 1.35; }

.field { margin-bottom: 14px; }
.field-label {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: .02em;
  color: #cbd5e1; margin-bottom: 6px;
}
.field-label .req { color: var(--gold-sun); font-style: normal; }

.field-control {
  position: relative;
  display: flex; align-items: center;
  height: 52px;
  background: rgba(7, 19, 14, 0.85);
  border: 1.5px solid var(--border-glass);
  border-radius: 14px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field-control:hover { border-color: rgba(34,197,94,0.45); }
.field-control:focus-within {
  border-color: var(--green-light);
  box-shadow: 0 0 0 4px var(--green-soft), 0 0 18px var(--green-glow);
  background: rgba(7, 19, 14, 1);
}
.field-icon {
  position: absolute; inset-inline-start: 14px;
  color: var(--text-subtle); font-size: 0.95rem; pointer-events: none;
  transition: color .2s;
}
.field-control:focus-within .field-icon { color: var(--green-light); }

.field-input {
  flex: 1; min-width: 0; height: 100%;
  background: transparent; border: 0; outline: 0;
  color: #fff; font-family: inherit;
  font-size: 16px; /* prevents iOS zoom */
  font-weight: 600;
  padding-inline: 42px 40px;
}
.field-input::placeholder { color: var(--text-subtle); font-weight: 500; }
.field-input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  box-shadow: 0 0 0 100px #0d2218 inset;
  border-radius: 12px;
}

.field-ok {
  position: absolute; inset-inline-end: 14px;
  color: var(--green-light); font-size: 1.05rem;
  opacity: 0; transform: scale(.5);
  transition: opacity .2s, transform .25s cubic-bezier(.3,1.6,.5,1);
  pointer-events: none;
}
.field.is-valid .field-control { border-color: rgba(34,197,94,0.7); }
.field.is-valid .field-ok { opacity: 1; transform: scale(1); }

.field-error-msg {
  display: none; align-items: center; gap: 6px;
  margin-top: 6px; font-size: 0.72rem; font-weight: 600; color: #f87171;
}
.field-error-msg::before {
  content: '\f071'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem;
}
.field.is-invalid .field-error-msg { display: flex; }
.field.is-invalid .field-control {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239,68,68,0.14);
  animation: fieldShake .35s;
}
@keyframes fieldShake {
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Phone: country prefix segment */
.phone-control .phone-prefix {
  flex: 0 0 auto; height: 100%;
  appearance: none; -webkit-appearance: none;
  background: rgba(34,197,94,0.10) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round'/></svg>") no-repeat right 10px center;
  color: #fff; font-family: inherit; font-size: 0.9rem; font-weight: 800;
  border: 0; border-right: 1.5px solid var(--border-glass);
  border-radius: 12px 0 0 12px;
  padding: 0 28px 0 14px;
  outline: 0; cursor: pointer;
  color-scheme: dark;
}
.phone-control .phone-prefix option { background: #0d2218; color: #fff; }
.phone-control .field-input { padding-inline: 14px 40px; letter-spacing: .04em; }

.contact-privacy {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; color: var(--text-muted);
  padding-top: 10px; border-top: 1px dashed var(--border-glass);
}
.contact-privacy i { color: var(--gold-sun); }
