/* public/profile-theme.css  —  gave. public profile themes (Noir glass)
   Used by lib/renderProfile.js for the black / white / pink themes.
   The Classic theme does NOT use this file.
   If you edit this file, bump ?v=1 in renderProfile.js so phones reload it. */

.nv, .nv *{ box-sizing:border-box; }

.nv{
  --accent:#ffffff;

  /* ---------- BLACK (default tokens) ---------- */
  --bg:#050505;
  --fg:#ffffff;
  --fg2:rgba(255,255,255,.66);
  --fg3:rgba(255,255,255,.55);
  --fg4:rgba(255,255,255,.4);
  --glass:rgba(255,255,255,.07);
  --glass-bd:rgba(255,255,255,.13);
  --chip:rgba(255,255,255,.1);
  --chip-bd:rgba(255,255,255,.16);
  --chip-fg:rgba(255,255,255,.85);
  --btn:#ffffff;
  --btn-fg:#000000;
  --btn-sh:0 10px 40px rgba(255,255,255,.22);
  --ring:linear-gradient(140deg,#ffffff,#6b6b6b 60%,#ffffff);
  --ring-sh:0 0 60px rgba(255,255,255,.3);
  --av-bg:linear-gradient(150deg,#1a1a1a,#0a0a0a);
  --av-bd:#050505;
  --av-fg:#ffffff;
  --tl:rgba(255,255,255,.25);
  --dot-halo:rgba(255,255,255,.18);
  --icon-bg:rgba(255,255,255,.1);
  --icon-bd:rgba(255,255,255,.18);
  --g1:radial-gradient(closest-side,rgba(255,255,255,.16),transparent);
  --g2:radial-gradient(closest-side,rgba(143,143,143,.12),transparent);
  --g3:radial-gradient(closest-side,rgba(208,208,208,.1),transparent);
  --g4:radial-gradient(closest-side,rgba(255,255,255,.14),transparent);

  position:relative;
  overflow:hidden;
  min-height:100vh;
  background:var(--bg);
  color:var(--fg);
  font-family:'Outfit',-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,Helvetica,Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
  text-align:left;
}

/* ---------- WHITE ---------- */
.nv[data-theme="white"]{
  --accent:#111111;
  --bg:linear-gradient(180deg,#ffffff 0%,#f4f4f4 100%);
  --fg:#111111;
  --fg2:rgba(17,17,17,.66);
  --fg3:rgba(17,17,17,.55);
  --fg4:rgba(17,17,17,.4);
  --glass:rgba(255,255,255,.92);
  --glass-bd:rgba(17,17,17,.08);
  --chip:rgba(17,17,17,.06);
  --chip-bd:rgba(17,17,17,.08);
  --chip-fg:rgba(17,17,17,.85);
  --btn:#111111;
  --btn-fg:#ffffff;
  --btn-sh:0 10px 30px rgba(17,17,17,.18);
  --ring:linear-gradient(140deg,#ececec,#bdbdbd 55%,#ececec);
  --ring-sh:0 0 40px rgba(17,17,17,.1);
  --av-bg:linear-gradient(150deg,#1a1a1a,#0a0a0a);
  --av-bd:#fafafa;
  --av-fg:#ffffff;
  --tl:rgba(17,17,17,.25);
  --dot-halo:rgba(17,17,17,.1);
  --icon-bg:rgba(17,17,17,.06);
  --icon-bd:rgba(17,17,17,.1);
  --g1:radial-gradient(closest-side,rgba(228,228,228,.9),transparent);
  --g2:radial-gradient(closest-side,rgba(239,239,239,1),transparent);
  --g3:radial-gradient(closest-side,rgba(228,228,228,.8),transparent);
  --g4:radial-gradient(closest-side,rgba(237,237,237,1),transparent);
}

/* ---------- MUTED PINK ---------- */
.nv[data-theme="pink"]{
  --accent:#fff7fa;
  --bg:linear-gradient(180deg,#ebb9c9 0%,#dc9bb2 55%,#c9809b 100%);
  --fg:#3b1624;
  --fg2:rgba(59,22,36,.66);
  --fg3:rgba(59,22,36,.55);
  --fg4:rgba(59,22,36,.45);
  --glass:rgba(255,255,255,.2);
  --glass-bd:rgba(255,255,255,.42);
  --chip:rgba(59,22,36,.1);
  --chip-bd:rgba(255,255,255,.42);
  --chip-fg:rgba(59,22,36,.85);
  --btn:#fff7fa;
  --btn-fg:#3b1624;
  --btn-sh:0 10px 30px rgba(59,22,36,.2);
  --ring:linear-gradient(140deg,#ffffff,#b96f89 55%,#ffffff);
  --ring-sh:0 0 40px rgba(59,22,36,.18);
  --av-bg:linear-gradient(150deg,#5a2a3c,#3b1624);
  --av-bd:#e2a3b9;
  --av-fg:#ffffff;
  --tl:rgba(59,22,36,.25);
  --dot-halo:rgba(59,22,36,.12);
  --icon-bg:rgba(59,22,36,.1);
  --icon-bd:rgba(255,255,255,.42);
  --g1:radial-gradient(closest-side,rgba(255,255,255,.4),transparent);
  --g2:radial-gradient(closest-side,rgba(184,106,133,.5),transparent);
  --g3:radial-gradient(closest-side,rgba(255,255,255,.3),transparent);
  --g4:radial-gradient(closest-side,rgba(168,85,114,.5),transparent);
}

/* ---------- soft glow blobs (gradients, not blur filters: cheap on phones) ---------- */
.nv-glow{ position:absolute; border-radius:50%; pointer-events:none; }
.nv-glow.g1{ top:-200px; left:-200px; width:560px; height:560px; background:var(--g1); }
.nv-glow.g2{ top:60px; right:-260px; width:520px; height:520px; background:var(--g2); }
.nv-glow.g3{ top:620px; left:-280px; width:540px; height:540px; background:var(--g3); }
.nv-glow.g4{ bottom:-260px; right:-200px; width:560px; height:560px; background:var(--g4); }

.nv-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  width:100%;
  max-width:420px;
  margin:0 auto;
  padding:60px 20px 36px;
}

/* ---------- header ---------- */
.nv-ring{
  width:116px; height:116px; border-radius:50%;
  padding:3px;
  background:var(--ring);
  box-shadow:var(--ring-sh);
}
.nv-avatar{
  width:100%; height:100%; border-radius:50%;
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:var(--av-bg);
  color:var(--av-fg);
  border:3px solid var(--av-bd);
  font-size:34px; font-weight:600; letter-spacing:-.02em;
}
.nv-avatar img{ width:100%; height:100%; object-fit:cover; display:block; }

.nv-name{
  margin:22px 0 8px;
  font-size:32px; font-weight:600; letter-spacing:-.03em; line-height:1.1;
  text-align:center; overflow-wrap:anywhere;
}
.nv-bio{
  margin:0 0 26px;
  max-width:300px;
  font-size:15px; line-height:1.55; color:var(--fg2);
  text-align:center; white-space:pre-wrap; overflow-wrap:anywhere;
}
.nv-bio:empty{ display:none; }
.nv-name + .nv-bio:empty + .nv-save{ margin-top:12px; }

.nv-save{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  height:50px; padding:0 26px;
  border-radius:999px;
  background:var(--btn); color:var(--btn-fg);
  font-size:15px; font-weight:600;
  box-shadow:var(--btn-sh);
  text-decoration:none;
  transition:transform .12s ease;
}
.nv-save:active{ transform:scale(.97); }
.nv-save svg{ width:18px; height:18px; }

/* ---------- glass blocks ---------- */
.nv-glass{
  width:100%;
  border-radius:24px;
  background:var(--glass);
  border:1px solid var(--glass-bd);
  -webkit-backdrop-filter:blur(20px);
  backdrop-filter:blur(20px);
}

.nv-label{
  margin-bottom:18px;
  font-size:12px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color:var(--fg3);
}

/* ---------- education timeline ---------- */
.nv-edu{ margin-top:30px; padding:20px 20px 22px; }
.nv-tl{ padding-left:28px; }
.nv-tl-item{ position:relative; padding-bottom:24px; }
.nv-tl-item:last-child{ padding-bottom:0; }

.nv-tl-item::before{            /* dot */
  content:""; position:absolute; left:-28px; top:3px;
  width:14px; height:14px; border-radius:50%;
  background:transparent;
  border:2px solid var(--fg2);
}
.nv-tl-item:first-child::before{   /* current / top school = filled + accent */
  background:var(--accent);
  border:0;
  box-shadow:0 0 0 4px var(--dot-halo);
}
.nv-tl-item:not(:last-child)::after{   /* line down to next */
  content:""; position:absolute; left:-22px; top:20px; bottom:-4px;
  width:2px; background:var(--tl);
}

.nv-school{
  font-size:16px; font-weight:600; letter-spacing:-.02em; line-height:1.3;
  overflow-wrap:anywhere;
}
.nv-block{ margin-top:5px; font-size:13px; font-weight:500; color:var(--fg3); overflow-wrap:anywhere; }
.nv-chips{ display:flex; flex-wrap:wrap; gap:6px; margin-top:9px; }
.nv-chip{
  font-size:12px; font-weight:600;
  padding:5px 11px; border-radius:999px;
  background:var(--chip); border:1px solid var(--chip-bd); color:var(--chip-fg);
}

/* ---------- gallery ---------- */
.nv-gal{
  width:100%; margin-top:14px;
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px;
}
.nv-gal-item{
  aspect-ratio:1; border-radius:18px; overflow:hidden;
  border:1px solid var(--glass-bd);
  background:var(--glass);
  cursor:zoom-in;
  -webkit-tap-highlight-color:transparent;
}
.nv-gal-item img{ width:100%; height:100%; object-fit:cover; display:block; }

/* ---------- links ---------- */
.nv-links{ width:100%; margin-top:14px; display:flex; flex-direction:column; gap:10px; }
.nv-link{
  display:flex; align-items:center; gap:14px;
  min-height:64px; padding:10px 18px 10px 12px;
  border-radius:22px;
  background:var(--glass); border:1px solid var(--glass-bd);
  -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px);
  color:inherit; text-decoration:none;
  transition:transform .12s ease;
}
a.nv-link:active, .nv-link.nv-copy:active{ transform:scale(.985); }
.nv-copy{ cursor:pointer; -webkit-tap-highlight-color:transparent; }
.nv-icon{
  width:42px; height:42px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background:var(--icon-bg); border:1px solid var(--icon-bd);
}
.nv-icon svg{ width:20px; height:20px; }
.nv-ltext{ flex:1; min-width:0; }
.nv-ltitle{ font-size:15px; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nv-lsub{ font-size:12.5px; color:var(--fg3); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nv-arrow{ flex-shrink:0; width:18px; height:18px; color:var(--fg3); }
.nv-arrow svg{ width:18px; height:18px; display:block; }

/* ---------- footer ---------- */
.nv-foot{
  margin-top:34px; display:flex; gap:16px; flex-wrap:wrap; justify-content:center;
  font-size:12px; color:var(--fg4);
}
.nv-foot a{ color:inherit; text-decoration:none; }
.nv-foot a.nv-owner{ text-decoration:underline; }

/* =========================================================
   v2 additions: taps/streak pills, song, tapped-by wall, Say hi sheet
========================================================= */

.nv-pills{ display:flex; flex-wrap:wrap; justify-content:center; gap:10px; margin:-6px 0 22px; }
.nv-pill{
  display:inline-flex; align-items:center; gap:8px;
  height:38px; padding:0 15px; border-radius:999px;
  background:var(--chip); border:1px solid var(--glass-bd);
  font-size:13px; font-weight:600; color:var(--fg);
}
.nv-pill svg{ width:16px; height:16px; flex-shrink:0; }

/* song */
.nv-song{
  margin-top:22px; padding:10px 14px 10px 10px; border-radius:22px;
  display:flex; align-items:center; gap:12px;
}
.nv-art{
  width:48px; height:48px; border-radius:14px; flex-shrink:0;
  background:linear-gradient(135deg,var(--fg4),var(--accent));
}
.nv-stext{ flex:1; min-width:0; }
.nv-stitle{ font-size:14.5px; font-weight:600; letter-spacing:-.01em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nv-sartist{ font-size:12.5px; color:var(--fg3); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nv-eq{ display:flex; align-items:flex-end; gap:2px; height:24px; flex-shrink:0; }
.nv-eq span{ width:3px; border-radius:2px; background:var(--accent); }
.nv-play{
  width:42px; height:42px; border-radius:50%; border:0; flex-shrink:0;
  background:var(--accent); color:var(--btn-fg, #111);
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.nv[data-theme="black"] .nv-play{ color:#111; }
.nv[data-theme="white"] .nv-play{ color:#fff; }
.nv[data-theme="pink"] .nv-play{ color:#3b1624; }
.nv-play svg{ width:18px; height:18px; }
.nv-songframe{ width:100%; margin-top:10px; border-radius:18px; overflow:hidden; }
.nv-songframe iframe{ display:block; width:100%; border:0; }
.nv-songframe[data-kind="youtube"] iframe{ aspect-ratio:16/9; height:auto; }

/* tapped-by wall */
.nv-wall{ margin-top:14px; padding:20px 20px 20px; }
.nv-wall-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
.nv-total{ font-size:12px; font-weight:600; color:var(--fg2); }
.nv-note{ display:flex; align-items:center; gap:12px; padding:13px 0; }
.nv-note + .nv-note{ border-top:1px solid var(--glass-bd); }
.nv-nav{
  width:38px; height:38px; border-radius:50%; flex-shrink:0;
  background:var(--chip); display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700;
}
.nv-ntext{ flex:1; min-width:0; }
.nv-nname{ font-size:14.5px; font-weight:600; }
.nv-nbody{ font-size:13px; color:var(--fg2); margin-top:1px; overflow-wrap:anywhere; }
.nv-ntime{ font-size:12px; color:var(--fg4); flex-shrink:0; }
.nv-notebtn{
  width:100%; height:48px; margin-top:8px; border-radius:16px;
  background:transparent; border:1px solid var(--glass-bd);
  color:var(--fg); font-size:14.5px; font-weight:600; font-family:inherit; cursor:pointer;
}
.nv-notebtn:active{ transform:scale(.985); }

/* Say hi sheet */
.nv-sheet{
  position:fixed; inset:0; z-index:1000;
  display:flex; align-items:flex-end; justify-content:center;
  background:rgba(0,0,0,.5);
  -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px);
}
.nv-sheet[hidden]{ display:none; }
.nv-sheet-card{
  position:relative; width:100%; max-width:460px;
  background:var(--sheet-bg, #111); color:var(--fg);
  border-radius:26px 26px 0 0; padding:12px 22px calc(26px + env(safe-area-inset-bottom,0px));
  border:1px solid var(--glass-bd); border-bottom:0;
  animation:nvUp .28s cubic-bezier(.2,.9,.3,1.1);
}
.nv[data-theme="white"] .nv-sheet-card{ --sheet-bg:#ffffff; }
.nv[data-theme="pink"]  .nv-sheet-card{ --sheet-bg:#e9b4c6; }
@keyframes nvUp{ from{ transform:translateY(40px); opacity:0 } to{ transform:none; opacity:1 } }
.nv-handle{ width:38px; height:5px; border-radius:3px; background:var(--glass-bd); margin:0 auto 16px; }
.nv-sheet-t{ margin:0 0 6px; font-size:22px; font-weight:600; letter-spacing:-.02em; }
.nv-sheet-sub{ margin:0 0 16px; font-size:14px; color:var(--fg2); line-height:1.5; }
.nv-sheet-x{
  position:absolute; top:14px; right:16px; width:34px; height:34px; border-radius:50%;
  border:0; background:var(--chip); color:var(--fg); font-size:20px; line-height:1; cursor:pointer;
}
.nv-ta{
  width:100%; min-height:96px; resize:none; padding:14px;
  border-radius:16px; border:1px solid var(--glass-bd);
  background:var(--chip); color:var(--fg);
  font-size:15px; font-weight:500; line-height:1.45; font-family:inherit; outline:none;
}
.nv-ta::placeholder{ color:var(--fg3); }
.nv-count{ margin:6px 2px 14px; font-size:12px; color:var(--fg3); text-align:right; }
.nv-big{
  width:100%; height:50px; border-radius:999px; border:0; cursor:pointer;
  background:var(--btn); color:var(--btn-fg);
  font-size:15px; font-weight:600; font-family:inherit;
}
.nv-big[disabled]{ opacity:.5; cursor:default; }
.nv-msg{ min-height:18px; margin-top:12px; font-size:13px; text-align:center; color:var(--fg2); }
.nv-done{ text-align:center; padding:8px 0 4px; }
.nv-done b{ display:block; font-size:18px; margin-bottom:6px; }

/* ---------- payments ---------- */
.nv-pay{ margin-top:14px; padding:20px 20px 18px; }
.nv-pay-item{ padding:14px 0; border-top:1px solid var(--glass-bd); }
.nv-label + .nv-pay-item{ border-top:0; padding-top:0; }
.nv-pay-top{ display:flex; align-items:center; gap:12px; }
.nv-pay-badge{ width:40px; height:40px; border-radius:12px; display:grid; place-items:center; color:#fff; font-weight:700; font-size:14px; letter-spacing:-.02em; flex:none; }
.nv-pay-title{ font-size:16px; font-weight:600; letter-spacing:-.02em; }
.nv-pay-name{ font-size:13px; color:var(--fg2); margin-top:1px; overflow-wrap:anywhere; }
.nv-pay-num{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin-top:12px; padding:13px 16px; border-radius:16px; border:1px solid var(--glass-bd); background:var(--glass); color:inherit; font:inherit; font-size:17px; font-weight:600; letter-spacing:.02em; font-variant-numeric:tabular-nums; cursor:pointer; text-align:left; }
.nv-pay-num span{ overflow-wrap:anywhere; }
.nv-pay-num b{ font-size:12.5px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--fg2); flex:none; }
.nv-pay-qrbtn{ width:100%; margin-top:10px; padding:12px; border-radius:16px; border:1px solid var(--glass-bd); background:transparent; color:inherit; font:inherit; font-size:14.5px; font-weight:600; cursor:pointer; }
.nv-pay-qr{ margin-top:12px; padding:14px; background:#fff; border-radius:20px; text-align:center; }
.nv-pay-qr[hidden]{ display:none; }
.nv-pay-qr img{ width:100%; max-width:280px; height:auto; display:block; margin:0 auto; border-radius:8px; }
.nv-pay-note{ margin-top:6px; font-size:12px; color:var(--fg3); line-height:1.5; }
