@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700&family=Instrument+Sans:wght@400;500;600&display=swap');

:root {
  --bg:      #111113;
  --surface: #1B1B1F;
  --raised:  #24242A;
  --ink:     #F2F2F5;
  --muted:   #A1A1AA;
  --line:    #2E2E35;
  --accent:  #2F6FEB;
  --accent-ink: #93C5FD;
  --soft:    #14254A;
  --gold:    #F5C542;
  --danger:  #F87171;
  --success: #4ADE80;
  --fd: "Bricolage Grotesque", sans-serif;
  --fb: "Instrument Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--fb);
  min-height: 100vh;
}

a { color: var(--accent-ink); }

/* ── Layout ── */
.wrap { max-width: 920px; margin: 0 auto; padding: 32px 20px 64px; }
.brand { font: 700 14px/1 var(--fd); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 40px; }

/* ── Card ── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
}

/* ── Form ── */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 16px var(--fb);
  background: var(--bg);
  color: var(--ink);
  outline: none;
  transition: border-color .15s;
}
input:focus { border-color: var(--accent); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 6px;
  font: 600 15px var(--fb);
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: opacity .15s;
}
.btn:hover { opacity: .85; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost   { background: var(--raised); border: 1px solid var(--line); color: var(--ink); }
.btn-full    { width: 100%; text-align: center; }

/* ── Upload zone ── */
.drop-zone {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.drop-zone.over { border-color: var(--accent); background: var(--soft); }
.drop-zone p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.drop-zone input[type=file] { display: none; }

/* ── Job list ── */
.job-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.job-status { font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.status-queued     { background: var(--soft); color: var(--accent-ink); }
.status-running,
.status-processing { background: #3A2E12; color: #FCD34D; }
.status-done       { background: #12301E; color: var(--success); }
.status-error      { background: #3B1515; color: var(--danger); }

.job-time { font-size: 13px; color: var(--muted); }

/* ── Tab switcher ── */
.tabs { display: flex; gap: 2px; margin-bottom: 28px; border-bottom: 2px solid var(--line); }
.tab-btn {
  padding: 10px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font: 600 15px var(--fb);
  color: var(--muted);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-btn.active { color: var(--ink); border-color: var(--accent); }

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
nav .nav-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 15px/1 var(--fd); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
nav .nav-links { display: flex; gap: 16px; align-items: center; }

/* ── Toast ── */
#toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--raised); color: var(--ink); border: 1px solid var(--line);
  padding: 12px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
  z-index: 999;
}
#toast.show { opacity: 1; }

/* ── Hero text ── */
h1 { font: 700 clamp(36px,8vw,68px)/1.05 var(--fd); letter-spacing: -.02em; margin: 0 0 16px; }
h2 { font: 700 24px/1.15 var(--fd); margin: 0 0 16px; }
.lede { font-size: 18px; color: var(--muted); max-width: 50ch; margin: 0 0 32px; }

/* ── Split layout ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .split { grid-template-columns: 1fr; } }

/* ── Misc ── */
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-sm { font-size: 14px; color: var(--muted); }
.text-center { text-align: center; }
hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block; width: 16px; height: 16px;
  border: 2px solid var(--line); border-top-color: var(--accent);
  border-radius: 50%; animation: spin .7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}

/* ── Tools ── */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 8px 0 8px; }
.tool-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  padding: 24px; transition: border-color .15s, transform .15s;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-card h3 { font: 700 20px/1.2 var(--fd); margin: 12px 0 6px; }
.tool-card p { margin: 0; color: var(--muted); font-size: 15px; }
.tool-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--soft); display: grid; place-items: center; }
.tool-eta { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--accent); font-weight: 600; }
.back-link { display: inline-block; margin-top: 24px; font-size: 14px; text-decoration: none; }

textarea {
  width: 100%; min-height: 120px; padding: 12px 14px; resize: vertical;
  border: 1px solid var(--line); border-radius: 6px; background: var(--bg);
  font: 16px/1.5 var(--fb); color: var(--ink); outline: none;
}
textarea:focus, select:focus { border-color: var(--accent); }
select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font: 15px var(--fb); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 600 14px var(--fb); color: var(--ink); cursor: pointer; }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.job-thumb { width: 120px; max-height: 160px; object-fit: cover; border-radius: 6px; background: var(--bg); display: block; }
.job-tool { font-size: 13px; font-weight: 600; color: var(--accent); margin-left: 8px; }
.job-prompt { font-size: 14px; color: var(--muted); margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }


/* ══ App shell (dashboard + tools), modelled on a template browser ══ */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font: 700 15px/1 var(--fd); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.brand-logo { width: 34px; height: 34px; object-fit: contain; flex: none; }
.side-label { font: 600 11px/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 18px 12px 8px; }
.side-link {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px;
  color: var(--ink); text-decoration: none; font: 500 15px var(--fb); background: none; border: 0; cursor: pointer; text-align: left; width: 100%;
}
.side-link svg { flex: none; opacity: .85; }
.side-link:hover { background: var(--raised); }
.side-link.active { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.side-foot .side-link { font-size: 14px; color: var(--muted); }

.main { padding: 28px 36px 64px; min-width: 0; }
.main-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.main-head h1 { font: 700 26px/1.1 var(--fd); margin: 0; letter-spacing: -.01em; }
.search {
  display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; min-width: 280px; flex: 0 1 420px;
}
.search input { background: none; border: 0; outline: none; color: var(--ink); font: 15px var(--fb); width: 100%; padding: 0; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.pill { padding: 8px 16px; border-radius: 10px; background: var(--raised); border: 1px solid var(--line); color: var(--ink); font: 600 14px var(--fb); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.pill.active { background: var(--ink); color: #111; border-color: var(--ink); }

.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.tpl-card { display: block; text-decoration: none; color: var(--ink); border-radius: 16px; padding: 8px; transition: background .15s; }
.tpl-card:hover { background: var(--surface); }
.tpl-thumb { position: relative; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--raised); }
.tpl-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform .35s ease; }
.tpl-card:hover .tpl-thumb img { transform: scale(1.04); }
.badge {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(17,17,19,.72); backdrop-filter: blur(6px); color: #fff;
  font: 600 13px/1 var(--fb); padding: 7px 10px; border-radius: 8px;
}
.tpl-title { font: 600 17px/1.3 var(--fb); margin: 14px 4px 10px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 4px 4px; }
.tag { background: var(--raised); color: var(--muted); font: 500 13px/1 var(--fb); padding: 7px 10px; border-radius: 7px; }
.tpl-card.soon { opacity: .6; pointer-events: none; }
.tpl-card.soon .tpl-thumb img { filter: grayscale(.35); }
.empty-note { color: var(--muted); padding: 30px 0; }

.section-title { font: 700 20px/1.2 var(--fd); margin: 44px 0 16px; display: flex; align-items: center; justify-content: space-between; }

/* Tool page header */
.tool-hero { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: center; margin-bottom: 28px; }
.tool-hero img { width: 180px; height: 180px; object-fit: cover; object-position: center top; border-radius: 14px; }
.tool-hero h1 { font: 700 30px/1.1 var(--fd); margin: 0 0 8px; }
.tool-hero p { color: var(--muted); margin: 0; max-width: 60ch; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }

/* Mobile: sidebar becomes a top bar */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-brand { padding: 4px 8px; width: 100%; }
  .side-label, .side-foot, .side-tool { display: none; }
  .side-link { width: auto; padding: 8px 12px; font-size: 14px; }
  .main { padding: 20px 16px 48px; }
  .search { min-width: 0; flex: 1 1 100%; }
  .tpl-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .tool-hero { grid-template-columns: 96px 1fr; gap: 16px; }
  .tool-hero img { width: 96px; height: 96px; }
  .tool-hero h1 { font-size: 22px; }
}

/* Sponsor */
.sponsor {
  display: flex; align-items: center; gap: 18px; text-decoration: none; color: var(--ink);
  background: linear-gradient(100deg, #2a1608 0%, #1B1B1F 55%); border: 1px solid #4a2a12;
  border-radius: 14px; padding: 12px 18px 12px 12px; margin: 0 0 24px;
}
.sponsor:hover { border-color: #b4541b; }
.sponsor img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; flex: none; }
.sponsor-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sponsor-tag { font: 600 11px/1 var(--fb); letter-spacing: .12em; text-transform: uppercase; color: #F59E0B; }
.sponsor-text strong { font: 700 17px/1.25 var(--fd); }
.sponsor-sub { color: var(--muted); font-size: 14px; }
.sponsor-btn { background: #E8590C; color: #fff; font: 700 14px var(--fb); padding: 10px 16px; border-radius: 10px; white-space: nowrap; }
.sponsor-slim img { width: 64px; height: 64px; }
.sponsor-slim .sponsor-text strong { font-size: 15px; }
@media (max-width: 640px) {
  .sponsor { flex-wrap: wrap; }
  .sponsor img { width: 64px; height: 64px; }
  .sponsor-btn { width: 100%; text-align: center; }
}

.credit-meter { margin: 18px 4px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.cm-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cm-row b { color: var(--ink); }
.cm-bar { height: 6px; border-radius: 99px; background: var(--raised); margin: 10px 0 8px; overflow: hidden; }
.cm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: 99px; }
.cm-note { font-size: 12px; color: var(--muted); }
@media (max-width: 820px) { .credit-meter { display: none !important; } }

.new-pill { display: inline-block; vertical-align: middle; background: var(--gold); color: #1A1300; font: 700 12px/1 var(--fb); padding: 5px 8px; border-radius: 6px; margin-left: 6px; }

.activity { display: flex; align-items: center; gap: 8px; margin: 16px 4px 0; padding: 10px 12px; border-radius: 10px; background: rgba(74,222,128,.08); border: 1px solid rgba(74,222,128,.25); font-size: 12.5px; color: #C9F7D8; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 1.6s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.place { display: inline-block; margin-left: 8px; font-size: 13px; font-weight: 600; color: var(--gold); }
.free-tag { background: #4ADE80; color: #062B12; font: 700 10px/1 var(--fb); padding: 3px 5px; border-radius: 4px; margin-left: 6px; vertical-align: middle; }
.free-note { background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.3); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; color: #F4E3B5; font-size: 15px; }
@media (max-width: 820px) { .activity { display: none !important; } }

.gift-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: linear-gradient(100deg, #2a2412, #1B1B1F 60%); border: 1px solid #5a4a1c; border-radius: 14px; padding: 16px 18px; margin: 0 0 18px; }
.gift-banner b { display: block; font: 700 18px var(--fd); margin-bottom: 4px; }
.gift-banner span { color: var(--muted); font-size: 14px; }
.gb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tpl-card.locked .tpl-thumb img { filter: grayscale(.5) brightness(.75); }
.tag-lock { background: #3a3320; color: #F5C542; }

/* Sign-up window */
#auth-modal { position: fixed; inset: 0; z-index: 100; background: rgba(5,5,8,.72); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 16px; }
#auth-modal.open { display: flex; }
.am-card { width: min(880px, 100%); display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.am-art { position: relative; min-height: 460px; }
.am-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.am-art-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; background: linear-gradient(transparent, rgba(0,0,0,.85)); display: flex; flex-direction: column; }
.am-art-text b { font: 800 26px/1.05 var(--fd); text-transform: uppercase; color: #fff; }
.am-art-text span { color: #F5C542; font-weight: 600; }
.am-form { position: relative; padding: 30px 28px; }
.am-x { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }
.am-logo { width: 46px; height: 46px; display: block; margin: 0 auto 8px; }
.am-form h2 { text-align: center; margin: 0 0 4px; }
.am-sub { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.am-legal { text-align: center; margin: 14px 0 0; }
@media (max-width: 720px) { .am-card { grid-template-columns: 1fr; } .am-art { min-height: 150px; } }

.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ex { margin: 0; }
.ex img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; background: var(--raised); }
.ex figcaption { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Community */
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.job-actions .btn { padding: 9px 14px; font-size: 14px; }
.community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cpost { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.cpost-media { position: relative; display: block; aspect-ratio: 4 / 5; background: #000; }
.cpost-media img, .cpost-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cpost-tool { position: absolute; top: 8px; left: 8px; background: rgba(14,14,16,.72); color: #fff; font: 600 12px var(--fb); padding: 5px 8px; border-radius: 6px; }
.cpost-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 4px; }
.cpost-handle { color: var(--ink); font-weight: 600; text-decoration: none; font-size: 14px; }
.cpost-like { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 10px; cursor: pointer; font: 600 13px var(--fb); }
.cpost-like.on { color: #F87171; border-color: #F87171; }
.cpost-cap { padding: 0 12px 12px; color: var(--muted); font-size: 13px; }
.cpost-empty { color: var(--muted); }
#share-pop, #post-pop { position: fixed; inset: 0; z-index: 120; background: rgba(5,5,8,.7); display: none; align-items: center; justify-content: center; padding: 16px; }
#share-pop.open, #post-pop.open { display: flex; }
.sp-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.sp-card > b { font: 700 20px var(--fd); display: block; margin-bottom: 8px; }
.sp-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 14px; }
.sp-links a, .sp-links button { background: var(--raised); border: 1px solid var(--line); color: var(--ink); text-align: center; padding: 10px; border-radius: 10px; text-decoration: none; font: 600 14px var(--fb); cursor: pointer; }

.tool-promo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; background: #000; display: block; margin: 0 0 20px; }

.cap-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin: -8px 0 16px; }
.cap-idea { font-size: 13px; padding: 6px 10px; }

.pack-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; width: 100%; order: -1; flex-basis: 100%; }
.pack-strip img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px; display: block; }
@media (max-width: 640px) { .pack-strip { grid-template-columns: repeat(4, 1fr); } }
.pack-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pack-opt { border: 2px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; background: var(--bg); text-align: left; color: var(--ink); }
.pack-opt.active { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,197,66,.2); }
.pack-opt .pk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.pack-opt .pk-grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; background: var(--raised); }
.pack-opt b { display: block; font: 700 16px var(--fd); margin: 10px 2px 2px; }
.pack-opt span { color: var(--muted); font-size: 13px; margin: 0 2px; }

/* Profile setup */
#profile-pop { position: fixed; inset: 0; z-index: 130; background: rgba(5,5,8,.75); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; }
.pf-card { position: relative; width: min(520px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px 26px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.pf-card h2 { text-align: center; margin: 10px 0 4px; }
.pf-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto; background: linear-gradient(135deg, #2F6FEB, #F5C542); display: grid; place-items: center; font: 800 34px var(--fd); color: #0E0E10; overflow: hidden; }
.pf-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pf-handle { display: flex; align-items: center; gap: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; font: 700 18px var(--fb); }
.pf-handle input { border: 0; background: none; padding: 10px 0; font: 700 18px var(--fb); }
.pf-hint { font-size: 13px; color: var(--muted); margin: 8px 2px 16px; }
.pf-hint.ok { color: var(--success); } .pf-hint.bad { color: var(--danger); }
.pf-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-choice { background: var(--bg); border: 2px solid var(--line); border-radius: 14px; padding: 12px; text-align: left; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.pf-choice:hover { border-color: var(--accent); }
.pf-choice.hot { border-color: rgba(245,197,66,.6); }
.pf-choice:disabled { opacity: .5; cursor: not-allowed; }
.pf-choice img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.pf-up { width: 100%; aspect-ratio: 16 / 10; border-radius: 8px; border: 2px dashed var(--line); display: grid; place-items: center; font-size: 28px; color: var(--muted); }
.pf-choice b { font: 700 15px var(--fd); }
.pf-choice span { color: var(--muted); font-size: 12.5px; }
.cpost-av { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; vertical-align: middle; margin-right: 6px; background: linear-gradient(135deg, #2F6FEB, #F5C542); color: #0E0E10; font: 800 12px var(--fd); }
@media (max-width: 520px) { .pf-choices { grid-template-columns: 1fr; } }

.cpost-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px 12px; }
.cpost-made { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cpost-remix { flex: none; background: var(--gold); color: #1A1300; font: 800 12px var(--fb); padding: 6px 10px; border-radius: 8px; text-decoration: none; }
.remix-banner { display: flex; gap: 14px; align-items: center; background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.35); border-radius: 14px; padding: 10px; margin-bottom: 16px; }
.remix-banner img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.remix-banner b { display: block; font: 700 16px var(--fd); }
.remix-banner span { color: var(--muted); font-size: 14px; }
.made-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 16px 2px 0; color: #B4B4BD; }
.made-row b { color: #F2F2F5; }
.up-preview { position: relative; margin: 12px auto 0; max-width: 320px; border-radius: 10px; overflow: hidden; background: #000; }
.up-preview img, .up-preview video { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.up-change { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(0,0,0,.7); color: #fff;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.drop-zone.has-preview > svg { display: none; }

.ideas-callout { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; text-decoration: none;
  background: linear-gradient(90deg, rgba(245,197,66,.18), rgba(245,197,66,.05)); border: 1px solid rgba(245,197,66,.4); color: inherit; }
.ideas-callout > span { font-size: 26px; } .ideas-callout div { flex: 1; font-size: 14px; line-height: 1.45; }
.ideas-callout b { display: block; font-size: 16px; margin-bottom: 2px; }
.ideas-callout em { font-style: normal; font-weight: 800; color: #F5C542; white-space: nowrap; }
@media (max-width: 560px) { .ideas-callout { flex-wrap: wrap; } .ideas-callout em { width: 100%; } }
.soon-card, .tpl-card.soon { position: relative; }
.soon-vote { display: inline-flex; align-items: center; gap: 6px; margin: 8px 10px 10px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: #222228; color: #F2F2F5; border: 1px solid #3a3a44; font: 700 13px var(--fb, inherit); }
.soon-vote i { font-style: normal; } .soon-vote b { font-weight: 800; padding-left: 6px; border-left: 1px solid rgba(255,255,255,.2); }
.soon-vote:hover { border-color: #F5C542; }
.soon-vote.on { background: #F5C542; color: #1A1300; border-color: #F5C542; } .soon-vote.on b { border-color: rgba(0,0,0,.25); }
.soon-lead { position: absolute; top: 8px; right: 8px; z-index: 2; background: #F5C542; color: #1A1300; font: 800 11px var(--fb, inherit);
  padding: 4px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }

.up-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.65); display: none; align-items: center; justify-content: center; padding: 16px; }
.up-modal.open { display: flex; }
.up-box { position: relative; width: 100%; max-width: 420px; background: #17171b; color: #F2F2F5; border: 1px solid rgba(245,197,66,.45); border-radius: 18px; padding: 26px 22px 20px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.up-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #9a9aa3; font-size: 26px; cursor: pointer; }
.up-badge { display: inline-block; background: #F5C542; color: #1A1300; font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 4px 9px; border-radius: 6px; }
.up-box h2 { margin: 10px 0 4px; font-size: 26px; }
.up-big { font-size: 17px; margin: 0 0 12px; color: #EDE3C4; } .up-big b { color: #F5C542; }
.up-list { text-align: left; color: #C8C8CF; font-size: 14px; line-height: 1.8; margin: 0 auto 16px; padding-left: 20px; max-width: 320px; }
.up-fine { font-size: 12px; color: #9a9aa3; margin: 10px 0 6px; }
.up-compare { font-size: 13px; color: #B4B4BD; }

.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
@media (max-width: 680px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card ul { color: var(--muted); padding-left: 20px; margin: 12px 0 18px; line-height: 1.9; flex: 1; }
.plan-name { font-weight: 800; font-size: 20px; }
.plan-price { font-size: 15px; color: var(--muted); } .plan-price b { font-size: 30px; color: var(--text, inherit); }
.plan-credits { margin-top: 6px; font-size: 15px; } .plan-credits b { color: var(--accent); font-size: 18px; }
.plan-best { border-color: #F5C542; box-shadow: 0 0 0 1px #F5C542 inset; }
.plan-flag { position: absolute; top: -11px; right: 16px; background: #F5C542; color: #1A1300; font-weight: 800; font-size: 11px; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; }
.plan-btn { display: block; text-align: center; font-size: 16px; padding: 13px; }
.plan-btn.disabled { opacity: .55; pointer-events: none; }
.plan-fine { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }
.up-gifts { margin-top: 8px; display: block; width: 100%; }
.tag-gift { background: #F5C542 !important; color: #1A1300 !important; font-weight: 700; }
.gift-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; } .gift-note b { color: #F5C542; }

.badge-official { display: inline-block; margin-left: 6px; background: linear-gradient(90deg, #8B5CF6, #F5C542); color: #fff; font-size: 10px; font-weight: 800;
  padding: 2px 6px; border-radius: 999px; vertical-align: middle; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.cpost-acts { display: inline-flex; align-items: center; gap: 8px; }
.cpost-cmt { color: #B4B4BD; font-size: 13px; text-decoration: none; white-space: nowrap; }
.post-comments { margin-top: 18px; }
.pc-h { color: #F2F2F5; font-size: 17px; margin: 0 0 8px; }
.pc { color: #D6D6DC; font-size: 14px; padding: 8px 0; border-top: 1px solid #26262c; overflow-wrap: anywhere; }
.pc a { color: #fff; text-decoration: none; }
.pc-empty { color: #9a9aa3; font-size: 14px; }
.pc-form { display: flex; gap: 8px; margin-top: 10px; }
.pc-form input { flex: 1; min-width: 0; background: #0f0f12; color: #F2F2F5; border: 1px solid #2f2f37; border-radius: 10px; padding: 10px 12px; font: inherit; font-size: 14px; }
.profile-bio { color: #C8C8CF; font-size: 14px; margin: 4px 0 0; max-width: 520px; }
.agree-line { font-size: 12px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; } .agree-line a { color: inherit; text-decoration: underline; }
.side-legal { font-size: 11.5px; color: var(--muted); padding: 6px 12px 0; } .side-legal a { color: inherit; text-decoration: none; } .side-legal a:hover { text-decoration: underline; }

.cpost { position: relative; }
.cpost-hide { position: absolute; top: 8px; right: 8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; font-size: 13px; line-height: 28px; padding: 0; opacity: .75; }
.cpost-hide:hover { opacity: 1; background: rgba(0,0,0,.8); }
.cpost-gone { opacity: 0; transform: scale(.96); transition: opacity .25s, transform .25s; }
.toast-undo { margin-left: 10px; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 999px; padding: 2px 10px; cursor: pointer; font: inherit; font-size: 13px; }

.gift-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 680px) { .gift-grid { grid-template-columns: 1fr; } }
.buy-now { padding: 7px 12px; font-size: 13px; margin: 6px 6px 2px 0; }
.buy-or { display: inline-block; margin-top: 4px; }

.sale-badge { position: absolute; top: 8px; right: 8px; background: #b42318; color: #fff; font-weight: 800; font-size: 13px; padding: 4px 8px; border-radius: 8px; z-index: 2; }
.tpl-thumb { position: relative; }
.sale-pill { display: inline-block; background: #b42318 !important; color: #fff !important; font-weight: 800; font-size: 11px; padding: 2px 7px; border-radius: 5px; text-transform: uppercase; letter-spacing: .02em; }
.gift-note s { color: #8a8a93; }

.team-alert { background: rgba(245,197,66,.12); border: 1px solid rgba(245,197,66,.5); border-radius: 10px; padding: 9px 11px; margin: 8px 0 0; font-size: 13px; line-height: 1.45; color: inherit; }
.team-banner { background: linear-gradient(90deg, rgba(245,197,66,.2), rgba(245,197,66,.06)); border: 1px solid rgba(245,197,66,.55); border-radius: 14px; padding: 14px 16px; margin: 0 0 18px; }
.team-banner h3 { margin: 0 0 4px; } .team-banner p { margin: 4px 0; font-size: 14px; }
.team-banner input { max-width: 140px; display: inline-block; margin-right: 8px; letter-spacing: .2em; }
.was { text-decoration: line-through; color: var(--muted); font-size: 16px; margin-right: 6px; }

.cpost-origin { display: block; margin: 2px 12px 0; font-size: 12px; font-weight: 700; color: #B4B4BD; text-decoration: none; }
.cpost-origin:hover { color: #fff; }
.cpost-origin.is-original { color: #F5C542; }
.original-badge { display: inline-block; background: #F5C542; color: #1A1300; font-weight: 800; font-size: 11px; padding: 3px 8px; border-radius: 6px; margin-right: 8px; text-transform: uppercase; letter-spacing: .03em; align-self: center; }
.origin-card { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 10px; border: 1px solid #2a2a31; border-radius: 12px; background: #17171b; text-decoration: none; color: #F2F2F5; }
.origin-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; }
.origin-card div { flex: 1; display: flex; flex-direction: column; } .origin-card span { font-size: 12px; color: #B4B4BD; }
.origin-card em { font-style: normal; color: #F5C542; font-weight: 700; font-size: 13px; white-space: nowrap; }
.recreations { margin-top: 26px; }

/* ── Plan page: side-by-side tiers ── */
.pricing-h { text-align: center; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 0 0 10px; letter-spacing: -.02em; }
.pricing-lede { text-align: center; margin: 0 auto 26px; max-width: 640px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: stretch; }
@media (max-width: 1100px) { .tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
.tier { position: relative; display: flex; flex-direction: column; background: var(--card, #17171b); border: 1px solid var(--border, #2a2a31);
  border-radius: 16px; padding: 22px 20px 18px; margin: 0; }
.tier.tier-hot { border: 2px solid #F5C542; box-shadow: 0 0 0 4px rgba(245,197,66,.08); }
.tier .plan-flag { top: -12px; left: 50%; right: auto; transform: translateX(-50%); }
.tier-name { font-size: 24px; font-weight: 800; }
.tier-desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 6px 0 16px; min-height: 40px; }
.tier-price { font-size: 15px; color: var(--muted); } .tier-price b { font-size: 34px; color: var(--text, #F2F2F5); letter-spacing: -.01em; }
.tier-bill { font-size: 12px; color: var(--muted); margin: 2px 0 14px; min-height: 16px; }
.tier-btn { display: block; text-align: center; padding: 12px; font-weight: 700; }
.tier-btn-dark { background: #F2F2F5; color: #0e0e10; border: 0; } .tier-btn-dark:hover { background: #fff; }
.feat { list-style: none; padding: 0; margin: 18px 0 0; flex: 1; }
.feat > li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin-bottom: 12px; }
.feat .ck { flex: none; margin-top: 1px; color: #F5C542; }
.feat .hint { display: block; color: var(--muted); font-size: 12.5px; }
.feat .sub { margin: 4px 0 0; padding-left: 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tier .plan-fine { margin-top: 8px; }

/* ── Add to Home Screen sheet ── */
.a2hs { position: fixed; inset: 0; z-index: 2000; background: rgba(0,0,0,0); display: flex; align-items: flex-end; justify-content: center; transition: background .3s; }
.a2hs.open { background: rgba(0,0,0,.55); }
.a2hs-card { position: relative; width: 100%; max-width: 480px; background: #17171b; color: #F2F2F5; border: 1px solid #2a2a31; border-bottom: 0;
  border-radius: 22px 22px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom)); transform: translateY(105%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
  font-family: inherit; box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.a2hs.open .a2hs-card { transform: none; }
.a2hs-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #9a9aa3; font-size: 28px; line-height: 1; cursor: pointer; }
.a2hs-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; padding-right: 26px; }
.a2hs-head .a2hs-icon { width: 54px; height: 54px; border-radius: 13px; }
.a2hs-head b { display: block; font-size: 17px; } .a2hs-head span { font-size: 12.5px; color: #B4B4BD; }
.a2hs-icon { width: 22px; height: 22px; border-radius: 6px; vertical-align: middle; }
.a2hs-steps { list-style: none; padding: 0; margin: 0 0 12px; }
.a2hs-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #26262c; font-size: 15px; line-height: 1.45; }
.a2hs-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #F5C542; color: #1A1300; font-weight: 900; display: grid; place-items: center; font-size: 14px; }
.a2hs-glyph { width: 22px; height: 22px; vertical-align: -5px; color: #4F8EF7; margin: 0 2px; }
.a2hs-p { color: #C8C8CF; font-size: 15px; margin: 0 0 14px; }
.a2hs-go { width: 100%; background: #F5C542; color: #1A1300; border: 0; border-radius: 12px; padding: 14px; font-weight: 800; font-size: 16px; cursor: pointer; }
.a2hs-later { display: block; margin: 8px auto 0; background: none; border: 0; color: #9a9aa3; font: inherit; font-size: 14px; cursor: pointer; padding: 6px; }
.a2hs-arrow { text-align: center; color: #F5C542; font-size: 26px; animation: a2hs-bob 1.2s ease-in-out infinite; }
@keyframes a2hs-bob { 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .a2hs, .a2hs-card { transition: none; } .a2hs-arrow { animation: none; } }

/* ── Daily Drops ── */
.daily-drops { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 18px; align-items: center; margin: 0 0 22px;
  background: radial-gradient(120% 120% at 20% 60%, #13204a 0%, #0f1424 55%, #0e0e10 100%); border: 1px solid rgba(245,197,66,.35); border-radius: 18px; padding: 10px 18px 10px 6px; }
.dd-art { position: relative; width: 100%; }
.dd-art img { width: 100%; display: block; }
.dd-slot { position: absolute; display: grid; }
.dd-in { width: 100%; height: 100%; border: 0; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: inherit; color: #fff; text-decoration: none; padding: 2px; text-align: center; }
.dd-in b { font-size: clamp(9px, 1.05vw, 12px); line-height: 1.1; } .dd-in em { font-style: normal; font-size: clamp(8px, .9vw, 11px); color: #F5C542; font-weight: 700; }
.dd-emoji { font-size: clamp(16px, 2.2vw, 26px); line-height: 1; }
.dd-locked { background: rgba(5,8,20,.55); color: #9fb0d8; } .dd-locked svg { width: 40%; max-width: 22px; fill: none; stroke: currentColor; stroke-width: 2; }
.dd-ready { background: radial-gradient(circle, rgba(245,197,66,.35), rgba(245,197,66,.08) 70%); cursor: pointer; animation: dd-wiggle 2.4s ease-in-out infinite; }
.dd-ready:hover { background: radial-gradient(circle, rgba(245,197,66,.55), rgba(245,197,66,.15) 70%); }
.dd-gold { box-shadow: inset 0 0 18px rgba(245,197,66,.8); }
.dd-claimed { background: rgba(19,92,52,.45); }
.dd-opening { animation: dd-pop .5s ease-out forwards; }
@keyframes dd-wiggle { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-6deg) scale(1.05); } 80% { transform: rotate(6deg) scale(1.05); } 85% { transform: rotate(-3deg); } }
@keyframes dd-pop { 50% { transform: scale(1.25); } 100% { transform: scale(.9); opacity: .4; } }
.dd-spark { position: fixed; width: 8px; height: 8px; border-radius: 50%; background: #F5C542; pointer-events: none; z-index: 3000; box-shadow: 0 0 10px #F5C542;
  animation: dd-fly .9s ease-out forwards; }
@keyframes dd-fly { to { transform: translate(var(--x), var(--y)) scale(0); opacity: 0; } }
.dd-kicker { display: inline-block; background: #F5C542; color: #1A1300; font-weight: 900; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 6px; }
.dd-copy h3 { margin: 8px 0 4px; font-size: 22px; color: #F2F2F5; } .dd-copy p { margin: 0 0 10px; color: #C8C8CF; font-size: 14px; } .dd-copy p b { color: #F5C542; font-variant-numeric: tabular-nums; }
.dd-list { list-style: none; padding: 0; margin: 0; font-size: 13.5px; color: #D6D6DC; } .dd-list li { padding: 4px 0; } .dd-list li span { color: #9a9aa3; }
.dd-list .dd-claimed { color: #8fd7a8; text-decoration: line-through; } .dd-list .dd-ready { font-weight: 700; color: #F5C542; animation: none; background: none; }
@media (max-width: 760px) { .daily-drops { grid-template-columns: 1fr; padding: 6px 12px 14px; } .dd-in b { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .dd-ready, .dd-opening { animation: none; } }
.job-del { padding: 8px 11px; } .job-del:hover { border-color: #b42318; }

/* ── Songs ── */
.takes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.take { background: #17171b; border: 1px solid #2a2a31; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.take audio, .song-card audio, .cpost-audio, .song-hero audio { width: 100%; }
.take-note { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
.song-card { display: flex; flex-direction: column; gap: 8px; width: 260px; max-width: 100%; } .song-card img { width: 100%; border-radius: 12px; }
.cpost-song { position: relative; } .cpost-song img { width: 100%; display: block; aspect-ratio: 1; object-fit: cover; }
.cpost-song-t { position: absolute; left: 10px; right: 10px; bottom: 10px; color: #fff; font-weight: 800; font-size: 14px; text-shadow: 0 2px 8px rgba(0,0,0,.9); }
.cpost-audio { display: block; margin: 8px 12px 0; width: calc(100% - 24px); height: 36px; }
.song-hero { max-width: 520px; margin: 0 auto; } .song-hero img { width: 100%; border-radius: 16px; display: block; margin-bottom: 10px; }
@media (max-width: 560px) { .takes { grid-template-columns: 1fr; } }

.new-pill { display: inline-block; background: #F5C542; color: #1A1300; font-size: 12px; font-weight: 900; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { background: #222228; color: #D6D6DC; border: 1px solid #34343c; border-radius: 999px; padding: 6px 11px; font-size: 13px; cursor: pointer; }
.chip:hover { border-color: #F5C542; color: #fff; }
.lyrics-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 14px; cursor: pointer; } .switch input { width: auto; }
.section-btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
#lyrics { font-family: ui-monospace, Menlo, monospace; font-size: 14px; line-height: 1.6; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.promise { list-style: none; padding: 12px 14px; margin: 6px 0 0; background: rgba(245,197,66,.07); border: 1px solid rgba(245,197,66,.3); border-radius: 12px; font-size: 14px; line-height: 1.9; }
.own-post-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0 18px; } .own-post-bar .text-sm { color: #B4B4BD; }

/* ── Music page + Song of the Day ── */
.sotd { display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; background: radial-gradient(120% 140% at 0% 50%, #2a2140, #121218 70%);
  border: 1px solid rgba(245,197,66,.45); border-radius: 20px; padding: 18px; margin: 10px 0 26px; color: #F2F2F5; }
.sotd-cover { width: 100%; border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.5); }
.sotd-kicker { display: inline-block; background: #F5C542; color: #1A1300; font-weight: 900; font-size: 12px; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.sotd h2 { margin: 10px 0 6px; font-size: clamp(22px, 3vw, 34px); line-height: 1.1; }
.sotd-by { display: inline-flex; align-items: center; gap: 8px; color: #C8C8CF; text-decoration: none; font-weight: 600; margin-bottom: 12px; }
.sotd-by img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.sotd audio { width: 100%; max-width: 520px; display: block; }
.sotd-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 14px; color: #B4B4BD; } .sotd-stats a { color: #F5C542; text-decoration: none; font-weight: 700; }
.music-cols { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 26px; align-items: start; }
.mh { color: #F2F2F5; font-size: 19px; margin: 0 0 12px; }
.top-list { list-style: none; padding: 0; margin: 0; }
.top-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #26262c; }
.top-list .tn { font-weight: 900; font-size: 20px; color: #F5C542; text-align: center; }
.top-list .tt { min-width: 0; display: flex; flex-direction: column; gap: 4px; } .top-list .tt a { color: #F2F2F5; text-decoration: none; }
.top-list .tt span { font-size: 12.5px; color: #9a9aa3; } .top-list audio { width: 100%; height: 32px; }
.top-list .tp { font-size: 13px; color: #B4B4BD; white-space: nowrap; }
.cpost-plays { color: #B4B4BD; font-size: 13px; white-space: nowrap; }
@media (max-width: 860px) { .music-cols { grid-template-columns: 1fr; } .sotd { grid-template-columns: 1fr; } .sotd-cover { max-width: 260px; margin: 0 auto; } }

/* ── Releases (EP / album) ── */
.release { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 26px; align-items: start; margin: 10px 0 26px; padding: 20px;
  border-radius: 22px; border: 1px solid rgba(245,197,66,.55); color: #F2F2F5;
  background: radial-gradient(130% 120% at 0% 0%, #3a1d5e 0%, #17121f 55%, #0e0e10 100%); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.rel-cover img { width: 100%; border-radius: 16px; display: block; box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.rel-body h2 { margin: 10px 0 6px; font-size: clamp(30px, 4.5vw, 56px); line-height: 1; letter-spacing: -.01em; }
.rel-meta { color: #B4B4BD; font-size: 13px; margin: 0 0 12px; }
.rel-tracks { list-style: none; padding: 0; margin: 0; }
.rel-tracks li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.08); }
.rel-tracks .tn { font-weight: 900; color: #F5C542; font-size: 18px; text-align: center; }
.rel-tracks .tt { min-width: 0; display: flex; flex-direction: column; gap: 4px; } .rel-tracks audio { width: 100%; height: 32px; }
.rel-acts { display: flex; gap: 10px; align-items: center; font-size: 13px; color: #B4B4BD; white-space: nowrap; }
.rel-acts a { color: #F5C542; text-decoration: none; font-weight: 800; font-size: 16px; }
@media (max-width: 860px) { .release { grid-template-columns: 1fr; } .rel-cover { max-width: 320px; margin: 0 auto; } }
/* Song Maker quality picker */
.quality-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border, #2a2a30); border-radius: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.q-opt input { width: auto; margin-top: 3px; } .q-opt small { color: var(--muted); } .q-opt:has(input:checked) { border-color: #F5C542; background: rgba(245,197,66,.08); }
@media (max-width: 600px) { .quality-pick { grid-template-columns: 1fr; } }
/* New tool pages: pick-one buttons */
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { padding: 9px 14px; border-radius: 999px; border: 1px solid #34343c; background: #1b1b20; color: #D6D6DC; font: 600 14px var(--fb, inherit); cursor: pointer; }
.choice:hover { border-color: #5a5a66; }
.choice.on { background: #F5C542; border-color: #F5C542; color: #1A1300; }
.voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tpl-thumb .new-flag { position: absolute; top: 10px; right: 10px; background: #F5C542; color: #1A1300; font-weight: 900; font-size: 12px; padding: 4px 9px; border-radius: 6px; letter-spacing: .03em; box-shadow: 0 4px 12px rgba(0,0,0,.35); }

/* Album covers */
.song-cover-wrap { position: relative; } .song-cover-wrap img { display: block; aspect-ratio: 1; object-fit: cover; }
.cover-hint { position: absolute; left: 8px; bottom: 8px; background: rgba(0,0,0,.65); color: #ddd; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; }
.cover-btn { width: 100%; } .cover-making { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cover-note { font-size: 12.5px; color: var(--muted); }
.cover-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.cover-modal .cm-card { position: relative; background: #141418; border: 1px solid #2a2a31; border-radius: 18px; padding: 24px; width: 460px; max-width: 100%; max-height: 92vh; overflow: auto; }
.cover-modal h2 { margin: 0 0 6px; font-size: 22px; } .cm-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.cover-modal .am-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #aaa; font-size: 26px; cursor: pointer; }
.cover-modal input { width: 100%; }

/* ── Create Jam ── */
.btn-post { background: linear-gradient(135deg, #F5C542, #FF8A3D); color: #1A1300; font-weight: 800; border: 0; }
.btn-post:hover { filter: brightness(1.08); }
.jam-strip { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, rgba(245,197,66,.16), rgba(255,138,61,.12));
  border: 1px solid rgba(245,197,66,.45); border-radius: 12px; padding: 12px 14px; margin: 6px 0 14px; }
.jam-strip .jam-trophy { font-size: 26px; line-height: 1; }
.jam-strip b { display: block; color: #F5C542; font-size: 15px; }
.jam-strip span { font-size: 13px; color: #C8C8CF; } .jam-strip a { color: #F5C542; }
.jam-modal { position: fixed; inset: 0; z-index: 1100; background: rgba(5,5,8,.72); display: flex; align-items: center; justify-content: center; padding: 16px; }
.jam-card { position: relative; width: min(420px, 100%); background: #17171b; color: #F2F2F5; border: 1px solid rgba(245,197,66,.5);
  border-radius: 20px; padding: 28px 22px 22px; text-align: center; box-shadow: 0 20px 60px rgba(245,197,66,.18); animation: jamPop .35s cubic-bezier(.2,1.4,.4,1); }
.jam-card .am-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #8A8A93; font-size: 26px; cursor: pointer; }
.jam-card h2 { margin: 6px 0 8px; font-size: 24px; }
.jam-burst { font-size: 54px; line-height: 1; }
.jam-gift { display: inline-block; background: rgba(208,255,90,.14); color: #D0FF5A; font-weight: 700; border-radius: 999px; padding: 6px 14px; margin: 0 0 10px; }
.jam-sub { color: #C8C8CF; font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.jam-sub b { color: #F5C542; }
.jam-actions { display: grid; gap: 10px; }
@keyframes jamPop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

.nav-jam { color: #F5C542 !important; font-weight: 700; }
.jam-bar { display: flex; align-items: center; gap: 14px; text-decoration: none; margin: 0 0 18px; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(245,197,66,.18), rgba(255,138,61,.12)); border: 1px solid rgba(245,197,66,.5); color: #E6E6EA; }
.jam-bar:hover { border-color: #F5C542; }
.jam-bar .jb-t { font-size: 28px; line-height: 1; }
.jam-bar .jb-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jam-bar .jb-main b { color: #F5C542; font-size: 16px; }
.jam-bar .jb-main span { font-size: 13px; color: #C8C8CF; }
.jam-bar .jb-go { font-weight: 700; color: #1A1300; background: linear-gradient(135deg, #F5C542, #FF8A3D); border-radius: 999px; padding: 8px 14px; white-space: nowrap; font-size: 14px; }
@media (max-width: 600px) { .jam-bar .jb-go { display: none; } }
.jam-board .cpost-tool { display: none; }

