:root{
  --bdi-orange:#ffa22b;
  --bdi-fixed-orange:#ffa22b; /* Den's own brand color — never overwritten by a page owner's accent choice, unlike --bdi-orange */
  --bdi-red:#fb4d5d;
  --bdi-green:#53FC18;
  --bg:#111008;
  --surface:#1a1710;
  --text:#f0ece4;
  --muted:#888070;
  --font:'Poppins', sans-serif;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:var(--font);
  min-height:100vh;
}
a{color:inherit;}
.wrap{
  max-width:520px; margin:40px auto 80px; padding:48px 20px 80px;
  position:relative; z-index:1;
  /* muted version of the accent color choice, blended toward the page
     background rather than used at full strength — this is the card
     itself, not a separate glow behind it */
  background:color-mix(in srgb, var(--bdi-orange) 28%, var(--bg) 72%);
  border-radius:28px;
  /* two layers: a dark shadow for depth/lift, plus a soft glow tinted with
     the accent color so it reads as floating, not just differently colored */
  box-shadow:
    0 24px 60px rgba(0,0,0,0.5),
    0 0 50px color-mix(in srgb, var(--bdi-orange) 30%, transparent);
}

/* top nav row — back-to-directory + edit-my-page (owner only) */
.pp-topnav{ display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.pp-topnav-btn,
.pp-topnav-btn:link,
.pp-topnav-btn:visited{
  display:inline-flex; align-items:center; gap:6px; text-decoration:none;
  color:var(--text); font-size:12px; font-weight:600;
  background:rgba(0,0,0,0.25); border:1px solid rgba(255,255,255,0.1);
  padding:8px 14px; border-radius:999px;
}
.pp-topnav-btn:hover, .pp-topnav-btn:focus{ border-color:var(--bdi-orange); color:var(--bdi-orange); }
.pp-topnav-btn:active{ transform:scale(0.97); }

/* header */
.pp-header{ text-align:center; margin-bottom:28px; }
.pp-avatar{
  width:112px; height:112px; margin:0 auto 16px; border-radius:50%;
  background:var(--surface); border:3px solid var(--bdi-orange);
  box-shadow:0 0 24px rgba(255,162,43,0.35); object-fit:cover;
}
.pp-name{ font-weight:900; font-size:28px; margin:0 0 4px; }
.pp-live{
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(83,252,24,0.12); border:1px solid var(--bdi-green); color:var(--bdi-green);
  font-size:12px; font-weight:700; letter-spacing:0.06em; text-transform:uppercase;
  padding:4px 12px; border-radius:999px; margin-bottom:10px;
}
.pp-live-dot{ width:7px; height:7px; border-radius:50%; background:var(--bdi-green); box-shadow:0 0 8px var(--bdi-green); animation:pulse 1.6s infinite; }
@keyframes pulse{ 0%,100%{opacity:1;} 50%{opacity:.35;} }
.pp-bio{ color:var(--muted); font-size:14px; line-height:1.5; max-width:380px; margin:0 auto; white-space:pre-line; }

/* quick links — icon-only shortcuts under the avatar/bio */
.pp-quicklinks{ display:flex; justify-content:center; gap:12px; margin-top:14px; flex-wrap:wrap; }
.pp-quicklink{
  display:flex; align-items:center; justify-content:center; width:40px; height:40px;
  border-radius:50%; background:var(--surface); border:1px solid rgba(255,255,255,0.08);
  font-size:17px; text-decoration:none; transition:transform .12s, border-color .12s;
}
.pp-quicklink:hover{ transform:translateY(-2px); border-color:var(--bdi-orange); }

/* stacked list links */
.pp-links{ display:flex; flex-direction:column; gap:12px; margin-top:28px; }
.pp-card{
  display:flex; align-items:center; gap:12px;
  background:var(--surface); border:1px solid rgba(255,255,255,0.05); border-radius:14px;
  padding:14px 16px; text-decoration:none; color:var(--text);
  transition:transform .12s, border-color .12s; position:relative;
}
.pp-card:hover{ transform:translateY(-2px); border-color:var(--bdi-orange); }
.pp-card.featured{ border-color:var(--bdi-red); background:linear-gradient(135deg, rgba(251,77,93,0.08), var(--surface)); }
.pp-featured-tag{
  position:absolute; top:-9px; right:14px; background:var(--bdi-red); color:var(--bg);
  font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:2px 8px; border-radius:999px;
}
.pp-bullet{ flex:0 0 auto; width:20px; height:20px; display:flex; align-items:center; justify-content:center; }
.pp-bullet svg{ width:100%; height:100%; }
.pp-bullet-icon{ font-size:16px; }
.pp-bullet-img img{ width:100%; height:100%; border-radius:50%; object-fit:cover; }
.pp-label{ font-weight:600; font-size:15px; flex:1; }
.pp-arrow{ color:var(--muted); font-size:14px; }
.pp-card:hover .pp-arrow{ color:var(--bdi-orange); }

/* carousel row — Linktree-style horizontal scroll of square thumbnail cards */
.pp-carousel-section{ display:flex; flex-direction:column; gap:8px; }
.pp-carousel-heading{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.pp-carousel-wrap{ margin-top:0; display:flex; align-items:center; gap:6px; }
.pp-carousel-arrow{
  flex:0 0 auto; width:30px; height:30px; border-radius:50%;
  background:var(--surface); border:1px solid rgba(255,255,255,.1); color:var(--muted);
  font-size:16px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.pp-carousel-arrow:hover{ border-color:var(--bdi-orange); color:var(--bdi-orange); }
.pp-carousel-thumb-icon{ display:flex; align-items:center; justify-content:center; font-size:28px; color:var(--muted); background:var(--bg); }
.pp-carousel{
  display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x proximity;
  padding-bottom:4px; -webkit-overflow-scrolling:touch; flex:1; min-width:0;
}
.pp-carousel::-webkit-scrollbar{ height:6px; }
.pp-carousel::-webkit-scrollbar-thumb{ background:var(--surface); border-radius:3px; }
.pp-carousel-item{
  flex:0 0 auto; width:42%; max-width:180px; scroll-snap-align:start;
  background:var(--surface); border:1px solid rgba(255,255,255,0.05); border-radius:14px;
  overflow:hidden; text-decoration:none; color:var(--text);
  transition:transform .12s, border-color .12s;
}
.pp-carousel-item:hover{ transform:translateY(-2px); border-color:var(--bdi-orange); }
.pp-carousel-thumb{ width:100%; aspect-ratio:1/1; object-fit:cover; background:rgba(255,255,255,0.04); display:block; }
.pp-carousel-label{ padding:10px 12px; font-size:13px; font-weight:600; line-height:1.3; }

/* directory grid */
.pp-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(140px,1fr)); gap:16px; margin-top:24px; }
.pp-grid-card{
  background:var(--surface); border:1px solid rgba(255,255,255,0.05); border-radius:16px;
  padding:20px 12px; text-align:center; text-decoration:none; color:var(--text);
  transition:transform .12s, border-color .12s;
}
.pp-grid-card:hover{ transform:translateY(-3px); border-color:var(--bdi-orange); }
.pp-grid-avatar{ width:64px; height:64px; border-radius:50%; object-fit:cover; margin:0 auto 10px; border:2px solid var(--bdi-orange); display:block; }
.pp-grid-name{ font-weight:700; font-size:14px; }

.pp-footer{ text-align:center; margin-top:40px; color:var(--muted); font-size:12px; letter-spacing:.04em; }
.pp-footer b{ color:var(--bdi-orange); }
.pp-empty{ text-align:center; color:var(--muted); padding:60px 20px; }

/* "create your own" subscriber CTA, sits just above the footer branding */
.pp-cta{
  margin-top:36px; padding-top:24px; border-top:1px solid rgba(255,255,255,0.08);
  text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px;
}

/* login/subscriber-status panel on the directory page — same visual language
   as .pp-cta but its own box since it sits above the grid, not the footer */
.pp-login-status{
  background:rgba(0,0,0,0.2); border:1px solid rgba(255,255,255,0.08); border-radius:16px;
  padding:20px; margin:20px 0; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:10px;
}
.pp-cta-text{ font-size:13px; color:var(--text); max-width:340px; margin:0; line-height:1.5; }
.pp-cta-btn,
.pp-cta-btn:link,
.pp-cta-btn:visited,
.pp-cta-btn:hover,
.pp-cta-btn:active,
.pp-cta-btn:focus{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  background:var(--bdi-fixed-orange); color:#111008; font-weight:700; font-size:13px;
  padding:10px 22px; border-radius:999px; border:none; outline:none;
  transition:transform .12s, filter .12s;
}
.pp-cta-btn:hover{ filter:brightness(1.08); transform:translateY(-1px); }
.pp-cta-btn:active{ filter:brightness(0.94); transform:translateY(0); }
.pp-cta-note{ font-size:11px; color:var(--muted); max-width:320px; margin:0; line-height:1.4; }
