/* ============================================================================
   Ascontel Shahana Lok — website styles (public + admin)
   ========================================================================== */

:root {
  --blue-950: #04182f;
  --blue-900: #062a52;
  --blue-800: #0a3d75;
  --blue-700: #0b5aa8;
  --blue-600: #1877d2;
  --blue-100: #dbeafe;
  --sky: #38bdf8;
  --green: #16a34a;
  --green-dark: #15803d;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --red: #dc2626;
  --wa: #25d366;
  --wa-dark: #1da851;
  --ink: #0f172a;
  --muted: #5b6b80;
  --line: #e2e8f0;
  --bg: #f4f8fc;
  --card: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(6, 42, 82, .08), 0 1px 2px rgba(6, 42, 82, .06);
  --shadow-md: 0 10px 30px -10px rgba(6, 42, 82, .25);
  --shadow-lg: 0 25px 60px -15px rgba(6, 42, 82, .35);
  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-ur: 'Jameel Noori Nastaleeq', 'Noto Nastaliq Urdu', 'Noto Naskh Arabic', serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1140px, 92%); margin-inline: auto; }

/* ---------- Urdu ---------- */
.ur { font-family: var(--font-ur); direction: rtl; line-height: 2.1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; cursor: pointer; font: 600 .95rem var(--font);
  padding: .8rem 1.5rem; border-radius: 999px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff; box-shadow: var(--shadow-md); }
.btn--green { background: linear-gradient(135deg, #22c55e, var(--green-dark)); color: #fff; box-shadow: var(--shadow-md); }
.btn--wa { background: linear-gradient(135deg, #2ee06f, var(--wa-dark)); color: #fff; box-shadow: 0 10px 25px -8px rgba(37, 211, 102, .6); }
.btn--ghost { background: #fff; color: var(--blue-800); border: 1.5px solid var(--line); }
.btn--danger { background: #fee2e2; color: var(--red); }
.btn--block { width: 100%; }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  background: rgba(255, 255, 255, .85); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, .8);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; gap: 1rem; height: 68px; }
.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.brand__text { line-height: 1.15; }
.brand__text strong { font-size: 1.02rem; color: var(--blue-900); display: block; letter-spacing: .2px; }
.brand__text small { font-size: .68rem; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: .25rem; margin-inline: auto; }
.nav a {
  color: var(--ink); font-weight: 500; font-size: .9rem;
  padding: .45rem .8rem; border-radius: 10px;
}
.nav a:hover { background: var(--blue-100); text-decoration: none; color: var(--blue-800); }
.header .btn { padding: .6rem 1.15rem; font-size: .88rem; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px; color: var(--blue-900);
}
.nav-toggle:hover { background: var(--blue-100); }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 900px) {
  .nav {
    position: fixed; top: 68px; right: 0; left: 0;
    flex-direction: column; background: #fff; padding: .75rem 4%;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 1rem; font-size: 1rem; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .header .btn { margin-left: 0; }
  .header__cta-desktop { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(56, 189, 248, .28), transparent 60%),
              radial-gradient(900px 500px at -10% 110%, rgba(22, 163, 74, .18), transparent 55%),
              linear-gradient(160deg, var(--blue-950), var(--blue-900) 45%, var(--blue-800));
  padding: 115px 0 90px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(115deg, transparent 0 34px, rgba(56, 189, 248, .06) 34px 36px);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero .ur { color: #eaf4ff; }
.hero__ur-title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: .6rem; text-align: center; text-shadow: 0 4px 30px rgba(56, 189, 248, .35); }
.hero__ur-sub { font-size: clamp(1.05rem, 2.2vw, 1.45rem); color: var(--sky); margin-bottom: 1.4rem; text-align: center; }
.hero__title { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 800; line-height: 1.25; letter-spacing: -.5px; }
.hero__title span { color: var(--sky); }
.hero__text { margin: 1.1rem 0 1.8rem; color: #c6d8ec; max-width: 34rem; font-size: 1.02rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__badges { position: relative; z-index: 1; display: flex; flex-wrap: nowrap; justify-content: center; gap: .6rem; margin-top: 2.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  color: #e6f2ff; font-size: .78rem; font-weight: 500;
  padding: .42rem .75rem; border-radius: 999px; backdrop-filter: blur(6px);
  white-space: nowrap;
}
.chip svg { width: 14px; height: 14px; color: #4ade80; }
.hero__logo {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 26px; padding: 1.4rem; backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg); text-align: center;
}
.hero__logo img { width: min(340px, 80%); margin-inline: auto; border-radius: 18px; }
.hero__logo p { margin-top: .9rem; font-size: .85rem; color: #b9cee6; }

@media (max-width: 900px) {
  .hero { padding: 120px 0 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero__logo { order: -1; padding: 1rem; }
  .hero__logo img { width: min(240px, 70%); }
  .hero__badges { flex-wrap: wrap; }
}

/* ---------- Stats strip ---------- */
.stats {
  margin-top: -46px; position: relative; z-index: 5;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.stat {
  background: var(--card); border-radius: var(--radius); padding: 1.2rem 1rem;
  box-shadow: var(--shadow-md); text-align: center; border: 1px solid var(--line);
}
.stat b { display: block; font-size: 1.7rem; color: var(--blue-800); font-weight: 800; }
.stat span { font-size: .8rem; color: var(--muted); font-weight: 500; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: linear-gradient(180deg, #fff, var(--bg)); }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto 3rem; }
.kicker {
  display: inline-block; background: var(--blue-100); color: var(--blue-800);
  font-size: .75rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 999px; margin-bottom: .9rem;
}
.section__head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 800; color: var(--blue-950); letter-spacing: -.5px; }
.section__head p { color: var(--muted); margin-top: .6rem; }
.section__head .ur { font-size: 1.25rem; color: var(--blue-700); margin-top: .5rem; }

/* ---------- Urdu quote band ---------- */
.quote-band {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: #fff; text-align: center; padding: 64px 0; position: relative; overflow: hidden;
}
.quote-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(65deg, transparent 0 44px, rgba(255, 255, 255, .045) 44px 46px);
}
.quote-band .ur { font-size: clamp(1.5rem, 3.4vw, 2.3rem); position: relative; text-shadow: 0 4px 24px rgba(0, 0, 0, .3); }
.quote-band .att { position: relative; margin-top: .6rem; color: var(--sky); font-size: .9rem; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

/* ---------- Packages ---------- */
.packages { display: grid; gap: 1.2rem; }
.pkg-cat {
  background: linear-gradient(180deg, #fff, #f8fbff);
  border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.pkg-cat__bar {
  width: 100%; display: flex; align-items: center; gap: 1.4rem; text-align: left;
  background: none; border: 0; cursor: pointer; padding: 1.35rem 1.6rem; font-family: inherit;
}
.pkg-cat__bar:hover h3 { color: var(--blue-600); }
.pkg-cat__title { min-width: 250px; }
.pkg-cat__title h3 { font-size: 1.28rem; color: var(--blue-950); transition: color .15s ease; }
.pkg-cat__urdu { color: var(--blue-700); font-size: 1.2rem; }
.pkg-cat__blurb { flex: 1; color: var(--muted); font-size: .92rem; }
.pkg-cat__chev { width: 26px; height: 26px; flex: none; color: var(--blue-700); transition: transform .3s ease; }
.pkg-cat.open .pkg-cat__chev { transform: rotate(180deg); }
.pkg-cat__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 1rem;
  max-height: 0; opacity: 0; overflow: hidden; padding: 0 1.6rem;
  transition: max-height .4s ease, opacity .3s ease, padding .3s ease;
}
.pkg-cat.open .pkg-cat__grid { max-height: 1000px; opacity: 1; padding: .2rem 1.6rem 1.6rem; }
@media (max-width: 700px) {
  .pkg-cat__bar { flex-wrap: wrap; gap: .2rem .9rem; padding: 1.15rem 1.2rem; }
  .pkg-cat__title { min-width: 0; flex: 1; }
  .pkg-cat__blurb { flex-basis: 100%; order: 3; margin-top: .35rem; }
  .pkg-cat__grid, .pkg-cat.open .pkg-cat__grid { padding-inline: 1.2rem; }
}
.pkg-mini {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1rem 1.3rem;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pkg-mini:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pkg-mini--popular { border: 2px solid var(--blue-600); box-shadow: var(--shadow-md); }
.pkg__flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-600), var(--blue-800)); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: 1px; padding: .3rem .9rem; border-radius: 999px;
  text-transform: uppercase; white-space: nowrap;
}
.pkg-mini__speed {
  font-size: 1.65rem; font-weight: 800; line-height: 1.1;
  background: linear-gradient(135deg, var(--blue-600), var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pkg-mini__sub { font-size: .78rem; color: var(--muted); margin: .2rem 0 .8rem; }
.pkg-mini ul { list-style: none; display: grid; gap: .4rem; margin-bottom: 1.1rem; flex: 1; }
.pkg-mini li { font-size: .8rem; color: var(--muted); padding-left: 1.25rem; position: relative; text-align: left; }
.pkg-mini li::before {
  content: ''; position: absolute; left: 0; top: .28rem; width: 13px; height: 13px;
  background: var(--green); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/contain no-repeat, linear-gradient(#fff, #fff);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}
.pkg-mini .btn { padding: .55rem 1rem; font-size: .82rem; width: 100%; }
.packages__note {
  text-align: center; margin-top: 2rem; color: var(--muted); font-size: .92rem;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: .9rem 1.2rem;
}

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.why__card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 1.7rem 1.4rem; transition: transform .2s ease, box-shadow .2s ease;
}
.why__card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.why__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue-100), #e0f2fe); color: var(--blue-700); margin-bottom: 1rem;
}
.why__icon svg { width: 26px; height: 26px; }
.why__card h3 { font-size: 1.02rem; color: var(--blue-950); margin-bottom: .4rem; }
.why__card p { font-size: .88rem; color: var(--muted); }
.why__card .ur { font-size: 1.05rem; color: var(--blue-700); margin-top: .5rem; }

/* ---------- Coverage ---------- */
.coverage { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: start; }
.map-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.map-card__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem;
  padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); background: #fbfdff;
}
.legend { display: flex; flex-wrap: wrap; gap: .8rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--muted); font-weight: 500; }
.legend i { width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.legend i.dot { border-radius: 50%; }
.map-public { height: 480px; z-index: 1; position: relative; }
.map-fs {
  position: absolute; top: .75rem; right: .75rem; z-index: 1200;
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; place-items: center; color: var(--blue-800);
}
.map-fs:hover { background: var(--blue-100); }
.map-fs svg { width: 20px; height: 20px; }
.map-card.fs {
  position: fixed; inset: 0; z-index: 3000; border-radius: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.map-card.fs .map-card__bar { flex: none; }
.map-card.fs .map-public { flex: 1 1 auto; height: auto; min-height: 0; }
.map-card.fs .map-setup-note { flex: none; }
.map-admin { height: calc(100vh - 240px); min-height: 420px; z-index: 1; }
.map-setup-note { padding: 1.2rem; color: var(--muted); font-size: .9rem; }
.villages h3 { font-size: 1.05rem; color: var(--blue-950); margin-bottom: 1rem; }
.village-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.village-chips span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .42rem .95rem; font-size: .85rem; font-weight: 500; color: var(--blue-900);
  display: inline-flex; align-items: center; gap: .4rem;
}
.village-chips span i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.village-chips span.ho i { background: var(--red); }
.villages__note { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); }
.villages .btn { margin-top: 1.2rem; }
@media (max-width: 900px) {
  .coverage { grid-template-columns: 1fr; }
  .map-public { height: 400px; }
}

/* Leaflet popup tuning */
.leaflet-popup-content-wrapper { border-radius: 12px; font-family: var(--font); }
.popup-title { font-weight: 700; color: var(--blue-950); }
.popup-kind { font-size: .78rem; font-weight: 600; }
.popup-ur { font-family: var(--font-ur); direction: rtl; font-size: 1rem; line-height: 2; color: var(--muted); }

/* Coverage map pins (divIcons) */
.village-pin { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 5px rgba(6, 42, 82, .5); }
.office-pin {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: linear-gradient(135deg, #ef4444, #b91c1c); border: 2.5px solid #fff;
  box-shadow: 0 4px 12px rgba(185, 28, 28, .55); display: grid; place-items: center;
}
.office-pin span { transform: rotate(45deg); color: #fff; font-size: 16px; line-height: 1; }
.village-tip { font: 600 11px var(--font); color: var(--blue-950); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- Coverage map live-signal animations (public map only) ---------- */
.asl-animated .village-pin { animation: asl-blink 1.8s ease-out infinite; }
@keyframes asl-blink {
  0%       { box-shadow: 0 0 0 0 var(--pin-ring, rgba(37, 99, 235, .55)), 0 1px 5px rgba(6, 42, 82, .5); }
  70%,100% { box-shadow: 0 0 0 10px transparent, 0 1px 5px rgba(6, 42, 82, .5); }
}

/* FTTH zone boundary: cyan light streaming along the polygon edge */
.asl-animated path.asl-boundary-fiber {
  stroke: #22d3ee; stroke-width: 3; stroke-dasharray: 10 14;
  animation: asl-flow-24 1.1s linear infinite;
}

/* Wireless zone boundary: magenta signal pulsing along the polygon edge */
.asl-animated path.asl-boundary-wireless {
  stroke: #f472b6; stroke-width: 3; stroke-dasharray: 4 10;
  animation: asl-flow-14 1.5s linear infinite;
}

/* FTTH backhaul: glowing green cable, dashes streaming towards the head office */
.asl-fiber-glow { stroke: #16a34a; stroke-opacity: .28; stroke-width: 7; stroke-linecap: round; }
.asl-fiber-flow {
  stroke: #22c55e; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 12 14; animation: asl-flow-26 1.1s linear infinite;
  filter: drop-shadow(0 0 3px rgba(34, 197, 94, .8));
}

/* Wireless backhaul: dotted signal streaming out from the head office + ripples */
.asl-wireless-flow {
  stroke: #f59e0b; stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 2 16; animation: asl-flow-18 1.4s linear infinite;
  filter: drop-shadow(0 0 3px rgba(245, 158, 11, .8));
}
.asl-wifi-ripple { position: relative; width: 20px; height: 20px; }
.asl-wifi-ripple i {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2.5px solid rgba(245, 158, 11, .9);
  animation: asl-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}
.asl-wifi-ripple i:nth-child(2) { animation-delay: .73s; }
.asl-wifi-ripple i:nth-child(3) { animation-delay: 1.47s; }
@keyframes asl-flow-26 { to { stroke-dashoffset: -26; } }
@keyframes asl-flow-24 { to { stroke-dashoffset: -24; } }
@keyframes asl-flow-18 { to { stroke-dashoffset: -18; } }
@keyframes asl-flow-14 { to { stroke-dashoffset: -14; } }
@keyframes asl-ping {
  0%   { transform: scale(.35); opacity: 1; }
  100% { transform: scale(3.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .asl-animated .village-pin, .asl-fiber-flow, .asl-wireless-flow,
  .asl-animated path.asl-boundary-fiber, .asl-animated path.asl-boundary-wireless,
  .asl-wifi-ripple i { animation: none; }
}

/* ---------- Forms (public) ---------- */
.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 900px) { .forms-grid { grid-template-columns: 1fr; } }
.form-card {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.form-card__head {
  padding: 1.3rem 1.5rem; color: #fff;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
}
.form-card--green .form-card__head { background: linear-gradient(135deg, #15803d, #22c55e); }
.form-card__head h3 { font-size: 1.15rem; }
.form-card__head .ur { font-size: 1.15rem; opacity: .95; }
.form-card__head p { font-size: .85rem; opacity: .85; margin-top: .15rem; }
.form-card__body { padding: 1.5rem; display: grid; gap: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--blue-950); margin-bottom: .35rem; }
.field label .req { color: var(--red); }
.field label .ur { font-weight: 400; color: var(--muted); font-size: 1rem; }
.input, select.input, textarea.input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px;
  padding: .75rem .95rem; font: 500 .92rem var(--font); color: var(--ink);
  background: #fbfdff; transition: border .15s ease, box-shadow .15s ease;
}
.input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(24, 119, 210, .12); }
textarea.input { resize: vertical; min-height: 84px; }
.field-error { color: var(--red); font-size: .76rem; margin-top: .3rem; display: block; }
.form-msg { border-radius: 12px; padding: .8rem 1rem; font-size: .87rem; display: none; }
.form-msg.show { display: block; }
.form-msg--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-msg--ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.form-success { text-align: center; padding: 1rem .5rem; display: none; }
.form-success.show { display: block; }
.form-success .tick {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: #dcfce7; color: var(--green-dark); display: grid; place-items: center;
}
.form-success .tick svg { width: 32px; height: 32px; }
.form-success h4 { color: var(--blue-950); font-size: 1.1rem; margin-bottom: .4rem; }
.form-success p { color: var(--muted); font-size: .9rem; }
.ticket {
  display: inline-block; margin: .9rem 0; padding: .55rem 1.1rem; border-radius: 10px;
  background: var(--blue-100); color: var(--blue-900); font-weight: 800; letter-spacing: 1px;
  font-size: 1.05rem; user-select: all;
}
.setup-banner {
  display: none; background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412;
  border-radius: 12px; padding: .85rem 1.1rem; font-size: .85rem; margin-bottom: 1rem;
}
.setup-banner.show { display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-950); color: #b9cee6; padding: 60px 0 0; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer img.logo { width: 90px; border-radius: 10px; background: #fff; padding: 6px; margin-bottom: 1rem; }
.footer p, .footer li { font-size: .88rem; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer a { color: #b9cee6; }
.footer a:hover { color: #fff; }
.footer .ur { color: var(--sky); font-size: 1.1rem; }
.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 1.1rem 0;
  display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between;
  font-size: .8rem;
}
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 1.8rem; } }

/* ---------- WhatsApp FAB ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 1500;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #2ee06f, var(--wa-dark)); color: #fff;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .65);
  transition: transform .18s ease;
}
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, .5); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.25); opacity: 0; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Toasts ---------- */
.toast-zone { position: fixed; top: 80px; right: 16px; z-index: 3000; display: grid; gap: .5rem; }
.toast {
  background: var(--ink); color: #fff; padding: .75rem 1.1rem; border-radius: 12px;
  font-size: .87rem; box-shadow: var(--shadow-lg); opacity: 0; transform: translateX(20px);
  transition: opacity .3s ease, transform .3s ease; max-width: 320px;
}
.toast--ok { background: var(--green-dark); }
.toast--err { background: #b91c1c; }
.toast.show { opacity: 1; transform: none; }

/* ============================================================================
   ADMIN
   ========================================================================== */
.admin-login {
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem;
  background: radial-gradient(900px 500px at 80% -10%, rgba(56, 189, 248, .25), transparent 60%),
              linear-gradient(160deg, var(--blue-950), var(--blue-900));
}
.admin-login__card {
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 2.2rem; width: min(420px, 100%);
}
.admin-login__card img { width: 72px; margin: 0 auto 1rem; border-radius: 12px; }
.admin-login__card h1 { text-align: center; font-size: 1.25rem; color: var(--blue-950); }
.admin-login__card .sub { text-align: center; color: var(--muted); font-size: .85rem; margin: .3rem 0 1.5rem; }
.admin-login__card form { display: grid; gap: 1rem; }

.admin-shell { display: none; min-height: 100vh; }
.admin-shell.show { display: block; }
.admin-topbar {
  position: sticky; top: 0; z-index: 500; background: var(--blue-950); color: #fff;
  display: flex; align-items: center; gap: 1rem; padding: .7rem 4%;
}
.admin-topbar img { width: 36px; border-radius: 8px; background: #fff; padding: 2px; }
.admin-topbar strong { font-size: .95rem; }
.admin-topbar .spacer { flex: 1; }
.admin-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.admin-tabs button {
  background: transparent; border: 0; color: #9db8d6; font: 600 .85rem var(--font);
  padding: .55rem .95rem; border-radius: 10px; cursor: pointer;
}
.admin-tabs button.active { background: rgba(255, 255, 255, .14); color: #fff; }
.admin-tabs button:hover { color: #fff; }
.admin-topbar .btn { padding: .5rem 1rem; font-size: .82rem; }

.admin-main { padding: 1.6rem 4% 4rem; max-width: 1300px; margin-inline: auto; }
.admin-panel { display: none; }
.admin-panel.active { display: block; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.6rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.stat-card b { font-size: 1.6rem; color: var(--blue-800); display: block; }
.stat-card span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.stat-card--red b { color: var(--red); }
.stat-card--green b { color: var(--green-dark); }
.stat-card--amber b { color: #b45309; }

.table-tools { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-bottom: 1rem; }
.table-tools .input, .table-tools select { width: auto; min-width: 150px; padding: .55rem .8rem; font-size: .86rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-chips button {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: .42rem .95rem; font: 600 .8rem var(--font); color: var(--muted); cursor: pointer;
}
.filter-chips button.active { background: var(--blue-800); border-color: var(--blue-800); color: #fff; }

.admin-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 760px; }
.admin-table th {
  text-align: left; padding: .8rem .9rem; background: #f8fafc; color: var(--muted);
  font-size: .72rem; text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.admin-table td { padding: .8rem .9rem; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #f8fbff; }
.admin-table .who b { color: var(--blue-950); }
.admin-table .who small { display: block; color: var(--muted); }
.admin-table .details { max-width: 280px; color: var(--muted); }
.badge {
  display: inline-block; padding: .2rem .65rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.badge--new { background: #fee2e2; color: #b91c1c; }
.badge--progress { background: #fef3c7; color: #b45309; }
.badge--resolved { background: #dcfce7; color: #166534; }
.badge--contacted { background: #dbeafe; color: #1d4ed8; }
.badge--installed { background: #dcfce7; color: #166534; }
.badge--closed { background: #e2e8f0; color: #475569; }
.row-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.mini-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer;
  padding: .4rem .7rem; font: 600 .76rem var(--font); color: var(--blue-800);
}
.mini-btn:hover { background: var(--blue-100); }
.mini-btn--danger { color: var(--red); }
.mini-btn--danger:hover { background: #fee2e2; }
.mini-btn--wa { color: var(--wa-dark); }
.mini-btn--wa:hover { background: #dcfce7; }
select.status-select { padding: .4rem .5rem; border-radius: 9px; font-size: .8rem; border: 1.5px solid var(--line); background: #fff; font-weight: 600; }
.note-input { min-width: 170px; padding: .45rem .6rem; font-size: .8rem; border: 1.5px solid var(--line); border-radius: 9px; }
.empty-row td { text-align: center; color: var(--muted); padding: 2rem; }

/* Admin map editor */
.admin-map-grid { display: grid; grid-template-columns: 1fr 330px; gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .admin-map-grid { grid-template-columns: 1fr; } .map-admin { height: 55vh; } }
.shape-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.shape-list__head { padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--blue-950); font-size: .9rem; }
.shape-list__scroll { max-height: calc(100vh - 320px); overflow: auto; }
.shape-item {
  display: flex; align-items: center; gap: .6rem; padding: .65rem 1.1rem;
  border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: .86rem;
}
.shape-item:hover { background: #f8fbff; }
.shape-item.active { background: var(--blue-100); }
.shape-item i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.shape-item small { margin-left: auto; color: var(--muted); }
.shape-editor { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; display: grid; gap: .9rem; }
.shape-editor h3 { font-size: 1rem; color: var(--blue-950); }
.shape-editor .hint { font-size: .8rem; color: var(--muted); }
.shape-editor .row-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.leaflet-draw-section { background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); }
