/* =========================================================================
   VIEW-SPECIFIC STYLES
   One section per view. Keep view styles here, not in components.css.
   ========================================================================= */

/* ---- Home ---- */
.view-home .greeting { font-size: 21px; font-weight: 800; margin: 6px 0 2px; }
.view-home .greeting-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* Live monitoring head (ported from overlay demo, TripPulse colors) */
.sentinel-head {
  margin: 2px 0 12px; padding: 14px 14px 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-primary), #3050e0 55%, #0fa3a3 150%);
  color: #fff; box-shadow: var(--shadow);
}
.sentinel-head .title-row { display: flex; align-items: center; justify-content: space-between; }
.sentinel-head .mode {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase;
  color: #ccd6f5; font-weight: 700;
}
.sentinel-head .mode .pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #1bbd6d; animation: tp-pulse 1.8s infinite;
}
@keyframes tp-pulse {
  0% { box-shadow: 0 0 0 0 rgba(27, 189, 109, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(27, 189, 109, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 189, 109, 0); }
}
.sentinel-head .synced { font-size: 9.5px; color: #b8c5f2; letter-spacing: 0.6px; }
.sentinel-head h2 { margin: 8px 0 4px; font-size: 17px; letter-spacing: -0.2px; }
.sentinel-head .sub { font-size: 11.5px; color: #dbe2fb; line-height: 1.4; }
.head-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.stat {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.10);
  border-radius: 10px; padding: 6px 8px;
  font: inherit; text-align: left; cursor: pointer; color: inherit;
}
button.stat:hover { background: rgba(255,255,255,0.16); }
.stat .k { font-size: 9px; letter-spacing: 0.9px; text-transform: uppercase; color: #c8d2f4; }
.stat .v { font-size: 14px; font-weight: 800; margin-top: 2px; }
.stat .v.red { color: #ff9b87; }
.stat .v.amber { color: #ffd089; }
.stat .v.green { color: #7ce0a8; }

/* Trip cards: risk borders + LIVE badge (demo look) */
.card.trip-card { position: relative; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card.trip-card.risk-green { border-left: 4px solid var(--good); }
.card.trip-card.risk-amber { border-left: 4px solid var(--warn); }
.card.trip-card.live { border-left: 4px solid var(--bad); }
.card.trip-card.live::after {
  content: "LIVE NOW"; position: absolute; top: 12px; right: 14px;
  font-size: 9px; letter-spacing: 1.2px; font-weight: 800;
  color: #fff; background: var(--bad); padding: 2px 6px; border-radius: 4px;
}
.tc-date {
  font-size: 10.5px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.8px; font-weight: 600; margin-bottom: 2px;
}
.tc-route { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.tc-iata { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; }
.tc-arrow { flex: 1; height: 2px; background: #d4dae8; position: relative; }
.tc-arrow::after {
  content: ""; position: absolute; right: 0; top: -3px;
  border-left: 7px solid #b6bdd0;
  border-top: 4px solid transparent; border-bottom: 4px solid transparent;
}
.tc-time { font-size: 11.5px; color: var(--muted); }
/* GPS context pill: where you are right now (mocked) */
.gps-pill {
  display: inline-block; margin: -2px 0 12px; padding: 6px 12px;
  border-radius: 999px; background: var(--paper-2);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 11.5px; font-weight: 600; color: var(--muted);
}

/* Sentinel risk meter (demo style) */
.risk-row { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.risk-meter {
  flex: 1; height: 6px; background: #eef0f6; border-radius: 6px; overflow: hidden;
}
.risk-meter span {
  display: block; height: 100%; border-radius: 6px;
  background: var(--warn); transition: width 0.35s ease;
}
.risk-row .pill { flex-shrink: 0; }

.tappable-card { cursor: pointer; }
.tappable-card:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(7,12,28,0.12); }
.section-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.8px; color: var(--muted); margin: 16px 0 8px;
}
.trip-leg {
  display: flex; gap: 12px; align-items: center;
}
.trip-leg .mode-ico {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  flex-shrink: 0;
}
.trip-leg .times { font-size: 15px; font-weight: 800; }
.trip-leg .route { color: var(--muted); font-size: 12.5px; }
.trip-leg .leg-main { flex: 1; min-width: 0; }
.trip-leg .pill { flex-shrink: 0; }
.trip-leg.done { opacity: 0.55; }

/* Leg timeline: stacked legs separated by a quiet dashed line */
.legs { margin-top: 4px; }
.legs .trip-leg { padding: 10px 0; }
.legs .trip-leg + .trip-leg { border-top: 1px dashed var(--line); }

/* Other watched trips: tappable rows */
.trip-list { margin-top: 6px; }
.trip-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px 0; border: none; background: none; font: inherit;
  text-align: left; cursor: pointer; color: inherit;
}
.trip-row + .trip-row { border-top: 1px solid var(--line); }
.trip-row .times { font-size: 14px; font-weight: 800; }
.trip-row .route { color: var(--muted); font-size: 12.5px; }
.trip-row .leg-main { flex: 1; min-width: 0; }

/* ---- Home: stuck-anywhere card ---- */
.stuck-prominent { border: 2px solid var(--brand-primary); box-shadow: var(--shadow); }

/* ---- Trips ---- */
.field {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--paper); font: inherit;
  font-size: 13.5px; color: var(--text);
}
.field::placeholder { color: var(--muted); }
.add-row { display: flex; gap: 8px; margin-top: 11px; }
.add-row .field { flex: 1; text-transform: uppercase; }
.btn.slim { width: auto; padding: 12px 16px; font-size: 13.5px; flex-shrink: 0; }
.linkish {
  display: block; margin-top: 11px; padding: 0; border: none; background: none;
  font: inherit; font-size: 12.5px; font-weight: 700; color: var(--brand-primary);
  cursor: pointer;
}
.manual-form { margin-top: 11px; display: flex; flex-direction: column; gap: 8px; }
.tc-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.trip-detail { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 4px; }
.trip-detail .row .value { text-align: right; }
.stop-link { margin-top: 0; color: var(--muted); }
.stop-link:hover { color: var(--bad); }
.card-list { margin-top: 8px; }
.card-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; }
.card-row + .card-row { border-top: 1px solid var(--line); }
.card-chip {
  width: 46px; height: 30px; border-radius: 6px; flex-shrink: 0;
  color: rgba(255,255,255,0.9); font-size: 9px; font-weight: 700;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 3px 5px;
}
.card-picker { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.seg-pick {
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper-2); font: inherit; font-size: 12px; font-weight: 700;
  color: var(--text); cursor: pointer;
}
.seg-pick:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ---- Disruption ---- */
.view-disruption .headline { font-size: 19px; font-weight: 800; margin: 6px 0 10px; }

/* ---- Options ---- */
.view-options .frontier-note {
  font-size: 12.5px; color: var(--muted); margin: 2px 0 14px;
}
.option-meta {
  display: flex; gap: 14px; margin-top: 8px; font-size: 12.5px; color: var(--muted);
}
.option-meta b { color: var(--text); }

/* Demo-style option card top: title left, big price right */
.opt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.opt-top .title-block { flex: 1; min-width: 0; }
.opt-top .b-title { font-weight: 800; font-size: 14px; }
.opt-top .b-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.opt-top .price-block { text-align: right; flex-shrink: 0; }
.opt-top .price { font-size: 19px; font-weight: 800; letter-spacing: -0.3px; }
.opt-top .price-strike {
  font-size: 12px; font-weight: 700; color: var(--muted);
  text-decoration: line-through;
}
.opt-top .price-note {
  font-size: 9.5px; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.8px; font-weight: 700; margin-top: 1px;
}
.option-card.recommended .opt-top { padding-top: 6px; }

/* Perk lines: coverage you already have, gold accent like the demo */
.perks-line {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 9px; padding: 8px 11px; border-radius: 10px;
  background: #fdf8ec; border: 1px solid #f0e2bb;
  font-size: 11.5px; line-height: 1.45; color: #5a4a12;
}
.perks-line b { color: var(--gold); }

/* Door-to-door chain on option cards */
.chain-mini {
  display: block; margin-top: 9px; padding: 7px 11px;
  border: 1px dashed var(--line); border-radius: 999px; background: none;
  font: inherit; font-size: 12.5px; cursor: pointer; color: var(--text);
}
.chain-mini .chain-mini-label {
  color: var(--muted); font-size: 11.5px; font-weight: 700; margin-left: 4px;
}
.chain-detail {
  margin-top: 10px; padding: 4px 13px 11px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line);
}
.chain-leg {
  display: flex; align-items: center; gap: 10px; padding: 9px 0;
}
.chain-leg + .chain-leg { border-top: 1px dashed var(--line); }
.chain-leg .ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--brand-primary-soft); color: var(--brand-primary);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.chain-leg .body { flex: 1; min-width: 0; }
.chain-leg .title { font-weight: 700; font-size: 12.5px; }
.chain-leg .meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.chain-leg .price { font-weight: 700; font-size: 12.5px; flex-shrink: 0; }
.chain-total-row {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--line); margin-top: 2px; padding-top: 9px;
  font-size: 12.5px;
}
.chain-total-row b { font-size: 15px; }

/* ---- Entitlements ---- */
.view-entitlements .amount { font-size: 30px; font-weight: 800; color: var(--good); }

/* Claim pack: evidence rows with auto-attached tags */
.evidence-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.evidence-row + .evidence-row { border-top: 1px dashed var(--line); }
.evidence-row .ev-ico {
  width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0;
  background: var(--brand-primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.evidence-row .ev-title { font-weight: 700; font-size: 12.5px; }
.evidence-row .ev-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }
.evidence-row .ev-tag {
  flex-shrink: 0; font-size: 9px; font-weight: 800; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--good);
  background: var(--good-soft); padding: 3px 7px; border-radius: 999px;
}

/* Claim status timeline */
.tl-step { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.tl-step + .tl-step { border-top: 1px dashed var(--line); }
.tl-step .tl-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--line); background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 800; color: #fff;
}
.tl-step.done .tl-dot { background: var(--good); border-color: var(--good); }
.tl-step .tl-label { font-weight: 700; font-size: 12.5px; }
.tl-step.done .tl-label { color: var(--good); }
.tl-step .tl-sub { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* ---- Onboarding ---- */
.view-onboarding { background: linear-gradient(160deg, var(--brand-primary), #1b2f9e 70%, #0c7d8a 140%); margin: -16px -16px -90px; padding: 26px 22px 110px; min-height: 100%; }
.onboard-wrap { color: #fff; }
.onboard-wrap .ob-mode {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 1.6px; font-weight: 800; color: #ccd6f5;
}
.onboard-wrap h1 { font-size: 26px; margin: 14px 0 10px; letter-spacing: -0.4px; }
.onboard-wrap .ob-lede { font-size: 13.5px; line-height: 1.55; color: #dde3fa; }
.ob-cards { margin: 18px 0 22px; display: flex; flex-direction: column; gap: 8px; }
.ob-card {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; border-radius: 13px; cursor: pointer;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; text-align: left;
}
.ob-card .check {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.ob-card.on { background: rgba(255,255,255,0.18); border-color: #fff; }
.ob-card.on .check { background: #fff; color: var(--brand-primary); border-color: #fff; }
.onboard-actions { display: flex; gap: 10px; }
.btn-ob-go {
  flex: 1; background: #fff; color: var(--brand-primary);
  border: none; cursor: pointer; padding: 14px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 14px;
}
.btn-ob-skip {
  background: transparent; color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.25); cursor: pointer;
  padding: 14px 18px; border-radius: 14px; font: inherit; font-weight: 600; font-size: 13px;
}

/* ---- Notifications ---- */
.notif-row { display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px; }
.notif-row.unread { border-left: 3px solid var(--brand-primary); }
.notif-ico {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  background: var(--brand-primary-soft);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.notif-title { font-weight: 700; font-size: 13px; line-height: 1.35; }
.notif-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.notif-time {
  font-size: 10px; color: var(--muted); margin-top: 5px;
  text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700;
}
.notif-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--brand-primary); margin-top: 5px;
}

/* ---- Wallet ---- */
.receipt-row .ico { font-size: 18px; margin-right: 10px; }

/* ---- Settings ---- */
.view-settings .section-title {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.6px; color: var(--muted); margin: 18px 0 8px;
}
.view-settings .section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 8px;
}
.edit-btn {
  width: 28px; height: 28px; border: none; border-radius: 8px;
  background: none; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.edit-btn:hover { color: var(--brand-primary); background: var(--brand-primary-soft); }
