:root {
    --accent: #D63384;
    --accent-hover: #C12A74;
    --bg-body: #fcf7f9;
    --bg-sidebar: #ffffff;
    --bg-main: #f9f4f6;
    --card-bg: #ffffff;
    --border-light: #f0dce4;
    --text-primary: #2D3748;
    --text-secondary: #5A5A5A;
    --input-bg: #ffffff;
    --input-border: #e8c1d0;
    --scrollbar-track: #f5e6ec;
    --dropdown-bg: #ffffff;
    --popup-border: #f0d0dc;
    --shadow-heavy: rgba(214, 51, 132, 0.12);
    --shadow-glow: rgba(214, 51, 132, 0.2);
    --hero-left-h1: #2D3748;
    --hero-left-p: #5A5A5A;
    --feature-pill-bg: #fff0f5;
    --feature-pill-border: #f5c6d7;
    --cap-card-bg: #ffffff;
    --cap-card-border: #f0d0dc;
    --step-bg: #ffffff;
    --scenario-tag-bg: #fce4ec;
    --scenario-tag-border: #f8c9d8;
    --live-section-bg: #ffffff;
    --author-card-bg: #ffffff;
    --author-card-border: #f0d0dc;
    --author-hit-bg: #fdf2f5;
    --footer-border: #f0d0dc;
    --logo-color: #2D3748;
    --nav-item-color: #5A5A5A;
    --nav-item-hover-bg: #ffecf1;
    --nav-item-active-bg: rgba(214, 51, 132, 0.08);
    --user-card-bg: #ffffff;
    --avatar-bg: linear-gradient(145deg, #fce4ec, #ffffff);
    --avatar-border: #f0c0d0;
    --dropdown-item-hover: #fce4ec;
    --showcase-card-bg: #ffffff;
    --showcase-border: #f0d0dc;
    --track-row-bg: #ffffff;
    --track-row-border: #f0d0dc;
    --track-title-link: #2D3748;
    --track-artist-link: #5A5A5A;
    --track-meta-color: #888;
    --play-btn-bg: rgba(214,51,132,0.15);
    --play-btn-border: rgba(214,51,132,0.3);
    --play-btn-color: #D63384;
    --track-arrow-bg: #fce4ec;
    --track-arrow-border: #f0c8d8;
    --search-bg: #ffffff;
    --search-border: #f0c0d0;
    --search-results-bg: #ffffff;
    --search-section-title: #888;
    --search-item-hover: #fce4ec;
    --search-footer-border: #f0d0dc;
    --notif-popup-bg: #ffffff;
    --notif-item-border: #f0d0dc;
    --notif-unread-bg: rgba(214,51,132,0.06);
    --balance-bg: #fce4ec;
    --balance-border: #f0c0d0;
    --avatar-dropdown-bg: #ffffff;
    --btn-accent-text: white;
}

body.dark-theme {
    --accent: #D63384;
    --accent-hover: #E91E63;
    --bg-body: #0b0b0b;
    --bg-sidebar: #0f0f10;
    --bg-main: #121214;
    --card-bg: #1c1c1f;
    --border-light: #2a2a2e;
    --text-primary: #e0e0e0;
    --text-secondary: #9a9a9f;
    --input-bg: #1e1e23;
    --input-border: #33333a;
    --scrollbar-track: #1a1a1f;
    --dropdown-bg: #1e1e24;
    --popup-border: #333;
    --shadow-heavy: rgba(0,0,0,0.7);
    --shadow-glow: rgba(214,51,132,0.25);
    --hero-left-h1: white;
    --hero-left-p: #b0b0b8;
    --feature-pill-bg: #1e1e24;
    --feature-pill-border: #2e2e36;
    --cap-card-bg: #18181e;
    --cap-card-border: #2c2c34;
    --step-bg: #18181f;
    --scenario-tag-bg: #23232a;
    --scenario-tag-border: #3b3b44;
    --live-section-bg: #16161b;
    --author-card-bg: #1f1f26;
    --author-card-border: #2e2e36;
    --author-hit-bg: #18181e;
    --footer-border: #2e2e36;
    --logo-color: white;
    --nav-item-color: #b0b0b5;
    --nav-item-hover-bg: #25252a;
    --nav-item-active-bg: rgba(214,51,132,0.15);
    --user-card-bg: #1a1a1f;
    --avatar-bg: linear-gradient(145deg, #2a2a30, #1e1e24);
    --avatar-border: #3a3a40;
    --dropdown-item-hover: #2a2a32;
    --showcase-card-bg: #101017;
    --showcase-border: rgba(255,255,255,0.1);
    --track-row-bg: rgba(0,0,0,0.5);
    --track-row-border: rgba(255,255,255,0.1);
    --track-title-link: white;
    --track-artist-link: #9ca3af;
    --track-meta-color: #9ca3af;
    --play-btn-bg: rgba(214,51,132,0.3);
    --play-btn-border: rgba(214,51,132,0.5);
    --play-btn-color: white;
    --track-arrow-bg: rgba(255,255,255,0.05);
    --track-arrow-border: rgba(255,255,255,0.1);
    --search-bg: #1e1e23;
    --search-border: #33333a;
    --search-results-bg: #1e1e24;
    --search-section-title: #aaa;
    --search-item-hover: #2a2a32;
    --search-footer-border: #333;
    --notif-popup-bg: #1e1e24;
    --notif-item-border: #2a2a30;
    --notif-unread-bg: rgba(214,51,132,0.1);
    --balance-bg: #1c1c22;
    --balance-border: #333;
    --avatar-dropdown-bg: #1e1e24;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Inter", sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.2s, color 0.2s;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); border-radius: 10px; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }
* { scrollbar-width: thin; scrollbar-color: var(--accent) var(--scrollbar-track); }

.app { display: flex; min-height: 100vh; position: relative; }

.main {
    flex: 1;
    background: var(--bg-main);
    padding: 28px 36px;
    overflow-y: auto;
}

.btn-accent {
    background: var(--accent);
    color: white;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 40px;
    border: none;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 6px 14px var(--shadow-glow);
    transition: 0.2s;
}
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent-outline {
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-accent-outline:hover { background: var(--accent); color: white; }

.hero-grid { display: flex; gap: 32px; margin-bottom: 48px; align-items: stretch; }
.hero-left { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero-left h1 {
    font-size: 38px;
    font-weight: 700;
    color: var(--hero-left-h1);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.hero-left h1 .accent-text { color: var(--accent); }
.hero-left p { font-size: 18px; color: var(--hero-left-p); margin-bottom: 28px; }
.hero-buttons { display: flex; gap: 16px; }
.hero-right { flex: 1; min-width: 0; }

.generator-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 30px;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 30px var(--shadow-heavy);
}
.form-group { margin-bottom: 20px; }
.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}
.prompt-input {
    width: 100%;
    min-height: 130px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 16px;
    padding: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s;
    font-family: inherit;
}
.prompt-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--shadow-glow);
}
.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.char-counter { font-weight: 600; }
.char-counter.warning { color: #e53e3e; }

.slider-container { margin-top: 8px; }
.slider-wrapper { display: flex; align-items: center; gap: 15px; }
.length-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    border-radius: 5px;
    background: var(--input-border);
    outline: none;
}
.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}
.length-value { font-weight: 600; color: var(--accent); min-width: 80px; text-align: center; }
.generate-btn {
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    transition: 0.3s;
    box-shadow: 0 8px 25px var(--shadow-glow);
}
.generate-btn:hover { background: var(--accent-hover); }

.cta-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    color: var(--text-secondary);
}
.cta-feature { display: flex; align-items: center; gap: 8px; }

/* Категории */
.categories-section {
    background: var(--live-section-bg);
    border-radius: 32px;
    padding: 28px;
    margin: 40px 0;
}
.categories-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.quick-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 25px;
    padding: 15px;
    background: var(--feature-pill-bg);
    border-radius: 12px;
    border: 1px solid var(--feature-pill-border);
}
.quick-nav-btn {
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 36px;
    text-align: center;
}
.quick-nav-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.category-groups {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.category-group {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
}
.category-group:hover {
    border-color: var(--accent);
}
.group-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}
.group-letter {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    margin-right: 12px;
}
.group-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 6px;
}
.category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background: var(--input-bg);
    border: 2px solid var(--input-border);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}
.category-item:hover {
    border-color: var(--accent);
    background: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-glow);
}

.benefits-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.benefit-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 28px;
    border: 1px solid var(--border-light);
    text-align: center;
}
.benefit-icon {
    width: 60px; height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.5rem;
}
.benefit-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.benefit-description { color: var(--text-secondary); font-size: 0.95rem; }

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 40px 0;
}
.stat-card {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--border-light);
}
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; }

.footer {
    border-top: 1px solid var(--footer-border);
    margin-top: 40px;
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 1001px) {
    .main { padding: 24px 20px; }
    .hero-grid { flex-direction: column; }
    .benefits-section { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .app { flex-direction: column; }
    .main { padding: 16px; width: 100%; }
    .hero-left h1 { font-size: 28px; }
    .hero-left p { font-size: 16px; }
    .benefits-section { grid-template-columns: 1fr; }
    .stats-section { grid-template-columns: repeat(2, 1fr); }
    .footer { flex-direction: column; }
    .categories-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}

.footer {
    text-align: center;
    padding: 24px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-light);
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.footer a:hover {
    opacity: 0.8;
    text-decoration: underline;
}