/* ============================================================
   Fish Audio — генератор, каталог голосов, SEO-страницы голосов
   Дизайн «Lagoon Studio»: светлые карточки, бирюзово-лазурные
   акценты, тёмная «морская» hero-полоса. Полная замена старой
   тёмно-фиолетовой темы — классы сохранены (JS-цепляется за них).
   ============================================================ */

:root {
    --ft-grad: var(--grad);
    --ft-grad-soft: var(--grad-soft);
    --ft-text: var(--ink);
    --ft-muted: var(--muted);
    --ft-faint: var(--faint);
    --ft-border: var(--border);
    --ft-card: var(--surface);
    --ft-input-bg: var(--surface-2);
}

.ft-shell { max-width: 1440px; }

/* ================= Hero (тёмная морская полоса) ================= */
.ft-hero {
    position: relative;
    overflow: hidden;
    background: var(--grad-deep);
    border-radius: var(--radius-l);
    padding: 26px 30px;
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.ft-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(500px 200px at 85% -40%, rgba(6, 182, 212, 0.35), transparent 65%),
        radial-gradient(300px 160px at 10% 120%, rgba(13, 148, 136, 0.30), transparent 60%);
    pointer-events: none;
}
.ft-hero h1 {
    position: relative;
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.005em;
}
.ft-hero-sub {
    position: relative;
    margin: 0 0 14px;
    color: rgba(230, 250, 248, 0.8);
    font-size: 0.92rem;
    max-width: 560px;
}
.ft-pills { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.ft-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(235, 252, 250, 0.9);
    font-size: 0.76rem;
    font-weight: 600;
}
.ft-pill .icon-svg { width: 13px; height: 13px; }
.ft-hero-deco {
    position: absolute;
    right: 26px; top: 50%;
    transform: translateY(-50%);
    width: 92px; height: 92px;
    color: rgba(125, 232, 224, 0.30);
    pointer-events: none;
}
.ft-hero-deco .icon-svg { width: 100%; height: 100%; stroke-width: 1.6; }

/* ================= Layout: форма + панель заказов ================= */
.ft-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 18px;
    align-items: start;
}
.ft-main { min-width: 0; }

.ft-card {
    background: var(--ft-card);
    border: 1px solid var(--ft-border);
    border-radius: var(--radius-l);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-s);
}
.ft-card:last-child { margin-bottom: 0; }

.form-label {
    display: flex; align-items: center; gap: 9px;
    color: var(--ft-text);
    font-size: 0.95rem; font-weight: 800;
    margin-bottom: 12px;
}
.form-label .ft-step {
    width: 24px; height: 24px;
    border-radius: 8px;
    background: var(--ft-grad);
    color: #fff;
    font-size: 0.74rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(13, 148, 136, 0.3);
}

/* ================= Гостевой баннер ================= */
.guest-cta-banner {
    background: var(--grad-deep);
    border-radius: var(--radius-l);
    padding: 28px 26px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.guest-cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(400px 180px at 90% 0%, rgba(6, 182, 212, 0.30), transparent 65%);
    pointer-events: none;
}
.guest-cta-banner h3 { position: relative; color: #fff; font-size: 1.15rem; margin-bottom: 0.4rem; font-weight: 800; }
.guest-cta-banner p { position: relative; color: rgba(230, 250, 248, 0.72); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* ================= Панель выбора голоса ================= */
.voice-panel {
    background: var(--surface-2);
    border: 1px solid var(--ft-border);
    border-radius: var(--radius);
    padding: 16px;
}
.voice-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.voice-tabs {
    display: inline-flex;
    background: #e7f0f1;
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
}
.voice-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--ft-muted);
    font-size: 0.84rem; font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.voice-tab .icon-svg { width: 15px; height: 15px; }
.voice-tab:hover { color: var(--teal); }
.voice-tab.active {
    background: #fff;
    color: var(--teal);
    box-shadow: 0 2px 8px rgba(12, 31, 43, 0.10);
}
.voice-tab .tab-count {
    background: rgba(13, 148, 136, 0.14);
    border-radius: 999px;
    padding: 1px 7px;
    font-size: 0.7rem;
}
.voice-search { position: relative; flex: 1; min-width: 170px; }
.voice-search .icon-svg {
    position: absolute;
    left: 13px; top: 50%;
    transform: translateY(-50%);
    width: 15px; height: 15px;
    color: var(--ft-faint);
    pointer-events: none;
}
.voice-search input {
    width: 100%;
    padding: 9px 34px 9px 36px;
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: 999px;
    color: var(--ft-text);
    font-size: 0.88rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.voice-search input:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
}
.voice-search input::placeholder { color: var(--ft-faint); }
.voice-search .clear-btn {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    display: none;
    align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border: none; border-radius: 50%;
    background: #e2ecee;
    color: var(--ft-muted);
    cursor: pointer;
    padding: 0;
}
.voice-search .clear-btn.visible { display: flex; }
.voice-search .clear-btn:hover { background: #cfe2e4; color: var(--ink); }

.voice-search-row { margin-bottom: 10px; }
.voice-search-row .voice-search { width: 100%; min-width: 0; }
.voice-search-row .voice-search input { font-size: 1rem; padding: 12px 40px 12px 42px; }
.voice-lang-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.voice-lang-row .tag-cloud-label { margin-right: 2px; }

.clone-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1.5px dashed rgba(13, 148, 136, 0.5);
    background: rgba(13, 148, 136, 0.06);
    color: var(--teal);
    font-size: 0.84rem; font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.clone-btn .icon-svg { width: 16px; height: 16px; }
.clone-btn:hover { background: rgba(13, 148, 136, 0.14); border-color: var(--teal); }
.clone-btn-mobile { display: none; }

/* Выбранный голос */
.selected-voice-chip {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 14px;
    background: #fff;
    border: 1.5px solid rgba(13, 148, 136, 0.4);
    border-radius: var(--radius);
    margin-bottom: 12px;
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.selected-voice-chip:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(13, 148, 136, 0.15); }
.selected-voice-chip .chip-avatar {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: var(--ft-grad);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.selected-voice-chip .chip-avatar .icon-svg { width: 17px; height: 17px; }
.selected-voice-chip .chip-name { color: var(--ft-text); font-weight: 700; font-size: 0.92rem; }
.selected-voice-chip .chip-sub { color: var(--ft-muted); font-size: 0.75rem; }

/* Сетка голосов */
.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding: 2px;
}
.voice-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: var(--radius);
    padding: 13px;
    cursor: pointer;
    transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
    animation: ftCardIn 0.3s ease both;
}
@keyframes ftCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}
.voice-card:hover { border-color: rgba(6, 182, 212, 0.55); transform: translateY(-2px); box-shadow: var(--shadow-s); }
.voice-card.active {
    border-color: var(--teal);
    box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.22), var(--shadow-s);
}
.voice-card.active::after {
    content: '✓';
    position: absolute;
    top: -7px; right: -7px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 0.68rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.45);
}
.vc-row { display: flex; align-items: center; gap: 10px; }
.vc-main { min-width: 0; flex: 1; }
.voice-card .voice-name {
    color: var(--ft-text);
    font-weight: 700; font-size: 0.9rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.voice-card .voice-desc {
    color: var(--ft-faint); font-size: 0.74rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vc-wf { margin-top: 8px; height: 14px; }
.voice-meta { display: flex; gap: 5px; margin-top: 9px; align-items: center; flex-wrap: wrap; }
.voice-tag {
    padding: 2px 9px;
    border-radius: 999px;
    background: #e9f3f4;
    color: var(--ink-soft);
    font-size: 0.68rem; font-weight: 600;
}
.voice-tag.own-tag { background: rgba(13, 148, 136, 0.14); color: var(--teal); }
.voice-tag.tag-chip { cursor: pointer; transition: background 0.15s, color 0.15s; }
.voice-tag.tag-chip:hover { background: rgba(6, 182, 212, 0.18); color: #0e7490; }
.voice-stats { display: flex; gap: 10px; margin-top: 8px; }
.voice-stat {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--ft-faint);
    font-size: 0.7rem;
}
.voice-stat svg { width: 12px; height: 12px; }
.voice-sort {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: 999px;
    color: var(--ft-text);
    font-size: 0.82rem;
    font-family: var(--font-body);
    cursor: pointer;
}
.voice-sort:focus { outline: none; border-color: var(--aqua); }
.voice-sort option { background: #fff; color: var(--ft-text); }

/* Псевдо-волноформа */
.wf { display: flex; align-items: center; gap: 2px; height: 22px; flex: 1; min-width: 0; }
.wf span {
    flex: 1;
    min-width: 2px;
    border-radius: 2px;
    background: #cfe3e5;
    height: calc(20% + var(--h, 50) * 0.6%);
    transition: background 0.12s;
}
.wf.wf-playing { opacity: 1; }
.wf span.wf-done { background: linear-gradient(180deg, var(--aqua), var(--teal)); }

/* Облако тегов */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.tag-cloud-label { font-size: 0.74rem; color: var(--ft-faint); margin-right: 2px; font-weight: 600; }
.cloud-tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--ft-border);
    background: #fff;
    color: var(--ft-muted);
    font-size: 0.78rem; font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.16s, color 0.16s, background 0.16s;
}
.cloud-tag .icon-svg { width: 13px; height: 13px; flex-shrink: 0; }
.cloud-tag:hover { border-color: var(--aqua); color: #0e7490; }
.cloud-tag.active {
    background: rgba(13, 148, 136, 0.12);
    border-color: var(--teal);
    color: var(--teal);
}

/* Подсказки тегов под поиском */
.tag-suggest {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: var(--radius-s);
    box-shadow: var(--shadow);
    z-index: 40;
    overflow: hidden;
    max-height: 240px;
    overflow-y: auto;
}
.tag-suggest.open { display: block; }
.tag-suggest button {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    padding: 9px 13px;
    border: none;
    background: transparent;
    color: var(--ft-text);
    font-size: 0.85rem;
    font-family: var(--font-body);
    cursor: pointer;
    text-align: left;
    transition: background 0.14s;
}
.tag-suggest button:hover { background: #eef7f7; color: var(--teal); }
.tag-suggest button .suggest-hint { margin-left: auto; font-size: 0.68rem; color: var(--ft-faint); }

/* Иконки-кнопки на карточках голосов */
.voice-icon-btn {
    width: 32px; height: 32px;
    border-radius: 10px;
    border: 1px solid var(--ft-border);
    background: #fff;
    color: var(--ft-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, transform 0.16s, box-shadow 0.16s;
    flex-shrink: 0;
    padding: 0;
}
.voice-icon-btn .icon-svg { width: 14px; height: 14px; }
.voice-icon-btn:hover { background: #eef7f7; color: var(--teal); transform: scale(1.07); }
.voice-icon-btn.play-btn {
    background: var(--ft-grad);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
}
.voice-icon-btn.play-btn:hover { color: #fff; box-shadow: 0 6px 18px rgba(6, 182, 212, 0.5); }
.voice-icon-btn.play-btn.playing { background: linear-gradient(135deg, var(--coral), #ff8f6b); }
.voice-icon-btn.fav-btn { border-color: #f3d4cf; color: #e0786a; }
.voice-icon-btn.fav-btn:hover { background: #fdf0ed; color: var(--coral); }
.voice-icon-btn.fav-btn.faved { background: #fdeae6; border-color: #f5b8ad; color: var(--coral); }
.voice-icon-btn.fav-btn.faved .icon-svg { fill: currentColor; }
.voice-icon-btn.fav-btn.pop { animation: ftFavPop 0.35s ease; }
@keyframes ftFavPop {
    0% { transform: scale(1); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1); }
}
.voice-icon-btn.del-btn { border-color: #f3d0cd; color: #d96a63; }
.voice-icon-btn.del-btn:hover { background: #fdeceb; color: var(--danger); }

.voice-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 34px 12px;
    color: var(--ft-faint);
    font-size: 0.86rem;
}
.voice-empty .icon-svg { width: 34px; height: 34px; opacity: 0.4; margin-bottom: 8px; }

.voice-skeleton {
    height: 74px;
    border-radius: var(--radius);
    background: linear-gradient(90deg, #e8f0f1 25%, #f4f9fa 50%, #e8f0f1 75%);
    background-size: 200% 100%;
    animation: ftSkeleton 1.2s ease infinite;
}
@keyframes ftSkeleton { to { background-position: -200% 0; } }

.load-more-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: var(--radius-s);
    border: 1px solid var(--ft-border);
    background: #fff;
    color: var(--ft-muted);
    font-size: 0.84rem; font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.16s, color 0.16s;
}
.load-more-btn:hover { background: #eef7f7; color: var(--teal); }

/* ================= Текст / спикеры ================= */
.tts-textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px;
    background: var(--ft-input-bg);
    border: 1px solid var(--ft-border);
    border-radius: var(--radius);
    color: var(--ft-text);
    font-size: 0.95rem;
    font-family: var(--font-body);
    line-height: 1.55;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.tts-textarea:focus {
    outline: none;
    border-color: var(--aqua);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14);
    background: #fff;
}
.tts-textarea::placeholder { color: var(--ft-faint); }

.tts-counter { font-size: 0.78rem; color: var(--ft-faint); margin-top: 7px; text-align: right; }
.tts-counter .cost-line { color: var(--teal); font-weight: 700; }
.tts-counter .over-limit { color: var(--danger); font-weight: 700; }
.over-limit { color: var(--danger); }

.emotion-hint {
    background: rgba(6, 182, 212, 0.07);
    border: 1px solid rgba(6, 182, 212, 0.22);
    border-radius: var(--radius-s);
    padding: 8px 12px;
    font-size: 0.78rem;
    color: var(--ft-muted);
    margin-top: 8px;
}
.emotion-hint code {
    color: #0e7490;
    background: rgba(6, 182, 212, 0.12);
    padding: 1px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s;
}
.emotion-hint code:hover { background: rgba(6, 182, 212, 0.25); }

/* Диалог спикеров */
.add-speaker-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(13, 148, 136, 0.07);
    border: 1.5px dashed rgba(13, 148, 136, 0.45);
    border-radius: var(--radius-s);
    color: var(--teal);
    font-size: 0.84rem; font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}
.add-speaker-btn:hover { background: rgba(13, 148, 136, 0.14); border-color: var(--teal); }
.add-speaker-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.spk-block {
    background: var(--surface-2);
    border: 1px solid var(--ft-border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.spk-block.spk-active { border-color: rgba(13, 148, 136, 0.55); box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15); }
.spk-block-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.spk-num {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--ft-grad);
    color: #fff;
    font-size: 0.75rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(13, 148, 136, 0.3);
}
.spk-voice-chip {
    flex: 1;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--ft-border);
    background: #fff;
    color: var(--ft-text);
    font-size: 0.82rem; font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    text-align: left;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: border-color 0.16s, background 0.16s;
}
.spk-voice-chip:hover { border-color: var(--aqua); }
.spk-voice-chip.active { background: rgba(13, 148, 136, 0.10); border-color: var(--teal); color: var(--teal); }
.spk-voice-chip.unset { color: var(--ft-faint); font-style: italic; border-style: dashed; background: transparent; }
.spk-remove-btn {
    min-width: 26px; min-height: 26px;
    width: auto; height: auto;
    border-radius: 8px;
    border: 1px solid #f3d0cd;
    background: #fff;
    color: #d96a63;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    padding: 5px 9px;
    white-space: nowrap;
    line-height: 1.2;
    font-size: 0.76rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.16s, color 0.16s;
}
.spk-remove-btn:hover { background: #fdeceb; color: var(--danger); }
.spk-textarea {
    width: 100%;
    min-height: 70px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: var(--radius-s);
    color: var(--ft-text);
    font-size: 0.88rem;
    font-family: var(--font-body);
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.spk-textarea:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12); }
.spk-textarea::placeholder { color: var(--ft-faint); }

/* ================= Настройки ================= */
.ft-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.ft-set-col { min-width: 0; }

.option-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.option-btn {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--ft-border);
    background: #fff;
    color: var(--ft-muted);
    font-size: 0.83rem; font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.16s, color 0.16s, background 0.16s, box-shadow 0.16s;
}
.option-btn:hover { border-color: var(--aqua); color: #0e7490; }
.option-btn.active {
    background: rgba(13, 148, 136, 0.12);
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.2);
}
.option-btn:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }

.duration-slider-wrap { display: flex; align-items: center; gap: 12px; }
.duration-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 999px;
    background: #dce9eb;
    outline: none;
    cursor: pointer;
}
.duration-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--ft-grad);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
    cursor: pointer;
}
.duration-slider::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--teal);
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.4);
    cursor: pointer;
}
.duration-value {
    min-width: 52px;
    text-align: center;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(13, 148, 136, 0.10);
    color: var(--teal);
    font-size: 0.82rem; font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tts-switches { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; min-height: 40px; }
.tts-switch {
    display: inline-flex; align-items: center; gap: 9px;
    cursor: pointer;
    font-size: 0.85rem; font-weight: 600;
    color: var(--ft-muted);
}
.tts-switch input { display: none; }
.tts-switch .switch-track {
    width: 38px; height: 22px;
    border-radius: 999px;
    background: #cfdfe1;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}
.tts-switch .switch-track::after {
    content: '';
    position: absolute;
    top: 3px; left: 3px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(12, 31, 43, 0.25);
    transition: left 0.2s;
}
.tts-switch input:checked + .switch-track { background: var(--teal); }
.tts-switch input:checked + .switch-track::after { left: 19px; }

/* ================= Кнопка генерации ================= */
.ft-generate {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    padding: 16px;
    margin-top: 16px;
    border: none;
    border-radius: var(--radius);
    background: var(--ft-grad);
    color: #fff;
    font-size: 1.02rem; font-weight: 800;
    font-family: var(--font-body);
    cursor: pointer;
    box-shadow: 0 10px 26px rgba(13, 148, 136, 0.35);
    transition: transform 0.16s, box-shadow 0.2s;
}
.ft-generate:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(6, 182, 212, 0.42); }
.ft-generate:disabled { opacity: 0.75; cursor: wait; transform: none; }
.ft-generate .icon-svg { width: 20px; height: 20px; }
.ft-generate .price-badge {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 3px 11px;
    font-size: 0.8rem;
    display: inline-flex; align-items: center; gap: 5px;
}
.ft-balance-line {
    margin-top: 9px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--ft-faint);
}
.ft-balance-line a { color: var(--teal); font-weight: 600; }
.ft-low-balance {
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    margin-top:10px; padding:11px 13px; border:1px solid rgba(13,148,136,.24);
    border-radius:12px; background:linear-gradient(135deg,rgba(13,148,136,.08),rgba(6,182,212,.06));
    color:var(--ft-muted); text-decoration:none; font-size:.78rem; line-height:1.4;
}
.ft-low-balance b { color:var(--ft-ink); }
.ft-low-balance strong { color:var(--teal); white-space:nowrap; }
.ft-low-balance:hover { border-color:var(--teal); }

.ft-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.ft-feat-nowrap { white-space: nowrap; display: inline; overflow-wrap: normal; }
.ft-feat {
    background: var(--surface-2);
    border: 1px solid var(--ft-border);
    border-radius: var(--radius-s);
    padding: 12px;
    min-width: 0; /* иначе grid-элемент не сжимается ниже ширины контента — текст обрезается */
}
.ft-feat span { overflow-wrap: break-word; }
.ft-feat .ft-feat-icon {
    width: 30px; height: 30px;
    border-radius: 9px;
    background: var(--ft-grad-soft);
    border: 1px solid rgba(13, 148, 136, 0.22);
    color: var(--teal);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 7px;
}
.ft-feat .ft-feat-icon .icon-svg { width: 17px; height: 17px; }
.ft-feat b { display: block; color: var(--ft-text); font-size: 0.8rem; margin-bottom: 2px; }
.ft-feat > span { color: var(--ft-faint); font-size: 0.68rem; line-height: 1.3; display: block; }

/* ================= Панель заказов ================= */
.ft-panel {
    background: var(--ft-card);
    border: 1px solid var(--ft-border);
    border-radius: var(--radius-l);
    padding: 18px;
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    box-shadow: var(--shadow-s);
}
.ft-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ft-panel-title {
    display: flex; align-items: center; gap: 8px;
    color: var(--ft-text);
    font-size: 0.95rem; font-weight: 800;
}
.ft-panel-title .icon-svg { width: 17px; height: 17px; color: var(--teal); }
.ft-panel-count {
    background: rgba(13, 148, 136, 0.12);
    color: var(--teal);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 0.74rem; font-weight: 700;
}
.ft-latest {
    background: var(--grad-soft);
    border: 1px solid rgba(13, 148, 136, 0.25);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
}
.ft-latest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ft-latest-title { color: var(--ft-text); font-weight: 700; font-size: 0.85rem; line-height: 1.3; }
.ft-latest-sub { color: var(--ft-muted); font-size: 0.72rem; margin: 3px 0 10px; }
.ft-latest-actions { margin-top: 10px; }

.ft-orders-head { color: var(--ft-muted); font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.ft-orders { display: flex; flex-direction: column; gap: 8px; }
.ft-order {
    background: var(--surface-2);
    border: 1px solid var(--ft-border);
    border-radius: var(--radius);
    padding: 12px;
    transition: border-color 0.18s;
}
.ft-order:hover { border-color: rgba(6, 182, 212, 0.5); }
.ft-order-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ft-order-title {
    color: var(--ft-text);
    font-weight: 600; font-size: 0.83rem; line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ft-order-sub { color: var(--ft-faint); font-size: 0.7rem; margin: 4px 0 9px; }
.ft-order-err { color: var(--danger); font-size: 0.76rem; margin-top: 6px; line-height: 1.4; }

.ft-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.68rem; font-weight: 700;
}
.ft-badge.completed { background: #e3f7ee; color: #0b7a52; }
.ft-badge.failed { background: #fdeceb; color: #b23330; }
.ft-badge.processing { background: #fdf3e0; color: #b0760a; }
.ft-badge.dialogue { background: rgba(13, 148, 136, 0.12); color: var(--teal); }

/* Плеер в заказах */
.ft-player { display: flex; align-items: center; gap: 9px; }
.ft-player audio { display: none; }
.ft-play {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--ft-grad);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.35);
    transition: transform 0.16s, box-shadow 0.18s;
    padding: 0;
}
.ft-play:hover { transform: scale(1.07); box-shadow: 0 6px 16px rgba(6, 182, 212, 0.5); }
.ft-play .icon-svg { width: 14px; height: 14px; }
.ft-dur { color: var(--ft-muted); font-size: 0.72rem; font-variant-numeric: tabular-nums; flex-shrink: 0; }

.ft-icon-btn {
    width: 30px; height: 30px;
    border-radius: 9px;
    border: 1px solid var(--ft-border);
    background: #fff;
    color: var(--ft-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.16s, color 0.16s;
    flex-shrink: 0;
    text-decoration: none;
    padding: 0;
}
.ft-icon-btn:hover { background: #eef7f7; color: var(--teal); }
.ft-icon-btn .icon-svg { width: 13px; height: 13px; }

.ft-dl {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%;
    padding: 9px;
    border-radius: 11px;
    background: var(--ft-grad);
    color: #fff;
    font-size: 0.85rem; font-weight: 700;
    text-decoration: none;
    transition: box-shadow 0.18s, transform 0.15s;
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.3);
}
.ft-dl:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(6, 182, 212, 0.45); color: #fff; }
.ft-dl .icon-svg { width: 15px; height: 15px; }

.ft-retry {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    border-radius: 9px;
    border: 1px solid rgba(13, 148, 136, 0.4);
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
    font-size: 0.76rem; font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.16s, color 0.16s;
}
.ft-retry:hover { background: rgba(13, 148, 136, 0.18); }
.ft-retry .icon-svg { width: 12px; height: 12px; }

.ft-orders-empty {
    text-align: center;
    padding: 1.4rem 0.8rem;
    color: var(--ft-faint);
    font-size: 0.82rem;
    border: 1.5px dashed var(--border-strong);
    border-radius: 12px;
}
.ft-all-link {
    display: block;
    margin-top: 12px;
    padding: 10px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid var(--ft-border);
    background: var(--surface-2);
    color: var(--teal);
    font-size: 0.85rem; font-weight: 700;
    text-decoration: none;
    transition: background 0.16s, color 0.16s;
}
.ft-all-link:hover { background: #e6f5f4; }
.ft-panel-guest { text-align: center; padding: 0.6rem 0.4rem; }
.ft-panel-guest p { color: var(--ft-muted); font-size: 0.85rem; margin-bottom: 12px; }

/* ================= Результат / утилиты ================= */
.tts-spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ftSpin 0.8s linear infinite;
    vertical-align: -4px;
    margin-right: 8px;
}
@keyframes ftSpin { to { transform: rotate(360deg); } }

.tts-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(10px);
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.85rem;
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 10px 30px rgba(12, 31, 43, 0.35);
}
.tts-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================= Модалка клонирования ================= */
.clone-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(7, 24, 32, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.clone-overlay.open { display: flex; }
.clone-modal {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--ft-border);
    border-radius: var(--radius-l);
    padding: 22px;
    box-shadow: var(--shadow-l);
    animation: ftModalIn 0.25s ease both;
}
@keyframes ftModalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}
.clone-modal h3 {
    color: var(--ft-text); font-size: 1.1rem; font-weight: 800;
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 4px;
}
.clone-modal h3 .icon-svg { width: 20px; height: 20px; color: var(--teal); }
.clone-modal .clone-sub { color: var(--ft-muted); font-size: 0.82rem; margin-bottom: 16px; }
.clone-input {
    width: 100%;
    padding: 10px 13px;
    background: var(--ft-input-bg);
    border: 1px solid var(--ft-border);
    border-radius: var(--radius-s);
    color: var(--ft-text);
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.clone-input:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.14); }
.clone-drop {
    margin-top: 12px;
    padding: 22px 14px;
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--radius);
    text-align: center;
    color: var(--ft-muted);
    font-size: 0.84rem;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
}
.clone-drop:hover, .clone-drop.dragover { border-color: var(--teal); background: rgba(13, 148, 136, 0.05); }
.clone-drop .icon-svg { width: 26px; height: 26px; color: var(--teal); margin-bottom: 6px; }
.clone-drop.has-file { border-style: solid; border-color: var(--success); color: var(--success); }
.clone-hint { font-size: 0.75rem; color: var(--ft-faint); margin-top: 6px; line-height: 1.45; }
.modal-close-btn {
    position: absolute;
    top: 12px; right: 12px;
    width: 32px; height: 32px;
    border-radius: 10px;
    border: none;
    background: #eef4f5;
    color: var(--ft-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.16s, color 0.16s;
    padding: 0;
}
.modal-close-btn:hover { background: #dfeaec; color: var(--ink); }
.modal-close-btn .icon-svg { width: 16px; height: 16px; }

/* ================= Пикер голоса (мобильный/диалог) ================= */
.vp-open-btn {
    display: none;
    align-items: center; gap: 8px;
    width: 100%;
    padding: 11px 15px;
    border-radius: var(--radius);
    border: 1.5px solid rgba(13, 148, 136, 0.4);
    background: #fff;
    color: var(--ft-text);
    font-size: 0.9rem; font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.vp-open-btn .icon-svg { width: 16px; height: 16px; color: var(--teal); }
.vp-open-btn:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(13, 148, 136, 0.15); }

.vp-modal { max-width: 520px; display: flex; flex-direction: column; position: relative; }
.vp-modal .voice-toolbar { margin-bottom: 0; }
.vp-tag-cloud {
    display: flex; gap: 6px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin: 10px 0 4px;
    scrollbar-width: thin;
}
.vp-modal .voice-lang-row { margin-top: 8px; }
.vp-list {
    margin-top: 10px;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 7px;
    max-height: 50vh;
}
.vp-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--ft-border);
    border-radius: var(--radius-s);
    background: var(--surface-2);
    cursor: pointer;
    transition: border-color 0.16s, background 0.16s;
}
.vp-row:hover { border-color: var(--aqua); background: #eef8f8; }
.vp-row .vp-main { min-width: 0; flex: 1; }
.vp-name { color: var(--ft-text); font-weight: 700; font-size: 0.88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-sub { color: var(--ft-faint); font-size: 0.72rem; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp-meta { display: flex; gap: 8px; margin-top: 5px; align-items: center; flex-wrap: wrap; }
.vp-row.vp-current { border-color: var(--teal); background: var(--ft-grad-soft); }

/* Сворачиваемая карточка настроек */
.ft-settings-card > summary {
    cursor: pointer;
    list-style: none;
    display: flex; align-items: center; justify-content: space-between;
}
.ft-settings-card > summary::-webkit-details-marker { display: none; }
.ft-settings-card > summary::after {
    content: '';
    width: 9px; height: 9px;
    border-right: 2px solid var(--ft-faint);
    border-bottom: 2px solid var(--ft-faint);
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-left: 10px;
    flex-shrink: 0;
}
.ft-settings-card:not([open]) > summary::after { transform: rotate(-45deg); }
.ft-settings-card > summary .form-label { margin-bottom: 0; }
.ft-settings-card[open] > summary { margin-bottom: 0.6rem; }

/* Алерт внутри генератора */
.alert {
    border-radius: var(--radius-s);
    padding: 12px 16px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}
.alert-danger { background: #fdeceb; border: 1px solid #f6c7c4; color: #b23330; }

/* ================= Адаптив ================= */
@media (max-width: 1100px) {
    .ft-layout { grid-template-columns: minmax(0, 1fr); }
    .ft-panel {
        position: static;
        max-height: none;
        overflow: visible;
    }
    .ft-orders { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .ft-orders-empty { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .ft-hero { padding: 18px 20px; border-radius: var(--radius); margin-bottom: 14px; }
    .ft-hero h1 { font-size: 1.2rem; margin-bottom: 5px; }
    .ft-hero-sub { font-size: 0.82rem; margin-bottom: 10px; }
    .ft-pill { font-size: 0.7rem; padding: 4px 10px; }
    .ft-hero-deco { width: 62px; height: 62px; right: 14px; }
    .ft-settings { grid-template-columns: 1fr; }
    .ft-orders { grid-template-columns: 1fr; }

    /* Приоритетный порядок: голос → текст → кнопка → настройки; грид голосов скрыт (выбор через пикер) */
    #ttsForm { display: flex; flex-direction: column; }
    .ft-voice-step { order: 1; }
    .ft-text-step { order: 2; }
    #ttsForm > .ft-generate { order: 3; }
    .ft-balance-line { display: none; }
    .ft-low-balance { align-items:flex-start; font-size:.74rem; }
    #settingsCard { order: 5; }
    #ttsError { order: 6; }

    /* Поиск и фильтр языка в форме на мобильном не нужны — они есть в пикере голоса */
    #ttsForm .voice-toolbar, #ttsForm .tag-cloud, #ttsForm .voice-grid,
    #ttsForm .voice-search-row, #ttsForm .voice-lang-row { display: none !important; }
    .vp-open-btn { display: inline-flex; }
    .clone-btn-mobile { display: inline-flex; width: 100%; justify-content: center; margin: 8px 0 12px; }
    .ft-feats { display: none; }
    /* На мобильном убираем «блок в блоке»: внутренняя рамка панели голоса лишняя */
    .voice-panel { background: transparent; border: none; padding: 0; border-radius: 0; }
    /* Отступы между кнопками выбора/клонирования голоса — иначе склеиваются */
    .selected-voice-chip { margin-bottom: 10px; }
    .vp-open-btn { margin-bottom: 2px; }
    /* «Последний результат» JS переносит над форму на мобильном — отступ снизу */
    .ft-main > .ft-latest { margin-bottom: 14px; }
}

@media (max-width: 576px) {
    .ft-hero { padding: 14px 16px; }
    .ft-hero h1 { font-size: 1.05rem; }
    .ft-hero-sub { font-size: 0.78rem; }
    .voice-grid { grid-template-columns: minmax(0, 1fr); max-height: 400px; }
    .voice-card { animation: none; }
    .vc-wf { display: none; }
    .option-btn { padding: 8px 11px; font-size: 0.8rem; }
    .voice-toolbar { flex-direction: column; align-items: stretch; }
    .voice-tabs { justify-content: space-between; }
    .voice-tab { flex: 1; justify-content: center; padding: 8px 6px; font-size: 0.78rem; }
    .clone-btn { justify-content: center; }
    .ft-generate { padding: 15px; font-size: 1rem; }
    .ft-hero-deco { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .voice-card, .clone-modal, .ft-order { animation: none; }
    .voice-skeleton { animation: none; }
    .voice-card:hover, .clone-btn:hover, .ft-generate:hover { transform: none; }
}

/* ============================================================
   SEO-страница голоса (/voice/<slug>/) — voice.php
   ============================================================ */
.vseo-shell { max-width: 960px; }
.vseo-crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.8rem; color: var(--ft-faint); margin-bottom: 14px; flex-wrap: wrap; }
.vseo-crumbs a { color: var(--teal); text-decoration: none; font-weight: 600; }
.vseo-crumbs a:hover { text-decoration: underline; }
.vseo-crumbs b { color: var(--ft-muted); font-weight: 600; }
.vseo-hero { margin-bottom: 28px; }
.vseo-cta-main { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 13px 26px; font-size: 1rem; font-weight: 700; text-decoration: none; }
.vseo-cta-main .icon-svg { width: 17px; height: 17px; }
.vseo-section { margin-bottom: 28px; }
.vseo-h2 { display: flex; align-items: center; gap: 10px; color: var(--ft-text); font-size: 1.2rem; font-weight: 800; margin: 0 0 14px; }
.vseo-h2 .icon-svg { width: 20px; height: 20px; color: var(--teal); }
.vseo-h3 { display: flex; align-items: center; gap: 9px; color: var(--ft-text); font-size: 1.02rem; font-weight: 800; margin: 0 0 10px; }
.vseo-h3 .icon-svg { width: 18px; height: 18px; color: var(--teal); }
.vseo-muted { color: var(--ft-muted); font-size: 0.9rem; line-height: 1.6; }
.vseo-samples { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.vseo-sample { margin-bottom: 0; }
.vseo-sample-num { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.vseo-sample .ft-player { display: flex; align-items: center; gap: 10px; }
.vseo-sample-text { margin: 10px 0 0; font-size: 0.8rem; color: var(--ft-faint); line-height: 1.5; }
.vseo-variants { display: flex; flex-direction: column; gap: 10px; }
.vseo-variant { display: flex; align-items: center; gap: 14px; margin-bottom: 0; padding: 14px 16px; }
.vseo-variant-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vseo-variant-main .ft-player { display: flex; align-items: center; gap: 10px; max-width: 420px; }
.vseo-variant-desc { font-size: 0.85rem; color: var(--ft-text); font-weight: 600; }
.vseo-variant-stats { display: inline-flex; gap: 12px; margin-left: 10px; font-size: 0.72rem; color: var(--ft-faint); align-items: center; }
.vseo-variant-stats .icon-svg { width: 12px; height: 12px; vertical-align: -2px; margin-right: 3px; }
.vseo-variant-cta { flex-shrink: 0; text-decoration: none; }
.vseo-steps { margin-bottom: 16px; }
.vseo-cta-mid { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; font-weight: 700; text-decoration: none; }
.vseo-cta-mid .icon-svg { width: 16px; height: 16px; }
.vseo-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vseo-two-col .ft-card { margin-bottom: 0; }
.vseo-link { color: var(--teal); font-size: 0.88rem; font-weight: 700; text-decoration: none; }
.vseo-link:hover { text-decoration: underline; }
.vseo-faq { display: flex; flex-direction: column; gap: 10px; }
.vseo-faq-item { margin-bottom: 0; padding: 14px 16px; }
.vseo-faq-item summary {
    cursor: pointer;
    color: var(--ft-text);
    font-weight: 700; font-size: 0.92rem;
    list-style: none;
    position: relative;
    padding-right: 26px;
}
.vseo-faq-item summary::-webkit-details-marker { display: none; }
.vseo-faq-item summary::after {
    content: '';
    position: absolute;
    right: 4px; top: 5px;
    width: 8px; height: 8px;
    border-right: 2px solid var(--ft-faint);
    border-bottom: 2px solid var(--ft-faint);
    transform: rotate(45deg);
    transition: transform 0.2s;
}
.vseo-faq-item[open] summary::after { transform: rotate(225deg); }
.vseo-faq-item p { color: var(--ft-muted); font-size: 0.88rem; line-height: 1.6; margin-top: 10px; }
.vseo-final { text-align: center; }
.vseo-final .btn .icon-svg { width: 17px; height: 17px; }

/* Гостевая модалка «зарегистрируйтесь» на SEO-страницах */
.vseo-modal { position: fixed; inset: 0; z-index: 110000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.vseo-modal-overlay { position: absolute; inset: 0; background: rgba(7, 24, 32, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vseo-modal-card {
    position: relative;
    width: 100%; max-width: 460px;
    background: #fff;
    border-radius: var(--radius-l);
    padding: 30px 26px;
    box-shadow: var(--shadow-l);
    animation: ftModalIn 0.25s ease both;
}
.vseo-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 30px; height: 30px;
    border-radius: 9px;
    border: none;
    background: #eef4f5;
    color: var(--ft-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.16s, transform 0.16s;
    padding: 0;
}
.vseo-modal-close:hover { background: #dfeaec; transform: scale(1.06); }
.vseo-modal-close .icon-svg { width: 15px; height: 15px; }
.vseo-modal-wf { justify-content: center; margin-bottom: 16px; opacity: 0.8; }
.vseo-modal-card h2 { color: var(--ft-text); font-size: 1.35rem; font-weight: 800; text-align: center; margin: 0 0 20px; line-height: 1.25; }
.vseo-modal-feats { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vseo-modal-feats li { display: flex; gap: 12px; align-items: flex-start; color: var(--ft-muted); font-size: 0.9rem; line-height: 1.45; }
.vseo-modal-feats li b { color: var(--ft-text); font-weight: 700; }
.vseo-modal-feats li > .icon-svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--teal); margin-top: 1px; }
.vseo-modal-cta { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 18px; padding: 14px 20px; font-size: 1rem; font-weight: 700; text-decoration: none; }
.vseo-modal-cta .icon-svg { width: 17px; height: 17px; }

/* Громкость на SEO-страницах */
.vseo-head-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 14px; }
.vseo-head-row .vseo-h2 { margin: 0; }
.vseo-volume { display: inline-flex; align-items: center; gap: 8px; color: var(--ft-faint); }
.vseo-volume .icon-svg { width: 16px; height: 16px; }
.vseo-volume input[type="range"] { width: 110px; accent-color: var(--teal); cursor: pointer; }
.vseo-volume-val { font-size: 0.78rem; min-width: 36px; text-align: right; }
.vseo-volume-standalone { margin-bottom: 12px; }

@media (max-width: 560px) {
    .vseo-variant { flex-direction: column; align-items: stretch; }
    .vseo-variant-cta { align-self: stretch; text-align: center; }
    .vseo-two-col { grid-template-columns: 1fr; }
}

/* ============================================================
   Каталог голосов (/voices) — voices.php
   ============================================================ */
.vcat-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.68rem; font-weight: 700;
    background: rgba(13, 148, 136, 0.12);
    color: var(--teal);
}
.vcat-badge .icon-svg { width: 14px; height: 14px; }
.vcat-variants-tag { background: rgba(37, 99, 235, 0.10); color: var(--info); }
.vcat-empty { padding: 40px 0; }
.vcat-seo { margin-bottom: 8px; }

.vcat-pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 2px 0 22px; }
.vcat-pager .cloud-tag { text-decoration: none; min-width: 38px; text-align: center; justify-content: center; }
.vcat-pager-dots { color: var(--ft-faint); align-self: center; padding: 0 2px; }

/* like-статистика на карточках каталога */
.like-stat { display: inline-flex; align-items: center; gap: 4px; }
.like-stat .icon-svg { width: 12px; height: 12px; }

/* ================= Каталог голосов (voices.php) ================= */
.vcat-shell { max-width: 1100px; }
.vcat-hero { margin-bottom: 22px; }
.vcat-filters { margin-bottom: 16px; }
.vcat-count { color: var(--ft-faint); font-size: 0.82rem; font-weight: 600; margin: 0 2px 14px; }
.vcat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.vcat-card {
    display: block; text-decoration: none;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-l); padding: 18px;
    transition: border-color 0.18s, box-shadow 0.2s, transform 0.18s;
}
.vcat-card:hover { border-color: var(--aqua); box-shadow: var(--shadow); transform: translateY(-2px); }
.vcat-card .vc-row { display: flex; align-items: flex-start; gap: 12px; }
.vcat-card .vc-main { flex: 1; min-width: 0; }
.vcat-card .voice-name { color: var(--ft-text); font-weight: 800; font-size: 0.98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcat-card .voice-desc { color: var(--ft-faint); font-size: 0.8rem; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vcat-play { flex-shrink: 0; }
.vcat-play-empty { opacity: 0.35; cursor: default; }
.vcat-badge { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: rgba(13,148,136,0.12); color: var(--teal); }
.vcat-badge .icon-svg { width: 15px; height: 15px; }
.vcat-variants-tag { background: rgba(13,148,136,0.12); color: var(--teal); border-color: transparent; }
.vcat-pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 26px 0 6px; }
.vcat-pager-dots { color: var(--ft-faint); align-self: center; }
.vcat-empty { margin-top: 20px; }
.vcat-seo { margin-top: 26px; }
.vcat-seo .vseo-link { color: var(--teal); font-weight: 700; text-decoration: none; }
.vcat-seo .vseo-link:hover { text-decoration: underline; }

/* Плеер на странице голоса — наследует .ft-player */
.vseo-player { width: 100%; }

/* ================= Ударения ================= */
.stress-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 6px;
}
.stress-btn {
    background: var(--ft-card);
    border: 1px solid var(--ft-border);
    color: var(--ft-text);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    cursor: pointer;
    transition: border-color .15s;
}
.stress-btn:hover { border-color: var(--ft-accent, var(--accent, #4f8cff)); }
.stress-btn:active { transform: scale(.97); }
.stress-tip {
    font-size: 11px;
    color: var(--ft-muted);
    line-height: 1.3;
}
.stress-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 8px;
    padding: 8px;
    background: var(--ft-card);
    border: 1px solid var(--ft-accent, var(--accent, #4f8cff));
    border-radius: 10px;
}
.stress-variant {
    background: transparent;
    border: 1px solid var(--ft-border);
    color: var(--ft-text);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 15px;
    cursor: pointer;
    min-height: 40px; /* удобный тап на мобильном */
}
.stress-variant:hover { border-color: var(--ft-accent, var(--accent, #4f8cff)); }
.stress-variant:active { transform: scale(.96); }
.stress-variant-remove {
    color: var(--ft-muted);
    font-size: 13px;
}

/* Инлайн-результат под кнопкой «Озвучить» — дубль панельной карточки, её не все замечают */
.ft-inline-result {
    padding: 14px 16px;
    border: 1px solid rgba(45, 212, 191, .35);
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(20, 184, 166, .12), rgba(6, 182, 212, .08));
}
.ft-inline-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: .95rem;
}
