/* ============================================================
   Plans and accounts: library hearts, premium prompt gates, the
   pricing page and the account page. Dark library tokens only
   (library.css), one accent: --cursor.
   ============================================================ */

/* ---- hearts on library cards ---- */
.lcard-fav {
  position: absolute; left: 10px; top: 10px; z-index: 3; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: rgba(7,8,10,.55); border: 1px solid rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: scale(.9); transition: opacity .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.lcard-fav svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; transition: fill .25s, stroke .25s; }
.lcard:hover .lcard-fav, .lcard:focus-within .lcard-fav, .lcard-fav.on, .lcard-fav:focus-visible { opacity: 1; transform: none; }
.lcard-fav:hover { background: rgba(7,8,10,.8); }
.lcard-fav.on svg { fill: var(--cursor); stroke: var(--cursor); }
.lcard-fav.pop svg { animation: fav-pop .45s var(--ease); }
@keyframes fav-pop { 40% { transform: scale(1.35); } }
@media (hover: none) { .lcard-fav { opacity: 1; transform: none; } }

.chip--premium { color: var(--cursor); border-color: rgba(252,71,120,.45); }

/* ---- premium prompt gate ---- */
.pbox--gate { position: relative; }
.pbox--gate .gate { position: relative; min-height: 340px; overflow: hidden; }
.gate-ghost { position: absolute; inset: 0; padding: 26px 22px; display: grid; gap: 14px; align-content: start; }
.gate-ghost i { display: block; height: 11px; border-radius: 6px; background: rgba(255,255,255,.07); }
.gate-ghost i:nth-child(3n+1) { width: 92%; } .gate-ghost i:nth-child(3n+2) { width: 74%; } .gate-ghost i:nth-child(3n) { width: 84%; }
.gate-ghost::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, var(--d-panel) 78%); }
.gate-msg { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 92px 24px 40px; max-width: 460px; margin: 0 auto; }
.gate-lock { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(252,71,120,.45); color: var(--cursor); }
.gate-lock svg { width: 20px; height: 20px; }
.gate-msg h3 { margin: 18px 0 0; font-family: var(--display); font-weight: 400; font-size: 28px; letter-spacing: -.03em; color: var(--d-ink); }
.gate-msg p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--d-ink-60); }
.gate-msg p b { color: var(--d-ink); font-weight: 500; }
.gate-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.gate-cta .btn--solid::before { --btn-fill: var(--cursor); }
.pbox--gate.is-busy .gate-ghost i { animation: gate-shimmer 1.2s ease-in-out infinite alternate; }
@keyframes gate-shimmer { to { background: rgba(255,255,255,.14); } }
.pbox--gate.nudge { animation: gate-nudge .6s var(--ease); }
@keyframes gate-nudge { 30% { box-shadow: 0 0 0 2px var(--cursor); } }
.gate-copy { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--d-line-hi); background: none; color: var(--d-ink); cursor: pointer; }
.gate-copy:hover, .gate-copy.done { background: var(--cursor); border-color: transparent; color: #fff; }
/* the member downloads are buttons; make them read exactly like the links beside them */
.sc-links button.sc-link { -webkit-appearance: none; appearance: none; background: none; border-top: 0; border-left: 0; border-right: 0;
  border-radius: 0; margin: 0; cursor: pointer; text-align: left; }

/* ---- pricing: three quiet cards, after getlayers.ai/pricing ---- */
.pl-hero { padding-bottom: clamp(34px, 4.4vw, 56px); }
.pl-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; color: var(--d-ink-60); background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pl-pill i { width: 5px; height: 5px; border-radius: 50%; background: #feeae1; box-shadow: 0 0 10px rgba(255,190,162,.8); }
.lib-hero.pl-hero h1, .pl-faq h2 { font-weight: 300; letter-spacing: -.035em; line-height: 1.06;
  background: linear-gradient(122deg, #f5f5f5 35%, #a6a6a6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lib-hero.pl-hero h1 { font-size: clamp(34px, 4.4vw, 56px); max-width: 22ch; margin-top: 20px; }
.pl-hero .lib-sub { max-width: 54ch; font-size: clamp(15px, 1.1vw, 17px); }

.pl-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) clamp(80px, 10vw, 140px); }
.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }

.pl-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 14px;
  background: radial-gradient(130% 60% at 50% 0%, rgba(255,255,255,.05), transparent 62%), #121212;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 24px 60px -30px rgba(220,226,240,.22); }
.pl-card--god { background: radial-gradient(130% 60% at 50% 0%, rgba(255,196,170,.08), transparent 62%), #131212;
  box-shadow: inset 0 0 0 1px rgba(255,214,196,.15), 0 30px 80px -34px rgba(255,165,130,.3); }

.pl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 28px; }
.pl-name { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; color: var(--d-ink); }
.pl-badge { padding: 5px 11px; border-radius: 999px; font-size: 12px; white-space: nowrap; color: #feeae1;
  background: radial-gradient(120% 150% at 50% 130%, rgba(255,165,130,.5), rgba(255,165,130,.06) 72%);
  box-shadow: inset 0 0 0 1px rgba(255,190,162,.32); }
.pl-blurb { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--d-ink-60); min-height: 3em; }

.pl-toggle { display: grid; grid-template-columns: 1fr 1fr; position: relative; margin-top: 22px; padding: 4px; border-radius: 10px;
  background: rgba(255,255,255,.035); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.pl-toggle button, .pl-toggle span { position: relative; z-index: 1; border: 0; background: none; padding: 9px 12px; text-align: center;
  font: inherit; font-size: 13.5px; color: var(--d-ink-60); transition: color .3s var(--ease); }
.pl-toggle button { cursor: pointer; }
.pl-toggle button[aria-pressed="true"], .pl-toggle span { color: var(--d-ink); }
.pl-toggle::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 7px;
  background: rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: transform .45s var(--ease); }
.pl-toggle[data-on="life"]::before { transform: translateX(100%); }
.pl-toggle--one { grid-template-columns: 1fr; }
.pl-toggle--one::before { width: calc(100% - 8px); }

.pl-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 24px 0 0; }
.pl-price b { font-family: var(--display); font-weight: 700; font-size: 48px; line-height: 1; letter-spacing: -.045em; color: var(--d-ink);
  display: inline-block; transition: opacity .25s, transform .35s var(--ease); }
.pl-price b.swap { opacity: 0; transform: translateY(10px); }
.pl-price span { font-size: 14px; color: var(--d-ink-60); }
.pl-fair { margin: 10px 0 0; font-size: 13.5px; color: var(--d-ink-60); }
.pl-term { margin: 4px 0 0; font-size: 13px; color: var(--d-ink-40); }

.pl-buy { margin-top: 22px; }
.pl-cta { display: flex; width: 100%; box-sizing: border-box; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px;
  border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--d-ink); background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), inset 0 1px 0 rgba(255,255,255,.14);
  transition: background .3s var(--ease), box-shadow .4s var(--ease), transform .3s var(--ease); }
.pl-cta:hover { background: rgba(255,255,255,.09); }
.pl-cta:active { transform: scale(.985); }
.pl-card--god .pl-cta { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.16),
  inset 0 -16px 28px -16px rgba(255,165,130,.45), inset 16px 0 28px -18px rgba(94,128,240,.4); }
.pl-card--god .pl-cta:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), inset 0 1px 0 rgba(255,255,255,.2),
  inset 0 -18px 30px -14px rgba(255,165,130,.6), inset 18px 0 30px -16px rgba(94,128,240,.55); }
.pl-buy .pay-email { box-sizing: border-box; display: block; width: 100%; margin: 0 0 10px; padding: 13px 18px; border-radius: 999px;
  font: inherit; font-size: 15px; text-align: center; color: var(--d-ink); background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12); outline: none; transition: border-color .2s; }
.pl-buy .pay-email::placeholder { color: var(--d-ink-40); }
.pl-buy .pay-email:focus { border-color: rgba(255,214,196,.6); }
.pl-buy .pay-msg { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--d-ink-60); text-align: center; }
.pay-msg.is-bad { color: #ff9a86; }
.pl-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: 12px; color: var(--d-ink-40); }
.pl-secure svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pl-card.is-current .pl-buy::after { content: "Your current plan"; display: block; margin-top: 10px; text-align: center; font-size: 12.5px; color: #feeae1; }

.pl-list { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.07); display: grid; gap: 12px; }
.pl-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: rgba(245,245,245,.86); }
.pl-list li svg { flex: none; width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-list li span { flex: 1; }
.pl-list li.no { color: rgba(245,245,245,.32); }
.pl-list li em { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; white-space: nowrap;
  color: var(--d-ink-60); background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.pl-grid .pl-list li { opacity: 0; transform: translateY(6px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 35ms + 120ms); }
.pl-grid.in .pl-list li { opacity: 1; transform: none; }

.pl-note { margin: 26px 0 0; text-align: center; font-size: 13.5px; color: var(--d-ink-40); }
.pl-note a { color: var(--d-ink); border-bottom: 1px solid var(--d-line-hi); }

.pl-faq { max-width: 860px; margin: clamp(80px, 10vw, 140px) auto 0; text-align: center; }
.pl-faq h2 { margin: 18px auto 0; font-family: var(--display); font-size: clamp(32px, 4vw, 50px); }
.pl-faq h2 span { -webkit-text-fill-color: #5e5e5e; }
.pl-faq-sub { margin: 14px auto 0; max-width: 50ch; font-size: 15px; line-height: 1.6; color: var(--d-ink-60); }
.pl-faq-sub a { color: var(--d-ink); border-bottom: 1px solid var(--d-line-hi); }
.pl-faq-list { display: grid; gap: 10px; margin-top: 40px; text-align: left; }
.pl-faq details { border-radius: 14px; background: #101010; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); transition: background .3s var(--ease); }
.pl-faq details[open] { background: #141414; }
.pl-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; font-size: 16px; color: var(--d-ink); }
.pl-faq summary::-webkit-details-marker { display: none; }
.pl-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  font-size: 17px; line-height: 1; color: var(--d-ink-60); background: rgba(255,255,255,.05); transition: transform .35s var(--ease); }
.pl-faq details[open] summary::after { transform: rotate(45deg); }
.pl-faq details p { margin: 0; padding: 0 22px 22px; max-width: 66ch; font-size: 15px; line-height: 1.65; color: var(--d-ink-60); }

@media (max-width: 1020px) {
  .pl-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .pl-blurb { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .pl-grid .pl-list li { opacity: 1; transform: none; transition: none; } }

/* ---- account ---- */
.acct { max-width: 1180px; margin: 0 auto; padding: clamp(118px, 13vw, 160px) clamp(16px, 4vw, 48px) clamp(80px, 10vw, 140px); min-height: 70vh; }
.acct h1 { margin: 14px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5.4vw, 76px); line-height: .95; letter-spacing: -.05em; color: var(--d-ink); }
.acct-lede { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--d-ink-60); }
.acct-lede b { color: var(--d-ink); font-weight: 500; }

.acct-loading { display: grid; gap: 14px; max-width: 520px; }
.acct-loading i { display: block; height: 18px; border-radius: 9px; background: rgba(255,255,255,.06); animation: gate-shimmer 1.1s ease-in-out infinite alternate; }
.acct-loading i:first-child { height: 64px; width: 70%; }

/* sign in / create account: one centred card, after getlayers.ai/sign-in */
.acct-panel { max-width: 420px; margin: 0 auto; padding: 36px 32px 30px; border-radius: 16px; text-align: center;
  background: radial-gradient(130% 55% at 50% 0%, rgba(255,255,255,.055), transparent 62%), #121212;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px -36px rgba(220,226,240,.25); }
.acct-panel[data-mode="in"] .up-only, .acct-panel[data-mode="up"] .in-only { display: none !important; }
.acct-logo { display: inline-grid; place-items: center; width: 48px; height: 48px; color: var(--d-ink); }
.acct-logo svg { width: 44px; height: 44px; font-family: var(--display); }
.acct .acct-panel h1 { margin: 18px 0 0; font-weight: 400; font-size: 28px; line-height: 1.15; letter-spacing: -.03em; }
.acct-panel .acct-lede { margin-top: 8px; font-size: 14.5px; }
.acct-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; box-sizing: border-box; margin-top: 26px;
  padding: 12px 18px; border-radius: 999px; font-size: 15px; font-weight: 500; color: #121212; background: #f5f5f5;
  transition: background .25s var(--ease), transform .25s var(--ease); }
.acct-google:hover { background: #fff; }
.acct-google:active { transform: scale(.985); }
.acct-google svg { width: 18px; height: 18px; }
.acct-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; font-size: 12.5px; color: var(--d-ink-40); }
.acct-or::before, .acct-or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.acct-form { display: grid; gap: 14px; margin-top: 22px; text-align: left; }
.acct-field { display: grid; gap: 7px; }
.acct-field label { font-size: 13px; color: var(--d-ink-60); }
.acct-field input { box-sizing: border-box; width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit; font-size: 15px;
  color: var(--d-ink); background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.09); outline: none;
  transition: border-color .2s, background .2s; }
.acct-field input::placeholder { color: var(--d-ink-40); }
.acct-field input:focus { border-color: rgba(255,214,196,.55); background: rgba(255,255,255,.05); }
.acct-field input:disabled { color: var(--d-ink-40); }
.acct-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--d-ink-60); cursor: pointer; }
.acct-check input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: #feeae1; }
.acct-submit { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px 18px; border: 0; border-radius: 999px;
  cursor: pointer; font: inherit; font-size: 15px; font-weight: 500; color: var(--d-ink); background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.16),
    inset 0 -16px 28px -16px rgba(255,165,130,.45), inset 16px 0 28px -18px rgba(94,128,240,.4);
  transition: background .3s var(--ease), transform .25s var(--ease); }
.acct-submit:hover { background: rgba(255,255,255,.1); }
.acct-submit:disabled { cursor: default; opacity: .7; }
.acct-msg { min-height: 1.3em; margin: -4px 0 0; font-size: 13px; color: var(--d-ink-60); text-align: center; }
.acct-msg.is-bad { color: #ff9a86; }
.acct-sent { display: none; margin-top: 22px; padding: 16px 18px; border-radius: 12px; text-align: left;
  background: rgba(255,190,162,.06); box-shadow: inset 0 0 0 1px rgba(255,190,162,.2); }
.acct-sent h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: -.02em; color: var(--d-ink); }
.acct-sent p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--d-ink-60); }
.acct-sent b { color: var(--d-ink); font-weight: 500; }
.is-sent .acct-sent { display: block; }
.is-sent .acct-field, .is-sent .acct-check, .is-sent .acct-google, .is-sent .acct-or, .is-sent .acct-switch { display: none !important; }
.acct-switch { margin: 18px 0 0; font-size: 14px; color: var(--d-ink-60); }
.acct-switch button { border: 0; padding: 0; background: none; cursor: pointer; font: inherit; color: var(--d-ink); border-bottom: 1px solid var(--d-line-hi); }
.acct-fine { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12.5px; line-height: 1.55; color: var(--d-ink-40); }

/* profile: identity line and the edit form */
.acct-head-act { display: flex; gap: 10px; flex-wrap: wrap; }
.acct-avatar { overflow: hidden; }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-since { margin-left: 10px; font-size: 13px; color: var(--d-ink-40); }
.acct-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; padding: 24px; border-radius: 16px;
  background: #121212; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.acct-edit .acct-check, .acct-edit-act { grid-column: 1 / -1; }
.acct-edit-act { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acct-edit-act .acct-submit { width: auto; padding: 11px 22px; }
.acct-edit-act .acct-msg { margin: 0; text-align: left; }
@media (max-width: 620px) { .acct-edit { grid-template-columns: 1fr; } .acct-since { display: block; margin: 6px 0 0; } }
.acct-err { text-align: center; color: var(--d-ink-60); }
.acct-err a { color: var(--d-ink); border-bottom: 1px solid var(--d-line-hi); }

.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.acct-bento { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-top: clamp(30px, 4vw, 48px); }
.acct-tile { position: relative; padding: 26px; border-radius: 24px; background: var(--d-panel); border: 1px solid var(--d-line);
  display: flex; flex-direction: column; align-items: flex-start; min-height: 230px;
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.acct-tile:nth-child(2) { transition-delay: .08s; } .acct-tile:nth-child(3) { transition-delay: .16s; }
.is-in .acct-tile { opacity: 1; transform: none; }
.acct-k { margin: 0; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--d-ink-40); }
.acct-tile h2 { margin: 12px 0 0; font-family: var(--display); font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -.045em; color: var(--d-ink); }
.acct-tile h3 { margin: 12px 0 0; font-family: var(--display); font-weight: 400; font-size: 26px; letter-spacing: -.03em; color: var(--d-ink); }
.acct-sub { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--d-ink-60); }
.acct-tile .btn { margin-top: auto; }
.acct-tile .acct-sub + .btn { margin-top: 22px; }
.acct-tile .btn--solid::before { --btn-fill: var(--cursor); }
.acct-plan.is-god { border: 0; color: #121212; background: linear-gradient(155deg, #ff5c89, var(--cursor) 55%, #d81f57); }
.acct-plan.is-god h2, .acct-plan.is-god .acct-k { color: #121212; }
.acct-plan.is-god .acct-sub { color: rgba(0,0,0,.72); }
.acct-plan.is-god .btn--ghost { color: #121212; border-color: rgba(0,0,0,.35); }

.acct-ring { position: relative; width: 112px; height: 112px; margin-top: 14px; }
.acct-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.acct-ring circle { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 9; }
.acct-ring .arc { stroke: var(--cursor); stroke-linecap: round; stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7; transition: stroke-dashoffset 1.2s var(--ease) .3s; }
.is-in .acct-ring .arc { stroke-dashoffset: calc(326.7 * (1 - var(--p))); }
.acct-ring b { position: absolute; inset: 0; align-items: center; font-family: var(--display); font-weight: 400;
  font-size: 34px; letter-spacing: -.04em; color: var(--d-ink); }
.acct-ring small { font-size: 15px; color: var(--d-ink-40); }
.acct-inf { margin-top: 10px; font-family: var(--display); font-weight: 400; font-size: 84px; line-height: 1; color: var(--cursor); }

.acct-sec { margin-top: clamp(44px, 6vw, 72px); }
.acct-sec h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.035em; color: var(--d-ink); }
.acct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.acct-card { position: relative; display: block; border-radius: 18px; overflow: hidden; background: var(--d-panel); border: 1px solid var(--d-line);
  transition: transform .4s var(--ease), border-color .4s var(--ease); }
.acct-card:hover { transform: translateY(-3px); border-color: var(--d-line-hi); }
.acct-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #0b0d10; }
.acct-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-card-t { display: block; padding: 12px 14px 14px; font-size: 14px; line-height: 1.35; color: var(--d-ink); }
.acct-tag { position: absolute; top: 10px; right: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 999px; background: rgba(7,8,10,.7); color: var(--cursor); border: 1px solid rgba(252,71,120,.45); }
.acct-empty { grid-column: 1 / -1; margin: 0; padding: 26px; border-radius: 18px; border: 1px dashed var(--d-line-hi);
  font-size: 14.5px; line-height: 1.55; color: var(--d-ink-60); list-style: none; }
.acct-empty a { color: var(--d-ink); border-bottom: 1px solid var(--d-line-hi); }
.acct-orders { list-style: none; margin: 0; padding: 0; }
.acct-orders li { display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--d-line);
  font-size: 15px; color: var(--d-ink); }
.acct-orders li .mono { font-size: 11px; color: var(--d-ink-40); }
.acct-orders li b { font-weight: 500; }
.acct-orders li.acct-empty { display: block; border: 1px dashed var(--d-line-hi); }

@media (max-width: 900px) {
  .pl-grid { grid-template-columns: 1fr; }
  .acct-bento { grid-template-columns: 1fr 1fr; }
  .acct-plan { grid-column: 1 / -1; }
  .acct-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .acct-bento { grid-template-columns: 1fr; }
  .acct-orders li { grid-template-columns: 1fr auto; }
  .acct-orders li .mono { grid-column: 1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-list li, .acct-tile { opacity: 1; transform: none; transition: none; }
  .acct-ring .arc { transition: none; }
  .pl-card, .pl-card:hover, .acct-card:hover { transform: none; }
  .lcard-fav.pop svg, .pbox--gate.is-busy .gate-ghost i, .acct-loading i { animation: none; }
}

/* hidden wins over the display rules above */
.acct [hidden], .pbox--gate [hidden], .pl-card [hidden] { display: none !important; }

/* ghost buttons on the dark library theme (v2.css draws them for light pages) */
.acct .btn--ghost, .gate-cta .btn--ghost, .pl-note .btn--ghost {
  color: var(--d-ink); border-color: var(--d-line-hi); background: transparent; }
.acct .btn--ghost:hover, .gate-cta .btn--ghost:hover { border-color: var(--d-ink); }
.acct-plan.is-god .btn--ghost { color: #121212; border-color: rgba(0,0,0,.35); }

.acct-ring b { display: flex; align-items: center; justify-content: center; }
.acct-ring b small { margin: 10px 0 0 2px; }

/* ---- library modal: the upgrade pill, locked actions, save and share ---- */
.up-cta { position: relative; display: inline-flex; align-items: center; gap: 14px; margin: 18px 0 4px;
  padding: 8px 8px 8px 22px; border-radius: 999px; font-size: 17px; color: var(--d-ink);
  border: 1px solid transparent;
  background: linear-gradient(var(--d-panel-2), var(--d-panel-2)) padding-box,
              linear-gradient(100deg, rgba(255,255,255,.12) 20%, var(--cursor) 50%, rgba(255,255,255,.12) 80%) border-box;
  background-size: 100% 100%, 220% 100%;
  animation: up-shine 4s linear infinite;
  box-shadow: 0 10px 30px -14px rgba(252,71,120,.6);
  transition: transform .35s var(--ease); }
.up-cta[hidden] { display: none; }
.up-cta:hover { transform: translateY(-2px); }
.up-cta i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--d-ink); }
.up-cta i svg { width: 17px; height: 17px; fill: #121212; transition: transform .5s var(--ease); }
.up-cta:hover i svg { transform: rotate(90deg) scale(1.08); }
@keyframes up-shine { from { background-position: 0 0, 110% 0; } to { background-position: 0 0, -110% 0; } }

.lk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.lk-actions[hidden] { display: none; }
.lk-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  border: 1px solid var(--d-line-hi); color: var(--d-ink-40); font-size: 15.5px; background: transparent;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.lk-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lk-btn .lk-i { width: 14px; height: 14px; }
.lk-btn:hover { color: var(--d-ink-60); border-color: rgba(252,71,120,.5); }
.lk-btn.is-live { color: var(--d-ink); }
.lk-btn.is-live .lk-i { display: none; }
.lk-btn.is-live:hover { background: var(--cursor); border-color: transparent; color: #fff; }

.lib-social { display: flex; gap: 10px; margin-top: 18px; }
.soc-btn { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--d-line); background: var(--d-panel-2); color: var(--d-ink); font: inherit; font-size: 14.5px;
  transition: border-color .3s var(--ease); }
.soc-btn:hover { border-color: var(--d-line-hi); }
.soc-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.soc-btn[aria-pressed="true"] svg { fill: var(--cursor); stroke: var(--cursor); }
.pill--locked .lock-i { width: 12px; height: 12px; margin-right: 2px; vertical-align: -1px; }

@media (prefers-reduced-motion: reduce) { .up-cta { animation: none; } }
.lib-actions[hidden] { display: none; }

/* ---- profile: identity, tabs, download list, removable favourites ---- */
.acct-id { display: flex; align-items: flex-end; gap: 20px; }
.acct-avatar { flex: none; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  font-family: var(--display); font-size: 34px; color: #121212;
  background: linear-gradient(155deg, #ff5c89, var(--cursor) 55%, #d81f57); }
.acct-badge { display: inline-block; margin-left: 8px; padding: 4px 10px; border-radius: 999px; vertical-align: 2px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid var(--d-line-hi); color: var(--d-ink-60); }
.acct-badge.is-god { border-color: transparent; background: var(--cursor); color: #fff; }

.acct-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(40px, 5vw, 64px); padding: 5px; width: max-content; max-width: 100%;
  border-radius: 999px; background: var(--d-panel); border: 1px solid var(--d-line); }
.acct-tabs button { border: 0; background: none; cursor: pointer; padding: 10px 18px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--d-ink-60);
  transition: background .3s var(--ease), color .3s var(--ease); }
.acct-tabs button:hover { color: var(--d-ink); }
.acct-tabs button[aria-selected="true"] { background: var(--d-ink); color: #0a0b0e; }
.acct-tabs button span:not(:empty) { margin-left: 6px; opacity: .6; }
.acct-tabs button[hidden] { display: none; }
.acct-pane { margin-top: 22px; animation: acct-pane .5s var(--ease); }
@keyframes acct-pane { from { opacity: 0; transform: translateY(8px); } }
.acct-hint { margin: 0 0 16px; max-width: 70ch; font-size: 14.5px; line-height: 1.55; color: var(--d-ink-40); }
.acct-hint:empty { display: none; }

.acct-list { display: grid; gap: 8px; }
.acct-row { display: grid; grid-template-columns: 92px 1fr auto auto auto; gap: 16px; align-items: center; padding: 10px 18px 10px 10px;
  border-radius: 18px; background: var(--d-panel); border: 1px solid var(--d-line); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.acct-row:hover { border-color: var(--d-line-hi); transform: translateX(4px); }
.acct-row-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #0b0d10; }
.acct-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-row-t { display: grid; gap: 4px; min-width: 0; }
.acct-row-t b { font-weight: 400; font-size: 15.5px; color: var(--d-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-row-t .mono { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--d-ink-40); }
.acct-tag--inline { position: static; }
.acct-tag--soft { color: var(--d-ink-60); border-color: var(--d-line-hi); }
.acct-row-go { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--d-ink-60); }
.acct-row:hover .acct-row-go { color: var(--cursor); }

.acct-card-wrap { position: relative; transition: opacity .28s var(--ease), transform .28s var(--ease); }
.acct-card-wrap.is-leaving { opacity: 0; transform: scale(.94); }
.acct-unfav { position: absolute; top: 10px; left: 10px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  cursor: pointer; background: rgba(7,8,10,.6); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.acct-unfav svg { width: 16px; height: 16px; fill: var(--cursor); stroke: var(--cursor); stroke-width: 1.8; transition: fill .2s; }
.acct-unfav:hover svg { fill: none; }

@media (max-width: 700px) {
  .acct-id { align-items: center; gap: 14px; }
  .acct-avatar { width: 54px; height: 54px; font-size: 24px; }
  .acct-row { grid-template-columns: 74px 1fr auto; }
  .acct-row .acct-tag--soft, .acct-row-go { display: none; }
}
@media (prefers-reduced-motion: reduce) { .acct-pane { animation: none; } .acct-row:hover { transform: none; } }
@media (max-width: 560px) {
  .acct-tabs { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .acct-tabs::-webkit-scrollbar { display: none; }
  .acct-tabs button { flex: none; padding: 10px 14px; }
}

/* pricing: the Early Access Sale price on God Mode */
.pl-price s { align-self: center; font-size: 22px; font-weight: 500; color: var(--d-ink-40); text-decoration-thickness: 1.5px; }
.pl-term[data-sale-note] { color: #feeae1; }

/* God Mode: a multicolour line keeps orbiting its border (the prompts-page
   card ring, always on here, in the old pink, gold and blue) */
@property --pl-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pl-card--god::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: conic-gradient(from var(--pl-a), transparent 0 8%, rgba(252,71,120,.5) 14%, #fc4778 19%, #ffd36e 25%, #7ad7ff 31%, rgba(122,215,255,.4) 36%, transparent 43% 58%,
    rgba(168,120,255,.45) 64%, #a878ff 68%, #7ad7ff 72%, transparent 79% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: pl-orbit 5s linear infinite; }
@keyframes pl-orbit { to { --pl-a: 360deg; } }
@media (prefers-reduced-motion: reduce) { .pl-card--god::after { animation: none; } }

/* ---- checkout: the card turns over to its back (js/checkout.js) ----
   the front keeps its place in the grid, so the card never changes size */
.pl-card.is-flipped > :not(.pl-back) { visibility: hidden; }
.pl-back { display: none; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 28px; box-sizing: border-box;
  flex-direction: column; align-items: center; justify-content: space-between; text-align: center; }
.pl-card.is-flipped > .pl-back { display: flex; }
.plb-pill { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; color: #cfe9d6;
  background: rgba(120,220,150,.07); box-shadow: inset 0 0 0 1px rgba(120,220,150,.22); }
.plb-pill svg, .plb-rzp svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.plb-mid { display: flex; flex-direction: column; align-items: center; width: 100%; }
.plb-name { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -.02em; color: var(--d-ink); }
.plb-price { margin: 14px 0 0; font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; letter-spacing: -.045em; color: var(--d-ink); }
.plb-term { margin: 12px 0 0; font-size: 14px; color: var(--d-ink-60); }
.plb-status { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; font-size: 14.5px; color: var(--d-ink); }
.plb-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.14); border-top-color: #feeae1; animation: plb-spin .8s linear infinite; }
@keyframes plb-spin { to { transform: rotate(360deg); } }
.plb-ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(120,220,150,.16); }
.plb-ok svg { width: 12px; height: 12px; fill: none; stroke: #9be3b0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plb-go { margin-top: 18px; max-width: 260px; }
.plb-foot { width: 100%; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.07); }
.plb-rzp { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: 13px; color: var(--d-ink-60); }
.plb-rzp b { color: var(--d-ink); font-weight: 600; }
.plb-fine { margin: 8px 0 0; font-size: 12px; line-height: 1.55; color: var(--d-ink-40); }
@media (prefers-reduced-motion: reduce) { .plb-spin { animation-duration: 2.4s; } }
