:root {
  --ink: #102d2a;
  --muted: #647672;
  --green: #16b879;
  --green-dark: #0e8f62;
  --lime: #dfff78;
  --paper: #f7faf7;
  --white: #fff;
  --line: #dfe9e4;
  --shadow: 0 24px 70px rgba(28, 75, 61, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .search-shell, html[dir="rtl"] .map-choice, html[dir="rtl"] .saved-item, html[dir="rtl"] .destination-line, html[dir="rtl"] .readiness-row { direction: rtl; }
html[dir="rtl"] .chevron { transform: scaleX(-1); }
html[dir="rtl"] .consent-close { right: auto; left: 18px; }
html[dir="rtl"] .primary-button { flex-direction: row-reverse; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(22,184,121,.28); outline-offset: 3px; }
[hidden] { display: none !important; }
.ambient { position: fixed; border-radius: 50%; filter: blur(3px); z-index: -1; opacity: .55; }
.ambient-one { width: 420px; height: 420px; background: #dff8e5; top: -180px; right: -100px; }
.ambient-two { width: 300px; height: 300px; background: #f1ffd0; bottom: -170px; left: -140px; }

.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 24px Manrope, sans-serif; letter-spacing: -.8px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; background: var(--green); border-radius: 12px 12px 14px 14px; transform: rotate(-5deg); }
.brand-mark svg { width: 23px; fill: none; stroke: white; stroke-width: 3; }
.icon-button { border: 1px solid var(--line); background: rgba(255,255,255,.7); width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: .2s ease; }
.icon-button:hover { background: white; transform: translateY(-2px); }
.icon-button svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.account-button { height: 44px; padding: 0 13px 0 8px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); cursor: pointer; }
.account-button > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 10px; background: #e9f8ef; color: var(--green-dark); }
.account-button b { font-size: 12px; }
.text-button, .install-button { border: 1px solid var(--line); background: rgba(255,255,255,.7); border-radius: 13px; cursor: pointer; font-weight: 700; }
.text-button { width: 44px; height: 44px; }
.install-button { height: 44px; padding: 0 14px; color: var(--green-dark); }

main { min-height: calc(100vh - 180px); }
.hero { width: min(760px, calc(100% - 40px)); margin: 54px auto 90px; text-align: center; animation: reveal .55s ease both; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--green-dark); letter-spacing: .04em; text-transform: uppercase; }
.eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(22,184,121,.11); }
h1 { margin: 22px 0 20px; font: 800 clamp(44px, 7vw, 76px)/1.04 Manrope, sans-serif; letter-spacing: -4px; }
h1 em { color: var(--green); font-style: normal; }
.hero-copy { max-width: 530px; margin: 0 auto 35px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.resume-journey { max-width: 650px; margin: 0 auto 16px; padding: 11px; display: flex; align-items: center; gap: 11px; border: 1px solid #bfe8d2; border-radius: 17px; background: #effbf5; text-align: left; }
.resume-journey > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: var(--green); color: white; font-weight: 900; }
.resume-journey > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.resume-journey small { color: var(--green-dark); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.resume-journey strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resume-journey button { padding: 9px 12px; border: 0; border-radius: 11px; background: var(--green); color: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.resume-journey button:last-child { width: 35px; padding: 9px; background: transparent; color: var(--muted); font-size: 18px; }
.search-shell { position: relative; max-width: 650px; margin: auto; padding: 8px 8px 8px 22px; min-height: 68px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: var(--shadow); text-align: left; }
.search-shell > svg { width: 23px; fill: none; stroke: #82918d; stroke-width: 1.8; }
.search-shell input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 17px; }
.search-shell input::placeholder { color: #91a09d; }
.search-shell > button { width: 50px; height: 50px; border: 0; border-radius: 16px; background: var(--green); color: white; display: grid; place-items: center; cursor: pointer; transition: .2s; }
.search-shell > button:hover { background: var(--green-dark); transform: scale(1.03); }
.search-shell button svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.suggestions { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); z-index: 5; }
.suggestions.open { display: block; }
.suggestions button { width: 100%; padding: 13px 15px; border: 0; border-radius: 12px; background: transparent; text-align: left; cursor: pointer; }
.suggestions button:hover { background: #eef9f3; }
.suggestions button { display: flex; flex-direction: column; gap: 4px; }
.suggestions button strong { font-weight: 600; line-height: 1.25; }
.suggestions button small { color: var(--green-dark); }
.suggestion-message { padding: 14px 15px; color: var(--muted); text-align: center; }
.map-choice { max-width: 650px; width: 100%; margin: 16px auto 0; padding: 15px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.55); text-align: left; cursor: pointer; }
.map-choice:hover { background: white; }
.mini-icon { width: 38px; height: 38px; border-radius: 12px; background: #e9f8ef; color: var(--green-dark); display: grid; place-items: center; }
.mini-icon svg, .chevron { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.map-choice > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; }
.map-choice small { margin-top: 2px; color: var(--muted); }
.quick-row { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.quick-item { min-width: 105px; padding: 13px 16px; display: flex; align-items: center; gap: 9px; border: 0; border-radius: 15px; background: transparent; cursor: pointer; }
.quick-item:hover { background: white; }
.quick-item span { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 10px; background: white; display: grid; place-items: center; font-size: 17px; }
.quick-item.unset { opacity: .55; }
.saved-section { max-width: 650px; margin: 28px auto 0; text-align: left; }
.section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; padding: 0 4px; }
.section-heading > strong { font: 700 14px Manrope; }
.section-heading button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.saved-list { min-width: 0; display: grid; gap: 8px; }
.saved-item { width: 100%; min-width: 0; max-width: 100%; padding: 7px; display: flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.68); text-align: left; overflow: hidden; }
.saved-item:hover { background: white; }
.saved-place-select { min-width: 0; flex: 1; padding: 5px 7px; display: flex; gap: 12px; align-items: center; border: 0; background: transparent; cursor: pointer; text-align: left; }
.saved-place-select > span:first-child { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: #e9f8ef; color: var(--green-dark); }
.saved-place-select > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.saved-item strong, .saved-item small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-item small { color: var(--muted); }
.quick-alarm { flex: 0 0 auto; min-height: 42px; padding: 0 12px; border: 0; border-radius: 11px; background: var(--green); color: white; cursor: pointer; font-size: 12px; font-weight: 800; }
.quick-alarm:hover { background: var(--green-dark); }
.quick-alarm:disabled { opacity: .45; cursor: not-allowed; }
.manage-place { width: 36px; height: 42px; flex: 0 0 auto; border: 0; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 800; letter-spacing: 1px; }
.manage-place:hover { background: #edf5f0; color: var(--ink); }

.panel-view { width: min(560px, calc(100% - 40px)); margin: 38px auto 80px; padding: 38px; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); animation: reveal .4s ease both; }
.back-button { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 20px; }
.destination-badge { display: inline-block; margin: 28px 0 8px; padding: 7px 11px; background: #e7f8ef; color: var(--green-dark); border-radius: 9px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.setup h2 { margin: 5px 0 8px; font: 800 34px/1.15 Manrope; letter-spacing: -1.4px; }
.setup > p { margin: 0 0 25px; color: var(--muted); }
.distance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.distance-grid button { padding: 18px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 17px; background: white; text-align: left; cursor: pointer; }
.distance-grid button:hover, .distance-grid button.selected { border-color: var(--green); background: #effbf5; box-shadow: inset 0 0 0 1px var(--green); }
.distance-grid strong { font-size: 18px; }
.distance-grid small { color: var(--muted); }
.custom-distance { margin-top: 12px; padding: 17px; border: 1px solid var(--green); border-radius: 17px; background: #effbf5; animation: reveal .25s ease both; }
.custom-distance > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.custom-distance label { font-weight: 700; }
.custom-distance output { min-width: 72px; padding: 7px 10px; border-radius: 10px; background: var(--green); color: white; font-weight: 800; text-align: center; }
.custom-distance input { width: 100%; margin: 18px 0 3px; accent-color: var(--green); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.promise-card { margin: 22px 0; padding: 16px; display: flex; gap: 13px; align-items: center; border-radius: 17px; background: #f5f7f5; }
.promise-card > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); }
.promise-card div { display: flex; flex-direction: column; gap: 3px; }
.promise-card small { color: var(--muted); line-height: 1.35; }
.save-place-row { margin: -8px 0 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.save-place-row button { padding: 10px 8px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; font-size: 12px; font-weight: 700; }
.save-place-row button:hover { border-color: var(--green); color: var(--green-dark); }
.primary-button, .alarm-button { width: 100%; padding: 17px 20px; border: 0; border-radius: 17px; background: var(--green); color: white; font-weight: 700; font-size: 16px; cursor: pointer; box-shadow: 0 12px 30px rgba(22,184,121,.26); }
.primary-button { display: flex; justify-content: space-between; }
.primary-button:hover, .alarm-button:hover { background: var(--green-dark); }
.primary-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.map-view { width: min(760px, calc(100% - 40px)); }
.map-header { display: flex; align-items: center; gap: 16px; }
.map-header small { color: var(--green-dark); font-weight: 800; letter-spacing: .12em; }
.map-header h2 { margin: 2px 0 0; font: 800 28px Manrope; letter-spacing: -1px; }
.map-help { color: var(--muted); }
#map { height: 390px; margin-top: 18px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #e7eee9; z-index: 1; }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-control-zoom a { color: var(--ink); }
.picked-location { margin: 14px 0; padding: 14px 16px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 15px; }
.picked-location > span { width: 35px; height: 35px; border-radius: 11px; display: grid; place-items: center; color: var(--green-dark); background: #e9f8ef; }
.picked-location div { min-width: 0; display: flex; flex-direction: column; }
.picked-location small { color: var(--muted); font-size: 9px; letter-spacing: .1em; }
.picked-location strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.locate-button { padding: 15px 18px; border: 1px solid var(--line); border-radius: 17px; background: white; font-weight: 700; cursor: pointer; }
.locate-button:hover { background: #f0faf5; }

.journey { text-align: center; }
.approach-alert { margin: 18px 0 -4px; padding: 12px; display: flex; align-items: center; gap: 11px; border-radius: 15px; background: #fff5cf; color: #6d5700; text-align: left; animation: reveal .3s ease both; }
.approach-alert > span { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; background: #ffd95a; font-weight: 900; }
.approach-alert div { display: flex; flex-direction: column; }
.approach-alert small { margin-top: 2px; opacity: .75; }
.connection-alert { margin: 14px 0 -4px; padding: 11px; display: flex; align-items: center; gap: 10px; border: 1px solid #efd59b; border-radius: 14px; background: #fff9e9; text-align: left; }
.connection-alert > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #ffd95a; font-weight: 900; }
.connection-alert > div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.connection-alert small { color: var(--muted); }
.connection-alert button { padding: 8px 10px; border: 0; border-radius: 9px; background: white; color: var(--green-dark); cursor: pointer; font-size: 11px; font-weight: 800; }
.journey-top { display: flex; align-items: center; justify-content: space-between; }
.journey-top .icon-button { font-size: 26px; line-height: 1; }
.live-pill { padding: 8px 12px; display: inline-flex; gap: 8px; align-items: center; border-radius: 20px; color: var(--green-dark); background: #e9f8ef; font-size: 13px; font-weight: 700; }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; }
.route-visual { height: 120px; position: relative; margin: 25px 10px 10px; }
.route-line { position: absolute; top: 58px; left: 20px; right: 20px; height: 4px; border-radius: 5px; background: #dce8e2; overflow: hidden; }
.route-line span { display: block; height: 100%; width: 22%; background: var(--green); transition: width 1.5s ease; }
.vehicle { position: absolute; top: 47px; left: calc(22% - 3px); width: 26px; height: 26px; display: grid; place-items: center; color: var(--green); background: white; border: 4px solid var(--green); border-radius: 50%; font-size: 0; transition: left 1.5s ease; box-shadow: 0 4px 15px rgba(22,184,121,.3); }
.target-pin { position: absolute; top: 17px; right: 3px; }
.target-pin svg { width: 47px; fill: var(--ink); stroke: white; stroke-width: 2; }
.journey-info > small { color: var(--muted); font-weight: 700; letter-spacing: .12em; }
.journey-info h2 { margin: 4px 0 0; font: 800 70px/1 Manrope; letter-spacing: -5px; }
.journey-info h2 b { font-size: 30px; letter-spacing: -1px; }
.journey-info > p { margin: 8px 0 28px; color: var(--muted); }
.destination-line { padding: 15px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 16px; text-align: left; }
.destination-line > span { width: 11px; height: 11px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px #e1f7ec; }
.destination-line div { display: flex; flex-direction: column; }
.destination-line small { color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.status-strip { margin-top: 15px; padding: 12px 5px; display: flex; justify-content: space-around; color: var(--muted); font-size: 13px; }
.pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.ghost-button { margin-top: 12px; padding: 11px 18px; border: 0; border-radius: 12px; color: var(--green-dark); background: #e9f8ef; font-weight: 700; cursor: pointer; }

.alarm-view { width: min(520px, calc(100% - 40px)); margin: 30px auto; text-align: center; animation: reveal .4s ease both; }
.alarm-rings { width: 250px; height: 250px; margin: 0 auto 20px; position: relative; display: grid; place-items: center; }
.alarm-rings span { position: absolute; border: 1px solid rgba(22,184,121,.2); border-radius: 50%; animation: ring 2s infinite; }
.alarm-rings span:nth-child(1) { width: 120px; height: 120px; }
.alarm-rings span:nth-child(2) { width: 180px; height: 180px; animation-delay: .3s; }
.alarm-rings span:nth-child(3) { width: 240px; height: 240px; animation-delay: .6s; }
.alarm-rings div { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green); font-size: 42px; box-shadow: 0 20px 60px rgba(22,184,121,.4); }
.alarm-kicker { margin: 0; color: var(--green-dark); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.alarm-view h2 { margin: 6px 0; font: 800 64px/1 Manrope; letter-spacing: -4px; }
.alarm-view > p:not(.alarm-kicker) { color: var(--muted); font-size: 19px; line-height: 1.55; }
.alarm-view > p strong { color: var(--ink); }
.alarm-button { max-width: 360px; margin: 20px 0 15px; }
.alarm-view > small { display: block; color: var(--muted); }

footer { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
footer span { color: var(--ink); font-weight: 800; }
footer p { margin: 0; }
footer button { border: 0; background: transparent; color: var(--green-dark); cursor: pointer; font-weight: 700; }
.privacy-policy-link { color: var(--green-dark); text-decoration: none; font-weight: 700; }
.privacy-policy-link:hover { text-decoration: underline; }
.footer-actions { display: flex; gap: 14px; }
#feedbackButton { position: fixed; right: 18px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 50; padding: 12px 16px; border-radius: 14px; background: var(--green); color: white; box-shadow: 0 12px 30px rgba(14,143,98,.3); }
#feedbackButton:hover { background: var(--green-dark); transform: translateY(-2px); }
html[dir="rtl"] #feedbackButton { right: auto; left: 18px; }
.feedback-card { width: min(480px, 100%); }
#feedbackForm { display: grid; gap: 13px; margin-top: 18px; }
#feedbackForm label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
#feedbackForm select, #feedbackForm textarea { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; font: inherit; }
#feedbackForm textarea { min-height: 130px; resize: vertical; }
#feedbackForm > small { color: var(--muted); line-height: 1.45; }

.consent-overlay { position: fixed; inset: 0; z-index: 1000; padding: 18px; display: grid; place-items: center; background: rgba(6,32,28,.62); backdrop-filter: blur(8px); overflow-y: auto; }
.consent-card { position: relative; width: min(540px, 100%); max-height: calc(100vh - 36px); padding: 30px; border-radius: 28px; background: white; box-shadow: 0 30px 100px rgba(0,0,0,.3); overflow-y: auto; animation: reveal .3s ease both; }
.consent-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 24px; }
.consent-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 18px; background: #e8f9ef; color: var(--green-dark); font-size: 28px; }
.consent-kicker { margin: 18px 0 4px; color: var(--green-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.consent-card h2 { margin: 0; max-width: 420px; font: 800 30px/1.15 Manrope; letter-spacing: -1.2px; }
.consent-lead { color: var(--muted); line-height: 1.5; }
.consent-points { display: grid; gap: 10px; margin: 18px 0; }
.consent-points > div { display: flex; gap: 11px; align-items: flex-start; }
.consent-points > div > span { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--lime); font-weight: 800; }
.consent-points p { margin: 0; display: flex; flex-direction: column; }
.consent-points small { margin-top: 2px; color: var(--muted); }
.privacy-link { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: #f7faf7; color: var(--green-dark); cursor: pointer; font-weight: 700; }
.privacy-notice { margin-top: 10px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf9; font-size: 12px; line-height: 1.45; }
.privacy-notice h3 { margin-top: 0; font-size: 15px; }
.privacy-notice p { margin: 8px 0; }
.legal-warning { padding: 9px; border-radius: 9px; background: #fff4d8; }
.consent-check { margin: 15px 0; display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; cursor: pointer; }
.consent-choice-title { margin: 18px 0 5px; padding-top: 15px; border-top: 1px solid var(--line); font-size: 15px; }
.consent-check input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--green); }
.consent-decline, .consent-revoke { width: 100%; margin-top: 9px; padding: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.consent-revoke { color: #b64b4b; }
.account-card { width: min(480px, 100%); }
.place-editor-card { width: min(440px, 100%); }
.readiness-card { width: min(490px, 100%); }
.readiness-list { margin: 18px 0 12px; display: grid; gap: 9px; }
.readiness-row { padding: 12px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf9; }
.readiness-row > span { width: 30px; height: 30px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; font-weight: 900; }
.readiness-row.ready > span { background: #dff8e9; color: var(--green-dark); }
.readiness-row.warning > span { background: #fff2c9; color: #8a6500; }
.readiness-row.error > span { background: #ffe0e0; color: #b13c3c; }
.readiness-row div { min-width: 0; display: flex; flex-direction: column; }
.readiness-row small { margin-top: 2px; color: var(--muted); line-height: 1.3; }
.readiness-warning { margin-bottom: 12px; padding: 11px; border-radius: 12px; background: #fff8e8; color: #695829; font-size: 11px; line-height: 1.45; }
.place-name-label { margin: 20px 0 12px; display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.place-name-label input { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: white; }
.place-name-label input:disabled { background: #f1f4f2; }
.auth-tabs { margin: 18px 0 14px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; border-radius: 14px; background: #f1f5f2; }
.auth-tabs button { padding: 10px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.auth-tabs button.selected { background: white; color: var(--ink); box-shadow: 0 4px 14px rgba(20,50,40,.08); }
#authForm { display: grid; gap: 12px; }
#authForm label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
#authForm input { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); outline: 0; }
#authForm input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,184,121,.12); }
.forgot-button { border: 0; background: transparent; color: var(--green-dark); cursor: pointer; font-size: 12px; }
.auth-message { min-height: 18px; margin: 12px 0 0; color: var(--green-dark); font-size: 12px; text-align: center; }
.auth-message.error { color: #b64b4b; }
.account-session { text-align: center; }
.session-avatar { width: 58px; height: 58px; margin: 10px auto; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 26px; }
.account-session strong, .account-session small { display: block; overflow-wrap: anywhere; }
.account-session small { margin: 5px 0 18px; color: var(--muted); }
.session-note { margin: -8px 0 16px; padding: 10px; border-radius: 10px; background: #f3f7f4; color: var(--muted); font-size: 11px; line-height: 1.4; }
.account-secondary, .account-danger { width: 100%; margin-top: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; font-weight: 700; }
.account-danger { color: #b13c3c; border-color: #f0d2d2; }
.password-update, .delete-account-panel { display: grid; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: #f8faf9; }
.password-update h3, .delete-account-panel h3 { margin: 0; }
.password-update p, .delete-account-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.password-update label { display: grid; gap: 5px; font-size: 12px; font-weight: 700; }
.password-update input, .delete-account-panel input { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; }
.delete-account-panel { border-color: #efd0d0; background: #fff9f9; }
.delete-confirm { padding: 13px; border: 0; border-radius: 12px; background: #b13c3c; color: white; cursor: pointer; font-weight: 800; }
.delete-confirm:disabled { opacity: .4; cursor: not-allowed; }

@keyframes reveal { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes ring { 50% { transform: scale(1.04); opacity: .45; } }

@media (max-width: 650px) {
  .site-header { height: 72px; width: calc(100% - 30px); }
  .brand { font-size: 21px; }
  .brand-mark { width: 32px; height: 32px; }
  .install-button { display: none !important; }
  .account-button b { display: none; }
  .account-button { padding-right: 8px; }
  .hero { width: calc(100% - 30px); margin: 42px auto 60px; }
  h1 { font-size: clamp(42px, 13vw, 58px); letter-spacing: -3px; }
  .hero-copy { font-size: 15px; }
  .resume-journey button:not(:last-child) { font-size: 0; }
  .resume-journey button:not(:last-child)::after { content: "Devam"; font-size: 11px; }
  .search-shell { min-height: 62px; border-radius: 19px; padding-left: 17px; }
  .search-shell > button { width: 46px; height: 46px; }
  .map-choice small { font-size: 11px; }
  .quick-row { gap: 1px; justify-content: space-between; }
  .quick-item { min-width: 0; padding: 10px 7px; flex-direction: column; font-size: 12px; }
  .quick-alarm span { display: none; }
  .quick-alarm { width: 42px; padding: 0; font-size: 15px; }
  .panel-view { width: calc(100% - 24px); margin-top: 20px; padding: 24px; border-radius: 25px; }
  .map-view { width: calc(100% - 18px); padding: 15px; }
  #map { height: 360px; border-radius: 18px; }
  .map-actions { grid-template-columns: 1fr; }
  .setup h2 { font-size: 29px; }
  .distance-grid { gap: 9px; }
  .distance-grid button { padding: 15px; }
  .promise-card { align-items: flex-start; }
  .promise-card small { font-size: 12px; }
  .save-place-row { grid-template-columns: 1fr; }
  .journey-info h2 { font-size: 62px; }
  footer { width: calc(100% - 30px); }
  footer p { display: none; }
  .footer-actions { gap: 4px; }
  .footer-actions button { font-size: 11px; }
  #feedbackButton { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); max-width: 180px; padding: 11px 13px; }
  html[dir="rtl"] #feedbackButton { right: auto; left: 12px; }
  .consent-overlay { padding: 9px; align-items: end; }
  .consent-card { max-height: calc(100vh - 18px); padding: 24px 20px; border-radius: 25px 25px 18px 18px; }
  .consent-card h2 { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
