/* ─────────────────────────────────────────────────────────────────
   BnbScout — account pages (Profile / Trips / Favourites / Deal Radar
   / Messages / Host dashboard). Bar-only header + content layout.
   Builds on styles.css, app-header.css and pages.css variables.
   ───────────────────────────────────────────────────────────────── */

/* The account pages use the SAME morph-search header as the catalog pages
   (transparent, no background, collapses on scroll) — styled by app-header.css. */

/* page shell — top padding clears the expanded morph-search header, like .pg */
.acct-pg { max-width: 1060px; margin: 0 auto; padding: 210px clamp(18px, 4vw, 48px) 60px; }
@media (max-width: 760px) { .acct-pg { padding-top: 146px; } }

.acct-head { margin-bottom: 26px; }
.acct-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet-2); margin-bottom: 10px; }
.acct-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.03em; color: var(--ink); margin: 0; line-height: 1.04; }
.acct-sub { color: var(--ink-3); font-size: 15px; margin: 10px 0 0; }

.acct-sec { padding: 26px 0; border-top: 1px solid var(--hair); }
.acct-sec:first-of-type { border-top: 0; }
.acct-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.acct-h { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); margin: 0 0 14px; }
.acct-sec-head .acct-h { margin: 0; }
.acct-p { color: var(--ink-2); font-size: 15px; line-height: 1.62; margin: 0; max-width: 64ch; }
.acct-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--violet-2); text-decoration: none; }
.acct-link svg { width: 14px; height: 14px; }
.acct-link:hover { color: var(--violet); }
.acct-count { font-size: 13px; font-weight: 700; color: var(--violet-2); background: var(--violet-soft, rgba(124,108,255,.12)); padding: 2px 9px; border-radius: 999px; vertical-align: middle; }

.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.acct-card { width: 100%; }

.acct-rows { list-style: none; padding: 0; margin: 0; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; background: var(--panel); }
.acct-rows li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--hair-2); font-size: 14.5px; color: var(--ink); }
.acct-rows li:first-child { border-top: 0; }
.acct-rows li span { display: inline-flex; align-items: center; gap: 11px; }
.acct-rows li span svg { width: 18px; height: 18px; color: var(--violet-2); }
.acct-rows li b { font-weight: 600; color: var(--ink-3); font-size: 13.5px; }
.acct-rows li b.on { color: var(--good, #1F8A5B); }

.acct-empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--hair); border-radius: 20px; background: var(--panel); }
.acct-empty-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--violet-soft, rgba(124,108,255,.12)); color: var(--violet-2); margin-bottom: 14px; }
.acct-empty-ic svg { width: 26px; height: 26px; }
.acct-empty h3 { font-family: var(--font-display); font-size: 20px; color: var(--ink); margin: 0 0 7px; }
.acct-empty p { color: var(--ink-3); font-size: 14.5px; margin: 0 auto 18px; max-width: 40ch; }
.acct-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px;
  color: #fff; background: linear-gradient(180deg, var(--violet), var(--violet-2)); padding: 11px 18px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(90,71,224,.7); transition: transform .15s; }
.acct-btn:hover { transform: translateY(-1px); }
.acct-btn svg { width: 15px; height: 15px; }
.acct-note { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; padding: 16px 18px; border: 1px solid var(--hair); border-radius: 14px; background: var(--panel); font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
.acct-note svg { width: 22px; height: 22px; flex: none; color: var(--violet-2); }

/* PROFILE */
.pf-top { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; padding-bottom: 6px; }
.pf-ava { position: relative; width: 92px; height: 92px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 32px; font-family: var(--font-display); background: linear-gradient(135deg, var(--violet), var(--cyan, #16B8A6)); }
.pf-ava-badge { position: absolute; right: -2px; bottom: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); border: 3px solid var(--bg); display: grid; place-items: center; }
.pf-ava-badge svg { width: 14px; height: 14px; stroke: #fff; }
.pf-stats { display: grid; grid-template-columns: repeat(4, auto); gap: 24px; padding: 16px 22px; border: 1px solid var(--hair); border-radius: 16px; background: var(--panel); }
@media (max-width: 540px) { .pf-stats { grid-template-columns: repeat(2, 1fr); gap: 16px 24px; width: 100%; } }
.pf-stats > div { display: flex; flex-direction: column; gap: 2px; }
.pf-stats b { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.pf-stats b svg { width: 14px; height: 14px; fill: var(--gold); }
.pf-stats small { font-size: 11.5px; color: var(--ink-3); }

/* TRIPS */
.trip-list { display: flex; flex-direction: column; gap: 14px; }
.trip-card { display: flex; align-items: stretch; gap: 0; text-align: left; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: var(--panel); cursor: pointer; font: inherit; padding: 0; transition: transform .15s, box-shadow .2s; }
.trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trip-ph { width: 132px; flex: none; align-self: stretch; }
@media (max-width: 540px) { .trip-ph { width: 96px; } }
.trip-b { display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; flex: 1; min-width: 0; }
.trip-status { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--violet-2); background: var(--violet-soft, rgba(124,108,255,.12)); padding: 3px 9px; border-radius: 999px; }
.trip-status.done { color: var(--ink-3); background: var(--hair-2); }
.trip-t { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.trip-meta, .trip-dates { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.trip-meta svg, .trip-dates svg { width: 14px; height: 14px; color: var(--violet-2); }
.trip-go { align-self: center; padding-right: 18px; color: var(--ink-3); }
.trip-go svg { width: 18px; height: 18px; }

/* DEAL RADAR */
.radar-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; margin-bottom: 26px;
  background: linear-gradient(135deg, var(--violet-soft, rgba(124,108,255,.14)), color-mix(in srgb, var(--cyan, #16B8A6) 12%, transparent)); border: 1px solid var(--hair); }
.radar-banner > svg { width: 26px; height: 26px; color: var(--violet-2); flex: none; }
.radar-banner b { display: block; font-size: 15px; color: var(--ink); }
.radar-banner span { font-size: 13px; color: var(--ink-3); }
.radar-live { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--good, #1F8A5B); white-space: nowrap; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.deal-card { text-align: left; border: 1px solid var(--hair); border-radius: 16px; overflow: hidden; background: var(--panel); cursor: pointer; font: inherit; padding: 0; display: flex; flex-direction: column; transition: transform .15s, box-shadow .2s; }
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.deal-ph { height: 120px; position: relative; }
.deal-off { position: absolute; left: 10px; top: 10px; font-size: 12px; font-weight: 800; color: #2A1C00; background: var(--gold); padding: 3px 9px; border-radius: 999px; }
.deal-b { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 5px; }
.deal-t { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.deal-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-3); }
.deal-meta svg { width: 12px; height: 12px; color: var(--violet-2); }
.deal-price { display: flex; align-items: baseline; gap: 7px; margin-top: 3px; flex-wrap: wrap; }
.deal-was { color: var(--ink-3); text-decoration: line-through; font-size: 13px; }
.deal-price b { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
.deal-save { font-size: 11.5px; font-weight: 700; color: var(--good, #1F8A5B); }

/* MESSAGES */
.msg-list { border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; background: var(--panel); }
.msg-row { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; border: 0; border-top: 1px solid var(--hair-2); background: transparent; cursor: pointer; font: inherit; padding: 15px 18px; transition: background .14s; }
.msg-row:first-child { border-top: 0; }
.msg-row:hover { background: var(--panel-2); }
.msg-ava { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 17px; }
.msg-c { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.msg-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.msg-top b { font-size: 14.5px; color: var(--ink); }
.msg-top small { font-size: 12px; color: var(--ink-3); flex: none; }
.msg-snip { font-size: 13.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); flex: none; }

/* HOST DASHBOARD */
.hd-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 8px; }
@media (max-width: 720px) { .hd-stats { grid-template-columns: repeat(2, 1fr); } }
.hd-stat { position: relative; border: 1px solid var(--hair); border-radius: 16px; padding: 16px 18px; background: var(--panel); display: flex; flex-direction: column; gap: 3px; }
.hd-stat-ic { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--violet-soft, rgba(124,108,255,.12)); color: var(--violet-2); margin-bottom: 8px; }
.hd-stat-ic svg { width: 17px; height: 17px; }
.hd-stat b { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); }
.hd-stat small { font-size: 12px; color: var(--ink-3); }
.hd-delta { position: absolute; right: 16px; top: 16px; font-size: 12px; font-weight: 700; color: var(--good, #1F8A5B); }
.hd-resv { display: flex; flex-direction: column; gap: 10px; }
.hd-resv-row { display: flex; align-items: center; gap: 13px; border: 1px solid var(--hair); border-radius: 14px; padding: 13px 16px; background: var(--panel); }
.hd-resv-ava { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; }
.hd-resv-c { flex: 1; min-width: 0; }
.hd-resv-c b { font-size: 14.5px; color: var(--ink); display: block; }
.hd-resv-c small { font-size: 12.5px; color: var(--ink-3); }
.hd-resv-when { text-align: right; flex: none; }
.hd-resv-when b { font-size: 14px; color: var(--ink); display: block; }
.hd-resv-when small { font-size: 12px; color: var(--ink-3); }
.acct-sec-head .acct-btn { padding: 9px 15px; }

/* FAVOURITES — empty state: no box, just the page background + a tumbleweed
   bouncing across the desert to say "nothing here yet". */
.fav-empty { text-align: center; padding: 26px 20px 50px; }
.fav-desert { position: relative; height: 140px; max-width: 560px; margin: 0 auto 16px; overflow: hidden; }
.fav-sun { position: absolute; right: 13%; top: 14px; width: 46px; height: 46px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold, #F5B43C), color-mix(in srgb, var(--gold, #F5B43C) 35%, transparent)); opacity: .45; }
.fav-ground { position: absolute; left: 0; right: 0; bottom: 30px; border-bottom: 2px dashed color-mix(in srgb, var(--ink-3) 45%, transparent); }
.tumbleweed { position: absolute; bottom: 30px; left: -14%; }
.tw-hop { display: block; }
.tw-ball { display: block; width: 52px; height: 52px; border-radius: 50%; border: 2.5px solid var(--tw, #a98a5b); opacity: .85;
  background:
    linear-gradient(45deg, transparent 46%, var(--tw, #a98a5b) 46% 54%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, var(--tw, #a98a5b) 46% 54%, transparent 54%),
    linear-gradient(0deg, transparent 47%, var(--tw, #a98a5b) 47% 53%, transparent 53%),
    linear-gradient(90deg, transparent 47%, var(--tw, #a98a5b) 47% 53%, transparent 53%); }
@media (prefers-reduced-motion: no-preference) {
  .tumbleweed { animation: tw-roll 5s linear infinite; }
  .tw-hop { animation: tw-hop .9s ease-in-out infinite; }
  .tw-ball { animation: tw-spin 1.1s linear infinite; }
}
@keyframes tw-roll { from { left: -14%; } to { left: 110%; } }
@keyframes tw-hop { 0%, 100% { transform: translateY(0); } 28% { transform: translateY(-26px); } 52% { transform: translateY(0); } 70% { transform: translateY(-12px); } 88% { transform: translateY(0); } }
@keyframes tw-spin { to { transform: rotate(360deg); } }
.fav-empty h3 { font-family: var(--font-display); font-size: 21px; color: var(--ink); margin: 0 0 8px; }
.fav-empty p { color: var(--ink-3); font-size: 14.5px; margin: 0 auto 20px; max-width: 42ch; }
