:root {
  color-scheme: dark;
  --bg: #08080a;
  --panel: #111114;
  --panel2: #151519;
  --line: #2a2a31;
  --text: #f6f6f7;
  --muted: #92929e;
  --accent: #ff5c35;
  --accent2: #ff8b4a;
  --good: #6ee7a5;
  --danger: #ff7171;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -10%, rgba(255,92,53,.15), transparent 32rem),
    radial-gradient(circle at 90% 8%, rgba(255,139,74,.08), transparent 28rem),
    var(--bg);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 44px 0 64px; }
.hero { padding: 18px 4px 30px; }
.brandRow { display: flex; align-items: center; gap: 14px; }
.mark {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #0b0b0c;
  font-weight: 1000; font-size: 27px; box-shadow: 0 10px 40px rgba(255,92,53,.22);
}
.eyebrow { color: var(--accent2); font-size: 11px; letter-spacing: .15em; font-weight: 850; }
h1 { margin: 2px 0 0; font-size: clamp(28px, 5vw, 48px); line-height: .98; letter-spacing: -.04em; }
.badge { margin-left: auto; align-self: flex-start; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); padding: 7px 10px; border-radius: 999px; font-size: 12px; }
.lede { max-width: 720px; color: #b9b9c1; font-size: 17px; margin: 18px 0 0 66px; }
.panel { border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 80%), var(--panel); border-radius: var(--radius); box-shadow: 0 24px 70px rgba(0,0,0,.25); }
.formPanel { padding: 22px; }
.modeTabs { display: flex; gap: 7px; flex-wrap: wrap; padding: 4px; background: #0c0c0f; border: 1px solid var(--line); border-radius: 13px; width: fit-content; margin-bottom: 20px; }
.tab { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 9px 14px; font-weight: 750; }
.tab.active { background: #232329; color: #fff; box-shadow: inset 0 0 0 1px #35353d; }
.grid { display: grid; gap: 14px; }
.basicGrid { grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
.advancedGrid { grid-template-columns: repeat(2, 1fr); padding-top: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field > span { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #c2c2c9; }
.field small { color: var(--muted); }
input, select, textarea {
  width: 100%; border: 1px solid #303038; background: #0b0b0e; color: var(--text);
  border-radius: 11px; padding: 12px 13px; outline: none; transition: .15s ease;
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,92,53,.11); }
.advanced { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.advanced summary { color: #dddde2; font-weight: 800; cursor: pointer; user-select: none; }
.advanced summary span { margin-left: 8px; color: var(--muted); font-weight: 500; font-size: 13px; }
.actionRow { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.generate {
  position: relative; min-width: 190px; border: 0; border-radius: 12px; padding: 14px 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #0a0a0b;
  font-weight: 950; letter-spacing: .025em; box-shadow: 0 12px 30px rgba(255,92,53,.2);
}
.generate:disabled { opacity: .65; cursor: progress; }
.spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(0,0,0,.3); border-top-color: #000; border-radius: 50%; animation: spin .75s linear infinite; }
.loading .buttonLabel { display: none; }
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { color: var(--muted); font-size: 14px; }
.status.error { color: var(--danger); }
.results { margin-top: 28px; display: grid; gap: 14px; }
.hidden { display: none !important; }
.resultHeader { display: flex; align-items: end; justify-content: space-between; padding: 10px 4px 4px; gap: 16px; }
.resultHeader h2 { font-size: clamp(28px, 5vw, 44px); margin: 3px 0 0; letter-spacing: -.035em; }
.secondary, .copyBtn { border: 1px solid #383840; background: #16161a; color: #ececf0; border-radius: 9px; padding: 8px 12px; }
.secondary:hover, .copyBtn:hover { border-color: #555560; background: #1e1e23; }
.summaryCard { display: flex; flex-wrap: wrap; gap: 8px; }
.summaryCard span { border: 1px solid var(--line); background: #101013; color: #bbbbc4; border-radius: 999px; padding: 7px 11px; font-size: 13px; }
.outputCard { padding: 18px; }
.cardTitle { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.cardTitle h3 { margin: 0; font-size: 12px; letter-spacing: .12em; color: var(--accent2); }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 500 15px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #e7e7eb; }
.hookCard pre { font-size: 19px; font-family: inherit; font-weight: 800; }
.lyricsCard pre { line-height: 1.75; }
footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #6f6f79; font-size: 12px; padding: 24px 5px 0; }
@media (max-width: 800px) {
  .basicGrid, .advancedGrid { grid-template-columns: 1fr 1fr; }
  .lede { margin-left: 0; }
  .badge { display: none; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 20px, 1120px); padding-top: 22px; }
  .basicGrid, .advancedGrid { grid-template-columns: 1fr; }
  .formPanel { padding: 15px; }
  .resultHeader { align-items: flex-start; }
  .brandRow { align-items: flex-start; }
  .mark { width: 44px; height: 44px; border-radius: 12px; }
}

/* v0.2 */
.historyPanel { margin-top: 18px; padding: 18px; }
.historyHeader { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.historyHeader h2 { margin: 3px 0 0; font-size: 22px; }
.historyNote { color: var(--muted); font-size: 13px; margin: 8px 0 14px; }
.historyList { display: grid; gap: 8px; }
.historyItem {
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px;
  border: 1px solid #2c2c33; background: #0d0d10; border-radius: 12px; padding: 5px 7px 5px 5px;
}
.historyItem.active { border-color: rgba(239,59,67,.7); box-shadow: inset 0 0 0 1px rgba(193,29,37,.16); }
.historyLoad { border: 0; background: transparent; color: #fff; text-align: left; padding: 8px 10px; min-width: 0; }
.historyLoad strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.historyLoad span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.historyFeedback { width: 28px; text-align: center; }
.historyDelete { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #777783; font-size: 20px; line-height: 1; }
.historyDelete:hover { background: #242429; color: var(--danger); }
.dangerGhost:hover { color: var(--danger); border-color: rgba(255,113,113,.5); }

.feedbackBar { padding: 12px 15px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.feedbackBar > span { color: #bdbdc5; font-size: 13px; font-weight: 700; }
.feedbackButtons { display: flex; gap: 7px; flex-wrap: wrap; }
.feedbackButtons button, .regenBtn {
  border: 1px solid #383840; background: #151519; color: #d7d7dc; border-radius: 9px; padding: 8px 11px;
}
.feedbackButtons button:hover, .regenBtn:hover { background: #202025; border-color: #555560; }
.feedbackButtons button.active { border-color: var(--accent); color: #fff; background: rgba(193,29,37,.13); }
.regenBtn { color: var(--accent2); }
.regenBtn:disabled { opacity: .55; cursor: progress; }
.cardActions { display: flex; gap: 7px; align-items: center; }

@media (max-width: 560px) {
  .historyHeader, .feedbackBar { align-items: flex-start; flex-direction: column; }
  .cardTitle { align-items: flex-start; }
  .cardActions { flex-wrap: wrap; justify-content: flex-end; }
}

/* v0.3 */
.toolbarRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbarRow .modeTabs { margin-bottom: 0; }
.surpriseBtn { color: var(--accent2); }
.resultActions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.titleWithMeta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.charCount {
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: #0d0d10;
  border-radius: 999px;
  padding: 4px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.charCount.over { color: var(--danger); border-color: rgba(255,113,113,.55); background: rgba(255,113,113,.08); }
#cancelEditButton { color: #c8c8cf; }
@media (max-width: 800px) {
  .resultHeader { align-items: flex-start; flex-direction: column; }
  .resultActions { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .toolbarRow { align-items: stretch; }
  .surpriseBtn { width: 100%; }
  .resultActions { width: 100%; }
  .resultActions .secondary { flex: 1 1 auto; }
}


/* v0.4 API cost counter */
.costBar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 18px;
}
.costBar > div {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
.costBar span {
  display: block;
  color: var(--muted, #9a9aa3);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 5px;
}
.costBar strong {
  display: block;
  font-size: 16px;
  overflow-wrap: anywhere;
}
.costBar .tokenMeta strong { font-size: 13px; font-weight: 600; }
@media (max-width: 800px) { .costBar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .costBar { grid-template-columns: 1fr; } }


/* v0.4.1 Suno-first result flow */
.projectDetails {
  border: 1px solid var(--line);
  background: #0d0d10;
  border-radius: 14px;
  padding: 0 14px;
}
.projectDetails summary {
  cursor: pointer;
  padding: 12px 2px;
  color: #d5d5dc;
  font-weight: 750;
  list-style: none;
}
.projectDetails summary::-webkit-details-marker { display: none; }
.projectDetails summary::after { content: "+"; float: right; color: #8d8d98; }
.projectDetails[open] summary::after { content: "–"; }
.projectDetails summary span { color: #777782; font-weight: 500; margin-left: 8px; font-size: 12px; }
.projectDetails .summaryCard { padding: 0 0 13px; }
.stepBadge {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #17171b;
  color: #b9b9c3;
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}
.primaryOutput { border-color: #34343d; }

/* v0.5 online auth + quota + admin */
.authPanel, .sessionBar, .adminPanel { padding: 20px; margin-bottom: 18px; }
.authHeader, .sessionBar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.authHeader h2 { margin: 3px 0 0; font-size: 24px; }
.quotaBadge { border: 1px solid rgba(110,231,165,.35); background: rgba(110,231,165,.08); color: var(--good); padding: 8px 11px; border-radius: 999px; font-size: 12px; font-weight: 850; }
.authTabs { margin: 14px 0; }
.authForm { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.authButton { min-width: 150px; height: 44px; }
.authHelp { margin-top: 9px; }
.linkButton { appearance: none; border: 0; background: transparent; color: var(--accent2); padding: 0; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.linkButton:hover { text-decoration: underline; }
.authFormReset { grid-template-columns: minmax(240px, 1fr) auto auto; }
#authStatus { display: block; margin-top: 12px; }
.sessionBar { padding: 13px 16px; }
.sessionBar strong { display: block; margin-top: 3px; }
.sessionActions { display: flex; align-items: center; gap: 9px; }
.promptCounter { border: 1px solid var(--line); background: #0b0b0e; border-radius: 11px; padding: 7px 12px; min-width: 100px; text-align: center; }
.promptCounter span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.promptCounter strong { margin: 1px 0 0; font-size: 19px; color: var(--good); }
.promptCounter.empty strong { color: var(--danger); }
.adminPanel { margin-top: 18px; }

.adminStats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 8px;
}
.adminStatCard {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: rgba(255,255,255,.018);
  min-width: 0;
}
.adminStatCard span {
  display: block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.adminStatCard strong {
  display: block;
  margin-top: 5px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.05;
}
.adminStatCard small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}
.adminStatsNote { margin-top: 0; }
@media (max-width: 900px) {
  .adminStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .adminStats { grid-template-columns: 1fr; }
}
.adminTableWrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.adminTable { width: 100%; border-collapse: collapse; min-width: 760px; }
.adminTable th, .adminTable td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.adminTable th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .07em; background: #0d0d10; }
.adminTable tbody tr:last-child td { border-bottom: 0; }
.grantButton { color: var(--good); white-space: nowrap; }
.grantButton:disabled { opacity: .45; cursor: default; }
@media (max-width: 760px) {
  .authForm, .authFormReset { grid-template-columns: 1fr; }
  .authHeader, .sessionBar { align-items: flex-start; flex-direction: column; }
  .sessionActions { width: 100%; flex-wrap: wrap; }
  .promptCounter { flex: 1 1 100px; }
}

/* v0.5.3 VTK branding */
:root {
  --bg: #070708;
  --panel: #101012;
  --panel2: #151517;
  --line: #2d292b;
  --text: #f7f5f5;
  --muted: #999398;
  --accent: #c11d25;
  --accent2: #ef3b43;
  --good: #6ee7a5;
  --danger: #ff6868;
}
body {
  background:
    radial-gradient(circle at 8% -8%, rgba(193,29,37,.22), transparent 34rem),
    radial-gradient(circle at 92% 0%, rgba(239,59,67,.09), transparent 30rem),
    linear-gradient(180deg, rgba(125,0,8,.04), transparent 22rem),
    var(--bg);
}
.hero { padding-top: 8px; }
.brandRow { gap: 16px; }
.brandLogo {
  width: 76px;
  height: 76px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 1px solid rgba(239,59,67,.4);
  box-shadow: 0 0 0 3px rgba(193,29,37,.08), 0 12px 36px rgba(193,29,37,.24);
}
.eyebrow { color: var(--accent2); }
h1 { text-shadow: 0 2px 24px rgba(193,29,37,.12); }
.lede { margin-left: 92px; }
.brandNote {
  margin: 7px 0 0 92px;
  color: #777177;
  font-size: 12px;
  letter-spacing: .025em;
}
.panel {
  border-color: #302a2d;
  box-shadow: 0 24px 70px rgba(0,0,0,.32);
}
.tab.active {
  background: linear-gradient(180deg, rgba(193,29,37,.2), rgba(193,29,37,.08));
  box-shadow: inset 0 0 0 1px rgba(239,59,67,.34);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(193,29,37,.16);
}
.generate {
  background: linear-gradient(135deg, #a8151d, #e5323a);
  color: #fff;
  box-shadow: 0 12px 34px rgba(193,29,37,.28), inset 0 1px 0 rgba(255,255,255,.13);
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
.generate:hover { filter: brightness(1.08); }
.spinner { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
.secondary:hover, .copyBtn:hover, .feedbackButtons button:hover, .regenBtn:hover {
  border-color: rgba(239,59,67,.55);
  background: rgba(193,29,37,.09);
}
.regenBtn, .surpriseBtn { color: #f16c72; }
.cardTitle h3 { color: #ef5a61; }
.stepBadge {
  border-color: rgba(239,59,67,.32);
  background: rgba(193,29,37,.12);
  color: #f3a1a5;
}
.historyItem.active {
  border-color: rgba(239,59,67,.65);
  box-shadow: inset 0 0 0 1px rgba(193,29,37,.16);
}
.feedbackButtons button.active {
  border-color: var(--accent2);
  background: rgba(193,29,37,.15);
}
.badge {
  border-color: rgba(239,59,67,.22);
  background: rgba(193,29,37,.07);
  color: #a99fa3;
}
@media (max-width: 800px) {
  .lede, .brandNote { margin-left: 0; }
}
@media (max-width: 560px) {
  .brandLogo { width: 58px; height: 58px; }
}

/* v0.5.5 title-copy safeguard */
.resultTitleRow { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.resultTitleRow h2 { margin:0; }
.compactBtn { padding:8px 12px; min-height:auto; }
.helperTag { font-size:11px; opacity:.55; font-weight:600; text-transform:none; letter-spacing:0; }
.charCount.over { color:#ff4b4b; font-weight:800; }

/* v0.6 Studio Credits + Stripe */
.paymentNotice {
  margin-bottom: 18px;
  padding: 13px 16px;
  border-color: rgba(110,231,165,.34);
  background: rgba(110,231,165,.06);
  color: #bff5d5;
  font-weight: 700;
}
.paymentNotice.error {
  border-color: rgba(255,104,104,.4);
  background: rgba(255,104,104,.06);
  color: #ffb1b1;
}
.pricingPanel { padding: 0; margin-bottom: 18px; scroll-margin-top: 20px; overflow: hidden; }
.pricingSummary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.pricingSummary::-webkit-details-marker { display: none; }
.pricingSummary::marker { content: ""; }
.pricingSummary h2 { margin: 3px 0 2px; font-size: 22px; }
.pricingSummary .historyNote { display: block; margin-top: 4px; }
.pricingSummaryRight { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.pricingChevron {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #343036;
  border-radius: 999px;
  color: #f4eff2;
  font-size: 22px;
  line-height: 1;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.pricingPanel[open] .pricingChevron { transform: rotate(180deg); border-color: rgba(239,59,67,.5); background: rgba(239,59,67,.08); }
.pricingPanel[open] .pricingSummary { border-bottom: 1px solid #29262a; }
.pricingBody { padding: 0 20px 20px; }
.pricingIntro { margin-top: 14px; }
.pricingMini {
  border: 1px solid rgba(110,231,165,.3);
  background: rgba(110,231,165,.07);
  color: var(--good);
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}
.pricingGrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 15px; }
.priceCard {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border: 1px solid #302c2e;
  background: linear-gradient(180deg, #121214, #0c0c0e);
  border-radius: 15px;
  padding: 17px;
  min-width: 0;
}
.priceCard.featured {
  border-color: rgba(239,59,67,.48);
  box-shadow: inset 0 0 0 1px rgba(193,29,37,.12), 0 14px 36px rgba(193,29,37,.08);
}
.priceLabel { color: var(--accent2); font-size: 10px; letter-spacing: .12em; font-weight: 900; }
.price { font-size: 30px; line-height: 1; margin: 5px 0; }
.songCount { color: #f1eff0; font-weight: 780; }
.creditCount { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.priceCard .generate { margin-top: auto; min-height: 42px; }
.pricingFoot { color: #777177; font-size: 11px; margin: 12px 2px 0; }
.buyCreditsTop { color: var(--accent2); }
.inviteAdminBox {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border: 1px solid #302c2e;
  background: #0d0d10;
  border-radius: 12px;
  padding: 13px 14px;
  margin: 10px 0;
}
.inviteAdminBox strong, .inviteAdminBox span { display: block; }
.inviteAdminBox span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.inviteResult { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 9px 0 12px; }
.inviteResult input { min-width: 0; }
@media (max-width: 760px) {
  .pricingSummary { align-items: flex-start; }
  .pricingSummaryRight { flex-direction: column; align-items: flex-end; gap: 8px; }
  .pricingMini { white-space: normal; text-align: right; }
  .pricingGrid { grid-template-columns: 1fr; }
  .inviteAdminBox { align-items: flex-start; flex-direction: column; }
  .inviteResult { grid-template-columns: 1fr; }
}

/* v0.6.2 legal + privacy-by-design */
.historyConsentRow { display:flex; gap:9px; align-items:flex-start; margin-top:12px; color:var(--muted); font-size:11px; line-height:1.45; }
.historyConsentRow input { width:auto; margin-top:2px; }
.checkoutDialog { width:min(620px, calc(100% - 24px)); border:1px solid #3b3033; border-radius:16px; background:linear-gradient(180deg,#151216,#0d0d10); color:var(--text); padding:0; box-shadow:0 28px 90px rgba(0,0,0,.62); }
.checkoutDialog::backdrop { background:rgba(0,0,0,.72); backdrop-filter:blur(3px); }
.checkoutDialog form { padding:22px; }
.checkoutDialog h2 { margin:4px 0 14px; }
.checkoutSummary { display:grid; grid-template-columns:1fr auto; gap:4px 14px; align-items:end; border:1px solid #332d30; background:#0c0c0f; border-radius:12px; padding:14px; margin-bottom:14px; }
.checkoutSummary strong:first-child { font-size:17px; }
.checkoutSummary span { grid-column:1 / 2; color:var(--muted); font-size:12px; }
.checkoutSummary strong:last-child { grid-row:1 / span 2; grid-column:2; font-size:24px; color:#fff; }
.legalSmall { color:#9e969a; font-size:11px; line-height:1.5; }
.legalSmall a,.legalCheck a { color:#ef7a80; }
.legalCheck { display:flex; align-items:flex-start; gap:9px; margin:12px 0; color:#ddd7da; font-size:12px; line-height:1.45; }
.legalCheck input { width:auto; flex:none; margin-top:3px; }
.dialogActions { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
.legalFooter { display:flex; flex-direction:column; gap:9px; margin-top:32px; padding:22px 4px 10px; border-top:1px solid #2b2729; color:#777177; font-size:11px; }
.legalFooter nav { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.legalFooter a { color:#b9b0b4; text-decoration:none; }
.legalFooter a:hover { color:#fff; }
.legalFooter .withdrawAction { color:#fff; background:#a8151d; border-radius:999px; padding:7px 10px; font-weight:850; }
@media (max-width:560px) { .dialogActions { flex-direction:column-reverse; } .dialogActions button { width:100%; } }

.adminSubHeader{margin-top:28px}.withdrawalTable code{white-space:normal;word-break:break-word;font-size:.78rem}.withdrawalActionBtn{margin:2px;padding:7px 9px;font-size:.72rem}.withdrawalTable small{opacity:.75}
