/* ==========================================================================
   WapdaBillCheck.pk — High-End Electric Design System
   Inspired by Modern Clean Energy & EV Charging Platform Aesthetics
   Pure CSS, 100% SEO-Safe (All Schema, Titles, Canonicals & Content Untouched)
   ========================================================================== */

:root {
  /* High-Tech Electric Brand Palette */
  --lime: #b2ff00;
  --lime-hover: #c4ff1a;
  --lime-glow: rgba(178, 255, 0, 0.35);
  --lime-light: rgba(178, 255, 0, 0.12);

  --dark-bg: #070b12;
  --dark-surface: #0d1527;
  --dark-card: #111a2e;
  --dark-border: rgba(255, 255, 255, 0.1);
  --dark-border-hover: rgba(178, 255, 0, 0.4);

  --primary: #070b12;
  --primary-hover: #0b3d91;
  --primary-blue: #0b3d91;
  --primary-blue-hover: #1d4ed8;

  /* Surfaces & Typography */
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #070b12;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-focus: #b2ff00;

  --font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;

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

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px -2px rgba(0, 0, 0, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 35px -8px rgba(0, 0, 0, 0.12), 0 0 25px rgba(178, 255, 0, 0.18);
  --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Container */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 64px;
}

/* Headings */
h1, h2, h3, h4 {
  color: var(--text-main);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

h1 {
  font-size: 38px;
  margin: 0 0 16px 0;
}

h2 {
  font-size: 28px;
  margin: 54px 0 22px 0;
  padding-bottom: 0;
  border-bottom: none;
  position: relative;
}

h3 {
  font-size: 21px;
  margin: 28px 0 12px 0;
}

p {
  margin: 0 0 16px 0;
}

.lede {
  font-size: 18.5px;
  color: var(--text-muted);
  line-height: 1.65;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation (Dark Sleek Glass Navbar)
   ========================================================================== */

/* ==========================================================================
   Navbar (inner pages — solid bar)
   ========================================================================== */

.top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(7, 11, 18, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35);
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 22px;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 0;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.95;
}

.brand span {
  color: var(--lime);
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(240px, 52vw);
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--lime);
  color: #070b12;
  font-size: 16px;
  line-height: 1;
}

.site-nav,
.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  align-items: center;
}

.site-nav a,
.top nav a {
  padding: 8px 14px;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
  text-decoration: none;
}

.site-nav a:hover,
.top nav a:hover {
  background: transparent;
  color: #ffffff;
  text-decoration: none;
}

.site-nav a.nav-active,
.top nav a.nav-active {
  background: transparent;
  color: var(--lime);
  font-weight: 700;
  box-shadow: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.is-open .nav-dropdown-toggle {
  color: #ffffff;
}

.nav-dropdown-toggle.nav-active {
  color: var(--lime);
  font-weight: 700;
}

.nav-caret {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  padding: 8px;
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown-menu[hidden] {
  display: none;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a span {
  color: rgba(226, 232, 240, 0.55);
  font-size: 12px;
  font-weight: 500;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.nav-active {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-dropdown-menu a.nav-active {
  color: var(--lime);
}

.nav-dropdown-menu a.nav-active span {
  color: rgba(178, 255, 0, 0.65);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 9px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  gap: 5px;
  margin-left: auto;
  z-index: 30;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.top.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.top.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.top.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.top-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.top-phone {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-phone-icon {
  flex-shrink: 0;
  color: var(--lime);
}

.top-phone:hover {
  color: #ffffff;
  text-decoration: none;
}

.nav-search {
  position: relative;
}

.nav-search-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-search-toggle:hover,
.nav-search.is-open .nav-search-toggle {
  background: var(--lime);
  border-color: var(--lime);
  color: #070b12;
}

.nav-search-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 28px));
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  padding: 10px;
  z-index: 40;
}

.nav-search-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  color: #0f172a;
  background: #f8fafc;
}

.nav-search-input:focus {
  outline: none;
  border-color: #84cc16;
  box-shadow: 0 0 0 3px rgba(178, 255, 0, 0.25);
  background: #ffffff;
}

.nav-search-results {
  margin-top: 8px;
  max-height: 260px;
  overflow: auto;
}

.nav-search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.nav-search-results a span {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
}

.nav-search-results a:hover,
.nav-search-results a.is-active {
  background: #f1f5f9;
}

.nav-search-empty {
  padding: 12px;
  color: #64748b;
  font-size: 13px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Home hero — full-bleed Evolta-style stage
   ========================================================================== */

.page-home {
  background: var(--bg-page);
}

.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  overflow: hidden;
}

.hero-stage-media {
  position: absolute;
  inset: 0;
  background:
    url("../images/hero-electricity.png") center right / cover no-repeat;
  transform: scale(1.02);
  animation: hero-ken 18s ease-out forwards;
}

.hero-stage-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(4, 8, 14, 0.55) 0%, rgba(4, 8, 14, 0.72) 70%),
    linear-gradient(180deg, rgba(4, 8, 14, 0.55) 0%, rgba(4, 8, 14, 0.35) 40%, rgba(4, 8, 14, 0.75) 100%);
  pointer-events: none;
}

.top-overlay {
  position: relative;
  z-index: 5;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  padding: 22px clamp(20px, 4vw, 48px);
}

.hero-stage-content {
  position: relative;
  z-index: 4;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px) 40px;
}

.hero-title {
  margin: 0 0 12px;
  max-width: 560px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.hero-title-line {
  display: block;
}

.hero-lime {
  color: var(--lime);
}

.hero-stage .lede {
  font-size: clamp(14px, 1.15vw, 16px);
  color: rgba(241, 245, 249, 0.82);
  line-height: 1.55;
  margin: 0;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.btn-hero-explore {
  background: var(--lime);
  color: #070b12;
  font-size: 13.5px;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 9px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-hero-explore:hover {
  background: var(--lime-hover);
  color: #000000;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-hero-quote {
  background: rgba(8, 12, 20, 0.35);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 9px;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-hero-quote:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #ffffff;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.hero-stats-card {
  display: flex;
  align-self: flex-end;
  margin-top: auto;
  background: rgba(10, 14, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(14px);
  gap: 4px;
  max-width: 100%;
}

.stat-col {
  display: flex;
  flex-direction: column;
  padding: 0 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 0;
}

.stat-col:last-child {
  border-right: none;
  padding-right: 4px;
}

.stat-col:first-child {
  padding-left: 4px;
}

.stat-tag {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
}

.stat-val {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin: 3px 0 1px;
  letter-spacing: -0.02em;
}

.stat-sub {
  font-size: 11px;
  color: #94a3b8;
  white-space: nowrap;
}

.page-home > .wrap {
  padding-top: 48px;
}

@keyframes hero-ken {
  from { transform: scale(1.06); }
  to { transform: scale(1.0); }
}

/* Company page hero — clean light header */
.company-hero {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 28px;
  color: var(--text-main);
  box-shadow: none;
  margin-bottom: 28px;
  position: relative;
  overflow: visible;
}

.company-hero::before {
  display: none;
}

.company-hero h1 {
  color: var(--text-main);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 12px 0;
  max-width: 860px;
  position: relative;
  z-index: 2;
}

.company-hero .lede {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0 0 12px 0;
  max-width: 760px;
  position: relative;
  z-index: 2;
}

.hero-logo-wrap {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.quick {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
  position: relative;
  z-index: 2;
}

.quick a {
  color: var(--text-main);
}

/* ==========================================================================
   Bill Checker — base (company pages) + premium home panel
   ========================================================================== */

.checker, .viewer, .calc-result {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 28px 28px 24px;
  box-shadow: none;
  margin: 28px 0 40px;
  position: relative;
  overflow: hidden;
}

.checker {
  border-top: 1px solid #e5e7eb;
}

.page-home .checker {
  margin: 0;
  padding: 0;
  z-index: 1;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  width: 100%;
  max-width: 760px;
}

.page-home .checker-hero {
  width: 100%;
  max-width: 760px;
}

.checker-panel {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
  color: var(--text-body);
}

.checker-head {
  margin-bottom: 20px;
  max-width: 720px;
}

.checker h1,
.checker h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 0;
  padding-bottom: 0;
  border-bottom: none;
  letter-spacing: -0.025em;
}

.page-home .checker h1,
.page-home .checker h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--text-main);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.checker h2::after {
  display: none;
}

.checker > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 18px;
}

.checker-head > p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
  line-height: 1.55;
}

.form-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 16px 18px;
  align-items: start;
}

.form-field {
  min-width: 0;
}

.bill-form label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-main);
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.page-home .bill-form label {
  font-size: 12px;
  color: #334155;
  margin-top: 0;
  letter-spacing: 0.05em;
}

.bill-form input:not([type=checkbox]),
.bill-form select,
#calc-form input:not([type=checkbox]) {
  width: 100%;
  padding: 14px 16px;
  margin-top: 8px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  color: #0f172a;
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.page-home .bill-form input:not([type=checkbox]),
.page-home .bill-form select {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.bill-form select {
  cursor: pointer;
  appearance: auto;
}

.bill-form input:not([type=checkbox]):focus,
.bill-form select:focus,
#calc-form input:not([type=checkbox]):focus {
  outline: none;
  border-color: var(--lime);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(178, 255, 0, 0.28);
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.remember-label,
.bill-form label:has(input[type=checkbox]) {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  margin-top: 0;
  cursor: pointer;
  color: var(--text-body);
  font-size: 13.5px;
}

.bill-form input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--lime);
  cursor: pointer;
  flex-shrink: 0;
}

.prefix-hint {
  display: none;
  background: rgba(178, 255, 0, 0.12);
  color: #365314;
  border: 1px solid rgba(178, 255, 0, 0.4);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  margin-top: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.prefix-hint:not(:empty) {
  display: block;
}

.page-home .prefix-hint {
  background: rgba(178, 255, 0, 0.12);
  color: #3f6212;
  border-color: rgba(178, 255, 0, 0.4);
}

.form-footer .bill-form button,
.bill-form .form-footer button,
.form-footer button[type=submit] {
  width: auto;
  min-width: 180px;
  margin-top: 0;
  flex: 0 0 auto;
}

.bill-form button[type=submit],
#calc-form > button[type=submit],
.open-bill {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: none;
  transition: background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.bill-form button[type=submit]:hover,
#calc-form > button[type=submit]:hover,
.open-bill:hover {
  background: #1e293b;
  text-decoration: none;
  color: #ffffff;
}

.bill-form button[type=submit]:active,
#calc-form > button[type=submit]:active {
  transform: none;
}


.page-home .checker .viewer {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 18px 0 0;
  padding: 0;
}

.use-saved,
.copy-number,
.check-another {
  background: #f1f5f9;
  color: var(--text-main);
  border: 1px solid #cbd5e1;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.use-saved:hover,
.copy-number:hover,
.check-another:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.hint {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .form-footer button[type=submit] {
    width: 100%;
    min-width: 0;
  }
}

/* ==========================================================================
   Viewer & Bill Opened Panel
   ========================================================================== */

.viewer {
  background: var(--bg-card);
  border: 2px solid #070b12;
  border-radius: var(--radius-lg);
  padding: 0;
  margin-top: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.bill-opened-card {
  padding: 28px;
  background: #ffffff;
}

.opened-card-badge {
  display: none;
  margin-bottom: 0;
}

.opened-card-title {
  font-size: 22px;
  font-weight: 800;
  color: #070b12;
  margin: 0 0 6px 0;
}

.opened-card-meta {
  font-size: 15px;
  color: #475569;
  margin-bottom: 20px;
}

.opened-card-num {
  font-family: monospace;
  font-size: 17px;
  color: #070b12;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 6px;
  margin-left: 6px;
  border: 1px solid #e2e8f0;
}

.opened-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.btn-reopen-bill {
  background: var(--lime);
  color: #070b12;
  border: none;
  padding: 13px 24px;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(178, 255, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-reopen-bill:hover {
  background: var(--lime-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(178, 255, 0, 0.55);
}

.btn-copy-num,
.btn-check-another {
  background: #f8fafc;
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-num:hover,
.btn-check-another:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.opened-card-tips {
  background: #f8fafc;
  border-left: 4px solid var(--lime);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.opened-card-tips p {
  margin: 0;
  font-size: 14px;
  color: #334155;
  line-height: 1.5;
}

/* Fallback elements in static HTML */
.redirect-title {
  font-size: 20px;
  font-weight: 800;
  color: #166534;
  margin-bottom: 6px;
}

.countdown {
  font-size: 15px;
  color: #15803d;
  margin-bottom: 16px;
}

.redirect-number {
  font-family: monospace;
  font-size: 18px;
  background: #ffffff;
  padding: 2px 8px;
  border: 1px solid #86efac;
  border-radius: 4px;
  color: #14532d;
}

.open-bill {
  width: auto;
  margin-right: 8px;
  padding: 11px 20px;
  font-size: 15px;
}

/* ==========================================================================
   Company Card Grid (Modern 4-Column Layout from Reference Image)
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0 48px;
}

.card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 18px 18px;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.card:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  text-decoration: none;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.card-logo-wrap {
  width: 62px;
  height: 62px;
  border-radius: var(--radius-md);
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.card:hover .card-logo-wrap {
  background: #ffffff;
  border-color: #cbd5e1;
}

.card-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card-titles {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 28px;
}

.card strong {
  font-size: 21px;
  color: #070b12;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-name {
  color: #64748b;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 500;
}

.card-areas {
  font-size: 13.5px !important;
  color: #64748b !important;
  line-height: 1.55;
  margin-top: 6px;
  margin-bottom: 18px;
  flex-grow: 1;
}

.card-cta {
  color: #070b12 !important;
  font-weight: 700;
  font-size: 14px !important;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
}

.card:hover .card-cta {
  color: #000000 !important;
  border-top-color: var(--lime);
  padding-left: 4px;
}

/* Bottom Grid for Footer & Links */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.grid a {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.15s ease;
  display: block;
  text-decoration: none;
}

.grid a:hover {
  border-color: #84cc16;
  background: rgba(178, 255, 0, 0.14);
  color: #1a2e05;
  text-decoration: none;
  transform: translateY(-2px);
}

.grid a span {
  display: block;
  color: #64748b;
  font-weight: 400;
  font-size: 12.5px;
  margin-top: 2px;
}

footer .grid a {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

footer .grid a:hover {
  border-color: var(--lime);
  background: rgba(178, 255, 0, 0.08);
  color: var(--lime);
}

footer .grid a span {
  color: #94a3b8;
}

/* ==========================================================================
   Data Tables (Tariffs, Peak Hours, Facts)
   ========================================================================== */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-card);
  margin: 24px 0;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

th, td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: #070b12;
  font-weight: 800;
  font-size: 13.5px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #f8fafc;
}

.small {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.55;
  margin-top: 8px;
}

.area-list {
  columns: 2;
  gap: 36px;
  padding-left: 20px;
}

.area-list li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* ==========================================================================
   Sample Bill Visual Diagram (Feature Card)
   ========================================================================== */

.sample-bill {
  background: #ffffff;
  border: 2px solid #070b12;
  border-radius: var(--radius-xl);
  padding: 28px;
  margin: 28px 0;
  box-shadow: var(--shadow-card);
}

.sb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid #e2e8f0;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.sb-head strong {
  font-size: 17px;
  color: #070b12;
  letter-spacing: 0.02em;
}

.sb-head span {
  font-size: 13.5px;
  color: var(--text-muted);
}

.sb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.sb-field {
  border: 1.5px solid var(--border-light);
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 16px;
}

.sb-field.hot {
  border-color: #070b12;
  background: #f7fee7;
  box-shadow: 0 0 0 2px var(--lime);
}

.sb-label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: #475569;
}

.sb-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.sb-note {
  display: block;
  font-size: 12.5px;
  color: #64748b;
  margin-top: 4px;
}

/* ==========================================================================
   Calculator Section
   ========================================================================== */

.preset {
  margin: 14px 0 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#calc-form .preset button,
.preset button {
  width: auto;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #334155;
  border: 1px solid #d1d5db;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#calc-form .preset button:hover,
.preset button:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.calc-result {
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.calc-result h3 {
  color: #070b12;
  margin-top: 0;
  font-size: 22px;
}

.calc-result ul {
  padding-left: 20px;
  color: var(--text-body);
}

.calc-result li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Footer (Deep Dark Footer Matching Hero Aesthetic)
   ========================================================================== */

footer {
  background: #070b12;
  color: #94a3b8;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 60px 24px 48px;
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto 36px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.foot-grid h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 16px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.foot-grid p {
  line-height: 2;
  font-size: 14.5px;
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--lime);
  text-decoration: none;
}

.disclaimer {
  max-width: 1180px;
  margin: 0 auto;
  font-size: 13.5px;
  line-height: 1.65;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-top: 24px;
}

footer > p:last-child {
  max-width: 1180px;
  margin: 16px auto 0;
  font-size: 14px;
  color: #94a3b8;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wrap {
    padding: 24px 18px 48px;
  }

  .company-hero {
    padding: 36px 24px;
    flex-direction: column;
    gap: 16px;
  }

  .checker, .viewer, .calc-result {
    padding: 26px 20px;
  }

  .company-hero h1 {
    font-size: 30px;
  }

  .hero-stage {
    min-height: 0;
  }

  .hero-stage-media {
    background-position: 70% center;
  }

  .hero-stage-shade {
    background:
      linear-gradient(180deg, rgba(4, 8, 14, 0.72) 0%, rgba(4, 8, 14, 0.45) 35%, rgba(4, 8, 14, 0.88) 100%),
      linear-gradient(90deg, rgba(4, 8, 14, 0.78) 0%, rgba(4, 8, 14, 0.35) 100%);
  }

  .top,
  .top-overlay {
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
    margin-left: 0;
  }

  .top > .brand {
    order: 1;
    margin-right: auto;
  }

  .top-overlay .brand-logo,
  .top .brand-logo {
    height: 30px;
    max-width: min(168px, 48vw);
  }

  .top-overlay .top-cta,
  .top .top-cta {
    gap: 8px;
    order: 2;
  }

  .nav-search-toggle {
    width: 38px;
    height: 38px;
  }

  .site-nav,
  .top nav {
    display: none;
    width: 100%;
    order: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-top: 8px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(7, 11, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  }

  .top.nav-open .site-nav,
  .top.nav-open nav {
    display: flex;
  }

  .site-nav a,
  .top nav a {
    padding: 12px 14px;
    border-radius: 10px;
    color: #e2e8f0;
  }

  .site-nav a:hover,
  .top nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .site-nav a.nav-active,
  .top nav a.nav-active {
    background: rgba(178, 255, 0, 0.14);
    color: var(--lime);
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    color: #e2e8f0;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown.is-open .nav-dropdown-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
  }

  .nav-dropdown-toggle.nav-active {
    background: rgba(178, 255, 0, 0.14);
    color: var(--lime);
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    max-height: none;
    margin-top: 4px;
    padding: 4px;
    border-radius: 10px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
  }

  .hero-stage-content {
    padding: 18px 14px 28px;
    justify-content: center;
    align-items: stretch;
  }

  .page-home .checker-hero,
  .page-home .checker {
    max-width: none;
  }

  .checker-panel {
    padding: 18px 16px;
  }

  h2 {
    font-size: 24px;
    margin-top: 40px;
  }

  .sb-row, .foot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .top {
    padding: 12px 14px;
  }

  .top-overlay {
    padding: 10px 12px;
  }

  .top-overlay .brand-logo {
    height: 26px;
    max-width: min(150px, 55vw);
  }


  .page-home .checker h1 {
    font-size: 20px;
  }

  .top-cta .top-phone {
    display: none;
  }

  .area-list {
    columns: 1;
  }
}
