:root {
    --teal: #0f766e;
    --teal-dark: #0b5f58;
    --teal-tint: #f0f9f8;
    --navy: #12263a;
    --ink: #17212b;
    --muted: #64748b;
    --line: #e5e9ee;
    --bg: #f5f7f9;
    --gold-bg: #fdf1d6;
    --gold: #8a5a00;
    --ok-bg: #e3f4ec;
    --ok: #166534;
    --danger: #b42318;
}

* { box-sizing: border-box; }
html, body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: "DM Sans", Inter, system-ui, sans-serif; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ---------- header ---------- */
.site-header { display: flex; align-items: center; gap: 36px; padding: 0 32px; height: 66px; border-bottom: 1px solid var(--line); background: #fff; position: relative; z-index: 5; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 24px "DM Sans", Inter, sans-serif; color: var(--ink); letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #14b8a6, var(--teal)); }
.site-nav { display: flex; gap: 28px; flex: 1; align-items: center; }
.site-nav a { color: #334155; font-size: 15px; font-weight: 500; }
.site-nav a.active { color: var(--teal); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .login { color: #334155; font-weight: 500; font-size: 15px; }
.header-search { flex: 0 1 270px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--muted); background: #fff; }
.credits-pill { background: var(--gold-bg); color: var(--gold); font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: 999px; white-space: nowrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #fb923c, #f97316); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.avatar:hover { text-decoration: none; }

/* ---------- buttons ---------- */
.btn { display: inline-block; border: 0; cursor: pointer; padding: 11px 22px; border-radius: 999px; font: 600 15px Inter, sans-serif; background: var(--teal); color: #fff; line-height: 1.2; }
.btn:hover { background: var(--teal-dark); text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.sm { padding: 9px 18px; font-size: 14px; }
.btn.lg { padding: 16px 36px; font-size: 16px; }
.btn-ghost { background: #fff; color: var(--teal); border: 1.5px solid var(--teal); }
.btn-ghost:hover { background: var(--teal-tint); }
.btn-link { background: none; border: 0; color: var(--muted); cursor: pointer; font: 500 14px Inter, sans-serif; }

/* ---------- landing hero (wireframe 02) ---------- */
.hero { position: relative; min-height: 408px; padding: 52px 84px 56px; color: #fff; background: #0b2a3a center/cover no-repeat url('/img/skardu-mist.jpg'); display: flex; flex-direction: column; justify-content: center; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9,30,42,.82) 0%, rgba(9,30,42,.45) 55%, rgba(9,30,42,.15) 100%); }
.hero > * { position: relative; }
.pill-note { display: inline-block; align-self: flex-start; background: #fdf1d6; color: #6b4a00; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; max-width: 640px; margin-bottom: 30px; }
.search-pill { display: flex; align-items: center; background: #fff; border-radius: 999px; padding: 8px 8px 8px 26px; max-width: 792px; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.search-pill .field { flex: 1; padding: 0 20px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; }
.search-pill .field:first-child { padding-left: 0; }
.search-pill .field:nth-last-child(2) { border-right: 0; }
.search-pill label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #475569; }
.search-pill input, .search-pill select { border: 0; padding: 0; font: 600 16px Inter, sans-serif; color: var(--ink); background: transparent; outline: none; appearance: none; width: 100%; }
.search-pill .btn { padding: 16px 30px; }

.section { padding: 40px 84px 24px; max-width: 1440px; margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.section-head h2 { font-size: 28px; }
.section-head a { font-weight: 600; font-size: 15px; }
.sample-note { color: var(--muted); font-size: 13px; margin: -8px 0 18px; }

/* ---------- plan cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.plan-card { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.plan-photo { position: relative; height: 220px; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px; color: #fff; }
.plan-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.62) 100%); }
.plan-photo > * { position: relative; }
.plan-photo b { font: 700 19px "DM Sans", sans-serif; letter-spacing: -0.01em; }
.plan-photo span { font-size: 13px; opacity: .92; }
.heart { position: absolute !important; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); font-size: 16px; }
.plan-agency { display: flex; align-items: center; gap: 8px; padding: 14px 16px 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.plan-agency .name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.plan-agency .verified, .plan-agency .rating, .plan-agency .mini-avatar { flex: none; }
.btn { white-space: nowrap; }
.plan-meta strong { white-space: nowrap; }
.mini-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; flex: none; }
.verified { background: var(--ok-bg); color: var(--ok); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; }
.rating { margin-left: auto; font-weight: 600; }
.plan-meta { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 16px; gap: 10px; }
.plan-meta small { color: var(--muted); font-size: 13px; }
.plan-meta strong { font: 700 20px "DM Sans", sans-serif; }

.site-footer { margin-top: 56px; padding: 24px 84px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; }

/* ---------- auth split (wireframe 01) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); min-height: 100vh; }
.split-main { padding: 48px 80px; display: flex; flex-direction: column; }
.split-main .logo { margin-bottom: auto; }
.split-body { margin: 56px 0 auto; max-width: 650px; }
.split-body h1 { font-size: clamp(36px, 4vw, 52px); line-height: 1.05; margin-bottom: 14px; }
.sub { color: var(--muted); margin: 0 0 28px; font-size: 16px; }
.split-photo { position: relative; background: #0b2a3a center/cover no-repeat url('/img/shigar-valley.jpg'); display: flex; flex-direction: column; justify-content: flex-end; padding: 48px; color: #fff; }
.split-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); }
.split-photo > * { position: relative; }
.split-photo blockquote { margin: 0 0 8px; font: 700 28px/1.2 "DM Sans", sans-serif; letter-spacing: -0.02em; max-width: 470px; }
.split-photo small { opacity: .85; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-photo { display: none; } .split-main { padding: 32px 24px; } .hero, .section, .site-footer { padding-left: 24px; padding-right: 24px; } .site-nav { display: none; } .search-pill { flex-direction: column; border-radius: 22px; align-items: stretch; padding: 14px; gap: 12px; } .search-pill .field { border: 0; padding: 0; } }

.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 26px; }
@media (max-width: 640px) { .role-cards { grid-template-columns: 1fr; } }
.role-card { position: relative; text-align: left; border: 1.5px solid var(--line); background: #fff; border-radius: 20px; padding: 24px; cursor: pointer; font: inherit; color: inherit; }
.role-card.selected { border-color: var(--teal); background: var(--teal-tint); }
.role-card h3 { font-size: 22px; margin: 18px 0 8px; } .role-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.role-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--teal); font-size: 20px; }
.role-icon.navy { background: var(--navy); }
.radio { position: absolute; top: 24px; right: 24px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cbd5e1; }
.selected .radio { border-color: var(--teal); background: radial-gradient(var(--teal) 0 38%, #fff 42%); }
.below { margin-top: 22px; color: var(--muted); font-size: 14px; }
.below a { font-weight: 600; }

.form { display: grid; gap: 16px; max-width: 440px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input { padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; font: 400 16px Inter, sans-serif; width: 100%; }
.form input:focus { border-color: var(--teal); outline: none; }
.error { background: #fef3f2; color: var(--danger); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.error ul { margin: 6px 0 0; padding-left: 18px; }
.validation-message { color: var(--danger); font-size: 13px; }
.hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.back { background: none; border: 0; color: var(--muted); cursor: pointer; font: 500 14px Inter, sans-serif; padding: 0; margin-bottom: 18px; text-align: left; }

/* ---------- account / dashboards ---------- */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 32px; }
.page-wrap h1 { font-size: 36px; margin-bottom: 8px; }
.balance-grid { display: grid; grid-template-columns: 330px 1fr; gap: 20px; margin-top: 26px; }
.balance { background: var(--navy); color: #fff; border-radius: 22px; padding: 26px; }
.balance .label { font-size: 12px; letter-spacing: .06em; opacity: .8; }
.balance .num { font: 700 56px "DM Sans", sans-serif; margin: 4px 0 8px; }
.panel { border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: #fff; }
.panel h3 { font-size: 20px; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 15px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 600; }
.chip-soon { display: inline-block; background: var(--gold-bg); color: var(--gold); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }

.workspace { display: grid; grid-template-columns: 242px 1fr; min-height: calc(100vh - 66px); }
.sidebar { background: var(--navy); color: #cbd5e1; padding: 20px 16px; display: flex; flex-direction: column; gap: 4px; }
.ws-chip { background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 14px; color: #fff; }
.ws-chip .avatar { border-radius: 50%; }
.ws-chip small { display: block; opacity: .7; font-size: 12px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: #cbd5e1; }
.side-item::before { content: ""; width: 16px; height: 16px; border-radius: 5px; background: rgba(255,255,255,.22); }
.side-item.active { background: rgba(255,255,255,.1); color: #fff; }
.side-item.soon { opacity: .55; }
.side-label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .55; margin: 18px 12px 6px; }
.ws-main { background: var(--bg); padding: 28px 32px; }
.ws-main h1 { font-size: 28px; margin-bottom: 20px; }

.credits-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.credits-table td, .credits-table th { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.credits-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

#blazor-error-ui { color-scheme: light only; background: lightyellow; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); box-sizing: border-box; display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
