/* ============================================================
   MGEnergy Save - Stylesheet
   Colors: green #1f9d5a / yellow #ffc628 / dark green #0f5132
   ============================================================ */

:root {
  --green: #1f9d5a;
  --green-dark: #1a8a4f;
  --green-darker: #0f5132;
  --green-tint: #e8f6ec;
  --green-tint-2: #f3faf5;
  --yellow: #ffc628;
  --yellow-dark: #f0b500;
  --ink: #1a2128;
  --ink-2: #3b4651;
  --muted: #7a8a90;
  --line: #e5ebee;
  --line-2: #eef2f4;
  --bg: #ffffff;
  --soft: #f8faf9;
  --danger: #d92d20;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 30, .04), 0 1px 3px rgba(15, 30, 30, .06);
  --shadow-md: 0 6px 16px rgba(15, 30, 30, .07), 0 2px 4px rgba(15, 30, 30, .05);
  --shadow-lg: 0 24px 48px -16px rgba(15, 30, 30, .15), 0 8px 16px -8px rgba(15, 30, 30, .08);
}

* { box-sizing: border-box; }

/* Hidden attribute must always hide — overrides display: flex/grid containers */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.2; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.accent-green { color: var(--green); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line-2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img {
  height: 50px;
  width: auto;
  display: block;
}
/* Smaller logo in step pages & admin */
.header-min .logo-img { height: 44px; }
.admin-topbar .logo-img { height: 38px; }

/* Icon-only logo (footer με σκούρο φόντο — χρησιμοποιεί το πραγματικό icon από favicon folder) */
.logo-icon-img {
  width: 48px;
  height: 48px;
  display: block;
  flex: none;
}

/* Admin "Πάνελ διαχείρισης" label next to logo */
.admin-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-tint);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #cfe7d6;
  white-space: nowrap;
}

/* Legacy classes kept για backward compatibility */
.logo-mark { display: inline-flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.logo-mg { color: var(--green); }
.logo-save { color: var(--ink); font-weight: 600; }
.logo-tagline { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: 0.01em; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
}
.main-nav a {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  position: relative;
  text-decoration: none;
}
.main-nav a:hover { color: var(--green); }
.main-nav a.active {
  color: var(--ink);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: var(--yellow);
  border-radius: 2px;
}

.phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
.phone-btn:hover { background: var(--yellow-dark); text-decoration: none; transform: translateY(-1px); }
.phone-btn svg { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* Minimal header (step pages) */
.header-min .header-inner { min-height: 72px; }
.header-right { display: flex; align-items: center; gap: 24px; }
.header-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.header-link.secure { color: var(--ink-2); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background:
    /* πιο διαφανές overlay — αφήνει να φαίνεται περισσότερο η εικόνα */
    linear-gradient(95deg,
      rgba(255,255,255,0.28) 0%,
      rgba(255,255,255,0.42) 25%,
      rgba(255,255,255,0.58) 50%,
      rgba(255,255,255,0.72) 75%,
      rgba(255,255,255,0.82) 100%),
    /* απαλό κίτρινο accent πάνω δεξιά */
    radial-gradient(40% 50% at 88% 0%, rgba(255,247,214,0.4) 0%, rgba(255,247,214,0) 60%),
    /* η φωτογραφία shifted δεξιά (25% αντί για center) — λάμπα ορατή στην αριστερή πλευρά */
    url('back-image.jpg') 25% center / cover no-repeat;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}

/* Σε μικρές οθόνες, αυξάνουμε το white overlay ώστε να μη "φωνάζει" η εικόνα */
@media (max-width: 980px) {
  .hero {
    background:
      linear-gradient(180deg,
        rgba(255,255,255,0.70) 0%,
        rgba(255,255,255,0.88) 40%,
        #ffffff 80%),
      url('back-image.jpg') 25% top / cover no-repeat;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.hero-content h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-desc {
  color: var(--ink-2);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 520px;
}

.hero-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: grid;
  gap: 18px;
}
.hero-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.hf-icon {
  flex: none;
  width: 40px; height: 40px;
  background: var(--green-tint);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-features strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.hero-features small {
  color: var(--muted);
  font-size: 14px;
}

.hero-cta { margin-top: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(255,198,40,.4);
}
.btn-yellow:hover { background: var(--yellow-dark); box-shadow: 0 8px 18px rgba(255,198,40,.5); }

.btn-green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 14px rgba(31,157,90,.25);
}
.btn-green:hover { background: var(--green-dark); box-shadow: 0 8px 18px rgba(31,157,90,.35); }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--muted); background: var(--soft); }

.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-block { width: 100%; padding: 16px 26px; font-size: 15px; }

/* ============================================================
   QUOTE FORM CARD
   ============================================================ */
.quote-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
}
.quote-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 6px;
}
.quote-sub {
  color: var(--muted);
  margin: 0 0 22px;
  font-size: 14px;
}

#leadForm { display: grid; gap: 14px; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  position: relative;
  display: block;
}
.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
}
.field textarea {
  padding-left: 14px;
  resize: vertical;
  min-height: 70px;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237a8a90' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  padding-left: 14px;
}
.field input::placeholder,
.field textarea::placeholder { color: #9aa6ab; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,157,90,.12);
}
.field input.invalid,
.field select.invalid,
.field textarea.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(217,45,32,.1);
}
.field-label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  padding-left: 2px;
}

/* Upload area */
.upload-area {
  background: #fffbe6;
  border: 1.5px dashed var(--yellow);
  border-radius: 12px;
  padding: 16px;
  transition: background .15s ease, border-color .15s ease;
  cursor: pointer;
}
.upload-area.dashed {
  background: var(--green-tint-2);
  border-color: #b7e0c4;
}
.upload-area.dragover {
  background: #fff5c0;
  border-color: var(--yellow-dark);
}
.upload-area.dashed.dragover {
  background: var(--green-tint);
  border-color: var(--green);
}
.upload-inner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.upload-inner.center {
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  gap: 8px;
  padding: 18px 12px;
}
.upload-icon {
  flex: none;
  width: 40px; height: 40px;
  background: var(--green-tint);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.upload-area p {
  margin: 4px 0 4px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.upload-area strong { font-size: 14.5px; color: var(--ink); }
.upload-area small { font-size: 12.5px; color: var(--muted); }
.muted { color: var(--muted); }
.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  font-size: inherit;
}
.link-btn.strong { font-weight: 700; font-size: 15px; }

.upload-selected {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
}
.upload-selected .remove-file {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-weight: 600;
}

/* Checkbox */
.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.checkbox input {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--green);
  flex: none;
}

.form-error {
  color: var(--danger);
  font-size: 14px;
  background: #fef2f0;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #fcd9d4;
  margin: 0;
}

/* ============================================================
   PROMINENT DROPDOWN (interest selector)
   ============================================================ */
.field-prominent {
  background: linear-gradient(135deg, var(--green-tint-2) 0%, #fff 100%);
  border: 2px solid var(--green);
  border-radius: 12px;
  padding: 12px 14px;
  display: block;
  position: relative;
  box-shadow: 0 4px 12px rgba(31, 157, 90, 0.10);
  transition: box-shadow .15s ease;
}
.field-prominent:focus-within {
  box-shadow: 0 4px 16px rgba(31, 157, 90, 0.18);
}
.field-prominent-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--green-darker);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field-prominent select {
  width: 100%;
  padding: 12px 38px 12px 14px;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231f9d5a' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field-prominent select:focus {
  border-color: var(--green-dark);
  box-shadow: 0 0 0 3px rgba(31,157,90,.16);
}

/* ============================================================
   GAS SECTION (Φυσικό Αέριο)
   ============================================================ */
.gas-section {
  padding: 72px 0;
  background:
    radial-gradient(45% 60% at 20% 30%, #fff8d8 0%, rgba(255,248,216,0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fafbf7 100%);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
}
.gas-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}
.gas-art {
  display: flex;
  justify-content: center;
  align-items: center;
}
.gas-content .eyebrow {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.gas-content h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.gas-content > p {
  color: var(--ink-2);
  font-size: 16.5px;
  margin: 0 0 24px;
  max-width: 560px;
}

@media (max-width: 980px) {
  .gas-section { padding: 52px 0; }
  .gas-grid { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .gas-art { order: -1; }
  .gas-art svg { width: 180px; height: 180px; }
}
@media (max-width: 720px) {
  .gas-section { padding: 40px 0; }
  .gas-content h2 { font-size: 24px; }
  .gas-content > p { font-size: 15px; }
  .gas-art svg { width: 150px; height: 150px; }
}

/* ============================================================
   BENEFITS STRIP
   ============================================================ */
.benefits {
  background: #fff;
  padding: 56px 0;
  border-bottom: 1px solid var(--line-2);
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.benefit-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--green-tint);
  border-radius: 999px;
  margin-bottom: 14px;
}
.benefit h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.benefit p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 64px 0;
  background: var(--soft);
}
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 44px;
  letter-spacing: -0.02em;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.steps li {
  text-align: center;
  position: relative;
  padding: 0 8px;
}
.steps li::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  border-top: 2px dashed #c9d4d9;
}
.steps li:last-child::after { display: none; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.step-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 14px;
  margin-left: 12px;
}
.steps h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
}
.steps p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
  max-width: 200px;
  margin-inline: auto;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  padding: 64px 0;
  background: linear-gradient(180deg, #fff8d8 0%, #fffefa 100%);
}
.cta-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}
.cta-art {
  display: flex;
  justify-content: center;
}
.cta-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.cta-text p {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0 0 20px;
  max-width: 540px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--green-darker);
  color: #cfe6d8;
  padding-top: 56px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 36px;
}
.logo-light { color: #fff; }
.logo-mg-light { color: var(--green); }
.logo-save-light { color: #fff; font-weight: 600; }
.logo-tagline-light {
  font-size: 11px;
  color: #8fc9ab;
  margin-top: 3px;
  letter-spacing: 0.01em;
}
.footer-brand .logo-title { color: #fff; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.socials { display: flex; gap: 12px; }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff;
  transition: background .15s ease;
}
.socials a:hover { background: rgba(255,255,255,.18); text-decoration: none; }

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.footer-col a {
  color: #b8d8c7;
  font-size: 14px;
}
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-contact .phone-btn { align-self: flex-start; }
.mail-link, .hours {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #cfe6d8;
  font-size: 14px;
  margin: 0;
}
.mail-link:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
}
.footer-bottom small {
  color: #8fc9ab;
  font-size: 13px;
}

/* ============================================================
   STEP PAGE
   ============================================================ */
.page-step {
  background:
    radial-gradient(50% 70% at 90% 0%, #fff5c5 0%, rgba(255,245,197,0) 60%),
    linear-gradient(180deg, #fafbf7 0%, #ffffff 70%);
  min-height: 100vh;
}

.step-page { padding: 32px 0 64px; }

.progress {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  flex-wrap: wrap;
}
.progress li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.progress li + li::before {
  content: '';
  display: inline-block;
  width: 120px;
  border-top: 2px dashed #c9d4d9;
  margin-right: 16px;
}
.progress .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #d6dfe2;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.progress .done .dot { background: var(--green); }
.progress .done { color: var(--green); font-weight: 600; }
.progress .active .dot { background: var(--green); }
.progress .active { color: var(--ink); font-weight: 600; }

.step-head {
  text-align: center;
  margin-bottom: 28px;
}
.step-head h1 {
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step-head p {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0;
  max-width: 640px;
  margin-inline: auto;
}

.step-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}

.step-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
  display: grid;
  gap: 20px;
}

.ftype { border: none; padding: 0; margin: 0; }
.ftype legend {
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}
.ftype-icon { display: inline-flex; }

.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.radio-card {
  cursor: pointer;
  position: relative;
}
.radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.rc-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  background: #fff;
  transition: border-color .15s, background .15s, color .15s;
  position: relative;
  padding-left: 44px;
}
.rc-inner::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 2px solid #c5cdd1;
  border-radius: 999px;
  background: #fff;
  transition: border-color .15s, background .15s;
}
.rc-inner::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--green);
  transition: transform .15s;
}
.radio-card input:checked + .rc-inner {
  border-color: var(--green);
  background: var(--green-tint-2);
  color: var(--ink);
}
.radio-card input:checked + .rc-inner::before { border-color: var(--green); }
.radio-card input:checked + .rc-inner::after { transform: translateY(-50%) scale(1); }

.field-block { display: grid; gap: 8px; }
.field-block .lbl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}
.field-block .lbl small { color: var(--muted); font-weight: 500; }
.field-block input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-block input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,157,90,.12);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.form-actions .btn-green { flex: 1; max-width: 360px; justify-content: center; }

.legal-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.why-card {
  background: var(--green-tint-2);
  border: 1px solid #cfe7d6;
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.why-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: #fff;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid #d4ebdb;
}
.why-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.why-card p {
  color: var(--ink-2);
  font-size: 14px;
  margin: 0 0 16px;
}
.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}
.why-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--ink-2);
}
.chk {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  background: var(--green-tint-2);
  border-radius: var(--radius-lg);
  border: 1px solid #cfe7d6;
  padding: 20px 24px;
  margin-top: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.trust-item strong { color: var(--ink); }
.trust-ico {
  flex: none;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 999px;
  border: 1px solid #d4ebdb;
}

/* ============================================================
   THANKS PAGE
   ============================================================ */
.thanks-page {
  padding: 64px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thanks-card {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
}
.thanks-icon {
  display: inline-flex;
  margin-bottom: 18px;
}
.thanks-card h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.thanks-card p {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0 0 24px;
}
.thanks-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.summary {
  text-align: left;
  background: var(--soft);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
}
.summary h2 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--ink);
}
.summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
}
.summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.summary li:last-child { border-bottom: none; }
.summary li strong { color: var(--ink-2); font-weight: 500; }
.summary li span { color: var(--ink); font-weight: 600; text-align: right; }

/* ============================================================
   CAPTCHA
   ============================================================ */
.captcha-box {
  background: var(--green-tint-2);
  border: 1.5px solid #cfe7d6;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.captcha-q {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--ink);
}
.captcha-label { color: var(--muted); font-weight: 500; font-size: 13px; }
.captcha-eq { font-weight: 600; }
.captcha-eq strong {
  display: inline-block;
  min-width: 22px;
  text-align: center;
  background: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid #cfe7d6;
  color: var(--green);
  font-size: 15px;
  font-weight: 800;
}
.captcha-refresh {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #cfe7d6;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .2s;
}
.captcha-refresh:hover { background: var(--green-tint); transform: rotate(90deg); }
.captcha-box input[name="captcha"] {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.captcha-box input[name="captcha"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,157,90,.12);
}
.captcha-box input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(217,45,32,.1);
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
  tab-index: -1;
}

/* ============================================================
   FEATURE BLOCKS (aerio.html)
   ============================================================ */
.feature-blocks { padding: 64px 0; background: #fff; }
.fb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.fb-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cfe7d6;
}
.fb-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--green-tint);
  border-radius: 999px;
  margin-bottom: 16px;
}
.fb-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.fb-card p { color: var(--ink-2); font-size: 14.5px; margin: 0; }

/* ============================================================
   HOW PAGE
   ============================================================ */
.hero-compact { padding: 56px 0 48px; }
.hero-compact-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero-compact h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.hero-compact p {
  color: var(--ink-2);
  font-size: 17px;
  margin: 0 0 24px;
}

.how-detailed { padding: 56px 0; background: #fff; }
.how-step {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-2);
}
.how-step:last-child { border-bottom: none; }
.how-step.reverse {
  grid-template-columns: 1fr 200px;
}
.how-step.reverse .how-step-num { order: 2; }
.how-step-num {
  font-size: 80px;
  font-weight: 800;
  color: var(--green-tint);
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
  font-family: 'Inter', sans-serif;
}
.how-step-body h3 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.how-step-body p {
  font-size: 15.5px;
  color: var(--ink-2);
  margin: 0 0 14px;
  line-height: 1.65;
}
.how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.how-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-2);
  font-size: 14.5px;
}
.how-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { padding: 56px 0; background: var(--soft); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item:hover { border-color: #cfe7d6; }
.faq-item[open] {
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { color: var(--muted); transition: transform .2s; flex: none; }
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--green); }
.faq-item p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.page-admin {
  background: #f4f6f8;
  min-height: 100vh;
}
.page-admin.admin-logged { background: #f4f6f8; }

/* Loading */
.admin-loading {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--muted);
}
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--green-tint);
  border-top-color: var(--green);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Live indicator */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  vertical-align: middle;
  margin-left: 6px;
  position: relative;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  background: var(--green);
  opacity: 0.4;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(1.8); opacity: 0; }
}

.admin-user-email {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  background: var(--green-tint-2);
  border-radius: 999px;
  border: 1px solid #cfe7d6;
  font-weight: 500;
  white-space: nowrap;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- TABS ---------- */
.admin-tabs {
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 65px;
  z-index: 9;
}
.admin-tabs-inner {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.admin-tab {
  background: none;
  border: none;
  padding: 16px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.admin-tab svg { flex: none; }
.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--line-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
}
.admin-tab.active .tab-count {
  background: var(--green-tint);
  color: var(--green);
}
.tab-warn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 11.5px;
  font-weight: 700;
  animation: pulseSoft 2s ease-in-out infinite;
}
@keyframes pulseSoft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.tab-pane { animation: fadeIn .2s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- STAT VARIANTS ---------- */
.stat.stat-stale .stat-ico { background: #fee2e2; }
.stat.stat-expired .stat-ico { background: #f3f4f6; }

/* ---------- ROW STATES ---------- */
.admin-table tr.row-stale td { background: #fffaf0; }
.admin-table tr.row-stale:hover td { background: #fff5e1; }
.admin-table tr.row-expired td { background: #f9fafb; color: var(--muted); }
.admin-table tr.row-expired td a { color: var(--muted); }
.admin-table tr.row-expired:hover td { background: #f3f4f6; }

/* ---------- INLINE BADGES ---------- */
.badge-soft {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--green-tint);
  color: var(--green-darker);
}
.badge-warn {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  background: #fee2e2;
  color: #991b1b;
}
.badge-expired { background: #e5e7eb; color: #4b5563; }

/* ---------- LARGER MODAL ---------- */
.modal-card.modal-lg { max-width: 720px; }

/* ---------- CONVERT MODAL FORM ---------- */
.convert-sub {
  background: var(--green-tint-2);
  border: 1px solid #cfe7d6;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}
.form-section {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin: 6px 0 2px;
  padding-top: 6px;
  border-top: 1px solid var(--line-2);
}
.form-section:first-of-type { border-top: none; padding-top: 0; }
#addCustomerForm { display: grid; gap: 14px; }
#addCustomerForm .field-block input,
#addCustomerForm .field-block textarea,
#addCustomerForm .field-block select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
#addCustomerForm .field-block textarea { resize: vertical; min-height: 60px; }
#addCustomerForm .field-block select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237a8a90' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
#addCustomerForm .field-block input:focus,
#addCustomerForm .field-block textarea:focus,
#addCustomerForm .field-block select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,157,90,.12);
}
#convertForm {
  display: grid;
  gap: 14px;
}
#convertForm .field-block textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 60px;
  transition: border-color .15s, box-shadow .15s;
}
#convertForm .field-block textarea:focus,
#convertForm .field-block select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,157,90,.12);
}
#convertForm .field-block select {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237a8a90' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

/* ---------- NOTES SECTION ---------- */
.notes-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
}
.notes-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.notes-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 700;
}
.add-note-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
}
.add-note-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  resize: vertical;
  min-height: 48px;
  transition: border-color .15s, box-shadow .15s;
}
.add-note-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,157,90,.12);
}
.notes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.notes-list li {
  background: var(--soft);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 10px 14px;
}
.note-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  font-size: 12.5px;
  flex-wrap: wrap;
}
.note-head strong { color: var(--green-darker); }
.notes-list p { margin: 0; font-size: 14px; color: var(--ink); white-space: pre-wrap; }

/* ---------- MODAL FOOT MOBILE ---------- */
.modal-foot { flex-wrap: wrap; }
.modal-foot .btn { flex: 0 0 auto; }

/* ---------- MOBILE TWEAKS ---------- */
@media (max-width: 720px) {
  .admin-tabs { top: 57px; }
  .admin-tab { padding: 12px 12px; font-size: 13.5px; }
  .admin-tab svg { width: 16px; height: 16px; }
  .tab-count, .tab-warn { min-width: 18px; height: 18px; font-size: 10.5px; }

  .admin-stats .stat span { font-size: 11.5px; }
  .add-note-form { grid-template-columns: 1fr; }
  .add-note-form .btn { width: 100%; }
  .modal-card.modal-lg { max-width: 100%; }
  .modal-foot { justify-content: stretch; }
  .modal-foot .btn { flex: 1; min-width: 0; }
}

/* --- LOGIN --- */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(50% 60% at 80% 10%, #fff7d6 0%, rgba(255,247,214,0) 60%),
    linear-gradient(180deg, #fafbf7 0%, #f4f6f8 100%);
}
.admin-login-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-2);
  text-align: center;
}
.admin-login-card .logo-mark.center {
  display: inline-flex;
  margin-bottom: 18px;
}
.admin-login-card h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.admin-login-card > p {
  color: var(--muted);
  font-size: 14.5px;
  margin: 0 0 24px;
}
#loginForm { display: grid; gap: 14px; }
.login-hint {
  margin-top: 18px;
  font-size: 13px;
}
.login-hint a { color: var(--muted); }
.login-hint a:hover { color: var(--green); }

/* --- TOPBAR --- */
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 10;
}
.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
}
.admin-topbar .logo-tagline { color: var(--green); font-weight: 600; }
.admin-actions { display: flex; gap: 8px; }

.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}
.btn-danger {
  background: #fff;
  color: var(--danger);
  border: 1.5px solid #fcd9d4;
}
.btn-danger:hover { background: #fef2f0; }

/* --- MAIN --- */
.admin-main { padding: 32px 0 64px; }
.admin-head { margin-bottom: 24px; }
.admin-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.admin-head p { color: var(--muted); margin: 0; font-size: 14.5px; }

/* --- STATS --- */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.stat-ico {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--green-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stat.stat-contacted .stat-ico { background: #fef3c7; }
.stat.stat-converted .stat-ico { background: var(--green-tint); }
.stat strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.stat span { color: var(--muted); font-size: 13px; }

/* --- TOOLBAR --- */
.admin-toolbar {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.search-box {
  position: relative;
  flex: 1;
  min-width: 240px;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}
.search-box input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-box input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31,157,90,.12);
}
#leadFilter {
  padding: 11px 38px 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%237a8a90' d='M6 8 0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.toolbar-right { display: flex; gap: 8px; margin-left: auto; }

/* --- TABLE --- */
.admin-table-wrap {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 900px;
}
.admin-table th {
  text-align: left;
  padding: 14px 16px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
  color: var(--ink-2);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--green-tint-2); }
.td-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-actions { white-space: nowrap; text-align: right; }
.th-actions { text-align: right; }

.status-select {
  padding: 6px 28px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%237a8a90' d='M5 6 0 0h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.status-select.status-new { background-color: #dbeafe; color: #1e40af; border-color: #c7d8f7; }
.status-select.status-contacted { background-color: #fef3c7; color: #92400e; border-color: #fde68a; }
.status-select.status-converted { background-color: var(--green-tint); color: var(--green-darker); border-color: #b7e0c4; }
.status-select.status-rejected { background-color: #fee2e2; color: #991b1b; border-color: #fecaca; }

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
  margin-left: 4px;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn.view-btn:hover { color: var(--green); border-color: var(--green); }
.icon-btn.delete-btn:hover { color: var(--danger); border-color: #fcd9d4; background: #fef2f0; }

.empty-state {
  text-align: center;
  padding: 60px 24px;
}
.empty-state svg { margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin: 0 0 18px; font-size: 14.5px; }

/* --- MODAL --- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,30,30,.5);
  backdrop-filter: blur(2px);
}
.modal-card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease-out;
}
@keyframes modalIn {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-2);
}
.modal-head h2 { font-size: 18px; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
}
.modal-close:hover { background: var(--soft); color: var(--ink); }
.modal-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.modal-foot {
  padding: 16px 24px;
  border-top: 1px solid var(--line-2);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.lead-detail {
  display: grid;
  gap: 14px;
  margin: 0;
}
.lead-detail > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.lead-detail > div:last-child { border-bottom: none; padding-bottom: 0; }
.lead-detail dt { color: var(--muted); font-size: 13px; font-weight: 500; }
.lead-detail dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; word-break: break-word; }

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-contacted { background: #fef3c7; color: #92400e; }
.badge-converted { background: var(--green-tint); color: var(--green-darker); }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet landscape ~1024 down */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .hero-grid { gap: 36px; }
  .hero-content h1 { font-size: clamp(28px, 4.4vw, 40px); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
  .footer-contact { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 18px 28px; }

  .fb-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet portrait ~980 down */
@media (max-width: 980px) {
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-content h1 { max-width: 640px; }
  .hero-desc { max-width: none; font-size: 16px; }
  .hero-features { max-width: 640px; }

  .benefits { padding: 44px 0; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }

  .how { padding: 52px 0; }
  .section-title { margin-bottom: 32px; font-size: 26px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .steps li::after { display: none; }

  .cta-banner { padding: 52px 0; }
  .cta-grid { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .cta-art { order: -1; }
  .cta-art svg { width: 180px; height: auto; }
  .cta-text p { margin-inline: auto; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding-bottom: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-contact { grid-column: 1 / -1; }

  .step-grid { grid-template-columns: 1fr; gap: 20px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); padding: 18px 20px; }

  .fb-grid { grid-template-columns: 1fr; gap: 18px; }
  .how-step,
  .how-step.reverse {
    grid-template-columns: 80px 1fr;
    gap: 20px;
    padding: 24px 0;
  }
  .how-step.reverse .how-step-num { order: 0; }
  .how-step-num { font-size: 56px; text-align: left; }
  .how-step-body h3 { font-size: 20px; }
}

/* Phone large ~720 down */
@media (max-width: 720px) {
  .container { padding: 0 16px; }

  /* Header */
  .header-inner { gap: 10px; padding: 10px 16px; min-height: 64px; }
  .logo-img { height: 38px; }
  .header-min .logo-img { height: 34px; }
  .admin-topbar .logo-img { height: 32px; }
  .admin-label { display: none; }
  .logo-mark svg { width: 38px; height: 38px; }
  .logo-title { font-size: 18px; }
  .logo-tagline { display: none; }
  .nav-toggle { display: flex; order: 3; }
  .main-nav {
    order: 4;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    width: 100%;
  }
  .main-nav.open { max-height: 360px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 4px 0; }
  .main-nav li { padding: 0 20px; }
  .main-nav a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-2);
    font-size: 16px;
  }
  .main-nav li:last-child a { border-bottom: none; }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { color: var(--green); }

  .phone-btn { padding: 10px 14px; font-size: 14px; min-height: 40px; }
  .phone-btn span { display: inline; }

  .header-right { gap: 10px; }
  .header-link.secure { display: none; }
  .header-link { font-size: 13px; }

  /* Hero */
  .hero { padding: 28px 0 36px; }
  .hero-content h1 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.15;
    margin-bottom: 14px;
  }
  .hero-desc { font-size: 15px; margin-bottom: 22px; }
  .hero-features { gap: 14px; margin-bottom: 24px; }
  .hf-icon { width: 36px; height: 36px; }
  .hf-icon svg { width: 18px; height: 18px; }
  .hero-features strong { font-size: 15px; }
  .hero-features small { font-size: 13px; }
  .hero-cta { width: 100%; }

  .btn { padding: 13px 22px; font-size: 14.5px; }
  .btn-lg { padding: 15px 24px; font-size: 15.5px; }

  /* Form */
  .quote-card { padding: 20px 18px; border-radius: 14px; }
  .quote-title { font-size: 20px; }
  .quote-sub { font-size: 13.5px; margin-bottom: 18px; }
  .grid-2 { grid-template-columns: 1fr; gap: 10px; }
  #leadForm { gap: 12px; }
  .field input, .field select, .field textarea { padding: 14px 14px 14px 42px; font-size: 16px; }
  .field textarea { padding-left: 14px; }
  .field select { padding-left: 14px; }
  .upload-inner { gap: 12px; }
  .upload-area { padding: 14px; }
  .upload-area p { font-size: 13px; }
  .checkbox { font-size: 13px; }

  /* Benefits */
  .benefits { padding: 36px 0; }
  .benefits-grid { grid-template-columns: 1fr; gap: 22px; }
  .benefit { display: grid; grid-template-columns: 56px 1fr; gap: 14px; text-align: left; align-items: center; }
  .benefit-ico { margin-bottom: 0; width: 52px; height: 52px; }
  .benefit-ico svg { width: 24px; height: 24px; }
  .benefit h3 { font-size: 15.5px; margin-bottom: 2px; }
  .benefit p { font-size: 13.5px; }

  /* How */
  .how { padding: 40px 0; }
  .section-title { font-size: 22px; margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps li {
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 4px;
    text-align: left;
    align-items: center;
    padding: 0;
  }
  .step-num { grid-row: 1 / 3; align-self: center; margin-bottom: 0; }
  .step-ico { display: none; }
  .steps h3 { font-size: 15.5px; margin-bottom: 2px; }
  .steps p { font-size: 13.5px; max-width: none; margin-inline: 0; }

  /* CTA banner */
  .cta-banner { padding: 40px 0; }
  .cta-text h2 { font-size: 22px; line-height: 1.25; }
  .cta-text p { font-size: 14.5px; margin-bottom: 18px; }
  .cta-art svg { width: 150px; }

  /* Footer */
  .site-footer { padding-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 24px; }
  .footer-brand, .footer-contact { grid-column: auto; }
  .footer-col h4 { margin-bottom: 12px; font-size: 14.5px; }
  .footer-col ul { gap: 8px; }
  .footer-col a { font-size: 13.5px; }
  .footer-contact { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-bottom small { font-size: 12.5px; }

  /* Step page */
  .step-page { padding: 24px 0 48px; }
  .progress { gap: 8px; font-size: 12.5px; margin-bottom: 22px; }
  .progress li + li::before { width: 18px; margin-right: 6px; }
  .progress .dot { width: 24px; height: 24px; font-size: 12px; }
  .progress span:not(.dot) { max-width: 110px; }
  .step-head h1 { font-size: 24px; }
  .step-head p { font-size: 14.5px; }
  .step-card { padding: 20px 18px; gap: 18px; border-radius: 14px; }
  .ftype legend { font-size: 14.5px; }
  .radio-cards { grid-template-columns: 1fr; gap: 10px; }
  .rc-inner { padding: 14px 16px 14px 44px; font-size: 14.5px; }
  .field-block input { padding: 14px 16px; font-size: 16px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .form-actions .btn { max-width: none; width: 100%; }
  .form-actions .btn-outline { padding: 12px 22px; }
  .legal-note { font-size: 12px; padding: 0 4px; }

  .why-card { padding: 22px 20px; border-radius: 14px; }
  .why-card h3 { font-size: 16px; }
  .why-card p { font-size: 13.5px; }

  .trust-strip { grid-template-columns: 1fr 1fr; padding: 14px 16px; gap: 12px; margin-top: 24px; }
  .trust-ico { width: 36px; height: 36px; }
  .trust-ico svg { width: 18px; height: 18px; }
  .trust-item { font-size: 12.5px; gap: 10px; }

  /* Thanks */
  .thanks-page { padding: 40px 16px; }
  .thanks-card { padding: 32px 22px; border-radius: 14px; }
  .thanks-card h1 { font-size: 24px; }
  .thanks-card p { font-size: 14.5px; }
  .thanks-actions { flex-direction: column; gap: 10px; }
  .thanks-actions .btn { width: 100%; }

  /* Lorem pages */
  .feature-blocks { padding: 44px 0; }
  .hero-compact { padding: 36px 0 32px; }
  .hero-compact h1 { font-size: 28px; }
  .hero-compact p { font-size: 15px; }
  .how-detailed { padding: 40px 0; }
  .faq-section { padding: 40px 0; }
  .faq-item summary { padding: 16px 18px; font-size: 14.5px; }
  .faq-item p { padding: 0 18px 16px; font-size: 14px; }

  /* Admin */
  .admin-user-email { display: none; }
  .admin-topbar-inner { padding: 12px 16px; }
  .admin-topbar .logo-title { font-size: 16px; }
  .admin-topbar .logo-tagline { display: none; }
  .admin-main { padding: 24px 0 48px; }
  .admin-head h1 { font-size: 22px; }
  .admin-stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
  .stat { padding: 14px; gap: 12px; }
  .stat-ico { width: 38px; height: 38px; }
  .stat-ico svg { width: 18px; height: 18px; }
  .stat strong { font-size: 22px; }
  .stat span { font-size: 12px; }
  .admin-toolbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .search-box { min-width: 0; }
  #leadFilter { width: 100%; }
  .toolbar-right { margin-left: 0; flex-wrap: wrap; }
  .toolbar-right .btn { flex: 1; min-width: 0; }
  .admin-table { font-size: 13px; }
  .admin-table th, .admin-table td { padding: 10px 12px; }
  .modal { padding: 12px; }
  .modal-card { max-height: 92vh; }
  .lead-detail > div { grid-template-columns: 1fr; gap: 2px; }
  .lead-detail dt { font-size: 12px; }
  .admin-login-card { padding: 32px 22px; }
  .admin-login-card h1 { font-size: 22px; }
}

/* Phone small ~420 down */
@media (max-width: 420px) {
  .logo-img { height: 34px; }
  .logo-mark svg { width: 34px; height: 34px; }
  .logo-title { font-size: 17px; }
  .phone-btn span { display: none; }
  .phone-btn { padding: 9px 11px; }
  .hero-content h1 { font-size: 24px; }
  .quote-title { font-size: 18px; }
  .section-title { font-size: 20px; }
  .cta-text h2 { font-size: 20px; }
  .trust-strip { grid-template-columns: 1fr; }
  .progress span:not(.dot) { max-width: 90px; font-size: 12px; }
  .progress li + li::before { width: 12px; margin-right: 4px; }
}

/* Tap-target & motion */
@media (hover: none) and (pointer: coarse) {
  .btn, .phone-btn, .nav-toggle, .link-btn { min-height: 44px; }
  .field input, .field select, .field textarea { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
