/* ============================================================
   WhiteStudio.team — Shared styles for additional pages
   pricing · login · blog · terms · account · thank-you
   Builds on styles.css (brand tokens, nav, footer, buttons)
   ============================================================ */

/* ---------- Generic page hero ---------- */
.page-hero {
  padding: 56px 0 36px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 760px 360px at 50% -14%, rgba(101, 46, 186, 0.12), transparent 62%),
    var(--surface);
}
.page-hero.center { text-align: center; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 64% 100% at 50% 0%, #000 0%, transparent 76%);
  opacity: 0.3;
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 16px 0 14px;
}
.page-hero h1 em {
  font-style: normal;
  background: var(--brand-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0;
}
.page-hero.center .lede { margin-left: auto; margin-right: auto; }

/* ============================================================
   PRICING — billing toggle + FAQ (cards/table reuse styles.css)
   ============================================================ */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 26px auto 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.billing-toggle .bt-opt.active { color: var(--ink-1); }
.billing-toggle .bt-save {
  font-size: 12px;
  background: var(--brand-pink-soft);
  color: #b3175e;
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 700;
  margin-left: 4px;
}
[data-theme="dark"] .billing-toggle .bt-save { background: rgba(255,75,147,0.18); color: #ffc4dc; }
.bt-switch {
  position: relative;
  width: 52px; height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  cursor: pointer;
  padding: 0;
  transition: background .18s ease;
}
.bt-switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-gradient);
  transition: transform .2s cubic-bezier(.34,1.4,.5,1);
}
.bt-switch[aria-pressed="true"]::after { transform: translateX(22px); }

.pricing-faq {
  max-width: 760px;
  margin: 0 auto;
}
.pf-item {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.pf-item:first-child { border-top: 0; }
.pf-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 40px 20px 0;
  font: 600 17px var(--font-display, inherit);
  color: var(--ink-1);
  cursor: pointer;
  position: relative;
}
.pf-q::after {
  content: "+";
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px; color: var(--ink-4);
  transition: transform .2s ease;
}
.pf-item.open .pf-q::after { transform: translateY(-50%) rotate(45deg); }
.pf-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.pf-a p {
  font-size: 15px; line-height: 1.65; color: var(--ink-3);
  margin: 0 0 20px; max-width: 64ch;
}
.pf-item.open .pf-a { max-height: 320px; }

/* ============================================================
   AUTH — login / sign up
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: var(--ink-1);
  color: #fff;
  padding: 56px 56px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
[data-theme="dark"] .auth-aside { background: var(--surface-2); border-right: 1px solid var(--line); }
.auth-aside::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 400px at 110% -10%, rgba(101,46,186,0.55), transparent 60%),
              radial-gradient(ellipse 460px 360px at -10% 110%, rgba(255,75,147,0.28), transparent 60%);
  pointer-events: none;
}
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: #fff; text-decoration: none;
}
.auth-aside .brand-line .brand-mark { width: 30px; height: 30px; }
.auth-aside h2 {
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: auto 0 22px;
  color: #fff;
  max-width: 15ch;
}
.auth-aside .a-points { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-direction: column; gap: 14px; }
.auth-aside .a-points li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px; color: #cdd5e6; line-height: 1.45;
}
.auth-aside .a-points .ck {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.auth-aside .a-points .ck svg { width: 13px; height: 13px; color: #b8f5c8; }
.auth-aside .a-foot {
  margin-top: 28px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: #aab3c6;
}
.auth-aside .a-foot .stars { color: #f7b955; letter-spacing: 1px; }
.auth-aside .a-foot a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.auth-main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 28px clamp(24px, 5vw, 72px) 48px;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-2) 100%);
}
.auth-main-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  width: 100%;
}
.auth-main-brand {
  display: none;
  align-items: center;
  gap: 9px;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.auth-main-brand > span:last-child { color: var(--ink-4); font-weight: 500; }
.auth-main-brand .brand-mark { width: 28px; height: 28px; }
.auth-main-brand .brand-mark img { width: 18px; height: 18px; }
.auth-main-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.auth-main-links a {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.auth-main-links a:hover { background: var(--accent-soft); color: var(--brand-purple); }
.auth-login-content {
  align-self: center;
  width: 100%;
  max-width: 440px;
  margin: auto;
}

/* PayEFB magic-link login. The shortcode owns the login flow; these rules
   only align its markup with the theme's authentication screen. */
.auth-main .wp-block-post-content {
  width: 100%;
  padding: clamp(28px, 4vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.auth-main #payefb-login-container.payefb-login-wrapper {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  font-family: var(--bs-body-font-family);
  direction: inherit;
}
.auth-main .payefb-login-form {
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink-2);
}
.auth-main .payefb-header {
  margin-bottom: 26px;
  text-align: start;
}
.auth-main .payefb-header h4 {
  margin: 0 0 6px;
  color: var(--ink-1);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.auth-main .payefb-subtitle {
  color: var(--ink-3);
  font-size: 14.5px;
  line-height: 1.55;
}
.auth-main .payefb-form-group { margin-bottom: 16px; }
.auth-main .payefb-form-group label {
  margin-bottom: 7px;
  color: var(--ink-1);
  font-size: 13.5px;
  font-weight: 600;
  text-align: start;
}
.auth-main .payefb-input {
  min-height: 48px;
  padding: 13px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-1);
  font: 15px var(--bs-body-font-family);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.auth-main .payefb-input::placeholder { color: #b0b6c6; }
.auth-main .payefb-input:focus {
  background: var(--surface);
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(101, 46, 186, .1);
}
.auth-main .payefb-btn {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  font: 600 15px var(--bs-body-font-family);
}
.auth-main .payefb-btn-primary {
  background: var(--brand-gradient);
  color: #fff;
}
.auth-main .payefb-btn-primary:hover {
  background: linear-gradient(135deg, #7339d4 0%, #5a2aa3 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(101, 46, 186, .28);
  transform: translateY(-1px);
}
.auth-main .payefb-btn-primary:active { transform: translateY(0); }
.auth-main .payefb-message {
  margin: 0 0 16px;
  border-radius: 10px;
  text-align: start;
}
.auth-main .payefb-error { color: var(--danger); }
.auth-main .payefb-input-error { border-color: var(--danger) !important; }
.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 0;
  color: var(--ink-4);
  font-size: 12.5px;
}
.auth-security-note svg { width: 16px; height: 16px; }

[data-theme="dark"] .auth-main .payefb-login-form { background: transparent; }
[data-theme="dark"] .auth-main .payefb-input { color: var(--ink-1); }
.auth-card {
  width: 100%;
  max-width: 392px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 28px;
}
.auth-tabs button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 9px;
  font: 600 14px var(--bs-body-font-family);
  color: var(--ink-3);
  cursor: pointer;
  transition: all .15s ease;
}
.auth-tabs button.active {
  background: var(--surface);
  color: var(--ink-1);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
}
.auth-card h1 { font-size: 25px; margin: 0 0 6px; letter-spacing: -0.02em; }
.auth-card .sub { font-size: 14.5px; color: var(--ink-3); margin: 0 0 26px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-1); margin-bottom: 7px; }
.field input {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font: 15px var(--bs-body-font-family);
  color: var(--ink-1);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder { color: #b0b6c6; }
.field input:focus {
  border-color: var(--brand-purple);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(101,46,186,0.1);
}
.field .with-link { display: flex; align-items: center; justify-content: space-between; }
.field .with-link a { font-size: 12.5px; font-weight: 600; }
.auth-remember {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; color: var(--ink-3);
  cursor: pointer; margin: 4px 0 22px;
}
.auth-remember input {
  appearance: none; width: 18px; height: 18px; flex: none;
  border: 1.5px solid var(--line); border-radius: 5px; background: var(--surface);
  cursor: pointer; position: relative; transition: all .15s ease;
}
.auth-remember input:checked { background: var(--brand-purple); border-color: var(--brand-purple); }
.auth-remember input:checked::after {
  content: ""; position: absolute; left: 5px; top: 2px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.auth-submit { width: 100%; justify-content: center; }
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0; color: var(--ink-4); font-size: 12.5px;
}
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.auth-social { display: flex; flex-direction: column; gap: 10px; }
.auth-social button {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  font: 600 14px var(--bs-body-font-family);
  color: var(--ink-1);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.auth-social button:hover { background: var(--surface-2); border-color: var(--ink-4); }
.auth-social button svg { width: 18px; height: 18px; }
.auth-alt { text-align: center; font-size: 13.5px; color: var(--ink-3); margin: 24px 0 0; }
.auth-alt a { font-weight: 600; }
.signup-only { display: none; }
.auth-card.mode-signup .signup-only { display: block; }
.auth-card.mode-signup .login-only { display: none; }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main {
    min-height: 100vh;
    padding: 18px 20px 32px;
  }
  .auth-main-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .auth-main-brand {
    display: flex;
  }
  .auth-main-links { justify-content: flex-start; }
  .auth-login-content { margin: 32px auto auto; }
  .auth-main .wp-block-post-content {
    padding: 28px 20px;
    border-radius: 16px;
  }
  .auth-main .payefb-header h4 { font-size: 25px; }
  .auth-security-note { margin-top: 14px; }
}

@media (max-width: 390px) {
  .auth-main-links { gap: 4px; }
  .auth-main-links a {
    padding-inline: 8px;
    font-size: 12px;
  }
}

/* ============================================================
   BLOG INDEX
   ============================================================ */
.blog-body { padding: 40px 0 88px; }

.blog-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  margin-bottom: 44px;
}
.blog-feature .bf-media {
  background: var(--brand-gradient);
  min-height: 300px;
  position: relative;
  overflow: hidden;
}
.blog-feature .bf-media::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000, transparent 72%);
}
.blog-feature .bf-media .bf-glyph {
  position: absolute; right: -10px; bottom: -10px;
  width: 180px; height: 180px; color: rgba(255,255,255,0.9);
}
.blog-feature .bf-body { padding: 38px; display: flex; flex-direction: column; }
.blog-feature .bf-body .b-tag { margin-bottom: 14px; }
.blog-feature .bf-body h2 {
  font-size: 27px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 12px;
}
.blog-feature .bf-body h2 a { color: var(--ink-1); text-decoration: none; }
.blog-feature .bf-body h2 a:hover { color: var(--brand-purple); }
.blog-feature .bf-body p { font-size: 15px; color: var(--ink-3); line-height: 1.6; margin: 0 0 20px; }

.b-tag {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 4px 10px; border-radius: 999px;
}
.b-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-4); margin-top: auto;
}
.b-meta .av {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; font-family: var(--font-display);
}
.b-meta .dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

/* category pills */
.blog-cats {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px;
}
.blog-cats a {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 13.5px; font-weight: 500; text-decoration: none;
  transition: all .15s ease;
}
.blog-cats a:hover { border-color: var(--brand-purple); color: var(--brand-purple); }
.blog-cats a.active { background: var(--accent-soft); border-color: var(--brand-purple); color: var(--accent-ink); font-weight: 600; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.post-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-purple); }
.post-card .pc-media {
  height: 152px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.post-card .pc-media svg { width: 48px; height: 48px; color: #fff; opacity: 0.92; position: relative; z-index: 1; }
.post-card .pc-media::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000, transparent 75%);
}
.pc-media.g1 { background: linear-gradient(135deg, #652eba, #4c238b); }
.pc-media.g2 { background: linear-gradient(135deg, #ff4b93, #b3175e); }
.pc-media.g3 { background: linear-gradient(135deg, #2a8c82, #176159); }
.pc-media.g4 { background: linear-gradient(135deg, #4361c2, #25307a); }
.pc-media.g5 { background: linear-gradient(135deg, #d97706, #92400e); }
.pc-media.g6 { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.post-card .pc-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .pc-body .b-tag { align-self: flex-start; margin-bottom: 12px; }
.post-card .pc-body h3 {
  font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; margin: 0 0 8px;
  color: var(--ink-1);
}
.post-card:hover .pc-body h3 { color: var(--brand-purple); }
.post-card .pc-body p { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; margin: 0 0 16px; }

/* newsletter strip */
.blog-news {
  margin-top: 52px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
}
.blog-news h3 { font-size: 21px; margin: 0 0 6px; letter-spacing: -0.01em; }
.blog-news p { font-size: 14px; color: var(--ink-3); margin: 0; }
.blog-news form { display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 440px; }
.blog-news input {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px 14px; font: 15px var(--bs-body-font-family); color: var(--ink-1); outline: none;
}
.blog-news input:focus { border-color: var(--brand-purple); box-shadow: 0 0 0 3px rgba(101,46,186,0.1); }

@media (max-width: 860px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature .bf-media { min-height: 180px; }
}
@media (max-width: 575px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-news { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   LEGAL — terms & privacy
   ============================================================ */
.legal-body { padding: 8px 0 88px; }
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.legal-content { max-width: 820px; }

/* ---------- On this page (TOC) ---------- */
.legal-layout .toc { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; }
.legal-layout .toc h4 {
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-4);
  margin: 0 0 14px;
}
.legal-layout .toc ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.legal-layout .toc li a {
  display: block; padding: 7px 0 7px 16px; margin-left: -2px;
  font-size: 13.5px; color: var(--ink-3); font-weight: 500;
  border-left: 2px solid transparent; line-height: 1.4;
  text-decoration: none;
}
.legal-layout .toc li a:hover { color: var(--brand-purple); }
.legal-layout .toc li a.active { color: var(--brand-purple); border-left-color: var(--brand-purple); font-weight: 600; }

@media (max-width: 980px) {
  .legal-layout { grid-template-columns: 1fr; gap: 0; }
  .legal-layout .toc { display: none; }
  .legal-content { max-width: 760px; margin-inline: auto; }
}
.legal-content .updated {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-4);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 32px;
}
.legal-content .updated svg { width: 14px; height: 14px; color: var(--brand-purple); }
.legal-content section { margin-bottom: 40px; scroll-margin-top: 88px; }
.legal-content h2 {
  font-size: 22px; letter-spacing: -0.01em; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.legal-content h3 { font-size: 16px; margin: 22px 0 8px; }
.legal-content p { font-size: 15px; line-height: 1.7; color: var(--ink-3); margin: 0 0 14px; }
.legal-content ul { margin: 0 0 14px; padding-left: 20px; }
.legal-content li { font-size: 15px; line-height: 1.7; color: var(--ink-3); margin-bottom: 6px; }
.legal-content a { font-weight: 500; }
.legal-content strong { color: var(--ink-1); }

/* ============================================================
   ACCOUNT / DASHBOARD
   ============================================================ */
.acct-body { padding: 30px 0 88px; background: var(--surface-2); min-height: 70vh; }
.acct-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
}
.acct-nav {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  position: sticky; top: 88px;
}
.acct-user {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 8px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}
.acct-user .av {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-family: var(--font-display); font-size: 17px;
  flex: none;
}
.acct-user .u-name { font-weight: 600; font-size: 14.5px; color: var(--ink-1); line-height: 1.2; }
.acct-user .u-mail { font-size: 12.5px; color: var(--ink-4); }
.acct-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.acct-nav a svg { width: 17px; height: 17px; color: var(--ink-4); }
.acct-nav a:hover { background: var(--surface-2); }
.acct-nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.acct-nav a.active svg { color: var(--brand-purple); }
.acct-nav .sep { height: 1px; background: var(--line); margin: 10px 4px; }
.acct-nav a.danger { color: #c0392b; }
.acct-nav a.danger svg { color: #c0392b; }

.acct-main { display: flex; flex-direction: column; gap: 22px; }
.acct-welcome h1 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 4px; }
.acct-welcome p { font-size: 14.5px; color: var(--ink-3); margin: 0; }

.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.stat-card .s-ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.stat-card .s-ic svg { width: 19px; height: 19px; }
.stat-card .s-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.stat-card .s-lbl { font-size: 13px; color: var(--ink-4); margin-top: 5px; }
.stat-card .s-delta { font-size: 12px; font-weight: 600; color: #1f8a5b; margin-top: 8px; }

.acct-panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.acct-panel .p-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.acct-panel .p-head h2 { font-size: 16px; margin: 0; font-weight: 600; }
.acct-panel .p-head a { font-size: 13px; font-weight: 600; }

.lic-row, .form-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px; border-bottom: 1px solid var(--line-2);
}
.lic-row:last-child, .form-row:last-child { border-bottom: 0; }
.lic-row .l-ic, .form-row .f-ic {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.lic-row .l-ic svg, .form-row .f-ic svg { width: 19px; height: 19px; }
.lic-row .l-body, .form-row .f-body { flex: 1; min-width: 0; }
.lic-row .l-body strong, .form-row .f-body strong {
  display: block; font-size: 14.5px; color: var(--ink-1); font-weight: 600;
}
.lic-row .l-body .l-key {
  font-family: ui-monospace, 'SF Mono', monospace; font-size: 12.5px; color: var(--ink-4); margin-top: 2px;
}
.form-row .f-body span { font-size: 12.5px; color: var(--ink-4); }
.chip {
  font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 999px; white-space: nowrap;
}
.chip.ok { background: #e3f7ec; color: #1f8a5b; }
.chip.warn { background: #fff2dc; color: #b3690a; }
.chip.plan { background: var(--accent-soft); color: var(--accent-ink); }
[data-theme="dark"] .chip.ok { background: rgba(40,200,64,0.16); color: #8ef0ab; }
[data-theme="dark"] .chip.warn { background: rgba(217,119,6,0.18); color: #ffce8a; }
.form-row .f-num { text-align: right; }
.form-row .f-num strong { font-family: var(--font-display); font-size: 18px; }
.form-row .f-num span { font-size: 11.5px; color: var(--ink-4); }

@media (max-width: 860px) {
  .acct-grid { grid-template-columns: 1fr; }
  .acct-nav { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .acct-user { width: 100%; }
  .acct-nav a { flex: 0 0 auto; }
  .acct-nav .sep { display: none; }
  .acct-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   THANK YOU / CONFIRMATION
   ============================================================ */
.ty-wrap {
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  padding: 56px 0 72px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 820px 420px at 50% -12%, rgba(101,46,186,0.13), transparent 62%),
    radial-gradient(ellipse 560px 320px at 88% 112%, rgba(255,75,147,0.09), transparent 60%),
    var(--surface);
}
.ty-wrap::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 78%);
  opacity: 0.32; pointer-events: none;
}
.ty-wrap > .container { position: relative; z-index: 1; }
.ty-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.ty-badge {
  width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--brand-gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 18px 44px rgba(101,46,186,0.4); position: relative;
  animation: ty-pop .5s cubic-bezier(.34,1.5,.5,1) both;
}
.ty-badge svg { width: 42px; height: 42px; }
.ty-badge svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: ty-check .5s .3s ease forwards; }
@keyframes ty-pop { from { opacity:0; transform: scale(.7); } to { opacity:1; transform: scale(1); } }
@keyframes ty-check { to { stroke-dashoffset: 0; } }
.ty-badge::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--brand-purple); opacity: 0;
  animation: ty-ring .85s .2s ease-out forwards;
}
@keyframes ty-ring { 0% { opacity:.5; transform: scale(.9); } 100% { opacity:0; transform: scale(1.4); } }
.ty-inner h1 { font-size: clamp(28px, 3.6vw, 38px); letter-spacing: -0.03em; margin: 0 0 12px; }
.ty-inner .lede { font-size: 17px; line-height: 1.6; color: var(--ink-3); max-width: 440px; margin: 0 auto 28px; }
.ty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ty-next {
  margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; text-align: left;
}
.ty-next .n-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 18px; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ty-next .n-card:hover { border-color: var(--brand-purple); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ty-next .n-card .n-ic {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.ty-next .n-card .n-ic svg { width: 18px; height: 18px; }
.ty-next .n-card strong { display: block; font-size: 14px; color: var(--ink-1); margin-bottom: 3px; }
.ty-next .n-card span { font-size: 12.5px; color: var(--ink-4); line-height: 1.4; }
@media (max-width: 575px) { .ty-next { grid-template-columns: 1fr; } }
