:root {
  --aqua: #0e9de5; --aqua-dark: #0b7fc0; --aqua-deep: #085e90;
  --aqua-soft: #e6f5fd; --aqua-mist: #f0f9fe;
  --ink: #0f2d40; --muted: #648091; --mist: #f5f9fc; --line: #e4edf4;
  --ok: #12996a; --ok-soft: #e2f7ee; --warn: #e5960e; --warn-soft: #fdf3df;
  --bad: #d84a3f; --bad-soft: #fdeae8;
  --shadow-sm: 0 1px 3px rgba(15, 45, 64, .06);
  --shadow-md: 0 6px 24px -6px rgba(11, 127, 192, .18);
  --shadow-lg: 0 16px 40px -12px rgba(11, 127, 192, .28);
  --r-lg: 18px; --r-md: 14px; --r-sm: 10px;
}
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--mist); color: var(--ink); min-height: 100vh;
  font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
#shell { min-height: 100vh; display: flex; flex-direction: column; }
#view { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 0 92px; }
@keyframes fadeup { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

h1 { font-size: clamp(22px, 2.6vw, 30px); padding: 20px 20px 6px; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(16px, 1.8vw, 20px); padding: 18px 20px 6px; font-weight: 700; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 13.5px; padding: 0 20px 10px; }

svg.ic { width: 1em; height: 1em; vertical-align: -.15em; fill: none; stroke: currentColor;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.fill { fill: currentColor; stroke: none; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; margin: 7px 20px; box-shadow: var(--shadow-sm);
}
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.right { text-align: right; }
.muted { color: var(--muted); font-size: 12.5px; }
.small { font-size: 12px; }
.bold { font-weight: 700; }
.aqua { color: var(--aqua-dark); }
.okc { color: var(--ok); } .badc { color: var(--bad); } .warnc { color: var(--warn); }

.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 11px;
  border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .04em;
  white-space: nowrap;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--aqua-soft); color: var(--aqua-dark); }

button, .btn {
  border: none; border-radius: 12px; padding: 12px 20px; font-size: 14.5px;
  font-weight: 700; cursor: pointer; background: var(--aqua); color: #fff;
  font-family: inherit; transition: all .16s ease;
  box-shadow: 0 4px 14px -4px rgba(14, 157, 229, .5);
}
button:hover { background: var(--aqua-dark); box-shadow: 0 6px 18px -4px rgba(14, 157, 229, .55);
  transform: translateY(-1px); }
button:active { transform: none; }
button:disabled { background: var(--line); color: var(--muted); box-shadow: none; transform: none; }
.btn-ghost { background: #fff; color: var(--aqua-dark); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { background: var(--aqua-mist); border-color: var(--aqua); box-shadow: none; }
.btn-small { padding: 8px 15px; font-size: 13px; border-radius: 99px; }
.btn-block { display: block; width: calc(100% - 40px); margin: 12px 20px; padding: 15px; font-size: 15.5px; }

input, select, textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 15px; background: #fff; margin: 4px 0; font-family: inherit; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(14, 157, 229, .15);
}
input::placeholder, textarea::placeholder { color: #9ab2c0; }
label { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.chip {
  display: inline-block; padding: 8px 15px; border-radius: 99px; font-size: 13px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; margin: 3px 5px 3px 0;
  transition: all .15s; font-weight: 500; color: var(--ink);
}
.chip:hover { border-color: var(--aqua); color: var(--aqua-dark); }
.chip.on {
  background: var(--aqua); color: #fff; border-color: var(--aqua); font-weight: 700;
  box-shadow: 0 3px 10px -2px rgba(14, 157, 229, .5);
}

/* ============ top navigation ============ */
#topnav {
  display: none; position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
#topnav .inner {
  max-width: 1120px; margin: 0 auto; display: flex; align-items: center;
  gap: 8px; padding: 13px 20px;
}
#topnav .brand {
  font-size: 20px; font-weight: 800; color: var(--ink); cursor: pointer;
  letter-spacing: -.02em; display: flex; align-items: center; gap: 8px; margin-right: 22px;
}
#topnav .brand .mark {
  width: 34px; height: 34px; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; color: #fff; font-size: 17px;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  box-shadow: 0 4px 10px -2px rgba(14, 157, 229, .5);
}
#topnav a.nav {
  color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer;
  text-decoration: none; padding: 8px 15px; border-radius: 99px; transition: all .15s;
}
#topnav a.nav:hover { color: var(--aqua-dark); background: var(--aqua-mist); }
#topnav a.nav.on { color: var(--aqua-dark); background: var(--aqua-soft); font-weight: 700; }
#topnav .spacer { flex: 1; }

/* ============ hero ============ */
.hero {
  margin: 14px 20px; padding: clamp(24px, 3.4vw, 48px); border-radius: 24px; color: #fff;
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(255,255,255,.25), transparent 60%),
    radial-gradient(400px 400px at -10% 120%, rgba(8,94,144,.55), transparent 60%),
    linear-gradient(118deg, #14a9f0, var(--aqua-dark) 70%);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero::after {
  content: ""; position: absolute; right: -40px; bottom: -80px; width: 260px; height: 260px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.14);
}
.hero .drop {
  position: absolute; right: 5%; top: 50%; transform: translateY(-50%);
  font-size: clamp(64px, 9vw, 140px); opacity: .9;
  filter: drop-shadow(0 12px 24px rgba(8, 94, 144, .5));
}
.hero .eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  opacity: .85; margin-bottom: 8px;
}
.hero h3 { font-size: clamp(20px, 3vw, 34px); line-height: 1.22; margin-bottom: 16px;
  max-width: 24ch; font-weight: 800; letter-spacing: -.02em; }
.hero button {
  background: #fff; color: var(--aqua-dark); border-radius: 99px; box-shadow: 0 8px 20px -6px rgba(8,94,144,.6);
}
.hero button:hover { background: var(--aqua-soft); transform: translateY(-1px); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 14px 20px; }
.quick a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 6px; text-align: center; text-decoration: none; color: var(--ink);
  font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .18s;
}
.quick a:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--aqua-soft); }
.quick a .qic {
  width: 46px; height: 46px; border-radius: 14px; background: var(--aqua-soft);
  color: var(--aqua-dark); display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin: 0 auto 8px;
}

/* ============ grids ============ */
.cardgrid { display: grid; grid-template-columns: 1fr; gap: 0; }
.cardgrid > .card { cursor: pointer; transition: all .18s ease; }
.cardgrid > .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #cfe8f7; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 20px; }
.grid2 .card { margin: 0; }

.sicon {
  width: 54px; height: 54px; border-radius: var(--r-md); flex: none;
  background: linear-gradient(135deg, var(--aqua-soft), #d4edfb);
  color: var(--aqua); display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.pricebox {
  background: var(--aqua-mist); border: 1px solid #dbeffb; border-radius: var(--r-sm);
  padding: 10px 14px; margin-top: 12px; display: flex; justify-content: space-between; align-items: center;
}
.billrow { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; gap: 12px; }
.billrow .l { color: var(--muted); } .billrow.total { font-weight: 800; font-size: 16.5px; }
hr { border: none; border-top: 1px solid var(--line); margin: 9px 0; }

.step { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.step .dot {
  width: 15px; height: 15px; border-radius: 50%; background: var(--line); flex: none;
  transition: background .2s;
}
.step.done .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.step.done { font-weight: 600; }
.step:not(.done) { color: var(--muted); }
.otp-big { font-size: 36px; font-weight: 800; letter-spacing: 12px; color: var(--aqua-dark); }

/* ============ bottom nav ============ */
#bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; display: flex;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 8px 0 max(12px, env(safe-area-inset-bottom)); z-index: 50;
}
#bottomnav a {
  flex: 1; text-align: center; font-size: 11px; color: var(--muted);
  text-decoration: none; cursor: pointer; font-weight: 600;
}
#bottomnav a span { display: block; font-size: 21px; margin-bottom: 2px; transition: transform .15s; }
#bottomnav a.on { color: var(--aqua-dark); }
#bottomnav a.on span { transform: translateY(-2px); }

.topbar { display: flex; align-items: center; gap: 8px; padding: 14px 20px 4px; }
.topbar .back {
  font-size: 20px; cursor: pointer; border: 1px solid var(--line); background: #fff;
  color: var(--ink); width: 38px; height: 38px; border-radius: 12px; padding: 0;
  box-shadow: none; font-weight: 400;
}
.topbar .back:hover { background: var(--aqua-mist); transform: none; box-shadow: none; }
.topbar h1 { padding: 0; font-size: 20px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark)); color: #fff;
  font-weight: 800; display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex: none; font-size: 15px; box-shadow: 0 3px 8px -2px rgba(14,157,229,.5);
}
.search { margin: 10px 20px; position: relative; }
.search input { padding-left: 42px; border-radius: 99px; box-shadow: var(--shadow-sm); border-color: #fff; }
.search .sic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none; }

.center { text-align: center; padding: 48px 20px; color: var(--muted); }
.stars { font-size: 27px; cursor: pointer; user-select: none; letter-spacing: 3px; }
.err { color: var(--bad); font-size: 13px; padding: 4px 20px; }
.notice { color: var(--aqua-dark); font-size: 13px; padding: 4px 20px; }

/* ============ login ============ */
.loginwrap { min-height: 100vh; display: flex; }
.login-side {
  display: none; flex: 1.1; color: #fff; padding: 56px;
  background:
    radial-gradient(500px 400px at 90% 0%, rgba(255,255,255,.16), transparent 55%),
    linear-gradient(135deg, #14a9f0, var(--aqua-deep));
  flex-direction: column; justify-content: center; position: relative; overflow: hidden;
}
.login-side::after {
  content: ""; position: absolute; left: -60px; bottom: -100px; width: 320px; height: 320px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.15);
}
.login-side .big { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800;
  line-height: 1.15; letter-spacing: -.02em; max-width: 16ch; }
.login-side .pts { margin-top: 28px; display: flex; flex-direction: column; gap: 12px;
  font-size: 15px; font-weight: 500; opacity: .95; }
.login-side .pts div::before { content: "✓"; font-weight: 800; margin-right: 10px; }
.login {
  flex: 1; padding: 44px 30px; display: flex; flex-direction: column; justify-content: center;
  max-width: 460px; margin: 0 auto; width: 100%;
}
.login .logo {
  width: 64px; height: 64px; border-radius: 20px; font-size: 30px; color: #fff;
  background: linear-gradient(135deg, var(--aqua), var(--aqua-dark));
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}
.login h1 { padding: 6px 0 2px; font-size: 26px; }
.login p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.login button { margin-top: 12px; padding: 15px; width: 100%; }

.svc { text-align: left; cursor: pointer; transition: all .18s; }
.svc:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.svc .ic2 {
  width: 46px; height: 46px; border-radius: 14px; background: var(--aqua-soft);
  color: var(--aqua-dark); display: flex; align-items: center; justify-content: center;
  font-size: 21px; margin-bottom: 10px;
}

.modal-bg {
  position: fixed; inset: 0; background: rgba(8, 40, 60, .5); backdrop-filter: blur(3px);
  z-index: 100; display: flex; align-items: flex-end; justify-content: center;
  animation: fadeup .18s ease;
}
.modal {
  background: #fff; border-radius: 22px 22px 0 0; width: 100%; max-width: 500px;
  padding: 24px; max-height: 85vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 12px; font-size: 19px; letter-spacing: -.01em; }

.narrow { max-width: 660px; margin: 0 auto; }

/* footer (desktop) */
#sitefooter {
  display: none; border-top: 1px solid var(--line); background: #fff; margin-top: 30px;
}
#sitefooter .inner {
  max-width: 1120px; margin: 0 auto; padding: 26px 20px; display: flex;
  align-items: center; gap: 16px; color: var(--muted); font-size: 13px;
}

/* ============ breakpoints ============ */
@media (min-width: 768px) {
  #bottomnav { display: none !important; }
  #topnav { display: block; }
  #view { padding-bottom: 40px; }
  .cardgrid { grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 6px 20px; }
  .cardgrid > .card { margin: 0; }
  .grid2 { grid-template-columns: repeat(3, 1fr); }
  .quick { grid-template-columns: repeat(4, 1fr); max-width: 760px; }
  .modal-bg { align-items: center; }
  .modal { border-radius: 22px; }
  .login-side { display: flex; }
  .login { margin: 0; max-width: 520px; padding: 44px 56px; }
  #sitefooter { display: block; }
}
@media (min-width: 1080px) {
  .cardgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 380px) {
  .quick { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- nearby map ---------- */
#mapwrap {
  position: relative; height: calc(100vh - 250px); min-height: 420px;
  margin: 8px 20px 16px; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--aqua-mist);
}
#gmap { position: absolute; inset: 0; }
#mapsearch { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 5; }
#mapsearch input { margin: 0; border-radius: 99px; box-shadow: var(--shadow-md); border-color: transparent; }
#mapcard { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 5; }
#mapcard .card { margin: 0; box-shadow: var(--shadow-lg); animation: fadeup .18s ease; }
@media (min-width: 768px) {
  #mapwrap { height: calc(100vh - 300px); min-height: 480px; }
  #mapcard { left: auto; right: 16px; bottom: 16px; width: 360px; }
}
