/* ===== Reset / base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    background: linear-gradient(180deg, #0a0a14 0%, #14141f 100%);
    color: #e8e8f0;
    min-height: 100vh;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
}

a { color: #8a9aff; text-decoration: none; }
a:hover { color: #b8c5ff; }

/* ===== Topbar ===== */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(20, 20, 35, 0.7);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .brand {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}
.topbar nav { display: flex; gap: 1rem; align-items: center; }
.topbar nav a { font-weight: 500; }
.link-btn {
    background: none;
    border: none;
    color: #8a9aff;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}
.link-btn:hover { color: #b8c5ff; }

/* Language toggle в navbar */
.lang-form { display: inline; margin: 0; }
.lang-toggle {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #b0b0c0;
    cursor: pointer;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s ease, color 0.15s ease;
}
.lang-toggle:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.cta-sm {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff !important;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-weight: 600;
}

/* ===== Main / footer ===== */
main { flex: 1; padding: 2rem 1.5rem; max-width: 980px; margin: 0 auto; width: 100%; }

footer {
    background: rgba(0,0,0,0.4);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem 1rem;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.7rem;
}
.footer-content:last-child { margin-bottom: 0; }
.footer-links a { color: #b0b0c0; }
.footer-links a:hover { color: #fff; }
.footer-sep { color: #555; }
.footer-copy {
    font-size: 0.78rem;
    color: #666;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 0.8rem;
    margin-top: 0.5rem;
}

/* Cookie-баннер */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 30, 0.97);
    backdrop-filter: blur(10px);
    border-top: 2px solid rgba(139, 92, 246, 0.5);
    padding: 1rem 1.5rem;
    z-index: 200;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
}
.cookie-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-text {
    flex: 1;
    min-width: 250px;
    font-size: 0.92rem;
    color: #d1d5db;
    line-height: 1.5;
}
.cookie-text a { color: #c4b5fd; text-decoration: underline; }
.cookie-text a:hover { color: #fff; }
.cookie-text b { color: #fff; }

/* Юридические документы */
.legal-doc {
    max-width: 760px;
    margin: 1rem auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 2rem 2.2rem;
}
.legal-doc h1 { margin-top: 0; }
.legal-doc h2 {
    margin-top: 2rem;
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
    color: #c4b5fd;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0.3rem;
}
.legal-doc p, .legal-doc ul, .legal-doc ol {
    color: #d1d5db;
    line-height: 1.65;
}
.legal-doc ul, .legal-doc ol { margin-left: 1.3rem; padding-left: 0.5rem; }
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc code {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
}
.legal-doc a { color: #8a9aff; }
.legal-doc a:hover { color: #b8c5ff; }

/* ===== Hero ===== */
.hero { text-align: center; padding: 1rem 0 3rem; }
.hero h1 {
    font-size: 2.3rem;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle { font-size: 1.1rem; color: #b0b0c0; max-width: 600px; margin: 0 auto 2rem; }

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-promo-hint {
    display: inline-block;
    margin: 0 auto 2rem;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
}
.hero-promo-hint b { color: #fff; }

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5); color: #fff; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: #e8e8f0;
    border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Стрим-CTA кнопка */
.btn-stream {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-stream:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(236, 72, 153, 0.45);
    color: #fff !important;
}

/* Стрим-секция на главной */
.stream-section {
    margin: 3rem auto 2rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(236, 72, 153, 0.06));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    max-width: 900px;
}
.stream-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #ec4899);
    color: #fff;
    padding: 0.3rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.stream-section h2 {
    margin: 0 0 0.7rem;
    font-size: 1.7rem;
    background: linear-gradient(135deg, #fbbf24, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stream-sub {
    color: #d1d5db;
    max-width: 620px;
    margin: 0 auto 2rem;
    font-size: 1.02rem;
    line-height: 1.55;
}
.stream-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}
.stream-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1.2rem;
    text-align: left;
}
.stream-card-mid {
    border-color: rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(0,0,0,0.3));
}
.stream-card-vip {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(236,72,153,0.1));
}
.stream-card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.5rem; color: #fff; }
.stream-card-price {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fbbf24;
}
.stream-card-desc { color: #b0b0c0; font-size: 0.85rem; }

/* Стрим-баннер на /generate */
.stream-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(236, 72, 153, 0.08));
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}
.stream-banner-icon { font-size: 1.8rem; flex-shrink: 0; }
.stream-banner small { color: #b0b0c0; }

/* ===== Features grid ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 3rem 0;
}
.feature {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: left;
}
.feature .ico { font-size: 2rem; margin-bottom: 0.5rem; }
.feature h3 { margin: 0 0 0.4rem; font-size: 1.1rem; }
.feature p { color: #b0b0c0; margin: 0; font-size: 0.95rem; }

/* ===== Pricing ===== */
.pricing-info { margin-top: 3rem; }
.pricing-info h2 { margin-bottom: 1.5rem; }
.prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.price-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1.5rem;
}
.price-card h3 { margin: 0 0 0.5rem; color: #b0b0c0; font-size: 0.95rem; font-weight: 500; }
.price-card .amount { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.3rem; }
.price-card p { color: #888; font-size: 0.85rem; margin: 0; }

/* ===== Auth cards ===== */
.auth-card {
    max-width: 420px;
    margin: 2rem auto;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
}
.auth-card h1 { margin-top: 0; text-align: center; }
.auth-card form { display: flex; flex-direction: column; gap: 1rem; }
.auth-card label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #b0b0c0;
}
.auth-card input, .auth-card textarea, .auth-card select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 1rem;
}
.auth-card input:focus, .auth-card textarea:focus, .auth-card select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}
.auth-card .hint { color: #777; font-size: 0.85rem; }
.auth-card .btn-primary { margin-top: 0.5rem; }
.auth-switch { text-align: center; margin-top: 1.5rem; color: #888; font-size: 0.95rem; }

/* ===== Alerts ===== */
.alert {
    padding: 0.85rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* ===== Generate page ===== */
.generate-container {
    max-width: 720px;
    margin: 1rem auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
}
.generate-container h1 { margin-top: 0; text-align: center; }
.generate-container form { display: flex; flex-direction: column; gap: 1rem; }
.generate-container label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #b0b0c0;
}
.generate-container input,
.generate-container textarea,
.generate-container select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
}
.generate-container input:focus,
.generate-container textarea:focus,
.generate-container select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

/* Loader */
.loader { text-align: center; padding: 3rem 1rem; }
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Lyrics output */
#lyrics-text {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 1.5rem;
    white-space: pre-wrap;
    font-family: inherit;
    line-height: 1.7;
    color: #e8e8f0;
    max-height: 500px;
    overflow-y: auto;
}
.action-row {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hint { color: #888; font-size: 0.85rem; }

/* Табы выбора категории: Жанры / Мероприятия */
.category-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.3rem;
}
.cat-tab {
    background: transparent;
    color: #b0b0c0;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}
.cat-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.cat-tab.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-weight: 600;
}

/* Галочка «Без слов / инструментал» */
.instr-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.7rem;
    background: rgba(20, 184, 166, 0.07);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: 10px;
    padding: 0.7rem 1rem !important;
    cursor: pointer;
    flex-direction: row !important;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.instr-toggle:hover {
    background: rgba(20, 184, 166, 0.12);
    border-color: rgba(20, 184, 166, 0.4);
}
.instr-toggle input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: #14b8a6;
    flex-shrink: 0;
}
.instr-toggle-text {
    color: #a7f3d0;
    font-size: 0.93rem;
    line-height: 1.4;
}
.instr-toggle-text b { color: #fff; }

/* «Сообщение стримеру» для стрим-сценария */
.viewer-msg-input {
    margin: 0.7rem 0 0.5rem;
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
}
.viewer-msg-input label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #fbbf24;
}
.viewer-msg-input small { color: #b0b0c0; font-size: 0.78rem; font-weight: normal; }
.viewer-msg-input small.dim { color: #888; font-size: 0.72rem; line-height: 1.4; }
.viewer-msg-input textarea {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fff;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 50px;
}

/* «Имя в эфире» — для стрим-сценария */
.requester-input {
    margin: 1rem 0 0.5rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
}
.requester-input label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: #c4b5fd;
}
.requester-input small { color: #8a8a9a; font-size: 0.75rem; }
.requester-input input {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #fff;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    font-size: 1rem;
}

/* Свернутый блок «У меня есть промо-код» */
.promo-card {
    margin: 1rem 0 0;
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 0.7rem 1rem;
}
.promo-card summary {
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fbbf24;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.promo-card summary::after {
    content: "▾";
    margin-left: auto;
    transition: transform 0.2s ease;
    color: #fbbf24;
}
.promo-card[open] summary::after { transform: rotate(180deg); }
.promo-card[open] summary { margin-bottom: 0.6rem; }
.promo-card-hint { color: #b0b0c0; font-size: 0.82rem; margin: 0 0 0.5rem; }
.promo-card input {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fff;
    padding: 0.55rem 0.9rem;
    border-radius: 6px;
    font-family: monospace;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

/* 3 кнопки оплаты на странице /generate */
.pay-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.pay-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    padding: 1.2rem;
    text-align: left;
    cursor: pointer;
    color: #e8e8f0;
    font-family: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.pay-card:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}
.pay-card:disabled { opacity: 0.6; cursor: wait; }
.pay-card.loading { opacity: 0.6; cursor: wait; }
.pay-card-vip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(245, 158, 11, 0.3);
}
.pay-card-vip:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(236, 72, 153, 0.18));
    border-color: #f59e0b;
}
.pay-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.pay-price { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.4rem; color: #fff; }
.pay-desc { font-size: 0.85rem; color: #b0b0c0; }

/* === Мои работы — табы === */
.works-tabs {
    display: flex;
    gap: 0.4rem;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 0;
}
.works-tab {
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    color: #b0b0c0;
    padding: 0.6rem 1rem;
    border-radius: 10px 10px 0 0;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.works-tab:hover { color: #fff; background: rgba(255,255,255,0.04); }
.works-tab.active {
    color: #fff;
    background: rgba(168,85,247,0.12);
    border-color: rgba(168,85,247,0.3);
    border-bottom-color: transparent;
}
.works-tab-count {
    background: rgba(255,255,255,0.1);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}
.works-tab.active .works-tab-count {
    background: rgba(168,85,247,0.3);
    color: #fff;
}

.image-tile {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.image-tile a { display: block; line-height: 0; }
.image-tile img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: opacity 0.15s;
}
.image-tile:hover img { opacity: 0.85; }
.image-tile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    color: #909090;
}
.image-tile-error img { display: none; }

/* === AI-СТУДИЯ === */
.nav-studio {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}
.nav-credits {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.35);
    padding: 0.25rem 0.65rem !important;
    border-radius: 999px;
    font-weight: 600;
    color: #c4b5fd !important;
}
.nav-credits:hover { background: rgba(99, 102, 241, 0.25); }

.studio-home, .studio-topup, .studio-billing, .studio-chat-page,
.studio-image-page, .studio-templates-page, .studio-template-page {
    max-width: 1100px;
    margin: 1rem auto;
    padding: 0 1rem;
}
.studio-hero {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(168,85,247,0.08), rgba(99,102,241,0.05));
    border: 1px solid rgba(168,85,247,0.15);
    border-radius: 18px;
    margin-bottom: 2rem;
}
.studio-hero h1 { margin: 0 0 0.5rem; font-size: 2rem; }
.studio-hero .subtitle { color: #b0b0c0; max-width: 640px; margin: 0 auto 1rem; }

.balance-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    flex-wrap: wrap;
    justify-content: center;
}
.balance-label { color: #b0b0c0; font-size: 0.9rem; }
.balance-value { font-weight: 700; color: #fbbf24; font-size: 1.1rem; }

.studio-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.studio-card {
    display: block;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.4rem 1.2rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, border-color 0.15s;
}
.studio-card:hover { transform: translateY(-4px); border-color: rgba(168,85,247,0.4); }
.studio-card-emoji { font-size: 2.5rem; margin-bottom: 0.6rem; }
.studio-card-title {
    font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.studio-card-badge {
    background: #f59e0b; color: #0f0f17; font-size: 0.7rem;
    padding: 0.1rem 0.5rem; border-radius: 999px;
}
.studio-card-soon { opacity: 0.7; }
.studio-card-hot {
    border-color: rgba(245,158,11,0.4);
    background: linear-gradient(135deg, rgba(245,158,11,0.06), rgba(168,85,247,0.04));
}
.studio-card-desc { color: #b0b0c0; margin-bottom: 1rem; line-height: 1.4; }
.studio-card-meta {
    display: flex; justify-content: space-between;
    font-size: 0.85rem; color: #909090;
}
.studio-card-price { color: #fbbf24; font-weight: 600; }

.studio-info {
    margin-top: 2.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.5rem;
}
.studio-info h2, .studio-info h3 { margin-top: 0; }
.studio-steps { line-height: 1.8; padding-left: 1.2rem; }

.topup-packs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.topup-pack {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
}
.topup-pack-hot {
    border-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(168,85,247,0.05));
}
.topup-pack-badge {
    position: absolute; top: -10px; right: 12px;
    background: #f59e0b; color: #0f0f17;
    font-size: 0.7rem; padding: 0.2rem 0.6rem;
    border-radius: 999px; font-weight: 700;
}
.topup-pack-title { font-size: 0.9rem; color: #b0b0c0; margin-bottom: 0.5rem; }
.topup-pack-credits { font-size: 1.5rem; font-weight: 700; color: #fbbf24; }
.topup-pack-bonus { font-size: 0.85rem; color: #c4b5fd; margin: 0.3rem 0 0.8rem; }
.topup-pack-price { font-size: 1.1rem; margin-bottom: 1rem; }
.topup-pack .btn-primary { width: 100%; }

.topup-examples { line-height: 1.9; list-style: none; padding: 0; }

.billing-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    overflow: hidden;
}
.billing-table th, .billing-table td {
    padding: 0.7rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.billing-table th { color: #b0b0c0; font-size: 0.85rem; }
.billing-delta { font-weight: 600; }
.billing-plus { color: #4ade80; }
.billing-minus { color: #fb7185; }

/* Чат и форма image-генерации */
.studio-toolbar {
    display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.model-select {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    font-size: 0.95rem;
}
.cost-pill {
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.35);
    color: #fbbf24;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.chat-pane {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1rem;
    min-height: 420px;
    max-height: 60vh;
    overflow-y: auto;
}
.chat-msg { margin-bottom: 0.9rem; }
.chat-msg-role {
    font-size: 0.75rem; color: #909090; margin-bottom: 0.2rem;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.chat-msg-body {
    white-space: pre-wrap;
    background: rgba(255,255,255,0.04);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    line-height: 1.5;
}
.chat-msg-user .chat-msg-body { background: rgba(99,102,241,0.15); }
.chat-msg-assistant .chat-msg-body { background: rgba(168,85,247,0.10); }
.chat-input-row { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.chat-input {
    flex: 1;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    min-height: 60px;
    resize: vertical;
    line-height: 1.45;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.chat-input:focus {
    outline: none;
    border-color: rgba(168,85,247,0.55);
    background: rgba(0,0,0,0.55);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.chat-input::placeholder { color: #6b6b80; }

.model-select:focus {
    outline: none;
    border-color: rgba(168,85,247,0.55);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}

/* Image generator + любые формы внутри студии */
.image-form {
    display: grid;
    gap: 1.1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.4rem;
}
.image-form label {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: #c4b5fd;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.image-form input[type="text"],
.image-form input[type="number"],
.image-form input[type="file"],
.image-form textarea,
.image-form select {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 0.75rem 0.95rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    width: 100%;
    box-sizing: border-box;
}
.image-form textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}
.image-form input[type="text"]:focus,
.image-form input[type="number"]:focus,
.image-form textarea:focus,
.image-form select:focus {
    outline: none;
    border-color: rgba(168,85,247,0.55);
    background: rgba(0,0,0,0.5);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.image-form input[type="file"] {
    padding: 0.5rem;
    cursor: pointer;
}
.image-form input::placeholder,
.image-form textarea::placeholder {
    color: #6b6b80;
}
.image-form .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}
@media (max-width: 540px) {
    .image-form .form-row-2 { grid-template-columns: 1fr; }
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}
.image-grid img {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* === DJ-пульт стрима === */
.dj-console { max-width: 900px; margin: 1rem auto; padding: 0 1rem; }
.dj-now {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 18px;
    padding: 1.8rem;
    margin-bottom: 2rem;
}
.dj-empty { text-align: center; color: #b0b0c0; padding: 1.5rem 0; }
.dj-empty .empty-icon { font-size: 3rem; }
.dj-now-label {
    color: #c4b5fd;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}
.dj-now-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0.3rem 0 0.5rem;
}
.dj-now-meta {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
    color: #b0b0c0;
    margin-bottom: 0.8rem;
}
.dj-now-msg {
    background: rgba(245,158,11,0.10);
    border-left: 3px solid #f59e0b;
    padding: 0.6rem 0.9rem;
    border-radius: 6px;
    color: #fbbf24;
    font-style: italic;
    margin-top: 0.6rem;
}
.dj-controls {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1.3rem;
}

.dj-upcoming { margin-bottom: 2rem; }
.queue-list { list-style: none; padding: 0; margin: 0; }
.queue-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.8rem 1.1rem;
    margin-bottom: 0.5rem;
}
.queue-vip { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.06); }
.queue-item-name { font-weight: 700; }
.queue-item-title { color: #b0b0c0; font-size: 0.9rem; margin-top: 0.15rem; }
.queue-item-msg { color: #fbbf24; font-size: 0.85rem; margin-top: 0.3rem; font-style: italic; }

.dj-tips {
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
}
.dj-tips ol { line-height: 1.8; }

/* === AI-сказка: верхний промо-бар === */
.promo-bar {
    background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(168,85,247,0.05));
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: 14px;
    padding: 1rem 1.3rem;
    margin-bottom: 1.5rem;
}
.promo-bar label { color: #fbbf24; font-weight: 600; font-size: 0.95rem; }
.promo-bar-row {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}
.promo-bar input[type="text"] {
    flex: 1;
    min-width: 200px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(245,158,11,0.3);
    color: #fff;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.promo-bar input[type="text"]:focus {
    outline: none;
    border-color: rgba(245,158,11,0.7);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}
.promo-result { margin-top: 0.6rem; }
.promo-result .alert { margin-bottom: 0; }

.tier-card.locked {
    opacity: 0.5;
    cursor: not-allowed;
}
.tier-card.locked.selected {
    opacity: 1;
    cursor: default;
    border-color: rgba(245,158,11,0.85);
    box-shadow: 0 0 0 4px rgba(245,158,11,0.12);
}

/* === AI-сказка: блок доплат-апсейлов === */
.addons-bar {
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin: -0.7rem 0 1rem;
}
.addons-title {
    font-size: 0.9rem;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.addons-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.addon-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(245,158,11,0.25);
    color: #fbbf24;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.12s, border-color 0.12s;
}
.addon-chip:hover { background: rgba(245,158,11,0.1); }
.addon-chip:has(input:checked) {
    background: rgba(245,158,11,0.2);
    border-color: rgba(245,158,11,0.7);
    color: #fff;
}
.addon-chip input[type=checkbox] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: #f59e0b;
}

/* === AI-сказка: главный герой (ребёнок) === */
.child-hero-card {
    background: linear-gradient(135deg, rgba(168,85,247,0.10), rgba(99,102,241,0.06));
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 16px;
    padding: 1.3rem;
    margin-bottom: 0.5rem;
}
.child-hero-head h3 { margin: 0; font-size: 1.15rem; }
.child-hero-grid {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.2rem;
    align-items: center;
    margin-top: 1rem;
}
/* Когда фото скрыто тарифом — раскрываем поля на всю ширину */
.child-hero-grid.no-photo { grid-template-columns: 1fr; }
.child-photo-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.child-avatar {
    width: 90px;
    height: 90px;
    border: 2px dashed rgba(168,85,247,0.55);
}
.child-fields {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}
.age-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.child-age-input {
    width: 80px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
}
.age-label {
    color: #c4b5fd;
    font-weight: 600;
}
@media (max-width: 500px) {
    .child-hero-grid {
        grid-template-columns: 80px 1fr;
        gap: 0.8rem;
    }
    .child-hero-grid.no-photo { grid-template-columns: 1fr; }
    .child-avatar { width: 72px; height: 72px; }
}

/* === AI-сказка: карточки тарифов === */
.tier-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}
.tier-card {
    background: rgba(255,255,255,0.04);
    border: 2px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1.3rem 1.1rem;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
}
.tier-card:hover { transform: translateY(-2px); border-color: rgba(168,85,247,0.4); }
.tier-card.selected {
    border-color: rgba(168,85,247,0.85);
    background: rgba(168,85,247,0.08);
    box-shadow: 0 0 0 4px rgba(168,85,247,0.1);
}
.tier-emoji { font-size: 2.2rem; margin-bottom: 0.3rem; }
.tier-label {
    font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem;
}
.tier-price {
    font-size: 1.7rem; font-weight: 800;
    color: #fbbf24;
    margin-bottom: 0.6rem;
}
.tier-desc {
    color: #b0b0c0;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    flex-grow: 1;
}
.tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #c4b5fd;
}
.tier-features li { padding: 0; }

/* === AI-сказка: блок персонажей === */
.char-section {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.2rem;
}
.char-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.char-counter-pill {
    background: rgba(168,85,247,0.15);
    border: 1px solid rgba(168,85,247,0.35);
    color: #c4b5fd;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

.char-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.char-preset-label { color: #b0b0c0; font-size: 0.85rem; margin-right: 0.3rem; }
.char-preset {
    background: rgba(168,85,247,0.08);
    border: 1px solid rgba(168,85,247,0.25);
    color: #c4b5fd;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    transition: background 0.12s, color 0.12s;
}
.char-preset:hover { background: rgba(168,85,247,0.2); color: #fff; }

.char-slot {
    display: grid;
    grid-template-columns: 90px 1fr 36px;
    gap: 1rem;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.7rem;
    transition: border-color 0.15s;
}
.char-slot:focus-within { border-color: rgba(168,85,247,0.5); }
/* В тарифе «текст» убираем колонку фото — поле имени на всю ширину */
.char-slot.no-photo { grid-template-columns: 1fr 36px; }

.char-avatar-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}
.char-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 2px dashed rgba(168,85,247,0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.12s, background 0.12s;
}
.char-avatar:hover { border-color: rgba(168,85,247,0.8); background: rgba(168,85,247,0.08); }
.char-avatar.has-photo { border-style: solid; border-color: rgba(168,85,247,0.85); }
.char-avatar-placeholder { font-size: 1.8rem; opacity: 0.5; }
.char-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.char-avatar.has-photo .char-avatar-img { display: block; }
.char-avatar-hint {
    font-size: 0.72rem;
    color: #909090;
    text-align: center;
}

.char-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}
.char-row { display: flex; flex-direction: column; gap: 0.25rem; }
.char-field-label {
    font-size: 0.78rem;
    color: #909090;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.char-name {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    width: 100%;
    box-sizing: border-box;
}
.char-name:focus {
    outline: none;
    border-color: rgba(168,85,247,0.55);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}
.char-voice {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
}

.char-remove {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fb7185;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.12s;
}
.char-remove:hover { background: rgba(251,113,133,0.15); }

.char-add-btn {
    width: 100%;
    background: rgba(168,85,247,0.08);
    border: 1px dashed rgba(168,85,247,0.4);
    color: #c4b5fd;
    padding: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: background 0.15s, border-color 0.15s;
    margin-top: 0.4rem;
}
.char-add-btn:hover:not(:disabled) {
    background: rgba(168,85,247,0.2);
    border-color: rgba(168,85,247,0.8);
    color: #fff;
}
.char-add-btn:disabled { cursor: not-allowed; }
.char-add-icon { font-size: 1.2rem; }

@media (max-width: 500px) {
    .char-slot {
        grid-template-columns: 70px 1fr 32px;
        gap: 0.7rem;
    }
    .char-avatar { width: 60px; height: 60px; }
}

/* === TTS voice picker === */
.voice-groups { display: flex; flex-direction: column; gap: 1.2rem; }
.voice-group-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: #c4b5fd;
}
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.5rem;
}
.voice-pick {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: inherit;
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: border-color 0.12s, background 0.12s;
}
.voice-pick:hover {
    border-color: rgba(168,85,247,0.5);
    background: rgba(168,85,247,0.05);
}
.voice-pick.selected {
    border-color: rgba(168,85,247,0.85);
    background: rgba(168,85,247,0.18);
}
.voice-pick-name { font-weight: 700; }
.voice-pick-desc { font-size: 0.8rem; color: #b0b0c0; margin-top: 0.15rem; }

/* Voice recorder */
.voice-source {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem 1.1rem;
}
.voice-mode-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}
.voice-mode-tab {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.1);
    color: #b0b0c0;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
    font-family: inherit;
}
.voice-mode-tab:hover { color: #fff; }
.voice-mode-tab.active {
    background: rgba(168,85,247,0.18);
    border-color: rgba(168,85,247,0.55);
    color: #fff;
}
.voice-recorder {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.voice-rec-btn { min-width: 160px; }
.voice-rec-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.voice-rec-time {
    font-family: monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fbbf24;
    min-width: 60px;
    text-align: center;
}
.voice-rec-state { color: #b0b0c0; font-size: 0.9rem; }
.voice-preview {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
}
.voice-preview audio { max-width: 100%; }

/* Админ-плашка: выбор режима оплаты */
.admin-mode-strip {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px dashed rgba(34, 197, 94, 0.45);
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
    color: #86efac;
    font-size: 0.88rem;
}
.adm-radio { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer; color: #d1fae5; }
.adm-radio input { accent-color: #22c55e; }

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.78rem;
    color: #6b6b80;
    margin-top: 0.2rem;
    font-variant-numeric: tabular-nums;
}
.char-counter.over { color: #fb7185; font-weight: 700; }

.free-badge {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.4rem;
}

/* Готовые промпты пилюлями */
.preset-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.preset-pill {
    background: rgba(168,85,247,0.10);
    border: 1px solid rgba(168,85,247,0.3);
    color: #c4b5fd;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.12s;
}
.preset-pill:hover { background: rgba(168,85,247,0.25); color: #fff; }

/* === Фоторедактор === */
.photo-editor .photo-upload-zone {
    background: rgba(255,255,255,0.03);
    border: 2px dashed rgba(168,85,247,0.4);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.photo-editor .photo-upload-zone.drag-over {
    border-color: rgba(168,85,247,0.85);
    background: rgba(168,85,247,0.08);
}
.upload-emoji { font-size: 4rem; margin-bottom: 0.5rem; }
.upload-cta h2 { margin: 0.4rem 0; }

.photo-preview-strip {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.photo-preview-strip img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}
.photo-preview-strip h3 { margin: 0 0 0.3rem; }

.photo-cat-title {
    margin: 2rem 0 0.4rem;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.photo-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    text-align: left;
    font-family: inherit;
    color: inherit;
    cursor: pointer;
    transition: transform 0.12s, border-color 0.12s;
}
.photo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(168,85,247,0.55);
}

/* Модалка */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.modal-card {
    background: #14141f;
    border: 1px solid rgba(168,85,247,0.3);
    border-radius: 16px;
    padding: 1.8rem;
    width: 90%;
    max-width: 500px;
}
.modal-card h3 { margin-top: 0; }
.modal-card textarea {
    width: 100%;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 0.75rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
    resize: vertical;
}
.modal-card textarea:focus {
    outline: none;
    border-color: rgba(168,85,247,0.55);
    box-shadow: 0 0 0 3px rgba(168,85,247,0.15);
}

.pro-pill {
    background: linear-gradient(135deg, #fbbf24, #a855f7);
    color: #0f0f17;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    vertical-align: middle;
}
.music-pro .alert-success a { color: #fff; text-decoration: underline; }

.seller-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(168,85,247,0.08));
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.seller-banner strong { color: #fbbf24; margin-right: 0.4rem; }

/* Seller flow */
.seller-flow { margin-bottom: 2.5rem; }
.seller-flow h2 {
    margin-bottom: 0.3rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}
.seller-flow .hint { margin-bottom: 1rem; }

/* Templates catalog */
.template-cats {
    display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.template-cat-pill {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    font-size: 0.9rem;
}
.template-cat-pill.active {
    background: rgba(168,85,247,0.2);
    border-color: rgba(168,85,247,0.5);
}
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.tpl-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.2rem 1rem;
    text-decoration: none;
    color: inherit;
}
.tpl-card:hover { border-color: rgba(168,85,247,0.4); }
.tpl-card-emoji { font-size: 2rem; }
.tpl-card-title { font-weight: 700; margin: 0.4rem 0 0.3rem; }
.tpl-card-desc { color: #b0b0c0; font-size: 0.9rem; line-height: 1.4; }

/* Видео-страница */
.video-container {
    max-width: 720px;
    margin: 1rem auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
}
.video-container h1 { margin-top: 0; text-align: center; }
.video-container .hint { color: #b0b0c0; text-align: center; margin-bottom: 1.5rem; }
.video-container form { display: flex; flex-direction: column; gap: 1rem; }
.video-container label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #b0b0c0;
}
.video-container input, .video-container textarea, .video-container select {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.check-row {
    flex-direction: row !important;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.check-row input { width: 1.1rem; height: 1.1rem; cursor: pointer; }

.price-preview {
    background: rgba(245, 158, 11, 0.07);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #fbbf24;
    text-align: center;
}
.price-preview b { font-size: 1.4rem; color: #fff; }
.price-preview small { display: block; color: #b0b0c0; margin-top: 0.2rem; }

.storyboard-logline {
    color: #c4b5fd;
    font-style: italic;
    margin-bottom: 1rem;
}
.storyboard-list {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    line-height: 1.7;
}
.storyboard-list li { margin-bottom: 0.4rem; }

/* Result page */
.result-container {
    max-width: 720px;
    margin: 2rem auto;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
}

/* ===== Мини-плеер ===== */
.mini-player {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.4rem 0.7rem;
    transition: border-color 0.2s ease;
}
.mini-player.playing {
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(139, 92, 246, 0.08);
}
.mp-btn {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}
.mp-btn:hover { opacity: 0.9; }
.mp-progress {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}
.mp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899);
    border-radius: 2px;
    transition: width 0.15s linear;
}
.mp-time {
    color: #b0b0c0;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    min-width: 2.5rem;
    text-align: right;
}

/* На share-странице плеер чуть крупнее */
.share-player {
    padding: 0.6rem 0.9rem;
}
.share-player .mp-btn { width: 40px; height: 40px; font-size: 1rem; }

/* ===== Личный кабинет ===== */
.me-container { max-width: 800px; margin: 0 auto; }

.profile-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 1.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.profile-info { flex: 1; min-width: 200px; }
.profile-info h1 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.profile-info .bio { color: #d1d5db; margin: 0 0 0.7rem; }
.profile-info .bio-empty { color: #6b7280; }
.profile-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #b0b0c0;
}
.profile-stats span b { color: #fff; }
.edit-btn { white-space: nowrap; }

/* Список треков */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.section-header h2 { margin: 0; font-size: 1.3rem; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.9rem; }

.tracks-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.track-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: center;
}
.track-meta { grid-column: 1 / -1; }
.track-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}
.track-sub {
    display: flex;
    gap: 0.7rem;
    font-size: 0.8rem;
    color: #b0b0c0;
    flex-wrap: wrap;
}
.track-sub .badge-stream {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
}
.track-sub .badge-vip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(236, 72, 153, 0.3));
    color: #fbbf24;
    padding: 0.1rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.track-item .mini-player { grid-column: 1; }
.track-item .track-actions {
    grid-column: 2;
    display: flex;
    gap: 0.4rem;
}

.btn-icon {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e8e8f0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease;
}
.btn-icon:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* Пустое состояние */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px dashed rgba(255,255,255,0.1);
    border-radius: 14px;
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.6; }
.empty-state h3 { margin: 0 0 0.5rem; }
.empty-state p { color: #b0b0c0; margin-bottom: 1.5rem; }

/* ===== Share-страница ===== */
.share-card {
    max-width: 600px;
    margin: 1rem auto;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
}
.share-header { text-align: center; margin-bottom: 1.5rem; }
.share-header h1 {
    margin: 0.3rem 0;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.share-from { color: #b0b0c0; font-size: 0.9rem; margin: 0; }
.share-tags { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-top: 0.7rem; }
.share-tags .tag {
    background: rgba(255,255,255,0.06);
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.82rem;
    color: #d1d5db;
}
.share-cover {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 1rem auto;
    display: block;
}
.share-actions {
    display: flex;
    gap: 0.7rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
.share-details {
    margin-top: 1.5rem;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    padding: 0.6rem 1rem;
}
.share-details summary {
    cursor: pointer;
    font-weight: 500;
    color: #c4b5fd;
}
.share-details[open] summary { margin-bottom: 0.7rem; }
.share-details pre.lyrics {
    white-space: pre-wrap;
    font-family: inherit;
    color: #d1d5db;
    line-height: 1.6;
    margin: 0;
}

/* ===== Объявления ===== */
.announcements {
    max-width: 980px;
    margin: 0 auto 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.announcement {
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-size: 0.95rem;
    border-left: 4px solid;
}
.announcement-info {
    background: rgba(99, 102, 241, 0.1);
    border-color: #6366f1;
    color: #c7d2fe;
}
.announcement-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
    color: #86efac;
}
.announcement-warn {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
    color: #fbbf24;
}
.announcement-urgent {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
    color: #fca5a5;
    font-weight: 500;
}

/* ===== Админка ===== */
.admin-link {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24 !important;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-weight: 500;
}
.admin-link:hover { background: rgba(245, 158, 11, 0.25); }

/* Горизонтальный навигатор админки — всегда видим вверху */
.admin-topnav {
    max-width: 1200px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(236, 72, 153, 0.04));
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 12px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
}
.admin-topnav-label {
    color: #fbbf24;
    font-weight: 700;
    margin-right: 0.4rem;
}
.admin-topnav a {
    color: #e8e8f0;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    transition: background 0.15s ease;
    text-decoration: none;
}
.admin-topnav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-topnav-sep { color: #555; margin: 0 0.2rem; }
.admin-topnav-exit { margin-left: auto; color: #b0b0c0 !important; }

.admin-shell {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-side {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.2rem 0.8rem;
    height: fit-content;
    position: sticky;
    top: 5rem;
    z-index: 5;
}
.admin-side-title {
    margin: 0 0 1rem 0.5rem;
    font-size: 1.1rem;
}
.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.admin-nav a {
    color: #d1d5db;
    padding: 0.5rem 0.7rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.15s ease;
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-side-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 0.5rem 0.7rem; }

.admin-body { min-width: 0; }
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.page-header h1 { margin: 0; }
.export-bar { display: flex; gap: 0.5rem; }

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.2rem;
}
.stat-card-accent {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.05));
    border-color: rgba(139, 92, 246, 0.25);
}
.stat-label { font-size: 0.82rem; color: #b0b0c0; margin-bottom: 0.3rem; }
.stat-value { font-size: 1.8rem; font-weight: 700; color: #fff; line-height: 1; }
.stat-sub { font-size: 0.8rem; color: #888; margin-top: 0.4rem; }

.quick-links { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }

/* Карточка-секция в админке */
.card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}
.card h3 { margin: 0 0 1rem; font-size: 1.05rem; color: #c4b5fd; }

/* Формы */
.create-form { display: flex; flex-direction: column; gap: 0.8rem; }
.create-form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.85rem; color: #b0b0c0; }
.create-form input, .create-form select, .create-form textarea {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}
.create-form textarea { resize: vertical; min-height: 60px; }
.form-row { display: flex; gap: 0.7rem; }
.form-row label { flex: 1; }

/* Search bar */
.search-bar { display: flex; gap: 0.6rem; margin-bottom: 1.2rem; }
.search-bar input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    padding: 0.55rem 0.8rem;
    border-radius: 8px;
    flex: 1;
    font-size: 0.95rem;
}

/* Таблицы */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.admin-table th {
    text-align: left;
    padding: 0.7rem 0.6rem;
    color: #b0b0c0;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-table td {
    padding: 0.6rem 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.admin-table tr:hover { background: rgba(255,255,255,0.03); }
.admin-table tr.inactive { opacity: 0.5; }
.admin-table code { color: #c4b5fd; }
.dim { color: #888; }

.promo-code {
    background: rgba(139, 92, 246, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-weight: 600;
    color: #fbbf24 !important;
}

/* Примеры цензуры — на странице стрим-инструментов */
.censor-examples {
    background: rgba(0,0,0,0.3);
    border-left: 3px solid #fbbf24;
    border-radius: 6px;
    padding: 0.8rem 1rem;
    margin: 0.7rem 0;
    font-family: monospace;
    font-size: 0.88rem;
    color: #d1d5db;
    line-height: 1.7;
}
.censor-examples div { word-break: break-word; }

/* Карточки инструментов на странице стрим-инструментов */
.tool-card { margin-bottom: 1.2rem; }
.tool-card ol, .tool-card ul {
    margin-left: 1.2rem;
    padding-left: 0.5rem;
    color: #d1d5db;
}
.tool-card li { margin-bottom: 0.3rem; }
.tool-card details {
    background: rgba(0,0,0,0.25);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    margin-top: 1rem;
}
.tool-card details summary {
    cursor: pointer;
    font-weight: 500;
    color: #c4b5fd;
}
.tool-card details[open] summary { margin-bottom: 0.7rem; }

.kv-grid {
    display: grid;
    grid-template-columns: minmax(180px, max-content) 1fr;
    gap: 0.5rem 1rem;
    align-items: center;
    margin: 1rem 0;
    font-size: 0.92rem;
}
.kv-grid > span:nth-child(odd) { color: #888; }
.kv-grid code {
    color: #c4b5fd;
    word-break: break-all;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.4rem 0.7rem;
}
.copy-row code {
    flex: 1;
    font-size: 0.82rem;
    overflow-x: auto;
    white-space: nowrap;
}

/* Таблица цен */
.price-table { display: flex; flex-direction: column; gap: 0.5rem; margin: 1rem 0; }
.price-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.8rem 1rem;
}
.price-row.vip {
    background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(236,72,153,0.08));
    border-color: rgba(245, 158, 11, 0.3);
}
.price-emoji { font-size: 1.5rem; flex-shrink: 0; }
.price-info { flex: 1; line-height: 1.4; }
.price-amount { font-weight: 700; color: #fbbf24; white-space: nowrap; }

/* Быстрые ссылки сеткой */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.7rem;
    margin-top: 0.5rem;
}
.quick-link {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: #e8e8f0;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.quick-link:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.4);
    color: #fff;
}
.quick-link .ql-emoji { font-size: 1.4rem; }

.announce-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.7rem;
}
.announce-item.inactive { opacity: 0.5; }
.announce-preview { padding: 0.7rem 1rem; border-radius: 8px; border-left: 4px solid; margin-bottom: 0.6rem; }
.announce-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
}
.announce-actions { margin-left: auto; display: flex; gap: 0.3rem; }

/* Детальная страница юзера */
.user-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.badge-admin {
    background: rgba(245, 158, 11, 0.18);
    color: #fbbf24;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}
.badge-blocked {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
}
.badge-auth {
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
    padding: 0.25rem 0.7rem;
    border-radius: 6px;
    font-size: 0.82rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.detail-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.detail-col .card { margin-bottom: 0; }

/* Key-value список */
.kv {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 0.45rem 0.8rem;
    font-size: 0.92rem;
}
.kv > span:nth-child(odd) { color: #888; }
.kv > span:nth-child(even), .kv > code:nth-child(even) { color: #e8e8f0; word-break: break-word; }

.action-cluster { margin-top: 1rem; }
.action-cluster:first-child { margin-top: 0; }
.action-cluster h4 {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #b0b0c0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.btn-row { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* Timeline для активности */
.timeline { display: flex; flex-direction: column; gap: 0.6rem; }
.timeline-item {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
}
.timeline-meta {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 0.3rem;
    font-size: 0.78rem;
    flex-wrap: wrap;
}

/* Кликабельные строки в таблице юзеров */
.clickable-row { cursor: pointer; transition: background 0.1s ease; }
.clickable-row:hover { background: rgba(139, 92, 246, 0.08); }
.clickable-row form, .clickable-row a { cursor: pointer; }
.row-blocked { opacity: 0.55; }

/* Мини-бейджи в списке юзеров */
.badge-admin-mini, .badge-blocked-mini {
    margin-left: 0.3rem;
    font-size: 0.85rem;
}
.badge-admin-mini { filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.4)); }

@media (max-width: 800px) {
    .detail-grid { grid-template-columns: 1fr; }
    .kv { grid-template-columns: 1fr; gap: 0.2rem; }
    .kv > span:nth-child(odd) { font-size: 0.8rem; margin-top: 0.4rem; }
}

/* Mobile админка — раскладываем sidebar сверху раньше (до 1024px) */
@media (max-width: 1024px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-side { position: static; }
    .admin-nav { flex-direction: row; flex-wrap: wrap; }
    .admin-nav a { flex: 1; min-width: 130px; text-align: center; }
    .form-row { flex-direction: column; }
}

/* Mobile tweaks */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .topbar { padding: 0.8rem 1rem; }
    main { padding: 1.5rem 1rem; }
    .footer-content { flex-direction: column; gap: 0.4rem; }
}
