/* ═══════════════════════════════════════════════════════════════
   BLACKLIST v2.0 — Dark Forensic
   Консистентен с blacklist_profile.php v2.0
   ═══════════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'Radiotechnika';
    src: url('/fonts/RadiotechnikaRegular.woff2') format('woff2'),
         url('/fonts/RadiotechnikaRegular.woff')  format('woff');
    font-weight: normal; font-style: normal; font-display: swap;
}

/* ── Переменные (унифицированы с profile v2.0) ───────────────── */
:root {
    --bg:         #080c14;
    --surface:    #0e1420;
    --surface2:   #131a28;
    --surface3:   #1a2233;
    --border:     rgba(255,255,255,0.06);
    --border-red: rgba(220,38,38,0.25);
    --red:        #dc2626;
    --red-dim:    #991b1b;
    --red-glow:   rgba(220,38,38,0.35);
    --red-soft:   rgba(220,38,38,0.08);
    --text:       #f0f4ff;
    --text2:      #8b95b0;
    --text3:      #4a5568;
    --accent:     #00b5d9;
    --accent-dim: rgba(0,181,217,0.12);
    --green:      #10b981;
    --r:          12px;
    --r-lg:       18px;
    --shadow:     0 8px 40px rgba(0,0,0,0.55);
    --ease:       cubic-bezier(0.4,0,0.2,1);
}

[data-theme="light"] {
    --bg:         #f1f5f9;
    --surface:    #ffffff;
    --surface2:   #f8fafc;
    --surface3:   #f1f5f9;
    --border:     rgba(0,0,0,0.08);
    --border-red: rgba(220,38,38,0.2);
    --red:        #dc2626;
    --red-dim:    #b91c1c;
    --red-glow:   rgba(220,38,38,0.2);
    --red-soft:   rgba(220,38,38,0.06);
    --text:       #1e293b;
    --text2:      #475569;
    --text3:      #94a3b8;
    --accent:     #0891b2;
    --accent-dim: rgba(8,145,178,0.1);
    --green:      #16a34a;
    --shadow:     0 4px 20px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; }

body.blacklist-page {
    margin: 0; padding: 0;
    background: var(--bg);
    min-height: 100vh;
    font-family: 'DM Sans', 'SF Pro Text', -apple-system, sans-serif;
}

/* Фоновое свечение */
body.blacklist-page::before {
    content: '';
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 70% 40% at 15%  5%, rgba(220,38,38,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 85% 95%, rgba(220,38,38,0.05) 0%, transparent 60%);
}

.bl-main {
    position: relative; z-index: 1;
    min-height: 100vh;
    padding-top: 20px;  /* высота header */
    padding-bottom: 90px;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.bl-hero {
    position: relative;
    padding: 40px 20px 32px;
    text-align: center;
    overflow: hidden;
}
.bl-hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 30% 30%, rgba(220,38,38,0.13) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(220,38,38,0.08) 0%, transparent 50%);
    animation: heroBreath 8s ease-in-out infinite;
}
@keyframes heroBreath { 0%,100%{opacity:1} 50%{opacity:0.55} }

.bl-hero-content { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }

/* Бейдж */
.bl-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 18px;
    background: rgba(220,38,38,0.1); border: 1px solid var(--border-red);
    border-radius: 50px; color: #a20c0cbd;
    font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%,100% { box-shadow: 0 0 0 0   rgba(220,38,38,0.4); }
    50%      { box-shadow: 0 0 0 10px rgba(220,38,38,0); }
}

/* Заголовок */
.bl-title {
    font-family: 'Radiotechnika', Arial, sans-serif;
    font-size: clamp(32px, 9vw, 58px);
    background: linear-gradient(135deg, #fff 0%, #fca5a5 40%, #ef4444 70%, #dc2626 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
    margin: 0 0 12px;
    letter-spacing: 2px; text-transform: uppercase;
    filter: drop-shadow(0 4px 28px rgba(220,38,38,0.45));
    animation: titlePulse 3s ease-in-out infinite;
}
@keyframes titlePulse {
    0%,100% { filter: drop-shadow(0 4px 28px rgba(220,38,38,0.45)); }
    50%      { filter: drop-shadow(0 4px 50px rgba(220,38,38,0.80)); }
}

.bl-subtitle { font-size: 15px; color: var(--text2); margin: 0 0 28px; line-height: 1.55; }

/* Счётчик */
.bl-counter {
    display: inline-flex; flex-direction: column; align-items: center;
    padding: 18px 48px;
    background: linear-gradient(135deg, rgba(220,38,38,0.08), rgba(139,0,0,0.13));
    border: 1px solid var(--border-red); border-radius: var(--r-lg);
    box-shadow: 0 0 32px rgba(220,38,38,0.1);
}
.bl-counter-number {
    font-family: 'Radiotechnika', Arial, sans-serif;
    font-size: 42px; color: var(--red); line-height: 1;
    text-shadow: 0 0 20px var(--red-glow);
}
.bl-counter-label { font-size: 12px; color: var(--text3); margin-top: 6px; letter-spacing: 0.5px; }

/* ═══════════════════════════════════════════════════════════════
   ПЕРЕКЛЮЧАТЕЛЬ ЯЗЫКА
   ═══════════════════════════════════════════════════════════════ */
.bl-lang-switcher {
    display: flex; justify-content: flex-end; gap: 6px;
    max-width: 960px; margin: 0 auto 10px; padding: 0 16px;
}
.bl-lang-btn {
    padding: 5px 14px; border-radius: 50px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text3); font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.2s var(--ease);
}
.bl-lang-btn.active,
.bl-lang-btn:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* ═══════════════════════════════════════════════════════════════
   ПОИСК
   ═══════════════════════════════════════════════════════════════ */
.bl-search-section { padding: 0 16px 24px; position: relative; z-index: 100; }
.bl-search-container { max-width: 580px; margin: 0 auto; position: relative; }

.bl-search-box {
    display: flex; align-items: center; gap: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 0 14px;
    transition: all 0.25s var(--ease); box-shadow: var(--shadow);
}
.bl-search-box:focus-within {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-soft), var(--shadow);
}
.bl-search-icon { color: var(--text3); font-size: 14px; flex-shrink: 0; }
.bl-search-input {
    flex: 1; padding: 14px 12px; background: transparent;
    border: none; outline: none;
    color: var(--text); font-size: 14px; font-family: inherit;
}
.bl-search-input::placeholder { color: var(--text3); }

.bl-search-clear {
    background: none; border: none; cursor: pointer; color: var(--text3);
    padding: 5px 7px; border-radius: 6px;
    display: flex; align-items: center; transition: all 0.15s;
}
.bl-search-clear:hover { color: var(--text); background: var(--surface3); }

.bl-search-loader { display: flex; align-items: center; }
.bl-spinner {
    width: 18px; height: 18px;
    border: 2px solid var(--border); border-top-color: var(--red);
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Дропдаун результатов */
.bl-search-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); overflow: hidden;
    box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-6px);
    pointer-events: none; transition: all 0.22s var(--ease); z-index: 200;
}
.bl-search-results.active { opacity: 1; transform: translateY(0); pointer-events: auto; }

.bl-search-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px; cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.bl-search-item:last-child { border-bottom: none; }
.bl-search-item:hover,
.bl-search-item.active { background: var(--surface2); }

.bl-search-item-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: var(--red-soft); border: 1px solid var(--border-red);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; color: var(--red); flex-shrink: 0; overflow: hidden;
}
.bl-search-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bl-search-item-info { flex: 1; min-width: 0; }
.bl-search-item-name  { font-size: 14px; font-weight: 600; color: var(--text); margin: 0 0 2px; }
.bl-search-item-phone { font-size: 12px; color: var(--text2); margin: 0; }
.bl-search-item-badge {
    background: var(--red); color: white;
    font-size: 10px; font-weight: 800; letter-spacing: 0.5px;
    padding: 3px 9px; border-radius: 50px; text-transform: uppercase; flex-shrink: 0;
}
.bl-highlight { background: rgba(220,38,38,0.22); color: var(--red); border-radius: 3px; padding: 0 2px; }

.bl-search-empty {
    padding: 28px 20px; text-align: center; color: var(--text3); font-size: 13px;
}
.bl-search-empty i { font-size: 26px; display: block; margin-bottom: 8px; opacity: 0.45; }
.bl-search-empty-success { color: var(--text2); }
.bl-search-empty-success i { color: var(--green); opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   КНОПКА ДОБАВЛЕНИЯ
   ═══════════════════════════════════════════════════════════════ */
.bl-actions { text-align: center; padding: 0 16px 28px; }

.bl-btn-add {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 13px 30px;
    background: linear-gradient(135deg, var(--red), var(--red-dim));
    color: white; border: none; border-radius: 50px;
    font-size: 14px; font-weight: 700; letter-spacing: 0.3px;
    cursor: pointer; transition: all 0.25s var(--ease);
    box-shadow: 0 4px 20px rgba(220,38,38,0.35);
}
.bl-btn-add:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(220,38,38,0.55); }
.bl-btn-add:active { transform: translateY(0); }

.bl-login-prompt {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 12px 22px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 50px; font-size: 13px; color: var(--text2);
}
.bl-login-prompt a { color: var(--red); font-weight: 600; text-decoration: none; }
.bl-login-prompt a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   СЕТКА КАРТОЧЕК
   ═══════════════════════════════════════════════════════════════ */
.bl-list-section { padding: 0 16px; max-width: 960px; margin: 0 auto; }

.bl-section-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 700; color: var(--text3);
    letter-spacing: 1.5px; text-transform: uppercase;
    margin: 0 0 16px;
}
.bl-section-title i { color: var(--red); font-size: 13px; }
.bl-section-title::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.bl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 12px;
}

/* ── Карточка ─────────────────────────────────────────────────── */
.bl-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); overflow: hidden; cursor: pointer;
    transition: all 0.25s var(--ease);
    box-shadow: 0 4px 18px rgba(0,0,0,0.3);
    position: relative;
    animation: cardIn 0.4s ease both;
}
.bl-card:nth-child(1) { animation-delay: 0.00s; }
.bl-card:nth-child(2) { animation-delay: 0.05s; }
.bl-card:nth-child(3) { animation-delay: 0.09s; }
.bl-card:nth-child(4) { animation-delay: 0.13s; }
.bl-card:nth-child(5) { animation-delay: 0.17s; }
.bl-card:nth-child(n+6) { animation-delay: 0.20s; }
@keyframes cardIn { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

/* красная полоса hover */
.bl-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.bl-card:hover {
    border-color: var(--border-red);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.45), 0 0 0 1px var(--border-red);
}
.bl-card:hover::before { opacity: 1; }

/* шапка карточки */
.bl-card-header {
    display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px;
}
.bl-card-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--red-soft); border: 2px solid var(--border-red);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--red); flex-shrink: 0; overflow: hidden;
}
.bl-card-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.5); }
.bl-card-info { flex: 1; min-width: 0; }
.bl-card-name {
    font-size: 15px; font-weight: 700; color: var(--text);
    margin: 0 0 3px !important; padding: 0 !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bl-card-phone {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--text2); margin: 0;
}
.bl-card-phone i { font-size: 10px; color: var(--text3); }
.bl-card-badge {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--red-soft); border: 1px solid var(--border-red);
    display: flex; align-items: center; justify-content: center;
    color: var(--red); font-size: 12px; flex-shrink: 0;
}

.bl-card-body { padding: 0 14px 10px; }
.bl-card-desc {
    font-size: 12.5px; color: var(--text3); line-height: 1.5; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.bl-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; border-top: 1px solid var(--border);
}
.bl-card-date {
    display: flex; align-items: center; gap: 5px;
    font-size: 11px; color: var(--text3);
}
.bl-card-date i { font-size: 10px; }

.bl-card-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 8px;
    background: var(--red-soft); border: 1px solid var(--border-red);
    color: var(--red); font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.bl-card-btn:hover { background: var(--red); color: white; border-color: var(--red); }
.bl-card-btn i { font-size: 10px; transition: transform 0.2s; }
.bl-card-btn:hover i { transform: translateX(3px); }

.bl-empty { text-align: center; padding: 60px 20px; color: var(--text3); }
.bl-empty i { font-size: 36px; display: block; margin-bottom: 12px; opacity: 0.3; }

/* ═══════════════════════════════════════════════════════════════
   МОДАЛКА (общие стили)
   ═══════════════════════════════════════════════════════════════ */
.bl-modal {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: flex-end; justify-content: center;
}
@media (min-width: 600px) { .bl-modal { align-items: center; } }

.bl-modal-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.78); backdrop-filter: blur(4px);
}
.bl-modal-container {
    position: relative; z-index: 1;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    width: 100%; max-width: 520px;
    max-height: 92dvh; overflow-y: auto;
    box-shadow: 0 -8px 60px rgba(0,0,0,0.65);
    animation: slideUp 0.3s cubic-bezier(0.34,1.56,0.64,1);
    scrollbar-width: thin; scrollbar-color: var(--surface3) transparent;
}
.bl-modal-container::-webkit-scrollbar { width: 4px; }
.bl-modal-container::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 4px; }

@media (min-width: 600px) {
    .bl-modal-container { border-radius: var(--r-lg); animation: modalZoom 0.25s ease; }
    @keyframes modalZoom { from{transform:scale(0.93);opacity:0} to{transform:scale(1);opacity:1} }
}
@keyframes slideUp { from{transform:translateY(100%);opacity:0} to{transform:translateY(0);opacity:1} }

.bl-modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--surface2); border: 1px solid var(--border);
    color: var(--text2); font-size: 13px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s;
}
.bl-modal-close:hover { background: var(--red-soft); color: var(--red); border-color: var(--border-red); }
.bl-modal-content { padding: 28px 22px; }

/* Хедер модалки добавления */
.bl-modal-header { text-align: center; margin-bottom: 22px; }
.bl-modal-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--red-soft); border: 1px solid var(--border-red);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: var(--red); margin: 0 auto 14px;
}
.bl-modal-title { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 5px; }
.bl-modal-subtitle { font-size: 13px; color: var(--text2); margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   ФОРМА ДОБАВЛЕНИЯ
   ═══════════════════════════════════════════════════════════════ */
.bl-form { display: flex; flex-direction: column; gap: 14px; }
.bl-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .bl-form-row { grid-template-columns: 1fr; } }

.bl-form-group { display: flex; flex-direction: column; gap: 6px; }
.bl-form-group label {
    font-size: 11px; font-weight: 700; color: var(--text2);
    text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 6px;
}
.bl-form-group label i { color: var(--red); font-size: 11px; }
.bl-form-group input,
.bl-form-group textarea {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--r); padding: 11px 14px;
    color: var(--text); font-size: 14px; font-family: inherit;
    outline: none; transition: border-color 0.2s; width: 100%;
}
.bl-form-group input::placeholder,
.bl-form-group textarea::placeholder { color: var(--text3); }
.bl-form-group input:focus,
.bl-form-group textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.bl-form-group textarea { resize: vertical; min-height: 90px; line-height: 1.55; }

/* Загрузка фото */
.bl-file-upload {
    background: var(--surface2); border: 1.5px dashed var(--border);
    border-radius: var(--r); padding: 22px;
    text-align: center; cursor: pointer; transition: all 0.2s;
}
.bl-file-upload:hover, .bl-file-upload.dragover {
    border-color: var(--red); background: var(--red-soft);
}
.bl-file-upload-content {
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    color: var(--text3); font-size: 13px;
}
.bl-file-upload-content i { font-size: 26px; }
.bl-file-preview img {
    max-width: 100%; max-height: 160px; border-radius: 10px;
    border: 1px solid var(--border); object-fit: cover;
}

/* Анонимность */
.bl-anon-row { margin-top: -4px; }
.bl-checkbox-label {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer; font-size: 13px; color: var(--text2); user-select: none;
}
.bl-checkbox-label input[type="checkbox"] { display: none; }
.bl-checkbox-custom {
    width: 18px; height: 18px; border-radius: 5px;
    border: 2px solid var(--border); background: var(--surface2);
    flex-shrink: 0; transition: all 0.2s; position: relative;
}
.bl-checkbox-label input:checked + .bl-checkbox-custom { background: var(--red); border-color: var(--red); }
.bl-checkbox-label input:checked + .bl-checkbox-custom::after {
    content: ''; position: absolute; left: 3px; top: 0px;
    width: 5px; height: 9px; border: 2px solid white;
    border-top: none; border-left: none; transform: rotate(45deg);
}
.bl-checkbox-label i { color: var(--red); }

/* Кнопка отправки */
.bl-form-footer { margin-top: 4px; }
.bl-btn-submit {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, var(--red), var(--red-dim));
    color: white; border: none; border-radius: var(--r);
    font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(220,38,38,0.3);
}
.bl-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(220,38,38,0.5); }
.bl-btn-submit:active { transform: none; }
.bl-btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }
.bl-btn-loader { display: inline-flex; align-items: center; }

/* ── Успех ────────────────────────────────────────────────────── */
.bl-form-success { text-align: center; padding: 20px 10px 10px; }
.bl-success-icon { width: 64px; height: 64px; margin: 0 auto 16px; }
.bl-success-icon svg { width: 100%; height: 100%; }
.bl-form-success h3 { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.bl-form-success p  { font-size: 14px; color: var(--text2); margin: 0; }

/* ── Дубликат ─────────────────────────────────────────────────── */
.bl-form-duplicate { text-align: center; padding: 10px 0; }
.bl-duplicate-icon { font-size: 40px; color: #f59e0b; margin-bottom: 12px; }
.bl-form-duplicate h3 { font-size: 18px; font-weight: 800; color: var(--text); margin: 0 0 12px; }
.bl-duplicate-info {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--r); padding: 12px 16px;
    font-size: 13px; color: var(--text2); text-align: left; margin-bottom: 14px;
}
.bl-duplicate-info p { margin: 0 0 5px; }
.bl-duplicate-info p:last-child { margin: 0; }
.bl-duplicate-actions { display: flex; gap: 10px; }
.bl-btn-whatsapp {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px; background: rgba(37,211,102,0.1);
    border: 1px solid rgba(37,211,102,0.25); border-radius: var(--r);
    color: #25d366; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all 0.2s;
}
.bl-btn-whatsapp:hover { background: rgba(37,211,102,0.2); }
.bl-btn-back {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px; background: var(--surface2);
    border: 1px solid var(--border); border-radius: var(--r);
    color: var(--text2); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.bl-btn-back:hover { border-color: var(--border-red); color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   ПРОФИЛЬ В МОДАЛКЕ (быстрый просмотр)
   ═══════════════════════════════════════════════════════════════ */
.bl-profile-header {
    padding: 26px 22px 20px; text-align: center;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(160deg, #1a0808 0%, #120a0a 50%, var(--surface) 100%);
    position: relative;
}
/* красная шапка-штамп */
.bl-profile-header::before {
    content: '⚠ ЧЁРНЫЙ СПИСОК ⚠';
    position: absolute; top: 0; left: 0; right: 0;
    background: var(--red); color: white;
    font-size: 9px; font-weight: 800; letter-spacing: 2px;
    text-align: center; padding: 5px; text-transform: uppercase;
}

.bl-profile-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    margin: 18px auto 14px;
    background: var(--red-soft); border: 3px solid var(--red);
    display: flex; align-items: center; justify-content: center;
    font-size: 34px; color: var(--red); overflow: hidden;
    box-shadow: 0 0 0 5px var(--red-soft), 0 0 28px var(--red-glow);
}
.bl-profile-avatar img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4); }

.bl-profile-status {
    display: inline-block; padding: 4px 14px;
    background: var(--red); color: white; border-radius: 50px;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 10px; animation: badgePulse 2s ease-in-out infinite;
}
.bl-profile-name  { font-size: 20px; font-weight: 800; color: var(--text); margin: 0 0 7px; }
.bl-profile-phone { font-size: 15px; color: var(--text2); margin: 0; }
.bl-profile-phone a { color: inherit; text-decoration: none; }

.bl-profile-body { padding: 18px 20px; }
.bl-profile-section-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; color: var(--red);
    text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px;
}
.bl-profile-description {
    background: rgba(220,38,38,0.06); border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0; padding: 12px 16px;
    color: #d4a5a5; line-height: 1.6; font-size: 14px; margin: 0 0 16px;
}
.bl-profile-meta-group { border-top: 1px solid var(--border); padding-top: 12px; }
.bl-profile-meta {
    display: flex; align-items: center; gap: 7px;
    font-size: 12px; color: var(--text3); margin: 0 0 6px;
}
.bl-profile-meta:last-child { margin: 0; }
.bl-author-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.bl-author-link:hover { text-decoration: underline; }

/* Действия */
.bl-profile-actions {
    padding: 14px 20px; border-top: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 10px;
}
.bl-btn-profile {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--red), var(--red-dim));
    border: none; border-radius: 7px; color: white;
    font-size: 11.5px; font-weight: 600; text-decoration: none;
    cursor: pointer; transition: all 0.18s;
    box-shadow: 0 2px 8px rgba(220,38,38,0.18);
    min-width: 0;
}
.bl-btn-profile:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(220,38,38,0.5); }

/* Мини-форма отзыва */
.bl-review-form-mini {
    background: rgba(220,38,38,0.04); border: 1px solid var(--border-red);
    border-radius: 12px; padding: 14px;
}
.bl-review-form-mini h4 {
    margin: 0 0 10px; font-size: 11px; font-weight: 700; color: var(--red);
    display: flex; align-items: center; gap: 7px;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.bl-review-mini-form { display: flex; flex-direction: column; gap: 8px; }
.bl-review-mini-form textarea {
    width: 100%; min-height: 70px; padding: 10px 12px;
    background: var(--surface3); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 13px;
    font-family: inherit; resize: vertical; outline: none;
}
.bl-review-mini-form textarea:focus { border-color: var(--red); }
.bl-anon-check { font-size: 12px; color: var(--text3); }
.bl-btn-review {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    width: 100%; padding: 10px;
    background: var(--red-soft); border: 1px solid var(--border-red);
    border-radius: 8px; color: var(--red);
    font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.bl-btn-review:hover { background: var(--red); color: white; }
.bl-btn-review:disabled { opacity: 0.55; cursor: not-allowed; }

.bl-review-msg { font-size: 12px; padding: 6px 0; }
.bl-review-ok  { color: var(--green); display: flex; align-items: center; gap: 5px; }
.bl-review-err { color: var(--red);   display: flex; align-items: center; gap: 5px; }

/* Список отзывов */
.bl-reviews-section { margin-top: 14px; }
.bl-reviews-title {
    display: flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; color: var(--accent);
    text-transform: uppercase; letter-spacing: 1px; margin: 0 0 10px;
}
.bl-review-item {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: 10px; padding: 12px; margin-bottom: 8px;
}
.bl-review-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.bl-review-author {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--text);
}
.bl-review-author i { color: var(--text3); }
.bl-review-date { font-size: 11px; color: var(--text3); }
.bl-review-text { font-size: 13px; color: var(--text2); line-height: 1.5; }

/* Загрузка/ошибка */
.bl-modal-loading,
.bl-modal-error {
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; padding: 48px 20px; gap: 14px;
    color: var(--text2); font-size: 14px; text-align: center;
}
.bl-modal-error { color: var(--red); }
.bl-modal-error i { font-size: 34px; }
.bl-login-hint { text-align: center; font-size: 13px; color: var(--text3); padding: 10px; }
.bl-login-hint a { color: var(--red); text-decoration: none; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════
   АДАПТИВ
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .bl-grid { grid-template-columns: 1fr; }
    .bl-section-title { font-size: 11px; }
    .bl-modal-content { padding: 22px 18px; }
    .bl-profile-header { padding: 22px 18px 16px; }
    .bl-profile-avatar { width: 72px; height: 72px; font-size: 28px; }
    .bl-profile-name { font-size: 17px; }
    .bl-counter { padding: 16px 32px; }
    .bl-counter-number { font-size: 34px; }
}
/* ═══════════════════════════════════════════════════════════════
   СВЕТЛАЯ ТЕМА — компонентные переопределения
   ═══════════════════════════════════════════════════════════════ */

/* Фоновое свечение — приглушённое */
[data-theme="light"] body.blacklist-page::before {
    background:
        radial-gradient(ellipse 70% 40% at 15%  5%, rgba(220,38,38,0.04) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 85% 95%, rgba(220,38,38,0.03) 0%, transparent 60%);
}

/* Hero bg */
[data-theme="light"] .bl-hero-bg {
    background:
        radial-gradient(circle at 30% 30%, rgba(220,38,38,0.06) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(220,38,38,0.04) 0%, transparent 50%);
}

/* Заголовок — красный градиент на белом */
[data-theme="light"] .bl-title {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 60%, #7f1d1d 100%);
    -webkit-background-clip: text; background-clip: text;
    filter: none;
    animation: none;
}

/* Счётчик */
[data-theme="light"] .bl-counter {
    background: rgba(220,38,38,0.05);
    box-shadow: 0 4px 16px rgba(220,38,38,0.08);
}
[data-theme="light"] .bl-counter-number {
    text-shadow: none;
}

/* Кнопка добавить */
[data-theme="light"] .bl-btn-add {
    box-shadow: 0 4px 14px rgba(220,38,38,0.25);
}
[data-theme="light"] .bl-btn-add:hover {
    box-shadow: 0 8px 24px rgba(220,38,38,0.35);
}

/* Поиск */
[data-theme="light"] .bl-search-box {
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
[data-theme="light"] .bl-search-box:focus-within {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.1), 0 2px 12px rgba(0,0,0,0.07);
}
[data-theme="light"] .bl-search-clear:hover {
    background: #f1f5f9;
    color: #1e293b;
}
[data-theme="light"] .bl-search-item:hover,
[data-theme="light"] .bl-search-item.active {
    background: #f8fafc;
}
[data-theme="light"] .bl-highlight {
    background: rgba(220,38,38,0.1);
}

/* Карточки */
[data-theme="light"] .bl-card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
[data-theme="light"] .bl-card:hover {
    box-shadow: 0 8px 24px rgba(220,38,38,0.1), 0 0 0 1px var(--border-red);
}
[data-theme="light"] .bl-card-desc { color: #64748b; }

/* Модалки */
[data-theme="light"] .bl-modal-overlay {
    background: rgba(30,41,59,0.5);
}
[data-theme="light"] .bl-modal-container {
    box-shadow: 0 -4px 40px rgba(0,0,0,0.12);
}
[data-theme="light"] .bl-modal-close:hover {
    background: rgba(220,38,38,0.08);
}

/* Форма */
[data-theme="light"] .bl-form-group input,
[data-theme="light"] .bl-form-group textarea {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #1e293b;
}
[data-theme="light"] .bl-form-group input:focus,
[data-theme="light"] .bl-form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}
[data-theme="light"] .bl-file-upload {
    background: #f8fafc;
    border-color: #e2e8f0;
}
[data-theme="light"] .bl-file-upload:hover,
[data-theme="light"] .bl-file-upload.dragover {
    background: rgba(220,38,38,0.04);
}
[data-theme="light"] .bl-checkbox-custom {
    background: #ffffff;
    border-color: #e2e8f0;
}
[data-theme="light"] .bl-btn-submit {
    box-shadow: 0 4px 14px rgba(220,38,38,0.2);
}

/* Дубликат */
[data-theme="light"] .bl-duplicate-info {
    background: #f8fafc;
    border-color: #e2e8f0;
}
[data-theme="light"] .bl-btn-back {
    background: #f8fafc;
}
[data-theme="light"] .bl-btn-back:hover {
    background: #f1f5f9;
    color: #1e293b;
}

/* Профиль — шапка */
[data-theme="light"] .bl-profile-header {
    background: linear-gradient(160deg, #fff1f2 0%, #fef2f2 50%, var(--surface) 100%);
}
[data-theme="light"] .bl-profile-description {
    background: rgba(220,38,38,0.04);
    color: #7f1d1d;
}
[data-theme="light"] .bl-profile-avatar {
    box-shadow: 0 0 0 5px rgba(220,38,38,0.08), 0 0 20px rgba(220,38,38,0.12);
}

/* Отзывы */
[data-theme="light"] .bl-review-item {
    background: #f8fafc;
    border-color: #e2e8f0;
}
[data-theme="light"] .bl-review-mini-form textarea {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #1e293b;
}
[data-theme="light"] .bl-review-mini-form textarea:focus {
    border-color: #dc2626;
}
[data-theme="light"] .bl-review-form-mini {
    background: rgba(220,38,38,0.03);
}

/* Логин подсказка */
[data-theme="light"] .bl-login-prompt {
    background: #ffffff;
    border-color: #e2e8f0;
}