/* Client portal hub (clients.html + js/portal-hub.js): For You feed, Help Center, Problem Finder, Tools, Plans.
   Light theme in the Qyvea logo colours. Own tokens (--ph-*) so it does not depend on the older portal palette. */
:root { --ph-green: #7AB23A; --ph-green-d: #3F6B12; --ph-ink: #1A2124; --ph-ink2: #3d4549; --ph-mut: #5c6468; --ph-line: rgba(26,33,36,.12); --ph-bg: #f3f6f0; --ph-card: #fff; --ph-r: 16px; }

/* the portal sidebar was pinned 86px from the top; follow the (taller) shared header instead */
.sidebar { top: var(--qh-h, 86px) !important; }
#dashSection { min-height: 100vh; }
.dash-main { padding-top: var(--qh-h, 86px); min-height: 100vh; }

/* ---------- shared bits ---------- */
.ph-h1 { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.6px; color: var(--ph-ink); line-height: 1.15; margin: 0 0 4px; }
.ph-sub { font-size: 14px; color: var(--ph-mut); margin: 0 0 16px; line-height: 1.5; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--ph-line); background: #fff; color: var(--ph-ink); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: transform .15s, background .15s; text-decoration: none; }
.ph-btn:hover { background: #f0f4ec; transform: translateY(-1px); }
.ph-btn--go { background: var(--ph-green); border-color: var(--ph-green); color: #1A2124; }
.ph-btn--go:hover { background: #88c046; }
.ph-btn--dark { background: var(--ph-ink); border-color: var(--ph-ink); color: #fff; }
.ph-btn--dark:hover { background: #2c3a1d; }
.ph-btn--wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.ph-btn--wa:hover { background: #198f48; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--ph-line); background: #fff; color: var(--ph-ink); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ph-chip:hover { background: #f0f4ec; }
.ph-chip.on { background: var(--ph-ink); color: #fff; border-color: var(--ph-ink); }
.ph-card { background: var(--ph-card); border: 1px solid var(--ph-line); border-radius: var(--ph-r); padding: 18px; }
.ph-tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .3px; color: #fff; }
.ph-muted { color: var(--ph-mut); }
.ph-empty { text-align: center; padding: 34px 16px; color: var(--ph-mut); }
.ph-empty b { display: block; font-size: 16px; color: var(--ph-ink); margin-bottom: 4px; }
.ph-skel { background: linear-gradient(90deg, #eef2ea 25%, #f8faf6 50%, #eef2ea 75%); background-size: 200% 100%; animation: phSk 1.2s infinite; border-radius: 12px; }
@keyframes phSk { to { background-position: -200% 0; } }

/* ---------- For You ---------- */
.fy { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 320px); gap: 24px; justify-content: center; align-items: start; }
.fy__col { min-width: 0; }
.fy__rail { position: sticky; top: calc(var(--qh-h, 76px) + 16px); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1180px) { .fy { grid-template-columns: minmax(0, 640px); } .fy__rail { display: none; } }

.fy-hello { position: relative; overflow: hidden; border-radius: 20px; padding: 22px 20px 20px; color: #fff; background: linear-gradient(135deg, #1A2124 0%, #2f4a1a 60%, #4a7d18 100%); margin-bottom: 14px; }
.fy-hello::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(143,199,38,.45), transparent 70%); }
.fy-hello h2 { font-family: var(--font-display); font-size: 23px; font-weight: 800; margin: 0 0 4px; color: #fff; letter-spacing: -.4px; position: relative; }
.fy-hello p { margin: 0 0 14px; font-size: 14px; color: rgba(255,255,255,.85); position: relative; line-height: 1.5; }
.fy-snap { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.fy-snap span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); padding: 6px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: #fff; backdrop-filter: blur(4px); }
.fy-snap b { color: #b6e064; }

.fy-stories { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: none; margin-bottom: 4px; }
.fy-stories::-webkit-scrollbar { display: none; }
.fy-story { flex: none; width: 70px; text-align: center; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.fy-story__ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--c1), var(--c2), var(--c1)); display: grid; place-items: center; transition: transform .15s; }
.fy-story:hover .fy-story__ring { transform: scale(1.06); }
.fy-story__in { width: 100%; height: 100%; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 26px; border: 2px solid #fff; }
.fy-story.on .fy-story__ring { box-shadow: 0 0 0 3px var(--ph-ink); }
.fy-story span { display: block; margin-top: 5px; font-size: 11.5px; font-weight: 700; color: var(--ph-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fy-tabs { display: flex; gap: 8px; margin: 0 0 14px; }

.pc { background: #fff; border: 1px solid var(--ph-line); border-radius: 20px; overflow: hidden; margin-bottom: 18px; cursor: pointer; transition: box-shadow .2s, transform .2s; }
.pc:hover { box-shadow: 0 14px 34px rgba(26,33,36,.12); transform: translateY(-2px); }
.pc__img { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--c1), var(--c2)); overflow: hidden; }
.pc__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.pc:hover .pc__img img { transform: scale(1.04); }
.pc__img::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; }
.pc__topic { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ph-ink); font-size: 12px; font-weight: 800; }
.pc__new { position: absolute; right: 12px; top: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; background: #e2574c; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .5px; }
.pc__min { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.pc__body { padding: 14px 16px 6px; }
.pc__title { font-family: var(--font-display); font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.3px; color: var(--ph-ink); margin: 0 0 6px; }
.pc__desc { font-size: 14px; color: var(--ph-ink2); line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc__bar { display: flex; align-items: center; gap: 4px; padding: 8px 10px 12px 12px; }
.pc__act { display: inline-flex; align-items: center; gap: 5px; height: 38px; padding: 0 11px; border-radius: 10px; font-size: 13px; font-weight: 700; color: var(--ph-ink2); background: none; border: 0; cursor: pointer; }
.pc__act:hover { background: #f0f4ec; }
.pc__act.on { color: #e2574c; }
.pc__act.save.on { color: var(--ph-green-d); }
.pc__read { margin-left: auto; color: var(--ph-green-d); font-weight: 800; font-size: 13.5px; }

/* pitch / promo cards inside the feed */
.pp { border-radius: 20px; padding: 22px 20px; margin-bottom: 18px; color: #fff; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.pp::after { content: attr(data-emoji); position: absolute; right: 14px; bottom: -14px; font-size: 96px; opacity: .16; line-height: 1; }
.pp__eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.pp h3 { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 8px; color: #fff; line-height: 1.2; }
.pp p { font-size: 14.5px; line-height: 1.55; margin: 0 0 12px; color: rgba(255,255,255,.92); position: relative; z-index: 1; }
.pp ul { list-style: none; padding: 0; margin: 0 0 14px; position: relative; z-index: 1; }
.pp li { font-size: 14px; padding: 3px 0 3px 24px; position: relative; color: #fff; }
.pp li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; color: #c8f06a; }
.pp__row { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.pp .ph-btn { border-color: transparent; }
.pp .ph-btn--ghost { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.35); }
.pp .ph-btn--ghost:hover { background: rgba(255,255,255,.26); }
.pp .ph-btn--light { background: #fff; color: #1A2124; }
.pp__price { font-family: var(--font-display); font-size: 28px; font-weight: 900; margin: 0 0 10px; position: relative; z-index: 1; }
.pp__price small { font-size: 13px; font-weight: 600; opacity: .85; }

.fy-end { text-align: center; padding: 18px 0 40px; color: var(--ph-mut); font-size: 14px; }
.fy-more { display: block; margin: 0 auto 30px; }

/* right rail */
.rail-card { background: #fff; border: 1px solid var(--ph-line); border-radius: 18px; padding: 16px; }
.rail-card h4 { font-family: var(--font-display); font-size: 15px; font-weight: 800; margin: 0 0 10px; color: var(--ph-ink); }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--ph-ink2); }
.trust li > i { font-style: normal; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: #eef5e4; font-size: 17px; }
.trust b { display: block; color: var(--ph-ink); font-size: 13.5px; }
.rail-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rail-tool { text-align: left; background: #f3f6f0; border: 1px solid var(--ph-line); border-radius: 12px; padding: 10px; cursor: pointer; font-family: inherit; }
.rail-tool:hover { background: #e9f1df; }
.rail-tool b { display: block; font-size: 13px; color: var(--ph-ink); margin-top: 3px; }
.rail-tool span { font-size: 22px; }

/* ---------- Reader ---------- */
.rd { position: fixed; inset: 0; z-index: 100000; background: #fff; display: none; flex-direction: column; }
.rd.open { display: flex; }
.rd__top { flex: none; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 12px; border-bottom: 1px solid var(--ph-line); background: #fff; }
.rd__top b { flex: 1; min-width: 0; font-size: 14px; color: var(--ph-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.rd__x { width: 42px; height: 42px; border-radius: 12px; background: #f3f6f0; border: 0; font-size: 20px; cursor: pointer; color: var(--ph-ink); }
.rd__frame { flex: 1; min-height: 0; border: 0; width: 100%; background: #fff; }
.rd__load { position: absolute; inset: 56px 0 64px; display: grid; place-items: center; background: #fff; color: var(--ph-mut); font-weight: 700; }
.rd__bot { flex: none; display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--ph-line); background: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.05); }
.rd__bot .ph-btn { flex: 1; min-width: 0; padding: 0 8px; }

/* ---------- Help center ---------- */
.hc-hero { border-radius: 20px; padding: 26px 20px; margin-bottom: 18px; color: #fff; background: linear-gradient(135deg, #1A2124, #2f4a1a 70%, #4a7d18); }
.hc-hero h1 { font-family: var(--font-display); font-size: 27px; font-weight: 800; letter-spacing: -.6px; margin: 0 0 6px; color: #fff; }
.hc-hero p { margin: 0 0 14px; color: rgba(255,255,255,.85); font-size: 14.5px; }
.hc-search { display: flex; background: #fff; border-radius: 14px; padding: 5px; gap: 6px; max-width: 640px; }
.hc-search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 16px; padding: 10px 12px; color: var(--ph-ink); background: transparent; }
.hc-pop { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.hc-pop .ph-chip { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.hc-pop .ph-chip:hover { background: rgba(255,255,255,.25); }
.hc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hc-res { display: flex; gap: 12px; background: #fff; border: 1px solid var(--ph-line); border-radius: 16px; padding: 10px; margin-bottom: 10px; cursor: pointer; align-items: center; }
.hc-res:hover { box-shadow: 0 8px 22px rgba(26,33,36,.1); }
.hc-res img { width: 104px; height: 78px; border-radius: 12px; object-fit: cover; flex: none; background: #eef2ea; }
.hc-res b { display: block; font-size: 15px; color: var(--ph-ink); line-height: 1.3; margin-bottom: 3px; }
.hc-res span { font-size: 12.5px; color: var(--ph-mut); }
.hc-topic { border-radius: 16px; padding: 16px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); cursor: pointer; border: 0; text-align: left; font-family: inherit; }
.hc-topic span { font-size: 28px; display: block; margin-bottom: 4px; }
.hc-topic b { display: block; font-size: 16px; color: #fff; }
.hc-topic small { font-size: 12.5px; opacity: .85; color: #fff; }
.hc-cta { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #eef5e4; border-radius: 16px; padding: 16px; }
.hc-cta b { display: block; color: var(--ph-ink); }
.hc-cta div { flex: 1; min-width: 200px; font-size: 13.5px; color: var(--ph-ink2); }

/* ---------- Problem finder ---------- */
.pf-box { background: #fff; border: 1px solid var(--ph-line); border-radius: 20px; padding: 18px; margin-bottom: 18px; }
.pf-box label { display: block; font-size: 13px; font-weight: 800; color: var(--ph-ink); margin: 0 0 8px; }
.pf-box textarea { width: 100%; min-height: 96px; border: 1px solid var(--ph-line); border-radius: 12px; padding: 12px; font-size: 15.5px; font-family: inherit; resize: vertical; color: var(--ph-ink); background: #fbfcfa; }
.pf-box textarea:focus, .hc-search input:focus { outline: 2px solid var(--ph-green); }
.pf-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 14px; }
.pf-ans { border: 2px solid var(--ph-green); border-radius: 20px; background: #fff; overflow: hidden; margin-bottom: 16px; }
.pf-ans__head { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.pf-ans__head span { font-size: 34px; }
.pf-ans__head h3 { font-family: var(--font-display); margin: 0; font-size: 19px; font-weight: 800; color: #fff; line-height: 1.25; }
.pf-ans__head small { opacity: .85; font-size: 12.5px; color: #fff; }
.pf-sec { padding: 14px 18px 4px; }
.pf-sec h4 { font-size: 12px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--ph-green-d); margin: 0 0 8px; }
.pf-causes { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ph-ink2); line-height: 1.55; }
.pf-step { display: flex; gap: 12px; padding: 11px 12px; border: 1px solid var(--ph-line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; align-items: flex-start; background: #fff; }
.pf-step.done { background: #eef5e4; border-color: #b9d894; }
.pf-step.done .pf-step__t { text-decoration: line-through; color: var(--ph-mut); }
.pf-step__n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ph-ink); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.pf-step.done .pf-step__n { background: var(--ph-green); color: #1A2124; }
.pf-step__t { font-size: 14.5px; line-height: 1.5; color: var(--ph-ink); }
.pf-warn { margin: 6px 18px 12px; background: #fff6e0; border: 1px solid #f0d58a; color: #6b4e00; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.pf-foot { padding: 12px 18px 18px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pf-foot b { width: 100%; font-size: 14px; color: var(--ph-ink); }
.pf-done { padding: 18px; text-align: center; background: #eef5e4; border-radius: 16px; margin-bottom: 14px; font-size: 15px; color: var(--ph-ink); }

/* ---------- Tools ---------- */
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tl-card { text-align: left; border-radius: 20px; padding: 18px; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); cursor: pointer; border: 0; font-family: inherit; min-height: 150px; position: relative; overflow: hidden; transition: transform .15s; }
.tl-card:hover { transform: translateY(-3px); }
.tl-card span { font-size: 34px; display: block; margin-bottom: 8px; }
.tl-card b { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 4px; }
.tl-card small { font-size: 13px; opacity: .9; line-height: 1.4; display: block; color: #fff; }
.tl-panel { background: #fff; border: 1px solid var(--ph-line); border-radius: 20px; padding: 18px; }
.tl-back { margin-bottom: 12px; }
.tl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tl-row label { display: block; font-size: 12.5px; font-weight: 800; color: var(--ph-ink); margin-bottom: 5px; }
.tl-row input, .tl-row select { width: 100%; min-height: 44px; border: 1px solid var(--ph-line); border-radius: 10px; padding: 0 12px; font-size: 15.5px; background: #fbfcfa; color: var(--ph-ink); }
.tl-out { background: linear-gradient(135deg, #1A2124, #2f4a1a); color: #fff; border-radius: 18px; padding: 18px; margin-top: 8px; }
.tl-out .big { font-family: var(--font-display); font-size: 38px; font-weight: 900; letter-spacing: -1px; color: #c8f06a; line-height: 1.05; }
.tl-out p { margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.5; }
.tl-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.tl-kpi { background: rgba(255,255,255,.1); border-radius: 12px; padding: 10px 12px; }
.tl-kpi b { display: block; font-size: 20px; color: #fff; font-family: var(--font-display); }
.tl-kpi span { font-size: 12px; color: rgba(255,255,255,.75); }
.tl-load { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--ph-line); }
.tl-load span { flex: 1; font-size: 14.5px; color: var(--ph-ink); }
.tl-load small { color: var(--ph-mut); display: block; font-size: 12px; }
.tl-load input { width: 70px; min-height: 40px; border: 1px solid var(--ph-line); border-radius: 10px; text-align: center; font-size: 15px; }
.tl-q { padding: 12px 14px; border: 1px solid var(--ph-line); border-radius: 14px; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tl-q span { flex: 1; min-width: 200px; font-size: 14.5px; color: var(--ph-ink); }
.tl-yn { display: flex; gap: 6px; }
.tl-yn button { min-width: 64px; min-height: 40px; border-radius: 10px; border: 1px solid var(--ph-line); background: #fff; font-weight: 800; cursor: pointer; font-size: 14px; color: var(--ph-ink); }
.tl-yn button.on.y { background: var(--ph-green); border-color: var(--ph-green); color: #1A2124; }
.tl-yn button.on.n { background: #e2574c; border-color: #e2574c; color: #fff; }
.tl-ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; background: conic-gradient(var(--rc, #7AB23A) calc(var(--p) * 1%), rgba(255,255,255,.18) 0); display: grid; place-items: center; flex: none; }
.tl-ring div { width: 100px; height: 100px; border-radius: 50%; background: #1f2d1a; display: grid; place-items: center; font-family: var(--font-display); font-size: 32px; font-weight: 900; color: #fff; }
.tl-rec { display: flex; gap: 12px; padding: 12px; border: 1px solid var(--ph-line); border-radius: 14px; margin-bottom: 8px; align-items: center; }
.tl-rec > span { font-size: 26px; }
.tl-rec div { flex: 1; min-width: 0; font-size: 14px; color: var(--ph-ink2); }
.tl-rec b { display: block; color: var(--ph-ink); font-size: 15px; }

/* ---------- Plans & services ---------- */
.pl-hero { border-radius: 22px; padding: 26px 22px; color: #fff; background: linear-gradient(135deg, #1A2124 0%, #2f4a1a 55%, #5a9a1e 100%); margin-bottom: 16px; position: relative; overflow: hidden; }
.pl-hero::after { content: "🛡"; position: absolute; right: 12px; bottom: -20px; font-size: 130px; opacity: .1; }
.pl-hero h1 { font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: -.8px; margin: 0 0 8px; color: #fff; line-height: 1.12; max-width: 560px; }
.pl-hero p { margin: 0 0 14px; font-size: 15px; color: rgba(255,255,255,.88); max-width: 560px; line-height: 1.55; }
.pl-trust { display: flex; flex-wrap: wrap; gap: 8px; position: relative; z-index: 1; }
.pl-trust span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 7px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; color: #fff; }
.pl-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 18px; }
.pl-why div { background: #fff; border: 1px solid var(--ph-line); border-radius: 16px; padding: 14px; font-size: 13.5px; color: var(--ph-ink2); line-height: 1.5; }
.pl-why b { display: block; font-size: 15px; color: var(--ph-ink); margin: 4px 0; }
.pl-why span { font-size: 26px; }
.pl-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.sv { background: #fff; border: 1px solid var(--ph-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.sv__img { position: relative; aspect-ratio: 16/8; background: linear-gradient(135deg, var(--c1), var(--c2)); }
.sv__img img { width: 100%; height: 100%; object-fit: cover; }
.sv__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.6)); }
.sv__img h3 { position: absolute; left: 14px; bottom: 10px; z-index: 2; margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 800; color: #fff; }
.sv__badge { position: absolute; right: 10px; top: 10px; z-index: 2; background: #fff; color: var(--ph-green-d); font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; }
.sv__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.sv__hook { font-size: 14.5px; font-weight: 700; color: var(--ph-ink); line-height: 1.4; margin: 0; }
.sv ul { list-style: none; padding: 0; margin: 0; }
.sv li { font-size: 13.5px; color: var(--ph-ink2); padding: 2px 0 2px 22px; position: relative; line-height: 1.45; }
.sv li::before { content: "✓"; position: absolute; left: 0; color: var(--ph-green-d); font-weight: 900; }
.sv__tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sv__tier { text-align: center; border: 1px solid var(--ph-line); border-radius: 12px; padding: 8px 4px; background: #f8faf6; cursor: pointer; font-family: inherit; }
.sv__tier:hover { border-color: var(--ph-green); background: #eef5e4; }
.sv__tier small { display: block; font-size: 11px; font-weight: 800; color: var(--ph-mut); text-transform: uppercase; letter-spacing: .5px; }
.sv__tier b { font-size: 14px; color: var(--ph-ink); }
.sv__tier.mid { border-color: var(--ph-green); background: #eef5e4; }
.sv__row { display: flex; gap: 8px; margin-top: auto; }
.sv__row .ph-btn { flex: 1; }

/* ---------- Home: fresh strip ---------- */
.hf { margin: 0 0 18px; }
.hf__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hf__head b { font-family: var(--font-display); font-size: 16px; color: var(--ph-ink); }
.hf__row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.hf__row::-webkit-scrollbar { display: none; }
.hf__c { flex: none; width: 210px; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--ph-line); cursor: pointer; }
.hf__c img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #eef2ea; }
.hf__c div { padding: 9px 11px 11px; font-size: 13.5px; font-weight: 700; color: var(--ph-ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Interests sheet ---------- */
.is { position: fixed; inset: 0; z-index: 100001; background: rgba(10,14,12,.6); display: none; align-items: flex-end; justify-content: center; }
.is.open { display: flex; }
.is__box { background: #fff; width: 100%; max-width: 560px; border-radius: 24px 24px 0 0; padding: 22px 18px 24px; max-height: 88vh; overflow-y: auto; }
@media (min-width: 700px) { .is { align-items: center; } .is__box { border-radius: 24px; } }
.is__box h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 4px; color: var(--ph-ink); }
.is__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 14px 0; }
.is__grid .ph-chip { justify-content: flex-start; padding: 12px; font-size: 14px; border-radius: 14px; }

/* mobile */
@media (max-width: 700px) {
  .ph-h1, .hc-hero h1 { font-size: 23px; }
  .pl-hero h1 { font-size: 25px; }
  .pc__title { font-size: 17.5px; }
  .tl-out .big { font-size: 32px; }
  .rd__bot .ph-btn span { display: none; }
}

/* ---------- sign-in / sign-up screen: light theme (the older styles assumed a dark page) ---------- */
#authSection { padding-top: calc(var(--qh-h, 86px) + 28px); min-height: 100vh; }
.auth-card { background: #fff; border: 1px solid var(--ph-line); box-shadow: 0 18px 50px rgba(26,33,36,.12); }
.auth-tabs { background: #f3f6f0; border-color: var(--ph-line); }
.auth-tab.active { color: #fff; }
.field-label { color: var(--ph-ink2); }
.field-input { background: #fff; border: 1px solid rgba(26,33,36,.28); color: var(--ph-ink); }
.field-input::placeholder { color: rgba(26,33,36,.42); }
.field-input:focus { border-color: var(--ph-green-d); background: #fff; box-shadow: 0 0 0 3px rgba(122,178,58,.25); }
.auth-divider-line { background: var(--ph-line); }
.auth-badge { color: var(--ph-green-d); }

/* ---------- phone tab bar (the old portal menu button went away with the shared header) ---------- */
.ph-tabs { display: none; }
@media (max-width: 860px) {
  .ph-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; height: 62px; display: none; background: #fff; border-top: 1px solid var(--ph-line); box-shadow: 0 -6px 20px rgba(26,33,36,.08); padding-bottom: env(safe-area-inset-bottom); }
  body.ph-in .ph-tabs { display: flex; }
  body.ph-in .dash-content { padding-bottom: 84px; }
  .ph-tabs button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 700; color: var(--ph-mut); background: none; border: 0; cursor: pointer; font-family: inherit; }
  .ph-tabs button span { font-size: 21px; line-height: 1; }
  .ph-tabs button.on { color: var(--ph-green-d); }
  .ph-tabs button.on span { transform: translateY(-1px) scale(1.1); }
}
