/* TKBK Studio — the AI studio tab (app3.js) and the private club sheet, in the app's cinema language (app.css tokens):
   black void, smoked glass with a chrome edge, one acid-green light. The club *card* on the shop screen lives in app.css. */
.st-hero { --focus: 70% 45%; min-height: 400px; }
.st-balance { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px;
  padding: 12px 12px 12px 16px; border-radius: 18px; background: rgba(8,9,11,.62); border: 1px solid var(--border-2);
  box-shadow: var(--edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.st-balance b { display: block; font: 600 26px var(--mono); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.st-balance b.bump { animation: stBump .6s var(--ease); }
.st-balance span { font: 500 10px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: .12em; }
@keyframes stBump { 40% { transform: scale(1.1); color: var(--accent); text-shadow: 0 0 18px var(--accent-glow); } }
@keyframes stRise { from { opacity: 0; transform: translateY(10px); } }
.st-bonuses { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.st-bonus { padding: 7px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: rgba(8,9,11,.6);
  border: 1px solid var(--border-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: stRise .5s var(--ease) both; }
.st-bonus:not(.static):not(.pro) { border-color: var(--accent-line); color: var(--accent-2); box-shadow: 0 0 18px -8px var(--accent-glow); }
.st-bonus.pro { border-color: rgba(184,193,199,.35); color: var(--chrome); }

/* tool tiles: a frame of the example behind glass, the price in mono */
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-tool { display: flex; flex-direction: column; text-align: left; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); border: 1px solid var(--border);
  box-shadow: var(--edge); transition: transform .3s var(--ease), border-color .3s; animation: stRise .55s var(--ease) both; }
.st-tool:active { transform: scale(.975); border-color: var(--border-2); }
.st-tool.off { opacity: .4; filter: saturate(.3); }
.st-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: radial-gradient(80% 90% at 70% 30%, rgba(196,245,138,.12), transparent 70%), linear-gradient(160deg, #15181b, #0a0b0d); }
.st-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 55%, rgba(8,9,11,.55)); }
.st-media img, .st-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-play { position: absolute; z-index: 1; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid;
  place-items: center; font-size: 10px; padding-left: 2px; color: var(--accent); background: rgba(8,9,11,.72);
  border: 1px solid var(--accent-line); pointer-events: none; }
.st-jthumb { position: relative; }
.st-jthumb .st-play { right: 4px; bottom: 4px; width: 18px; height: 18px; font-size: 8px; }
.st-glyph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 32px; filter: grayscale(.4); }
.st-badge { position: absolute; z-index: 1; top: 8px; left: 8px; padding: 3px 7px; border-radius: 6px; font: 700 9px var(--mono);
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 14px -2px var(--accent-glow); }
.st-badge.static { position: static; flex: none; }
.st-info { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.st-title { font-weight: 600; font-size: 13.5px; line-height: 1.25; letter-spacing: -0.015em; }
.st-sub { font-size: 11.5px; color: var(--muted); line-height: 1.35; flex: 1; }
.st-price { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font: 600 12px var(--mono); color: var(--accent); }
.st-save { margin-left: 6px; padding: 1px 5px; border-radius: 5px; border: 1px solid currentColor; color: var(--ok);
  font: 700 10px var(--mono); white-space: nowrap; }
.st-official { margin-top: 4px; font-size: 12px; color: var(--ok); }
.st-rules { font-size: 12px; margin: 18px 2px 8px; line-height: 1.6; }

/* the tool sheet */
.st-sheet-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.st-sheet-head h3 { margin: 0; }
.st-sheet-head p { margin: 4px 0 0; font-size: 13px; }
.st-example { position: relative; margin-top: 12px; border-radius: 16px; overflow: hidden; max-height: 200px; border: 1px solid var(--border); }
.st-example img, .st-example video { width: 100%; max-height: 200px; object-fit: cover; display: block; }
.st-example span { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; font: 600 10px var(--mono);
  text-transform: uppercase; letter-spacing: .08em; background: rgba(8,9,11,.7); }
.chips.st-opts { margin: 0; padding: 2px 0; flex-wrap: wrap; overflow: visible; }
.st-enh { margin-top: 8px; }
.st-uploads { display: flex; gap: 8px; flex-wrap: wrap; }
.st-thumb { position: relative; width: 70px; height: 70px; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: rgba(255,255,255,.035); border: 1px solid var(--border-2); font-size: 22px; }
.st-thumb img { width: 100%; height: 100%; object-fit: cover; }
.st-thumb.add { border-style: dashed; border-color: var(--accent-line); color: var(--accent); font-size: 26px; }
.st-thumb.brand { opacity: .75; }
.st-thumb.brand span, .st-thumb.big span { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; padding: 1px 4px;
  background: rgba(0,0,0,.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-thumb.big { width: 88px; height: 88px; }
.st-thumb button[data-rm], .st-thumb button[data-del] { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.72); font-size: 13px; line-height: 1; }
.st-cost { font: 500 12px var(--mono); color: var(--muted); text-align: center; margin-bottom: 8px; }
.st-cost b { color: var(--accent); font-family: var(--mono); }

/* my works */
.st-job { display: flex; gap: 12px; align-items: center; padding: 10px; margin-bottom: 8px; width: 100%; text-align: left; animation: stRise .5s var(--ease) both; }
.st-job .info { flex: 1; min-width: 0; }
.st-job .t { font-weight: 600; font-size: 14px; letter-spacing: -0.015em; }
.st-job .s { font: 500 11px var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.st-job .meter { margin: 8px 0 0; }
.st-jthumb { width: 58px; height: 58px; flex: none; border-radius: 13px; overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--border); font-size: 22px; }
.st-jthumb img, .st-jthumb video { width: 100%; height: 100%; object-fit: cover; }
.pill.st-done { color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(196,245,138,.2); }
.pill.st-queued, .pill.st-running { color: var(--warn); background: rgba(233,196,106,.08); border: 1px solid rgba(233,196,106,.2); }
.pill.st-failed { color: var(--err); background: rgba(255,128,112,.08); border: 1px solid rgba(255,128,112,.2); }
.st-results { display: grid; gap: 8px; margin-top: 12px; }
.st-results.multi { grid-template-columns: 1fr 1fr; }
.st-res { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--border); }
.st-res img, .st-res video { width: 100%; display: block; max-height: 60vh; object-fit: contain; }
.st-res.audio { display: flex; align-items: center; gap: 10px; padding: 12px 52px 12px 14px;
  background: radial-gradient(80% 140% at 0% 50%, rgba(196,245,138,.1), transparent 70%), rgba(255,255,255,.03); }
.st-res.audio audio { flex: 1; min-width: 0; height: 36px; filter: invert(1) hue-rotate(180deg) saturate(.6); }
.st-track { flex: none; font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.st-dl { position: absolute; right: 8px; bottom: 8px; background: rgba(8,9,11,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.st-res.audio .st-dl { top: 50%; bottom: auto; transform: translateY(-50%); }
.st-text { padding: 14px; margin-top: 10px; }
.st-text pre { margin: 0 0 10px; white-space: pre-wrap; font: 14px/1.6 var(--font); }

/* gallery */
.st-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st-gitem { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: rgba(255,255,255,.04);
  border: 1px solid var(--border); animation: stRise .5s var(--ease) both; }
.st-gitem img, .st-gitem video { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-gmeta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 6px; padding: 22px 10px 8px;
  font: 600 11px var(--mono); background: linear-gradient(transparent, rgba(8,9,11,.9)); }

/* credits & subscriptions */
.st-sheet-art { position: relative; overflow: hidden; height: 120px; margin: -2px 0 6px; border-radius: 18px; border: 1px solid var(--border); }
.st-sheet-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; display: block; }
.st-sheet-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,9,11,.92), rgba(8,9,11,.2) 75%); }
.st-sheet-art > div { position: absolute; z-index: 1; left: 16px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.st-sheet-art .kicker { font: 600 10px var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: .2em; }
.st-sheet-art b { font: 600 26px var(--mono); letter-spacing: -0.05em; }
.st-packs { margin-top: 14px; }
.st-packs .tariff { position: relative; text-align: left; }
.st-pro, .st-plan { margin-top: 10px; padding: 16px; border-color: var(--border-2);
  background: radial-gradient(120% 80% at 100% 0%, rgba(196,245,138,.08), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012)); }
.st-pro-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; }
.st-pro-h span { font: 600 13px var(--mono); color: var(--accent); }
.st-pro ul, .st-plan ul { margin: 10px 0 12px; padding-left: 18px; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.st-pro li b, .st-plan li b { color: var(--text); }
.st-plan.chatplan { border-color: rgba(184,193,199,.25); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); }
.st-plan.biz { border-color: var(--accent-line); background: radial-gradient(120% 90% at 100% 0%, rgba(196,245,138,.16), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012)); }
.st-plan.on { box-shadow: inset 0 0 0 1.5px var(--accent), 0 16px 36px -20px var(--accent-glow); }
.st-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.st-toggle.sm { display: flex; margin: 0 0 10px; font-size: 12.5px; }
.st-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.st-row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.st-tx { display: flex; justify-content: space-between; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.st-tx small { display: block; font: 500 10.5px var(--mono); color: var(--dim); }
.st-tx b { font-family: var(--mono); }
.st-tx b.plus { color: var(--accent); }
.st-ch { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; margin-bottom: 8px; }
.st-steps { font-size: 13px; margin: 0 0 10px; padding-left: 18px; line-height: 1.6; }
.st-inline { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--muted); }
.st-inline select { width: auto; margin-left: 6px; padding: 8px 10px; }
@media (min-width: 520px) { .st-grid { grid-template-columns: repeat(3, 1fr); } .st-gal { grid-template-columns: repeat(3, 1fr); } }

/* trends: one-tap templates as film stills */
.st-trends { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.st-trends::-webkit-scrollbar { display: none; }
.st-trend { position: relative; flex: none; width: 130px; height: 176px; border-radius: 18px; overflow: hidden; text-align: left;
  background: linear-gradient(160deg, #15181b, #0a0b0d); border: 1px solid var(--border); box-shadow: var(--edge);
  transition: transform .3s var(--ease); animation: stRise .55s var(--ease) both; }
.st-trend:active { transform: scale(.96); }
.st-trend img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-trend span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; font-size: 12px; font-weight: 600; line-height: 1.3;
  background: linear-gradient(transparent, rgba(8,9,11,.92)); }
.st-guide { padding: 14px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 10px; }
.st-guide-h { display: flex; gap: 12px; align-items: flex-start; }
.st-guide-h > span { font-size: 26px; line-height: 1; }
.st-guide .btn { align-self: flex-start; }
.bundle-card { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; margin-top: 14px; text-align: left;
  border-color: var(--accent-line); background: radial-gradient(120% 100% at 0% 0%, rgba(196,245,138,.12), transparent 60%), rgba(255,255,255,.03); }
.bundle-card .btn { flex: none; white-space: nowrap; }
.bundle-card s { font-size: 11px; margin-right: 3px; }

/* ---------- private club sheet ---------- */
.club-lock.big { width: 56px; height: 56px; font-size: 26px; border-radius: 18px; }
.club-head { display: flex; gap: 14px; align-items: center; }
.club-head h3 { margin: 0; } .club-head p { margin: 4px 0 0; font-size: 13px; }
.club-feats { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.club-feats li { padding: 11px 13px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--edge); font-size: 14px; }
.club-secs { display: grid; gap: 8px; margin: 14px 0; }
.club-sec { display: flex; gap: 12px; padding: 12px; border-radius: 15px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--edge); }
.club-sec > span { font-size: 22px; line-height: 1.2; }
.club-sec b { font-size: 14.5px; } .club-sec p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.club-h { font-weight: 650; letter-spacing: -0.02em; margin: 20px 2px 8px; }
.club-save { display: grid; gap: 6px; }
.club-save > div { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 10px; align-items: baseline; padding: 10px 12px;
  border-radius: 13px; background: var(--accent-soft); border: 1px solid rgba(196,245,138,.2); font-size: 13px; }
.club-save span { grid-column: 1 / -1; font-weight: 600; }
.club-save s { color: var(--dim); } .club-save b { color: var(--accent); font-family: var(--mono); }
.club-save i { font-style: normal; font: 700 13px var(--mono); color: var(--accent-2); justify-self: end; }
.club-note { font-size: 13px; color: var(--accent); margin: 8px 2px 0; }
.club-goal { margin-top: 16px; padding: 14px; border-radius: 18px; border: 1px solid var(--accent-line);
  background: radial-gradient(120% 100% at 100% 0%, rgba(196,245,138,.12), transparent 60%), rgba(255,255,255,.03); }
.club-goal b { font-size: 15.5px; } .club-goal ol { margin: 8px 0; padding-left: 20px; font-size: 13.5px; line-height: 1.6; }
.club-goal p { margin: 0; font-size: 12.5px; color: var(--muted); }

/* AI chat sheet (app3.js openChat): the user's turns on the right in acid-green glass, the model's on the left */
.st-chat { display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; margin: 12px 0 10px;
  padding: 2px; overscroll-behavior: contain; }
.st-msg { max-width: 92%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-wrap: break-word;
  border: 1px solid var(--border); background: rgba(255,255,255,.035); animation: stRise .35s var(--ease) both; }
.st-msg.me { align-self: flex-end; border-color: var(--accent-line); background: var(--accent-soft); }
.st-msg.ai { align-self: flex-start; }
.st-msg pre { white-space: pre-wrap; overflow-x: auto; font: 12.5px var(--mono); margin: 6px 0; }
.st-msg code { font-family: var(--mono); font-size: 12.5px; }
.st-msg small { display: block; margin-top: 6px; font: 500 10.5px var(--mono); color: var(--dim); }
.st-msg .btn { margin-top: 8px; }
.st-chat-empty { font-size: 13px; text-align: center; padding: 18px 8px; }
