@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap");


:root {
  --radius: 14px;
  --background: oklch(0.14 0.008 285);
  --foreground: oklch(0.97 0.003 285);
  --surface: oklch(0.19 0.01 285);
  --surface-2: oklch(0.24 0.014 285);
  --brand: oklch(0.62 0.21 297);
  --brand-glow: oklch(0.74 0.16 300);
  --cyan: oklch(0.82 0.13 199);
  --muted: oklch(0.68 0.015 285);
  --accent: oklch(0.28 0.03 297);
  --border: oklch(1 0 0 / 9%);
  --input: oklch(1 0 0 / 12%);
  --danger: oklch(0.62 0.22 25);
  --gradient-brand: linear-gradient(135deg, var(--brand) 0%, var(--cyan) 100%);
  --gradient-hero: radial-gradient(80% 60% at 50% 0%, color-mix(in oklab, var(--brand) 28%, transparent) 0%, transparent 70%);
  --shadow-glow: 0 18px 60px -18px color-mix(in oklab, var(--brand) 55%, transparent);
  --shadow-card: 0 12px 40px -20px oklch(0 0 0 / 70%);
}

* { box-sizing: border-box; border-color: var(--border); }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.container { width: min(100% - 32px, 1280px); margin-inline: auto; }
.container-narrow { width: min(100% - 32px, 896px); margin-inline: auto; }
.text-muted { color: var(--muted); }
.gradient-brand { background: var(--gradient-brand); }
.gradient-text { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-glow { background: var(--gradient-hero); }
.glow-shadow { box-shadow: var(--shadow-glow); }
.glass-card {
  background: color-mix(in oklab, var(--surface) 65%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.icon { width: 1em; height: 1em; flex: 0 0 auto; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* Shell */
.site-header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.03em; }
.logo-mark { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 12px; background: var(--gradient-brand); box-shadow: var(--shadow-glow); }
.logo-mark .icon { width: 20px; height: 20px; }
.logo-pro { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.desktop-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 500; transition: .18s ease; }
.nav-link:hover { background: color-mix(in oklab, var(--surface-2) 100%, transparent); color: var(--foreground); }
.nav-link.active { background: var(--accent); color: var(--foreground); }
.nav-link .icon { width: 16px; height: 16px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.credit-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 500; }
.credit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.mobile-menu-button { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: transparent; }
.mobile-menu-button .icon { width: 20px; height: 20px; }
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--surface); padding: 12px 16px; }
.mobile-nav.open { display: block; }
.mobile-nav .nav-link { padding: 12px; gap: 12px; }
.site-main { padding-bottom: 64px; }
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 14px; }
.bottom-nav { display: none; }

/* Reusable */
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pill .icon { width: 14px; height: 14px; }
.btn { border: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; padding: 14px 24px; font-size: 14px; font-weight: 700; transition: transform .18s ease, background .18s ease, color .18s ease, border .18s ease; }
.btn:hover { transform: scale(1.01); }
.btn-brand { background: var(--gradient-brand); color: white; box-shadow: var(--shadow-glow); }
.btn-secondary { background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); }
.btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.field, .select-field, .textarea-field { width: 100%; border: 1px solid var(--input); background: var(--surface-2); outline: none; border-radius: 12px; font-size: 14px; transition: border .15s ease, box-shadow .15s ease; }
.field, .select-field { padding: 10px 12px; }
.textarea-field { padding: 16px; border-radius: 16px; resize: none; line-height: 1.45; }
.field::placeholder, .textarea-field::placeholder { color: var(--muted); }
.field:focus, .select-field:focus, .textarea-field:focus { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in oklab, var(--brand) 40%, transparent); }
.search-wrap { position: relative; }
.search-wrap .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search-wrap .field { padding-left: 36px; }
.scroll-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filter-pill { flex: 0 0 auto; border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 600; transition: .18s ease; }
.filter-pill:hover { color: var(--foreground); }
.filter-pill.active { border-color: transparent; background: var(--gradient-brand); color: white; }
.page-heading { font-size: clamp(30px, 4vw, 40px); line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; margin: 0; }
.page-subtitle { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* Home */
.hero-section { position: relative; overflow: hidden; }
.hero-backdrop { pointer-events: none; position: absolute; inset: 0 0 auto; height: 520px; background: var(--gradient-hero); }
.hero-copy { position: relative; padding-top: 80px; padding-bottom: 40px; text-align: center; }
.hero-copy .pill .icon { color: var(--cyan); }
.hero-title { margin: 24px 0 0; font-size: clamp(40px, 6.2vw, 60px); line-height: 1.05; letter-spacing: -0.045em; font-weight: 800; }
.hero-desc { max-width: 650px; margin: 20px auto 0; color: var(--muted); font-size: 18px; line-height: 1.55; }
.studio-wrap { position: relative; }
.studio-card { border-radius: 24px; padding: 24px; }
.mode-tabs { margin: 0 -4px; display: flex; gap: 8px; overflow-x: auto; padding: 0 4px 4px; }
.mode-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--muted); padding: 10px 16px; font-size: 14px; font-weight: 600; transition: .18s ease; }
.mode-btn:hover { color: var(--foreground); }
.mode-btn.active { background: var(--gradient-brand); color: white; border-color: transparent; }
.mode-btn .icon { width: 16px; height: 16px; }
.studio-fields { margin-top: 20px; display: grid; gap: 16px; }
.upload-zone { display: none; cursor: pointer; flex-direction: column; align-items: center; gap: 8px; border: 1px dashed var(--input); border-radius: 16px; background: color-mix(in oklab, var(--surface-2) 60%, transparent); padding: 32px 16px; text-align: center; transition: border .18s ease; }
.upload-zone:hover { border-color: var(--brand); }
.upload-zone.visible { display: flex; }
.upload-zone .icon { width: 24px; height: 24px; color: var(--brand-glow); }
.upload-title { font-size: 14px; font-weight: 500; }
.upload-note { font-size: 12px; color: var(--muted); }
.stems-row { display: none; flex-wrap: wrap; gap: 8px; }
.stems-row.visible { display: flex; }
.stem-btn { border: 1px solid var(--border); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 600; }
.stem-btn.active { border-color: var(--brand); background: var(--accent); color: var(--foreground); }
.studio-actions { display: flex; align-items: center; gap: 12px; }
.mic-btn { padding-inline: 16px; color: var(--muted); box-shadow: none; }
.mic-btn.listening { color: var(--brand-glow); animation: pulse-ring 1.6s cubic-bezier(.215,.61,.355,1) infinite; }
.create-btn { flex: 1; }
.studio-meta { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.studio-meta span:first-child { display: flex; align-items: center; gap: 8px; }
.studio-meta .icon { width: 14px; height: 14px; color: var(--cyan); }
.section-space { margin-top: 80px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card { border-radius: 16px; padding: 20px; }
.feature-icon { display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--accent); }
.feature-icon .icon { width: 20px; height: 20px; color: var(--brand-glow); }
.feature-card h3 { margin: 16px 0 0; font-size: 16px; }
.feature-card p { margin: 6px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; }
.section-head p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.see-all { display: flex; align-items: center; gap: 6px; color: var(--brand-glow); font-size: 14px; font-weight: 600; white-space: nowrap; }
.see-all .icon { width: 16px; height: 16px; }
.tracks-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cta-card { position: relative; overflow: hidden; border-radius: 24px; padding: 56px; text-align: center; }
.cta-card::before { content: ""; pointer-events: none; position: absolute; inset: 0; background: var(--gradient-hero); }
.cta-content { position: relative; }
.cta-wave { display: flex; width: max-content; margin: 0 auto; }
.cta-card h2 { margin: 24px 0 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -0.04em; }
.cta-card p { max-width: 575px; margin: 12px auto 0; color: var(--muted); font-size: 16px; }
.cta-card .btn { margin-top: 28px; }

/* Wave */
.wave-bars { display: flex; height: 32px; align-items: end; gap: 3px; }
.wave-bar { width: 3px; min-height: 4px; border-radius: 999px; background: color-mix(in oklab, var(--brand-glow) 70%, transparent); transform-origin: bottom; animation: equalize 1.1s ease-in-out infinite; }
@keyframes equalize { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 70%, transparent); } 70% { box-shadow: 0 0 0 15px color-mix(in oklab, var(--brand) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--brand) 0%, transparent); } }

/* Track cards */
.track-card { display: flex; align-items: center; gap: 16px; border-radius: 16px; padding: 16px; transition: transform .18s ease; }
.track-card:hover { transform: translateY(-2px); }
.track-art { position: relative; display: flex; width: 80px; height: 80px; flex: 0 0 80px; align-items: center; justify-content: center; overflow: hidden; border-radius: 12px; background: var(--surface-2); }
.track-art::before { content: ""; position: absolute; inset: 0; background: var(--gradient-hero); opacity: .7; }
.track-art .wave-bars { position: relative; }
.track-play { position: absolute; display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--gradient-brand); color: white; opacity: 0; transition: opacity .18s ease; }
.track-card:hover .track-play, .track-play:focus-visible { opacity: 1; }
.track-play .icon { width: 20px; height: 20px; }
.track-info { min-width: 0; flex: 1; }
.track-title-line { display: flex; align-items: center; gap: 8px; }
.track-title { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; font-weight: 600; }
.track-mode { flex: 0 0 auto; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; color: var(--cyan); font-size:12px; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; }
.track-genre { margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; }
.track-meta { margin: 4px 0 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-actions { display: flex; align-items: center; gap: 8px; }
.track-action { display: flex; height: 36px; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; transition: .18s ease; }
.track-action:hover { color: var(--foreground); background: color-mix(in oklab, var(--surface-2) 100%, transparent); }
.track-action.download { padding: 0 12px; color: var(--foreground); }
.track-action.icon-only { width: 36px; padding: 0; }
.track-action .icon { width: 16px; height: 16px; }
.track-action.liked { color: var(--brand-glow); background: var(--accent); }

/* Library / Explore */
.page-wrap { padding-top: 40px; }
.library-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.library-controls { display: flex; align-items: center; gap: 8px; }
.library-search { width: 256px; }
.square-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); background: transparent; border-radius: 12px; color: var(--muted); }
.square-btn .icon { width: 16px; height: 16px; }
.view-switch { display: flex; padding: 4px; border: 1px solid var(--border); border-radius: 12px; }
.view-switch button { display: flex; width: 32px; height: 32px; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.view-switch button.active { background: var(--accent); color: var(--foreground); }
.view-switch .icon { width: 16px; height: 16px; }
.library-filters { margin-top: 24px; }
.library-list { margin-top: 24px; display: grid; gap: 16px; }
.library-list.grid-view { grid-template-columns: repeat(3, 1fr); }
.library-list.grid-view .track-card { flex-direction: column; align-items: stretch; }
.library-list.grid-view .track-art { width: 100%; height: 112px; }
.library-list.grid-view .track-actions { flex-wrap: wrap; }
.empty-state { display: none; margin-top: 40px; text-align: center; color: var(--muted); font-size: 14px; }
.pagination { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.page-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 12px; background: transparent; padding: 8px 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.page-btn.next { color: var(--foreground); }
.page-btn .icon { width: 16px; height: 16px; }
.page-numbers { display: flex; align-items: center; gap: 4px; }
.page-number { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 600; }
.page-number.active { background: var(--gradient-brand); color: white; }

.explore-hero { position: relative; overflow: hidden; border-radius: 24px; padding: 40px; }
.explore-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--gradient-hero); }
.explore-hero-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.explore-hero .pill { color: var(--cyan); }
.explore-title { margin: 16px 0 0; font-size: clamp(30px, 4vw, 40px); letter-spacing: -0.04em; }
.explore-copy { max-width: 550px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.explore-visual { display: flex; min-width: 250px; align-items: center; justify-content: center; border-radius: 16px; background: color-mix(in oklab, var(--surface-2) 70%, transparent); padding: 32px; }
.explore-toolbar { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.explore-toolbar h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 24px; }
.explore-toolbar h2 .icon { width: 20px; height: 20px; color: var(--brand-glow); }
.explore-search { width: 288px; }
.explore-filters { margin-top: 20px; }

/* Pricing */
.pricing-wrap { padding-top: 48px; }
.pricing-head { text-align: center; }
.pricing-head h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.045em; }
.pricing-head p { max-width: 575px; margin: 16px auto 0; color: var(--muted); font-size: 16px; line-height: 1.5; }
.billing-toggle { margin-top: 28px; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); padding: 4px; font-size: 12px; font-weight: 600; }
.billing-toggle button { border: 0; border-radius: 999px; background: transparent; color: var(--muted); padding: 8px 16px; }
.billing-toggle button.active { background: var(--gradient-brand); color: white; }
.plans-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card { position: relative; display: flex; flex-direction: column; border-radius: 24px; padding: 32px; }
.plan-card.highlight { border-color: var(--brand); box-shadow: var(--shadow-glow); }
.popular-badge { position: absolute; top: -12px; left: 24px; display: flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--gradient-brand); padding: 4px 12px; color: white; font-size: 11px; font-weight: 700; }
.popular-badge .icon { width: 12px; height: 12px; }
.plan-card h2 { margin: 0; font-size: 18px; }
.plan-desc { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.plan-price { margin: 24px 0 0; font-size: 40px; font-weight: 800; letter-spacing: -0.04em; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: normal; }
.plan-features { flex: 1; list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; font-size: 14px; }
.plan-features li { display: flex; align-items: start; gap: 10px; color: var(--muted); }
.plan-features .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--cyan); }
.plan-card .btn { margin-top: 28px; }
.faq-section { max-width: 768px; margin: 64px auto 0; }
.faq-section h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.faq-list { margin-top: 20px; display: grid; gap: 12px; }
.faq-item { border-radius: 16px; padding: 20px; }
.faq-item summary { cursor: pointer; font-size: 14px; font-weight: 600; }
.faq-item p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Settings */
.settings-layout { margin-top: 32px; display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
.settings-nav { display: flex; flex-direction: column; gap: 4px; }
.settings-tab { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); padding: 10px 16px; font-size: 14px; font-weight: 600; text-align: left; }
.settings-tab:hover { color: var(--foreground); }
.settings-tab.active { background: var(--accent); color: var(--foreground); }
.settings-tab .icon { width: 16px; height: 16px; }
.settings-card { border-radius: 24px; padding: 28px; }
.settings-panel { display: none; }
.settings-panel.active { display: block; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.avatar { display: flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 16px; background: var(--gradient-brand); color: white; font-size: 20px; font-weight: 800; }
.small-btn { border: 1px solid var(--border); background: transparent; border-radius: 12px; padding: 8px 16px; font-size: 12px; font-weight: 600; }
.form-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-label { display: block; }
.form-label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.settings-save { margin-top: 20px; }
.settings-select + .settings-select { margin-top: 16px; }
.toggle-list { margin-top: 16px; }
.toggle-row { display: flex; align-items: start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); padding: 16px 0; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-copy h3 { margin: 0; font-size: 14px; }
.toggle-copy p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.switch { position: relative; width: 44px; height: 24px; flex: 0 0 44px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); padding: 0; transition: .18s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--foreground); transition: transform .18s ease; }
.switch.on { border-color: transparent; background: var(--gradient-brand); }
.switch.on::after { transform: translateX(20px); }
.billing-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.billing-card.primary { background: var(--surface-2); }
.billing-card + .billing-card { margin-top: 20px; }
.billing-card .eyebrow { color: var(--muted); font-size: 12px; font-weight: 600; }
.billing-card .value { margin-top: 4px; font-size: 20px; font-weight: 700; }
.billing-card .note { margin-top: 4px; color: var(--muted); font-size: 12px; }
.danger-action { margin-top: 24px; }

.toast { position: fixed; right: 20px; bottom: 20px; z-index: 80; max-width: min(380px, calc(100vw - 40px)); border: 1px solid var(--border); border-radius: 14px; background: color-mix(in oklab, var(--surface) 95%, transparent); box-shadow: var(--shadow-card); padding: 12px 16px; color: var(--foreground); font-size: 13px; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { transform: translateY(0); opacity: 1; }

@media (max-width: 1023px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .tracks-grid { grid-template-columns: 1fr; }
  .library-list.grid-view { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { max-width: 680px; width: 100%; margin-inline: auto; }
  .explore-hero-inner { align-items: stretch; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow-x: auto; gap: 8px; }
  .settings-tab { width: auto; flex: 0 0 auto; }
}

@media (max-width: 767px) {
  .container, .container-narrow { width: min(100% - 32px, 1280px); }
  .desktop-nav { display: none; }
  .mobile-menu-button { display: flex; }
  .site-main { padding-bottom: 96px; }
  .site-footer { display: none; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); background: color-mix(in oklab, var(--background) 90%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
  .bottom-link { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 4px; color: var(--muted); font-size: 11px; font-weight: 500; }
  .bottom-link.active { color: var(--brand-glow); }
  .bottom-link .icon { width: 20px; height: 20px; }
  .hero-copy { padding-top: 56px; }
  .hero-desc { font-size: 16px; }
  .studio-card { padding: 16px; }
  .studio-actions { flex-direction: column; align-items: stretch; }
  .studio-meta { align-items: flex-start; flex-direction: column; }
  .section-space { margin-top: 64px; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 32px; }
  .cta-card p { font-size: 14px; }
  .library-head { align-items: stretch; flex-direction: column; }
  .library-controls { width: 100%; }
  .library-search { width: auto; flex: 1; }
  .library-list.grid-view { grid-template-columns: 1fr; }
  .track-card { align-items: stretch; flex-direction: column; }
  .track-art { width: 100%; height: 112px; flex-basis: 112px; }
  .track-actions { flex-wrap: wrap; }
  .track-action.share-action { display: none; }
  .pagination { gap: 8px; }
  .page-btn span { display: none; }
  .explore-hero { padding: 24px; }
  .explore-hero-inner { flex-direction: column; }
  .explore-visual { min-width: 0; }
  .explore-toolbar { align-items: stretch; flex-direction: column; }
  .explore-search { width: 100%; }
  .pricing-head p { font-size: 14px; }
  .plan-card { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .settings-card { padding: 20px; }
}

@media (max-width: 639px) {
  .credit-pill { display: none; }
  .header-inner { padding-inline: 0; }
  .section-head { align-items: flex-end; }
  .section-head p { max-width: 220px; }
}


/* Fidelity corrections: match the reference design radius scale and breakpoints. */
.logo-mark{border-radius:18px}.nav-link{border-radius:14px}.mobile-menu-button{border-radius:14px}.mobile-nav .nav-link{border-radius:14px}
.btn{border-radius:22px}.field,.select-field{border-radius:18px}.textarea-field{border-radius:22px}
.studio-card{border-radius:26px}.mode-btn{border-radius:18px}.upload-zone{border-radius:22px}
.feature-card{border-radius:22px}.feature-icon{border-radius:18px}.cta-card{border-radius:26px}
.track-card{border-radius:22px}.track-art{border-radius:18px}.track-action{border-radius:14px}
.square-btn{border-radius:18px}.view-switch{border-radius:18px}.view-switch button{border-radius:14px}.page-btn{border-radius:18px}.page-number{border-radius:14px}
.explore-hero{border-radius:26px}.explore-visual{border-radius:22px}
.plan-card{border-radius:26px}.faq-item{border-radius:22px}
.settings-tab{border-radius:18px}.settings-card{border-radius:26px}.avatar{border-radius:22px}.small-btn{border-radius:18px}.billing-card{border-radius:22px}
.featured-play{margin-top:24px}.billing-heading{font-size:14px;font-weight:600}.billing-note{margin-top:8px}
.menu-close{display:none}.mobile-menu-button[aria-expanded="true"] .menu-open{display:none}.mobile-menu-button[aria-expanded="true"] .menu-close{display:block}.menu-glyph{line-height:0}
.track-card[hidden]{display:none!important}
@media (min-width:640px){.container{width:min(calc(100% - 48px),1280px)}.container-narrow{width:min(calc(100% - 48px),896px)}}
@media (min-width:640px) and (max-width:767px){
  .library-head{align-items:flex-end;flex-direction:row}.library-controls{width:auto}.library-search{width:256px;flex:none}
  .track-card{align-items:center;flex-direction:row}.track-art{width:80px;height:80px;flex-basis:80px}.track-actions{flex-wrap:nowrap}.track-action.share-action{display:flex}
  .explore-toolbar{align-items:center;flex-direction:row}.explore-search{width:288px}.form-grid{grid-template-columns:repeat(2,1fr)}
}
.library-list.grid-view .wave-bar:nth-child(n+13){display:none}

/* Exact responsive parity with the source JSX (Tailwind sm=640, md=768, lg=1024, xl=1280). */
.logo{letter-spacing:-.025em}
.hero-title{font-size:36px;letter-spacing:-.025em}
.page-heading{font-size:30px;letter-spacing:-.025em}
.section-head h2,.cta-card h2,.explore-title,.pricing-head h1,.faq-section h2,.plan-price{letter-spacing:-.025em}
.explore-title{font-size:30px}.cta-card h2{font-size:30px}
.section-space{margin-top:80px}
.explore-hero-inner{flex-direction:column;align-items:stretch;justify-content:flex-start}
.explore-toolbar{align-items:stretch;flex-direction:column}
.library-list.grid-view{grid-template-columns:1fr}
.library-list.grid-view .track-card{flex-direction:column;align-items:stretch}
.library-list.grid-view .track-art{width:100%;height:112px;flex-basis:112px}
.library-list.grid-view .track-actions{flex-wrap:wrap}
@media (min-width:640px){
  .hero-title{font-size:60px}.page-heading{font-size:36px}.explore-title{font-size:36px}.cta-card h2{font-size:36px}
  .studio-card{padding:24px}.studio-actions{flex-direction:row;align-items:center}.studio-meta{align-items:center;flex-direction:row;justify-content:space-between}
  .features-grid{grid-template-columns:repeat(2,1fr)}.cta-card{padding:56px}.cta-card p{font-size:16px}
  .library-head{align-items:flex-end;flex-direction:row}.library-controls{width:auto}.library-search{width:256px;flex:none}
  .track-card{align-items:center;flex-direction:row}.track-art{width:80px;height:80px;flex-basis:80px}.track-actions{flex-wrap:nowrap}.track-action.share-action{display:flex}
  .library-list.grid-view{grid-template-columns:repeat(2,1fr)}.library-list.grid-view .track-card{flex-direction:row;align-items:center}.library-list.grid-view .track-art{width:80px;height:80px;flex-basis:80px}.library-list.grid-view .track-actions{flex-wrap:nowrap}
  .explore-hero{padding:40px}.explore-toolbar{align-items:center;flex-direction:row}.explore-search{width:288px}
  .plan-card{padding:32px}.settings-card{padding:28px}.form-grid{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1024px){.features-grid{grid-template-columns:repeat(4,1fr)}.explore-hero-inner{flex-direction:row;align-items:center;justify-content:space-between}}
@media (min-width:1280px){.library-list.grid-view{grid-template-columns:repeat(3,1fr)}}

/* HORA MUSIC — unified page shell + admin */
:root{--page-top:40px;--page-max:1280px}
.page-wrap,.pricing-wrap{padding-top:var(--page-top)}
.pricing-head h1{font-size:30px;line-height:1.1;letter-spacing:-.025em}
.pricing-head p{margin-top:8px;font-size:14px}
.pricing-head .billing-toggle{margin-top:24px}
.plans-grid{margin-top:32px}
.admin-entry,.admin-site-link{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 11px;border:1px solid var(--border);border-radius:14px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;transition:.18s ease}
.admin-entry:hover,.admin-site-link:hover{background:var(--surface-2);color:var(--foreground)}
.admin-entry .icon,.admin-site-link .icon{width:15px;height:15px}
.logo>span:last-child{white-space:nowrap}

.admin-body{background:radial-gradient(90% 55% at 65% 0%,color-mix(in oklab,var(--brand) 10%,transparent),transparent 65%),var(--background)}
.admin-header-center{position:absolute;left:50%;transform:translateX(-50%)}
.admin-badge{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:999px;background:var(--surface);padding:6px 12px;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}
.admin-user{display:flex;align-items:center;gap:9px;margin-left:4px}
.admin-user-avatar,.mini-avatar{display:inline-flex;align-items:center;justify-content:center;background:var(--gradient-brand);color:white;font-weight:800}
.admin-user-avatar{width:34px;height:34px;border-radius:12px;font-size:11px}.admin-user-copy{display:grid;line-height:1.1}.admin-user-copy b{font-size:12px}.admin-user-copy small{margin-top:4px;color:var(--muted);font-size:12px}
.admin-main{padding-bottom:64px}.admin-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}.admin-sidebar{position:sticky;top:88px;display:flex;flex-direction:column;padding:14px;border-radius:26px;min-height:calc(100vh - 128px)}
.admin-sidebar-title{padding:8px 10px 10px;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.11em}.admin-sidebar-section{margin-top:12px;padding-top:14px;border-top:1px solid var(--border)}
.admin-tab{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;border:0;border-radius:16px;background:transparent;padding:9px 11px;color:var(--muted);font-size:13px;font-weight:650;text-align:left;transition:.18s ease}.admin-tab:hover{background:color-mix(in oklab,var(--surface-2) 55%,transparent);color:var(--foreground)}.admin-tab.active{background:var(--accent);color:var(--foreground)}.admin-tab .icon{width:16px;height:16px}.admin-count{margin-left:auto;color:var(--muted);font-size:12px}.admin-alert-dot{display:inline-flex;align-items:center;justify-content:center;margin-left:auto;width:20px;height:20px;border-radius:999px;background:color-mix(in oklab,var(--danger) 22%,transparent);color:#ff9b91;font-size:12px;font-weight:800}
.admin-sidebar-footer{margin-top:auto;display:flex;align-items:flex-start;gap:9px;border-top:1px solid var(--border);padding:16px 8px 4px}.admin-sidebar-footer div{display:grid;min-width:0}.admin-sidebar-footer b{font-size:12px;line-height:1.35}.admin-sidebar-footer small{margin-top:3px;color:var(--muted);font-size:11px}.status-dot{display:inline-block;width:8px;height:8px;flex:0 0 8px;margin-top:3px;border-radius:50%;background:#56e39f;box-shadow:0 0 14px #56e39f88}
.admin-content{min-width:0}.admin-panel{display:none}.admin-panel.active{display:block}.admin-page-head{min-height:62px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.admin-head-actions{display:flex;align-items:center;gap:8px}.admin-primary{padding:10px 16px;border-radius:16px;box-shadow:none}.admin-page-head .small-btn{min-height:40px}
.admin-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.admin-kpi{min-width:0;border-radius:22px;padding:18px}.admin-kpi-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.admin-kpi-icon{display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:13px;background:var(--accent);color:var(--brand-glow)}.admin-kpi-icon .icon{width:17px;height:17px}.trend{border-radius:999px;padding:4px 7px;font-size:11px;font-weight:800}.trend.up,.trend.down-good{background:#56e39f15;color:#72eab0}.admin-kpi>b{display:block;font-size:24px;line-height:1.05;letter-spacing:-.035em}.admin-kpi p{margin:7px 0 0;font-size:12px;font-weight:650}.admin-kpi small{display:block;margin-top:4px;color:var(--muted);font-size:12px}.admin-kpis.compact{margin-bottom:18px}.admin-kpis.compact .admin-kpi{padding:17px}.admin-kpis.compact .admin-kpi>b{font-size:22px}
.admin-overview-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,.8fr);gap:14px;margin-top:14px}.admin-card{border-radius:24px;padding:20px}.admin-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px}.admin-card-head h2{margin:0;font-size:15px;letter-spacing:-.02em}.admin-card-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.admin-card-head .pill{font-size:11px}.admin-recent{margin-top:14px}
.admin-chart{display:flex;height:210px;gap:12px;padding-top:6px}.chart-y{width:28px;display:flex;flex-direction:column;justify-content:space-between;padding-bottom:24px;color:var(--muted);font-size:11px}.chart-bars{flex:1;display:grid;grid-template-columns:repeat(7,1fr);align-items:end;gap:10px;border-bottom:1px solid var(--border);background:repeating-linear-gradient(to bottom,transparent 0,transparent 46px,var(--border) 47px,transparent 48px)}.chart-col{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px}.chart-col small{height:17px;color:var(--muted);font-size:11px}.chart-bar{width:min(26px,60%);min-height:12px;border-radius:9px 9px 3px 3px;background:color-mix(in oklab,var(--brand) 54%,var(--surface-2));box-shadow:0 0 18px color-mix(in oklab,var(--brand) 12%,transparent)}.chart-bar.active{background:var(--gradient-brand)}
.plan-distribution{display:flex;align-items:center;justify-content:center;gap:22px;min-height:210px}.donut{width:130px;height:130px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--brand) 0 68%,var(--cyan) 68% 93%,color-mix(in oklab,var(--brand-glow) 30%,var(--surface-2)) 93% 100%)}.donut-hole{width:84px;height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:var(--surface)}.donut-hole b{font-size:18px}.donut-hole small{color:var(--muted);font-size:11px}.distribution-list{display:grid;gap:12px;min-width:100px}.distribution-list>div{display:flex;justify-content:space-between;gap:12px;font-size:12px}.distribution-list span{display:flex;align-items:center;gap:7px;color:var(--muted)}.legend{display:inline-block;width:7px;height:7px;border-radius:50%}.legend.brand{background:var(--brand)}.legend.cyan{background:var(--cyan)}.legend.soft{background:var(--brand-glow)}
.admin-table-wrap{overflow-x:auto;margin:0 -4px}.admin-table{width:100%;border-collapse:collapse;min-width:670px}.admin-table th{text-align:left;padding:0 10px 10px;color:var(--muted);font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.admin-table td{border-top:1px solid var(--border);padding:12px 10px;font-size:11px;vertical-align:middle}.admin-table td>small,.table-main+small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.table-main{font-weight:650}.status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:750}.status-pill.success{background:#56e39f15;color:#72eab0}.status-pill.info{background:color-mix(in oklab,var(--cyan) 13%,transparent);color:var(--cyan)}.status-pill.warning{background:#f6c85f16;color:#f6c85f}.status-pill.danger{background:color-mix(in oklab,var(--danger) 16%,transparent);color:#ff9086}.status-pill.muted{background:var(--surface-2);color:var(--muted)}
.admin-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:14px}.admin-search{flex:1;max-width:420px}.admin-filter{width:180px}.user-cell{display:flex;align-items:center;gap:9px}.user-cell>span:last-child{display:grid}.user-cell b{font-size:11px}.user-cell small{margin-top:2px;color:var(--muted);font-size:11px}.mini-avatar{width:30px;height:30px;border-radius:11px;font-size:11px}.table-action{border:0;background:transparent;color:var(--muted);font-weight:800;letter-spacing:1px}.admin-table-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-top:16px;border-top:1px solid var(--border);color:var(--muted);font-size:12px}.admin-table-footer>div{display:flex;gap:7px}
.queue-list{display:grid}.queue-row{display:grid;grid-template-columns:12px minmax(190px,1.2fr) minmax(140px,1fr) 45px;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--border)}.queue-row:first-child{border-top:0}.queue-icon{width:9px;height:9px;border-radius:50%}.queue-icon.processing{background:var(--cyan);box-shadow:0 0 12px color-mix(in oklab,var(--cyan) 60%,transparent)}.queue-icon.waiting{background:var(--muted)}.queue-row>div{display:grid}.queue-row>div b{font-size:11px}.queue-row>div small{margin-top:3px;color:var(--muted);font-size:11px}.queue-progress{height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden}.queue-progress i{display:block;height:100%;border-radius:999px;background:var(--gradient-brand)}.queue-row>b{font-size:12px;text-align:right}.live-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#56e39f12;padding:5px 9px;color:#72eab0;font-size:11px;font-weight:700}.live-pill i{width:6px;height:6px;border-radius:50%;background:#56e39f;animation:pulse-ring 1.6s infinite}
.admin-plan-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.admin-plan{display:flex;flex-direction:column;border-radius:24px;padding:22px}.admin-plan.featured{border-color:var(--brand);box-shadow:var(--shadow-glow)}.plan-chip{display:inline-flex;border-radius:999px;background:var(--accent);padding:4px 8px;color:var(--brand-glow);font-size:11px;font-weight:800;letter-spacing:.07em}.admin-plan h2{margin:14px 0 0;font-size:18px}.admin-plan p{margin:4px 0 0;color:var(--muted);font-size:11px}.admin-plan>b{margin-top:20px;font-size:28px;letter-spacing:-.03em}.admin-plan>b small{color:var(--muted);font-size:11px;font-weight:500}.admin-plan ul{flex:1;margin:18px 0;padding-left:18px;color:var(--muted);font-size:11px;line-height:2}.admin-plan .small-btn{width:100%}
.moderation-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.moderation-card{border-radius:24px;padding:22px}.moderation-top{display:flex;align-items:center;justify-content:space-between}.moderation-top small{color:var(--muted);font-size:11px}.moderation-card h2{margin:18px 0 0;font-size:15px}.moderation-card p{margin:5px 0;color:var(--muted);font-size:11px}.moderation-card blockquote{margin:16px 0;border-left:2px solid var(--brand);padding:10px 12px;background:var(--surface-2);border-radius:0 12px 12px 0;color:var(--muted);font-size:12px;line-height:1.55}.moderation-actions{display:flex;justify-content:flex-end;gap:8px}.moderation-actions .btn{padding:9px 13px;border-radius:14px;font-size:12px}
.admin-form{margin-top:0}.system-health{margin-top:14px}.health-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.health-grid>div{position:relative;display:grid;border:1px solid var(--border);border-radius:18px;padding:14px 14px 14px 32px;background:color-mix(in oklab,var(--surface-2) 45%,transparent)}.health-grid .status-dot{position:absolute;left:14px;top:15px}.health-grid b{font-size:11px}.health-grid small{margin-top:3px;color:var(--muted);font-size:11px}

@media(min-width:640px){.pricing-head h1{font-size:36px}}
@media(max-width:1100px){.admin-user-copy{display:none}.admin-overview-grid{grid-template-columns:1fr}.admin-kpis{grid-template-columns:repeat(2,1fr)}.admin-plan-grid{grid-template-columns:1fr}.health-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.admin-layout{grid-template-columns:1fr}.admin-sidebar{position:static;min-height:0;flex-direction:row;overflow-x:auto;padding:8px}.admin-sidebar-title,.admin-sidebar-footer{display:none}.admin-sidebar-section{margin:0;border:0;padding:0}.admin-tab{width:auto;flex:0 0 auto}.admin-tab .admin-count,.admin-tab .admin-alert-dot{margin-left:4px}.admin-header-center{display:none}.moderation-list{grid-template-columns:1fr}}
@media(max-width:767px){.admin-entry{display:none}.admin-site-link span{display:none}.admin-site-link{width:36px;padding:0;justify-content:center}.admin-user{display:none}.admin-main{padding-bottom:40px}.admin-page-head{align-items:stretch;flex-direction:column}.admin-head-actions{width:100%}.admin-head-actions>*{flex:1}.admin-kpis{grid-template-columns:1fr 1fr}.admin-toolbar{align-items:stretch;flex-direction:column}.admin-search,.admin-filter{width:100%;max-width:none}.admin-card{padding:16px}.admin-chart{height:180px}.plan-distribution{flex-direction:column}.queue-row{grid-template-columns:12px 1fr 48px}.queue-progress{display:none}.health-grid{grid-template-columns:1fr 1fr}}
@media(max-width:480px){.admin-kpis{grid-template-columns:1fr}.health-grid{grid-template-columns:1fr}.admin-page-head .page-heading{font-size:30px}.chart-bars{gap:5px}.chart-bar{width:18px}.admin-head-actions{flex-direction:column}.moderation-actions{flex-direction:column}.moderation-actions>*{width:100%}}
@media (min-width:768px) and (max-width:950px){
  .credit-pill{display:none}
  .admin-entry{width:36px;padding:0;justify-content:center}
  .admin-entry span{display:none}
  .nav-link{padding-inline:9px}
}


/* HORA MUSIC — account, auth and product-flow expansion */
.user-menu-wrap{position:relative}.user-menu-button{display:inline-flex;align-items:center;gap:8px;height:38px;border:1px solid var(--border);border-radius:16px;background:var(--surface);padding:3px 9px 3px 4px;color:var(--foreground)}.user-menu-button>.icon{width:14px;height:14px;color:var(--muted);transition:transform .18s ease}.user-menu-button[aria-expanded="true"]>.icon{transform:rotate(180deg)}.user-avatar{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;border-radius:12px;background:var(--gradient-brand);box-shadow:0 10px 28px -14px color-mix(in oklab,var(--brand) 80%,transparent);color:white;font-size:12px;font-weight:850}.user-avatar.large{width:38px;height:38px;border-radius:14px;font-size:11px}.user-menu-name{font-size:11px;font-weight:700}.user-dropdown{position:absolute;right:0;top:calc(100% + 10px);z-index:70;width:250px;padding:8px;border:1px solid var(--border);border-radius:20px;background:color-mix(in oklab,var(--surface) 97%,transparent);box-shadow:0 24px 60px -22px #000;backdrop-filter:blur(22px);opacity:0;visibility:hidden;transform:translateY(-6px) scale(.98);transform-origin:top right;transition:.16s ease}.user-menu-wrap.open .user-dropdown{opacity:1;visibility:visible;transform:none}.user-dropdown-head{display:flex;align-items:center;gap:10px;padding:8px}.user-dropdown-head>div{display:grid;min-width:0}.user-dropdown-head b{font-size:12px}.user-dropdown-head small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:11px}.user-dropdown-credits{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:4px 4px 8px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);padding:9px 10px;font-size:11px}.user-dropdown-credits span{display:flex;align-items:center;gap:6px;color:var(--muted)}.user-dropdown-credits i{width:6px;height:6px;border-radius:50%;background:var(--cyan)}.user-dropdown>a{display:flex;align-items:center;gap:10px;border-radius:13px;padding:9px 10px;color:var(--muted);font-size:11px;font-weight:650}.user-dropdown>a:hover{background:var(--surface-2);color:var(--foreground)}.user-dropdown>a .icon{width:15px;height:15px}.user-dropdown>a.danger-link:hover{color:#ff948a}.user-dropdown-sep{height:1px;margin:6px 4px;background:var(--border)}
.footer-expanded{align-items:center}.footer-center{display:flex;align-items:center;gap:20px;margin-left:auto}.footer-center p{margin:0}.footer-links{display:flex;gap:14px}.footer-links a{font-size:12px}.footer-links a:hover{color:var(--foreground)}
.auth-body{min-height:100vh;background:radial-gradient(70% 60% at 50% 8%,color-mix(in oklab,var(--brand) 16%,transparent),transparent 70%),var(--background)}.auth-header{background:color-mix(in oklab,var(--background) 72%,transparent)}.auth-header-link{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:650}.auth-header-link:hover{color:var(--foreground)}.auth-header-link .icon{width:14px;height:14px}.auth-main{position:relative;min-height:calc(100vh - 64px);display:grid;place-items:center;overflow:hidden;padding:54px 16px}.auth-orb{position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none}.auth-orb-one{top:14%;left:8%;width:220px;height:220px;background:radial-gradient(circle,color-mix(in oklab,var(--brand) 12%,transparent),transparent 70%)}.auth-orb-two{right:6%;bottom:10%;width:300px;height:300px;background:radial-gradient(circle,color-mix(in oklab,var(--cyan) 8%,transparent),transparent 70%)}.auth-shell{position:relative;width:min(100%,430px);border:1px solid var(--border);border-radius:30px;background:color-mix(in oklab,var(--surface) 72%,transparent);box-shadow:0 35px 90px -42px #000,0 18px 70px -40px color-mix(in oklab,var(--brand) 70%,transparent);backdrop-filter:blur(18px);padding:32px}.auth-brand-mark{display:grid;width:48px;height:48px;place-items:center;margin:0 auto 18px;border-radius:18px;background:var(--gradient-brand);box-shadow:var(--shadow-glow)}.auth-brand-mark .icon{width:25px;height:25px}.auth-copy{text-align:center}.auth-copy .pill{padding:5px 9px;font-size:11px}.auth-copy h1{margin:16px 0 0;font-size:30px;line-height:1.08;letter-spacing:-.035em}.auth-copy p{margin:8px auto 0;max-width:340px;color:var(--muted);font-size:12px;line-height:1.55}.auth-form{display:grid;gap:14px;margin-top:26px}.field-label{display:grid;gap:7px;color:var(--foreground);font-size:11px;font-weight:700}.field-help{display:flex;justify-content:space-between;align-items:center;gap:8px}.field-help a{color:var(--brand-glow);font-size:12px}.input-with-icon{position:relative}.input-with-icon>.icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:15px;height:15px;color:var(--muted)}.input-with-icon .field{padding-left:38px;min-height:44px}.input-with-action .field{padding-right:42px}.input-action{position:absolute;right:5px;top:5px;display:grid;width:34px;height:34px;place-items:center;border:0;border-radius:12px;background:transparent;color:var(--muted)}.input-action:hover{background:var(--surface);color:var(--foreground)}.input-action .icon{width:15px;height:15px}.auth-form .btn{min-height:46px;width:100%;border-radius:18px}.auth-separator{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.08em}.auth-separator::before,.auth-separator::after{content:"";height:1px;flex:1;background:var(--border)}.social-btn{width:100%;min-height:44px;border:1px solid var(--border);border-radius:18px;background:var(--surface-2);display:flex;align-items:center;justify-content:center;gap:9px;color:var(--foreground);font-size:11px;font-weight:700}.social-btn .icon{width:17px;height:17px}.auth-foot{margin:20px 0 0;text-align:center;color:var(--muted);font-size:12px;line-height:1.6}.auth-foot a{color:var(--brand-glow);font-weight:700}.check-line{display:flex;align-items:flex-start;gap:9px;color:var(--muted);font-size:12px;line-height:1.5}.check-line input{accent-color:#8d59f3;margin-top:2px}.auth-success-icon{display:grid;width:56px;height:56px;place-items:center;margin:0 auto 18px;border:1px solid color-mix(in oklab,var(--cyan) 35%,var(--border));border-radius:20px;background:color-mix(in oklab,var(--cyan) 10%,transparent);color:var(--cyan)}.auth-success-icon .icon{width:26px;height:26px}
.onboarding-shell{width:min(100%,820px)}.onboarding-progress{display:flex;gap:6px;margin:22px 0}.onboarding-progress i{height:4px;flex:1;border-radius:999px;background:var(--surface-2)}.onboarding-progress i.active{background:var(--gradient-brand)}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.choice-card{display:flex;min-height:92px;flex-direction:column;align-items:flex-start;justify-content:space-between;border:1px solid var(--border);border-radius:18px;background:var(--surface-2);padding:14px;color:var(--muted);text-align:left;transition:.18s ease}.choice-card:hover,.choice-card.active{border-color:color-mix(in oklab,var(--brand) 60%,var(--border));background:var(--accent);color:var(--foreground)}.choice-card .icon{width:19px;height:19px;color:var(--brand-glow)}.choice-card b{font-size:11px}.choice-card small{font-size:11px;color:var(--muted)}.onboarding-actions{display:flex;justify-content:space-between;gap:10px;margin-top:22px}
.account-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.account-user-line{display:flex;align-items:center;gap:14px}.account-avatar{display:grid;width:58px;height:58px;place-items:center;border-radius:20px;background:var(--gradient-brand);box-shadow:var(--shadow-glow);font-size:16px;font-weight:850}.account-user-line h1{margin:0;font-size:30px;letter-spacing:-.035em}.account-user-line p{margin:5px 0 0;color:var(--muted);font-size:11px}.account-plan-pill{display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:18px;background:var(--surface);padding:9px 12px;font-size:12px}.account-plan-pill i{width:7px;height:7px;border-radius:50%;background:var(--cyan)}.account-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px}.account-sidebar{position:sticky;top:88px;border-radius:24px;padding:10px;height:max-content}.account-nav-link{display:flex;align-items:center;gap:10px;border-radius:15px;padding:10px 11px;color:var(--muted);font-size:11px;font-weight:650}.account-nav-link .icon{width:15px;height:15px}.account-nav-link:hover,.account-nav-link.active{background:var(--accent);color:var(--foreground)}.account-content{display:grid;gap:16px}.product-card{border-radius:24px;padding:22px}.product-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}.product-card-head h2{margin:0;font-size:15px}.product-card-head p{margin:5px 0 0;color:var(--muted);font-size:12px}.product-card .form-grid{margin-top:0}.profile-line{display:flex;align-items:center;gap:14px}.profile-avatar{position:relative;display:grid;width:64px;height:64px;place-items:center;border-radius:22px;background:var(--gradient-brand);font-size:17px;font-weight:850}.profile-avatar button{position:absolute;right:-4px;bottom:-4px;display:grid;width:26px;height:26px;place-items:center;border:2px solid var(--surface);border-radius:10px;background:var(--surface-2);color:var(--foreground)}.profile-avatar button .icon{width:12px;height:12px}.usage-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.usage-box{border:1px solid var(--border);border-radius:18px;background:color-mix(in oklab,var(--surface-2) 60%,transparent);padding:15px}.usage-box b{display:block;font-size:18px}.usage-box span{display:block;margin-top:5px;color:var(--muted);font-size:11px}.usage-progress{height:6px;margin-top:10px;border-radius:999px;background:var(--surface-2);overflow:hidden}.usage-progress i{display:block;height:100%;border-radius:999px;background:var(--gradient-brand)}.card-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:18px;border-top:1px solid var(--border)}
.billing-overview{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(260px,.65fr);gap:16px}.current-plan{position:relative;overflow:hidden}.current-plan::after{content:"";position:absolute;width:180px;height:180px;right:-70px;top:-80px;border-radius:50%;background:radial-gradient(circle,color-mix(in oklab,var(--brand) 24%,transparent),transparent 70%)}.current-plan>*{position:relative;z-index:1}.current-plan-name{display:flex;align-items:center;justify-content:space-between;gap:12px}.current-plan-name h2{margin:0;font-size:22px}.current-plan-price{margin-top:14px;font-size:30px;font-weight:800;letter-spacing:-.04em}.current-plan-price small{color:var(--muted);font-size:11px;font-weight:500}.renew-line{margin-top:6px;color:var(--muted);font-size:12px}.credit-meter{margin-top:20px}.credit-meter-top{display:flex;justify-content:space-between;font-size:12px}.invoice-list{display:grid}.invoice-row{display:grid;grid-template-columns:1fr 120px 100px 38px;align-items:center;gap:10px;border-top:1px solid var(--border);padding:12px 0;font-size:12px}.invoice-row:first-child{border-top:0}.invoice-row small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.invoice-download{display:grid;width:34px;height:34px;place-items:center;border:1px solid var(--border);border-radius:12px;background:transparent;color:var(--muted)}.invoice-download .icon{width:14px;height:14px}
.history-toolbar{display:flex;align-items:center;gap:8px;margin-bottom:18px}.history-toolbar .search-wrap{flex:1;max-width:420px}.generation-list{display:grid;gap:12px}.generation-row{display:grid;grid-template-columns:64px minmax(160px,1fr) 120px 120px 100px;align-items:center;gap:14px;border-radius:20px;padding:13px}.generation-cover{position:relative;display:grid;width:64px;height:64px;place-items:center;overflow:hidden;border-radius:17px;background:var(--surface-2)}.generation-cover::before{content:"";position:absolute;inset:0;background:var(--gradient-hero)}.generation-cover .icon{position:relative;width:22px;height:22px;color:var(--brand-glow)}.generation-main b{font-size:11px}.generation-main small{display:block;margin-top:4px;color:var(--muted);font-size:11px}.generation-meta{color:var(--muted);font-size:11px}.generation-status{display:inline-flex;width:max-content;border-radius:999px;padding:5px 8px;background:#56e39f14;color:#72eab0;font-size:11px;font-weight:750}.generation-actions{display:flex;justify-content:flex-end;gap:5px}.generation-actions button{display:grid;width:32px;height:32px;place-items:center;border:1px solid var(--border);border-radius:11px;background:transparent;color:var(--muted)}.generation-actions button .icon{width:13px;height:13px}
.favorite-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.favorite-count{display:inline-flex;align-items:center;gap:7px;border:1px solid var(--border);border-radius:999px;padding:6px 10px;color:var(--muted);font-size:12px}.favorite-count .icon{width:13px;height:13px;color:var(--brand-glow)}
.checkout-layout{display:grid;grid-template-columns:minmax(0,1.15fr) 360px;gap:20px;align-items:start}.checkout-steps{display:flex;gap:8px;margin-bottom:18px}.checkout-step{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;font-weight:700}.checkout-step i{display:grid;width:22px;height:22px;place-items:center;border-radius:8px;background:var(--surface-2);font-style:normal}.checkout-step.active{color:var(--foreground)}.checkout-step.active i{background:var(--gradient-brand);color:white}.payment-methods{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:14px 0}.payment-method{display:flex;align-items:center;gap:9px;border:1px solid var(--border);border-radius:16px;background:var(--surface-2);padding:12px;color:var(--muted);font-size:12px;font-weight:700}.payment-method.active{border-color:var(--brand);background:var(--accent);color:var(--foreground)}.payment-dot{width:13px;height:13px;border:3px solid var(--surface-2);border-radius:50%;box-shadow:0 0 0 1px var(--muted)}.payment-method.active .payment-dot{background:var(--brand);box-shadow:0 0 0 1px var(--brand)}.checkout-summary{position:sticky;top:88px}.summary-plan{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--border);padding-bottom:18px}.summary-plan h2{margin:0;font-size:16px}.summary-plan p{margin:4px 0 0;color:var(--muted);font-size:11px}.summary-price{font-size:20px;font-weight:800}.summary-lines{display:grid;gap:10px;margin:18px 0}.summary-lines>div{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.summary-total{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding-top:15px;font-size:11px}.summary-total b:last-child{font-size:17px}.security-note{display:flex;align-items:flex-start;gap:8px;margin-top:15px;color:var(--muted);font-size:11px;line-height:1.5}.security-note .icon{width:14px;height:14px;color:var(--cyan)}
.support-hero{text-align:center;max-width:720px;margin:0 auto}.support-hero .page-subtitle{max-width:540px;margin:10px auto 0;line-height:1.55}.support-search{position:relative;max-width:620px;margin:24px auto 0}.support-search .field{min-height:48px;padding-left:42px;border-radius:20px;background:var(--surface)}.support-search>.icon{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:17px;height:17px;color:var(--muted)}.support-categories{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:32px}.support-category{border-radius:22px;padding:18px}.support-category .feature-icon{width:36px;height:36px}.support-category h3{margin:14px 0 0;font-size:12px}.support-category p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5}.faq-list{display:grid;gap:8px;margin-top:18px}.faq-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;background:transparent;color:var(--foreground);padding:0;text-align:left;font-size:11px;font-weight:700}.faq-toggle .icon{width:15px;height:15px;color:var(--muted);transition:transform .18s}.faq-answer{max-height:0;overflow:hidden;color:var(--muted);font-size:12px;line-height:1.65;transition:max-height .2s ease,padding .2s ease}.support-faq.open .faq-toggle .icon{transform:rotate(180deg)}.support-faq.open .faq-answer{max-height:150px;padding-top:10px}.support-faq{border:1px solid var(--border);border-radius:18px;background:color-mix(in oklab,var(--surface) 62%,transparent);padding:15px}.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.contact-card{border-radius:24px;padding:22px}.contact-card h2{margin:0;font-size:15px}.contact-card p{margin:6px 0 16px;color:var(--muted);font-size:12px;line-height:1.55}
.legal-shell{max-width:840px;margin:0 auto}.legal-head{text-align:center;margin-bottom:28px}.legal-updated{display:inline-flex;margin-top:12px;border:1px solid var(--border);border-radius:999px;padding:6px 10px;color:var(--muted);font-size:11px}.legal-card{border-radius:26px;padding:30px}.legal-card h2{margin:28px 0 8px;font-size:16px}.legal-card h2:first-child{margin-top:0}.legal-card h3{margin:20px 0 7px;font-size:12px}.legal-card p,.legal-card li{color:var(--muted);font-size:12px;line-height:1.8}.legal-card ul{padding-left:18px}.legal-callout{margin:20px 0;border-left:2px solid var(--brand);border-radius:0 16px 16px 0;background:var(--surface-2);padding:14px 16px;color:var(--muted);font-size:12px;line-height:1.65}
.error-main{min-height:calc(100vh - 64px);display:grid;place-items:center;padding:40px 16px}.error-card{width:min(100%,620px);text-align:center}.error-code{font-size:clamp(90px,18vw,180px);line-height:.8;font-weight:900;letter-spacing:-.08em;background:var(--gradient-brand);-webkit-background-clip:text;background-clip:text;color:transparent;opacity:.95}.error-card h1{margin:24px 0 0;font-size:30px}.error-card p{max-width:470px;margin:10px auto 0;color:var(--muted);font-size:12px;line-height:1.6}.error-actions{display:flex;justify-content:center;gap:8px;margin-top:24px}
@media(max-width:1050px){.user-menu-name{display:none}.account-layout{grid-template-columns:190px minmax(0,1fr)}.checkout-layout{grid-template-columns:1fr 320px}.support-categories{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.account-layout{grid-template-columns:1fr}.account-sidebar{position:static;display:flex;overflow-x:auto;padding:7px}.account-nav-link{flex:0 0 auto}.billing-overview,.checkout-layout{grid-template-columns:1fr}.checkout-summary{position:static}.history-toolbar{align-items:stretch;flex-direction:column}.history-toolbar .search-wrap{max-width:none}.generation-row{grid-template-columns:58px 1fr 100px 90px}.generation-row>.generation-meta:nth-of-type(2){display:none}.support-categories{grid-template-columns:repeat(2,1fr)}}
@media(max-width:767px){.user-menu-button{width:36px;padding:2px;justify-content:center}.user-menu-button>.icon,.user-menu-name{display:none}.user-avatar{width:30px;height:30px}.user-dropdown{right:-44px}.auth-main{padding:36px 16px}.auth-shell{padding:24px;border-radius:26px}.choice-grid{grid-template-columns:repeat(2,1fr)}.account-hero{align-items:flex-start;flex-direction:column}.account-plan-pill{align-self:flex-start}.usage-strip{grid-template-columns:1fr}.product-card{padding:18px}.invoice-row{grid-template-columns:1fr 90px 38px}.invoice-row>.invoice-status{display:none}.generation-row{grid-template-columns:52px 1fr 80px}.generation-row>.generation-meta{display:none}.generation-cover{width:52px;height:52px}.favorite-hero{align-items:flex-start;flex-direction:column}.payment-methods{grid-template-columns:1fr}.contact-grid{grid-template-columns:1fr}.legal-card{padding:22px}.footer-expanded{display:none}}
@media(max-width:520px){.choice-grid{grid-template-columns:1fr}.onboarding-actions{flex-direction:column-reverse}.onboarding-actions .btn{width:100%}.support-categories{grid-template-columns:1fr}.invoice-row{grid-template-columns:1fr 38px}.invoice-row>.invoice-amount{display:none}.generation-row{grid-template-columns:48px 1fr}.generation-row>.generation-status{display:none}.error-actions{flex-direction:column}.error-actions .btn{width:100%}}

/* HORA MUSIC — Design System v1.0 */
:root{
  --font-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --text-micro:11px;--text-label:12px;--text-body-sm:14px;--text-body:16px;--text-title:18px;--text-h3:24px;--text-h2:30px;--text-h1:36px;--text-display:60px;
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-14:56px;--space-16:64px;--space-20:80px;
  --radius-xs:8px;--radius-sm:14px;--radius-md:18px;--radius-lg:22px;--radius-xl:26px;--radius-pill:999px;
  --success:#72eab0;--warning:#f6c85f;--info:var(--cyan);--on-brand:var(--background);
}
:where(a,button,input,textarea,select,[tabindex]):focus-visible{outline:2px solid var(--cyan);outline-offset:3px}
@media (hover:none){.track-play{opacity:1}}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

.identity-body{background:radial-gradient(90% 55% at 50% 0%,color-mix(in oklab,var(--brand) 11%,transparent),transparent 65%),var(--background)}
.identity-main{padding-bottom:80px}.identity-wrap{padding-top:40px}.identity-hero{position:relative;overflow:hidden;border-radius:26px;padding:40px}.identity-hero::before{content:"";position:absolute;inset:0;background:var(--gradient-hero);pointer-events:none}.identity-hero>*{position:relative}.identity-kicker{display:flex;align-items:center;justify-content:space-between;gap:16px}.identity-version{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:999px;background:var(--surface);padding:7px 12px;color:var(--muted);font-size:11px;font-weight:750;letter-spacing:.04em}.identity-version i{width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 12px color-mix(in oklab,var(--cyan) 70%,transparent)}.identity-hero h1{max-width:900px;margin:28px 0 0;font-size:clamp(38px,6vw,60px);line-height:1.02;letter-spacing:-.045em}.identity-hero p{max-width:760px;margin:16px 0 0;color:var(--muted);font-size:16px;line-height:1.65}.identity-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:30px}.identity-stat{border:1px solid var(--border);border-radius:18px;background:color-mix(in oklab,var(--surface) 65%,transparent);padding:14px}.identity-stat b{display:block;font-size:18px}.identity-stat span{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.identity-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;margin-top:24px;align-items:start}.identity-sidebar{position:sticky;top:88px;border-radius:24px;padding:12px}.identity-sidebar a{display:flex;align-items:center;min-height:38px;border-radius:14px;padding:8px 10px;color:var(--muted);font-size:12px;font-weight:650}.identity-sidebar a:hover{background:var(--surface-2);color:var(--foreground)}.identity-sidebar strong{display:block;padding:7px 10px 10px;color:var(--foreground);font-size:11px;letter-spacing:.08em;text-transform:uppercase}.identity-content{min-width:0;display:grid;gap:16px}.identity-section{scroll-margin-top:88px;border-radius:26px;padding:28px}.identity-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.identity-section-head h2{margin:0;font-size:24px;letter-spacing:-.025em}.identity-section-head p{max-width:620px;margin:6px 0 0;color:var(--muted);font-size:13px;line-height:1.6}.identity-tag{flex:0 0 auto;border:1px solid var(--border);border-radius:999px;padding:6px 9px;color:var(--muted);font-size:12px;font-weight:700}.identity-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.identity-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.identity-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.identity-subcard{border:1px solid var(--border);border-radius:20px;background:color-mix(in oklab,var(--surface-2) 54%,transparent);padding:18px}.identity-subcard h3{margin:0;font-size:14px}.identity-subcard p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.6}.identity-subcard ul{margin:10px 0 0;padding-left:18px;color:var(--muted);font-size:12px;line-height:1.7}.identity-rule{display:flex;align-items:flex-start;gap:10px}.identity-rule+.identity-rule{margin-top:12px}.identity-rule i{display:grid;width:22px;height:22px;flex:0 0 22px;place-items:center;border-radius:8px;background:var(--accent);color:var(--cyan);font-style:normal;font-size:12px;font-weight:800}.identity-rule div{display:grid}.identity-rule b{font-size:12px}.identity-rule span{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.55}
.logo-stage{display:grid;place-items:center;min-height:210px;border:1px solid var(--border);border-radius:22px;background:radial-gradient(circle at 50% 20%,color-mix(in oklab,var(--brand) 16%,transparent),transparent 55%),var(--surface-2)}.logo-stage .logo{font-size:28px}.logo-stage .logo-mark{width:54px;height:54px;border-radius:20px}.logo-stage .logo-mark .icon{width:29px;height:29px}.logo-mini-stage{display:flex;gap:12px;align-items:center}.logo-mini-stage .logo-mark{width:44px;height:44px}.clear-space{display:grid;place-items:center;min-height:130px;border:1px dashed color-mix(in oklab,var(--brand-glow) 45%,var(--border));border-radius:20px;background:color-mix(in oklab,var(--accent) 45%,transparent)}
.color-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.color-card{display:grid;grid-template-columns:70px 1fr;overflow:hidden;border:1px solid var(--border);border-radius:18px;background:var(--surface)}.color-swatch{min-height:92px}.color-meta{padding:13px}.color-meta b{display:block;font-size:12px}.color-meta code{display:block;margin-top:5px;color:var(--brand-glow);font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.color-meta small{display:block;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.5}.gradient-showcase{height:110px;border-radius:20px;border:1px solid var(--border);background:var(--gradient-brand);box-shadow:var(--shadow-glow)}.gradient-hero-showcase{height:110px;border-radius:20px;border:1px solid var(--border);background:var(--gradient-hero),var(--surface-2)}
.type-table{display:grid}.type-row{display:grid;grid-template-columns:150px minmax(0,1fr) 175px;align-items:baseline;gap:16px;border-top:1px solid var(--border);padding:16px 0}.type-row:first-child{border-top:0;padding-top:0}.type-token{color:var(--muted);font-size:11px}.type-token b{display:block;color:var(--foreground);font-size:12px}.type-spec{text-align:right;color:var(--muted);font-size:12px}.type-display{font-size:52px;line-height:1.02;font-weight:800;letter-spacing:-.045em}.type-h1{font-size:36px;line-height:1.1;font-weight:800;letter-spacing:-.025em}.type-h2{font-size:30px;line-height:1.12;font-weight:800;letter-spacing:-.025em}.type-h3{font-size:24px;line-height:1.25;font-weight:700}.type-title{font-size:18px;line-height:1.35;font-weight:700}.type-body{font-size:16px;line-height:1.55}.type-body-sm{font-size:14px;line-height:1.5}.type-label{font-size:12px;line-height:1.35;font-weight:700;letter-spacing:.02em}.type-micro{font-size:11px;line-height:1.35;font-weight:650;color:var(--muted)}.type-warning{margin-top:16px;border-left:2px solid var(--warning);border-radius:0 16px 16px 0;background:color-mix(in oklab,var(--warning) 7%,var(--surface-2));padding:13px 15px;color:var(--muted);font-size:12px;line-height:1.6}.type-warning b{color:var(--warning)}
.spacing-list{display:grid;gap:10px}.spacing-row{display:grid;grid-template-columns:70px 1fr 52px;align-items:center;gap:12px}.spacing-row code{color:var(--muted);font-size:12px}.spacing-bar{height:10px;border-radius:999px;background:var(--gradient-brand);opacity:.8}.spacing-row span:last-child{text-align:right;color:var(--muted);font-size:12px}.radius-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.radius-sample{display:grid;place-items:end start;aspect-ratio:1;border:1px solid var(--border);background:var(--surface-2);padding:10px;font-size:12px;color:var(--muted)}.shadow-sample{min-height:120px;border:1px solid var(--border);border-radius:22px;background:var(--surface);padding:18px}.shadow-sample.glow{box-shadow:var(--shadow-glow)}.shadow-sample.card{box-shadow:var(--shadow-card)}
.component-demo{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.component-stack{display:grid;gap:10px}.component-card-demo{border-radius:22px;padding:18px}.component-card-demo h3{margin:0;font-size:14px}.component-card-demo p{margin:6px 0 0;color:var(--muted);font-size:12px}.state-row{display:flex;flex-wrap:wrap;gap:8px}.semantic-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 9px;font-size:12px;font-weight:750}.semantic-pill.success{background:#56e39f15;color:var(--success)}.semantic-pill.warning{background:#f6c85f16;color:var(--warning)}.semantic-pill.info{background:color-mix(in oklab,var(--cyan) 13%,transparent);color:var(--cyan)}.semantic-pill.danger{background:color-mix(in oklab,var(--danger) 16%,transparent);color:#ff9086}.semantic-pill.neutral{background:var(--surface-2);color:var(--muted)}
.breakpoint-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.breakpoint-card{border:1px solid var(--border);border-radius:18px;padding:16px;background:var(--surface-2)}.breakpoint-card b{display:block;font-size:18px}.breakpoint-card span{display:block;margin-top:5px;color:var(--muted);font-size:12px}.contrast-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.contrast-card{border:1px solid var(--border);border-radius:18px;padding:15px;background:var(--surface-2)}.contrast-card strong{display:block;font-size:18px}.contrast-card span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.contrast-card em{display:inline-flex;margin-top:9px;border-radius:999px;background:#56e39f15;padding:4px 7px;color:var(--success);font-size:11px;font-style:normal;font-weight:800}
.audit-score{display:grid;grid-template-columns:160px 1fr;gap:18px;align-items:center;margin-bottom:18px}.score-ring{width:140px;height:140px;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--brand) 0 86%,var(--surface-2) 86% 100%)}.score-ring>div{width:104px;height:104px;display:grid;place-items:center;border-radius:50%;background:var(--surface);text-align:center}.score-ring b{display:block;font-size:30px;line-height:1}.score-ring small{color:var(--muted);font-size:11px}.audit-summary h3{margin:0;font-size:17px}.audit-summary p{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.65}.audit-list{display:grid;gap:10px}.audit-item{display:grid;grid-template-columns:82px 1fr auto;gap:12px;align-items:start;border:1px solid var(--border);border-radius:18px;background:color-mix(in oklab,var(--surface-2) 45%,transparent);padding:14px}.priority{display:inline-flex;width:max-content;border-radius:999px;padding:5px 7px;font-size:11px;font-weight:800}.priority.high{background:color-mix(in oklab,var(--danger) 16%,transparent);color:#ff9086}.priority.medium{background:#f6c85f16;color:var(--warning)}.priority.low{background:color-mix(in oklab,var(--cyan) 12%,transparent);color:var(--cyan)}.audit-item b{font-size:12px}.audit-item p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.6}.audit-item code{color:var(--brand-glow);font-size:11px}.roadmap-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.roadmap-card{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:20px;background:var(--surface-2);padding:18px}.roadmap-card::after{content:"";position:absolute;width:90px;height:90px;right:-36px;bottom:-45px;border-radius:50%;background:radial-gradient(circle,color-mix(in oklab,var(--brand) 20%,transparent),transparent 70%)}.roadmap-card>*{position:relative;z-index:1}.roadmap-card span{color:var(--cyan);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.roadmap-card h3{margin:8px 0 0;font-size:14px}.roadmap-card p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.6}
.identity-footer-note{margin-top:20px;text-align:center;color:var(--muted);font-size:11px}
@media(max-width:1023px){.identity-layout{grid-template-columns:1fr}.identity-sidebar{position:static;display:flex;overflow-x:auto;gap:4px}.identity-sidebar strong{display:none}.identity-sidebar a{flex:0 0 auto}.identity-stats,.identity-grid-4,.contrast-grid{grid-template-columns:repeat(2,1fr)}.breakpoint-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:767px){.identity-hero{padding:26px}.identity-hero p{font-size:14px}.identity-section{padding:20px}.identity-section-head{flex-direction:column}.identity-tag{align-self:flex-start}.identity-grid-2,.identity-grid-3,.color-grid,.roadmap-grid{grid-template-columns:1fr}.type-row{grid-template-columns:1fr;gap:7px}.type-spec{text-align:left}.type-display{font-size:38px}.type-h1{font-size:32px}.radius-grid{grid-template-columns:repeat(3,1fr)}.audit-score{grid-template-columns:1fr}.score-ring{margin-inline:auto}.identity-kicker{align-items:flex-start;flex-direction:column}.admin-header-center{display:none}}
@media(max-width:520px){.identity-stats,.identity-grid-4,.contrast-grid,.breakpoint-grid{grid-template-columns:1fr}.radius-grid{grid-template-columns:repeat(2,1fr)}.audit-item{grid-template-columns:1fr}.audit-item code{justify-self:start}.color-card{grid-template-columns:56px 1fr}}

@media(max-width:520px){.identity-body .header-actions .admin-site-link:first-child{display:none}.identity-body .admin-site-link{padding-inline:9px;font-size:12px}}


/* =========================================================
   HORA MUSIC — Visual Clarity v2.0
   Goal: lighter dark UI, sharper hierarchy, AA-safe primary CTA.
   ========================================================= */
:root{
  --background:#121218;
  --foreground:#F8F7FB;
  --surface:#1A1A22;
  --surface-2:#252531;
  --brand:#7C3AED;
  --brand-deep:#6D28D9;
  --brand-glow:#A78BFA;
  --secondary:#DB2777;
  --cyan:var(--secondary); /* legacy alias kept to avoid regressions */
  --muted:#B6B2C0;
  --accent:#34223F;
  --border:rgb(255 255 255 / 13%);
  --input:rgb(255 255 255 / 17%);
  --danger:#E11D48;
  --success:#4ADE80;
  --warning:#FBBF24;
  --info:#60A5FA;
  --font-display:"Sora",Inter,ui-sans-serif,system-ui,sans-serif;
  --font-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --text-micro:11px;--text-label:12px;--text-body-sm:14px;--text-body:16px;--text-title:18px;--text-h3:24px;--text-h2:32px;--text-h1:40px;--text-display:60px;
  --gradient-brand:linear-gradient(135deg,#7C3AED 0%,#DB2777 100%);
  --gradient-brand-soft:linear-gradient(135deg,rgb(124 58 237 / 22%) 0%,rgb(219 39 119 / 14%) 100%);
  --gradient-hero:radial-gradient(75% 62% at 50% 0%,rgb(124 58 237 / 24%) 0%,rgb(219 39 119 / 8%) 42%,transparent 72%);
  --shadow-glow:0 18px 60px -20px rgb(124 58 237 / 55%);
  --shadow-card:0 18px 50px -28px rgb(0 0 0 / 58%);
}
html{color-scheme:dark}
body{
  font-family:var(--font-sans);
  background:
    radial-gradient(900px 440px at 12% -10%,rgb(124 58 237 / 10%),transparent 68%),
    radial-gradient(760px 380px at 92% 0%,rgb(219 39 119 / 7%),transparent 65%),
    var(--background);
}
h1,h2,.hero-title,.page-heading,.section-title,.cta-content h2,.auth-shell h1,.identity-hero h1,.type-guide-hero h1{font-family:var(--font-display)}
.site-header{background:rgb(18 18 24 / 88%);border-bottom-color:rgb(255 255 255 / 10%)}
.glass-card{background:rgb(26 26 34 / 86%);border-color:rgb(255 255 255 / 12%);box-shadow:var(--shadow-card)}
.nav-link:hover,.small-btn:hover,.track-action:hover{background:rgb(255 255 255 / 7%)}
.nav-link.active{background:rgb(124 58 237 / 16%);box-shadow:inset 0 0 0 1px rgb(167 139 250 / 18%)}
.credit-pill,.pill{background:rgb(37 37 49 / 84%)}
.credit-dot{box-shadow:0 0 0 4px rgb(219 39 119 / 10%),0 0 14px rgb(219 39 119 / 42%)}
.btn{min-height:44px}
.btn-brand{background:var(--gradient-brand);color:#fff;box-shadow:0 14px 34px -16px rgb(124 58 237 / 70%)}
.btn-brand:hover{filter:brightness(1.08);box-shadow:0 18px 38px -17px rgb(219 39 119 / 62%)}
.btn-secondary,.field,.select-field,.textarea-field{background:#252531}
.field:focus,.select-field:focus,.textarea-field:focus{border-color:#A78BFA;box-shadow:0 0 0 3px rgb(167 139 250 / 16%)}
:where(a,button,input,textarea,select,[tabindex]):focus-visible{outline-color:#A78BFA}
.gradient-text{background:var(--gradient-brand);-webkit-background-clip:text;background-clip:text;color:transparent}
.hero-desc,.page-subtitle{color:#C4C1CD}
.feature-icon,.admin-kpi-icon{background:rgb(124 58 237 / 14%)}
.track-mode,.hero-copy .pill .icon,.studio-meta .icon,.plan-features .icon,.security-note .icon{color:#F472B6}
.track-art::after{background:linear-gradient(180deg,transparent 20%,rgb(18 18 24 / 70%) 100%)}
.studio-card{box-shadow:0 24px 70px -38px rgb(124 58 237 / 45%)}

/* Readability floor for content that used to be too small */
.admin-user-copy small,.admin-sidebar-title,.admin-sidebar-footer b,.admin-sidebar-footer small,.admin-count,
.admin-kpi small,.admin-card-head p,.admin-card-head .pill,.chart-y,.chart-col small,.donut-hole small,.distribution-list>div,
.generation-main small,.generation-meta,.generation-status,.favorite-count,.checkout-step,.payment-method,.summary-plan p,.summary-lines>div,
.security-note,.support-category p,.faq-answer,.contact-card p,.legal-updated,.legal-card p,.legal-card li,.legal-callout{
  line-height:1.55;
}
.legal-card p,.legal-card li,.faq-answer,.contact-card p,.support-category p{font-size:12px}
.admin-kpi small,.admin-card-head p,.generation-main small,.generation-meta,.summary-plan p,.security-note{font-size:12px}

/* Design System v2 clarity tweaks */
.identity-body{background:radial-gradient(80% 55% at 50% 0%,rgb(124 58 237 / 14%),transparent 65%),var(--background)}
.identity-version i{background:var(--secondary);box-shadow:0 0 12px rgb(219 39 119 / 55%)}
.identity-rule i{color:#F472B6}
.gradient-showcase{background:var(--gradient-brand)!important}
.semantic-pill.info{color:#93C5FD!important;background:rgb(96 165 250 / 12%)!important}

/* Typography & Visual Direction page */
.type-guide-body{background:
  radial-gradient(900px 520px at 16% -8%,rgb(124 58 237 / 18%),transparent 64%),
  radial-gradient(780px 420px at 88% 4%,rgb(219 39 119 / 11%),transparent 62%),
  var(--background)}
.type-guide-main{padding-bottom:84px}
.type-guide-wrap{padding-top:40px}
.type-guide-hero{position:relative;overflow:hidden;border-radius:28px;padding:42px;background:linear-gradient(145deg,rgb(37 37 49 / 96%),rgb(26 26 34 / 88%));border:1px solid rgb(255 255 255 / 13%)}
.type-guide-hero::after{content:"";position:absolute;width:380px;height:380px;right:-140px;top:-170px;border-radius:50%;background:rgb(219 39 119 / 14%);filter:blur(10px)}
.type-guide-hero>*{position:relative;z-index:1}
.type-guide-kicker{display:flex;align-items:center;justify-content:space-between;gap:12px}
.type-guide-kicker .pill strong{color:var(--foreground)}
.type-guide-hero h1{max-width:920px;margin:26px 0 0;font-size:clamp(42px,6vw,68px);line-height:1.01;letter-spacing:-.055em}
.type-guide-hero>p{max-width:760px;margin:18px 0 0;color:#C9C6D1;font-size:17px;line-height:1.7}
.type-guide-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.type-guide-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:28px}
.type-guide-stat{border:1px solid var(--border);border-radius:18px;background:rgb(18 18 24 / 48%);padding:15px}
.type-guide-stat b{display:block;font-family:var(--font-display);font-size:20px}.type-guide-stat span{display:block;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.45}
.type-guide-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:24px;align-items:start;margin-top:24px}
.type-guide-nav{position:sticky;top:88px;border-radius:24px;padding:12px}
.type-guide-nav strong{display:block;padding:8px 10px 10px;font-size:11px;letter-spacing:.1em;text-transform:uppercase}
.type-guide-nav a{display:flex;min-height:39px;align-items:center;border-radius:13px;padding:8px 10px;color:var(--muted);font-size:12px;font-weight:650}.type-guide-nav a:hover{background:var(--surface-2);color:var(--foreground)}
.type-guide-content{display:grid;gap:16px;min-width:0}
.type-guide-section{scroll-margin-top:88px;border-radius:26px;padding:28px}
.type-guide-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}.type-guide-head h2{margin:0;font-size:26px;letter-spacing:-.035em}.type-guide-head p{max-width:650px;margin:7px 0 0;color:var(--muted);font-size:13px;line-height:1.65}
.type-badge{flex:0 0 auto;border:1px solid var(--border);border-radius:999px;background:rgb(255 255 255 / 4%);padding:6px 10px;color:var(--muted);font-size:11px;font-weight:700}
.font-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.font-card{position:relative;overflow:hidden;border:1px solid var(--border);border-radius:22px;background:var(--surface-2);padding:22px}.font-card .font-label{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px}.font-card .font-sample{margin-top:30px;font-size:54px;line-height:1;letter-spacing:-.055em}.font-card.display .font-sample{font-family:var(--font-display);font-weight:800}.font-card.ui .font-sample{font-family:var(--font-sans);font-weight:700}.font-card p{margin:14px 0 0;color:var(--muted);font-size:12px;line-height:1.65}
.type-scale{display:grid;border:1px solid var(--border);border-radius:22px;overflow:hidden}.type-scale-row{display:grid;grid-template-columns:145px minmax(0,1fr) 180px;gap:18px;align-items:center;padding:18px 20px;background:rgb(37 37 49 / 58%)}.type-scale-row+.type-scale-row{border-top:1px solid var(--border)}.type-scale-token{color:var(--muted);font-size:12px}.type-scale-token b{display:block;color:var(--foreground);font-size:13px}.type-scale-spec{text-align:right;color:var(--muted);font-size:11px;line-height:1.5}.ts-display{font:800 60px/1.05 var(--font-display);letter-spacing:-.055em}.ts-h1{font:800 40px/1.1 var(--font-display);letter-spacing:-.045em}.ts-h2{font:750 32px/1.16 var(--font-display);letter-spacing:-.035em}.ts-h3{font:700 24px/1.25 var(--font-display);letter-spacing:-.025em}.ts-title{font:700 18px/1.35 var(--font-sans)}.ts-body{font:400 16px/1.6 var(--font-sans)}.ts-small{font:500 14px/1.55 var(--font-sans)}.ts-label{font:700 12px/1.35 var(--font-sans);letter-spacing:.02em;text-transform:uppercase}.ts-micro{font:600 11px/1.4 var(--font-sans);letter-spacing:.01em}
.weight-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.weight-card{border:1px solid var(--border);border-radius:18px;background:var(--surface-2);padding:16px}.weight-card b{display:block;font-size:30px;line-height:1}.weight-card span{display:block;margin-top:12px;color:var(--muted);font-size:11px}.weight-400 b{font-weight:400}.weight-500 b{font-weight:500}.weight-600 b{font-weight:600}.weight-700 b{font-weight:700}.weight-800 b{font-weight:800}
.guideline-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.guideline-card{border:1px solid var(--border);border-radius:20px;background:rgb(37 37 49 / 56%);padding:18px}.guideline-card h3{margin:0;font-size:15px}.guideline-card p,.guideline-card li{color:var(--muted);font-size:12px;line-height:1.7}.guideline-card ul{margin:10px 0 0;padding-left:18px}.rule-good{border-color:rgb(74 222 128 / 28%)}.rule-bad{border-color:rgb(225 29 72 / 28%)}
.clarity-palette{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.clarity-color{overflow:hidden;border:1px solid var(--border);border-radius:19px;background:var(--surface-2)}.clarity-color i{display:block;height:76px}.clarity-color div{padding:13px}.clarity-color b{display:block;font-size:12px}.clarity-color code{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.conversion-demo{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:14px}.conversion-card{border:1px solid var(--border);border-radius:22px;background:var(--surface-2);padding:22px}.conversion-card h3{margin:0;font-size:18px}.conversion-card p{margin:8px 0 0;color:var(--muted);font-size:13px;line-height:1.65}.conversion-card .btn{margin-top:18px}.decision-stack{display:grid;gap:10px}.decision-row{display:flex;align-items:flex-start;gap:11px;border:1px solid var(--border);border-radius:16px;padding:13px}.decision-row i{display:grid;width:24px;height:24px;flex:0 0 24px;place-items:center;border-radius:8px;background:rgb(124 58 237 / 15%);color:#C4B5FD;font-style:normal;font-size:11px;font-weight:800}.decision-row b{display:block;font-size:12px}.decision-row span{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.5}
.token-code{overflow:auto;border:1px solid var(--border);border-radius:20px;background:#0E0E13;padding:18px;color:#D8D6E0;font:500 12px/1.7 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:pre}
.type-guide-note{border:1px solid rgb(167 139 250 / 24%);border-radius:18px;background:rgb(124 58 237 / 10%);padding:16px;color:#D7D3E0;font-size:12px;line-height:1.7}.type-guide-note b{color:#fff}
.type-guide-footer{margin-top:18px;text-align:center;color:var(--muted);font-size:11px}
@media(max-width:1023px){.type-guide-layout{grid-template-columns:1fr}.type-guide-nav{position:static;display:flex;overflow-x:auto;gap:4px}.type-guide-nav strong{display:none}.type-guide-nav a{flex:0 0 auto}.type-guide-overview{grid-template-columns:repeat(2,1fr)}.weight-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:767px){.type-guide-wrap{padding-top:24px}.type-guide-hero{padding:28px}.type-guide-hero>p{font-size:15px}.type-guide-section{padding:20px}.type-guide-head{flex-direction:column}.type-badge{align-self:flex-start}.font-pair,.guideline-grid,.conversion-demo{grid-template-columns:1fr}.type-scale-row{grid-template-columns:1fr;gap:8px}.type-scale-spec{text-align:left}.ts-display{font-size:42px}.ts-h1{font-size:34px}.clarity-palette{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.type-guide-overview,.clarity-palette,.weight-grid{grid-template-columns:1fr}.type-guide-kicker{align-items:flex-start;flex-direction:column}}

.status-pill.info{background:rgb(96 165 250 / 13%);color:#93C5FD}


/* =========================================================
   HORA MUSIC — Audio UI v3.0
   Neutral studio dark mode + electric blue + audio cyan.
   ========================================================= */
:root{
  --background:#181818;
  --foreground:#F5F5F5;
  --surface:#222222;
  --surface-2:#2A2A2A;
  --surface-3:#333333;
  --brand:#007AFF;
  --brand-cta:#006FE8;
  --brand-cta-hover:#0062CC;
  --brand-glow:#4DA3FF;
  --audio:#00D0FF;
  --cyan:var(--audio);
  --secondary:var(--audio);
  --record:#FF7A00;
  --muted:#A0A0A0;
  --accent:#25364A;
  --border:rgb(255 255 255 / 11%);
  --input:rgb(255 255 255 / 16%);
  --danger:#FF4D5E;
  --success:#4ADE80;
  --warning:#FBBF24;
  --info:#60A5FA;
  --font-display:"Sora",Inter,ui-sans-serif,system-ui,sans-serif;
  --font-sans:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-mono:"Roboto Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --gradient-brand:linear-gradient(135deg,#005FCC 0%,#006FE8 100%);
  --gradient-brand-soft:linear-gradient(135deg,rgb(0 122 255 / 20%) 0%,rgb(0 208 255 / 8%) 100%);
  --gradient-hero:radial-gradient(78% 60% at 50% 0%,rgb(0 122 255 / 18%) 0%,rgb(0 208 255 / 5%) 42%,transparent 72%);
  --shadow-glow:0 18px 60px -20px rgb(0 122 255 / 45%);
  --shadow-card:0 18px 48px -28px rgb(0 0 0 / 66%);
}
html{color-scheme:dark}
body{
  background:
    radial-gradient(900px 420px at 12% -10%,rgb(0 122 255 / 7%),transparent 68%),
    radial-gradient(720px 360px at 92% 0%,rgb(0 208 255 / 3%),transparent 66%),
    var(--background);
}
.site-header{background:rgb(24 24 24 / 92%);border-bottom-color:rgb(255 255 255 / 9%)}
.glass-card{background:rgb(34 34 34 / 94%);border-color:rgb(255 255 255 / 10%);box-shadow:var(--shadow-card)}
.logo-mark{background:linear-gradient(135deg,#005FCC,#007AFF);box-shadow:0 12px 28px -12px rgb(0 122 255 / 65%)}
.logo-pro,.gradient-text{background:linear-gradient(135deg,#4DA3FF,#00D0FF);-webkit-background-clip:text;background-clip:text;color:transparent}
.nav-link.active{background:rgb(0 122 255 / 13%);box-shadow:inset 0 0 0 1px rgb(0 122 255 / 21%)}
.nav-link:hover,.small-btn:hover,.track-action:hover{background:#333333}
.credit-pill,.pill{background:#2A2A2A}
.credit-dot{background:var(--audio);box-shadow:0 0 0 4px rgb(0 208 255 / 9%),0 0 14px rgb(0 208 255 / 42%)}
.btn-brand,.mode-btn.active,.filter-pill.active,.page-number.active{background:var(--brand-cta);color:#fff;box-shadow:0 14px 34px -18px rgb(0 122 255 / 72%)}
.btn-brand:hover,.mode-btn.active:hover,.filter-pill.active:hover{background:var(--brand-cta-hover);filter:none;box-shadow:0 18px 38px -18px rgb(0 122 255 / 62%)}
.btn-secondary,.field,.select-field,.textarea-field{background:#2A2A2A}
.field:focus,.select-field:focus,.textarea-field:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgb(0 122 255 / 17%)}
:where(a,button,input,textarea,select,[tabindex]):focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.hero-desc,.page-subtitle{color:#B8B8B8}
.feature-icon,.admin-kpi-icon{background:rgb(0 122 255 / 12%);color:#4DA3FF}
.track-mode,.hero-copy .pill .icon,.studio-meta .icon,.plan-features .icon,.security-note .icon{color:var(--audio)}
.mic-btn.listening{color:var(--record);border-color:rgb(255 122 0 / 50%);background:rgb(255 122 0 / 9%)}
@keyframes pulse-ring{0%{box-shadow:0 0 0 0 rgb(255 122 0 / 48%)}70%{box-shadow:0 0 0 15px rgb(255 122 0 / 0%)}100%{box-shadow:0 0 0 0 rgb(255 122 0 / 0%)}}
.studio-card{box-shadow:0 24px 68px -40px rgb(0 122 255 / 42%)}
.track-card{background:#222222}
.track-card:hover{background:#292929;transform:translateY(-1px)}
.track-card.playing{border-color:rgb(0 208 255 / 38%);box-shadow:0 0 0 1px rgb(0 208 255 / 10%),0 18px 44px -30px rgb(0 208 255 / 34%)}
.track-art{background:#2A2A2A}
.track-art::before{background:radial-gradient(circle at 50% 50%,rgb(0 122 255 / 14%),transparent 70%)}
.track-art::after{background:linear-gradient(180deg,transparent 20%,rgb(24 24 24 / 62%) 100%)}
.wave-bar{background:#595959;animation:none;transition:background .16s ease,opacity .16s ease,transform .16s ease}
.cta-wave .wave-bar,.explore-visual .wave-bar{background:rgb(0 208 255 / 62%);animation:equalize 1.1s ease-in-out infinite}
.track-card .wave-bar.is-played,.global-player .wave-bar.is-played,.audio-demo-wave .wave-bar.active{background:var(--audio);box-shadow:0 0 8px rgb(0 208 255 / 22%)}
.track-play{background:var(--brand-cta);box-shadow:0 9px 24px -12px rgb(0 122 255 / 80%)}
.track-action.liked{color:var(--audio);background:rgb(0 208 255 / 8%)}
.track-meta,.mono,.timecode,[data-time],.audio-time,.db-value,.timeline-ruler,.technical-value{font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.track-meta{letter-spacing:-.02em}
.status-pill.info,.semantic-pill.info{background:rgb(0 208 255 / 9%)!important;color:var(--audio)!important}
.queue-icon.processing{background:var(--audio);box-shadow:0 0 12px rgb(0 208 255 / 52%)}
.admin-body,.identity-body,.type-guide-body{background:radial-gradient(90% 55% at 60% 0%,rgb(0 122 255 / 8%),transparent 65%),var(--background)}
.identity-version i{background:var(--audio);box-shadow:0 0 12px rgb(0 208 255 / 48%)}
.identity-rule i{color:var(--audio)}
.gradient-showcase{background:linear-gradient(135deg,#005FCC,#006FE8)!important}

/* Persistent master player */
.global-player{position:fixed;left:0;right:0;bottom:0;z-index:55;transform:translateY(calc(100% + 8px));opacity:0;pointer-events:none;border-top:1px solid rgb(255 255 255 / 12%);background:rgb(28 28 28 / 96%);box-shadow:0 -18px 52px -32px #000;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);transition:transform .22s ease,opacity .22s ease}
.global-player.active{transform:translateY(0);opacity:1;pointer-events:auto}
.global-player-inner{width:min(100% - 28px,1280px);min-height:78px;margin-inline:auto;display:grid;grid-template-columns:minmax(180px,280px) auto minmax(260px,1fr) auto;align-items:center;gap:18px;padding:10px 0}
.player-track{min-width:0;display:flex;align-items:center;gap:11px}.player-art{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:12px;background:#2A2A2A;border:1px solid var(--border)}.player-art .icon{width:21px;height:21px;color:var(--audio)}.player-copy{min-width:0}.player-copy b,.player-copy span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.player-copy b{font-size:14px}.player-copy span{margin-top:3px;color:var(--muted);font-size:11px}
.player-transport{display:flex;align-items:center;gap:6px}.transport-btn{width:36px;height:36px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#D8D8D8}.transport-btn:hover{background:#333}.transport-btn.primary{width:42px;height:42px;background:var(--brand-cta);color:white}.transport-btn.primary:hover{background:var(--brand-cta-hover)}.transport-btn .icon{width:17px;height:17px}.transport-btn.primary .icon{width:19px;height:19px}
.player-timeline{display:grid;grid-template-columns:48px minmax(140px,1fr) 48px;align-items:center;gap:10px}.audio-time{color:#BFBFBF;font-size:11px;text-align:center}.player-scrub{position:relative;height:34px;display:flex;align-items:center;border:0;background:transparent;padding:0}.player-waveform{width:100%;height:24px;display:flex;align-items:center;gap:2px;overflow:hidden}.player-waveform .wave-bar{flex:1;min-width:2px;max-width:4px;border-radius:99px}
.player-side{display:flex;align-items:center;gap:7px}.player-volume{width:86px;accent-color:var(--brand)}.player-close{width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:10px;background:transparent;color:var(--muted)}.player-close:hover{background:#333;color:#fff}
body.has-global-player .site-main{padding-bottom:142px}
body.has-global-player .site-footer{padding-bottom:96px}

/* Audio typography / timeline demonstration */
.audio-font-card .font-sample{font-family:var(--font-mono)!important;font-size:42px;letter-spacing:-.035em}
.audio-ui-demo{overflow:hidden;border:1px solid var(--border);border-radius:22px;background:#1D1D1D}.audio-demo-toolbar{min-height:58px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 14px;border-bottom:1px solid var(--border);background:#242424}.audio-demo-transport{display:flex;align-items:center;gap:7px}.audio-demo-button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--border);border-radius:10px;background:#2A2A2A;color:#DADADA;font-size:12px}.audio-demo-button.play{border-color:transparent;background:var(--brand-cta);color:#fff}.audio-demo-button.record{color:var(--record);border-color:rgb(255 122 0 / 28%)}.audio-demo-time{font:600 13px/1 var(--font-mono);font-variant-numeric:tabular-nums;color:#F2F2F2}.audio-demo-time span{color:var(--muted)}
.timeline-shell{display:grid;grid-template-columns:180px minmax(620px,1fr);max-height:360px;overflow:auto}.timeline-controls{position:sticky;left:0;z-index:3;background:#202020;border-right:1px solid var(--border)}.timeline-controls-head{height:36px;border-bottom:1px solid var(--border)}.timeline-control-row{height:76px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-bottom:1px solid var(--border)}.timeline-track-name{min-width:0}.timeline-track-name b{display:block;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.timeline-track-name span{display:block;margin-top:3px;color:var(--muted);font:500 11px/1.3 var(--font-mono)}.ms-controls{display:flex;gap:4px}.ms-controls i{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:#2D2D2D;color:#A8A8A8;font:700 10px/1 var(--font-sans);font-style:normal}.ms-controls i.active{color:#111;background:var(--record)}
.timeline-content{min-width:760px}.timeline-ruler{position:sticky;top:0;z-index:2;height:36px;display:grid;grid-template-columns:repeat(8,1fr);align-items:end;background:#202020;border-bottom:1px solid var(--border);color:#858585;font-size:11px}.timeline-ruler span{padding:0 0 7px 8px;border-left:1px solid rgb(255 255 255 / 7%)}.timeline-row{position:relative;height:76px;display:grid;grid-template-columns:repeat(8,1fr);align-items:center;border-bottom:1px solid var(--border);background:repeating-linear-gradient(to right,transparent 0,transparent calc(12.5% - 1px),rgb(255 255 255 / 5%) calc(12.5% - 1px),rgb(255 255 255 / 5%) 12.5%)}.audio-clip{height:48px;margin:0 6px;border:1px solid rgb(0 122 255 / 22%);border-radius:8px;background:rgb(0 122 255 / 8%);display:flex;align-items:center;overflow:hidden;padding:0 8px}.audio-clip:nth-child(1){grid-column:1/7}.timeline-row:nth-child(3) .audio-clip{grid-column:2/8}.timeline-row:nth-child(4) .audio-clip{grid-column:1/6}.audio-demo-wave{width:100%;height:30px;display:flex;align-items:center;gap:2px}.audio-demo-wave .wave-bar{flex:1;min-width:2px;max-width:3px;background:#555}.playhead{position:absolute;left:37%;top:0;bottom:0;width:1px;background:var(--audio);box-shadow:0 0 10px rgb(0 208 255 / 35%)}.playhead::before{content:"";position:absolute;left:-4px;top:0;border-left:4px solid transparent;border-right:4px solid transparent;border-top:6px solid var(--audio)}
.audio-color-role{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:12px}.audio-role-card{border:1px solid var(--border);border-radius:18px;background:#252525;padding:16px}.audio-role-dot{width:10px;height:10px;border-radius:50%;margin-bottom:12px}.audio-role-card b{font-size:13px}.audio-role-card p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.6}

/* Typography guide v3 palette */
.type-guide-body{background:radial-gradient(900px 500px at 14% -8%,rgb(0 122 255 / 11%),transparent 65%),radial-gradient(760px 400px at 90% 4%,rgb(0 208 255 / 4%),transparent 64%),var(--background)}
.type-guide-hero{background:linear-gradient(145deg,#262626,#202020);border-color:rgb(255 255 255 / 11%)}
.type-guide-hero::after{background:rgb(0 122 255 / 12%)}
.type-guide-stat,.font-card,.guideline-card,.weight-card,.type-scale-row,.clarity-color{background:#262626}
.type-guide-note{background:rgb(0 122 255 / 7%);border-color:rgb(0 122 255 / 20%)}
.type-guide-nav a:hover{background:#303030}
.type-badge{background:#282828}

@media(max-width:900px){.global-player-inner{grid-template-columns:minmax(170px,240px) auto 1fr}.player-side{display:none}.timeline-shell{grid-template-columns:150px minmax(600px,1fr)}}
@media(max-width:767px){
  .global-player{bottom:61px}.global-player-inner{width:min(100% - 20px,1280px);min-height:70px;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:9px 0}.player-art{width:40px;height:40px;flex-basis:40px}.player-copy span{display:none}.player-timeline{grid-column:1/-1;grid-template-columns:38px 1fr 38px;gap:7px}.player-side{display:none}.transport-btn:not(.primary){display:none}.transport-btn.primary{width:38px;height:38px}.global-player .player-waveform{height:18px}.audio-time{font-size:11px}body.has-global-player .site-main{padding-bottom:170px}body.has-global-player .site-footer{padding-bottom:150px}
  .timeline-shell{grid-template-columns:124px minmax(560px,1fr);max-height:320px}.timeline-control-row,.timeline-row{height:62px}.timeline-control-row{padding:7px 8px}.timeline-track-name b{font-size:12px}.ms-controls i{width:22px;height:22px}.audio-clip{height:38px}.audio-demo-toolbar{align-items:flex-start;flex-direction:column}.audio-color-role{grid-template-columns:1fr}
}
@media(max-width:520px){.track-card{padding:13px;gap:12px}.track-art{width:64px;height:64px;flex-basis:64px}.track-actions{gap:6px}.track-action{height:34px}.track-title{font-size:15px}.track-genre{font-size:13px}.track-meta{font-size:11px}}

/* v19 — páginas administrativas independentes no mesmo padrão do painel */
.admin-shell{display:grid!important;grid-template-columns:220px minmax(0,1fr)!important;gap:24px!important;align-items:start!important;max-width:1280px!important;padding-top:28px!important}
.admin-shell>.admin-standalone-sidebar{grid-column:1!important;grid-row:1 / span 200!important;position:sticky!important;top:88px!important;display:flex!important;flex-direction:column!important;gap:2px!important;overflow:visible!important;min-height:calc(100vh - 128px)!important;margin:0!important;padding:14px!important;border:1px solid var(--border)!important;border-radius:26px!important;background:var(--glass)!important;box-shadow:none!important}
.admin-shell>:not(.admin-standalone-sidebar){grid-column:2!important;min-width:0}
.admin-standalone-sidebar .admin-sidebar-title{display:block!important;width:100%!important;margin:12px 0 3px!important;padding:10px 10px 6px!important;color:var(--muted)!important;font-size:10px!important;font-weight:850!important;letter-spacing:.11em!important;white-space:normal!important}
.admin-standalone-sidebar .admin-sidebar-title:first-of-type{margin-top:8px!important}
.admin-standalone-sidebar .admin-standalone-link{display:flex!important;width:100%!important;align-items:center!important;justify-content:flex-start!important;min-height:40px!important;padding:9px 11px!important;border:0!important;border-radius:13px!important;background:transparent!important;color:var(--muted)!important;font-size:12px!important;font-weight:700!important;text-decoration:none!important;white-space:normal!important}
.admin-standalone-sidebar .admin-standalone-link:hover{background:var(--surface-2)!important;color:var(--foreground)!important}
.admin-standalone-sidebar .admin-standalone-link.is-active,.admin-standalone-sidebar .admin-standalone-link.active{background:color-mix(in oklab,var(--brand) 15%,var(--surface))!important;color:var(--foreground)!important;box-shadow:inset 3px 0 0 var(--brand)!important}
.admin-standalone-home{display:flex!important;align-items:center!important;gap:8px!important;min-height:40px!important;padding:9px 11px!important;border:1px solid var(--border)!important;border-radius:13px!important;background:var(--surface-2)!important;color:var(--foreground)!important;font-size:12px!important;font-weight:800!important;text-decoration:none!important;white-space:nowrap!important}
.admin-standalone-home:hover{border-color:color-mix(in oklab,var(--brand) 40%,var(--border))!important;background:color-mix(in oklab,var(--brand) 9%,var(--surface-2))!important}
.admin-standalone-sidebar .admin-sidebar-footer{margin-top:auto!important;width:100%!important}
@media(max-width:900px){
  .admin-shell{grid-template-columns:1fr!important;gap:16px!important;padding-top:14px!important}
  .admin-shell>.admin-standalone-sidebar{grid-column:1!important;grid-row:auto!important;position:static!important;min-height:0!important;flex-direction:row!important;align-items:center!important;overflow-x:auto!important;padding:8px!important;border-radius:18px!important;scrollbar-width:none!important}
  .admin-shell>.admin-standalone-sidebar::-webkit-scrollbar{display:none!important}
  .admin-shell>:not(.admin-standalone-sidebar){grid-column:1!important}
  .admin-standalone-sidebar .admin-sidebar-title,.admin-standalone-sidebar .admin-sidebar-footer{display:none!important}
  .admin-standalone-sidebar .admin-standalone-home,.admin-standalone-sidebar .admin-standalone-link{width:auto!important;flex:0 0 auto!important;white-space:nowrap!important;box-shadow:none!important}
  .admin-standalone-sidebar .admin-standalone-link.is-active,.admin-standalone-sidebar .admin-standalone-link.active{box-shadow:inset 0 -3px 0 var(--brand)!important}
}

/* Auth: ação secundária deve parecer botão, não link perdido */
.auth-back-button{display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;min-height:44px!important;margin-top:12px!important;padding:10px 16px!important;border:1px solid var(--border)!important;border-radius:16px!important;background:var(--surface-2)!important;color:var(--foreground)!important;font-size:12px!important;font-weight:800!important;text-decoration:none!important;transition:background .18s ease,border-color .18s ease,transform .18s ease!important}
.auth-back-button:hover{background:color-mix(in oklab,var(--brand) 9%,var(--surface-2))!important;border-color:color-mix(in oklab,var(--brand) 38%,var(--border))!important;transform:translateY(-1px)!important}
.auth-back-button:focus-visible{outline:3px solid color-mix(in oklab,var(--brand) 35%,transparent)!important;outline-offset:2px!important}
