/* Komi Premium Studio — shared interface colors. */
:root {
  color-scheme: dark;
  --bg: var(--komi-bg);
  --surface: var(--komi-card);
  --raised: var(--komi-panel);
  --border: rgba(255,255,255,.08);
  --border-hover: rgba(255,255,255,.22);
  --text: var(--komi-ink);
  --soft: #D3D3D6;
  --muted: var(--komi-muted);
  --white: #FFFFFF;
  --black: #09090B;
}
* { box-sizing: border-box; }
html { background: var(--bg); min-height: 100%; scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font: 400 14px/1.5 Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--komi-accent); outline-offset: 3px; }
button:disabled { cursor: not-allowed; }
[hidden] { display: none !important; }
main, .topbar { max-width: 1380px; margin: 0 auto; }
.topbar { padding: 23px clamp(16px,3.4vw,44px); display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 86px; border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: "Plus Jakarta Sans",Inter,sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -.045em; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; font: 800 25px/1 "Plus Jakarta Sans",sans-serif; border: 1px solid #fff; background: #09090B; color: #fff; border-radius: 12px; }
.brand-soft { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 22px; }
.header-actions a { text-decoration: none; font-size: 13px; font-weight: 600; }
.subtle-link { color: var(--muted); }
.subtle-link:hover { color: white; }
.back { border: 1px solid var(--border); padding: 10px 13px; border-radius: 11px; }
.back:hover { background: var(--raised); border-color: var(--border-hover); }
main { padding: 40px clamp(16px,3.4vw,44px) 128px; }
.intro { margin-bottom: 29px; }
.section-crumb, .step-number { font-weight: 700; font-size: 10px; letter-spacing: .15em; color: var(--muted); }
.section-crumb span { padding: 0 12px; opacity: .6; }
.intro-title-line { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
h1, h2 { font-family: "Plus Jakarta Sans",Inter,sans-serif; letter-spacing: -.055em; line-height: 1.15; }
h1 { margin: 13px 0 11px; font-size: clamp(32px,4.4vw,58px); font-weight: 800; }
h1 span { color: var(--muted); }
.lead { color: var(--muted); margin: 0; max-width: 600px; font-size: 14px; line-height: 1.7; }
.access-tag { flex: none; max-width: 320px; padding: 9px 13px; border: 1px solid var(--border); background: var(--surface); border-radius: 30px; color: var(--soft); font-size: 12px; font-weight: 600; }
.studio-layout { display: grid; grid-template-columns: minmax(0, 62fr) minmax(320px, 38fr); align-items: start; gap: 20px; }
.studio-controls { display: grid; gap: 20px; min-width: 0; }
.surface { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(20px,2.3vw,30px); min-width: 0; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2,.preview-heading h2 { font-size: clamp(19px,2vw,24px); margin: 8px 0 8px; font-weight: 700; }
.section-heading p { margin: 0; max-width: 530px; color: var(--muted); font-size: 12.5px; line-height: 1.65; }
.count { white-space: nowrap; font-size: 11px; color: var(--muted); border: 1px solid var(--border); padding: 6px 10px; border-radius: 99px; }
.badge-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.badge-choice { display: flex; min-width: 0; min-height: 88px; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 11px 5px; border-radius: 12px; background: rgba(255,255,255,.018); border: 1px solid var(--border); color: var(--muted); transition: background .18s,border-color .18s,transform .18s; }
.badge-choice:hover { background: rgba(255,255,255,.045); border-color: var(--border-hover); transform: translateY(-1px); }
.badge-choice[aria-pressed="true"] { border: 2px solid var(--komi-accent); background: var(--raised); padding: 10px 4px; }
.badge-choice .badge-symbol { display: inline-block; padding: 5px 7px; border-radius: 99px; font-size: 9px; font-weight: 800; letter-spacing: .015em; border: 1px solid var(--badge-fg,#fff); color: var(--badge-fg,#fff); background: var(--badge-bg,#222); max-width: 100%; white-space: nowrap; }
.badge-choice small { font-size: 10px; line-height: 1.25; color: #A4A4AA; text-align: center; overflow-wrap: anywhere; }
.badge-choice[aria-pressed="true"] small { color: white; }
.field-heading { font-size: 13px; font-weight: 600; margin: 0 0 11px; }
.status-label { margin-top: 25px; }
.gradient-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.gradient-choice { min-height: 52px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 9px 6px; background: rgba(255,255,255,.02); color: var(--text); font-weight: 700; font-size: 12px; transition: background .18s,border-color .18s; }
.gradient-choice:hover,.emoji-choice:hover,.audio-choice:hover { background: rgba(255,255,255,.06); }
.gradient-choice[aria-pressed="true"],.emoji-choice[aria-pressed="true"],.audio-choice[aria-pressed="true"] { border: 2px solid white; background: rgba(255,255,255,.06); }
.gradient-text { background: var(--nick-gradient); background-clip: text; -webkit-background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.emoji-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.emoji-choice { border-radius: 11px; padding: 0 12px; height: 40px; min-width: 42px; color: white; background: rgba(255,255,255,.025); border: 1px solid var(--border); }
.emoji-choice:first-child { font-size: 12px; }
.audio-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.audio-choice { border-radius: 13px; min-height: 109px; border: 1px solid var(--border); padding: 14px; background: rgba(255,255,255,.02); text-align: left; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.audio-choice .audio-name { color: #fff; font-size: 12px; font-weight: 700; }
.audio-choice .audio-desc { font-size: 11px; color: var(--muted); }
.audio-choice .audio-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.audio-choice .audio-wave { color: var(--muted); font-size: 16px; line-height: 1; }
.audio-select { width: 100%; min-height: 30px; border: 1px solid var(--border); border-radius: 8px; background: #202024; color: #D9D9DE; padding: 6px 9px; text-align: center; font-size: 11px; font-weight: 600; }
.audio-select:hover { background: white; color: #09090B; }
.audio-test { border-radius: 8px; padding: 7px 9px; background: #242429; color: white; border: 1px solid var(--border-hover); font-size: 11px; font-weight: 700; text-align: center; }
.audio-test:hover { background: #38383E; }
.muted { color: var(--muted); }
.mini-note { font-size: 11px; margin: 16px 0 0; }
.wallet-pill { flex: none; border-radius: 99px; padding: 9px 11px; font-size: 11px; font-weight: 700; background: #222227; border: 1px solid var(--border); color: white; font-variant-numeric: tabular-nums; }
.store-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.store-item { padding: 16px; background: rgba(255,255,255,.02); border: 1px solid var(--border); border-radius: 16px; min-height: 190px; display: flex; flex-direction: column; align-items: start; text-align: left; gap: 7px; transition: border-color .18s,background .18s; }
.store-item:hover { background: rgba(255,255,255,.048); border-color: var(--border-hover); }
.store-item.is-trying { border-color: var(--komi-accent); background: var(--raised); }
.store-item h3 { margin: 4px 0 0; font-size: 13px; font-weight: 700; }
.store-item .store-subtitle { font-size: 11px; color: var(--muted); margin: 0; }
.store-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #27272B; font-size: 17px; font-weight: 800; color: white; overflow: visible; }
.store-icon.frame-moon,.preview-avatar-frame.frame-moon,.comment-avatar.frame-moon { box-shadow: 0 0 0 3px #d4d8e6,0 0 17px 5px #c0cae577; }
.store-icon.frame-aurora,.preview-avatar-frame.frame-aurora,.comment-avatar.frame-aurora { box-shadow: 0 0 0 3px #8fdbca,0 0 17px 5px #b5a0e080; }
.store-icon img { width: 100%;height: 100%;object-fit: cover;border-radius: inherit; }
.store-title-chip,.earned-title { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 6px 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 99px; color: white; background: #202024; }
.store-title-chip { margin: 7px 0 3px; }
.store-controls { width: 100%; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 5px; }
.store-action { flex: 1 1 90px; min-height: 34px; color: white; background: #29292E; border: 1px solid #44444A; border-radius: 9px; padding: 7px 8px; font-size: 11px; font-weight: 700; }
.store-action:hover:not(:disabled) { background: white; color: var(--black); border-color: white; }
.store-action:disabled { opacity: .55; }
.store-try { background: transparent; border-color: var(--border-hover); }
.store-equipped { font-size: 10px; color: var(--soft); }
.feedback { min-height: 18px; font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.preview-column { min-width: 0; position: sticky; top: 24px; align-self: start; }
.live-preview { position: static; overflow: hidden; padding: 24px; }
.preview-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.preview-heading h2 { font-size: 23px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: white; border: 1px solid var(--border); border-radius: 99px; padding: 7px 9px; letter-spacing: .1em; font-size: 10px; font-weight: 800; }
.live-dot i { width: 6px; height: 6px; background: white; border-radius: 50%; }
.preview-hint { font-size: 12px; margin: 0 0 19px; color: var(--muted); }
.preview-profile { overflow: hidden; border: 1px solid var(--border); border-radius: 17px; background: #0E0E11; }
.preview-cover { height: 98px; display: flex; justify-content: flex-end; align-items: center; overflow: hidden; background: radial-gradient(ellipse at 65% 50%,#313136,#17171B 70%); border-bottom: 1px solid var(--border); }
.preview-cover span { font-family: "Plus Jakarta Sans",sans-serif; font-size: clamp(22px,3vw,36px); font-weight: 800; letter-spacing: -.07em; color: #77777e; margin-right: 16px; }
.cover-soft { color: #38383F; }
.preview-profile-body { padding: 0 19px 18px; }
.preview-avatar-holder { height: 31px; position: relative; }
.preview-avatar-frame { position: absolute; top: -29px; left: 0; height: 60px; width: 60px; border-radius: 50%; background: #27272A; border: 3px solid #0E0E11; display: grid; place-items: center; font-size: 21px; font-weight: 800; }
.preview-avatar-frame img,.comment-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.preview-user-row { margin: 17px 0 7px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.preview-user-row strong { font-size: 19px; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.preview-emoji { font-size: 15px; }
.preview-badge,.comment-badge { display: inline-flex; width: fit-content; max-width: 100%; border: 1px solid var(--badge-fg,#fff); background: var(--badge-bg,#26262B); color: var(--badge-fg,#fff); font-size: 9px; font-weight: 800; padding: 4px 8px; border-radius: 99px; }
.preview-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 20px; margin-top: 9px; }
.try-on-note { color: white; border: 1px dashed rgba(255,255,255,.35); border-radius: 8px; padding: 3px 8px; font-size: 10px; background: #25252A; }
.preview-caption { font-size: 11px; margin: 10px 0 0; color: var(--muted); }
.comment-preview { border: 1px solid var(--border); border-radius: 15px; margin-top: 16px; padding: 16px; background: #101013; }
.comment-header { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .09em; margin-bottom: 15px; }
.comment-row { display: flex; align-items: flex-start; gap: 10px; }
.comment-avatar { flex: none; display: grid; place-items: center; height: 36px; width: 36px; background: #242429; border-radius: 50%; font-size: 13px; font-weight: 700; }
.comment-content { flex: 1; min-width: 0; }
.comment-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.comment-byline strong { font-size: 12px; overflow-wrap: anywhere; }
.comment-badge { font-size: 8px; padding: 3px 6px; }
.comment-content p { font-size: 11px; line-height: 1.5; color: #CCCCD1; margin: 7px 0; }
.comment-time { color: var(--muted); font-size: 10px; }
.preview-actions { margin-top: 17px; }
.preview-actions .feedback { margin-bottom: 8px; }
.primary-button, #premium-checkout { min-height: 47px; padding: 13px 17px; border: 0; border-radius: 999px; display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; background: var(--komi-accent); color: var(--komi-accent-ink); font-size: 13px; font-weight: 800; text-decoration: none; transition: transform .18s,background .18s; }
.primary-button:not(:disabled):hover, #premium-checkout:hover { background: var(--komi-accent-hover); transform: translateY(-1px); }
.primary-button:disabled { opacity: .48; }
#premium-guest-login { background: var(--raised); color: var(--text); border: 1px solid var(--komi-line); }
#premium-guest-login:hover { background: var(--komi-hover); }
.fine-print { font-size: 11px; color: var(--muted); line-height: 1.7; }
.preview-actions .fine-print { margin: 10px 4px 0; }
.subscription-grid { display: grid; grid-template-columns: 1.12fr 1fr; gap: 20px; margin-top: 22px; }
.subscription-grid h2 { font-size: clamp(21px,2.3vw,29px); margin: 10px 0 11px; }
.subscription-grid p { color: var(--muted); max-width: 610px; }
.subscribe-card #premium-checkout { margin: 22px 0 12px; width: min(320px,100%); }
.perks-list { display: grid; gap: 11px; margin: 17px 0; }
.perks-list > div { display: flex; gap: 12px; align-items: center; }
.perks-list > div > span { display: grid; place-items: center; flex: none; border: 1px solid var(--border); border-radius: 10px; width: 36px; height: 36px; font-size: 17px; }
.perks-list p { margin: 0; }
.perks-list strong,.perks-list small { display: block; }
.perks-list strong { color: white; font-size: 12px; }
.perks-list small { color: var(--muted); font-size: 10px; }
footer { color: var(--muted); font-size: 11px; text-align: center; margin-top: 28px; }
@media (min-width:1025px) and (max-width:1220px) {
  .badge-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .surface { padding: 22px; }
  .audio-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:1024px) {
  .studio-layout { grid-template-columns: 1fr; }
  .preview-column { grid-row: 1; position: static; }
  .live-preview { position: static; }
  .preview-profile { max-width: 700px; }
  .badge-grid { grid-template-columns: repeat(5,minmax(0,1fr)); }
}
@media (max-width:680px) {
  .topbar { padding: 14px 16px; min-height: 70px; }
  .header-actions { gap: 9px; }
  .subtle-link { display: none; }
  .back { font-size: 11px; padding: 9px; }
  main { padding: 28px 15px 96px; }
  .intro-title-line { display: block; }
  .access-tag { width: fit-content; margin-top: 18px; }
  .studio-controls,.studio-layout { gap: 13px; }
  .surface { border-radius: 17px; padding: 18px 15px; }
  .section-heading { flex-wrap: wrap; }
  .badge-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
  .badge-choice { min-height: 78px; padding: 6px 3px; }
  .badge-choice[aria-pressed="true"] { padding: 5px 2px; }
  .badge-choice .badge-symbol { font-size: 8px; padding: 4px 5px; }
  .badge-choice small { font-size: 9px; }
  .gradient-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .audio-grid { grid-template-columns: 1fr; }
  .audio-choice { min-height: 73px; }
  .store-grid { gap: 8px; }
  .store-item { padding: 12px; }
  .subscription-grid { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width:370px) {
  .badge-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .store-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Premium purchase entry: compact CTA above the Studio, only for non-members. */
.premium-offer.surface {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  margin: 0 0 24px;
  padding: clamp(21px, 2.5vw, 30px);
  background: var(--surface);
}
.premium-offer-copy { min-width: 0; max-width: 780px; }
.premium-offer h2 { font-size: clamp(22px, 2.5vw, 30px); margin: 9px 0; }
.premium-offer-copy > p { color: var(--soft); font-size: 12.5px; line-height: 1.65; margin: 0; }
.premium-offer-copy .premium-offer-terms { color: var(--muted); font-size: 10.5px; margin-top: 9px; }
.premium-offer-action { flex: 0 0 min(260px, 30%); text-align: center; }
.premium-offer-action #premium-checkout { width: 100%; margin: 0 0 10px; }
.premium-offer-action > span { display: block; color: var(--muted); font-size: 10px; line-height: 1.5; }
.subscription-grid { display: block; }
.subscription-grid .perks-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .premium-offer.surface { flex-direction: column; align-items: stretch; gap: 18px; margin-bottom: 16px; }
  .premium-offer-action { flex-basis: auto; width: 100%; }
  .subscription-grid .perks-list { grid-template-columns: 1fr; }
}

/* Two Lava.top billing intervals (both amounts refer to the selected USD period). */
.premium-pricing{display:flex;align-items:stretch;flex-wrap:wrap;gap:10px;margin-top:14px}
.premium-pricing>span{display:flex;flex-direction:column;gap:2px;padding:13px 15px;min-width:134px;border:1px solid rgba(255,255,255,.14);border-radius:13px;background:var(--komi-panel)}
.premium-pricing strong{font-size:21px;font-weight:800;letter-spacing:-.035em;color:#fff}
.premium-pricing small{font-size:11px;font-weight:500;color:#b8b8be}
