/* Premium controls share the warm product surfaces; purple marks paid personalization. */
.premium-name { background: linear-gradient(105deg,var(--nick-a),var(--nick-b)); background-clip:text; -webkit-background-clip:text; color:transparent; -webkit-text-fill-color:transparent; -webkit-text-stroke:.35px #49344c88; filter:drop-shadow(0 1px 1px #35223a30); padding:0 1px; box-decoration-break:clone; }
[data-theme='dark'] .premium-name { -webkit-text-stroke:.2px #fff2; filter:drop-shadow(0 1px 1px #0005); }
.premium-item-badge,.nick-style-link span { display:inline-block; padding:3px 6px; border-radius:7px; background:#eee7ff; color:#6334b6; font-size:10px; font-weight:700; vertical-align:middle; }
.nick-style-link { display:flex; align-items:center; gap:6px; color:var(--fg-muted); font-size:11px; min-height:44px; text-align:left; margin-top:4px; }
.nick-editor { padding:18px; margin:16px 0; }
.nick-editor-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.nick-editor-head h3 { font-size:18px; font-weight:700; }
.nick-preview { display:grid; place-items:center; min-height:80px; background:var(--surface-2); border:1px solid var(--border); border-radius:16px; margin:12px 0; font-size:28px; font-weight:800; overflow-wrap:anywhere; padding:12px; }
.nick-colors { display:flex; gap:16px; margin:16px 0; }
.nick-colors label { display:flex; flex:1; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--fg-muted); }
.nick-colors input { width:48px; height:44px; padding:3px; background:var(--surface); border:1px solid var(--border-strong); border-radius:10px; }
.nick-presets { display:flex; flex-wrap:wrap; gap:8px; }
.nick-presets button { width:46px; height:46px; padding:5px; border:1px solid var(--border-strong); border-radius:13px; background:var(--surface); }
.nick-presets button span { display:block; height:100%; border-radius:8px; background:linear-gradient(110deg,var(--preset-a),var(--preset-b)); }
.nick-editor-actions { display:flex; gap:8px; margin-top:16px; }
.nick-editor-actions .btn { flex:1; padding-inline:12px; font-size:13px; }
body.has-pro-sheet { overflow:hidden; --z-toast:330; }
#paywall.pro-modal {
  display:block;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:var(--bg-base);
  padding:calc(var(--safe-t) + 14px) 16px calc(var(--safe-b) + 20px);
}
.pro-sheet { width:100%; max-width:512px; margin:0 auto; color:var(--fg); }
.pro-sheet-head { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.pro-sheet-head h2 { font-size:21px; font-weight:800; }
#pro-sub { font-size:13px; color:var(--fg-muted); margin-top:3px; line-height:1.4; }
.pro-sheet-head .icon-btn { flex:none; min-width:44px; min-height:44px; background:var(--surface-2); border-radius:14px; }
.pro-hero {
  position:relative; isolation:isolate; overflow:hidden;
  display:grid; align-content:center; justify-items:start; gap:10px;
  min-height:156px; margin-bottom:14px; padding:17px 39% 17px 18px;
  border-radius:22px; color:#fff8f2;
  background:radial-gradient(ellipse at 96% 0%, #e8675b, transparent 58%),
             linear-gradient(114deg, #281434 15%, #68305e 67%, #913460);
}
.pro-hero h3 { font-size:clamp(23px, 6.7vw, 35px); line-height:1.07; font-weight:800; text-wrap:balance; }
.pro-hero__eyebrow { display:flex; align-items:center; gap:5px; color:#ffe0c4; font-size:11px; font-weight:800; }
.pro-hero__art { position:absolute; z-index:-1; right:-2%; top:50%; width:45%; max-width:204px; transform:translateY(-50%); pointer-events:none; }
@media (prefers-reduced-motion:no-preference) {
  .pro-hero__art { animation:pro-art-in 400ms ease-out both; }
  @keyframes pro-art-in {
    from { opacity:0; transform:translateY(-43%) rotate(-8deg) scale(.92); }
    to { opacity:1; transform:translateY(-50%) rotate(0) scale(1); }
  }
}
.pro-benefits {
  display:grid; gap:6px; margin-bottom:14px;
}
.pro-benefit {
  display:flex; align-items:center; gap:10px; min-height:45px; padding:6px 10px;
  border:1px solid var(--border); border-radius:13px; background:var(--surface); font-size:14px; font-weight:600;
}
.pro-benefit--practice { --benefit-color:#cc4d1d; }
.pro-benefit--review { --benefit-color:#1c816f; }
.pro-benefit--style { --benefit-color:#8551be; }
.pro-benefit__icon {
  display:grid; place-items:center; width:32px; height:32px; flex:none; border-radius:9px;
  background:color-mix(in srgb, var(--benefit-color) 14%, var(--surface));
  color:color-mix(in srgb, var(--benefit-color) 65%, var(--fg));
}
.pro-benefit .ico { width:17px; height:17px; }
.pro-plan-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; margin-bottom:12px; }
.pro-plan.plan { display:flex; flex-direction:column; align-items:flex-start; gap:5px; min-width:0; padding:12px; border:1.5px solid var(--border); border-radius:16px; box-shadow:none; }
.pro-plan.plan.is-selected { border-color:#8452cc; background:#f2ebff; color:#2d1749; }
[data-theme='dark'] .pro-plan.plan.is-selected { background:#3a2850; color:#faf3ff; }
.pro-plan-title { font-size:11px; font-weight:600; line-height:1.4; }
.pro-plan-price { display:flex; align-items:center; gap:5px; font-size:23px; font-weight:800; }
.pro-plan-price .ico { width:17px; height:17px; color:#a77a20; }
.pro-plan-note { font-size:9px; color:var(--fg-muted); }
#paywall .pro-action.btn {
  width:100%; min-height:50px; padding:10px 14px;
  background:linear-gradient(105deg, #b73616, #a32c54); color:#fff;
  border-radius:14px; font:650 15px/1.35 var(--font-body);
  letter-spacing:0; text-decoration:none;
}
.pro-payment-note,.pro-ownership-note { font-size:13px; line-height:1.5; color:var(--fg-muted); text-align:center; margin-top:10px; }
.pro-ownership-note { margin-bottom:10px; }
.pro-details { font-size:13px; color:var(--fg-muted); }
.pro-details summary { min-height:44px; cursor:pointer; display:flex; align-items:center; justify-content:center; list-style:none; }
.pro-details summary::after { content:'⌄'; padding-left:6px; }
.pro-details p { line-height:1.6; margin:8px 0; }
.pro-legal { display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:8px; }
.pro-legal :is(a,button) { display:inline-flex; align-items:center; min-height:44px; color:var(--accent-text); text-decoration:underline; }
#legal { z-index:320; }
.pro-rubles {
  margin:12px 0; padding:14px; border:1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius:18px; background:linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface) 75%);
  font:400 14px/1.45 var(--font-body); letter-spacing:0;
}
.pro-rubles > b { font-size:16px; font-weight:650; }
.pro-rubles > p { margin:0 0 12px; }
.pro-rubles > .pro-payment-note { margin:10px 0 0; font-size:12px; line-height:1.45; }
.pro-price { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 9px; }
.pro-price strong {
  font-size:clamp(32px, 8vw, 39px); font-weight:750; line-height:1.08;
  letter-spacing:-.025em; font-variant-numeric:tabular-nums;
}
.pro-price span { font-weight:500; }
.pro-price span,.pro-price-note { font-size:13px; color:var(--fg-muted); }
.pro-rubles > .text-link { min-height:44px; display:block; width:100%; margin-top:8px; }

.profile-subscription { margin:0 0 12px; }
.profile-subscription__action {
  display:grid; grid-template-columns:36px minmax(0,1fr) 16px; align-items:center; gap:10px;
  width:100%; min-height:66px; padding:10px 12px; text-align:start;
  border:1px solid var(--border); border-radius:16px;
  background:var(--surface); color:var(--fg);
}
.profile-subscription--active .profile-subscription__action {
  border-color:transparent; color:#fff8f2;
  background:radial-gradient(ellipse at 100% 0%, #be545b 0, transparent 49%), linear-gradient(114deg, #281434 15%, #68305e 72%, #793457);
}
.profile-subscription__mark {
  display:grid; place-items:center; height:36px; border-radius:11px;
  color:var(--accent-text); background:var(--accent-soft);
  font:800 26px/1 var(--font-head);
}
.profile-subscription--active .profile-subscription__mark {
  color:#4d213e; background:linear-gradient(145deg,#ffedbd,#ffb671 53%,#f38aa0);
}
.profile-subscription__copy { display:grid; gap:3px; }
.profile-subscription__copy strong { font:800 16px/1.22 var(--font-head); }
.profile-subscription__meta {
  display:flex; flex-wrap:wrap; gap:2px 8px;
  color:var(--fg-muted); font-size:11px; line-height:1.4;
}
.profile-subscription__meta span + span::before { content:'·'; margin-inline-end:8px; }
.profile-subscription--active .profile-subscription__meta { color:#ffe6e3; }
.profile-subscription__action > .ico { width:16px; height:16px; }
.profile-subscription .profile-payment-result {
  margin:6px 0 0; padding:8px 10px; border-radius:10px;
  background:var(--surface-2); color:var(--fg-muted); font-size:12px; line-height:1.4;
}
.pro-rubles a.pro-action { text-decoration:none; }

.pro-promo { margin: 0 0 14px; font-size: 14px; }
.pro-promo label { display: block; margin-bottom: 5px; font-weight: 700; }
.pro-promo__row { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-promo__row input {
  flex: 1 1 120px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}
.pro-promo__row button { min-height: 44px; }
.pro-promo [data-rub-promo-message]:not(:empty) { display: block; margin-top: 7px; }
.pro-promo [data-clear-rub-promo] { margin-inline-start: 8px; }
