/* ============================================================
   page.css — content styles for the non-app pages.
   Loaded only with shell.css. Everything is namespaced `pg-` so it cannot
   collide with the legacy stylesheets (that collision is what broke the shell
   and the editor timeline before).
   ============================================================ */

.pg{
  --ink:#fff;
  --ink2:#b7b7bd;
  --ink3:#87878f;
  --ink4:#5d5d67;
  --bg1:rgba(18, 18, 28, 0.85);
  --bg2:rgba(24, 24, 38, 0.90);
  --bg3:rgba(32, 32, 48, 0.95);
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.22);
  --display:"Space Grotesk","Inter",system-ui,sans-serif;

  width:100%;
  max-width:1080px;
  margin:0 auto;
  padding:34px 26px 80px;
  color:var(--ink);
}
.pg *,.pg *::before,.pg *::after{box-sizing:border-box}
.pg a{color:inherit}
.pg :focus-visible:not(input):not(textarea):not(select){outline:2px solid #fff;outline-offset:2px;border-radius:6px}

/* ── page head ─────────────────────────────────────────── */
.pg-head{padding:14px 0 30px;border-bottom:1px solid var(--line);margin-bottom:34px}
.pg-eyebrow{
  display:inline-block;margin-bottom:14px;
  font-size:11px;font-weight:650;letter-spacing:.2em;text-transform:uppercase;
  color:var(--ink4);
}
.pg-head h1{
  margin:0 0 12px;
  font-family:var(--display);
  font-size:clamp(30px,4.6vw,50px);line-height:1.06;letter-spacing:-.02em;font-weight:650;
}
.pg-head > p{margin:0;max-width:62ch;font-size:16px;line-height:1.6;color:var(--ink2)}

/* ── sections ──────────────────────────────────────────── */
.pg-sec{margin:52px 0 0}
.pg-sec > h2{
  margin:0 0 20px;
  font-family:var(--display);
  font-size:clamp(21px,2.6vw,28px);line-height:1.18;letter-spacing:-.015em;font-weight:620;
}

/* ── prose ─────────────────────────────────────────────── */
.pg-prose{max-width:74ch}
.pg-prose h2{margin:38px 0 14px}
.pg-prose h2:first-child{margin-top:0}
.pg-prose h3{margin:26px 0 10px;font-size:17px;font-weight:640}
.pg-prose p{margin:0 0 14px;font-size:15.5px;line-height:1.72;color:var(--ink2)}
.pg-prose li{margin:0 0 9px;font-size:15.5px;line-height:1.68;color:var(--ink2)}
.pg-prose ul,.pg-prose ol{margin:0 0 16px;padding-left:22px}
.pg-prose strong{color:#fff;font-weight:620}
.pg-prose em{color:var(--ink)}
.pg-prose a{text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:3px}
.pg-prose a:hover{text-decoration-color:#fff}
.pg-legal h2{
  padding-top:22px;border-top:1px solid var(--line);
}
.pg-legal h2:first-child{padding-top:0;border-top:0}

/* ── cards ─────────────────────────────────────────────── */
.pg-grid{display:grid;gap:14px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.pg-card{
  padding:20px;border:1px solid var(--line);border-radius:16px;
  background:linear-gradient(180deg, rgba(22, 22, 34, 0.85) 0%, rgba(12, 12, 18, 0.95) 100%);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  transition:transform .24s cubic-bezier(.16,1,.3,1), border-color .2s ease, box-shadow .24s ease;
}
.pg-card:hover{
  transform:translateY(-4px);
  border-color:rgba(160, 140, 255, 0.35);
  box-shadow:0 16px 36px rgba(0,0,0,.7), 0 0 24px rgba(118,87,255,.14);
}
.pg-card h3{margin:0 0 8px;font-size:16px;font-weight:640}
/* overflow-wrap so a long email or handle wraps instead of spilling out */
.pg-card p{margin:0;font-size:14px;line-height:1.62;color:var(--ink2);overflow-wrap:anywhere}
.pg-card a{text-decoration:underline;text-decoration-color:var(--line2);text-underline-offset:3px}

/* ── buttons ───────────────────────────────────────────── */
.pg-bw,.pg-bo{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:44px;padding:0 22px;border-radius:999px;
  font-size:14.5px;font-weight:650;text-decoration:none;cursor:pointer;
  font-family:inherit;
  transition:transform .18s cubic-bezier(.16,1,.3,1), box-shadow .18s ease, opacity .18s ease;
}
.pg-bw{
  position:relative;
  overflow:hidden;
  background:#fff;color:#000;border:1px solid #fff;
  box-shadow:0 4px 14px rgba(255,255,255,.2);
}
.pg-bw::after{
  content:"";
  position:absolute;top:-50%;left:0;
  width:40%;height:200%;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.4),transparent);
  animation:pgBtnShine 4.5s cubic-bezier(.16,1,.3,1) infinite;
  pointer-events:none;
  will-change:transform;
}
/* Animating `left` re-runs layout on every frame of an infinite loop, on every
   white button on the page. translateX composites on the GPU instead and looks
   identical. */
@keyframes pgBtnShine{
  0%,65%{transform:translateX(-160%) rotate(25deg)}
  100%  {transform:translateX(350%) rotate(25deg)}
}
/* shell.css sets `body.sh-body{color:#fff !important}` plus
   `body.sh-body a{color:inherit}` — that selector outranks a single class, so an
   <a class="pg-bw"> came out white-on-white. Raise specificity for links. */
.pg a.pg-bw,.pg button.pg-bw{color:#000}
.pg a.pg-bo,.pg button.pg-bo{color:#fff}
.pg-bw:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 8px 22px rgba(255,255,255,.32);opacity:.95}
.pg-bo{background:none;color:#fff;border:1px solid var(--line2)}
.pg-bo:hover:not(:disabled){transform:translateY(-1px);border-color:#fff;background:var(--bg2)}
.pg-bw:disabled,.pg-bo:disabled{opacity:.45;cursor:not-allowed;transform:none;box-shadow:none}
.pg-sm{height:34px;padding:0 14px;font-size:13px}
.pg-row{display:flex;flex-wrap:wrap;gap:12px}

/* ── plans ─────────────────────────────────────────────── */
.pg-plans{display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
.pg-plans3{grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.pg-center{text-align:center;margin-top:14px}
.pg-plan{
  display:flex;flex-direction:column;
  padding:26px;border:1px solid var(--line);border-radius:18px;background:var(--bg1);
  transition:transform .25s cubic-bezier(.16,1,.3,1), border-color .25s ease, box-shadow .25s ease;
}
.pg-plan:hover{
  transform:translateY(-5px);
  border-color:rgba(255,255,255,.3);
  box-shadow:0 24px 60px rgba(0,0,0,.7), 0 0 25px rgba(118,87,255,.14);
}
.pg-plan.pg-hot{border-color:rgba(118,87,255,.4);background:linear-gradient(180deg,rgba(118,87,255,.08) 0%,var(--bg2) 30%);box-shadow:0 22px 60px rgba(0,0,0,.6),0 0 30px rgba(118,87,255,.15)}
.pg-tier{
  font-size:11px;font-weight:650;letter-spacing:.16em;text-transform:uppercase;color:var(--ink4);
}
.pg-amt{
  margin:12px 0 4px;font-family:var(--display);
  font-size:42px;line-height:1;letter-spacing:-.02em;font-weight:660;
  display:flex;align-items:baseline;flex-wrap:wrap;gap:4px;
}
.pg-amt .pg-orig{
  font-size:22px;color:var(--ink4);text-decoration:line-through;margin-right:4px;font-weight:400;
}
.pg-amt small{font-size:15px;font-weight:500;color:var(--ink3);letter-spacing:0}
.pg-disc-badge{
  display:inline-flex;align-items:center;padding:4px 10px;margin:8px 0 12px;border-radius:6px;
  background:rgba(52,209,122,.14);border:1px solid rgba(52,209,122,.35);
  color:#34d17a;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
}
.pg-planline{margin:0 0 16px;font-size:13.5px;color:var(--ink3)}
.pg-plan ul{margin:0 0 22px;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.pg-plan li{
  position:relative;padding-left:24px;font-size:14.5px;line-height:1.5;color:var(--ink2);
}
.pg-plan li::before{
  content:"";position:absolute;left:4px;top:6px;width:9px;height:5px;
  border-left:1.8px solid #fff;border-bottom:1.8px solid #fff;transform:rotate(-45deg);
}
.pg-plan .pg-bw,.pg-plan .pg-bo{margin-top:auto;width:100%}
.pg-fine{margin:12px 0 0;font-size:12px;line-height:1.5;color:var(--ink4)}

/* ── launch offer + checkout ───────────────────────────── */
.pg-plan.pg-max{
  border-color:rgba(245,180,60,.42);
  background:linear-gradient(180deg,rgba(245,180,60,.09) 0%,var(--bg2) 32%);
  box-shadow:0 22px 60px rgba(0,0,0,.6),0 0 30px rgba(245,180,60,.14);
}
.pg-offer{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  margin:0 0 22px;padding:14px 18px;border-radius:14px;
  border:1px solid rgba(245,180,60,.36);
  background:linear-gradient(90deg,rgba(245,180,60,.13) 0%,rgba(245,180,60,.04) 100%);
}
.pg-offer[hidden]{display:none}
.pg-offer p{margin:0;font-size:14px;line-height:1.5;color:var(--ink2)}
.pg-offer b{color:#fff}
.pg-offer-tag{
  flex:none;padding:5px 11px;border-radius:999px;
  background:rgba(245,180,60,.2);border:1px solid rgba(245,180,60,.45);
  color:#f5b43c;font-size:11px;font-weight:750;letter-spacing:.14em;text-transform:uppercase;
}
#offerLeft{color:#f5b43c;font-weight:650}

button.pg-buy{font:inherit;cursor:pointer}
button.pg-buy[disabled]{opacity:.6;cursor:progress}

.pg-note{margin:14px 0 0;font-size:13.5px;line-height:1.5;color:var(--ink3);min-height:1.2em}
.pg-note.ok{color:#34d17a}
.pg-note.err{color:#ff6b6b}

/* ── account: creator profile ──────────────────────────── */
.pg-prof{
  display:flex;align-items:flex-start;gap:18px;flex-wrap:wrap;
  padding:22px;margin:0 0 26px;
  border:1px solid var(--line);border-radius:18px;background:var(--bg1);
}
.pg-prof-av{
  flex:none;width:64px;height:64px;border-radius:50%;
  display:grid;place-items:center;
  background:linear-gradient(140deg,#7952ff 0%,#4a2fd0 100%);
  color:#fff;font-weight:750;font-size:22px;letter-spacing:.02em;
}
.pg-prof-main{flex:1 1 240px;min-width:0}
.pg-prof-name{
  margin:0;font-family:var(--display);font-size:22px;font-weight:700;color:#fff;
  overflow-wrap:anywhere;
}
.pg-prof-handle{margin:2px 0 0;font-size:13.5px;color:var(--ink3);overflow-wrap:anywhere}
.pg-prof-bio{margin:10px 0 0;font-size:14px;line-height:1.55;color:var(--ink2)}
.pg-prof-bio:empty{display:none}
.pg-prof-links{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:12px}
.pg-prof-links a{font-size:13px;color:var(--ink2);text-decoration:underline;text-underline-offset:3px}
.pg-prof-links a:hover{color:#fff}
.pg-prof-links a[hidden]{display:none}
.pg-prof-stars{font-size:13px;color:#f5b43c}
.pg-prof-edit{flex:none;height:36px;padding:0 16px;font-size:13px}

/* ── account: sections ─────────────────────────────────── */
.pg-accsec{margin-top:36px;padding-top:26px;border-top:1px solid var(--line);scroll-margin-top:80px}
.pg-accsec-head{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  flex-wrap:wrap;margin-bottom:16px;
}
.pg-accsec-head h2{margin:0;font-family:var(--display);font-size:20px;font-weight:700;color:#fff}
.pg-accsec-btn{height:34px;padding:0 14px;font-size:12.5px;flex:none}
.pg-cardsub{margin:4px 0 0;font-size:12.5px;color:var(--ink4)}
.pg-cardlink{display:inline-block;margin-top:10px;font-weight:650;font-size:14px;color:#fff}
.pg-linkbtn{background:none;border:0;padding:0;cursor:pointer;font-family:inherit;text-align:left}
.pg-linkbtn:hover{text-decoration:underline;text-underline-offset:3px}
.pg-danger{color:#ff6b6b}

/* ── faq ───────────────────────────────────────────────── */
.pg-faq{display:flex;flex-direction:column;gap:8px}
.pg-faq details{border:1px solid var(--line);border-radius:12px;background:var(--bg1)}
.pg-faq summary{
  padding:15px 18px;cursor:pointer;font-size:15px;font-weight:600;list-style:none;
}
.pg-faq summary::-webkit-details-marker{display:none}
.pg-faq summary::after{content:"+";float:right;color:var(--ink3);font-weight:500}
.pg-faq details[open] summary::after{content:"–"}
.pg-faq p{margin:0;padding:0 18px 16px;font-size:14.5px;line-height:1.65;color:var(--ink2)}

/* ── closing cta ───────────────────────────────────────── */
.pg-cta{
  margin:60px 0 0;padding:40px 30px;text-align:center;
  border:1px solid var(--line);border-radius:20px;background:var(--bg1);
}
.pg-cta h2{
  margin:0 0 10px;font-family:var(--display);
  font-size:clamp(22px,3vw,32px);line-height:1.14;letter-spacing:-.02em;font-weight:640;
}
.pg-cta p{margin:0 0 22px;font-size:15px;color:var(--ink2)}
.pg-cta .pg-row{justify-content:center}

/* ── forms ─────────────────────────────────────────────── */
.pg-two{display:grid;gap:22px;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start}
.pg-form{display:flex;flex-direction:column;gap:16px}
.pg-f{display:flex;flex-direction:column;gap:7px;min-width:0}
.pg-f > label{font-size:13px;font-weight:600;color:var(--ink2)}
.pg-f > label span{font-weight:400;color:var(--ink4)}
.pg-f input,.pg-f select,.pg-f textarea{
  width:100%;padding:12px 13px;
  background:var(--bg2);border:1px solid var(--line);border-radius:10px;
  color:#fff;font-family:inherit;font-size:15px;outline:none;
}
.pg-f textarea{resize:vertical;line-height:1.6;min-height:120px}
.pg-f input:focus,.pg-f select:focus,.pg-f textarea:focus{border-color:var(--line2)}
.pg-f select{
  appearance:none;-webkit-appearance:none;cursor:pointer;
  background:var(--bg2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b7b7bd' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 11px center/14px 14px;
}
.pg-form .pg-bw{align-self:flex-start}
.pg-formnote{margin:0;min-height:20px;font-size:13.5px;color:var(--ink2)}
.pg-formnote[data-bad="1"]{color:#ff8b7a}
.pg-aside{display:flex;flex-direction:column;gap:12px}

/* ── seo tool ──────────────────────────────────────────── */
.pg-tool{border:1px solid var(--line);border-radius:18px;background:var(--bg1);overflow:hidden}
.pg-toolbar{
  display:flex;gap:12px;align-items:flex-end;
  padding:20px;border-bottom:1px solid var(--line);
}
.pg-grow{flex:1;min-width:0}
.pg-toolbar .pg-bw{flex:none}
.pg-tabs{display:flex;gap:4px;padding:12px 20px;overflow-x:auto;border-bottom:1px solid var(--line)}
.pg-tab{
  flex:none;height:34px;padding:0 14px;border-radius:999px;
  border:1px solid transparent;background:none;color:var(--ink3);
  font-family:inherit;font-size:13.5px;font-weight:600;cursor:pointer;white-space:nowrap;
}
.pg-tab:hover{color:#fff;background:var(--bg3)}
.pg-tab[aria-selected="true"]{background:#fff;color:#000}
.pg-outbar{
  display:flex;align-items:center;gap:12px;
  padding:14px 20px;border-bottom:1px solid var(--line);
}
.pg-outname{font-size:13px;font-weight:650;letter-spacing:.04em;color:var(--ink2)}
.pg-outacts{display:flex;gap:8px;margin-left:auto}
.pg-outbody{padding:20px;min-height:260px}
.pg-empty{margin:0;font-size:14px;color:var(--ink4)}
.pg-empty.bad{color:#ff6b6b}
/* headings the model emits as "=== TITLES ===" / "[HOOK]" */
.pg-outh{
  margin:22px 0 10px;font-family:var(--display);font-size:15px;font-weight:700;
  letter-spacing:.1em;text-transform:uppercase;color:#fff;
}
.pg-outh:first-child{margin-top:0}
.pg-outtag{
  margin:14px 0 6px;font-size:11.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;color:#7952ff;
}
.pg-outbody p{margin:0 0 6px;font-size:14.5px;line-height:1.65;color:var(--ink2)}
.pg-outbody br{line-height:.6}
.pg-outbody pre{
  margin:0;white-space:pre-wrap;word-break:break-word;
  font-family:inherit;font-size:15px;line-height:1.72;color:var(--ink2);
}
.pg-outbody h3{
  margin:22px 0 8px;font-size:12px;font-weight:650;letter-spacing:.16em;
  text-transform:uppercase;color:var(--ink4);
}
.pg-outbody h3:first-child{margin-top:0}
.pg-load{display:flex;align-items:center;gap:10px;font-size:14px;color:var(--ink2)}
.pg-load i{
  width:14px;height:14px;border-radius:50%;
  border:2px solid var(--line2);border-top-color:#fff;
  animation:pg-spin .8s linear infinite;
}
@keyframes pg-spin{to{transform:rotate(360deg)}}

/* ── 404 ───────────────────────────────────────────────── */
.pg-404{padding:60px 0;text-align:center}
.pg-404code{
  font-family:var(--display);font-size:clamp(72px,16vw,150px);line-height:1;
  font-weight:680;letter-spacing:-.04em;color:var(--bg3);
}
.pg-404 h1{
  margin:6px 0 12px;font-family:var(--display);
  font-size:clamp(24px,3.4vw,36px);letter-spacing:-.02em;font-weight:650;
}
.pg-404 p{margin:0 0 26px;font-size:15.5px;color:var(--ink2)}
.pg-404 .pg-row{justify-content:center}
.pg-404links{
  display:flex;flex-wrap:wrap;gap:18px;justify-content:center;
  margin-top:34px;padding-top:26px;border-top:1px solid var(--line);
  font-size:14px;
}
.pg-404links a{color:var(--ink3);text-decoration:underline;text-underline-offset:3px}
.pg-404links a:hover{color:#fff}

/* ── responsive ────────────────────────────────────────── */
@media (max-width:900px){
  .pg-two{grid-template-columns:1fr}
}
@media (max-width:620px){
  .pg{padding:24px 18px 64px}
  .pg-toolbar{flex-direction:column;align-items:stretch}
  .pg-toolbar .pg-bw{width:100%}
  .pg-cta{padding:30px 20px}
}
@media (prefers-reduced-motion:reduce){
  .pg-load i{animation-duration:.001ms}
}

/* ── narrow pages (auth, account) ───────────────────────── */
.pg-narrow{max-width:560px}
.pg-auth{margin-top:6px}
.pg-auth .pg-bw{width:100%}
.pg-auth .pg-fine a{color:#fff;text-decoration:underline;text-underline-offset:3px}

/* ── bare screens (log in / sign up): no chrome, just the task ─────── */
body.pg-bare{
  min-height:100dvh;
  display:grid;place-items:center;
  padding:28px 20px;
  background:#000;
}
.pg-screen{width:100%;max-width:420px;display:flex;flex-direction:column;gap:26px}
.pg-wordmark{
  display:inline-flex;align-items:center;gap:10px;align-self:center;
  color:#fff;text-decoration:none;font-family:"Space Grotesk","Inter",system-ui,sans-serif;
  font-size:19px;font-weight:650;letter-spacing:-.01em;
}
.pg-wordmark img{display:block;border-radius:7px}
.pg-wordmark i{font-style:normal;color:#8f8f98}
.pg-screen .pg{padding:0;max-width:none}
.pg-screen .pg-head{padding:0 0 22px;text-align:center}
.pg-screen .pg-head h1{font-size:clamp(25px,5.4vw,32px)}
.pg-screen .pg-head > p{margin-inline:auto}
.pg-screen .pg-form{
  padding:24px;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:#08080a;
}
.pg-screenfoot{display:flex;gap:18px;justify-content:center;font-size:12.5px}
.pg-screenfoot a{color:#5d5d67;text-decoration:none}
.pg-screenfoot a:hover{color:#fff}

/* ── Creator Profile & Account Hub (YouTube/Instagram Style) ─────── */
.cr-account-wrap{
  max-width:1040px;
  margin:0 auto;
  padding-bottom:40px;
}

/* Profile Banner / Header Card */
.cr-profile-hero{
  position:relative;
  background:linear-gradient(180deg, rgba(22,22,28,0.92) 0%, rgba(10,10,13,0.98) 100%);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:20px;
  padding:28px 32px;
  margin-bottom:20px;
  overflow:hidden;
  box-shadow:0 20px 40px rgba(0,0,0,0.6), 0 0 30px rgba(255,255,255,0.02);
}
.cr-profile-hero::before{
  content:"";
  position:absolute;
  top:-60px;
  right:-60px;
  width:260px;
  height:260px;
  background:radial-gradient(circle, rgba(255,0,0,0.15) 0%, rgba(188,24,136,0.10) 50%, transparent 70%);
  pointer-events:none;
}
.cr-profile-hero::after{
  content:"";
  position:absolute;
  bottom:-80px;
  left:20%;
  width:320px;
  height:200px;
  background:radial-gradient(circle, rgba(74,144,226,0.08) 0%, transparent 70%);
  pointer-events:none;
}

.cr-profile-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  position:relative;
  z-index:2;
}

.cr-avatar-row{
  display:flex;
  align-items:center;
  gap:22px;
  flex:1;
  min-width:280px;
}

/* Instagram / YouTube story glow ring around avatar */
.cr-avatar-ring{
  position:relative;
  width:88px;
  height:88px;
  flex-shrink:0;
  border-radius:50%;
  padding:3px;
  background:linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow:0 0 24px rgba(220,39,67,0.35);
  display:flex;
  align-items:center;
  justify-content:center;
}
.cr-avatar-inner{
  width:100%;
  height:100%;
  border-radius:50%;
  background:#0d0d10;
  border:2px solid #000;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--display);
  font-size:34px;
  font-weight:700;
  color:#fff;
  text-transform:uppercase;
  user-select:none;
}
.cr-online-dot{
  position:absolute;
  bottom:2px;
  right:2px;
  width:15px;
  height:15px;
  background:#00e676;
  border:3px solid #0d0d10;
  border-radius:50%;
  box-shadow:0 0 8px rgba(0,230,118,0.6);
}

.cr-profile-info{
  flex:1;
  min-width:0;
}
.cr-name-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.cr-name{
  margin:0;
  font-family:var(--display);
  font-size:clamp(22px, 3vw, 28px);
  font-weight:700;
  color:#fff;
  letter-spacing:-0.02em;
}
.cr-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.02em;
  text-transform:uppercase;
}
.cr-badge-verified{
  background:rgba(56,189,248,0.15);
  color:#38bdf8;
  border:1px solid rgba(56,189,248,0.3);
}
.cr-badge-verified svg{width:13px;height:13px}
.cr-badge-plan{
  background:rgba(255,255,255,0.08);
  color:#fff;
  border:1px solid rgba(255,255,255,0.18);
}

/* Stars Rating Button */
.cr-star-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:rgba(255,193,7,0.12);
  border:1px solid rgba(255,193,7,0.35);
  color:#ffc107;
  padding:4px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  transition:all .18s ease;
}
.cr-star-btn:hover{
  background:rgba(255,193,7,0.25);
  border-color:#ffc107;
  transform:scale(1.05);
  box-shadow:0 0 16px rgba(255,193,7,0.4);
}
.cr-star-btn.starred{
  background:#ffc107;
  color:#000;
}

.cr-meta-line{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  font-size:13.5px;
  color:var(--ink2);
  margin-bottom:8px;
}
.cr-handle{
  font-weight:600;
  color:#fff;
}
.cr-email{
  color:var(--ink3);
  font-size:13px;
}

.cr-bio{
  margin:0 0 12px;
  font-size:13.5px;
  line-height:1.5;
  color:var(--ink2);
  max-width:580px;
}

/* Connected Social Badges (YouTube & Instagram) */
.cr-social-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.cr-social-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:5px 12px;
  border-radius:8px;
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  transition:all 0.18s ease;
}
.cr-social-pill svg{width:15px;height:15px;flex-shrink:0}
.cr-social-pill.cr-yt{
  background:rgba(255,0,0,0.12);
  color:#ff5247;
  border:1px solid rgba(255,0,0,0.25);
}
.cr-social-pill.cr-yt:hover{
  background:rgba(255,0,0,0.24);
  border-color:rgba(255,0,0,0.6);
  color:#fff;
  transform:translateY(-2px);
}
.cr-social-pill.cr-ig{
  background:rgba(188,24,136,0.12);
  color:#f77737;
  border:1px solid rgba(188,24,136,0.25);
}
.cr-social-pill.cr-ig:hover{
  background:rgba(188,24,136,0.24);
  border-color:rgba(220,39,67,0.6);
  color:#fff;
  transform:translateY(-2px);
}

.cr-header-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.cr-header-actions .pg-bw,
.cr-header-actions .pg-bo{
  height:36px;
  padding:0 15px;
  font-size:13px;
}
.cr-logout-btn{
  color:var(--ink3) !important;
  border-color:var(--line) !important;
}
.cr-logout-btn:hover{
  color:#ff5d3b !important;
  border-color:rgba(255,93,59,0.35) !important;
  background:rgba(255,93,59,0.12) !important;
}

/* ── Creator Studio Insights / Stats ────────────────────────────── */
.cr-stats-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(200px, 1fr));
  gap:12px;
  margin-bottom:20px;
}
.cr-stat-card{
  background:#09090c;
  border:1px solid var(--line);
  border-radius:14px;
  padding:16px 18px;
  position:relative;
  transition:all 0.2s cubic-bezier(.16,1,.3,1);
  display:flex;
  flex-direction:column;
}
.cr-stat-card:hover{
  transform:translateY(-2px);
  border-color:var(--line2);
  box-shadow:0 8px 20px rgba(0,0,0,0.5);
}
.cr-stat-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
.cr-stat-title{
  font-size:11px;
  font-weight:650;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:var(--ink3);
}
.cr-stat-icon{
  width:26px;
  height:26px;
  border-radius:6px;
  background:rgba(255,255,255,0.05);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ink2);
}
.cr-stat-icon svg{width:14px;height:14px}
.cr-stat-val{
  font-family:var(--display);
  font-size:18px;
  font-weight:700;
  color:#fff;
  margin-bottom:2px;
  letter-spacing:-0.01em;
}
.cr-stat-sub{
  font-size:11.5px;
  color:var(--ink3);
  line-height:1.35;
  margin-top:auto;
}

/* Progress bar for daily credits */
.cr-credit-bar{
  width:100%;
  height:4px;
  background:rgba(255,255,255,0.08);
  border-radius:999px;
  overflow:hidden;
  margin:6px 0 4px;
}
.cr-credit-fill{
  height:100%;
  background:linear-gradient(90deg, #38ef7d 0%, #11998e 100%);
  border-radius:999px;
  width:100%;
  transition:width 0.4s ease;
}

/* ── Creator Creations & Templates Showcase ────────────────────── */
.cr-creations-sec{
  margin-top:24px;
  padding-top:24px;
  border-top:1px solid var(--line);
}
.cr-creations-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:18px;
}
.cr-creations-title{
  display:flex;
  align-items:center;
  gap:10px;
}
.cr-creations-title h2{
  margin:0;
  font-family:var(--display);
  font-size:21px;
  font-weight:700;
  color:#fff;
}
.cr-creations-count{
  padding:2px 10px;
  background:rgba(255,255,255,0.08);
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  color:var(--ink2);
}
.cr-creations-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(210px, 1fr));
  gap:20px;
}
.cr-cre-card{
  background:linear-gradient(180deg, #101014 0%, #08080a 100%);
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  transition:all .22s cubic-bezier(.16,1,.3,1);
}
.cr-cre-card:hover{
  transform:translateY(-4px);
  border-color:rgba(255,255,255,0.22);
  box-shadow:0 16px 36px rgba(0,0,0,0.7), 0 0 20px rgba(255,255,255,0.03);
}
.cr-cre-preview{
  position:relative;
  width:100%;
  aspect-ratio:9/16;
  background:#050507;
  overflow:hidden;
  border-bottom:1px solid var(--line);
}
.cr-cre-preview iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  pointer-events:none;
}
.cr-cre-body{
  padding:14px;
  display:flex;
  flex-direction:column;
  flex:1;
}
.cr-cre-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
}
.cr-cre-tag{
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  padding:2px 8px;
  border-radius:6px;
  background:rgba(255,255,255,0.06);
  color:var(--ink2);
}
.cr-cre-stats{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:var(--ink3);
}
.cr-cre-title{
  margin:0 0 4px;
  font-family:var(--display);
  font-size:15px;
  font-weight:700;
  color:#fff;
  line-height:1.3;
}
.cr-cre-desc{
  margin:0 0 12px;
  font-size:12px;
  color:var(--ink3);
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  flex:1;
}
.cr-cre-actions{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:auto;
}
.cr-cre-actions .pg-bw{
  flex:1;
  height:32px;
  font-size:11.5px;
  padding:0 10px;
  white-space:nowrap;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.cr-cre-actions .pg-bo{
  height:32px;
  width:32px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  border-radius:999px;
  flex-shrink:0;
}
.cr-cre-del{
  color:var(--ink3) !important;
}
.cr-cre-del:hover{
  color:#ff5d3b !important;
  border-color:rgba(255,93,59,0.3) !important;
  background:rgba(255,93,59,0.1) !important;
}

/* Empty State */
.cr-cre-empty{
  grid-column:1 / -1;
  background:rgba(255,255,255,0.02);
  border:1px dashed var(--line);
  border-radius:18px;
  padding:40px 24px;
  text-align:center;
}
.cr-cre-empty h3{
  margin:0 0 8px;
  font-size:18px;
  font-weight:700;
  color:#fff;
}
.cr-cre-empty p{
  margin:0 0 18px;
  font-size:14px;
  color:var(--ink3);
  max-width:440px;
  margin-inline:auto;
}

/* ── Guest State Card ─────────────────────────────────────────── */
.cr-guest-card{
  background:linear-gradient(180deg, #101014 0%, #08080a 100%);
  border:1px solid var(--line);
  border-radius:20px;
  padding:44px 32px;
  text-align:center;
  max-width:580px;
  margin:20px auto 0;
}
.cr-guest-avatar{
  width:68px;
  height:68px;
  border-radius:50%;
  background:rgba(255,255,255,0.06);
  border:1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 18px;
  color:var(--ink3);
}
.cr-guest-avatar svg{width:32px;height:32px}
.cr-guest-card h2{
  margin:0 0 10px;
  font-family:var(--display);
  font-size:24px;
  font-weight:700;
  color:#fff;
}
.cr-guest-card p{
  margin:0 0 22px;
  font-size:14.5px;
  line-height:1.6;
  color:var(--ink2);
}
.cr-guest-card .pg-row{
  justify-content:center;
  gap:12px;
}

@media (max-width: 680px) {
  .cr-profile-hero{padding:22px 18px}
  .cr-avatar-row{flex-direction:column;align-items:flex-start;gap:14px}
  .cr-header-actions{width:100%;margin-top:12px}
  .cr-header-actions .pg-bw, .cr-header-actions .pg-bo{flex:1;text-align:center}
}

/* ── Edit Profile Modal ────────────────────────────────────────── */
.cr-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:999;
  background:rgba(0,0,0,0.8);
  backdrop-filter:blur(10px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.cr-modal-backdrop[hidden]{
  display:none !important;
}
.cr-modal{
  background:linear-gradient(180deg, #15151a 0%, #0c0c0f 100%);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:20px;
  width:100%;
  max-width:540px;
  padding:28px 30px;
  box-shadow:0 24px 60px rgba(0,0,0,0.8), 0 0 30px rgba(255,255,255,0.04);
  position:relative;
  animation:cr-modal-pop .2s cubic-bezier(.16,1,.3,1);
}
@keyframes cr-modal-pop{
  from{transform:scale(0.95);opacity:0}
  to{transform:scale(1);opacity:1}
}
.cr-modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:20px;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.cr-modal-head h2{
  margin:0;
  font-family:var(--display);
  font-size:20px;
  font-weight:700;
  color:#fff;
}
.cr-modal-close{
  background:none;
  border:none;
  color:var(--ink3);
  font-size:22px;
  cursor:pointer;
  line-height:1;
  padding:4px 8px;
  border-radius:6px;
  transition:all .15s ease;
}
.cr-modal-close:hover{
  color:#fff;
  background:rgba(255,255,255,0.1);
}
.cr-modal .pg-form{
  padding:0;
  background:none;
  border:none;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.cr-modal .pg-f label{
  display:block;
  margin-bottom:6px;
  font-size:13px;
  font-weight:600;
  color:var(--ink2);
}
.cr-modal .pg-f input,
.cr-modal .pg-f textarea{
  width:100%;
  padding:10px 14px;
  background:#09090c;
  border:1px solid var(--line);
  border-radius:10px;
  color:#fff;
  font-family:inherit;
  font-size:14px;
  transition:border-color .15s ease;
}
.cr-modal .pg-f input:focus,
.cr-modal .pg-f textarea:focus{
  border-color:#fff;
  outline:none;
}
.cr-modal-btns{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  margin-top:10px;
}

/* ── page footer ───────────────────────────────────────── */
.sh-footer {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0;
  margin-top: auto;
}
.sh-footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.sh-footer-brand {
  max-width: 320px;
}
.sh-footer-brand p {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--ink3);
  line-height: 1.5;
}
.sh-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.sh-footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.sh-footer-links a:hover {
  color: #fff;
}
.sh-footer-copy {
  margin-top: 40px;
  font-size: 13px;
  color: var(--ink4);
}
@media (max-width: 620px) {
  .sh-footer-inner {
    flex-direction: column;
    gap: 24px;
  }
}
/* ============================================================
   Micro-interactions
   Every rule below animates only `transform`, `opacity`, `box-shadow` or
   `filter` — properties the compositor handles on the GPU. Nothing here
   animates width/height/top/left, so no rule can trigger layout on scroll and
   the page stays smooth on a phone. Everything is switched off under
   prefers-reduced-motion at the end of the file.
   ============================================================ */

/* Buttons: a small lift, and a press that actually feels pressed. */
.pg-bw, .pg-bo, button.pg-buy{
  transition:transform .18s cubic-bezier(.16,1,.3,1),
             box-shadow .18s ease,
             background-color .18s ease,
             border-color .18s ease;
}
.pg-bw:hover, .pg-bo:hover, button.pg-buy:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 26px rgba(0,0,0,.55);
}
.pg-bw:active, .pg-bo:active, button.pg-buy:active{
  transform:translateY(0) scale(.985);
  transition-duration:.06s;
}
button.pg-buy[disabled]{transform:none;box-shadow:none}

/* The paid plans are the page's job — give them a slow breathing glow so the
   eye lands there, and a firmer lift on hover. */
.pg-plan.pg-hot, .pg-plan.pg-max{position:relative}
.pg-plan.pg-hot:hover, .pg-plan.pg-max:hover{transform:translateY(-7px)}
.pg-plan.pg-max{animation:pgMaxGlow 4.5s ease-in-out infinite alternate}
@keyframes pgMaxGlow{
  from{box-shadow:0 22px 60px rgba(0,0,0,.6), 0 0 22px rgba(245,180,60,.10)}
  to  {box-shadow:0 22px 60px rgba(0,0,0,.6), 0 0 38px rgba(245,180,60,.26)}
}

/* Launch-offer banner: slides in once, then the tag pulses gently. */
.pg-offer{animation:pgOfferIn .5s cubic-bezier(.16,1,.3,1) both}
@keyframes pgOfferIn{
  from{opacity:0;transform:translateY(-8px)}
  to  {opacity:1;transform:none}
}
.pg-offer-tag{animation:pgTagPulse 2.6s ease-in-out infinite}
@keyframes pgTagPulse{
  0%,100%{transform:scale(1);box-shadow:0 0 0 rgba(245,180,60,0)}
  50%    {transform:scale(1.045);box-shadow:0 0 14px rgba(245,180,60,.4)}
}
#offerLeft{animation:pgSeatsIn .45s ease-out both}
@keyframes pgSeatsIn{from{opacity:0}to{opacity:1}}

/* Cards lift on hover; the tick marks stay put so nothing reflows. */
.pg-card{
  transition:transform .2s cubic-bezier(.16,1,.3,1), border-color .2s ease, box-shadow .2s ease;
}
.pg-card:hover{
  transform:translateY(-3px);
  border-color:rgba(255,255,255,.24);
  box-shadow:0 16px 40px rgba(0,0,0,.5);
}

/* Status line under the plans fades in whenever its text changes. */
.pg-note:not(:empty){animation:pgNoteIn .3s ease-out both}
@keyframes pgNoteIn{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

/* Account: the profile card and each section arrive in sequence. */
.pg-prof{animation:pgUp .45s cubic-bezier(.16,1,.3,1) both}
.pg-accsec{animation:pgUp .45s cubic-bezier(.16,1,.3,1) both}
.pg-accsec:nth-of-type(1){animation-delay:.05s}
.pg-accsec:nth-of-type(2){animation-delay:.10s}
.pg-accsec:nth-of-type(3){animation-delay:.15s}
@keyframes pgUp{
  from{opacity:0;transform:translateY(10px)}
  to  {opacity:1;transform:none}
}
.pg-prof-av{transition:transform .25s cubic-bezier(.34,1.56,.64,1)}
.pg-prof:hover .pg-prof-av{transform:scale(1.06) rotate(-3deg)}

/* SEO tools: results fade in, and the active tab slides rather than snaps. */
.pg-tab{transition:transform .16s ease, background-color .16s ease, color .16s ease}
.pg-tab:hover{transform:translateY(-1px)}
.pg-outbody > *{animation:pgOutIn .32s ease-out both}
@keyframes pgOutIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

/* Anyone who has asked their OS for less motion gets none of it. */
@media (prefers-reduced-motion:reduce){
  .pg-bw, .pg-bo, button.pg-buy,
  .pg-plan.pg-hot, .pg-plan.pg-max,
  .pg-offer, .pg-offer-tag, #offerLeft,
  .pg-card, .pg-note, .pg-prof, .pg-accsec,
  .pg-prof-av, .pg-tab, .pg-outbody > *{
    animation:none !important;
    transition:none !important;
    transform:none !important;
  }
}
