/* ============================================================
   🃏 КАРТОЧКА WEBHOOK — НА ВСЮ ВЫСОТУ
   ============================================================ */

.card.discord-webhook-page {
    justify-content: flex-start;
    height: 100%;
}

.card.discord-webhook-page h3 {
    flex-shrink: 0;
}

/* ============================================================
   🤖 DISCORD WEBHOOK СТИЛИ
   ============================================================ */

.discord-webhook-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ===== ПОДВКЛАДКИ ===== */
.discord-subtabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    width: fit-content;
    position: relative;
    flex-shrink: 0;
}

.discord-subtab {
    padding: 4px 16px;
    height: 28px;
    background: transparent;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.discord-subtab:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.discord-subtab.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.discord-subtab.banned.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* ===== КРАСНЫЙ БЕЙДЖ ===== */
.discord-subtab .badge-banned {
    display: none;
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.discord-subtab .badge-banned.show {
    display: flex;
}

/* ===== СТАТУС-БАР ===== */
.discord-status-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    flex-wrap: wrap;
    flex-shrink: 0;
}

.discord-status-label {
    font-size: 13px;
    font-weight: 600;
    color: #94a3b8;
}

.discord-status-icon {
    font-size: 16px;
    line-height: 1;
    transition: all 0.3s ease;
}

.discord-status-icon.online {
    color: #4ade80;
}

.discord-status-icon.offline {
    color: #ef4444;
}

.discord-status-icon.connecting {
    color: #fbbf24;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.discord-status-spacer {
    flex: 1;
}

/* ===== МОНОКНОПКА ===== */
.discord-mod-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    min-height: 34px;
    box-sizing: border-box;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 160px;
    flex-shrink: 0;
}

.discord-mod-btn:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.discord-mod-btn:active {
    transform: scale(0.98);
}

.discord-mod-off {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.25);
    background: rgba(167, 139, 250, 0.06);
}

.discord-mod-off:hover {
    border-color: rgba(167, 139, 250, 0.4);
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.08);
}

.discord-mod-on {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.25);
    background: rgba(251, 191, 36, 0.06);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.08);
}

.discord-mod-on:hover {
    border-color: rgba(251, 191, 36, 0.4);
    box-shadow: 0 0 40px rgba(251, 191, 36, 0.12);
}

.discord-mod-btn .mod-gear {
    font-size: 13px;
    opacity: 0.25;
    transition: opacity 0.2s, transform 0.2s;
    cursor: pointer;
    padding: 0 2px;
    flex-shrink: 0;
    margin-left: 6px;
}

.discord-mod-btn:hover .mod-gear {
    opacity: 0.6;
}

.discord-mod-btn .mod-gear:hover {
    opacity: 1;
    color: #4facfe;
    transform: rotate(30deg);
}

/* ============================================================
   📋 ВКЛАДКИ DISCORD (НОВЫЕ)
   ============================================================ */

.discord-tab-content {
    display: none;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.discord-tab-content.active {
    display: flex;
}

.discord-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-shrink: 0;
}

.discord-tab-title {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

/* ===== ТУМБЛЕР «СТОП ПРИ БАНЕ» (вкладка BANNED) ===== */
.discord-stop-on-ban {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 7px;
    color: #fca5a5;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.discord-stop-on-ban:hover {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}

.discord-stop-on-ban-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #64748b;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.discord-stop-on-ban.on {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.45);
    color: #86efac;
}

.discord-stop-on-ban.on:hover {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.65);
    color: #bbf7d0;
}

.discord-stop-on-ban.on .discord-stop-on-ban-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

/* ===== СПИСОК АККАУНТОВ ===== */
.discord-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 4px 4px 0;
}

/* Кастомный скроллбар */
.discord-accounts-list::-webkit-scrollbar {
    width: 4px;
}

.discord-accounts-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 2px;
}

.discord-accounts-list::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.3);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.discord-accounts-list::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.5);
}

/* ============================================================
   📋 СТРОКА АККАУНТА — С НОМЕРОМ
   ============================================================ */
.discord-account-item {
    display: grid;
    grid-template-columns: 20px 1fr 1.2fr 0.8fr 0.8fr 0.8fr 0.6fr;
    gap: 8px;
    padding: 8px 14px 8px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    font-size: 12px;
    align-items: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.discord-account-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.discord-account-item .acc-number {
    color: #64748b;
    font-weight: 600;
    font-size: 12px;
    text-align: left;
    padding-left: 10px;
}

.discord-account-item .acc-status {
    font-weight: 600;
    text-align: right;
}

.discord-account-item .acc-status.online {
    color: #4ade80;
}

.discord-account-item .acc-status.banned {
    color: #ef4444;
}

.discord-account-item .acc-status.offline {
    color: #fbbf24;
}

.discord-empty-msg {
    text-align: center;
    color: #4a5568;
    padding: 20px 0;
    font-size: 13px;
}

/* ===== КНОПКИ ОЧИСТКИ (ВНИЗУ ВКЛАДОК) ===== */
.discord-clear-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    padding: 0 4px;
    flex-shrink: 0;
}

.btn-clear-list {
    padding: 6px 20px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-clear-list:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.btn-clear-list:active {
    transform: scale(0.97);
}

/* ============================================================
   МОДАЛКА НАСТРОЕК DISCORD
   ============================================================ */

.discord-settings-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 11, 18, 0.8);
    backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
}

.discord-settings-modal-overlay.active {
    display: flex;
}

.discord-settings-modal {
    background: #161925;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    width: 420px;
    max-width: 95%;
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.discord-settings-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-settings-modal-title {
    font-size: 14px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.discord-settings-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    cursor: pointer;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.discord-settings-modal-close:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.discord-settings-modal-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}

.discord-settings-modal-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.discord-settings-modal-row label {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.discord-settings-modal-row input[type="password"],
.discord-settings-modal-row input[type="text"] {
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.discord-settings-modal-row input:focus {
    border-color: #a855f7;
}

.discord-settings-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.discord-settings-checkbox-row label {
    font-size: 13px;
    font-weight: 500;
    color: #c8d0dc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.discord-settings-checkbox-row input[type="checkbox"] {
    display: none;
}

.discord-settings-checkbox-row .checkmark {
    width: 20px;
    height: 20px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.discord-settings-checkbox-row input[type="checkbox"]:checked + .checkmark {
    background: #a855f7;
    border-color: #a855f7;
}

.discord-settings-checkbox-row input[type="checkbox"]:checked + .checkmark::after {
    content: "✓";
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.discord-settings-modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.discord-settings-modal-confirm {
    padding: 10px 36px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discord-settings-modal-confirm:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    transform: translateY(-1px);
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 600px) {
    .discord-status-bar {
        flex-wrap: wrap;
        gap: 6px;
    }
    .discord-status-spacer {
        display: none;
    }
    .discord-mod-btn {
        min-width: 130px;
        padding: 4px 12px;
        font-size: 11px;
        min-height: 30px;
    }
    .discord-account-item {
        grid-template-columns: 18px 1fr 1fr;
        gap: 4px;
        font-size: 11px;
        padding: 6px 10px 6px 0;
    }
    .discord-account-item .acc-status {
        grid-column: span 3;
        text-align: center;
    }
    .discord-settings-modal {
        width: 95%;
        padding: 18px;
    }
}