:root {
  --bg: #0b0612;
  --bg-2: #120a1c;
  --card: #170e23;
  --card-2: #1f1430;
  --line: #2c1f40;
  --text: #f4ecff;
  --muted: #a493bd;
  --pink: #ec4899;
  --violet: #a855f7;
  --grad: linear-gradient(135deg, var(--pink), var(--violet));
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(168, 85, 247, .18), transparent 60%),
    radial-gradient(800px 500px at 100% 0%, rgba(236, 72, 153, .12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: 110px;
}
a { color: inherit; text-decoration: none; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
[hidden] { display: none !important; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.mt { margin-top: 18px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1100px) / 2));
  background: rgba(11, 6, 18, .8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand strong { font-size: 18px; display: block; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 12px; }
.logo { width: 38px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(236, 72, 153, .35); }
.logo svg { color: #fff; width: 20px; height: 20px; }
.tabs { display: flex; align-items: center; gap: 6px; }
.tabs > a:not(.btn) { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: 14px; }
.tabs > a.active:not(.btn), .tabs > a:not(.btn):hover { color: var(--text); background: var(--card); }

main { max-width: 1100px; margin: 0 auto; padding: 24px 16px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 11px; padding: 11px 18px;
  font: 600 14px Inter, sans-serif; cursor: pointer; color: var(--text); white-space: nowrap;
  transition: transform .15s, filter .15s, background .15s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: wait; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 24px rgba(236, 72, 153, .3); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: var(--card-2); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--card-2); color: var(--text); }

/* Hero */
.hero {
  display: flex; align-items: center; gap: 18px; padding: 22px;
  border-radius: 18px; border: 1px solid rgba(236, 72, 153, .35);
  background: linear-gradient(120deg, rgba(168, 85, 247, .18), rgba(236, 72, 153, .12) 60%, rgba(23, 14, 35, .6));
}
.hero-icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(168, 85, 247, .25); display: grid; place-items: center; flex: none; }
.hero-icon svg { width: 26px; height: 26px; color: #e9d5ff; }
.hero-text { flex: 1; }
.hero h1 { margin: 0 0 6px; font-size: 20px; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.notice { margin-top: 14px; padding: 12px 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; background: rgba(250, 204, 21, .08); border: 1px solid rgba(250, 204, 21, .3); color: #fde68a; }
.notice code { background: rgba(0,0,0,.3); padding: 1px 6px; border-radius: 5px; }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 26px 0 16px; flex-wrap: wrap; }
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.seg-btn { background: transparent; border: 0; color: var(--muted); padding: 8px 14px; border-radius: 8px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.seg-btn.active { background: var(--card-2); color: var(--text); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; flex: 1; justify-content: flex-end; }
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; flex: 1; max-width: 380px; min-width: 200px; }
.search svg { color: var(--muted); }
.search input { flex: 1; background: transparent; border: 0; color: var(--text); padding: 10px 0; font: 14px Inter, sans-serif; outline: none; }
select, input, textarea { font: 14px Inter, sans-serif; color: var(--text); }
select { background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }

/* Song cards */
.songs { display: grid; gap: 12px; }
.song {
  display: flex; gap: 16px; align-items: center; padding: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.song:hover { border-color: #3d2b57; }
.song.playing { border-color: var(--pink); background: linear-gradient(90deg, rgba(236,72,153,.08), var(--card)); }
.cover {
  position: relative; width: 84px; height: 84px; border-radius: 12px; flex: none; overflow: hidden;
  display: grid; place-items: center; background-size: cover; background-position: center;
}
.cover .initial { font-size: 32px; font-weight: 800; color: rgba(255,255,255,.9); text-shadow: 0 2px 12px rgba(0,0,0,.3); }
.play-btn {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; cursor: pointer;
  background: rgba(0,0,0,.35); color: #fff; opacity: 0; transition: opacity .15s;
}
.song:hover .play-btn, .song.playing .play-btn { opacity: 1; }
.play-btn span { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.95); color: #1a0b2e; display: grid; place-items: center; }
.play-btn svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.song-main { flex: 1; min-width: 0; }
.song-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.song-title h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.badge.processing { color: #fbcfe8; border-color: rgba(236,72,153,.4); background: rgba(236,72,153,.1); }
.badge.error { color: #fecaca; border-color: rgba(239,68,68,.4); background: rgba(239,68,68,.1); }
.badge.processing::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--pink); margin-right: 6px; animation: pulse 1s infinite alternate; }
@keyframes pulse { from { opacity: .3 } to { opacity: 1 } }
.song-meta { margin-top: 6px; display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.song-meta b { color: #d8b4fe; font-weight: 500; }
.song-actions { display: flex; gap: 2px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.act { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: var(--muted); padding: 8px 10px; border-radius: 9px; font: 500 13px Inter, sans-serif; cursor: pointer; }
.act:hover { background: var(--card-2); color: var(--text); }
.act.on.like { color: var(--pink); }
.act.on.like svg, .act.on.fav svg { fill: currentColor; }
.act.on.fav { color: #facc15; }
.act.danger:hover { color: #f87171; }

.empty { text-align: center; padding: 60px 16px; }
.empty-art { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px; background: var(--card-2); display: grid; place-items: center; }
.empty-art svg { width: 32px; height: 32px; color: var(--violet); }
.empty h3 { margin: 0 0 6px; }
.empty p { color: var(--muted); margin: 0 0 18px; }

/* Create */
.create { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.create-head h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.create-head p { margin: 0 0 6px; color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.step { display: flex; gap: 16px; padding: 20px; }
.step-n { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.step-body { flex: 1; min-width: 0; }
.step h2 { margin: 3px 0 14px; font-size: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 12px; }
.field > span { font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(168, 85, 247, .18); }
.mono { line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--text); border-radius: 99px;
  padding: 9px 15px; font: 500 13px Inter, sans-serif; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--violet); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; }
.chips.small .chip { padding: 7px 12px; font-size: 12px; }
.row-end { display: flex; justify-content: flex-end; }
.submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 6px 2px 20px; flex-wrap: wrap; }
.submit-bar p { margin: 0; font-size: 13px; }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: 640px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(5, 2, 10, .75); backdrop-filter: blur(4px); }
.modal-inner { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; max-height: 85vh; overflow: auto; box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal h2 { margin: 0 0 4px; padding-right: 40px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.lyrics { white-space: pre-wrap; line-height: 1.75; font-size: 15px; color: #e9ddff; }
.lyrics .sec { display: inline-block; margin-top: 10px; color: var(--pink); font-weight: 600; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Loading overlay inside modal */
.gen { text-align: center; padding: 20px 0 6px; }
.eq { display: flex; gap: 5px; justify-content: center; align-items: flex-end; height: 44px; margin-bottom: 16px; }
.eq i { width: 7px; border-radius: 4px; background: var(--grad); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .15s } .eq i:nth-child(3) { animation-delay: .3s } .eq i:nth-child(4) { animation-delay: .45s } .eq i:nth-child(5) { animation-delay: .6s }
@keyframes eq { 0%, 100% { height: 10px } 50% { height: 44px } }

/* Player */
.player {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 16px;
  padding: 12px max(16px, calc((100vw - 1100px) / 2));
  background: rgba(18, 10, 28, .92); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
}
.p-info { display: flex; gap: 12px; align-items: center; min-width: 0; }
.p-cover { width: 48px; height: 48px; border-radius: 10px; flex: none; background-size: cover; display: grid; place-items: center; font-weight: 800; }
.p-meta { min-width: 0; }
.p-meta strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-meta small { color: var(--muted); font-size: 12px; }
.p-controls { display: flex; align-items: center; gap: 14px; }
.p-play { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; flex: none; }
.p-play:hover { background: var(--grad); color: #fff; filter: brightness(1.1); }
.p-play svg { fill: currentColor; stroke: none; }
.p-progress { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.p-extra { display: flex; justify-content: flex-end; }
input[type=range] { flex: 1; accent-color: var(--pink); height: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); z-index: 50;
  background: var(--card-2); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; font-size: 14px; box-shadow: var(--shadow);
  max-width: calc(100% - 32px);
}
.toast.err { border-color: rgba(239, 68, 68, .5); color: #fecaca; }

@media (max-width: 760px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .grid2 { grid-template-columns: 1fr; }
  .song { flex-wrap: wrap; }
  .cover { width: 64px; height: 64px; }
  .play-btn { opacity: 1; background: rgba(0,0,0,.2); }
  .song-actions { width: 100%; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 8px; }
  .act .lbl { display: none; }
  .player { grid-template-columns: 1fr auto; }
  .p-controls { grid-column: 1 / -1; order: 3; }
  .brand small { display: none; }
  .tabs > a:not(.btn):not(.credits):not([data-nav=login]) { display: none; }
}

/* ===================== Contas, planos e admin ===================== */
.link { color: #f0abfc; font-weight: 500; }
.link:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pad { padding: 22px; }
.pad h2 { margin: 0 0 16px; font-size: 17px; }
.row-between h2 { margin: 0; }
.center { text-align: center; }
.page-head { margin-bottom: 20px; }
.page-head h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.page-head p { margin: 0; }
.input-sm { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 220px; }

/* Topbar do usuário */
.credits { font-size: 13px; font-weight: 600; padding: 7px 12px !important; border-radius: 99px !important; border: 1px solid var(--line); color: #f0abfc !important; }
.credits.zero { color: #fca5a5 !important; border-color: rgba(239, 68, 68, .4); }
.menu { position: relative; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font: 700 14px Inter, sans-serif; cursor: pointer; }
.menu-pop { position: absolute; right: 0; top: 46px; min-width: 230px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); display: grid; }
.menu-pop a, .menu-pop button { text-align: left; padding: 10px 12px; border-radius: 9px; background: none; border: 0; color: var(--text); font: 500 14px Inter, sans-serif; cursor: pointer; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--card-2); }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-head small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

/* Medidor de uso */
.meter { height: 6px; background: rgba(255, 255, 255, .08); border-radius: 99px; margin-top: 12px; max-width: 360px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .4s; }

/* Landing */
.landing-hero { text-align: center; padding: 48px 0 30px; max-width: 760px; margin: 0 auto; }
.landing-hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.1; letter-spacing: -.03em; margin: 18px 0; }
.landing-hero p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 0 0 26px; }
.pill { display: inline-block; padding: 7px 14px; border-radius: 99px; background: rgba(168, 85, 247, .15); border: 1px solid rgba(168, 85, 247, .35); font-size: 13px; color: #e9d5ff; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 50px; }
.feat { padding: 22px; }
.feat h3 { margin: 12px 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.feat-n { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 800; }
.section-title { text-align: center; font-size: 26px; letter-spacing: -.02em; margin: 10px 0 22px; }
.faq { max-width: 760px; margin: 0 auto 30px; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 10px 0 0; line-height: 1.55; }

/* Planos */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 14px 0 50px; }
.plan { position: relative; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 20px 50px rgba(236, 72, 153, .15); }
.plan .tag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 99px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.plan h3 { margin: 0; font-size: 18px; }
.price { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 9px; font-size: 14px; color: #ddd0f0; }
.plan li::before { content: "✓"; color: var(--pink); font-weight: 800; }
.plan .current { text-align: center; font-size: 13px; font-weight: 600; color: #86efac; padding: 11px; border: 1px solid rgba(134, 239, 172, .35); border-radius: 11px; }

/* Autenticação */
.auth { max-width: 420px; margin: 30px auto; padding: 30px; }
.auth form { display: none; }
.auth form.on { display: block; }
.auth h1 { margin: 0 0 4px; font-size: 24px; }
.auth .muted { margin: 0 0 20px; }
.auth .switch { text-align: center; color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 4px 0 18px; line-height: 1.5; }
.check input { margin-top: 3px; accent-color: var(--pink); }

/* Conta */
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span2 { grid-column: 1 / -1; }
.kv { display: grid; gap: 10px; margin-bottom: 18px; }
.kv div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.kv span { color: var(--muted); }
.status { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; }
.status.ok { background: rgba(34, 197, 94, .12); color: #86efac; }
.status.warn { background: rgba(250, 204, 21, .12); color: #fde68a; }
.status.off { background: rgba(255, 255, 255, .06); color: var(--muted); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-danger { background: transparent; border-color: rgba(239, 68, 68, .4); color: #fca5a5; }
.btn-danger:hover { background: rgba(239, 68, 68, .1); }
.pw { margin: 4px 0 16px; }
.pw summary { cursor: pointer; color: #f0abfc; font-size: 14px; margin-bottom: 12px; }

/* Admin */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 18px; }
.stat small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.stat strong { display: block; font-size: 26px; margin-top: 6px; letter-spacing: -.02em; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td small { color: var(--muted); display: block; }
.mini { background: var(--card-2); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 5px 9px; font: 500 12px Inter, sans-serif; cursor: pointer; }
.mini:hover { border-color: var(--violet); }

/* Música compartilhada */
.share { max-width: 640px; margin: 20px auto; padding: 28px; }
.share-top { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.share-top .cover { width: 110px; height: 110px; }
.share-top .play-btn { opacity: 1; }
.share-top h1 { margin: 0 0 6px; font-size: 24px; }
.share-cta { margin-top: 24px; padding: 18px; border-radius: 14px; background: linear-gradient(120deg, rgba(168, 85, 247, .18), rgba(236, 72, 153, .12)); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

.prose { max-width: 760px; margin: 0 auto; line-height: 1.65; }
.prose h3 { margin: 22px 0 6px; }
.prose p { color: #ddd0f0; }

.footer { max-width: 1100px; margin: 20px auto 0; padding: 24px 16px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer nav { display: flex; gap: 18px; }
.footer a:hover { color: var(--text); }

@media (max-width: 760px) {
  .steps3, .account-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  #nav-user .btn-sm { padding: 8px 10px; }
  #nav-guest .btn-sm { padding: 8px 10px; font-size: 12px; }
  .share-top { flex-direction: column; align-items: flex-start; }
  .input-sm { min-width: 0; width: 100%; }
}

/* ===================== Produtos e pedidos ===================== */
.section-sub { margin: -12px 0 22px; }
.back { display: inline-block; margin-bottom: 14px; font-size: 14px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-bottom: 50px; }
.product { padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform .15s, border-color .15s; }
.product:hover { transform: translateY(-2px); border-color: #4a3568; }
.product .p-icon { font-size: 34px; width: 60px; height: 60px; border-radius: 16px; background: var(--card-2); display: grid; place-items: center; }
.product h3 { margin: 6px 0 0; font-size: 18px; }
.product p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.product .aud { font-size: 12px; color: #d8b4fe; font-weight: 600; }
.product .from { font-size: 13px; color: var(--muted); }
.product .from b { font-size: 22px; color: var(--text); letter-spacing: -.02em; }
.product .season { position: absolute; top: 16px; right: 16px; background: #b91c1c; color: #fff; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; }

.variants { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.variant { text-align: left; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer; color: var(--text); font: inherit; display: grid; gap: 6px; }
.variant:hover { border-color: var(--violet); }
.variant.active { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink); background: rgba(236, 72, 153, .07); }
.variant b { font-size: 15px; }
.variant .vp { font-size: 20px; font-weight: 800; }
.variant small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.total { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.field select { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.hint { font-size: 12px; color: var(--muted); margin-top: -4px; }

.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; max-height: 260px; overflow: auto; padding: 2px; }
.voice { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; cursor: pointer; }
.voice.active { border-color: var(--pink); background: rgba(236, 72, 153, .07); }
.voice div { flex: 1; min-width: 0; }
.voice b { display: block; font-size: 13px; }
.voice small { color: var(--muted); font-size: 11px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.voice .icon-btn { width: 30px; height: 30px; }

.orders { display: grid; gap: 10px; }
.order-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; }
.order-row .p-icon { font-size: 24px; width: 46px; height: 46px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; flex: none; }
.order-row .info { flex: 1; min-width: 0; }
.order-row h3 { margin: 0; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.order-row small { color: var(--muted); font-size: 12px; }
.ostatus { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.ostatus.ready { background: rgba(34, 197, 94, .12); color: #86efac; }
.ostatus.awaiting_payment { background: rgba(250, 204, 21, .12); color: #fde68a; }
.ostatus.queued, .ostatus.processing { background: rgba(236, 72, 153, .12); color: #fbcfe8; }
.ostatus.error { background: rgba(239, 68, 68, .12); color: #fca5a5; }

.order-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.order-head .p-icon { font-size: 34px; width: 64px; height: 64px; border-radius: 18px; background: var(--card-2); display: grid; place-items: center; }
.order-head h1 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.order-head .muted { font-size: 14px; }
.progress { height: 10px; background: rgba(255, 255, 255, .07); border-radius: 99px; overflow: hidden; margin: 16px 0 10px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .5s; }
.stage { text-align: center; padding: 34px 22px; }
.stage h2 { margin: 0 0 6px; }
.stage .eq { margin-bottom: 18px; }
.pay-box { max-width: 460px; margin: 0 auto; }
.pay-box .price { text-align: center; margin: 6px 0 16px; }
.methods { display: flex; gap: 8px; justify-content: center; margin: 12px 0 0; font-size: 12px; color: var(--muted); }

.deliver { display: grid; gap: 16px; }
.deliver h2 { margin: 0 0 12px; font-size: 17px; }
.audio-card { display: grid; gap: 10px; padding: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.audio-card .row-between { margin: 0; }
.audio-card p { margin: 0; color: #e9ddff; line-height: 1.6; font-size: 14px; white-space: pre-wrap; }
audio { width: 100%; height: 40px; }
.msg-n { font-size: 12px; color: var(--pink); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.speech-text { white-space: pre-wrap; line-height: 1.8; font-size: 16px; color: #f1e9ff; }
.tips { margin: 0; padding-left: 20px; line-height: 1.7; color: #ddd0f0; }

/* Livro */
.book { background: #fffaf2; color: #2b2340; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.book-page { display: grid; grid-template-columns: 1.3fr 1fr; min-height: 420px; }
.book-page img { width: 100%; height: 100%; object-fit: cover; display: block; background: #f3e8ff; }
.book-text { padding: 34px 30px; display: flex; flex-direction: column; justify-content: center; gap: 14px; font-family: Georgia, 'Times New Roman', serif; font-size: 21px; line-height: 1.6; }
.book-text h1 { font-size: 34px; line-height: 1.15; margin: 0; font-family: Georgia, serif; }
.book-text .ded { font-size: 15px; font-style: italic; color: #6b5a80; }
.book-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #f4ecdf; }
.book-nav .btn-ghost { background: #fff; color: #2b2340; border-color: #e5d9c6; }
.book-nav span { font-size: 13px; color: #6b5a80; font-family: Inter, sans-serif; }

/* Papai Noel */
.santa-card { background: linear-gradient(160deg, #7f1d1d, #b91c1c 55%, #14532d); border-radius: 18px; padding: 28px; position: relative; overflow: hidden; }
.santa-card::before { content: "❄ ❅ ❆ ❄ ❅ ❆ ❄ ❅ ❆"; position: absolute; top: 8px; left: 0; right: 0; text-align: center; letter-spacing: 18px; opacity: .25; font-size: 18px; }
.santa-letter { background: #fffdf6; color: #3a2a1a; border-radius: 12px; padding: 26px; font-family: Georgia, serif; font-size: 18px; line-height: 1.75; white-space: pre-wrap; margin-top: 18px; }
.santa-card h2 { color: #fff; margin: 10px 0 14px; text-align: center; font-size: 24px; }
.santa-previews { display: grid; gap: 10px; margin-top: 16px; }

.admin-tabs { margin-bottom: 14px; width: fit-content; }
.toggle { cursor: pointer; }

#print-area { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #000; padding: 0; }
  body > *:not(main), main > *:not(#print-area) { display: none !important; }
  main { padding: 0; max-width: none; }
  #print-area { display: block; font-family: Georgia, serif; color: #111; }
  #print-area .pp { page-break-after: always; text-align: center; }
  #print-area .pp img { width: 100%; max-height: 150mm; object-fit: contain; }
  #print-area .pp p { font-size: 16pt; line-height: 1.6; margin: 10mm 8mm 0; }
  #print-area h1 { font-size: 26pt; }
  #print-area .txt { white-space: pre-wrap; font-size: 13pt; line-height: 1.7; text-align: left; }
}

@media (max-width: 760px) {
  .book-page { grid-template-columns: 1fr; }
  .book-page img { height: 240px; }
  .book-text { padding: 22px; font-size: 18px; }
  .book-text h1 { font-size: 26px; }
  .order-row { flex-wrap: wrap; }
}

/* Vídeo do livro */
.video-box { margin-top: 16px; }
.video-box video { width: 100%; border-radius: 12px; background: #000; margin: 4px 0 14px; display: block; }

/* Checklist de pagamentos (admin) */
.checklist { display: grid; gap: 10px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.check-item > span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; flex: none; font-size: 13px; }
.check-item.ok > span { background: rgba(34, 197, 94, .15); color: #86efac; }
.check-item.bad > span { background: rgba(239, 68, 68, .15); color: #fca5a5; }
.check-item.warn > span { background: rgba(250, 204, 21, .15); color: #fde68a; }
.check-item b { display: block; font-size: 14px; margin-bottom: 3px; }
.check-item small { color: var(--muted); font-size: 13px; line-height: 1.55; }
.check-item code { background: rgba(0, 0, 0, .3); padding: 1px 6px; border-radius: 5px; font-size: 12px; }

/* Carteira */
.wallet-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; }
.balance-card { background: linear-gradient(135deg, rgba(168, 85, 247, .22), rgba(236, 72, 153, .14)); border-color: rgba(236, 72, 153, .35); }
.balance-card small { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.balance-big { font-size: 44px; font-weight: 800; letter-spacing: -.03em; margin: 6px 0 4px; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.amount { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 6px; color: var(--text); font: 700 16px Inter, sans-serif; cursor: pointer; }
.amount:hover { border-color: var(--violet); }
.amount.active { border-color: var(--pink); background: rgba(236, 72, 153, .1); box-shadow: 0 0 0 1px var(--pink); }
.tx-in { color: #86efac; font-weight: 700; }
.tx-out { color: #fca5a5; font-weight: 700; }
.balance-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.balance-bar b { font-size: 18px; }
.pay-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); font-size: 14px; margin-bottom: 10px; }
.pay-line.short { border-color: rgba(250, 204, 21, .4); background: rgba(250, 204, 21, .06); }
@media (max-width: 760px) {
  .wallet-grid { grid-template-columns: 1fr; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
}

/* Marca Sonorizei */
.logo-img { width: 40px; height: 40px; border-radius: 11px; flex: none; box-shadow: 0 6px 22px rgba(236, 72, 153, .35); }
.brand strong { font-size: 20px; letter-spacing: -.03em; }

/* Papai Noel: mixando voz + trilha */
.santa-mixing { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font-size: 14px; padding: 8px 0 4px; }
.santa-mixing .eq { height: 30px; margin: 0; }
.santa-mixing .eq i { background: #fff; }

/* Revisão da letra */
.review-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; align-items: start; }
.review-side { display: grid; gap: 16px; }
.lyrics-edit { font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.7; }
.tips-card .tips { font-size: 13px; }
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; } }
.ostatus.review { background: rgba(168, 85, 247, .15); color: #e9d5ff; }

/* Configurações (admin) */
.settings-card { margin-bottom: 16px; }
.settings-help { margin: -6px 0 16px; font-size: 13px; line-height: 1.55; }
.set-product { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; background: var(--bg-2); }
.set-product.off { opacity: .55; }
.set-prod-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.set-prod-head .p-icon { font-size: 22px; width: 42px; height: 42px; border-radius: 12px; background: var(--card-2); display: grid; place-items: center; flex: none; }
.set-name { flex: 1; background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 8px 10px; font: 700 16px Inter, sans-serif; color: var(--text); }
.set-name:hover, .set-name:focus { border-color: var(--line); outline: none; background: var(--card); }
.set-variants { display: grid; gap: 10px; }
.set-variant { display: grid; grid-template-columns: 1fr 130px 2fr; gap: 10px; align-items: end; padding-top: 10px; border-top: 1px dashed var(--line); }
.set-variant small { grid-column: 1 / -1; margin-top: -6px; }
.set-variant .field { margin-bottom: 0; }
.price-field input { font-weight: 700; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex: none; }
.switch input { display: none; }
.switch span { width: 40px; height: 22px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch input:checked + span { background: var(--pink); }
.switch input:checked + span::after { left: 21px; }
.switch em { font-style: normal; font-size: 13px; color: var(--muted); }
.set-group { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; }
.set-group h3 { margin: 0 0 12px; font-size: 15px; }
.set-field > span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.set-field small { font-size: 12px; }
.set-field select, .set-field input:not([type=checkbox]) { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; }
.small-check { margin: 6px 0 0; font-size: 12px; }
.warn-badge { color: #fde68a; border-color: rgba(250, 204, 21, .35); }
@media (max-width: 760px) { .set-variant { grid-template-columns: 1fr 110px; } .set-variant .field:last-of-type { grid-column: 1 / -1; } }
