:root {
  --shield: #1A3A5C;
  --shield-2: #234b74;
  --green: #27AE60;
  --blue: #2E86C1;
  --amber: #F39C12;
  --orange: #E67E22;
  --red: #E74C3C;
  --white: #F8F9FA;
  --slate: #6C7A89;
  --ink: #16263a;
  --line: #e2e6ea;
  --card: #ffffff;
  --radius: 14px;
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--shield); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; margin: 0 0 8px; line-height: 1.2; color: var(--shield); }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.center { text-align: center; }

/* shell */
.shell { max-width: 520px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--white); }
@media (min-width: 560px) { .shell { box-shadow: 0 0 0 1px var(--line); } }
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--shield); color: #fff;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.brand svg { width: 26px; height: 26px; }
.brand span { font-family: var(--head); font-weight: 900; font-size: 18px; letter-spacing: .3px; }
.topbar .link { color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; opacity: .9; }
.beta-tag { font-size: 10px; font-weight: 700; letter-spacing: .6px; background: rgba(255,255,255,.15); padding: 2px 6px; border-radius: 6px; margin-left: 4px; }
main { flex: 1; padding: 16px 16px 96px; }
.bottomnav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-top: 1px solid var(--line); z-index: 10;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottomnav a { padding: 10px 4px 12px; text-align: center; font-size: 12px; font-weight: 500; color: var(--slate); text-decoration: none; }
.bottomnav a.active { color: var(--shield); }
.bottomnav svg { display: block; margin: 0 auto 2px; width: 22px; height: 22px; }

/* hero */
.hero { background: var(--shield); color: #fff; margin: -16px -16px 16px; padding: 28px 20px 24px; }
.hero h1 { color: #fff; font-size: 26px; font-weight: 900; }
.hero p { color: rgba(255,255,255,.85); }

/* cards & lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.tip { background: #eef3f8; border-left: 4px solid var(--shield); border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.tip strong { font-family: var(--head); color: var(--shield); }
.list { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 8px; text-decoration: none; color: inherit;
}
.row .t { font-weight: 600; color: var(--ink); }
.row .s { font-size: 13px; color: var(--slate); }
.section-title { font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .6px; text-transform: uppercase; color: var(--slate); margin: 20px 0 10px; }

/* buttons & forms */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--shield); color: #fff; font-family: var(--head); font-weight: 700; font-size: 15px; text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--shield); border: 1.5px solid var(--shield); }
.btn.ghost { background: transparent; color: var(--shield); border: 0; padding: 10px; width: auto; }
.btn.small { width: auto; padding: 8px 14px; font-size: 13px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-size: 16px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--shield); }
textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 12px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--shield); }
.searchbar { display: flex; gap: 8px; margin-bottom: 16px; }
.searchbar input { flex: 1; }
.searchbar button { width: auto; padding: 0 18px; }

/* segmented answers */
.q { padding: 14px 0; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; }
.q .label { font-weight: 600; margin-bottom: 2px; }
.q .qtip { font-size: 13px; color: var(--slate); margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  flex: 1 1 auto; min-width: 56px; padding: 10px 12px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 500; font-size: 14px;
}
.seg button.on { border-color: var(--shield); background: var(--shield); color: #fff; }
.scale-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); margin-top: 6px; }

/* stepper */
.progress { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 6px 0 16px; }
.progress > div { height: 100%; background: var(--shield); transition: width .25s ease; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; }
.step-head .pts { font-size: 13px; color: var(--slate); }
.sticky-actions { position: sticky; bottom: 72px; background: linear-gradient(transparent, var(--white) 30%); padding-top: 16px; }

/* scores */
.score-wrap { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 112px; height: 112px; transform: rotate(-90deg); }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .num b { font-family: var(--head); font-weight: 900; font-size: 32px; line-height: 1; color: var(--ink); }
.ring .num small { font-size: 11px; color: var(--slate); }
.band { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eef1f4; color: var(--ink); }
.pill { min-width: 46px; text-align: center; font-family: var(--head); font-weight: 900; font-size: 16px; color: #fff; padding: 6px 8px; border-radius: 10px; }
.pill.none { background: #eef1f4; color: var(--slate); font-size: 11px; font-weight: 700; }
.bar { margin-bottom: 10px; }
.bar .top { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; }
.bar .track { height: 8px; background: var(--line); border-radius: 8px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 8px; }
.disclaimer { font-size: 12px; color: var(--slate); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 12px; }

.assessment { border-top: 1px solid var(--line); padding: 14px 0; }
.assessment:first-child { border-top: 0; }
.assessment .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--slate); margin-bottom: 6px; }
.photos { display: flex; gap: 8px; overflow-x: auto; margin-top: 8px; }
.photos img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs .t { position: relative; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.thumbs button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: 12px; cursor: pointer; }
.upload { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px dashed var(--slate); border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 500; }
.upload input { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; }
.stat b { display: block; font-family: var(--head); font-weight: 900; font-size: 22px; color: var(--shield); }
.stat span { font-size: 11px; color: var(--slate); }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%);
  max-width: 480px; width: calc(100% - 32px); background: var(--ink); color: #fff;
  padding: 12px 16px; border-radius: 12px; font-size: 14px; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.error { background: var(--red); }
.empty { text-align: center; padding: 28px 12px; color: var(--slate); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--shield); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.tutorial { text-align: center; padding-top: 24px; }
.tutorial .icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 20px; background: var(--shield); display: flex; align-items: center; justify-content: center; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 20px 0; }
.dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots span.on { background: var(--shield); }
.legal h2 { margin-top: 18px; }
.legal p, .legal li { font-size: 14px; }

/* Hotel responses, claims, account deletion */
.reply { background: #eef3f8; border-left: 4px solid var(--shield); border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.reply-edit { margin: 8px 0; }
.reply-edit summary { cursor: pointer; color: var(--shield); font-weight: 600; margin-bottom: 8px; }
.danger-zone summary { cursor: pointer; color: #B42318; }
.btn.danger { background: #B42318; border-color: #B42318; color: #fff; width: 100%; }
.btn.danger:disabled { opacity: .45; cursor: not-allowed; }
.typefilter { margin: 4px 0 8px; }
.typefilter a { display: inline-block; padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; background: #fff; }
.typefilter a.on { border-color: var(--shield); background: var(--shield); color: #fff; }
