/* tone.ia.br — design system */
:root {
  --bg: #06060b;
  --bg-soft: #0a0a13;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f3f8;
  --muted: #a0a0b6;
  --muted-2: #7b7b93;
  --violet: #a78bfa;
  --violet-deep: #7c3aed;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;
  --green: #34d399;
  --red: #fb7185;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 80px -24px rgba(0, 0, 0, 0.8);
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(167, 139, 250, 0.35); }

/* ---------- fundo ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.5; }
.b1 { width: 640px; height: 640px; left: -180px; top: -220px; background: radial-gradient(circle, #7c3aed, transparent 68%); animation: drift 26s ease-in-out infinite; }
.b2 { width: 560px; height: 560px; right: -160px; top: 80px; background: radial-gradient(circle, #0891b2, transparent 68%); animation: drift 32s ease-in-out infinite reverse; }
.b3 { width: 700px; height: 700px; left: 35%; bottom: -420px; background: radial-gradient(circle, #be185d, transparent 70%); opacity: 0.32; animation: drift 38s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(60px, -40px, 0) scale(1.08); }
}
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  background: rgba(6, 6, 11, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(6, 6, 11, 0.85); }
.nav-inner {
  max-width: 1180px; margin: 0 auto; height: var(--nav-h);
  padding: 0 24px; display: flex; align-items: center; gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; }
.brand .dot { background: linear-gradient(135deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand .tld { color: var(--muted-2); font-weight: 500; }
.nav-links { display: flex; gap: 26px; margin-left: 10px; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-actions, .nav-user { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-user { position: relative; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(34, 211, 238, 0.3));
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: #fff;
  display: grid; place-items: center; transition: transform 0.2s, border-color 0.2s;
}
.avatar:hover { transform: scale(1.05); border-color: rgba(167, 139, 250, 0.7); }
.user-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 240px;
  background: #0e0e18; border: 1px solid var(--line-strong); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; z-index: 60;
}
.user-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu-head strong { display: block; font-size: 14px; }
.user-menu-head span { font-size: 12.5px; color: var(--muted); word-break: break-all; }
.user-menu a, .user-menu button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none;
  border-radius: 8px; font-size: 14px; color: var(--muted);
}
.user-menu a:hover, .user-menu button:hover { background: var(--surface-2); color: var(--text); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 11px; border: 1px solid transparent;
  font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1 55%, #06b6d4);
  color: #fff; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.7);
}
.btn-primary:hover { box-shadow: 0 14px 38px -10px rgba(139, 92, 246, 0.9); transform: translateY(-1px); }
.btn-outline { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-outline:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost { background: none; color: var(--muted); }
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-mini { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.link-btn { background: none; border: 0; color: var(--muted); font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--text); }

/* ---------- util ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
  font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.grad-text { background: linear-gradient(100deg, #c4b5fd 0%, #67e8f9 50%, #f9a8d4 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.pill.live { color: #6ee7b7; border-color: rgba(52, 211, 153, 0.35); background: rgba(52, 211, 153, 0.08); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); }

/* ---------- hero ---------- */
.view { animation: fadeUp 0.45s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero {
  max-width: 1180px; margin: 0 auto; padding: 84px 24px 40px;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center;
}
.hero-copy h1 { font-size: clamp(42px, 5.4vw, 68px); font-weight: 700; margin: 20px 0 22px; }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin: 32px 0 40px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 40px; padding: 0; margin: 0; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; }
.hero-stats span { font-size: 12.5px; color: var(--muted-2); }

.hero-visual { position: relative; }
.player-card {
  position: relative; padding: 18px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  backdrop-filter: blur(16px); transform: rotate(-1.2deg);
  transition: transform 0.4s;
}
.player-card:hover { transform: rotate(0deg) translateY(-4px); }
.player-cover { position: relative; border-radius: 16px; overflow: hidden; height: 230px; }
.cover-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(167, 139, 250, 0.85), transparent 60%),
    radial-gradient(100% 80% at 85% 25%, rgba(34, 211, 238, 0.7), transparent 60%),
    radial-gradient(120% 120% at 50% 110%, rgba(244, 114, 182, 0.75), transparent 62%),
    linear-gradient(150deg, #171129, #0a1020 60%, #1b0d1a);
}
.cover-art::after {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 14px);
  mix-blend-mode: overlay;
}
#eq-canvas { position: absolute; inset: auto 0 0 0; width: 100%; height: 120px; opacity: 0.9; }
.play-fab {
  position: absolute; left: 18px; bottom: 18px; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(10, 10, 18, 0.55);
  color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px);
  transition: transform 0.2s, background 0.2s;
}
.play-fab:hover { transform: scale(1.07); background: rgba(139, 92, 246, 0.55); }
.player-meta { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px 10px; }
.player-meta strong { display: block; font-family: var(--font-display); font-size: 17px; }
.player-meta span { font-size: 12.5px; color: var(--muted); }
.player-wave { display: flex; align-items: flex-end; gap: 3px; height: 34px; padding: 0 4px 10px; opacity: 0.7; }
.player-wave i { flex: 1; background: linear-gradient(to top, rgba(167, 139, 250, 0.25), rgba(34, 211, 238, 0.9)); border-radius: 2px; animation: wave 1.4s ease-in-out infinite; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }
.player-foot { display: flex; align-items: center; gap: 10px; padding: 0 4px 4px; font-size: 11px; color: var(--muted-2); }
.player-foot .bar { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.player-foot .bar i { display: block; height: 100%; width: 40%; background: linear-gradient(90deg, var(--violet), var(--cyan)); }
.float-chip {
  position: absolute; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(14, 14, 24, 0.9); border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}
.chip-a { top: -16px; right: 18px; }
.chip-b { bottom: 46px; left: -26px; animation-delay: -3s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- tech strip ---------- */
.tech-strip {
  max-width: 1180px; margin: 10px auto 0; padding: 0 24px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 22px; padding-bottom: 22px;
  color: var(--muted-2); font-size: 13px;
}
.tech-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.tech-pills span { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* ---------- seções ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 96px 24px 0; }
.section-head { max-width: 620px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 16.5px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 26px; transition: transform 0.25s, border-color 0.25s, background 0.25s; }
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.feature h3 { font-size: 18px; margin: 18px 0 8px; }
.feature p { font-size: 14px; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.i-violet { background: rgba(139, 92, 246, 0.15); color: #c4b5fd; }
.i-cyan { background: rgba(34, 211, 238, 0.12); color: #67e8f9; }
.i-pink { background: rgba(244, 114, 182, 0.13); color: #f9a8d4; }
.i-amber { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.i-green { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.i-blue { background: rgba(96, 165, 250, 0.12); color: #93c5fd; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { padding: 30px 26px; position: relative; overflow: hidden; }
.step-num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--violet); letter-spacing: 0.1em; }
.step h3 { font-size: 20px; margin: 14px 0 10px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
}

.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price { padding: 30px 26px; display: flex; flex-direction: column; }
.price h3 { font-size: 18px; }
.price-tag { font-family: var(--font-display); font-size: 38px; font-weight: 700; margin: 12px 0 18px; letter-spacing: -0.03em; }
.price-tag span { font-size: 14px; font-weight: 500; color: var(--muted-2); }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.price ul li::before { content: "✓"; color: var(--green); margin-right: 9px; font-weight: 700; }
.price .btn { margin-top: auto; }
.price.featured { border-color: rgba(139, 92, 246, 0.45); background: linear-gradient(170deg, rgba(139, 92, 246, 0.14), rgba(255, 255, 255, 0.03)); position: relative; }
.price .tag { position: absolute; top: -12px; right: 22px; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, #8b5cf6, #06b6d4); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.pricing-note { color: var(--muted-2); font-size: 12.5px; margin-top: 18px; }

.faq { display: grid; gap: 10px; }
.faq details { padding: 20px 24px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 14px; color: var(--muted); font-size: 14.5px; max-width: 760px; }

.cta-band {
  max-width: 1180px; margin: 96px auto 0; padding: 48px 44px;
  border-radius: 26px; border: 1px solid rgba(139, 92, 246, 0.3);
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(120% 160% at 100% 100%, rgba(34, 211, 238, 0.16), transparent 55%),
    rgba(255, 255, 255, 0.035);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.cta-band p { color: var(--muted); }

/* ---------- auth ---------- */
.auth-view { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 56px 24px; }
.auth-shell { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.auth-aside {
  padding: 44px 40px; background:
    radial-gradient(120% 100% at 0% 0%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(100% 100% at 100% 100%, rgba(34, 211, 238, 0.14), transparent 60%),
    #0b0b16;
  display: flex; flex-direction: column;
}
.brand-lg { font-size: 24px; margin-bottom: 44px; }
.auth-aside h2 { font-size: 30px; margin-bottom: 14px; }
.auth-aside > p { color: var(--muted); font-size: 15px; }
.auth-points { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 12px; font-size: 14px; color: #d4d4e4; }
.auth-points span { color: var(--green); margin-right: 9px; font-weight: 700; }
.auth-quote { margin-top: auto; padding-top: 26px; border-top: 1px solid var(--line); }
.auth-quote p { font-size: 14px; color: var(--muted); font-style: italic; }
.auth-quote span { font-size: 12px; color: var(--muted-2); }
.auth-card { background: #0a0a13; border: 0; border-radius: 0; padding: 40px 38px; }
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 28px; }
.tab { flex: 1; padding: 9px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 14px; font-weight: 600; transition: background 0.2s, color 0.2s; }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.auth-form h2 { font-size: 26px; }
.auth-form > .muted { font-size: 14px; margin: 8px 0 24px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: #cfcfe0; margin-bottom: 8px; }
.field em { font-style: normal; font-weight: 400; color: var(--muted-2); }
.field input, .field textarea, textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong);
  color: var(--text); font-size: 14.5px; outline: none; resize: vertical;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field input::placeholder, textarea::placeholder { color: #62627a; }
.field input:focus, .field textarea:focus, textarea:focus {
  border-color: rgba(167, 139, 250, 0.65); background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14);
}
.field input.invalid { border-color: rgba(251, 113, 133, 0.7); }
.pw { position: relative; }
.pw input { padding-right: 58px; }
.pw-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); font-size: 12px; padding: 6px; }
.hint { display: block; font-size: 12px; color: var(--muted-2); margin-top: 7px; }
.strength { display: flex; gap: 5px; margin-top: 9px; }
.strength i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); transition: background 0.25s; }
.strength.s1 i:nth-child(-n+1) { background: var(--red); }
.strength.s2 i:nth-child(-n+2) { background: var(--amber); }
.strength.s3 i:nth-child(-n+3) { background: #a3e635; }
.strength.s4 i { background: var(--green); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.check input { margin-top: 3px; accent-color: var(--violet); }
.form-error { background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.3); color: #fda4af; padding: 10px 13px; border-radius: 9px; font-size: 13px; margin-bottom: 14px; }
.form-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.form-foot a { color: var(--violet); font-weight: 600; }

/* ---------- app ---------- */
.app-view { max-width: 1180px; margin: 0 auto; padding: 56px 24px 40px; }
.app-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.app-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 6px 0 6px; }
.app-head .eyebrow { margin-bottom: 0; }

.studio-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; align-items: start; }
.composer { padding: 26px; }
.composer .field > span output { color: var(--violet); font-weight: 700; }
.composer textarea { font-family: var(--font-body); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 12.5px; color: var(--muted); transition: all 0.18s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.28); }
.chip.active { background: rgba(139, 92, 246, 0.2); border-color: rgba(167, 139, 250, 0.65); color: #ddd6fe; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; outline: none;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  margin: 8px 0 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 3px solid #7c3aed; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); cursor: pointer;
}
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #7c3aed; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); }
.lyrics-block { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 20px; background: rgba(0, 0, 0, 0.16); }
.lyrics-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.lyrics-head em { font-style: normal; font-weight: 400; color: var(--muted-2); }
.lyrics-block textarea { background: transparent; border: 0; padding: 4px 0; font-size: 13.5px; line-height: 1.7; }
.lyrics-block textarea:focus { box-shadow: none; background: transparent; }
.lyrics-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.spark { color: #fde68a; }

.result-panel { padding: 26px; min-height: 520px; display: flex; flex-direction: column; }
.result-empty { margin: auto; text-align: center; max-width: 320px; }
.result-empty h3 { font-size: 20px; margin: 22px 0 8px; }
.result-empty p { font-size: 13.5px; }
.vinyl {
  width: 120px; height: 120px; margin: 0 auto; border-radius: 50%;
  background: repeating-radial-gradient(circle at 50% 50%, #14141f 0 3px, #1d1d2c 3px 6px);
  border: 1px solid rgba(255, 255, 255, 0.14); position: relative;
  display: grid; place-items: center; animation: spin 9s linear infinite;
  box-shadow: 0 20px 50px -20px rgba(139, 92, 246, 0.6);
}
.vinyl::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(167, 139, 250, 0.28), transparent 40%); }
.vinyl span { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #22d3ee); border: 4px solid #0a0a13; }
.vinyl.small { width: 84px; height: 84px; }
.vinyl.small span { width: 24px; height: 24px; }
@keyframes spin { to { transform: rotate(360deg); } }
.mini-steps { list-style: none; padding: 0; margin: 24px 0 0; display: flex; justify-content: center; gap: 18px; font-size: 11.5px; color: var(--muted-2); }
.mini-steps b { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 10px; margin-right: 5px; }

.result-live { margin: auto; text-align: center; width: 100%; }
.progress-ring { position: relative; width: 150px; height: 150px; margin: 0 auto 24px; }
.progress-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 7; }
.ring-fg { fill: none; stroke: url(#ring-grad); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 326.7; transition: stroke-dashoffset 0.6s ease; }
.progress-ring::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.18), transparent 70%);
}
.ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-label strong { font-family: var(--font-display); font-size: 30px; letter-spacing: -0.03em; }
.ring-label span { font-size: 11.5px; color: var(--muted); }
.result-live h3 { font-size: 20px; margin-bottom: 8px; }
.result-live p { font-size: 13.5px; }
.job-wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 40px; margin-top: 22px; }
.job-wave i { width: 4px; border-radius: 4px; background: linear-gradient(to top, var(--violet), var(--cyan)); animation: wave 1.1s ease-in-out infinite; }
.job-wave i:nth-child(2n) { animation-delay: -0.25s; }
.job-wave i:nth-child(3n) { animation-delay: -0.5s; }
.job-wave i:nth-child(4n) { animation-delay: -0.75s; }

.result-done { margin: auto; text-align: center; width: 100%; }
.done-badge { display: inline-block; padding: 5px 13px; border-radius: 999px; background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); color: #6ee7b7; font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.result-done h3 { font-size: 22px; margin-bottom: 6px; }
.result-done p { font-size: 13px; margin-bottom: 18px; }
.result-done audio { width: 100%; margin-bottom: 20px; border-radius: 12px; }
.done-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.done-lyrics { margin-top: 22px; text-align: left; border-top: 1px solid var(--line); padding-top: 16px; }
.done-lyrics summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.done-lyrics pre { white-space: pre-wrap; font-family: var(--font-body); font-size: 13px; line-height: 1.75; color: #d4d4e4; margin: 14px 0 0; max-height: 260px; overflow: auto; }
.result-error { margin: auto; text-align: center; max-width: 300px; }
.error-badge { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(251, 113, 133, 0.12); border: 1px solid rgba(251, 113, 133, 0.35); color: var(--red); font-size: 24px; font-weight: 700; }
.result-error h3 { font-size: 19px; margin-bottom: 8px; }
.result-error p { font-size: 13px; margin-bottom: 18px; word-break: break-word; }

.recent { margin-top: 40px; }
.recent-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.recent-head h2 { font-size: 20px; }
.recent-head a { font-size: 13px; color: var(--violet); }

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.job-card { padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.2s, transform 0.2s; }
.job-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.job-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.job-card h3 { font-size: 15.5px; line-height: 1.3; }
.job-card .prompt { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card .meta { display: flex; gap: 8px; align-items: center; font-size: 11.5px; color: var(--muted-2); flex-wrap: wrap; }
.status { padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.status.done { background: rgba(52, 211, 153, 0.12); color: #6ee7b7; }
.status.running, .status.queued { background: rgba(251, 191, 36, 0.12); color: #fcd34d; }
.status.error { background: rgba(251, 113, 133, 0.12); color: #fda4af; }
.job-card audio { width: 100%; height: 34px; }
.job-actions { display: flex; gap: 8px; }
.job-actions .btn { flex: 1; }
.progress-line { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.09); overflow: hidden; }
.progress-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--cyan)); transition: width 0.5s; }

.empty-state { text-align: center; padding: 70px 20px; }
.empty-state h3 { font-size: 22px; margin: 22px 0 8px; }
.empty-state p { margin-bottom: 22px; }

.account-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 18px; }
.profile-card, .plan-card { padding: 28px; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; background: linear-gradient(135deg, rgba(167, 139, 250, 0.4), rgba(34, 211, 238, 0.35)); border: 1px solid var(--line-strong); margin-bottom: 16px; }
.profile-card h2 { font-size: 22px; margin-bottom: 4px; }
.profile-card > .pill { margin-top: 12px; }
.profile-facts { margin: 24px 0; padding: 0; border-top: 1px solid var(--line); }
.profile-facts div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.profile-facts dt { color: var(--muted); }
.profile-facts dd { margin: 0; font-weight: 600; }
.plan-card h2 { font-size: 21px; margin-bottom: 10px; }
.plan-card > p { font-size: 14px; margin-bottom: 20px; }
.plan-rows { border-top: 1px solid var(--line); margin-bottom: 18px; }
.plan-rows div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.plan-rows strong { color: var(--text); }

/* ---------- footer ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 52px 24px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand p { color: var(--muted-2); font-size: 13px; margin-top: 14px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-2); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: 1180px; margin: 0 auto; padding: 20px 24px 34px; display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted-2); flex-wrap: wrap; }
.footer-status { display: inline-flex; align-items: center; gap: 7px; }
.footer-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---------- toast ---------- */
.toast-root { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 240px; max-width: 360px; padding: 13px 16px; border-radius: 12px;
  background: #10101c; border: 1px solid var(--line-strong); box-shadow: var(--shadow);
  font-size: 13.5px; animation: toastIn 0.25s ease both;
}
.toast.ok { border-color: rgba(52, 211, 153, 0.4); }
.toast.err { border-color: rgba(251, 113, 133, 0.45); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- admin ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 18px 20px; }
.stat span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.stat strong { display: block; font-family: var(--font-display); font-size: 28px; margin-top: 6px; letter-spacing: -0.02em; }
.stat em { font-style: normal; font-size: 12px; color: var(--muted-2); }
.admin-card { padding: 0; overflow: hidden; }
.admin-toolbar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.admin-toolbar input {
  flex: 1; max-width: 380px; padding: 10px 13px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); outline: none; font-size: 13.5px;
}
.admin-toolbar input:focus { border-color: rgba(167, 139, 250, 0.65); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14); }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 900px; }
.admin-table th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-2); padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 600; }
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: rgba(255, 255, 255, 0.025); }
.u-cell { display: flex; align-items: center; gap: 11px; }
.u-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: linear-gradient(135deg, rgba(167, 139, 250, 0.35), rgba(34, 211, 238, 0.3)); border: 1px solid var(--line-strong); flex: none; }
.u-cell strong { display: block; font-size: 13.5px; }
.u-cell span { font-size: 12px; color: var(--muted); }
.badge-role { padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-role.admin { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.badge-role.user { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.badge-state { font-size: 11.5px; font-weight: 600; }
.badge-state.on { color: #6ee7b7; }
.badge-state.off { color: #fda4af; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.row-actions button { background: none; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 8px; padding: 5px 9px; font-size: 11.5px; }
.row-actions button:hover { color: var(--text); background: var(--surface-2); }
.row-actions button.danger:hover { color: #fda4af; border-color: rgba(251, 113, 133, 0.5); }
.admin-empty { padding: 28px; text-align: center; }

.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(3, 3, 8, 0.72); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fadeUp 0.2s ease both; }
.modal { width: 100%; max-width: 460px; padding: 26px; background: #0c0c16; border-color: var(--line-strong); box-shadow: var(--shadow); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.modal-head h3 { font-size: 20px; }
.modal-x { background: none; border: 0; color: var(--muted); font-size: 26px; line-height: 1; padding: 0 4px; }
.modal-x:hover { color: var(--text); }
.modal-form .field { margin-bottom: 14px; }
.modal-form .field input, .modal-form .field select {
  width: 100%; padding: 11px 13px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); color: var(--text); outline: none;
}
.modal-form .field input:focus, .modal-form .field select:focus { border-color: rgba(167, 139, 250, 0.65); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.14); }
.modal-form select option { background: #0c0c16; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }
.modal-error { background: rgba(251, 113, 133, 0.1); border: 1px solid rgba(251, 113, 133, 0.3); color: #fda4af; padding: 9px 12px; border-radius: 9px; font-size: 12.5px; margin-bottom: 12px; }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 56px; gap: 40px; }
  .hero-visual { max-width: 480px; }
  .feature-grid, .steps, .pricing, .job-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr; max-width: 520px; }
  .auth-aside { display: none; }
  .auth-card { padding: 34px 28px; }
  .studio-grid, .account-grid { grid-template-columns: 1fr; }
  .result-panel { min-height: 420px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .nav-links, .nav-actions, .nav-user .btn { display: none; }
  .nav-user { margin-left: auto; }
  .menu-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; gap: 0; padding: 10px 24px 18px;
    background: rgba(8, 8, 15, 0.98); border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .hero-copy h1 { font-size: 40px; }
  .hero-stats { gap: 26px; }
  .feature-grid, .steps, .pricing, .job-grid { grid-template-columns: 1fr; }
  .section { padding-top: 72px; }
  .cta-band { padding: 34px 26px; margin-top: 72px; }
  .footer-inner { grid-template-columns: 1fr; }
  .toast-root { left: 16px; right: 16px; }
  .toast { max-width: none; }
  .float-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
