/* Client portal Home: subscription card first, install + notification strips, quick actions, topic chips, photo cards. Loaded after portal-hub.css. */
.phi { display: inline-block; vertical-align: middle; flex: none; }
.phi-i { display: inline-flex; vertical-align: -0.14em; line-height: 1; }
.phi-i .phi { width: 1em; height: 1em; }
.empty-state-icon .phi-i, .empty-state-icon .phi { width: 1em; height: 1em; opacity: .55; }

/* ---------- sidebar ---------- */
.sidebar .nav-link-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 0; }
.sidebar .nav-link-icon .phi { width: 19px; height: 19px; }
.sidebar .nav-link { font-weight: 600; }
.sidebar .nav-link.active .nav-link-icon { color: var(--ph-green-d); }

/* ---------- hello + subscription hero ---------- */
.hx-hello { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 2px 12px; flex-wrap: wrap; }
.hx-hello h2 { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.4px; color: var(--ph-ink); margin: 0; }
.hx-hello span { font-size: 13px; color: var(--ph-mut); }

.hx { position: relative; overflow: hidden; border-radius: 24px; padding: 22px; color: #fff; margin-bottom: 14px; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, rgba(122,178,58,.34) 0%, transparent 55%), linear-gradient(145deg, #0e1417 0%, #172312 60%, #25400f 100%);
  box-shadow: 0 18px 40px rgba(14,20,23,.22); }
.hx::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 70%); -webkit-mask-image: radial-gradient(80% 90% at 85% 10%, #000, transparent 70%); }
.hx--soon { background: radial-gradient(120% 140% at 100% 0%, rgba(245,158,11,.36) 0%, transparent 55%), linear-gradient(145deg, #14110c 0%, #2a1d0b 60%, #4a3410 100%); }
.hx--late { background: radial-gradient(120% 140% at 100% 0%, rgba(239,68,68,.36) 0%, transparent 55%), linear-gradient(145deg, #150d0d 0%, #2a1010 60%, #4a1818 100%); }
.hx__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.hx__eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,.7); display: inline-flex; align-items: center; gap: 7px; }
.hx__eyebrow .phi { width: 16px; height: 16px; color: #9bd23a; }
.hx__pill { font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); display: inline-flex; align-items: center; gap: 6px; }
.hx__pill i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.25); }
.hx--soon .hx__pill i { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.25); }
.hx--late .hx__pill i { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.25); }
.hx__main { display: flex; align-items: center; gap: 18px; }
.hx__ring { position: relative; width: 96px; height: 96px; flex: none; }
.hx__ring svg { width: 96px; height: 96px; transform: rotate(-90deg); }
.hx__ring circle { fill: none; stroke-width: 8; }
.hx__ring .bg { stroke: rgba(255,255,255,.14); }
.hx__ring .fg { stroke: #7AB23A; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.2,.8,.2,1); }
.hx--soon .hx__ring .fg { stroke: #fbbf24; } .hx--late .hx__ring .fg { stroke: #f87171; }
.hx__days { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1; }
.hx__days b { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.hx__days small { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: 3px; }
.hx__info { min-width: 0; }
.hx__info h3 { font-family: var(--font-display); font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin: 0 0 4px; color: #fff; line-height: 1.15; }
.hx__info p { margin: 0; font-size: 14px; color: rgba(255,255,255,.78); line-height: 1.45; }
.hx__info p b { color: #fff; }
.hx__cta { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.1); color: #fff; font-family: inherit; font-weight: 800; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.hx-btn:hover { background: rgba(255,255,255,.18); transform: translateY(-1px); }
.hx-btn--go { background: #7AB23A; border-color: #7AB23A; color: #0f1a08; box-shadow: 0 8px 22px rgba(122,178,58,.38); flex: 1 1 190px; }
.hx-btn--go:hover { background: #8cc546; }
.hx-btn .phi { width: 18px; height: 18px; }
.hx__more { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.hx__chip { font-size: 12.5px; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
.hx__chip:hover { background: rgba(255,255,255,.16); }
.hx__chip .phi { width: 14px; height: 14px; }
.hx--none { background: radial-gradient(120% 140% at 100% 0%, rgba(122,178,58,.34) 0%, transparent 55%), linear-gradient(145deg, rgba(14,20,23,.92), rgba(23,35,18,.94)), var(--hx-img, none); background-size: cover; background-position: center; }
.hx--none h3 { font-size: 24px; }
.hx__perks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.hx__perks li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.88); line-height: 1.4; }
.hx__perks .phi { width: 18px; height: 18px; color: #9bd23a; margin-top: 1px; }

/* ---------- install + notification strips ---------- */
.ix { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1px solid var(--ph-line); margin-bottom: 12px; box-shadow: 0 1px 0 rgba(26,33,36,.03); }
.ix__ico { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: linear-gradient(145deg, #0e1417, #25400f); color: #9bd23a; }
.ix__ico .phi { width: 24px; height: 24px; }
.ix__ico img { width: 46px; height: 46px; border-radius: 13px; display: block; }
.ix__txt { flex: 1; min-width: 0; line-height: 1.3; }
.ix__txt b { display: block; font-size: 14.5px; color: var(--ph-ink); }
.ix__txt span { font-size: 12.5px; color: var(--ph-mut); }
.ix__go { flex: none; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 0; background: var(--ph-ink); color: #fff; font-family: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.ix__go:hover { background: #2c373b; }
.ix__go .phi { width: 16px; height: 16px; }
.ix__x { flex: none; width: 34px; height: 34px; border: 0; background: none; color: var(--ph-mut); cursor: pointer; border-radius: 10px; font-size: 20px; line-height: 1; }
.ix__x:hover { background: #f0f4ec; }
.ix--soft { background: #f3f8ec; border-color: rgba(63,107,18,.18); }
.ix--soft .ix__ico { background: #e3f0d3; color: var(--ph-green-d); }

/* ---------- quick actions ---------- */
.qa { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 2px 0 18px; }
.qa__t { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--ph-line); cursor: pointer; font-family: inherit; text-align: left; transition: transform .15s, box-shadow .15s, border-color .15s; }
.qa__t:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(26,33,36,.1); border-color: rgba(122,178,58,.5); }
.qa__i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #eaf3df; color: var(--ph-green-d); }
.qa__i .phi { width: 21px; height: 21px; }
.qa__t b { font-size: 14px; color: var(--ph-ink); line-height: 1.2; }
.qa__t span { font-size: 12px; color: var(--ph-mut); line-height: 1.3; margin-top: -6px; }

/* ---------- feed header, chips, tabs ---------- */
.fy-sec { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 10px; gap: 10px; }
.fy-sec h3 { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: var(--ph-ink); margin: 0; }
.fy-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.fy-chips::-webkit-scrollbar { display: none; }
.fy-chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px 8px 11px; border-radius: 999px; border: 1px solid var(--ph-line); background: #fff; color: var(--ph-ink); font-family: inherit; font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .15s, border-color .15s; white-space: nowrap; }
.fy-chip .phi { width: 17px; height: 17px; color: var(--ph-green-d); }
.fy-chip:hover { background: #f3f8ec; }
.fy-chip.on { background: var(--ph-ink); color: #fff; border-color: var(--ph-ink); }
.fy-chip.on .phi { color: #9bd23a; }
.fy-tabs { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; }
.fy-tabs .ph-chip { min-height: 36px; }

/* ---------- photo cards ---------- */
.pc { border-radius: 22px; box-shadow: 0 1px 0 rgba(26,33,36,.03); }
.pc__img { aspect-ratio: 16/9; }
.pc__img::after { inset: 55% 0 0 0; background: linear-gradient(transparent, rgba(8,12,14,.5)); }
.pc__topic { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: rgba(12,17,19,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.16); }
.pc__topic .phi { width: 14px; height: 14px; color: #9bd23a; }
.pc__new { position: absolute; right: 12px; top: 12px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .6px; padding: 5px 9px; border-radius: 999px; background: #7AB23A; color: #0f1a08; }
.pc__min { position: absolute; left: 12px; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.pc__min .phi { width: 13px; height: 13px; }
.pc__img > .pc__ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.pc__img > .pc__ph .phi { width: 54px; height: 54px; }
.pc__body { padding: 16px 18px 6px; }
.pc__title { font-size: 19px; line-height: 1.25; letter-spacing: -.3px; }
.pc__desc { color: var(--ph-mut); font-size: 14px; line-height: 1.5; }
.pc__bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px 14px 14px; }
.pc__act { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 11px; border: 0; background: transparent; color: var(--ph-mut); font-family: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
.pc__act .phi { width: 17px; height: 17px; }
.pc__act:hover { background: #f0f4ec; color: var(--ph-ink); }
.pc__act.on { color: var(--ph-green-d); } .pc__act.on .phi { fill: currentColor; }
.pc__read { margin-left: auto; font-weight: 800; font-size: 13.5px; color: var(--ph-green-d); display: inline-flex; align-items: center; gap: 6px; }
.pc__read .phi { width: 16px; height: 16px; }

/* promo cards */
.pp__ico { position: absolute; right: 16px; bottom: -8px; opacity: .14; line-height: 1; pointer-events: none; }
.pp__ico .phi { width: 110px; height: 110px; stroke-width: 1.2; }
.pp::after { content: none !important; }

/* ---------- tools ---------- */
.tl-card span { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.16); margin-bottom: 12px; font-size: 0; }
.tl-card span .phi { width: 28px; height: 28px; color: #fff; }
.rail-tool span { font-size: 0; display: block; margin-bottom: 4px; } .rail-tool span .phi { width: 22px; height: 22px; color: var(--ph-green-d); }
.rail-card .trust li i { font-size: 0; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #eaf3df; color: var(--ph-green-d); flex: none; }
.rail-card .trust li i .phi { width: 19px; height: 19px; }
.pl-trust .phi, .pl-why span .phi { width: 17px; height: 17px; color: var(--ph-green-d); vertical-align: -3px; margin-right: 3px; }
.pl-why span { font-size: 0; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eaf3df; margin-bottom: 8px; }
.pl-why span .phi { width: 20px; height: 20px; margin: 0; }

/* ---------- bottom tabs (mobile) ---------- */
.ph-tabs button span { font-size: 0; display: block; line-height: 0; margin-bottom: 3px; }
.ph-tabs button span .phi { width: 22px; height: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .hx { padding: 18px; border-radius: 22px; }
  .hx__ring, .hx__ring svg { width: 84px; height: 84px; }
  .hx__days b { font-size: 26px; }
  .hx__info h3 { font-size: 19px; }
  .qa { grid-template-columns: repeat(2, 1fr); }
  .ix { flex-wrap: wrap; }
  .ix__txt { flex-basis: calc(100% - 120px); }
  .ix__go { flex: 1 1 100%; justify-content: center; order: 4; }
  .hx__cta .hx-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .hx__ring .fg, .qa__t, .pc, .hx-btn { transition: none; } }

/* ---------- guest mode + sign-in sheet ---------- */
#authSection { display: none; position: fixed; inset: 0; z-index: 100010; min-height: 0; height: 100%; padding: 24px 16px 40px; align-items: center; justify-content: flex-start;
  background: rgba(14,20,23,.66); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); overflow-y: auto; }
#authSection .auth-header { margin-top: 4vh; }
#authSection .auth-title, #authSection .auth-sub { color: #fff; }
#authSection .auth-title span { color: #a9d868; }
#authSection .auth-badge { background: rgba(255,255,255,.12); color: #d6f0a8; border-color: rgba(255,255,255,.25); }
.auth-card { position: relative; }
.auth-x { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #eef2ea; color: #3a4448; font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.auth-x:hover { background: #dfe8d6; }
.auth-why { display: none; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: #f1f8e6; border: 1px solid #cfe5ad; color: #33540f; font-size: 13.5px; font-weight: 600; }
.sidebar-guest { display: none; margin-top: auto; padding: 14px 12px; border-top: 1px solid var(--ph-line); }
.sidebar-guest b { display: block; font-size: 13px; color: var(--ph-ink); }
.sidebar-guest span { display: block; font-size: 12px; color: var(--ph-ink2); margin: 3px 0 10px; line-height: 1.45; }
.sidebar-guest button { width: 100%; padding: 10px; border: 0; border-radius: 10px; background: var(--ph-green, #7AB23A); color: #0f1a08; font-weight: 800; font-size: 13px; cursor: pointer; margin-bottom: 6px; }
.sidebar-guest button.ghost { background: #fff; border: 1px solid var(--ph-line); color: var(--ph-ink); font-weight: 700; }
body.guest .sidebar-guest { display: block; }
body.guest .sidebar-user, body.guest #nl-notifications, body.guest #nl-profile { display: none; }
#authSection > * { flex-shrink: 0; }
#authSection .auth-benefits { display: none; }
#authSection .auth-card { margin-bottom: 24px; }

/* product photo cards: show the whole product on a clean light stage */
.pc__img--p { background: radial-gradient(circle at 50% 35%, #fff 0%, #eef2ea 100%); }
.pc__img--p > img { object-fit: contain; padding: 16px 16px 26px; mix-blend-mode: multiply; }
.pc__img--p > .pc__ph { display: none; }
.pc__img--p::after { display: none; }
