/* ============================================================
   VOCALOFF.RU — визуальная система
   Design direction: editorial brutalism × neon synth
   Typography: Unbounded (display) + Manrope (body)
   Palette: deep purple-black / electric violet / acid green
   ============================================================ */

:root {
    /* core */
    --bg-0: #07040f;
    --bg-1: #0d0820;
    --bg-2: #15102a;
    --bg-3: #1f1a3a;
    --surface: #120a28;
    --surface-hi: #1b1238;
    --surface-line: #2a1f4d;

    --text: #f4eeff;
    --text-dim: #a79bcf;
    --text-muted: #6d608f;

    /* accents */
    --violet: #a855f7;
    --violet-hi: #c084fc;
    --violet-deep: #6d28d9;
    --green: #22e295;
    --green-hi: #6ef4b6;
    --pink: #ec4899;
    --yellow: #eab308;

    --gradient-brand: linear-gradient(135deg, #a855f7 0%, #22e295 100%);
    --gradient-brand-soft: linear-gradient(135deg, rgba(168,85,247,.22) 0%, rgba(34,226,149,.18) 100%);
    --gradient-dark: linear-gradient(180deg, #0d0820 0%, #07040f 100%);
    --gradient-card: linear-gradient(145deg, rgba(168,85,247,0.08) 0%, rgba(34,226,149,0.04) 100%);

    --shadow-glow: 0 0 40px -10px rgba(168,85,247,.4), 0 0 80px -20px rgba(34,226,149,.2);
    --shadow-card: 0 20px 60px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.03);

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;

    --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
    --font-body:    'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg-0);
    background-image:
        radial-gradient(ellipse 1200px 600px at 10% -10%, rgba(168,85,247,.18), transparent 60%),
        radial-gradient(ellipse 1000px 500px at 100% 0%, rgba(34,226,149,.10), transparent 60%),
        radial-gradient(ellipse 1400px 800px at 50% 110%, rgba(109,40,217,.25), transparent 60%);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: -0.005em;
    overflow-x: hidden;
}

/* Noise overlay для текстуры */
body::before {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .035;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0;
}
h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.35rem); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    background: rgba(13, 8, 32, .55);
    border-bottom: 1px solid rgba(168,85,247,.14);
}
.site-header__inner {
    display: flex; align-items: center; gap: 20px;
    padding: 14px 20px;
    max-width: 1400px; margin: 0 auto;
}
.brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
}
.brand__logo {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--gradient-brand);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 800; font-size: 20px;
    color: #0d0820;
    transform: rotate(-6deg);
    box-shadow: 0 6px 20px -4px rgba(168,85,247,.5);
}
.brand__name { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav {
    display: flex; align-items: center; gap: 4px;
    margin-left: auto;
}
.nav a {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: .95rem;
    color: var(--text-dim);
    transition: all .15s;
}
.nav a:hover { color: var(--text); background: rgba(168,85,247,.08); }
.nav a.active { color: var(--text); background: rgba(168,85,247,.14); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn-login { padding: 9px 18px; font-size: .9rem; }

/* Language dropdown (globe + chevron) */
.lang-dd { position: relative; }
.lang-dd__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: .04em;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.lang-dd__btn:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.lang-dd.open .lang-dd__btn { background: rgba(255,255,255,.08); border-color: rgba(168,85,247,.35); }
.lang-dd__btn > i.fa-globe { color: var(--text-dim); font-size: .88rem; }
.lang-dd__chev { font-size: .68rem; color: var(--text-dim); transition: transform .2s; margin-left: 2px; }
.lang-dd.open .lang-dd__chev { transform: rotate(180deg); color: var(--text); }

.lang-dd__menu {
    position: absolute; top: calc(100% + 8px); right: 0;
    min-width: 110px;
    background: #1a1330;
    border: 1px solid rgba(168,85,247,.22);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 18px 40px rgba(0,0,0,.55);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s, transform .16s, visibility 0s linear .16s;
    z-index: 60;
}
.lang-dd.open .lang-dd__menu {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition: opacity .16s, transform .16s, visibility 0s;
}
.lang-dd__menu a {
    display: block;
    padding: 9px 14px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-dim);
    text-align: center;
    transition: background .12s, color .12s;
}
.lang-dd__menu a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.lang-dd__menu a.active { color: var(--violet-hi); background: rgba(168,85,247,.12); }

/* User menu (profile dropdown) */
.user-menu { position: relative; }
.user-menu__btn {
    width: 42px; height: 42px;
    border-radius: 50%;
    padding: 0;
    background: var(--gradient-brand);
    border: 2px solid rgba(255,255,255,.12);
    overflow: hidden;
    cursor: pointer;
    transition: border-color .15s, transform .15s, box-shadow .15s;
    display: grid; place-items: center;
}
.user-menu__btn:hover,
.user-menu.open .user-menu__btn {
    border-color: rgba(168,85,247,.7);
    box-shadow: 0 0 0 4px rgba(168,85,247,.15);
}
.user-menu__btn:active { transform: scale(.96); }
.user-menu__avatar { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-menu__avatar--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.45rem;
    line-height: 1;
    letter-spacing: 0;
    color: #0d0820;
    background: var(--gradient-brand);
    text-transform: uppercase;
}

.user-menu__popover {
    position: absolute;
    top: calc(100% + 12px); right: 0;
    min-width: 320px; max-width: 360px;
    background: #1a1330;
    border: 1px solid rgba(168,85,247,.22);
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.02) inset;
    padding: 6px;
    opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
    z-index: 60;
}
.user-menu.open .user-menu__popover {
    opacity: 1; visibility: visible; transform: translateY(0) scale(1);
    transition: opacity .16s ease, transform .16s ease, visibility 0s;
}
.user-menu__head { padding: 14px 16px 10px; }
.user-menu__name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 6px;
    word-break: break-word;
}
.user-menu__email {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-dim);
    font-size: .85rem;
    word-break: break-all;
}
.user-menu__email i { color: var(--text-muted); font-size: .78rem; }

.user-menu__plan {
    margin: 6px 4px 4px;
    padding: 12px 14px;
    background: rgba(168,85,247,.10);
    border: 1px solid rgba(168,85,247,.22);
    border-radius: 12px;
}
.user-menu__plan-head {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    margin-bottom: 8px;
}
.user-menu__plan-chip {
    display: inline-flex; align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--gradient-brand);
    color: #0d0820;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: -.01em;
}
.user-menu__plan-head small { color: var(--text-dim); font-size: .72rem; }
.user-menu__plan-mins {
    color: var(--text);
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: .95rem;
    margin-bottom: 8px;
}
.user-menu__plan-mins small { color: var(--text-dim); font-weight: 400; margin-left: 4px; }
.user-menu__plan-bar {
    height: 4px; border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.user-menu__plan-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: 999px;
    transition: width .4s ease;
}
.user-menu__plan-upgrade {
    display: inline-flex; align-items: center; gap: 8px;
    margin-top: 10px;
    padding: 7px 12px;
    background: var(--gradient-brand);
    color: #0d0820;
    font-weight: 700;
    font-size: .82rem;
    border-radius: 999px;
}
.user-menu__plan-upgrade:hover { filter: brightness(1.05); }

.user-menu__divider {
    height: 1px;
    background: rgba(255,255,255,.06);
    margin: 4px 10px;
}
.user-menu__list { display: flex; flex-direction: column; padding: 4px 0; }
.user-menu__list a,
.user-menu__logout {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    margin: 0 2px;
    color: var(--text);
    font-size: .92rem;
    border-radius: 8px;
    transition: background .12s;
}
.user-menu__list a i { color: var(--text-dim); width: 18px; text-align: center; font-size: .9rem; }
.user-menu__list a:hover { background: rgba(255,255,255,.05); }

.user-menu__logout {
    color: #fca5a5;
}
.user-menu__logout i { width: 18px; text-align: center; }
.user-menu__logout:hover { background: rgba(239,68,68,.14); color: #f87171; }

.user-menu__manage {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; margin: 0 2px 4px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(168,85,247,.18) 0%, rgba(99,102,241,.18) 100%);
    border: 1px solid rgba(168,85,247,.4);
    color: #e9d5ff;
    font-size: .92rem;
    transition: all .15s;
}
.user-menu__manage i { width: 18px; text-align: center; }
.user-menu__manage:hover { background: linear-gradient(135deg, rgba(168,85,247,.28) 0%, rgba(99,102,241,.28) 100%); color: #fff; }
.user-menu__manage-ext { margin-left: auto; font-size: .72rem; opacity: .7; }

/* Burger (mobile) */
.burger {
    display: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    place-items: center;
    order: -1;
}
.burger span {
    display: block; width: 20px; height: 2px;
    background: var(--text); margin: 3px 0;
    transition: transform .2s, opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 900px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: 42px 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
    }
    .burger { display: grid; grid-column: 1; justify-self: start; }
    .brand { grid-column: 2; justify-self: center; gap: 8px; }
    .brand__name { display: none; }
    .nav { display: none; grid-column: 1 / -1; }
    .nav.open {
        display: flex; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(13, 8, 32, .98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(168,85,247,.14);
        padding: 12px;
        gap: 4px;
        align-items: stretch;
        z-index: 55;
    }
    .nav.open a { padding: 12px 14px; font-size: 1rem; }
    .header-actions { grid-column: 3; justify-self: end; gap: 6px; }

    .user-menu__popover {
        position: fixed;
        top: 70px; right: 10px; left: 10px;
        min-width: 0; max-width: none;
    }
    .btn-login { padding: 8px 14px; font-size: .82rem; }
}

@media (max-width: 380px) {
    .site-header__inner { grid-template-columns: 38px 1fr auto; padding: 10px 10px; gap: 6px; }
    .burger { width: 38px; height: 38px; }
    .user-menu__btn { width: 38px; height: 38px; }
    .btn-login { padding: 7px 12px; font-size: .78rem; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    transition: all .15s;
    white-space: nowrap;
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--gradient-brand);
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,.35);
    box-shadow: 0 10px 30px -10px rgba(168,85,247,.6);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited { color: #ffffff !important; -webkit-text-fill-color: #ffffff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -10px rgba(168,85,247,.8); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    background: rgba(255,255,255,.04);
    color: var(--text);
    border-color: rgba(168,85,247,.3);
}
.btn-ghost:hover { background: rgba(168,85,247,.1); border-color: rgba(168,85,247,.5); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: rgba(255,255,255,.12);
}
.btn-outline:hover { border-color: rgba(168,85,247,.5); background: rgba(168,85,247,.05); }

.btn-lg { padding: 16px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-icon { padding: 10px; width: 42px; height: 42px; }

.btn:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    padding: 56px 0 48px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    /* гигантский размытый свет */
    content: '';
    position: absolute;
    top: 0; left: 50%; width: 800px; height: 800px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(168,85,247,.35), transparent);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.hero__inner { position: relative; z-index: 2; }

.hero__badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px;
    background: rgba(34,226,149,.1);
    border: 1px solid rgba(34,226,149,.3);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--green-hi);
    font-weight: 600;
    margin-bottom: 28px;
}
.hero__badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px var(--green);
    animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: .4; transform: scale(.8); } }

.hero__title {
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    line-height: .95;
    margin-bottom: 28px;
    max-width: 1100px;
}
.hero__title .line { display: block; }
.hero__title .word-accent {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    position: relative;
}
.hero__title .word-accent--green {
    background: linear-gradient(135deg, #6ef4b6 0%, #22e295 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero__title .word-accent::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0.06em;
    width: 100%; height: .14em;
    background: currentColor;
    opacity: .25;
    z-index: -1;
    transform: skewY(-2deg);
    border-radius: 2px;
}
.hero__title .hero__amp {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0 .15em;
    font-style: italic;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-dim);
    max-width: 720px;
    margin-bottom: 14px;
    line-height: 1.6;
}
.hero__sub--secondary {
    font-size: clamp(.92rem, 1.25vw, 1.02rem);
    color: var(--text-muted);
    margin-bottom: 32px;
}
.hero__actions {
    display: flex; gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 22px;
}
.hero__notes {
    display: flex; flex-wrap: wrap; gap: 8px 22px;
    align-items: center;
}
.hero__note {
    color: var(--text-dim);
    font-size: .9rem;
    display: inline-flex; align-items: center; gap: 8px;
}
.hero__note::before {
    content: '✦';
    color: var(--green);
    font-size: 1.1em;
    line-height: 1;
}
.hero__note--quality::before {
    content: '◆';
    color: var(--violet-hi);
}

/* ============================================================
   SECTION
   ============================================================ */
.section { padding: 80px 0; position: relative; }
.section__head { margin-bottom: 48px; max-width: 720px; }
.section__eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--violet-hi);
    margin-bottom: 14px;
}
.section__title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 12px; letter-spacing: -0.02em; }
.section__sub { color: var(--text-dim); font-size: .98rem; max-width: 620px; }

/* ============================================================
   FEATURES — 3 режима
   ============================================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

.feature-card {
    position: relative;
    padding: 32px 26px 26px;
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--violet);
    box-shadow: var(--shadow-glow);
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-brand);
    opacity: .7;
}
.feature-card__num {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    margin-bottom: 18px;
    opacity: .35;
}
.feature-card__icon {
    position: absolute;
    top: 28px; right: 24px;
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--gradient-brand-soft);
    border: 1px solid rgba(168,85,247,.3);
    display: grid; place-items: center;
    font-size: 24px; color: var(--violet-hi);
}
.feature-card__title { font-size: 1.5rem; margin-bottom: 12px; }
.feature-card__desc { color: var(--text-dim); font-size: .98rem; line-height: 1.6; }

/* stem-viz (маленькая диаграмма внизу карточки) */
.stem-viz {
    display: flex; gap: 4px; margin-top: 24px;
    height: 36px; align-items: center;
}
.stem-viz .bar {
    flex: 1;
    height: 100%;
    border-radius: 4px;
    background: currentColor;
    opacity: .5;
}
.stem-viz .bar.off { opacity: .12; }
.stem-viz .bar.on  { opacity: 1; box-shadow: 0 0 12px currentColor; }
.stem-viz .label { font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted); padding: 0 8px; white-space: nowrap; }

/* ============================================================
   EXAMPLES — блоки с плеерами
   ============================================================ */
.examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 900px) { .examples { grid-template-columns: 1fr; } }

.example-card {
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    padding: 22px;
    transition: border-color .2s;
    display: flex;
    flex-direction: column;
}
.example-card:hover { border-color: var(--violet); }
.example-card__tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--violet-hi);
    padding: 4px 10px;
    background: rgba(168,85,247,.1);
    border-radius: 6px;
    margin-bottom: 14px;
}
.example-card__tag.green { color: var(--green-hi); background: rgba(34,226,149,.08); }
.example-card__tag.pink  { color: #fbb6ce; background: rgba(236,72,153,.08); }
.example-card__title { font-size: 1.2rem; margin-bottom: 8px; }
.example-card__desc { color: var(--text-dim); font-size: .9rem; margin-bottom: 18px; }
.example-card .btn-listen {
    width: 100%;
    justify-content: center;
    margin-top: auto;
}

.mini-player { display: flex; flex-direction: column; gap: 10px; }
.mini-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--bg-2);
    border: 1px solid var(--surface-line);
    border-radius: 12px;
    padding: 10px 12px;
}
.mini-row__play {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #0d0820;
    display: grid; place-items: center;
    flex-shrink: 0;
    transition: transform .1s;
}
.mini-row__play:hover { transform: scale(1.08); }
.mini-row__label {
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dim);
    width: 70px; flex-shrink: 0;
}
.mini-row__wave { flex: 1; height: 28px; position: relative; }
.mini-row__wave canvas { width: 100%; height: 100%; display: block; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.step {
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    padding: 28px 24px;
    position: relative;
}
.step__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--gradient-brand);
    color: #0d0820;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 18px;
    transform: rotate(-4deg);
}
.step__title { font-size: 1.3rem; margin-bottom: 8px; }
.step__desc { color: var(--text-dim); font-size: .95rem; }

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px)  { .pricing-grid { grid-template-columns: 1fr; } }

.plan-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    padding: 32px 26px;
    display: flex; flex-direction: column;
    gap: 18px;
    transition: transform .2s, border-color .2s;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--violet); }
.plan-card.featured {
    border-color: var(--violet);
    background: var(--gradient-card), var(--surface);
    box-shadow: var(--shadow-glow);
}
.plan-card__badge {
    position: absolute;
    top: -12px; right: 18px;
    padding: 5px 12px;
    background: var(--gradient-brand);
    color: #0d0820;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: 999px;
    font-family: var(--font-display);
}
.plan-card__name {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}
.plan-card__price {
    display: flex; align-items: baseline; gap: 6px;
}
.plan-card__price .amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.plan-card__price .cur { color: var(--text-dim); font-weight: 500; font-size: 1.1rem; }
.plan-card__price .per { color: var(--text-muted); font-size: .9rem; margin-left: 4px; }

.plan-card__minutes {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-hi);
}
.plan-card__minutes small {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .85rem;
    color: var(--text-dim);
    margin-top: 3px;
}
.plan-card__features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-card__features li {
    display: flex; align-items: flex-start; gap: 10px;
    color: var(--text-dim);
    font-size: .92rem;
    line-height: 1.5;
}
.plan-card__features li::before {
    content: '✓';
    color: var(--green);
    font-weight: 800;
    flex-shrink: 0;
    padding-top: 1px;
}
.plan-card .btn { width: 100%; margin-top: auto; }

/* ============================================================
   CREATE page
   ============================================================ */
.create-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}
.create-head { margin-bottom: 32px; }
.create-head h1 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-bottom: 8px; }
.create-head p { color: var(--text-dim); }

.card {
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    padding: 26px;
    box-shadow: var(--shadow-card);
}

.dropzone {
    position: relative;
    border: 2px dashed rgba(168,85,247,.3);
    border-radius: var(--radius);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    background: #000;
}
.dropzone:hover { border-color: var(--violet); background: #0a0614; }
.dropzone.drag-over {
    border-color: var(--green);
    background: #04110a;
    transform: scale(1.005);
}
.dropzone__icon {
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 18px;
    background: var(--gradient-brand-soft);
    border: 1px solid rgba(168,85,247,.3);
    display: grid; place-items: center;
    font-size: 28px;
    color: var(--violet-hi);
}
.dropzone__title { font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; color: var(--text); }
.dropzone__hint { color: var(--text-muted); font-size: .88rem; }

.picked {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--bg-2);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
}
.picked__icon {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: var(--gradient-brand);
    color: #0d0820;
    display: grid; place-items: center;
    flex-shrink: 0;
}
.picked__info { flex: 1; min-width: 0; }
.picked__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picked__meta { color: var(--text-muted); font-size: .85rem; }
.picked__clear {
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(239,68,68,.1); color: #fca5a5;
    display: grid; place-items: center;
    transition: all .15s; flex-shrink: 0;
}
.picked__clear:hover { background: rgba(239,68,68,.2); color: #fff; }

.mode-switch {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 5px;
    background: var(--bg-1);
    border: 1px solid var(--surface-line);
    border-radius: 14px;
}
.mode-btn {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-dim);
    text-align: center;
    transition: all .15s;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    border: 1px solid transparent;
}
.mode-btn i { font-size: 1.1rem; opacity: .7; }
.mode-btn:hover { color: var(--text); background: rgba(168,85,247,.08); }
.mode-btn.active {
    color: var(--text);
    background: var(--gradient-brand-soft);
    border-color: rgba(168,85,247,.4);
    box-shadow: 0 0 0 1px rgba(168,85,247,.2) inset;
}
.mode-btn.active i { color: var(--green-hi); opacity: 1; }
@media (max-width: 560px) {
    .mode-switch { grid-template-columns: 1fr; }
    .mode-btn { flex-direction: row; justify-content: center; }
}
.mode-hint { color: var(--text-muted); font-size: .85rem; margin-top: 10px; text-align: center; }

/* Progress */
.progress {
    text-align: center;
    padding: 40px 20px;
}
.progress__ring {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
    position: relative;
}
.progress__ring::before, .progress__ring::after {
    content: ''; position: absolute; inset: 0;
    border-radius: 50%;
}
.progress__ring::before {
    border: 4px solid rgba(168,85,247,.15);
}
.progress__ring::after {
    border: 4px solid transparent;
    border-top-color: var(--violet);
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress__title { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.progress__text  { color: var(--text-dim); font-size: .92rem; }
.progress__bar   { margin-top: 22px; height: 6px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.progress__fill  { height: 100%; background: var(--gradient-brand); transition: width .3s; }

/* Multi-track player (main result) */
.mt-player { background: var(--bg-1); border: 1px solid var(--surface-line); border-radius: var(--radius-lg); padding: 22px; }
.mt-player__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mt-player__title { font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; gap: 10px; min-width: 0; }
.mt-player__title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-player__title .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); flex-shrink: 0; }
.mt-player__reset {
    padding: 8px 12px; border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: var(--text-dim); font-size: .85rem;
    display: inline-flex; align-items: center; gap: 6px;
}
.mt-player__reset:hover { background: rgba(168,85,247,.12); color: var(--text); }

.mt-main { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.mt-main__play {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--gradient-brand); color: #0d0820;
    display: grid; place-items: center;
    font-size: 1.3rem;
    transition: transform .1s;
    flex-shrink: 0;
}
.mt-main__play:hover { transform: scale(1.05); }
.mt-main__seek { flex: 1; }
.mt-main__times { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-dim); font-family: var(--font-mono); margin-bottom: 6px; }
.mt-main__bar { height: 5px; background: var(--bg-2); border-radius: 999px; cursor: pointer; position: relative; overflow: hidden; }
.mt-main__fill { height: 100%; background: var(--violet); transition: width .1s; }

.mt-row { background: var(--bg-2); border: 1px solid var(--surface-line); border-radius: 12px; overflow: hidden; margin-bottom: 8px; }
.mt-row__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto 1fr;
    align-items: stretch;
}
.mt-row__controls {
    display: flex; flex-direction: column; gap: 3px;
    padding: 8px; background: var(--bg-1);
    border-right: 1px solid var(--surface-line);
    flex-shrink: 0;
    grid-row: 1 / span 2;
    justify-content: center;
}
.mt-row__btn {
    width: 28px; height: 22px; border-radius: 5px;
    font-size: 10px; font-weight: 800;
    background: rgba(255,255,255,.06); color: var(--text-dim);
    transition: all .15s;
}
.mt-row__btn:hover { background: rgba(255,255,255,.12); color: var(--text); }
.mt-row__btn.solo-on  { background: var(--yellow); color: #1a0f2e; }
.mt-row__btn.mute-on  { background: #ef4444; color: #fff; }

.mt-row__label {
    grid-column: 2; grid-row: 1;
    display: flex; align-items: center; gap: 6px;
    padding: 6px 14px 2px;
    font-size: .7rem; font-weight: 700;
    font-family: var(--font-mono);
    letter-spacing: .06em; text-transform: uppercase;
    border-left: 3px solid transparent;
}
.mt-row__label i { font-size: .72rem; }
.mt-row__wave {
    grid-column: 2; grid-row: 2;
    height: 48px; position: relative; cursor: pointer;
    border-left: 3px solid transparent;
}
.mt-row__wave canvas { width: 100%; height: 100%; display: block; image-rendering: crisp-edges; }
.mt-row--inst  .mt-row__label,
.mt-row--inst  .mt-row__wave   { border-left-color: var(--green); }
.mt-row--inst  .mt-row__label  { color: var(--green-hi); }
.mt-row--vocal .mt-row__label,
.mt-row--vocal .mt-row__wave   { border-left-color: var(--pink); }
.mt-row--vocal .mt-row__label  { color: #fbb6ce; }
.mt-row--bv    .mt-row__label,
.mt-row--bv    .mt-row__wave   { border-left-color: var(--yellow); }
.mt-row--bv    .mt-row__label  { color: #fde68a; }

.mt-row__vol-wrap {
    grid-column: 3;
    grid-row: 1 / span 2;
    display: flex; align-items: center; gap: 8px;
    padding: 0 14px;
    border-left: 1px solid var(--surface-line);
    background: var(--bg-1);
    min-width: 170px;
}
.mt-row__vol-wrap > i {
    color: var(--text-dim);
    font-size: .78rem;
}
.mt-row__vol {
    -webkit-appearance: none;
    appearance: none;
    width: 90px;
    height: 22px;
    background: transparent;
    cursor: pointer;
    --vol-pct: 66.6667%;
}
.mt-row__vol:focus { outline: none; }
.mt-row__vol::-webkit-slider-runnable-track {
    height: 4px; border-radius: 999px;
    background: linear-gradient(
        to right,
        var(--violet) 0%,
        var(--violet) var(--vol-pct),
        rgba(255,255,255,.10) var(--vol-pct),
        rgba(255,255,255,.10) 100%
    );
}
.mt-row__vol::-moz-range-track {
    height: 4px; border-radius: 999px;
    background: rgba(255,255,255,.10);
}
.mt-row__vol::-moz-range-progress {
    height: 4px; border-radius: 999px;
    background: var(--violet);
}
.mt-row__vol::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px; height: 18px;
    border-radius: 3px;
    background: #e8e8ee;
    border: 1px solid rgba(0,0,0,.35);
    box-shadow: 0 1px 3px rgba(0,0,0,.45), inset 0 -1px 0 rgba(0,0,0,.25);
    margin-top: -7px;
    cursor: grab;
}
.mt-row__vol::-webkit-slider-thumb:active { cursor: grabbing; }
.mt-row__vol::-moz-range-thumb {
    width: 10px; height: 18px;
    border-radius: 3px;
    background: #e8e8ee;
    border: 1px solid rgba(0,0,0,.35);
    box-shadow: 0 1px 3px rgba(0,0,0,.45), inset 0 -1px 0 rgba(0,0,0,.25);
    cursor: grab;
}
.mt-row--inst  .mt-row__vol::-webkit-slider-runnable-track {
    background: linear-gradient(to right,
        var(--green) 0%, var(--green) var(--vol-pct),
        rgba(255,255,255,.10) var(--vol-pct), rgba(255,255,255,.10) 100%);
}
.mt-row--inst  .mt-row__vol::-moz-range-progress { background: var(--green); }
.mt-row--vocal .mt-row__vol::-webkit-slider-runnable-track {
    background: linear-gradient(to right,
        var(--pink) 0%, var(--pink) var(--vol-pct),
        rgba(255,255,255,.10) var(--vol-pct), rgba(255,255,255,.10) 100%);
}
.mt-row--vocal .mt-row__vol::-moz-range-progress { background: var(--pink); }
.mt-row--bv    .mt-row__vol::-webkit-slider-runnable-track {
    background: linear-gradient(to right,
        var(--yellow) 0%, var(--yellow) var(--vol-pct),
        rgba(255,255,255,.10) var(--vol-pct), rgba(255,255,255,.10) 100%);
}
.mt-row--bv    .mt-row__vol::-moz-range-progress { background: var(--yellow); }
.mt-row__vol-val {
    font-family: var(--font-mono);
    font-size: .7rem;
    color: var(--text-dim);
    width: 34px;
    text-align: right;
    user-select: none;
}

@media (max-width: 640px) {
    .mt-row__inner { grid-template-columns: auto 1fr; }
    .mt-row__vol-wrap {
        grid-column: 1 / span 2;
        grid-row: 3;
        border-left: none;
        border-top: 1px solid var(--surface-line);
        padding: 6px 14px;
        min-width: 0;
        justify-content: flex-end;
    }
    .mt-row__vol { width: 110px; }
}

.mt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mt-actions select {
    background: var(--bg-2); border: 1px solid var(--surface-line); color: var(--text);
    padding: 10px 14px; border-radius: 10px; font-size: .9rem;
}
.mt-actions .btn-dl {
    flex: 1; min-width: 120px;
    padding: 10px 14px; border-radius: 10px;
    font-weight: 600; font-size: .9rem;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    transition: all .15s;
}
.btn-dl--inst  { background: rgba(34,226,149,.14);  color: var(--green-hi); border: 1px solid rgba(34,226,149,.3); }
.btn-dl--inst:hover  { background: rgba(34,226,149,.25); }
.btn-dl--vocal { background: rgba(236,72,153,.14);  color: #fbb6ce;          border: 1px solid rgba(236,72,153,.3); }
.btn-dl--vocal:hover { background: rgba(236,72,153,.25); }
.btn-dl--bv    { background: rgba(234,179,8,.14);   color: #fde68a;          border: 1px solid rgba(234,179,8,.3); }
.btn-dl--bv:hover    { background: rgba(234,179,8,.25); }

/* Жёсткая гарантия: атрибут hidden ВСЕГДА прячет элемент,
   даже если выше по каскаду задан display: flex / inline-flex */
[hidden] { display: none !important; }

/* Toast */
.toast {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--surface);
    border: 1px solid var(--surface-line);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: .9rem;
    box-shadow: 0 12px 40px -10px rgba(0,0,0,.6);
    opacity: 0;
    transition: opacity .2s, transform .2s;
    z-index: 100;
    pointer-events: none;
    max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok    { border-color: rgba(34,226,149,.4); }
.toast.error { border-color: rgba(239,68,68,.4); }

/* Auth modal */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(7,4,15,.85);
    backdrop-filter: blur(6px);
    z-index: 200;
    display: none;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-backdrop.show { display: flex; }
.modal {
    max-width: 440px; width: 100%;
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    box-shadow: var(--shadow-glow);
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}
.modal--wide {
    max-width: 780px;
    padding: 28px 26px;
}
.modal--wide h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    padding-right: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.modal--wide .mt-player { margin: 0; border: none; padding: 0; background: transparent; box-shadow: none; }
.modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 10px;
    background: rgba(255,255,255,.06); color: var(--text-dim);
    display: grid; place-items: center;
}
.modal__close:hover { background: rgba(255,255,255,.12); color: var(--text); }
.modal h3 { font-size: 1.6rem; margin-bottom: 10px; }
.modal p  { color: var(--text-dim); margin-bottom: 22px; font-size: .95rem; }

.oauth-btn {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--bg-2);
    border: 1px solid var(--surface-line);
    font-weight: 600;
    margin-bottom: 10px;
    transition: all .15s;
}
.oauth-btn:hover { background: var(--surface-hi); border-color: var(--violet); }
.oauth-btn svg { width: 20px; height: 20px; }

/* ============================================================
   HISTORY
   ============================================================ */
.history-list { display: flex; flex-direction: column; gap: 12px; }
.history-item {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 18px;
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: var(--radius);
    transition: border-color .2s;
}
.history-item:hover { border-color: var(--violet); }
.history-item__icon {
    width: 46px; height: 46px; flex-shrink: 0;
    border-radius: 12px;
    background: var(--gradient-brand-soft);
    border: 1px solid rgba(168,85,247,.3);
    display: grid; place-items: center;
    color: var(--violet-hi);
}
.history-item__info { flex: 1; min-width: 0; }
.history-item__title {
    font-weight: 600; margin-bottom: 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-item__meta { display: flex; gap: 14px; color: var(--text-muted); font-size: .8rem; flex-wrap: wrap; }
.history-item__meta span { display: inline-flex; align-items: center; gap: 5px; }
.history-item__actions { display: flex; gap: 8px; flex-shrink: 0; }
.history-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: .72rem; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase;
    font-family: var(--font-mono);
}
.history-status--completed { background: rgba(34,226,149,.14); color: var(--green-hi); }
.history-status--processing { background: rgba(168,85,247,.14); color: var(--violet-hi); }
.history-status--failed { background: rgba(239,68,68,.14); color: #fca5a5; }
.history-status--expired { background: rgba(255,255,255,.06); color: var(--text-muted); }

/* ============================================================
   TRANSPOSE page (free client-side pitch / tempo)
   ============================================================ */
.transpose-wrap { max-width: 880px; margin: 0 auto; padding: 60px 20px 80px; }

/* Transpose cards: pitch-black with dark-grey inner blocks */
.transpose-wrap .card {
    background: #000 !important;
    border: 1px solid #222 !important;
}
.tp-editor { display: flex; flex-direction: column; gap: 22px; }
.tp-filename {
    font-family: var(--font-mono);
    font-size: .85rem;
    color: #9a9a9a;
    background: #141414;
    border: 1px dashed #2a2a2a;
    padding: 10px 14px;
    border-radius: 10px;
    word-break: break-all;
}

/* Player */
.tp-player {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 16px;
    background: #141414;
    border: 1px solid #262626;
    border-radius: 14px;
}
.tp-playbtn {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: #0d0820;
    display: grid; place-items: center;
    cursor: pointer; font-size: 15px;
    transition: transform .15s, box-shadow .15s;
}
.tp-playbtn:hover { transform: scale(1.05); box-shadow: 0 8px 24px -8px rgba(168,85,247,.6); }
.tp-playbtn:active { transform: scale(.96); }
.tp-time {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--text-dim);
    flex-shrink: 0;
    min-width: 90px;
}
.tp-seek {
    position: relative;
    flex: 1; height: 6px;
    background: rgba(255,255,255,.06);
    border-radius: 999px;
    cursor: pointer;
    overflow: hidden;
}
.tp-seek__fill {
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 0;
    background: var(--gradient-brand);
    transition: width .08s linear;
}

/* Controls (pitch & tempo) */
.tp-control {
    display: flex; flex-direction: column; gap: 10px;
    padding: 18px 18px 22px;
    background: #141414;
    border: 1px solid #262626;
    border-radius: 14px;
}
.tp-control__head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; font-size: .88rem;
}
.tp-control__lo, .tp-control__hi { color: var(--text-muted); font-size: .82rem; }
.tp-control__title {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 600;
}
.tp-control__title .tp-val {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--violet-hi);
    margin: 0 2px;
    min-width: 36px;
    display: inline-block;
    text-align: center;
}

/* Range slider (pitch & tempo) */
.tp-control input[type="range"] {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 26px;
    background: transparent;
    cursor: pointer;
    --tp-fill: 50%;
}
.tp-control input[type="range"]::-webkit-slider-runnable-track {
    height: 6px; border-radius: 999px;
    background: linear-gradient(to right,
        var(--violet-hi) 0%, var(--violet-hi) var(--tp-fill),
        rgba(255,255,255,.08) var(--tp-fill), rgba(255,255,255,.08) 100%);
}
.tp-control input[type="range"]::-moz-range-track {
    height: 6px; border-radius: 999px;
    background: rgba(255,255,255,.08);
}
.tp-control input[type="range"]::-moz-range-progress {
    height: 6px; border-radius: 999px;
    background: var(--violet-hi);
}
.tp-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--violet-hi);
    box-shadow: 0 4px 10px -2px rgba(168,85,247,.6);
    margin-top: -6px;
    cursor: grab;
    transition: transform .15s;
}
.tp-control input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.tp-control input[type="range"]::-moz-range-thumb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--violet-hi);
    cursor: grab;
}

/* Presets */
.tp-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.tp-preset {
    padding: 5px 12px;
    border-radius: 999px;
    background: #1d1d1d;
    border: 1px solid #2f2f2f;
    color: #b4b4b4;
    font-family: var(--font-mono);
    font-size: .78rem;
    cursor: pointer;
    transition: all .15s;
}
.tp-preset:hover {
    border-color: rgba(168,85,247,.5);
    color: var(--violet-hi);
    background: rgba(168,85,247,.08);
}

/* Checkbox link-pitch-tempo */
.tp-checkbox {
    display: inline-flex; align-items: center; gap: 10px;
    cursor: pointer;
    padding: 6px 0;
    color: var(--text-dim);
    font-size: .92rem;
    user-select: none;
}
.tp-checkbox input {
    width: 18px; height: 18px;
    accent-color: var(--violet-hi);
    cursor: pointer;
}

/* Rows */
.tp-row {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 6px 0;
}
.tp-row__label {
    display: inline-flex; align-items: center; gap: 8px;
    min-width: 170px;
    font-size: .9rem;
    color: var(--text-dim);
}
.tp-input-num {
    width: 70px;
    padding: 7px 10px;
    background: #1a1a1a;
    border: 1px solid #2f2f2f;
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font-mono);
    text-align: center;
}
.tp-input-num:focus {
    outline: none;
    border-color: var(--violet-hi);
    background: rgba(168,85,247,.08);
}

/* Segmented control */
.tp-seg {
    display: inline-flex;
    background: #1a1a1a;
    border: 1px solid #2f2f2f;
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}
.tp-seg__btn {
    padding: 7px 16px;
    border-radius: 7px;
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--text-dim);
    cursor: pointer;
    transition: all .15s;
    letter-spacing: .04em;
}
.tp-seg__btn:hover { color: var(--text); }
.tp-seg__btn.is-active {
    background: var(--gradient-brand);
    color: #0d0820;
    font-weight: 700;
}

/* Actions */
.tp-actions {
    display: flex; gap: 12px; flex-wrap: wrap;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid #262626;
}
.tp-actions .btn { flex: 1 1 auto; min-width: 180px; justify-content: center; }

/* Progress */
.tp-progress {
    display: flex; flex-direction: column; gap: 8px;
    padding: 14px 16px;
    background: #1a1a1a;
    border: 1px solid #2f2f2f;
    border-radius: 12px;
}
.tp-progress__head {
    display: flex; justify-content: space-between;
    font-size: .88rem; color: var(--violet-hi);
    font-family: var(--font-mono);
}
.tp-progress__bar {
    height: 4px; background: rgba(255,255,255,.08);
    border-radius: 999px; overflow: hidden;
}
.tp-progress__fill {
    height: 100%; width: 0;
    background: var(--gradient-brand);
    transition: width .25s;
}

@media (max-width: 640px) {
    .tp-control__lo, .tp-control__hi { display: none; }
    .tp-control__head { justify-content: center; }
    .tp-row__label { min-width: 0; flex: 1 1 100%; }
    .tp-actions .btn { min-width: 0; width: 100%; }
    .tp-player { gap: 10px; padding: 10px 12px; }
    .tp-time { min-width: 74px; font-size: .78rem; }
}

.empty-state { text-align: center; padding: 80px 20px; color: var(--text-dim); }
.empty-state__icon {
    width: 80px; height: 80px; margin: 0 auto 20px;
    border-radius: 20px;
    background: var(--gradient-brand-soft);
    display: grid; place-items: center;
    color: var(--violet-hi); font-size: 30px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    margin-top: 80px;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(168,85,247,.14);
    background: var(--bg-1);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
@media (max-width: 800px) {
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .site-footer__about { grid-column: 1 / -1; }
}
.site-footer__about { color: var(--text-dim); font-size: .92rem; max-width: 380px; }
.site-footer__about .brand { margin-bottom: 14px; }
.site-footer__legal {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255,255,255,.08);
    display: flex; flex-direction: column; gap: 4px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: .76rem;
    line-height: 1.5;
    letter-spacing: .01em;
}
.site-footer__legal span { color: var(--text-dim); margin-right: 4px; }
.footer-col h4 {
    font-family: var(--font-mono);
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
    font-weight: 600;
}
.footer-col a {
    display: block;
    color: var(--text-dim);
    padding: 6px 0;
    font-size: .92rem;
    transition: color .15s;
}
.footer-col a:hover { color: var(--text); }
.site-footer__bottom {
    border-top: 1px solid var(--surface-line);
    padding-top: 24px;
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    color: var(--text-muted); font-size: .85rem;
}
.site-footer__pay { display: inline-flex; align-items: center; gap: 10px; }
.site-footer__pay .pay-chip {
    padding: 4px 10px; border-radius: 6px;
    background: rgba(255,255,255,.04); border: 1px solid var(--surface-line);
    font-family: var(--font-mono); font-size: .75rem;
}

/* ============================================================
   GLOBAL MOBILE POLISH
   ============================================================ */
@media (max-width: 640px) {
    .container,
    .container-wide { padding: 0 14px; }

    .hero { padding: 36px 0 32px; }
    .hero__badge { font-size: .78rem; padding: 6px 12px; margin-bottom: 18px; }
    .hero__title { margin-bottom: 18px; }
    .hero__sub { font-size: .98rem; margin-bottom: 10px; }
    .hero__sub--secondary { font-size: .9rem; margin-bottom: 22px; }
    .hero__actions { gap: 10px; margin-bottom: 16px; }
    .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
    .hero__notes { flex-direction: column; align-items: flex-start; gap: 8px; }

    section { padding: 48px 0 !important; }
    .section-head { margin-bottom: 24px; }
    .section-head h2,
    h2 { font-size: clamp(1.25rem, 5vw, 1.6rem); }

    .features,
    .examples,
    .steps,
    .pricing-grid { gap: 14px; }

    .card, .pricing-card, .feature, .example-card, .step { padding: 18px; }

    .mt-player { padding: 16px; }
    .mt-player__head { flex-direction: column; align-items: flex-start; gap: 6px; }
    .mt-main { flex-direction: row; align-items: center; gap: 12px; }
    .mt-main__play { width: 44px; height: 44px; font-size: 16px; }

    .mt-actions { flex-direction: column; align-items: stretch; }
    .mt-actions .btn-dl { justify-content: center; width: 100%; }
    .mt-actions select { width: 100%; }

    .dropzone { padding: 28px 18px; }
    .dropzone__icon { width: 56px; height: 56px; font-size: 22px; }

    .mode-switch { gap: 8px; }

    .site-footer { padding: 40px 0 24px; }
    .site-footer__grid { gap: 20px; margin-bottom: 24px; }
    .site-footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

    .modal__content { padding: 20px; border-radius: 14px; }
    .modal--wide .modal__content { max-width: calc(100vw - 20px); }

    .history-item { flex-direction: column; align-items: stretch; gap: 12px; }
    .history-item__meta { width: 100%; }
}

@media (max-width: 400px) {
    .brand { font-size: 1.1rem; }
    .brand__logo { width: 32px; height: 32px; font-size: 16px; }
    .user-menu__btn { width: 38px; height: 38px; }
}
