/* Creator portal: the same look as scrollyy.in (cream, ink, yellow, Figtree). Loaded after styles.css. */
.portal, .cauth {
  --bg: #FFFAF2; --card: #fff; --ink: #15151A; --muted: #6E6D6A; --faint: #9A968E;
  --line: #EFE5D6; --sel: #F6EFE3; --accent: #E8B004; --accent-deep: #A67A00; --accent-soft: #FFF1CC;
  --ok: #15803D; --err: #C7362B; --warn: #C97A05;
  --shadow: 0 1px 2px rgba(60,40,10,.05), 0 8px 24px rgba(60,40,10,.07);
  --radius: 22px;
  font-family: "Figtree", "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.portal { font-size: 15px; background: var(--bg); padding-bottom: 40px; }
.portal a { color: inherit; }
.portal :focus-visible, .cauth :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.portal h1, .portal h2 { letter-spacing: -.02em; }

/* buttons and fields */
.portal .btn.primary, .cauth .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 11px 20px; }
.portal .btn.primary:hover, .cauth .btn.primary:hover { background: #F0C441; border-color: #F0C441; }
.pghost { border: 0; background: rgba(21,21,26,.06); color: var(--ink); font: inherit; font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.pghost:hover { background: rgba(21,21,26,.11); }
.pghost.dark { background: var(--sel); }
.portal label.f, .cauth label.f { font-size: 13px; font-weight: 600; color: var(--ink); }
.portal label.f input, .portal label.f select, .portal label.f textarea,
.cauth label.f input { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: inherit; font-weight: 400; width: 100%; margin-top: 6px; }
.portal label.f textarea { display: block; resize: vertical; }
.portal label.f input:focus, .portal label.f select:focus, .portal label.f textarea:focus,
.cauth label.f input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.portal .sel select { border-radius: 999px; border-color: var(--line); padding: 10px 38px 10px 16px; font-weight: 600; font-size: 14px; }

/* top bar */
.pnav { position: sticky; top: 12px; z-index: 20; max-width: 1120px; margin: 12px auto 0; padding: 0 16px; }
.pnav__in { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px 8px 22px; box-shadow: var(--shadow); }
.pnav .slogo { color: var(--ink); }
.ptabs { display: flex; gap: 2px; margin: 0 auto; }
.ptabs a { display: flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); }
.ptabs a:hover { color: var(--ink); }
.ptabs a.on { background: var(--ink); color: #fff; }
.ptabs svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pnav__me { display: flex; align-items: center; gap: 8px; }

/* avatars */
.pavatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: var(--accent); color: var(--ink); font-weight: 800; }
.pavatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pavatar.sm { width: 34px; height: 34px; font-size: 13px; }
.pavatar.lg { width: 74px; height: 74px; font-size: 26px; box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
.pavatar.xl { width: 104px; height: 104px; font-size: 36px; }

/* page */
.pshell { max-width: 1120px; margin: 0 auto; padding: 18px 16px 0; }
.pshell main { display: grid; gap: 16px; }
.pshell main[hidden] { display: none; }

.phero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 30px 32px; border-radius: 28px; background: var(--ink); color: #fff; }
.phero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(232,176,4,.32), rgba(232,176,4,0) 68%); pointer-events: none; }
.phero > * { position: relative; z-index: 1; }
.phero__who { display: flex; align-items: center; gap: 18px; min-width: 0; }
.phero h1 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.phandles { display: flex; flex-wrap: wrap; gap: 6px; }
.phandle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 13px; font-weight: 500; max-width: 100%; }
.phero__num { display: grid; justify-items: end; gap: 2px; }
.phero__num.left { justify-items: start; }
.plabel { color: rgba(255,255,255,.68); font-size: 14px; font-weight: 500; }
.phero__num b, #payHero b { display: block; font-size: clamp(42px, 7vw, 64px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
#payHero .also { font-size: 22px; letter-spacing: -.01em; color: rgba(255,255,255,.8); }
.pgain { margin-top: 6px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 13px; }
.pgain:empty { display: none; }
.payside { display: flex; gap: 28px; }
.payside div { display: grid; gap: 2px; }
.payside b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.payside span { color: rgba(255,255,255,.68); font-size: 13px; }

.pfilters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pupdated { margin-left: auto; color: var(--muted); font-size: 13px; }
.pfilters .pupdated:only-of-type { max-width: 640px; }

.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ptile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); min-width: 0; }
.ptile span { color: var(--muted); font-size: 13px; font-weight: 500; }
.ptile b { display: block; margin-top: 6px; font-size: 30px; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ptile small { color: var(--faint); font-size: 12px; }

.pcols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.pbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); min-width: 0; }
.phead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.phead h2 { margin: 0; font-size: 18px; font-weight: 700; }
.phead p, .pphoto p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.pbig { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }

.pbars { display: flex; align-items: flex-end; gap: 3px; height: 170px; }
.pbars i { flex: 1; min-height: 3px; background: var(--accent); border-radius: 5px 5px 2px 2px; transition: background .15s; }
.pbars i.zero { background: var(--sel); }
.pbars i:hover { background: var(--ink); }
.pbars__axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--faint); font-size: 12px; }

.pplat { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 10px 0; font-weight: 600; }
.pplat em { font-style: normal; display: flex; align-items: center; gap: 8px; }
.pplat .track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--sel); overflow: hidden; }
.pplat .track i { display: block; height: 100%; border-radius: 99px; background: var(--ink); }
.portal .pico { width: 22px; height: 22px; border-radius: 7px; font-size: 10px; }
.phandle .pico { width: 20px; height: 20px; border-radius: 50%; }

.ppost { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.ppost .kv { display: grid; }
.ppost .kv b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ppost .kv span { color: var(--muted); font-size: 12px; }
.ppost .kv b.good { color: var(--ok); } .ppost .kv b.mid { color: var(--warn); } .ppost .kv b.bad { color: var(--err); }
.pdays { margin-top: 16px; }
.pdays .strip14 { gap: 5px; flex-wrap: wrap; }
.pdays .hs { width: 18px; height: 18px; border-radius: 6px; }
.pdays p { margin: 8px 0 0; color: var(--faint); font-size: 12px; }

.pvideos { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 14px; }
.pvideos .vcard { width: auto; color: var(--ink); }
.pvideos .thumb { border-radius: 16px; }
.pvideos .vcard:hover .thumb { outline-color: var(--accent); }
.pmore { display: flex; justify-content: center; margin-top: 16px; }
.pmore:has(> [hidden]) { display: none; }
.pempty { padding: 36px 16px; text-align: center; color: var(--muted); }

.portal .thumb { background: linear-gradient(160deg, #FFF1CC, #FFFAF2 60%, #F6EFE3); }
.portal .thumb .ph { color: var(--accent-deep); opacity: .7; }

/* payouts */
.pmoney { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pmoney div { background: var(--bg); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.pmoney b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pmoney span { color: var(--muted); font-size: 13px; }
.pmoney .hot { background: var(--accent-soft); }
.psplit { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.pdetails { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pdetails summary { cursor: pointer; font-weight: 600; }
.pdetails summary:hover { color: var(--accent-deep); }
.pdetails .tbl { margin-top: 8px; font-size: 14px; }
.pdetails .tbl a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }

/* profile */
.pphoto { display: flex; align-items: center; gap: 22px; }
.pphoto h2 { margin: 0; font-size: 22px; font-weight: 800; }
.pphoto__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pfile { cursor: pointer; }
.pfile input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pfile:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.pform { display: grid; gap: 14px; }
.pform .phead { margin-bottom: 0; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.psoc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.psoc span:first-child { display: flex; align-items: center; gap: 10px; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.psoc .acts { display: flex; align-items: center; gap: 6px; }
.padd { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.padd input { flex: 1 1 200px; min-width: 0; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; font: inherit; background: #fff; }
.padd input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.portal .badge.ok { background: #E7F6EC; color: var(--ok); }
.portal .badge.pend { background: var(--accent-soft); color: var(--accent-deep); }

/* loading */
.pskeleton { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pskeleton[hidden] { display: none; }
.pskeleton i { height: 104px; border-radius: 22px; background: linear-gradient(100deg, var(--sel) 30%, #FFF8EC 50%, var(--sel) 70%); background-size: 200% 100%; animation: pshine 1.3s linear infinite; }
.pskeleton .tall { grid-column: 1 / -1; height: 170px; border-radius: 28px; }
@keyframes pshine { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .pskeleton i { animation: none; } }

/* login, set password, sign up */
.cauth { min-height: 100vh; display: grid; place-items: center; padding: 20px 16px; background: radial-gradient(640px 420px at 85% -10%, rgba(232,176,4,.26), transparent 70%), #15151A; color: var(--ink); }
.cauth .box { width: 100%; max-width: 400px; }
.cauth .slogo { display: flex; justify-content: center; font-size: 30px; margin-bottom: 6px; }
.cauth .lead { text-align: center; color: rgba(255,255,255,.7); font-size: 16px; margin: 0 0 22px; }
.cauth .card { display: grid; gap: 14px; padding: 26px; border: 0; border-radius: 24px; }
.cauth .card[hidden] { display: none; }
.cauth .btn { justify-content: center; }
.cauth input[readonly] { color: var(--muted); background: var(--bg); }
.cauth a:not(.btn) { color: var(--accent-deep); font-weight: 600; }

.pnew { margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.cauth__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.plink { border: 0; background: none; padding: 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-deep); cursor: pointer; justify-self: center; }
.plink:hover { text-decoration: underline; }

/* phones: the tabs become an app-style bottom bar */
@media (max-width: 760px) {
  .portal { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .pnav { top: 8px; margin-top: 8px; padding: 0 10px; }
  /* backdrop-filter would pin the fixed bottom bar inside this element */
  .pnav__in { padding: 6px 8px 6px 18px; justify-content: space-between; background: #fff; backdrop-filter: none; }
  .ptabs { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); margin: 0; justify-content: space-around; background: rgba(21,21,26,.96); border-radius: 22px; padding: 6px; box-shadow: 0 10px 30px rgba(20,12,0,.28); }
  .ptabs a { flex: 1; flex-direction: column; gap: 2px; padding: 7px 4px; font-size: 12px; color: rgba(255,255,255,.66); border-radius: 16px; }
  .ptabs a:hover { color: #fff; }
  .ptabs a.on { background: var(--accent); color: var(--ink); }
  .pshell { padding: 12px 10px 0; }
  .phero { padding: 22px 20px; border-radius: 24px; }
  .phero__num { justify-items: start; width: 100%; }
  .pavatar.lg { width: 58px; height: 58px; font-size: 21px; }
  .ptiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcols { grid-template-columns: minmax(0, 1fr); }
  .pbox { padding: 18px; }
  .pgrid { grid-template-columns: minmax(0, 1fr); }
  .pmoney { grid-template-columns: minmax(0, 1fr); }
  .pmoney div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .pmoney b { font-size: 20px; order: 2; }
  .pfilters .sel { flex: 1 1 140px; }
  .pfilters .sel select { width: 100%; max-width: none; }
  .pupdated { margin-left: 0; flex-basis: 100%; }
  .pvideos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pphoto { flex-direction: column; align-items: flex-start; }
  .pskeleton { grid-template-columns: repeat(2, 1fr); }
}
