.rls-wrap .rls-container { display:flex; flex-wrap:wrap; gap:20px; }
.rls-box { background:#fff; border:1px solid #c3c4c7; padding:20px; border-radius:4px; margin-bottom:20px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.rls-box h2 { margin-top:0; padding-bottom:10px; border-bottom:1px solid #f0f0f1; font-size: 1.3em; }
.rls-mode-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:12px; margin-top:16px; }
.rls-mode-card { display:flex; flex-direction:column; gap:8px; padding:16px; border:1px solid #dcdcde; border-radius:8px; background:#fff; cursor:pointer; transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.rls-mode-card:hover { border-color:#2271b1; box-shadow:0 4px 14px rgba(34,113,177,.08); transform:translateY(-1px); }
.rls-mode-card.is-selected { border-color:#2271b1; box-shadow:0 0 0 2px rgba(34,113,177,.12); background:#f0f6fc; }
.rls-mode-card input { margin:0; }
.rls-mode-card-title { font-weight:700; color:#1d2327; }
.rls-mode-card-text { color:#50575e; line-height:1.5; }
.rls-mode-notice, .rls-mode-inline-note { margin-top:14px; padding:12px 14px; border-radius:8px; background:#f6f7f7; color:#1d2327; border:1px solid #dcdcde; }
.rls-mode-notice-warning { background:#fff8e5; border-color:#f0ad4e; }

.rls-nav-tabs { margin-bottom: 15px !important; }
.rls-tab-content { display: none; }
.rls-tab-content.active { display: block; }

.rls-ip-input-group { display: flex; gap: 5px; margin-bottom: 15px; }
.rls-ip-input-group input { flex-grow: 1; }
.rls-ip-list { border: 1px solid #dcdcde; background: #fff; border-radius: 4px; max-height: 250px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.rls-ip-list li { padding: 8px 12px; border-bottom: 1px solid #f0f0f1; display: flex; justify-content: space-between; align-items: center; font-family: monospace; font-size: 13px; margin:0; }
.rls-ip-list li:last-child { border-bottom: none; }
.rls-ip-list li:nth-child(even) { background-color: #fafafa; }
.rls-del-ip { color: #dc3545; text-decoration: none; font-weight: bold; font-size: 20px; line-height: 1; padding: 0 5px; }
.rls-del-ip:hover { color: #a71d2a; }

.rls-badge-log { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; }
.rls-badge-log.red { background: #d63638; }
.rls-badge-log.orange { background: #f0ad4e; }
.rls-badge-log.gray { background: #646970; }

.rls-scan-controls { display:flex; gap:10px; align-items:center; margin-top: 15px; }
.rls-scan-progress-area { margin-top:20px; display: none; }
#rls-scan-progress-container { background-color:#e9ecef; border-radius:4px; overflow:hidden; height: 20px; width: 100%; margin-top: 5px; }
#rls-scan-progress-bar { width:0; height:100%; background-color:#2271b1; text-align:center; line-height:20px; color:#fff; font-size: 11px; transition:width .4s ease; }
#rls-scan-status { margin-top: 5px; font-style: italic; color: #646970; }
.status-cell .spinner { float: none; vertical-align: middle; margin-right: 5px; }
#rls-scan-results tr.is-clean { background-color: #e7f7e8 !important; }
#rls-scan-results tr.is-danger { background-color: #fbeaea !important; }
/* --- СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ДЕАКТИВАЦИИ --- */
.rls-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 99999;
}
.rls-modal-content {
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 500px; max-width: 90%; background: #fff; padding: 30px;
    border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); z-index: 100000;
}
.rls-modal-header { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.rls-modal-header h2 { margin: 0; font-size: 22px; color: #1d2327; }

.rls-options { margin: 20px 0; display: flex; flex-direction: column; gap: 15px; }
.rls-opt {
    display: flex; gap: 10px; padding: 15px; border: 1px solid #ddd;
    border-radius: 6px; cursor: pointer; transition: 0.2s;
}
.rls-opt:hover { border-color: #2271b1; background: #f0f6fc; }
.rls-opt input { margin-top: 4px; }
.rls-opt strong { display: block; margin-bottom: 4px; font-size: 14px; }
.rls-opt .desc { font-size: 12px; color: #646970; line-height: 1.4; display: block; }
.rls-opt.warning:hover { border-color: #d63638; background: #fff8e5; }

.rls-offer-box {
    background: #f6f7f7; border: 1px dashed #2271b1; padding: 15px;
    border-radius: 6px; margin: 20px 0; text-align: center;
}
.rls-tg-btn { display: inline-flex !important; align-items: center; gap: 5px; margin-top: 10px !important; }

.rls-modal-footer {
    margin-top: 25px; padding-top: 20px; border-top: 1px solid #f0f0f1;
    display: flex; justify-content: space-between; align-items: center;
}

/* --- ОСТАЛЬНЫЕ СТИЛИ (БЕЗ ИЗМЕНЕНИЙ) --- */
.rls-wrap .rls-container { display:flex; flex-wrap:wrap; gap:20px; }
.rls-box { background:#fff; border:1px solid #c3c4c7; padding:20px; border-radius:4px; margin-bottom:20px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.rls-box h2 { margin-top:0; padding-bottom:10px; border-bottom:1px solid #f0f0f1; font-size: 1.3em; }
.rls-nav-tabs { margin-bottom: 15px !important; }
.rls-tab-content { display: none; }
.rls-tab-content.active { display: block; }
.rls-ip-input-group { display: flex; gap: 5px; margin-bottom: 15px; }
.rls-ip-input-group input { flex-grow: 1; }
.rls-ip-list { border: 1px solid #dcdcde; background: #fff; border-radius: 4px; max-height: 250px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.rls-ip-list li { padding: 8px 12px; border-bottom: 1px solid #f0f0f1; display: flex; justify-content: space-between; align-items: center; font-family: monospace; font-size: 13px; margin:0; }
.rls-del-ip { color: #dc3545; text-decoration: none; font-weight: bold; font-size: 20px; line-height: 1; padding: 0 5px; }
.rls-badge-log { padding: 2px 6px; border-radius: 4px; font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; }
.rls-badge-log.red { background: #d63638; }
.rls-badge-log.orange { background: #f0ad4e; }
.rls-badge-log.gray { background: #646970; }
.rls-scan-controls { display:flex; gap:10px; align-items:center; margin-top: 15px; }
.rls-scan-progress-area { margin-top:20px; display: none; }
#rls-scan-progress-container { background-color:#e9ecef; border-radius:4px; overflow:hidden; height: 20px; width: 100%; margin-top: 5px; }
#rls-scan-progress-bar { width:0; height:100%; background-color:#2271b1; text-align:center; line-height:20px; color:#fff; font-size: 11px; transition:width .4s ease; }
#rls-scan-status { margin-top: 5px; font-style: italic; color: #646970; }
.status-cell .spinner { float: none; vertical-align: middle; margin-right: 5px; }
#rls-scan-results tr.is-clean { background-color: #e7f7e8 !important; }
#rls-scan-results tr.is-danger { background-color: #fbeaea !important; }
/* --- СТИЛИ ДЛЯ СКАНЕРА (FIXED LAYOUT) --- */

/* Контейнер заголовка и кнопок */
.rls-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f1;
    margin-bottom: 20px;
}

/* Левая часть (Текст) */
.rls-header-desc {
    flex: 1;
}
.rls-header-desc h3 {
    margin-top: 0;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Правая часть (Кнопки) */
.rls-header-actions {
    display: flex;
    flex-direction: column; /* Кнопки друг под другом для аккуратности */
    gap: 10px;
    min-width: 200px;
    align-items: stretch; /* Растянуть кнопки на всю ширину колонки */
}

/* Кнопки */
.rls-header-actions .button {
    text-align: center;
    justify-content: center;
    height: 40px !important;
    font-size: 14px !important;
    display: flex;
    align-items: center;
}

/* Статус снимка */
.rls-snapshot-status {
    margin-top: 15px;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.rls-snapshot-status.exists {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    color: #1d2327;
}
.rls-snapshot-status.empty {
    background: #fff8e5;
    border-left: 4px solid #f0ad4e;
    color: #996800;
}

/* Адаптив для мобильных */
@media (max-width: 782px) {
    .rls-header-row {
        flex-direction: column;
    }
    .rls-header-actions {
        width: 100%;
        flex-direction: row; /* На мобильном в ряд */
        flex-wrap: wrap;
    }
    .rls-header-actions .button {
        flex: 1;
    }
}

/* --- ОСТАЛЬНЫЕ СТИЛИ --- */
.rls-wrap .rls-container { display:flex; flex-wrap:wrap; gap:20px; }
.rls-main-content { flex: 1; min-width: 300px; }
.rls-sidebar { width: 280px; flex-shrink: 0; }

.rls-box { background:#fff; border:1px solid #c3c4c7; padding:20px; border-radius:4px; margin-bottom:20px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.rls-box h2 { margin-top:0; padding-bottom:10px; border-bottom:1px solid #f0f0f1; font-size: 1.3em; }

.nav-tab-wrapper { margin-bottom: 0 !important; border-bottom: 1px solid #c3c4c7; }
.rls-tab-panel { padding-top: 20px; display: none; }
.rls-tab-panel.active { display: block; }

/* Прогресс бар */
.rls-scan-progress-area { margin-top:20px; display: none; background:#f9f9f9; padding:15px; border:1px solid #ddd; border-radius:5px; }
#rls-scan-progress-container { background-color:#e0e0e0; border-radius:10px; overflow:hidden; height: 10px; width: 100%; margin-top: 5px; }
#rls-scan-progress-bar { width:0; height:100%; background-color:#2271b1; transition:width 0.2s ease; }

/* Пустое состояние */
.rls-empty-state { text-align:center; padding:40px 20px; color: #a0a5aa; }
.rls-empty-state .dashicons { font-size: 40px; width: 40px; height: 40px; margin-bottom: 10px; }

/* Таблица результатов */
.rls-scan-table td { vertical-align: middle; }
.rls-badge { padding:3px 8px; border-radius:4px; font-size:10px; font-weight:700; color:#fff; text-transform: uppercase; }
.rls-badge.red { background:#dc3545; }
.rls-badge.green { background:#46b450; }
.rls-badge.orange { background:#f0ad4e; }
.filepath code { color: #d63638; display: block; word-break: break-all; }
.rls-virus-snippet { background:#2c3338; color:#f0f0f1; padding:15px; border-radius:5px; margin-top:10px; font-size:11px; overflow-x:auto; }

/* Modernized settings interface */
.rls-wrap {
    max-width: 1320px;
}

.rls-page-hero {
    margin: 18px 0 22px;
    padding: 28px;
    border: 1px solid #dbe5f4;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.rls-page-hero-top {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.rls-page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0f4c81;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rls-page-title {
    margin: 12px 0 8px !important;
    font-size: 30px !important;
    line-height: 1.15 !important;
    color: #0f172a;
}

.rls-page-version {
    display: inline-flex;
    vertical-align: middle;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.rls-page-subtitle {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.rls-page-stats {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}

.rls-stat-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #dbe5f4;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.rls-stat-label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rls-stat-value {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.rls-stat-note {
    display: block;
    margin-top: 8px;
    color: #475569;
    font-size: 13px;
    line-height: 1.55;
}

.rls-wrap .rls-nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px !important;
    padding: 0;
    border: 0;
    background: transparent;
}

.rls-wrap .rls-nav-tabs .nav-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 11px 16px;
    border: 1px solid #dbe5f4;
    border-radius: 999px;
    background: #fff;
    color: #334155;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.rls-wrap .rls-nav-tabs .nav-tab:hover {
    border-color: #93c5fd;
    color: #0f172a;
}

.rls-wrap .rls-nav-tabs .nav-tab.nav-tab-active {
    border-color: #2563eb;
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.rls-wrap .rls-nav-tabs .nav-tab.rls-nav-tab-accent {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fff7f7;
}

.rls-wrap .rls-nav-tabs .nav-tab.rls-nav-tab-accent:hover {
    border-color: #fca5a5;
    color: #991b1b;
}

.rls-wrap .rls-nav-tabs .nav-tab .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.rls-wrap .rls-box {
    border: 1px solid #dbe5f4;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.rls-wrap .rls-box h2 {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8eef8;
    color: #0f172a;
}

.rls-wrap .form-table th {
    width: 240px;
    color: #0f172a;
    font-weight: 700;
}

.rls-wrap .form-table td {
    color: #334155;
}

.rls-form-table-modern th,
.rls-form-table-modern td {
    padding-top: 18px;
    padding-bottom: 18px;
}

.rls-license-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1.15fr) minmax(280px, 1fr);
    gap: 16px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.rls-license-panel-main,
.rls-license-panel-meta {
    border: 1px solid #dbe5f4;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.rls-license-panel-main {
    padding: 20px;
}

.rls-license-badge {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.rls-license-title {
    display: block;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.25;
}

.rls-license-subtitle {
    display: block;
    margin-top: 8px;
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
}

.rls-license-panel-meta {
    display: grid;
    gap: 1px;
    padding: 1px;
    background: #dbe5f4;
}

.rls-license-meta-item {
    padding: 18px 20px;
    background: #fff;
    border-radius: 17px;
}

.rls-license-meta-item span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.rls-license-meta-item strong {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.5;
}

.rls-wrap .regular-text,
.rls-wrap input[type="text"],
.rls-wrap input[type="number"],
.rls-wrap input[type="password"],
.rls-wrap select,
.rls-wrap textarea {
    border-color: #cbd5e1;
    border-radius: 12px;
    box-shadow: none;
}

.rls-wrap .regular-text:focus,
.rls-wrap input[type="text"]:focus,
.rls-wrap input[type="number"]:focus,
.rls-wrap input[type="password"]:focus,
.rls-wrap select:focus,
.rls-wrap textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.14);
}

.rls-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.rls-hero-actions .button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 12px;
}

.rls-inner-panel {
    margin-top: 12px;
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid #dbe5f4;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.rls-inner-panel h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #0f172a;
}

.rls-wrap .rls-mode-card {
    position: relative;
    padding: 18px 18px 18px 44px;
    border-radius: 18px;
    border-color: #dbe5f4;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.rls-wrap .rls-mode-card input {
    position: absolute;
    top: 20px;
    left: 18px;
}

.rls-wrap .rls-mode-card.is-selected {
    border-color: #60a5fa;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.08);
}

.rls-wrap .rls-mode-notice,
.rls-wrap .rls-mode-inline-note {
    border-radius: 14px;
    border-color: #dbe5f4;
    background: #f8fbff;
}

.rls-wrap .notice.notice-info {
    border-left-color: #2563eb;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.rls-savebar {
    position: sticky;
    bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 14px 18px;
    border: 1px solid #dbe5f4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
    z-index: 100;
}

.rls-savebar-title {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 14px;
}

.rls-savebar-note {
    color: #64748b;
    font-size: 13px;
}

.rls-savebar .button-primary {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
}

@media (max-width: 900px) {
    .rls-page-hero {
        padding: 22px;
        border-radius: 20px;
    }

    .rls-page-title {
        font-size: 24px !important;
    }

    .rls-page-stats {
        grid-template-columns: 1fr;
    }

    .rls-license-panel {
        grid-template-columns: 1fr;
    }

    .rls-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .rls-savebar {
        flex-direction: column;
        align-items: stretch;
        bottom: 8px;
    }

    .rls-savebar .button-primary {
        width: 100%;
        justify-content: center;
    }
}
