:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f0f4f8;
  --text: #14213a;
  --muted: #5f6c80;
  --line: #e3e8ef;
  --brand: #c94a18;
  --brand-dark: #ad3b0f;
  --navy: #0d1b2a;
  --navy-2: #142a43;
  --success: #188a62;
  --danger: #cf3f4f;
  --warning: #bf7a12;
  --shadow: 0 14px 40px rgba(16, 38, 65, .08);
  --radius: 18px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .68; transform: none !important; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--text); padding: 11px 13px; outline: 0; transition: .2s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255,107,53,.1); }
textarea { resize: vertical; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: #435066; }
small { color: var(--muted); }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 9px; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; letter-spacing: -.035em; }
h2 { margin-bottom: 7px; font-size: 25px; letter-spacing: -.02em; }
h3 { margin-bottom: 4px; font-size: 16px; }
.muted { color: var(--muted); }
.context-label { margin: 0 0 8px; color: #5b6778; font-size: 12px; font-weight: 750; }
.context-label.inverse { color: #b8c6d4; }
.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }
.container.narrow { width: min(840px, calc(100% - 36px)); }
.page-space { padding-top: 34px; padding-bottom: 70px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(16,38,65,.02); }

.topbar { position: sticky; top: 0; z-index: 50; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 max(18px, calc((100vw - 1180px)/2)); background: #fff; border-bottom: 1px solid var(--line); }
.brand, .auth-brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: #fff; font-size: 20px; font-weight: 900; }
.brand-mark.large { width: 44px; height: 44px; font-size: 25px; }
.brand span:last-child, .auth-brand span:last-child { display: grid; line-height: 1.05; }
.brand strong, .auth-brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand small, .auth-brand small { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 650; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.nav-link { min-height: 44px; padding: 9px 11px; display: inline-flex; align-items: center; border-radius: 9px; color: var(--muted); font-weight: 700; font-size: 13px; }
.nav-link.active, .nav-link:hover { color: var(--text); background: var(--surface-2); }
.user-chip { display: flex; align-items: center; gap: 8px; padding-left: 4px; font-size: 13px; font-weight: 700; }
.avatar { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #eaf0f7; color: var(--navy); font-weight: 850; }
.avatar.lg { width: 46px; height: 46px; font-size: 17px; }
.icon-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 18px; }
.icon-btn:hover { background: #f2f4f7; color: var(--text); }

.btn { min-height: 44px; border: 0; border-radius: 10px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; font-size: 13px; transition: transform .16s ease, background .16s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #edf2f7; color: var(--text); }
.btn-ghost { color: var(--muted); background: transparent; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 44px; padding: 8px 11px; border-radius: 9px; font-size: 12px; }
.btn-block { width: 100%; }
.back-link { display: inline-block; margin-bottom: 22px; color: var(--muted); font-size: 13px; font-weight: 750; }
.back-link:hover { color: var(--brand); }

.alert { margin-bottom: 18px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.alert-success { background: #eaf8f2; color: #176d51; border: 1px solid #caebdf; }
.alert-danger { background: #fff0f1; color: #a52b3a; border: 1px solid #f3ccd1; }
.alert-close { width: 44px; height: 44px; border: 0; background: transparent; color: currentColor; font-size: 19px; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-visual { position: relative; overflow: hidden; padding: clamp(35px, 6vw, 76px); display: flex; flex-direction: column; color: #fff; background: #10253b; }
.auth-visual::after { content: none; }
.auth-visual .auth-brand small { color: #9cb0c4; }
.auth-copy { max-width: 620px; margin: auto 0 45px; position: relative; z-index: 2; }
.auth-copy h1 { max-width: 620px; font-size: clamp(38px, 5vw, 64px); }
.auth-copy p { max-width: 530px; color: #adbdcc; font-size: 17px; }
.mini-board { position: relative; z-index: 2; display: grid; gap: 10px; grid-template-columns: repeat(3,1fr); }
.mini-board > div { min-height: 110px; display: flex; align-items: flex-end; gap: 12px; padding: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 15px;  }
.mini-board p { margin: 0; display: grid; }
.mini-board small { color: #9cb0c4; font-size: 11px; }
.mini-icon { color: var(--brand); font-size: 11px; font-weight: 900; }
.auth-stat { position: relative; z-index: 2; display: grid; gap: 3px; padding: 16px 18px; max-width: 390px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; }
.auth-stat span { color: #9cb0c4; font-size: 12px; }
.auth-panel { display: grid; place-items: center; padding: 34px; background: #fff; }
.auth-card { width: min(420px, 100%); }
.auth-card h2 { font-size: 31px; }
.form-stack { display: grid; gap: 15px; margin-top: 26px; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--brand); font-weight: 850; }

.page-heading { margin-bottom: 26px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.page-heading h1 { margin-bottom: 5px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 34px; }
.stat-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 15px; }
.stat-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-card strong { display: block; margin: 6px 0 1px; font-size: 30px; line-height: 1; letter-spacing: -.04em; }
.stat-card small { font-size: 11px; }
.section-head { margin: 20px 0 16px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-head h2 { margin: 0 0 2px; }
.section-head p { margin: 0; font-size: 13px; }
.trip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.trip-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; transition: .2s ease; }
.trip-card:hover { transform: translateY(-2px); border-color: #cbd5e1; }
.trip-cover { height: 106px; padding: 14px; display: flex; align-items: flex-start; justify-content: space-between; background-size: cover; }
.cover-1,.cover-2,.cover-3,.cover-4 { background: #10253b; }
.status-badge,.trip-type,.pill,.text-badge,.role-badge { display: inline-flex; align-items: center; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .03em; }
.status-badge,.trip-type { padding: 5px 8px; color: #3e4a5d; background: #eef2f6; }
.trip-card-body { padding: 17px; }
.trip-title { display: flex; justify-content: space-between; gap: 16px; }
.trip-title h3 { font-size: 18px; }
.trip-title p { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.arrow { font-size: 22px; color: var(--brand); }
.trip-meta { display: flex; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.trip-spend { padding-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.trip-spend strong { font-size: 14px; }
.empty-state { min-height: 380px; padding: 55px 25px; display: grid; place-items: center; align-content: center; text-align: center; background: #fff; border: 1px dashed #ced7e2; border-radius: 20px; }
.empty-state p { max-width: 460px; color: var(--muted); }
.empty-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 18px; background: #fff0e9; color: var(--brand); font-size: 27px; }
.error-code { font-size: 56px; font-weight: 900; color: #d9e0e8; }

.form-panel { padding: 26px; }
.form-section + .form-section { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section h2 { font-size: 18px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2,1fr); }
.form-grid.three { grid-template-columns: repeat(3,1fr); }
.form-grid.four { grid-template-columns: repeat(4,1fr); }
.span-2 { grid-column: span 2; }.span-3 { grid-column: span 3; }.span-4 { grid-column: span 4; }
.choice-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.choice-card { position: relative; padding: 18px; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 15px; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(201,74,24,.10); background: #fff8f4; }
.choice-card:has(input:focus-visible) { outline: 3px solid #1e4f78; outline-offset: 2px; }
.choice-icon { color: var(--brand); font-size: 20px; }
.choice-card small { font-weight: 500; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.form-inside { padding: 18px 0 2px; }

.trip-hero { min-height: 215px; margin-top: 8px; padding: 35px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; overflow: hidden; color: #fff; background: #10253b; border-radius: 24px; position: relative; }
.trip-hero::after { content:none; }
.trip-hero > * { position: relative; z-index: 2; }
.trip-hero h1 { margin: 11px 0 7px; font-size: clamp(34px,5vw,54px); }
.trip-hero p { margin: 0; color: #b4c3d2; }
.hero-labels { display: flex; gap: 7px; }
.pill { padding: 6px 10px; color: #fff; background: var(--brand); }
.pill.soft { background: rgba(255,255,255,.11); }
.hero-budget { min-width: 220px; display: grid; text-align: right; }
.hero-budget span,.hero-budget small { color: #9fb2c4; }
.hero-budget strong { font-size: 27px; letter-spacing: -.03em; }
.section-tabs { position: sticky; top: 68px; z-index: 40; margin: 16px 0 8px; padding: 8px; display: flex; gap: 3px; overflow-x: auto; background: #f6f8fb; border: 1px solid var(--line); border-radius: 12px; }
.section-tabs a { min-height: 44px; flex: 0 0 auto; padding: 9px 13px; display: inline-flex; align-items: center; border-radius: 9px; color: var(--muted); font-size: 12px; font-weight: 800; }
.section-tabs a:hover,.section-tabs a.active { color: #fff; background: var(--navy); }
.trip-section { scroll-margin-top: 130px; padding: 32px 0 8px; }
.trip-section + .trip-section { margin-top: 14px; border-top: 1px solid var(--line); }
.summary-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.summary-card { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 15px; }
.summary-card span { color: var(--muted); font-size: 11px; font-weight: 800; }
.summary-card strong { display: block; margin: 5px 0 2px; font-size: 20px; }
.summary-card small { font-size: 10px; }
.danger-card strong { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.overview-grid { margin-top: 16px; }
.info-panel { padding: 20px; }
.panel-title { margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-title h3 { margin: 0; }
.text-badge { padding: 5px 8px; color: #526277; background: #eef2f7; }
.info-list { margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.info-list div { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: 10px; font-weight: 750; }
.info-list dd { margin: 4px 0 0; font-weight: 750; font-size: 13px; }
.note-box { margin-top: 14px; padding: 12px; background: var(--surface-2); border-radius: 10px; }
.note-box p { margin: 3px 0 0; font-size: 12px; }
.quick-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.quick-list > div { display: flex; gap: 10px; align-items: center; padding: 12px; background: var(--surface-2); border-radius: 11px; }
.quick-icon { width: 34px; height: 34px; display:grid; place-items:center; flex:0 0 auto; border-radius:10px; background:#fff; color:var(--brand); font-weight:900; }
.quick-list p { margin:0; display:grid; font-size:12px; }
.quick-list small { font-size:10px; }
details.add-panel { margin-top: 16px; padding: 0 18px; }
details.add-panel > summary { list-style: none; padding: 15px 0; display: flex; align-items:center; justify-content:space-between; gap:15px; font-size:13px; font-weight:850; cursor:pointer; }
details.add-panel > summary::-webkit-details-marker { display:none; }
details.add-panel > summary span { color: var(--muted); font-size:11px; font-weight:600; }
details.add-panel[open] > summary { border-bottom:1px solid var(--line); }
.inline-empty { padding: 22px; color: var(--muted); text-align:center; font-size:12px; background:#fff; border:1px dashed #d7dee8; border-radius:13px; }

.day-block { margin-top: 20px; }
.day-heading { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; padding:0 4px; }
.day-heading div { display:grid; }
.day-heading span { font-weight:850; font-size:13px; }
.day-heading small { font-size:10px; }
.day-heading strong { font-size:12px; color:var(--muted); }
.timeline { display:grid; }
.timeline-item { display:grid; grid-template-columns:70px 18px 1fr; align-items:stretch; }
.time { padding-top:18px; color:var(--muted); font-size:11px; font-weight:750; text-align:right; }
.timeline-dot { position:relative; }
.timeline-dot::before { content:""; position:absolute; top:0; bottom:0; left:50%; width:1px; background:#d9e1ea; }
.timeline-dot::after { content:""; position:absolute; top:23px; left:50%; width:8px; height:8px; border-radius:50%; background:var(--brand); transform:translate(-50%,-50%); box-shadow:0 0 0 4px #fff; }
.timeline-content { margin:7px 0 7px 10px; padding:15px 16px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.timeline-top { display:flex; justify-content:space-between; gap:12px; }
.timeline-content h3 { margin:4px 0; }
.timeline-content p { margin:0 0 2px; color:var(--muted); font-size:11px; }
.category-tag { display:inline-flex; padding:4px 7px; border-radius:999px; background:#edf2f7; color:#57657a; font-size:9px; font-weight:850; text-transform:capitalize; }
.cost-line { margin-top:10px; padding-top:9px; display:flex; justify-content:space-between; gap:12px; border-top:1px solid var(--line); font-size:11px; }
.cost-line span { color:var(--muted); }
.delete-btn { width:44px; height:44px; flex:0 0 auto; border:0; border-radius:8px; background:transparent; color:#a2adbb; font-size:18px; }
.delete-btn:hover { color:var(--danger); background:#fff1f2; }

.booking-grid { align-items:start; }
.stack-list { display:grid; gap:10px; margin-top:12px; }
.booking-card { display:flex; gap:12px; padding:15px; background:#fff; border:1px solid var(--line); border-radius:14px; }
.booking-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 auto; border-radius:11px; background:#edf3f8; color:var(--navy); font-weight:900; }
.booking-main { min-width:0; flex:1; }
.booking-top { display:flex; justify-content:space-between; gap:10px; }
.booking-top p { margin:0; color:var(--muted); font-size:11px; }
.booking-meta { margin:10px 0 7px; display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:10px; }
.booking-main > strong { font-size:13px; }

.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:12px; }
th { padding:12px 14px; color:var(--muted); background:#f9fafc; border-bottom:1px solid var(--line); text-align:left; font-size:10px; font-weight:750; }
td { padding:13px 14px; border-bottom:1px solid var(--line); vertical-align:middle; }
tbody tr:last-child td { border-bottom:0; }
.right { text-align:right; }
.table-sub { display:block; margin-top:2px; }
.table-empty { padding:28px; color:var(--muted); text-align:center; }
.split-field { margin:0; padding:14px; border:1px solid var(--line); border-radius:12px; }
.split-field legend { padding:0 5px; font-size:11px; font-weight:800; color:#435066; }
.member-checks { display:flex; gap:8px; flex-wrap:wrap; }
.member-checks label { min-height:44px; display:inline-flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid var(--line); border-radius:10px; cursor:pointer; }
.member-checks input { width:auto; accent-color:var(--brand); }
.member-checks label:has(input:checked) { border-color:#ffb397; background:#fff8f5; }
.settle-grid { margin-top:16px; }
.settle-grid > article { padding:18px; }
.balance-list,.settlement-list { display:grid; gap:0; }
.balance-list > div,.settlement-list > div { padding:11px 0; display:flex; justify-content:space-between; align-items:center; gap:15px; border-bottom:1px solid var(--line); font-size:12px; }
.balance-list > div:last-child,.settlement-list > div:last-child { border-bottom:0; }
.balance-list span { display:grid; }
.balance-list small { font-size:9px; }
.positive { color:var(--success); }.negative { color:var(--danger); }

.budget-progress { padding:18px; margin-bottom:14px; }
.budget-progress > div:first-child { display:flex; justify-content:space-between; gap:15px; }
.budget-progress span { display:grid; font-size:12px; }
.progress { height:9px; margin-top:12px; overflow:hidden; background:#edf1f5; border-radius:999px; }
.progress span { display:block; height:100%; background:var(--brand); border-radius:999px; }
.member-budget-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.member-budget { padding:16px; }
.member-head { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.member-head h3 { margin:0; }.member-head small { text-transform:capitalize; }
.budget-numbers { display:grid; gap:7px; }
.budget-numbers > div { display:flex; justify-content:space-between; gap:12px; font-size:11px; }
.budget-numbers span { color:var(--muted); }
.inline-budget { margin-top:13px; padding-top:12px; display:flex; gap:7px; border-top:1px solid var(--line); }
.inline-budget input { padding:8px 10px; }

.invite-panel { padding:18px; }
.invite-panel > div:first-child { display:flex; gap:12px; align-items:center; }
.invite-icon { width:42px; height:42px; display:grid; place-items:center; flex:0 0 auto; border-radius:12px; background:#fff0e9; color:var(--brand); font-weight:900; }
.invite-panel h3,.invite-panel p { margin:0; }.invite-panel p { color:var(--muted); font-size:11px; }
.invite-row { margin-top:13px; display:flex; gap:8px; }
.invite-row input { flex:1; min-width:0; background:#f8fafc; }
.people-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:14px; }
.person-card { padding:16px; }
.person-main { display:flex; justify-content:space-between; gap:12px; margin:12px 0; }
.person-main p { margin:0; color:var(--muted); font-size:10px; overflow:hidden; text-overflow:ellipsis; }
.role-badge { height:max-content; padding:5px 8px; color:#455468; background:#edf2f7; text-transform:capitalize; }
.person-bottom { padding-top:10px; display:flex; justify-content:space-between; align-items:center; gap:10px; border-top:1px solid var(--line); }
.text-danger { min-height:40px; padding:0 8px; border:0; background:transparent; color:var(--danger); font-size:10px; font-weight:800; }
.danger-zone { margin-top:25px; color:var(--danger); }
.danger-zone summary { cursor:pointer; font-size:12px; font-weight:850; }
.danger-zone > div { margin-top:9px; padding:15px; display:flex; justify-content:space-between; align-items:center; gap:15px; background:#fff4f5; border:1px solid #f2d3d7; border-radius:12px; }
.danger-zone p { margin:0; color:#8d535c; font-size:11px; }

.join-card { max-width:560px; margin:40px auto; padding:34px; text-align:center; }
.join-icon { width:62px; height:62px; display:grid; place-items:center; margin:10px auto 15px; border-radius:18px; background:#fff0e9; color:var(--brand); font-size:27px; }
.join-card h1 { font-size:32px; }.join-destination { color:var(--muted); }
.notice { padding:10px; border-radius:10px; font-size:12px; }.notice.success { color:#176d51; background:#eaf8f2; }

.footer { width:min(1180px,calc(100% - 36px)); margin:0 auto; padding:22px 0 28px; display:flex; justify-content:space-between; gap:20px; color:var(--muted); border-top:1px solid var(--line); font-size:10px; }
.auth-shell + .footer { display:none; }


.auth-points { position: relative; z-index: 2; max-width: 620px; display: grid; border-top: 1px solid rgba(255,255,255,.18); }
.auth-points > div { display: grid; grid-template-columns: 130px 1fr; gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.auth-points strong { font-size: 13px; }
.auth-points span { color: #b8c6d4; font-size: 13px; }

.dashboard-strip { margin-bottom: 34px; display: grid; grid-template-columns: minmax(180px,.7fr) 2fr; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.metric-primary { padding: 20px 22px; display: grid; align-content: center; background: #10253b; color: #fff; }
.metric-primary span { color: #b8c6d4; font-size: 12px; }
.metric-primary strong { margin-top: 4px; font-size: 34px; line-height: 1; }
.metric-list { margin: 0; display: grid; grid-template-columns: repeat(3,1fr); }
.metric-list > div { padding: 20px; display: grid; align-content: center; border-left: 1px solid var(--line); }
.metric-list dt { color: var(--muted); font-size: 11px; }
.metric-list dd { margin: 3px 0 0; font-size: 23px; font-weight: 850; }

.trip-card-head { min-height: 45px; padding: 12px 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.status-ongoing { color: #116149; background: #e8f5ef; }
.status-upcoming { color: #315e86; background: #e9f1f8; }
.status-completed { color: #5d6877; background: #eef1f4; }
.trip-type { color: #6f5420; background: #f7f0de; }

.summary-grid { gap: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.summary-card { border: 0; border-right: 1px solid var(--line); border-radius: 0; }
.summary-card:last-child { border-right: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #1e4f78; outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: #1e4f78; box-shadow: none; }

.logout-btn { color: #586579; }

@media (max-width: 980px) {
  .stats-grid,.summary-grid { grid-template-columns:repeat(2,1fr); }
  .trip-grid,.member-budget-grid,.people-grid { grid-template-columns:repeat(2,1fr); }
  .grid-2,.booking-grid { grid-template-columns:1fr; }
  .auth-shell { grid-template-columns:1fr; }
  .auth-visual { min-height:420px; }
  .auth-copy { margin:70px 0 35px; }
  .mini-board { display:none; }
  .auth-panel { min-height:540px; }
  .form-grid.four { grid-template-columns:repeat(2,1fr); }
  .form-grid.four .span-3 { grid-column:span 1; }
  .form-grid.four .span-4 { grid-column:span 2; }
  .trip-hero { align-items:flex-start; flex-direction:column; }
  .hero-budget { text-align:left; }
}
@media (max-width: 680px) {
  .container,.container.narrow,.footer { width:min(100% - 24px,1180px); }
  .topbar { padding:0 12px; }
  .hide-mobile,.nav-link { display:none; }
  .page-space { padding-top:22px; }
  .page-heading { align-items:flex-start; flex-direction:column; }
  .stats-grid,.summary-grid,.trip-grid,.member-budget-grid,.people-grid,.choice-grid,.form-grid.two,.form-grid.three,.form-grid.four { grid-template-columns:1fr; }
  .span-2,.span-3,.span-4,.form-grid.four .span-3,.form-grid.four .span-4 { grid-column:span 1; }
  .form-panel { padding:18px; }
  .trip-hero { min-height:230px; padding:24px; }
  .trip-hero h1 { font-size:34px; }
  .section-tabs { margin-left:-5px; margin-right:-5px; }
  .quick-list,.info-list { grid-template-columns:1fr; }
  .timeline-item { grid-template-columns:54px 15px 1fr; }
  .timeline-content { margin-left:7px; }
  .booking-meta { flex-direction:column; gap:2px; }
  .invite-row,.danger-zone > div { flex-direction:column; align-items:stretch; }
  .auth-visual { min-height:360px; padding:28px; }
  .auth-copy { margin:55px 0 0; }
  .auth-copy h1 { font-size:39px; }
  .auth-copy p { font-size:14px; }
  .auth-panel { padding:42px 22px; }
  .footer { flex-direction:column; gap:4px; }
}

@media (max-width: 760px) {
  .dashboard-strip { grid-template-columns: 1fr; }
  .metric-primary { grid-template-columns: 1fr auto; align-items: center; }
  .metric-primary strong { margin: 0; }
  .metric-list > div:first-child { border-left: 0; }
  .auth-points > div { grid-template-columns: 1fr; gap: 2px; }
  .summary-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-card:last-child { border-bottom: 0; }
}
@media (max-width: 520px) {
  .metric-list { grid-template-columns: 1fr; }
  .metric-list > div { grid-template-columns: 1fr auto; align-items: center; border-left: 0; border-top: 1px solid var(--line); padding: 14px 18px; }
  .metric-list dd { margin: 0; }
  .logout-btn { min-width: 44px; padding-left: 8px; padding-right: 8px; font-size: 0; }
  .logout-btn::after { content: "Keluar"; font-size: 11px; }
}

/* Setara-inspired refresh for LS Itinerary */
:root {
  --bg: #f7f1e6;
  --surface: #fffdf8;
  --surface-2: #fff7ec;
  --text: #1c2540;
  --muted: #687286;
  --line: #e8dcc7;
  --brand: #f77a3f;
  --brand-dark: #e4662b;
  --navy: #182238;
  --navy-2: #22314e;
  --shadow: 0 18px 42px rgba(28, 37, 64, .06);
  --radius: 24px;
  --radius-sm: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  height: 78px;
  padding: 0 max(18px, calc((100vw - 1180px)/2));
  background: rgba(247, 241, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 220, 199, 0.9);
}

.brand.wordmark,
.auth-brand.wordmark-auth {
  gap: 0;
  align-items: flex-start;
  flex-direction: column;
  line-height: 1.05;
}

.wordmark-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.brand.wordmark small,
.auth-brand.wordmark-auth small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.top-actions {
  gap: 12px;
}

.nav-link {
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--muted);
}

.nav-link.active,
.nav-link:hover {
  background: #fffaf1;
  color: var(--text);
}

.btn {
  min-height: 46px;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  box-shadow: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #fffaf1;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-ghost {
  color: var(--muted);
}

.avatar {
  background: #fff6e8;
  color: var(--text);
}

.user-chip {
  font-weight: 700;
}

.page-space {
  padding-top: 42px;
  padding-bottom: 84px;
}

.context-label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.context-label.inverse {
  color: rgba(255,255,255,.76);
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(40px, 6vw, 68px);
  line-height: .98;
  letter-spacing: -0.055em;
}

h2 {
  font-size: 28px;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

.dashboard-heading {
  margin-bottom: 24px;
}

.dashboard-heading .muted {
  max-width: 520px;
  font-size: 16px;
}

.dashboard-strip,
.panel,
.trip-card,
.summary-grid,
.budget-progress,
.table-wrap.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: none;
}

.dashboard-strip {
  margin-bottom: 38px;
  grid-template-columns: minmax(220px, .9fr) 2fr;
}

.metric-primary {
  padding: 26px 28px;
  background: transparent;
  color: var(--text);
  border-right: 1px solid var(--line);
}

.metric-primary span,
.metric-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.metric-primary strong {
  margin-top: 10px;
  font-size: 48px;
  letter-spacing: -0.05em;
}

.metric-list > div {
  padding: 24px;
  border-left: 1px solid var(--line);
}

.metric-list dd {
  margin-top: 8px;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}

.section-head {
  margin: 14px 0 18px;
}

.trip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.trip-card {
  padding: 0;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease;
}

.trip-card:hover {
  transform: translateY(-2px);
  border-color: #dbc5a4;
}

.trip-card-head {
  min-height: 0;
  padding: 18px 20px 0;
}

.trip-card-body {
  padding: 18px 20px 20px;
}

.status-badge,
.trip-type,
.pill,
.text-badge,
.role-badge,
.category-tag {
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  letter-spacing: 0;
  font-size: 11px;
  font-weight: 700;
}

.status-upcoming {
  color: #8d4d15;
  background: #ffe8cf;
}

.status-ongoing {
  color: #2b6b57;
  background: #ddf3ea;
}

.status-completed {
  color: #546172;
  background: #edf1f5;
}

.trip-type,
.pill,
.role-badge,
.category-tag,
.text-badge {
  color: var(--text);
  background: #f4ead9;
}

.trip-title {
  align-items: flex-start;
}

.trip-title h3 {
  margin-bottom: 6px;
  font-size: 28px;
  line-height: 1.05;
}

.trip-title p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.trip-meta,
.trip-spend {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.trip-meta {
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.trip-spend small {
  color: var(--muted);
}

.trip-spend strong {
  font-size: 22px;
  letter-spacing: -0.03em;
}

.empty-state {
  min-height: 300px;
  background: var(--surface);
  border: 1px dashed #d6c3a4;
  border-radius: 24px;
}

.empty-icon,
.join-icon,
.invite-icon,
.quick-icon {
  background: #fff2de;
  color: var(--brand-dark);
}

.auth-shell {
  min-height: 100vh;
  grid-template-columns: 1.1fr .9fr;
  background: var(--bg);
}

.auth-visual {
  padding: clamp(34px, 6vw, 74px);
  background: var(--text);
}

.auth-copy {
  max-width: 620px;
}

.auth-copy h1 {
  max-width: 620px;
  font-size: clamp(44px, 5vw, 72px);
}

.auth-copy p {
  max-width: 500px;
  color: rgba(255,255,255,.8);
  font-size: 16px;
}

.auth-points {
  max-width: 560px;
  border-top-color: rgba(255,255,255,.16);
}

.auth-points > div {
  grid-template-columns: 110px 1fr;
  border-bottom-color: rgba(255,255,255,.12);
}

.auth-points strong {
  font-size: 14px;
}

.auth-points span {
  color: rgba(255,255,255,.76);
}

.auth-panel {
  background: transparent;
}

.auth-card {
  width: min(440px, 100%);
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.auth-card h2 {
  margin-bottom: 8px;
  font-size: 34px;
}

.auth-switch a,
.back-link:hover {
  color: var(--brand-dark);
}

input,
select,
textarea {
  border-radius: 16px;
  border-color: var(--line);
  background: #fff;
  padding: 13px 15px;
}

input:focus,
select:focus,
textarea:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: #caa46f;
  box-shadow: 0 0 0 3px rgba(247, 122, 63, .14);
}

.form-panel {
  border-radius: 28px;
}

.trip-hero {
  min-height: 260px;
  padding: 30px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.trip-hero p,
.hero-budget span,
.hero-budget small {
  color: var(--muted);
}

.hero-budget strong {
  color: var(--text);
  font-size: 34px;
}

.section-tabs {
  top: 78px;
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(8px);
  border-radius: 999px;
}

.section-tabs a {
  min-height: 42px;
  border-radius: 999px;
}

.section-tabs a:hover,
.section-tabs a.active {
  background: var(--text);
  color: #fff;
}

.summary-grid {
  overflow: hidden;
}

.summary-card {
  padding: 22px 20px;
  background: transparent;
}

.summary-card span,
.summary-card small,
.info-list dt,
.note-box small,
.quick-list small,
.booking-top p,
.booking-meta,
.table-sub,
.footer {
  color: var(--muted);
}

.footer {
  width: min(1180px, calc(100% - 36px));
  padding: 26px 0 30px;
  font-size: 12px;
}

.alert,
.notice,
.note-box,
.quick-list > div,
.booking-card,
.summary-card,
.info-panel,
.person-card,
.invite-panel,
.join-card {
  border-radius: 20px;
}

.table-wrap table {
  background: transparent;
}

@media (max-width: 980px) {
  .trip-grid {
    grid-template-columns: 1fr;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 72px;
    padding: 0 12px;
  }

  .page-space {
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 54px);
  }

  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .metric-primary {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-list > div:first-child {
    border-left: 0;
  }

  .section-tabs {
    top: 72px;
    border-radius: 18px;
  }
}

@media (max-width: 680px) {
  .brand.wordmark small,
  .auth-brand.wordmark-auth small {
    font-size: 11px;
  }

  .auth-card {
    padding: 26px 22px;
  }

  .footer {
    gap: 6px;
  }
}

/* v1.3 Gen Z / Setara-inspired refresh */
:root {
  --bg: #f4efe4;
  --surface: #fffaf1;
  --surface-2: #f9f1e4;
  --text: #171311;
  --muted: #73695d;
  --line: #171311;
  --brand: #f1624d;
  --brand-dark: #df553f;
  --accent: #f0c84f;
  --navy: #171311;
  --navy-2: #171311;
  --shadow: 0 6px 0 #171311;
}

body {
  background: var(--bg);
  color: var(--text);
}

.topbar {
  height: 84px;
  background: var(--bg);
  backdrop-filter: none;
  border-bottom: 0;
}

.brand.wordmark,
.auth-brand.wordmark-auth {
  align-items: flex-start;
}

.wordmark-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.brand.wordmark small,
.auth-brand.wordmark-auth small {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.page-space {
  padding-top: 30px;
  padding-bottom: 84px;
}

.context-label,
.context-label.inverse {
  color: #cc4d38;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-hero {
  margin-bottom: 26px;
}

.hero-copy {
  max-width: 720px;
}

h1 {
  font-size: clamp(42px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -0.065em;
  font-weight: 900;
}

.dashboard-heading .muted,
.auth-copy p {
  max-width: 620px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 58px;
  padding: 14px 24px;
  border: 3px solid var(--line);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.btn:hover {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #171311;
}

.btn-primary {
  background: var(--brand);
}

.btn-secondary {
  background: var(--accent);
  color: var(--text);
}

.btn-ghost {
  background: var(--surface);
}

.btn-sm {
  min-height: 50px;
  padding: 10px 18px;
  font-size: 14px;
}

.nav-link {
  min-height: 50px;
  padding: 10px 16px;
  border: 3px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.nav-link.active,
.nav-link:hover {
  background: var(--surface);
  border-color: var(--line);
}

.avatar {
  border: 3px solid var(--line);
  background: #fff;
  color: var(--text);
}

.dashboard-strip {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 16px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.metric-primary,
.metric-list > div {
  background: var(--surface);
  border: 3px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.metric-primary {
  border-right: 3px solid var(--line);
  padding: 26px 28px;
}

.metric-primary span,
.metric-list dt {
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}

.metric-primary strong {
  margin-top: 12px;
  font-size: 54px;
  line-height: .95;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-list > div {
  padding: 24px;
  border-left: 3px solid var(--line);
}

.metric-list dd {
  margin-top: 10px;
  font-size: 36px;
  line-height: .95;
  font-weight: 900;
}

.section-head {
  margin: 10px 0 18px;
}

.section-head h2 {
  font-size: 34px;
  font-weight: 900;
}

.trip-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.trip-card,
.panel,
.empty-state,
.summary-grid,
.table-wrap.panel,
.budget-progress,
.trip-hero,
.auth-card,
.join-card,
.invite-panel,
.booking-card,
.quick-list > div,
.info-panel,
.summary-card,
.person-card,
.alert,
.notice,
.note-box {
  border: 3px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.trip-card-head {
  padding: 18px 20px 0;
}

.status-badge,
.trip-type,
.pill,
.text-badge,
.role-badge,
.category-tag {
  min-height: 34px;
  padding: 7px 12px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-upcoming {
  background: #ffe3cf;
  color: #a14b16;
}

.status-ongoing {
  background: #dff3e8;
  color: #256a53;
}

.status-completed {
  background: #ece9e3;
  color: #5c564f;
}

.trip-type,
.pill,
.text-badge,
.role-badge,
.category-tag {
  background: #f6df73;
  color: var(--text);
}

.trip-card-body {
  padding: 20px;
}

.trip-title h3 {
  margin-bottom: 8px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.03;
}

.trip-title p {
  font-size: 15px;
  color: var(--muted);
}

.trip-meta,
.trip-spend {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px solid rgba(23, 19, 17, .14);
}

.trip-meta {
  font-size: 12px;
  color: var(--muted);
}

.trip-spend strong {
  font-size: 22px;
  font-weight: 900;
}

.empty-state {
  min-height: 320px;
}

.empty-state h2 {
  font-size: 32px;
  font-weight: 900;
}

.empty-state p {
  max-width: 440px;
  font-size: 15px;
}

.auth-shell {
  grid-template-columns: 1.05fr .95fr;
  background: var(--bg);
}

.auth-visual {
  background: var(--bg);
  color: var(--text);
}

.auth-copy {
  margin: auto 0 34px;
}

.auth-copy h1 {
  max-width: 660px;
}

.auth-copy p {
  color: var(--muted);
}

.auth-points {
  gap: 14px;
  border-top: 0;
}

.auth-points > div {
  grid-template-columns: 120px 1fr;
  padding: 16px 18px;
  border: 3px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-points span {
  color: var(--muted);
}

.auth-panel {
  padding: 40px 28px;
  background: transparent;
}

.auth-card {
  width: min(460px, 100%);
  padding: 34px;
}

.auth-card h2 {
  font-size: 36px;
  font-weight: 900;
}

input,
select,
textarea {
  border: 3px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(241, 98, 77, .15);
}

label {
  font-size: 13px;
  font-weight: 800;
}

.footer {
  width: min(1180px, calc(100% - 36px));
  padding: 30px 0 32px;
  border-top: 2px solid rgba(23, 19, 17, .2);
  font-size: 12px;
  font-weight: 600;
}

.section-tabs {
  background: transparent;
  border: 0;
  gap: 10px;
  padding: 0;
}

.section-tabs a {
  min-height: 48px;
  padding: 10px 16px;
  border: 3px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-tabs a:hover,
.section-tabs a.active {
  background: var(--brand);
  color: #fff;
}

.timeline-content,
.details.add-panel,
.form-panel,
.form-section + .form-section,
.inline-empty {
  border-radius: 24px;
}

.quick-icon,
.empty-icon,
.join-icon,
.invite-icon {
  border: 2px solid var(--line);
  background: #ffe7d0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #c94935;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .trip-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .metric-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    height: 78px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .metric-list {
    grid-template-columns: 1fr;
  }

  .metric-list > div {
    padding: 18px 20px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .trip-title h3 {
    font-size: 26px;
  }

  .auth-copy h1 {
    font-size: clamp(40px, 13vw, 56px);
  }

  .auth-points > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .section-tabs {
    top: 78px;
    padding-bottom: 4px;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 0 12px;
  }

  .page-space {
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(36px, 13vw, 52px);
  }

  .dashboard-heading .muted,
  .auth-copy p,
  .empty-state p {
    font-size: 15px;
  }

  .btn {
    min-height: 56px;
    font-size: 15px;
  }

  .auth-card {
    padding: 26px 22px;
    border-radius: 26px;
  }

  .footer {
    gap: 8px;
  }
}

/* v1.4 dashboard cleanup - light blue, less slop */
:root {
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-2: #edf5ff;
  --text: #11233f;
  --muted: #5e7391;
  --line: #d9e7fb;
  --brand: #65a9ff;
  --brand-dark: #4f95ed;
  --accent: #dcecff;
  --navy: #11233f;
  --navy-2: #183156;
  --shadow: 0 10px 24px rgba(55, 110, 185, .08);
}

body {
  background: var(--bg);
  color: var(--text);
}

.topbar {
  background: rgba(245, 249, 255, .94);
  border-bottom: 1px solid var(--line);
}

.context-label,
.context-label.inverse {
  color: #3f78c7;
}

.btn {
  border: 1px solid transparent;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: none;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #eef5ff;
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
}

.nav-link.active,
.nav-link:hover {
  background: #eef5ff;
  border-color: var(--line);
}

.avatar {
  border: 0;
  background: #eaf3ff;
  color: var(--text);
}

.dashboard-hero {
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -0.05em;
}

.dashboard-heading .muted {
  max-width: 560px;
  font-size: 17px;
  color: var(--muted);
}

.dashboard-strip {
  margin-bottom: 34px;
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 16px;
  background: transparent;
  border: 0;
}

.metric-primary {
  padding: 24px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: linear-gradient(180deg, #eaf4ff 0%, #d8eaff 100%);
  border: 1px solid #c9ddf8;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.metric-primary span {
  font-size: 13px;
  font-weight: 700;
  color: #4c6d98;
}

.metric-primary strong {
  margin: 0;
  font-size: 56px;
  line-height: .92;
  letter-spacing: -.06em;
  color: var(--navy);
}

.metric-primary small {
  font-size: 13px;
  color: #58779d;
}

.metric-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.metric-card {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.metric-card dt {
  font-size: 13px;
  font-weight: 700;
  color: #5f7899;
}

.metric-card dd {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.metric-card small {
  font-size: 12px;
  color: var(--muted);
}

.trip-card,
.panel,
.empty-state,
.summary-grid,
.table-wrap.panel,
.budget-progress,
.trip-hero,
.auth-card,
.join-card,
.invite-panel,
.booking-card,
.quick-list > div,
.info-panel,
.summary-card,
.person-card,
.alert,
.notice,
.note-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 0 rgba(17, 35, 63, .02);
  background: var(--surface);
}

.trip-card:hover {
  border-color: #bfd9fb;
}

.status-upcoming {
  background: #e9f2ff;
  color: #2f6dc0;
}

.status-ongoing {
  background: #e7f7f2;
  color: #2c8f72;
}

.status-completed {
  background: #eef3f8;
  color: #607387;
}

.trip-type,
.pill,
.text-badge,
.role-badge,
.category-tag {
  background: #edf5ff;
  color: #305f9b;
  border: 0;
}

.auth-visual {
  background: linear-gradient(180deg, #eff6ff 0%, #deecff 100%);
}

.auth-points > div {
  border: 1px solid #cfe1fb;
  box-shadow: none;
}

input,
select,
textarea {
  border: 1px solid var(--line);
}

input:focus,
select:focus,
textarea:focus,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: #6baeff;
  box-shadow: 0 0 0 3px rgba(101, 169, 255, .14);
}

.footer {
  border-top: 1px solid var(--line);
}

.section-tabs a {
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
}

.section-tabs a:hover,
.section-tabs a.active {
  background: var(--navy);
  color: #fff;
}

.quick-icon,
.empty-icon,
.join-icon,
.invite-icon {
  border: 0;
  background: #e9f2ff;
  color: #3f78c7;
}

@media (max-width: 980px) {
  .dashboard-strip {
    grid-template-columns: 1fr;
  }

  .metric-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 760px) {
  .metric-list {
    grid-template-columns: 1fr;
  }

  .metric-card,
  .metric-primary {
    padding: 20px;
  }

  .metric-primary strong {
    font-size: 48px;
  }

  .metric-card dd {
    font-size: 32px;
  }
}

/* v1.5 compact dashboard metrics */
.compact-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 32px;
  overflow: visible;
}

.compact-metrics .metric-card {
  min-height: 94px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}

.compact-metrics .metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.compact-metrics .metric-card strong {
  flex: 0 0 auto;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.compact-metrics .metric-total {
  background: #e5f1ff;
  border-color: #c9dffc;
}

@media (max-width: 760px) {
  .compact-metrics {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 1px 10px;
    margin-right: -12px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .compact-metrics::-webkit-scrollbar {
    display: none;
  }

  .compact-metrics .metric-card {
    min-width: 168px;
    min-height: 82px;
    padding: 14px 16px;
    scroll-snap-align: start;
  }

  .compact-metrics .metric-card strong {
    font-size: 27px;
  }
}

/* v1.6 inline metric pills */
.metrics-inline {
  margin: 10px 0 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 16px;
  background: #eef5ff;
  border: 1px solid #d3e4fb;
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(17, 35, 63, .03);
  white-space: nowrap;
}

.metric-pill span {
  color: #56749a;
  font-size: 14px;
  font-weight: 600;
}

.metric-pill strong {
  color: var(--navy);
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

@media (max-width: 760px) {
  .metrics-inline {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .metrics-inline::-webkit-scrollbar {
    display: none;
  }

  .metric-pill {
    flex: 0 0 auto;
  }
}

/* v1.7 force single-line dashboard stats */
.dashboard-stats-bar {
  width: max-content;
  max-width: 100%;
  margin: 8px 0 30px;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 7px;
  background: #eaf4ff;
  border: 1px solid #cfdef3;
  border-radius: 999px;
}

.dashboard-stats-bar::-webkit-scrollbar {
  display: none;
}

.dashboard-stat-item {
  flex: 0 0 auto !important;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #496a93;
}

.dashboard-stat-item span {
  display: inline !important;
  margin: 0 !important;
  color: #5a7698;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-stat-item strong {
  display: inline !important;
  margin: 0 !important;
  color: #11233f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.dashboard-stat-separator {
  flex: 0 0 auto !important;
  display: inline-block !important;
  padding: 0 2px;
  color: #a8bdd8;
  font-size: 14px;
  line-height: 1;
}

@media (max-width: 760px) {
  .dashboard-stats-bar {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap !important;
  }

  .dashboard-stat-item {
    flex: 0 0 auto !important;
    padding-left: 11px;
    padding-right: 11px;
  }
}

/* v1.7 centered auth landing */
.auth-page-centered {
  min-height: 100vh;
  padding: 34px 18px 54px;
  display: block;
  background:
    radial-gradient(circle at top, rgba(203, 225, 255, .72), transparent 42%),
    var(--bg);
}

.auth-centered-shell {
  width: min(760px, 100%);
  margin: 0 auto;
}

.auth-centered-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 54px;
}

.auth-centered-brand .brand.wordmark {
  align-items: center;
  text-align: center;
}

.auth-centered-brand .wordmark-title {
  font-size: 22px;
  line-height: 1;
}

.auth-centered-brand small {
  margin-top: 5px;
  font-size: 11px;
  letter-spacing: .04em;
}

.auth-centered-hero {
  margin: 0 auto 34px;
  text-align: center;
}

.auth-kicker {
  margin: 0 0 14px;
  color: #4e86d3;
  font-size: 14px;
  font-weight: 800;
}

.auth-centered-hero h1 {
  margin: 0 auto 18px;
  max-width: 700px;
  font-size: clamp(44px, 8vw, 78px);
  line-height: .96;
  letter-spacing: -.06em;
  font-weight: 800;
}

.auth-centered-hero h1 span {
  color: #63a9ff;
}

.auth-lead {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.auth-feature-row {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-feature-row span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #cfe1fb;
  border-radius: 999px;
  background: rgba(255,255,255,.76);
  color: #45688f;
  font-size: 13px;
  font-weight: 700;
}

.auth-card-centered {
  width: min(470px, 100%);
  margin: 0 auto;
  padding: 30px;
  border: 1px solid #cfdef1;
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 18px 48px rgba(61, 108, 171, .10);
}

.auth-card-centered .auth-card-head {
  margin-bottom: 22px;
  text-align: center;
}

.auth-card-centered h2 {
  margin-bottom: 6px;
  font-size: 30px;
  letter-spacing: -.03em;
}

.auth-card-centered .form-stack {
  margin-top: 0;
}

.auth-card-centered .btn-primary {
  margin-top: 4px;
  min-height: 54px;
  border-radius: 16px;
}

.auth-card-centered .auth-switch {
  margin-bottom: 0;
}

.auth-page-centered + .footer {
  display: none;
}

@media (max-width: 680px) {
  .auth-page-centered {
    padding: 24px 14px 36px;
  }

  .auth-centered-brand {
    justify-content: flex-start;
    margin-bottom: 42px;
  }

  .auth-centered-brand .brand.wordmark {
    align-items: flex-start;
    text-align: left;
  }

  .auth-centered-hero {
    text-align: left;
  }

  .auth-centered-hero h1,
  .auth-lead {
    margin-left: 0;
    margin-right: 0;
  }

  .auth-feature-row {
    justify-content: flex-start;
  }

  .auth-card-centered {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .auth-card-centered .auth-card-head {
    text-align: left;
  }
}
