:root {
  --navy: #061a55;
  --navy-2: #0b2a72;
  --blue: #0f5dd7;
  --blue-soft: #edf5ff;
  --ink: #172033;
  --muted: #64748b;
  --line: #dbe3ee;
  --surface: #ffffff;
  --page: #f6f8fc;
  --success: #137a4b;
  --danger: #b42318;
  --warning: #955f00;
  --shadow: 0 14px 36px rgba(18, 38, 74, 0.10);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 0%, rgba(15,93,215,.08), transparent 32rem),
    var(--page);
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, .button, input[type="submit"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(15,93,215,.22);
  outline-offset: 2px;
}
.shell { width: min(100%, 980px); margin: 0 auto; padding: 0 18px 42px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(246,248,252,.90);
  border-bottom: 1px solid rgba(219,227,238,.9);
  padding-top: env(safe-area-inset-top);
}
.header-inner { width: min(100%, 980px); margin: 0 auto; min-height: 72px; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand-link { display: inline-flex; align-items: center; min-width: 0; }
.brand-wordmark { display: block; width: auto; height: 42px; max-width: 220px; object-fit: contain; object-position: left center; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button, .ghost-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  padding: 9px 13px;
  cursor: pointer;
  font-weight: 700;
}
.page-head { padding: 28px 0 18px; }
.eyebrow { color: var(--blue); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
h1, h2, h3 { color: var(--navy); margin-top: 0; }
h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.08; letter-spacing: -.03em; margin-bottom: 10px; }
h2 { font-size: 23px; margin-bottom: 8px; }
h3 { font-size: 17px; margin-bottom: 7px; }
p { line-height: 1.55; }
.lead { color: var(--muted); font-size: 16px; max-width: 720px; margin: 0; }
.progress-wrap { padding: 16px 0 3px; }
.progress-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.progress-track { height: 8px; border-radius: 999px; background: #e6ebf3; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--navy-2)); }
.card { background: var(--surface); border: 1px solid rgba(219,227,238,.92); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card + .card { margin-top: 16px; }
.card.flat { box-shadow: none; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 800; color: var(--navy); }
.field small, .muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.input, input[type="text"], input[type="tel"], input[type="email"], input[type="time"], input[type="number"], select, textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
}
textarea { min-height: 112px; resize: vertical; }
input[readonly], input[disabled] { background: #f2f5f9; color: #566175; opacity: 1; }
.inline-fields { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.button {
  min-height: 50px;
  border: 0;
  border-radius: 15px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15,93,215,.18);
}
.button:hover { text-decoration: none; filter: brightness(.98); }
.button.secondary { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none; }
.button.danger { background: #fff; color: var(--danger); border: 1px solid #f2c5c2; box-shadow: none; }
.button.small { min-height: 44px; padding: 10px 14px; border-radius: 13px; }
.button.full { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 24px -18px -42px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(246,248,252,0), rgba(246,248,252,.96) 28%, rgba(246,248,252,1));
}
.sticky-actions .button { width: 100%; }
.alert { border-radius: 15px; padding: 13px 15px; margin: 0 0 16px; font-size: 14px; line-height: 1.45; border: 1px solid; }
.alert.success { background: #effaf4; border-color: #bee7d2; color: #0f633c; }
.alert.error { background: #fff3f2; border-color: #f4c7c3; color: #912018; }
.alert.info { background: #eff6ff; border-color: #c8ddff; color: #174a91; }
.alert.warning { background: #fff8e8; border-color: #f1daa2; color: #75500c; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) 18px calc(28px + env(safe-area-inset-bottom)); }
.login-card { width: min(100%, 540px); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 22px 70px rgba(9,29,69,.14); overflow: hidden; }
.login-top { padding: 30px 26px 18px; text-align: center; }
.login-logo { width: min(330px, 88%); height: auto; display: block; margin: 0 auto 22px; }
.login-body { padding: 0 26px 28px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: #eef2f8; border-radius: 14px; gap: 4px; margin-bottom: 20px; }
.segmented button { min-height: 43px; border: 0; border-radius: 11px; background: transparent; color: #536175; font-weight: 800; cursor: pointer; }
.segmented button.active { background: #fff; color: var(--navy); box-shadow: 0 2px 9px rgba(20,43,80,.10); }
.social-zone { display: grid; gap: 12px; }
.social-slot { min-height: 44px; display: grid; place-items: center; }
.apple-button-fallback { min-height: 44px; border-radius: 8px; background: #000; color: #fff; display: none; align-items: center; justify-content: center; font-weight: 700; cursor: pointer; border: 0; width: 100%; }
.or-row { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 15px 0; }
.or-row:before, .or-row:after { content: ""; height: 1px; flex: 1; background: var(--line); }
.check-row { display: flex; gap: 10px; align-items: flex-start; color: #46546a; font-size: 13px; line-height: 1.45; }
.check-row input { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.secure-note { margin-top: 18px; color: var(--muted); font-size: 12px; text-align: center; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.plan-card { position: relative; display: block; border: 1.5px solid var(--line); border-radius: 18px; padding: 17px; background: #fff; cursor: pointer; min-height: 160px; }
.plan-card:hover { border-color: #a8bee2; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(15,93,215,.10); background: #fbfdff; }
.plan-price { font-size: 27px; font-weight: 900; color: var(--navy); letter-spacing: -.03em; }
.plan-meta { color: var(--muted); font-size: 13px; margin-top: 5px; }
.choice-list { display: grid; gap: 10px; }
.choice { display: flex; gap: 11px; align-items: center; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; cursor: pointer; }
.choice input { width: 20px; height: 20px; }
.choice-main { flex: 1; min-width: 0; }
.choice-title { font-weight: 800; color: var(--navy); }
.choice-sub { color: var(--muted); font-size: 12px; margin-top: 2px; }
.choice-price { font-weight: 800; white-space: nowrap; }
.payment-reference { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ref-box { padding: 15px; background: #f4f7fb; border: 1px solid var(--line); border-radius: 15px; }
.ref-label { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 800; }
.ref-value { color: var(--navy); font-size: 22px; font-weight: 900; margin-top: 4px; word-break: break-word; }
.photo-drop { display: grid; place-items: center; text-align: center; min-height: 170px; border: 2px dashed #b9c7dc; border-radius: 20px; padding: 22px; background: #fbfcfe; cursor: pointer; }
.photo-drop:hover { border-color: var(--blue); background: #f6faff; }
.photo-drop input { position: absolute; opacity: 0; pointer-events: none; }
.photo-preview { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-top: 14px; }
.photo-preview img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 13px; border: 1px solid var(--line); }
.profile-hero { display: flex; align-items: center; gap: 16px; }
.avatar { width: 78px; height: 78px; border-radius: 50%; object-fit: cover; background: #eef3fb; border: 1px solid var(--line); flex: 0 0 auto; }
.profile-hero h2 { margin-bottom: 3px; }
.profile-hero p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.summary-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.summary-cell { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fbfcfe; }
.summary-cell .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; }
.summary-cell .value { margin-top: 4px; font-weight: 800; color: var(--navy); }
.menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.menu-card { display: flex; align-items: center; gap: 12px; min-height: 76px; border: 1px solid var(--line); border-radius: 16px; padding: 13px; background: #fff; color: var(--ink); }
.menu-card:hover { text-decoration: none; border-color: #a8bee2; }
.menu-icon { width: 42px; height: 42px; border-radius: 13px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; font-size: 20px; }
.history { display: grid; gap: 8px; }
.history-row { display: grid; grid-template-columns: 1.3fr .8fr .8fr .8fr; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 11px 0; font-size: 13px; }
.history-row:first-child { border-top: 0; }
.history-row strong { color: var(--navy); }
.pill { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border-radius: 999px; background: #eef3f9; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.footer { width: min(100%, 980px); margin: 12px auto 0; padding: 0 18px calc(24px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 12px; text-align: center; }
.map-page { height: 100vh; height: 100dvh; overflow: hidden; position: relative; background: #e7edf5; }
#map { position: absolute; inset: 0; }
.map-search { position: absolute; z-index: 10; top: calc(12px + env(safe-area-inset-top)); left: 12px; right: 12px; max-width: 640px; margin: 0 auto; }
.map-search input { box-shadow: 0 10px 28px rgba(17,37,70,.18); border: 0; }
.map-copy { position: absolute; z-index: 10; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; padding: 12px 14px; box-shadow: 0 9px 28px rgba(17,37,70,.14); font-size: 13px; }
.map-action { position: absolute; z-index: 10; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.center-pin { position: absolute; z-index: 8; left: 50%; top: 50%; width: 40px; height: 50px; transform: translate(-50%,-100%); pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0,0,0,.22)); }
.center-pin:before { content: ""; position: absolute; left: 9px; top: 4px; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--blue); transform: rotate(-45deg); }
.center-pin:after { content: ""; position: absolute; left: 16px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(6, 26, 85, .58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-card {
  width: min(100%, 470px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(219,227,238,.95);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(6,26,85,.28);
}
.apple-warning-card h2 { margin: 12px 0 10px; font-size: 22px; line-height: 1.2; }
.apple-warning-card p { margin: 0 0 12px; color: var(--muted); }
.apple-warning-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff5df;
  color: #8a5600;
  font-size: 24px;
  font-weight: 900;
  border: 1px solid #f3ddb0;
}
.apple-warning-emphasis {
  color: var(--navy) !important;
  font-weight: 800;
  background: #f4f7fc;
  border-radius: 13px;
  padding: 11px 12px;
}
.modal-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 10px; margin-top: 18px; }
@media (max-width: 430px) {
  .modal-card { padding: 20px; border-radius: 21px; }
  .modal-actions { grid-template-columns: 1fr; }
}

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.hidden { display: none !important; }
.spinner { width: 18px; height: 18px; border: 2px solid #c8d4e7; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .grid.two, .plan-grid, .menu-grid { grid-template-columns: 1fr; }
  .photo-preview { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .summary-row { grid-template-columns: 1fr; }
  .history-row { grid-template-columns: 1fr 1fr; }
  .brand-wordmark { height: 36px; max-width: 180px; }
  .card { padding: 18px; border-radius: 19px; }
}
@media (max-width: 430px) {
  .shell { padding-left: 14px; padding-right: 14px; }
  .header-inner { padding-left: 14px; padding-right: 14px; min-height: 64px; }
  .login-card { border-radius: 23px; }
  .login-top { padding: 25px 20px 14px; }
  .login-body { padding: 0 20px 24px; }
  .inline-fields { grid-template-columns: 94px 1fr; }
  .payment-reference { grid-template-columns: 1fr; }
  .photo-preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .profile-hero { align-items: flex-start; }
}

.phone-row { display: grid; grid-template-columns: minmax(92px, 0.35fr) minmax(0, 1fr); gap: 10px; }
@media (max-width: 560px) { .phone-row { grid-template-columns: 110px minmax(0, 1fr); } }
