/* LID — live prototype rebuilt from the final Figma design (desktop, 1512 wide). */
@font-face { font-family: "NHG"; src: url("fonts/NeueHaasGrotText-55Roman-Trial.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "NHG"; src: url("fonts/NeueHaasGrotText-65Medium-Trial.otf") format("opentype"); font-weight: 500 700; font-display: swap; }
/* Flag emoji render the same on every OS (Windows has no flag glyphs). */
@font-face { font-family: "Flags"; src: url("fonts/TwemojiCountryFlags.woff2") format("woff2"); unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F; font-display: swap; }

:root {
  --orange: #ff3f00;
  --orange-soft: #ffece5;
  --ink: #000;
  --ink-2: #121212;
  --grey: #7b7b7b;
  --grey-2: #6b6b6b;
  --line: #dedede;
  --line-2: #d4d4d4;
  --panel: #f9f9f9;
  --panel-2: #f2f2f2;
  --font: "Flags", "NHG", "Neue Haas Grotesk Text Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 400 16px/normal var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
p, h1, h2, h3, h4, ul, ol { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Icons: Iconify SVGs used as masks so they take the text colour */
.ic { display: inline-block; flex: none; width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-16 { width: 16px; height: 16px; } .ic-18 { width: 18px; height: 18px; } .ic-20 { width: 20px; height: 20px; } .ic-50 { width: 50px; height: 50px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 100px; border: 1px solid transparent; background: none; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s, transform .08s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover:not(:disabled) { background: #e83900; }
.btn-primary:disabled { background: #d9d9d9; color: #fff; cursor: not-allowed; }
.btn-outline { border-color: var(--line-2); color: var(--grey); background: #fff; }
.btn-outline:hover:not(:disabled) { border-color: #a9a9a9; color: var(--ink); }
.btn-dark { border-color: #3a3a3a; color: var(--ink); background: #fff; }
.btn-dark:hover { background: var(--panel); }
.btn-lg { height: 54px; padding: 10px 20px; font-size: 18px; font-weight: 500; letter-spacing: -0.18px; }
.btn-md { height: 40px; padding: 4px 16px; font-size: 14px; }
.btn-sm { height: 36px; padding: 4px 16px; font-size: 14px; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 756px 1fr; min-height: 100vh; }
.auth-photo { background: url("assets/venice.webp") center / cover no-repeat; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.auth-box { width: 450px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.logo { width: 126px; height: auto; }
.auth-head { text-align: center; }
.auth-head h1 { font-size: 28px; font-weight: 400; letter-spacing: -0.56px; line-height: 1.1; }
.auth-head p { margin-top: 8px; font-size: 16px; }
.card-form { width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > label, .field > .lbl { font-size: 16px; }
.input { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; font-size: 16px; background: #fff; transition: border-color .15s; }
.input::placeholder { color: var(--grey); }
.input:hover { border-color: #c4c4c4; }
.input:focus { outline: none; border-color: var(--orange); }
.input[aria-invalid="true"] { border-color: #d92d20; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 46px; }
.input-wrap .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: none; color: var(--grey); display: grid; place-items: center; border-radius: 6px; }
.err { font-size: 14px; color: #d92d20; }
.hint { font-size: 14px; color: var(--grey); letter-spacing: 0.14px; }
.forgot { align-self: flex-end; font-size: 14px; color: var(--orange); background: none; border: 0; padding: 0; margin-top: -12px; }
.switch { text-align: center; font-size: 16px; }
.link { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; }

/* ---------- Intake ---------- */
.intake { min-height: 100vh; position: relative; padding: 76px 0 64px; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.progress-top { position: fixed; top: 0; left: 0; right: 0; height: 8px; z-index: 5; }
.progress-top .fill { height: 8px; background: var(--orange); border-radius: 0 4px 4px 0; transition: width .5s cubic-bezier(.3,.7,.2,1); }
.progress-top .bubble { position: absolute; top: 30px; transform: translateX(-50%); background: var(--orange); color: #fff; font-size: 16px; padding: 6px 12px; border-radius: 10px; transition: left .5s cubic-bezier(.3,.7,.2,1); }
.progress-top .bubble::before { content: ""; position: absolute; top: -7px; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 0; border-bottom: 8px solid var(--orange); }
.intake .card-form { width: 450px; padding: 42px 32px; gap: 40px; }
.q-head h1 { font-size: 28px; font-weight: 400; letter-spacing: -0.56px; line-height: 1.1; }
.q-head p { margin-top: 12px; font-size: 18px; }
.q-body { display: flex; flex-direction: column; gap: 24px; }
.actions-row { display: flex; gap: 8px; }
.actions-row .btn-back { width: 54px; height: 54px; border-radius: 100px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; }
.actions-row .btn-back:hover { background: var(--panel); }
.actions-row .btn-primary { flex: 1; }
.help { text-align: center; font-size: 16px; display: flex; gap: 8px; justify-content: center; }
.foot { display: flex; flex-direction: column; gap: 20px; }

/* Custom select */
.select { position: relative; }
.select-btn { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; font-size: 16px; }
.select-btn:hover { border-color: #c4c4c4; }
.select-btn[aria-expanded="true"] { border-color: var(--orange); }
.select-btn .ph { color: var(--grey); }
.select-btn:disabled { background: var(--panel-2); color: var(--grey); cursor: not-allowed; }
.menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.08); max-height: 240px; overflow: auto; padding: 0; margin: 0; list-style: none; }
.menu [role="option"] { height: 46px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); cursor: pointer; }
.menu [role="option"]:first-child { border-top: 0; }
.menu [role="option"]:hover, .menu [role="option"].active { background: var(--panel-2); }
.menu [role="option"][aria-selected="true"] { color: var(--orange); }

/* Choice tiles + chips */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile { height: 66px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 16px; }
.tile .emo { font-size: 18px; line-height: 1; }
.tile:hover { border-color: #c4c4c4; }
.tile[aria-pressed="true"] { border-color: var(--orange); background: var(--orange-soft); color: var(--orange); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; height: 42px; padding: 0 16px; border-radius: 100px; border: 1px solid var(--line); background: #fff; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.chip:hover { border-color: #c4c4c4; }
.chip[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.chip .x { position: absolute; top: -5px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: #d9d9d9; color: #444; display: none; place-items: center; }
.chip[aria-pressed="true"] .x { display: grid; }
.chip-add { color: var(--grey); }
.chip-add input { border: 0; outline: 0; width: 150px; font-size: 16px; background: transparent; }
.tag { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; background: #fff; }
.tag button { border: 0; background: none; padding: 0; display: grid; place-items: center; }

/* Family rows (intake step 2) */
.member-head { display: flex; align-items: center; justify-content: space-between; }
.ghost-pill { height: 40px; padding: 0 12px; border-radius: 100px; border: 0; background: var(--panel); display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.ghost-pill:hover { background: var(--panel-2); }
.member-rows { display: flex; flex-direction: column; gap: 8px; }
.member-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 96px 24px; }
.member-row .select-btn { padding: 0 8px 0 12px; }
.member-row .select-btn .ic { width: 18px; height: 18px; }
.member-row > .input { min-width: 0; }
.member-row > .input { border-radius: 8px 0 0 8px; }
.member-row .select:nth-of-type(1) .select-btn { border-radius: 0; border-left: 0; }
.member-row .select:nth-of-type(2) .select-btn { border-radius: 0 8px 8px 0; border-left: 0; }
.member-row .rm { border: 0; background: none; color: var(--grey); display: grid; place-items: center; }
.member-row .rm:hover { color: var(--ink); }

/* Rank list */
.rank { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.rank li { display: grid; grid-template-columns: 42px 1fr; height: 46px; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; touch-action: none; user-select: none; }
.rank li .n { display: grid; place-items: center; border-right: 1px solid var(--line); background: var(--panel); }
.rank li .t { display: flex; align-items: center; gap: 12px; padding: 0 14px; cursor: grab; }
.rank li .t .ic { color: var(--orange); }
.rank li:focus-visible { outline: 2px solid var(--orange); }
.rank li.dragging { box-shadow: 0 10px 24px rgba(0,0,0,.12); border-color: var(--orange); position: relative; z-index: 2; }
.rank li.dragging .t { cursor: grabbing; }

/* Income */
.money { display: grid; grid-template-columns: 1fr 106px; }
.money .input { border-radius: 8px 0 0 8px; }
.money .select-btn { border-radius: 0 8px 8px 0; border-left: 0; }
.income-card { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.income-card .row { display: flex; justify-content: space-between; font-size: 12px; }
.income-bar { height: 8px; border-radius: 8px; background: #e7b6a4; overflow: hidden; }
.income-bar i { display: block; height: 100%; background: var(--orange); border-radius: 8px; transition: width .4s; }
.income-card .vals { display: flex; justify-content: space-between; font-size: 16px; }
.income-card .vals .muted { color: #bdbdbd; }

/* Analyzing */
.analyze { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding-top: 107px; }
.analyze .center { margin-top: 240px; width: 386px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; }
.spinner { width: 48px; height: 48px; border-radius: 50%; border: 3px solid #e3e3e3; border-top-color: var(--orange); border-right-color: var(--orange); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.done-check { width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; animation: pop .35s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.analyze h1 { margin-top: 32px; font-size: 28px; font-weight: 400; letter-spacing: -0.56px; line-height: 1.1; }
.analyze p { margin-top: 12px; font-size: 18px; min-height: 22px; }
.analyze .btn { margin-top: 32px; height: 54px; padding: 0 20px; font-size: 18px; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 40px; }
.side-logo { height: 70px; display: flex; align-items: center; padding: 0 18px; }
.side-logo img { width: 78px; }
.side nav { display: flex; flex-direction: column; }
.nav-item { height: 60px; padding: 0 18px; display: flex; align-items: center; gap: 10px; color: var(--grey); border-right: 2px solid transparent; font-size: 16px; }
.nav-item:hover { color: var(--ink); background: #fcfcfc; }
.nav-item.sub { height: 56px; padding-left: 40px; }
.nav-item.on { background: var(--panel); color: var(--ink); border-right-color: var(--orange); }
.nav-item.on .ic, .nav-item.parent-on .ic { color: var(--orange); }
.nav-item.parent-on { color: var(--ink); }
.collapse { position: absolute; right: -13px; top: 58px; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--ink); }
.main { min-width: 0; }
.top { height: 70px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; background: #fff; position: sticky; top: 0; z-index: 10; }
.fam-progress { display: flex; align-items: center; gap: 24px; padding: 16px; width: 404px; font-size: 14px; letter-spacing: 0.28px; color: var(--ink-2); }
.fam-progress .bar { flex: 1; height: 4px; border-radius: 100px; background: #d9d9d9; position: relative; }
.fam-progress .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 25%; border-radius: 100px; background: var(--orange); }
.fam-progress .pct { color: var(--orange); }
.top-right { display: flex; align-items: center; gap: 24px; }
.bell { position: relative; border: 0; background: none; padding: 0; display: grid; place-items: center; }
.bell::after { content: ""; position: absolute; top: 1px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); border: 1.5px solid #fff; }
.account { position: relative; }
.account-btn { display: flex; align-items: center; gap: 4px; padding: 8px; border: 0; border-radius: 8px; background: none; }
.account-btn:hover { background: var(--panel); }
.account-btn .av { width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); display: grid; place-items: center; color: #bcbcbc; margin-right: 8px; }
.account-menu { position: absolute; right: 8px; top: calc(100% - 2px); width: 182px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.08); padding: 12px; display: flex; flex-direction: column; z-index: 30; }
.account-menu button { border: 0; background: none; text-align: left; padding: 12px 0; font-size: 16px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.account-menu button:last-child { border-bottom: 0; color: #d92d20; }
.account-menu button:hover { color: var(--orange); }
.page { padding: 42px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.page-head h1 { font-size: 28px; font-weight: 400; letter-spacing: -0.56px; line-height: 1.1; }
.page-head p { margin-top: 12px; font-size: 16px; }
.muted { color: var(--grey); }

/* Destination cards */
.dest-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dest { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.dest-photo { height: 210px; position: relative; background: #ddd center / cover no-repeat; }
.match { position: absolute; left: 0; top: 0; height: 40px; padding: 0 20px; background: var(--orange); color: #fff; border-radius: 8px 0 8px 0; display: flex; align-items: center; gap: 10px; font-size: 16px; }
.dest-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; flex: 1; }
.dest-title { font-size: 24px; letter-spacing: -0.48px; line-height: 1.1; }
.dest-desc { margin-top: 8px; font-size: 16px; }
.facts { display: flex; flex-direction: column; gap: 16px; }
.fact { display: flex; gap: 12px; font-size: 14px; }
.fact .ic { margin-top: 1px; }
.fact .k { color: var(--grey); margin-top: 4px; }
.dest-actions { display: flex; gap: 8px; margin-top: auto; }
.dest-actions .btn-outline { flex: 1; }
.btn-added { background: var(--panel-2); border-color: var(--panel-2); color: var(--ink); }
.btn-added .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; }
.locked { position: relative; }
.locked .dest-body, .locked .dest-photo { filter: blur(10px); }
.locked::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.08); }
.unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; height: 40px; padding: 0 16px; border-radius: 100px; background: #fff; border: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.unlock:hover { background: var(--panel); }
.ghost-card { height: 200px; border-radius: 8px; background: center / cover no-repeat; filter: blur(12px); opacity: .7; }

/* Compare bar */
.cmp-bar { position: fixed; left: calc(50% + 130px); bottom: 24px; transform: translateX(-50%); z-index: 15; background: #fff; border: 1px solid var(--line); border-radius: 100px; box-shadow: 0 12px 32px rgba(0,0,0,.12); display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 16px; animation: rise .3s cubic-bezier(.3,.7,.2,1); }
@keyframes rise { from { transform: translate(-50%, 20px); opacity: 0; } }
.cmp-bar .lbl { font-size: 14px; color: var(--grey); white-space: nowrap; }
.cmp-chips { display: flex; gap: 6px; padding: 4px; border-radius: 100px; background: var(--panel); }
.cmp-chip { height: 40px; padding: 0 10px 0 14px; border-radius: 100px; background: #fff; display: flex; align-items: center; gap: 8px; font-size: 16px; }
.cmp-chip button { border: 0; background: none; padding: 2px; display: grid; place-items: center; color: var(--grey); border-radius: 50%; }
.cmp-chip button:hover { color: var(--ink); background: var(--panel-2); }
.cmp-empty { height: 40px; padding: 0 14px; border-radius: 100px; display: flex; align-items: center; font-size: 16px; color: #bdbdbd; }

/* Compare table */
.back { display: inline-flex; align-items: center; gap: 12px; color: var(--grey); font-size: 16px; border: 0; background: none; padding: 0; }
.back:hover { color: var(--ink); }
.cmp-head { margin-top: 42px; display: flex; align-items: center; justify-content: space-between; }
.cmp-head .tools { display: flex; align-items: center; gap: 24px; }
.cmp-sel { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 100px; padding: 6px 6px 6px 16px; }
.share { border: 0; background: none; display: flex; align-items: center; gap: 10px; font-size: 16px; padding: 0; }
.share:hover { color: var(--orange); }
.ctable { margin-top: 24px; width: 100%; border-collapse: collapse; }
.ctable th, .ctable td { text-align: left; font-weight: 400; padding: 22px 0; border-bottom: 1px solid #ececec; font-size: 16px; vertical-align: middle; }
.ctable th { color: var(--grey); width: 26%; }
.ctable td { width: 37%; padding-right: 24px; }
.ctable tr.head th, .ctable tr.head td { padding: 12px 0 24px; }
.cpill { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 100px; font-size: 16px; font-weight: 500; }
.why { background: var(--panel); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.why h3 { font-size: 16px; font-weight: 500; }
.checks { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; }
.checks li { display: flex; gap: 16px; align-items: flex-start; }
.checks .ic { color: var(--orange); }
.empty-col { color: #bdbdbd; }

/* Family */
.fam-grid { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.member { position: relative; border: 1px solid var(--line); border-radius: 8px; padding: 20px; min-height: 132px; display: flex; flex-direction: column; gap: 12px; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.role-badge { align-self: flex-start; height: 28px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--line-2); color: var(--grey); display: inline-flex; align-items: center; font-size: 14px; }
.role-badge.admin { background: var(--orange); border-color: var(--orange); color: #fff; }
.member h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.2px; }
.member .meta { margin-top: -6px; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.member .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink); }
.kebab { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 6px; border: 0; background: none; color: var(--grey); display: grid; place-items: center; }
.kebab:hover, .kebab[aria-expanded="true"] { background: var(--panel); color: var(--ink); }
.pop { position: absolute; right: 16px; top: 54px; width: 152px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.08); z-index: 5; display: flex; flex-direction: column; }
.pop button { border: 0; background: none; height: 34px; display: flex; align-items: center; gap: 8px; font-size: 16px; text-align: left; padding: 0 2px; }
.pop button + button { border-top: 1px solid var(--line); }
.pop .del { color: var(--orange); }
.pop button:disabled { color: #c4c4c4; cursor: not-allowed; }
.pop button:hover:not(:disabled) { background: var(--panel); }

/* Modal + toast */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 50; display: grid; place-items: center; animation: fadein .2s; }
@keyframes fadein { from { opacity: 0; } }
.modal { width: 450px; background: #fff; border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 32px; animation: pop .25s cubic-bezier(.2,1.2,.4,1); }
.modal h2 { font-size: 24px; font-weight: 400; letter-spacing: -0.48px; }
.modal .sub { margin-top: 12px; font-size: 16px; }
.modal .fields { display: flex; flex-direction: column; gap: 24px; }
.modal .btns { display: flex; justify-content: flex-end; gap: 8px; }
.modal .btns .btn { height: 54px; padding: 0 20px; font-size: 18px; }
.toast { position: fixed; top: 60px; left: calc(50% + 130px); transform: translateX(-50%); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 8px; height: 36px; padding: 0 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.1); animation: drop .3s cubic-bezier(.3,.7,.2,1); }
.toast.no-shell { left: 50%; }
.toast .ic { color: #12b76a; }
.toast.note { background: #121212; color: #fff; border-color: #121212; }
.toast.note .ic { color: #fff; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } }

/* Country details */
.crumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--grey); }
.crumb button { border: 0; background: none; padding: 0; display: flex; align-items: center; gap: 6px; color: var(--grey); font-size: 14px; }
.crumb button:hover { color: var(--ink); }
.crumb .cur { color: var(--orange); }
.cd { margin-top: 20px; display: grid; grid-template-columns: 348px 782px; gap: 38px; align-items: start; }
.cd-side { position: sticky; top: 94px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.cd-side .match { position: static; border-radius: 0 0 8px 0; width: max-content; }
.cd-side-body { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.cd-side .btn { width: 100%; height: 40px; font-size: 14px; }
.cd-side .stack { display: flex; flex-direction: column; gap: 8px; }
.hero { height: 290px; border-radius: 8px; background: center / cover no-repeat; }
.cd h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.48px; }
.cd .lead { margin-top: 12px; font-size: 16px; line-height: 1.5; }
.tipbox { margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; display: flex; gap: 12px; font-size: 16px; line-height: 1.4; }
.tabs { margin-top: 24px; display: flex; gap: 24px; border-bottom: 1px solid var(--line); position: sticky; top: 70px; background: #fff; z-index: 4; }
.tabs button { border: 0; background: none; padding: 12px 4px; color: #a6a6a6; font-size: 16px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--orange); border-bottom-color: var(--orange); }
.cd-sec { padding: 40px 0; border-bottom: 1px solid #ececec; scroll-margin-top: 130px; }
.cd-sec:last-child { border-bottom: 0; }
.pill-tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 100px; background: var(--orange-soft); color: var(--orange); font-size: 14px; margin-bottom: 20px; }
.cd-sec h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.48px; }
.cd-sec h4 { margin-top: 28px; font-size: 16px; font-weight: 500; }
.cd-sec p.body { margin-top: 12px; font-size: 16px; line-height: 1.6; text-align: justify; }
.facts-row { margin-top: 12px; background: var(--panel); border-radius: 8px; padding: 14px 18px; display: flex; gap: 32px; }
.facts-row div { display: flex; gap: 10px; align-items: flex-start; }
.facts-row small { display: block; color: var(--grey); font-size: 14px; margin-top: 2px; }
.cd-sec .checks { margin-top: 16px; }
.acc { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; }
.acc-item + .acc-item { border-top: 0; }
.acc-btn { width: 100%; border: 0; background: none; display: grid; grid-template-columns: 28px 1fr auto 24px; gap: 12px; align-items: center; padding: 14px 0; text-align: left; }
.acc-btn .ic { color: var(--orange); }
.acc-btn .t { font-size: 16px; }
.acc-btn .s { display: block; color: var(--grey); font-size: 14px; margin-top: 2px; }
.acc-btn[aria-expanded="true"] .t { color: var(--orange); }
.acc-btn .chev { transition: transform .2s; color: var(--grey); }
.acc-btn[aria-expanded="true"] .chev { transform: rotate(180deg); color: var(--orange); }
.acc-panel { background: var(--panel); border-radius: 8px; padding: 14px 16px; margin-bottom: 8px; font-size: 16px; line-height: 1.6; }
.lvl { height: 24px; padding: 0 10px; border-radius: 100px; font-size: 14px; display: inline-flex; align-items: center; border: 1px solid; }
.lvl.good { color: #12803c; background: #e8f6ec; border-color: #7fcf97; }
.lvl.mid { color: #b56a00; background: #fff4e0; border-color: #f2c26b; }
.lvl.bad { color: #c4320a; background: #ffe9e4; border-color: #f2917a; }
.cost { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; grid-template-columns: 144px 1fr; row-gap: 20px; column-gap: 24px; }
.cost b { font-weight: 500; }
.cost small { display: block; color: var(--grey); font-size: 14px; margin-top: 4px; line-height: 1.3; }
.graybox { margin-top: 16px; background: var(--panel); border-radius: 8px; padding: 14px 16px; }
.graybox .checks { margin-top: 12px; }
.schools { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.school { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--panel); }
.school img { height: 104px; width: 100%; object-fit: cover; }
.school div { padding: 12px; font-size: 16px; }
.school small { display: block; color: var(--grey); font-size: 14px; margin-top: 4px; }
.school .fee { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; }
.steps { margin-top: 16px; background: var(--panel); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 16px; list-style: none; }
.steps li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; }
.steps .num { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; display: grid; place-items: center; }
.steps small { display: block; color: var(--grey); font-size: 14px; margin-top: 2px; }
.duo { margin-top: 12px; display: grid; grid-template-columns: 1fr 2fr; gap: 12px; }
.duo > div { background: var(--panel); border-radius: 8px; padding: 14px 18px; display: flex; gap: 12px; }
.duo small { display: block; color: var(--grey); font-size: 14px; margin-top: 2px; }
.kv-checks li b { font-weight: 500; margin-right: 10px; }
.more { margin: 20px auto 0; display: flex; }
.notice { margin-top: 24px; border: 1px dashed var(--line-2); border-radius: 8px; padding: 14px 16px; color: var(--grey); font-size: 14px; line-height: 1.5; }

/* Relocation plan */
.stepper { margin-top: 32px; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.stepper::before { content: ""; position: absolute; left: 8%; right: 8%; top: 9px; border-top: 1px dashed #cfcfcf; }
.stepper button { border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 12px; color: #a6a6a6; font-size: 16px; position: relative; padding: 0; white-space: nowrap; }
.stepper button:disabled { cursor: default; }
.stepper .dot { width: 18px; height: 18px; border-radius: 50%; background: #d6d6d6; color: #fff; font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 0 4px #fff; }
.stepper .cur { color: var(--orange); }
.stepper .cur .dot { background: var(--orange); }
.stepper .done { color: var(--ink); }
.stepper .done .dot { background: var(--orange); }
.panel { margin-top: 24px; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.panel h2 { font-size: 20px; font-weight: 500; }
.panel > p { margin-top: 8px; font-size: 16px; }
.visas { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.visa { border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 16px; text-align: left; background: #fff; }
.visa .t { font-size: 16px; line-height: 1.15; }
.visa .d { font-size: 14px; color: var(--grey); margin-top: -8px; }
.visa .btn { margin-top: auto; width: 100%; }
.visa.sel { border-color: var(--orange); }
.visa.sel .btn { background: var(--panel-2); border-color: var(--panel-2); color: var(--ink); }
.reqs { margin-top: 32px; }
.reqs h3 { font-size: 16px; font-weight: 500; }
.reqs .checks { margin-top: 16px; }
.plan-foot { margin-top: 24px; display: flex; justify-content: flex-end; }
.plan-foot .btn { height: 40px; padding: 0 16px; font-size: 16px; font-weight: 500; gap: 10px; }
.homes { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 268px); gap: 16px; }
.home { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; text-align: left; background: #fff; padding: 0; }
.home img { height: 104px; width: 100%; object-fit: cover; }
.home .b { padding: 16px; }
.home .meta { display: flex; gap: 12px; color: var(--grey); font-size: 14px; margin-top: 4px; }
.home .meta span { display: flex; align-items: center; gap: 4px; }
.home .price { margin-top: 28px; font-size: 18px; }
.home[aria-pressed="true"] { border-color: var(--orange); background: var(--panel); }
.rb { margin-top: 48px; }
.rb h2 { font-size: 16px; font-weight: 500; }
.rb > p { margin-top: 8px; }
.yes { display: inline-flex; align-items: center; gap: 8px; }
.yes .ic { color: var(--orange); }

/* Expert */
.plans { margin-top: 32px; display: grid; grid-template-columns: 350px 350px; gap: 16px; }
.plan { border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.plan .name { font-size: 16px; margin-top: 12px; }
.plan .price { font-size: 24px; letter-spacing: -0.48px; margin-top: 4px; }
.plan.premium .ic-50, .plan.premium .price { color: var(--orange); }
.plan .checks { font-size: 14px; gap: 10px; }
.plan .checks .ic { width: 20px; height: 20px; }
.plan .btn { height: 40px; width: 100%; font-size: 16px; gap: 10px; }
.sec { margin-top: 48px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; }
.sec-head h2 { font-size: 20px; font-weight: 500; display: flex; align-items: baseline; gap: 12px; }
.sec-head h2 .see { font-size: 16px; font-weight: 400; color: var(--orange); text-decoration: underline; background: none; border: 0; padding: 0; }
.sec > p { margin-top: 8px; font-size: 16px; }
.services { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 350px); gap: 16px; }
.service { border: 1px solid var(--line); border-radius: 8px; padding: 24px; display: flex; flex-direction: column; gap: 4px; }
.service .price { font-size: 24px; letter-spacing: -0.48px; }
.service .btn { align-self: flex-end; margin-top: 8px; }

/* Community + support */
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 100px; width: 360px; color: var(--grey); }
.search input { border: 0; outline: 0; flex: 1; font-size: 14px; background: transparent; color: var(--ink); }
.search:focus-within { border-color: var(--orange); }
.groups { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.group { border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; text-align: left; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.group:hover { border-color: #c4c4c4; }
.group .n { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avs { display: flex; align-items: center; gap: 10px; color: var(--grey); font-size: 14px; }
.avs span { display: flex; }
.avs img { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #fff; margin-left: -6px; object-fit: cover; }
.avs img:first-child { margin-left: 0; }
.threads { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.thread { height: 56px; border: 1px solid var(--line); border-radius: 8px; padding: 0 24px; display: flex; align-items: center; gap: 10px; background: #fff; font-size: 16px; text-align: left; width: 100%; }
.thread:hover { border-color: #c4c4c4; }
.thread .badge { height: 24px; padding: 0 10px; border-radius: 100px; background: var(--orange); color: #fff; font-size: 12px; display: inline-flex; align-items: center; }
.thread .rep { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--grey); font-size: 14px; }
.events { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.event { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; position: relative; }
.event img { height: 163px; width: 100%; object-fit: cover; }
.event .b { padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.event .b .t { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.event .btn { margin-top: 16px; width: 100%; border-color: var(--line-2); color: var(--ink); }
.event .btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.event .up { position: absolute; top: 12px; left: 12px; height: 24px; padding: 0 10px; border-radius: 100px; background: var(--orange); color: #fff; font-size: 12px; display: inline-flex; align-items: center; }
.members-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 100px; background: var(--orange-soft); color: var(--orange); font-size: 14px; }
.pager { margin-top: 16px; display: flex; justify-content: flex-end; gap: 6px; }
.pager button { min-width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font-size: 14px; display: grid; place-items: center; }
.pager button[aria-current="page"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.topics { margin-top: 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.topic { height: 52px; border: 1px solid var(--line); border-radius: 8px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; background: #fff; font-size: 16px; text-align: left; }
.topic:hover { border-color: #c4c4c4; }
.topic .ic { color: #c4c4c4; }
.faq { margin-top: 24px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 16px; }
.faq-btn { width: 100%; border: 0; background: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 16px; text-align: left; }
.faq-btn[aria-expanded="true"] { color: var(--orange); }
.faq-btn .ic { color: var(--grey); transition: transform .2s; }
.faq-btn[aria-expanded="true"] .ic { transform: rotate(180deg); color: var(--orange); }
.faq-panel { background: var(--panel); border-radius: 8px; padding: 16px; margin-bottom: 8px; font-size: 16px; line-height: 1.6; }
.faq-panel ol { margin-top: 4px; padding-left: 20px; }
.no-results { margin-top: 16px; color: var(--grey); font-size: 16px; }

/* ---------- Wireframe skin (same structure, no visual design) ---------- */
html.wire, html.wire body { background: #fff; }
html.wire * { color: #6f6f6f !important; border-color: #b9b9b9 !important; box-shadow: none !important; font-family: "Helvetica Neue", Arial, sans-serif !important; text-shadow: none !important; }
html.wire h1, html.wire h2, html.wire h3, html.wire .dest-title, html.wire .page-head h1 { color: #3d3d3d !important; }
html.wire .ic { background: #b0b0b0 !important; -webkit-mask: none !important; mask: none !important; border-radius: 4px; }
html.wire img { visibility: hidden; }
html.wire .ghost-card { filter: none; opacity: 1; }
html.wire .dest-photo, html.wire .hero, html.wire .auth-photo, html.wire .school, html.wire .home, html.wire .event, html.wire .ghost-card { background: #ececec linear-gradient(to top right, transparent calc(50% - 1px), #c9c9c9, transparent calc(50% + 1px)) !important; }
html.wire .side-logo, html.wire .logo-wrap { background: #e2e2e2; }
html.wire .btn-primary, html.wire .match, html.wire .role-badge.admin, html.wire .thread .badge, html.wire .event .up, html.wire .chip[aria-pressed="true"], html.wire .progress-top .fill, html.wire .progress-top .bubble, html.wire .fam-progress .bar i, html.wire .done-check, html.wire .stepper .dot, html.wire .steps .num, html.wire .pager button[aria-current="page"] { background: #9d9d9d !important; color: #fff !important; }
html.wire .btn-primary *, html.wire .match *, html.wire .chip[aria-pressed="true"] * { color: #fff !important; }
html.wire .tile[aria-pressed="true"], html.wire .panel, html.wire .why, html.wire .graybox, html.wire .facts-row, html.wire .pill-tag, html.wire .members-badge, html.wire .acc-panel, html.wire .faq-panel, html.wire .steps, html.wire .duo > div { background: #f4f4f4 !important; }
html.wire .lvl { background: #f0f0f0 !important; }
html.wire .flagless .flag, html.wire .flag { visibility: hidden; }
html.wire .emo { filter: grayscale(1) opacity(.5); }
html.wire .bell::after { background: #9d9d9d !important; }
html.wire .tile[aria-pressed="true"], html.wire .visa.sel, html.wire .input:focus { border-color: #6f6f6f !important; }
