/* 
   Dashboard Components — Unified & Enhanced
   KSHK Light Theme (White + Orange)
*/

/* ═══════════════════════════════════════════════════════════
   GLOBAL SAVE-BAR BUTTON STYLES
   ═══════════════════════════════════════════════════════════ */
.save-bar-actions {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
}

.save-bar .btn-secondary.discard-btn,
.save-bar button.btn-secondary,
.save-bar .discard-btn {
    padding: 10px 22px !important;
    border-radius: 9px !important;
    font-size: 0.88rem !important;
    background: rgba(0,0,0,0.04) !important;
    color: var(--text-white) !important;
    border: 1px solid var(--border) !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.save-bar .btn-secondary.discard-btn:hover,
.save-bar .discard-btn:hover {
    background: rgba(0,0,0,0.07) !important;
}
.save-bar button.btn-primary,
.save-bar .btn-primary {
    padding: 10px 28px !important;
    border-radius: 9px !important;
    font-size: 0.88rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* ═══════════════════════════════════════════════════════════
   PAGE HEADER PATTERNS
   ═══════════════════════════════════════════════════════════ */
.page-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 10px;
}
.page-subtitle {
    color: var(--text-dim);
    font-size: 0.93rem;
    margin-top: 10px;
    font-weight: 500;
    line-height: 1.6;
}

.page-title p:first-child,
.page-title > p[style*="--primary"] {
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    color: var(--primary) !important;
    margin-bottom: 10px !important;
}
.page-title > p[style*="--text-dim"] {
    color: var(--text-dim) !important;
    font-size: 0.93rem !important;
    margin-top: 10px !important;
    font-weight: 500 !important;
}

/* ═══════════════════════════════════════════════════════════
   FORM LAYOUT HELPERS
   ═══════════════════════════════════════════════════════════ */
.form-container { max-width: 880px; margin: 0 auto; }
.hidden-input { display: none; }
[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   ROLE TAGS & MULTISELECT
   ═══════════════════════════════════════════════════════════ */
.roles-multiselect {
    background: #FFFFFF !important;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0;
    min-height: 56px;
    cursor: pointer;
    position: relative;
    transition: var(--t-base);
    width: 100%;
}
.roles-multiselect.active {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(255, 92, 43, 0.12) !important;
}

/* ═══════════════════════════════════════════════════════════
   SECTION CARDS & GRID
   ═══════════════════════════════════════════════════════════ */
.section-card, 
.panel-section-card,
.tool-card {
    background: #FFFFFF !important;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 24px;
    transition: var(--t-base);
    position: relative;
    z-index: 10;
    overflow: visible !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.rule-card-premium:has(.neo-dropdown.active),
.rule-card-premium:has(.custom-select-options-neo.active),
.rule-card-premium.active,
.main-settings-card-neo:has(.custom-select-options-neo.active),
.security-card.horizontal:has(.perms-input-modern.active),
.security-card.horizontal:has(.custom-select-container.active),
.section-card:has(.roles-multiselect.active),
.section-card:has(.perms-input-modern.active),
.section-card:has(.custom-select-container.active),
.panel-section-card:has(.roles-multiselect.active),
.panel-section-card:has(.perms-input-modern.active),
.panel-section-card:has(.custom-select-container.active),
.tool-card:has(.roles-multiselect.active),
.input-group:has(.roles-multiselect.active) {
    z-index: 9999 !important;
    background: #FFFFFF !important;
    overflow: visible !important;
}

.elevate-card {
    z-index: 99999 !important;
    overflow: visible !important;
    position: relative !important;
}

.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    align-items: center;
    background: transparent !important;
    border: none !important;
    padding: 14px 18px;
    min-height: 54px;
    cursor: pointer;
    position: relative;
    z-index: 10;
}
.placeholder { color: var(--text-muted); font-size: 0.88rem; pointer-events: none; }
.role-tag {
    background: rgba(255, 92, 43, 0.08);
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(255, 92, 43, 0.2);
    transition: all 0.2s ease;
    white-space: nowrap;
}
.role-tag:hover {
    background: rgba(255, 92, 43, 0.12);
    border-color: rgba(255, 92, 43, 0.35);
    transform: translateY(-1px);
}
.role-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--role-color, var(--primary));
    box-shadow: 0 0 8px var(--role-color, var(--primary-glow));
}

.role-tag.no-remove { padding-right: 12px; }
.role-tag-icon { font-size: 0.8rem; color: var(--primary); opacity: 0.8; }
.role-tag .remove-tag-btn,
.role-tag i.remove-tag-btn,
.role-tag i.fa-times {
    font-size: 0.68rem;
    opacity: 0.35;
    cursor: pointer;
    transition: 0.18s;
    margin-right: 2px;
}
.role-tag i.fa-times:hover,
.role-tag .remove-tag-btn:hover { opacity: 1; color: var(--primary); transform: scale(1.15); }
.role-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--role-color, #99aab5);
    box-shadow: 0 0 8px var(--role-color);
    display: inline-block;
    flex-shrink: 0;
}
.role-option {
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.18s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    font-size: 0.88rem;
    font-weight: 600;
}
.role-option:hover {
    background: rgba(255, 92, 43, 0.05);
    color: var(--text-white);
}
.role-option.selected {
    background: rgba(255, 92, 43, 0.1);
    color: var(--primary);
}

.dropdown-menu {
    background: #FFFFFF !important;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    z-index: 3000;
    position: absolute;
    width: 100%;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    pointer-events: auto;
}
.roles-multiselect.active .dropdown-menu {
    display: block;
    animation: slideDown 0.2s ease;
}
.search-input-field {
    background: var(--bg-root);
    border: none;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    padding: 14px 18px;
    width: 100%;
    color: var(--text-white);
    outline: none;
    font-size: 0.88rem;
}
.options-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 8px;
    background: #FFFFFF;
    position: relative;
    z-index: 10;
}
.options-list::-webkit-scrollbar { width: 4px; }
.options-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 10px; }

.placeholder { color: var(--text-muted); font-size: 0.86rem; pointer-events: none; }
.placeholder.hidden { display: none; }
.placeholder.action-buttons {
    display: flex;
    gap: 10px;
}
.action-buttons-center {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.btn-icon.delete-btn {
    color: var(--primary);
    background: rgba(255, 92, 43, 0.06);
    border-color: rgba(255, 92, 43, 0.15);
}
.btn-icon.delete-btn:hover {
    background: rgba(255, 92, 43, 0.12);
    border-color: var(--primary);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 100px 40px !important;
    color: var(--text-dim);
}
.empty-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    opacity: 0.15;
    color: var(--text-white);
}
.empty-state h3 {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}
.empty-state p {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM TABLES
   ═══════════════════════════════════════════════════════════ */
.premium-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.premium-table th {
    padding: 20px 25px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--border);
}
.premium-table td {
    padding: 22px 25px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.2s ease;
    min-width: 100px;
}
@media (max-width: 600px) {
    .premium-table th, .premium-table td { padding: 12px 15px; }
}
.premium-table tr:hover td {
    background: rgba(255, 92, 43, 0.03);
}
.premium-table tr:last-child td {
    border-bottom: none;
}
.premium-table .text-center { text-align: center !important; }

/* ═══════════════════════════════════════════════════════════
   TICKETS
   ═══════════════════════════════════════════════════════════ */
.reply-preview {
    max-width: 380px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-dim);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.4;
    display: block;
}
@media (max-width: 600px) {
    .reply-preview {
        max-width: 180px;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}
.reply-preview img, 
.reply-preview .discord-emoji { 
    height: 22px; 
    width: auto; 
    vertical-align: middle; 
    margin: 0 2px; 
    object-fit: contain;
}
.reply-preview strong { color: var(--text-white); font-weight: 700; }
.reply-preview code {
    background: rgba(0,0,0,0.05);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.82rem;
    color: var(--text-main);
}

.trigger-group {
    display: flex;
    align-items: center;
    gap: 12px;
}
.trigger-indicator {
    width: 3px;
    height: 18px;
    background: var(--primary);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-glow);
}
.trigger-label {
    color: var(--text-white);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.trigger-word {
    background: rgba(255, 92, 43, 0.1);
    color: var(--primary);
    padding: 3px 9px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════════
   AUTOMOD SYSTEM
   ═══════════════════════════════════════════════════════════ */
.automod-container { 
    max-width: 1040px; 
    margin: 0 auto; 
    padding-bottom: 60px;
}

.page-title.fade-in {
    text-align: center;
    margin-bottom: 60px;
}

.page-title h1 {
    font-size: 3.2rem;
    font-weight: 900;
    margin: 14px 0;
    letter-spacing: -2px;
}

.category-section { margin-bottom: 36px; }
.category-title {
    font-size: 0.68rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 14px;
    padding-right: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.category-title::before {
    content: '';
    display: inline-block;
    width: 12px; height: 2px;
    background: var(--primary);
    border-radius: 2px;
    opacity: 0.7;
}

.rows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
    justify-content: center;
}

.automod-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.25s var(--ease);
    position: relative;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.automod-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 92, 43, 0.04), transparent 70%);
    pointer-events: none;
}

.automod-card:hover {
    background: #FFF8F4;
    border-color: rgba(255, 92, 43, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(255, 92, 43, 0.1);
}

.card-edit-trigger {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
}

.row-edit-btn {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.row-edit-btn:hover {
    background: rgba(255, 92, 43, 0.06);
    color: var(--primary);
    border-color: rgba(255, 92, 43, 0.3);
}

.card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 92, 43, 0.06);
    border: 1px solid rgba(255, 92, 43, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.automod-card:hover .card-icon {
    background: rgba(255, 92, 43, 0.12);
    color: var(--primary);
    border-color: rgba(255, 92, 43, 0.3);
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0 15px rgba(255, 92, 43, 0.15);
}

.card-content h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.card-content p {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.6;
    height: 3.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    margin: 0;
}

.card-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.action-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.action-badge {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.action-badge i {
    font-size: 0.75rem;
    color: var(--primary);
    opacity: 0.85;
}

.action-badge.muted {
    opacity: 0.45;
}

.automod-card:hover .action-badge {
    background: rgba(255, 92, 43, 0.05);
    border-color: rgba(255, 92, 43, 0.15);
}

/* AutoMod Modal */
.automod-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10000; display: none; align-items: center; justify-content: center;
}
.modal-overlay {
    position: absolute; width: 100%; height: 100%;
    background: rgba(26, 26, 26, 0.45); backdrop-filter: blur(6px);
}
.modal-content {
    position: relative; width: 92%; max-width: 500px;
    background: #FFFFFF; border-radius: 24px;
    padding: 0; overflow: hidden;
    box-shadow: 0 28px 80px rgba(0,0,0,0.15);
    z-index: 10001; margin: auto;
    border: 1px solid var(--border);
    display: flex; flex-direction: column;
    animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-header { padding: 24px 28px 12px 28px; margin-bottom: 0; border-bottom: 1px solid var(--border); text-align: right; }
.modal-body-scroll {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 28px;
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
}
.modal-content form { display: flex; flex-direction: column; min-height: 0; }
.modal-content .action-section { margin: 0; }
.modal-content .modal-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    background: var(--bg-root);
}
.modal-inner { padding: 20px; max-height: 82vh; overflow-y: auto; }
.modal-header { 
    padding: 28px 32px 14px; 
    border-bottom: 1px solid var(--border); 
    text-align: right; 
    background: #fff;
}
.modal-header h2 { font-size: 1.15rem; font-weight: 900; color: var(--text-white); letter-spacing: -0.5px; }

.action-section { margin-bottom: 14px; }
.action-label { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 8px; display: block; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.action-item {
    background: #fff; 
    border-radius: 14px;
    padding: 14px 18px; 
    display: flex; 
    align-items: center;
    gap: 14px; 
    margin-bottom: 12px; 
    cursor: pointer;
    transition: all 0.25s var(--ease); 
    border: 1px solid var(--border);
}
.action-item:hover { 
    background: #FFF8F4; 
    border-color: rgba(255, 92, 43, 0.25);
}
.action-item.active { 
    background: rgba(255, 92, 43, 0.06); 
    border-color: rgba(255, 92, 43, 0.3); 
}
.action-icon-box { 
    width: 40px; 
    height: 40px; 
    background: rgba(0, 0, 0, 0.03); 
    border-radius: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-shrink: 0; 
    transition: 0.2s;
}
.action-item.active .action-icon-box { 
    background: rgba(255, 92, 43, 0.12); 
}
.action-item i { 
    font-size: 1.1rem; 
    color: var(--text-dim); 
    transition: 0.25s; 
}
.action-item.active i { 
    color: var(--primary); 
    transform: scale(1.1);
}
.action-text { flex: 1; text-align: right; }
.action-text h4 { font-size: 0.92rem; font-weight: 800; color: var(--text-white); margin-bottom: 3px; }
.action-text p { font-size: 0.75rem; color: var(--text-dim); line-height: 1.4; }
.action-check { color: var(--primary); font-size: 1.1rem; opacity: 0; transform: scale(0.5); transition: 0.25s var(--ease-spring); }
.action-item.active .action-check { opacity: 1; transform: scale(1); }

.timeout-settings { 
    margin: 16px 0;
    background: var(--bg-root); 
    border-radius: 16px; 
    padding: 18px 20px; 
    border: 1px solid var(--border); 
}
.timeout-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.timeout-label { color: var(--text-white); font-size: 0.82rem; font-weight: 800; opacity: 0.9; }
.timeout-inputs { 
    display: flex; 
    gap: 0;
    align-items: stretch; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border);
    background: #fff;
}
.timeout-input, .timeout-select { 
    background: transparent !important; 
    border: none !important; 
    color: var(--text-white); 
    padding: 12px 16px; 
    font-size: 0.9rem; 
    outline: none; 
    transition: all 0.2s ease; 
    border-radius: 0 !important;
    text-align: center;
    text-align-last: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.timeout-input::-webkit-outer-spin-button,
.timeout-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}
.timeout-input {
    -moz-appearance: textfield;
    appearance: textfield;
    width: 80px; 
    font-weight: 900; 
    font-family: 'Inter', sans-serif;
    border-left: 1px solid var(--border) !important;
}
.timeout-select { 
    cursor: pointer; 
    min-width: 100px; 
    font-weight: 700;
}
.timeout-input:focus, .timeout-select:hover {
    background: rgba(255, 92, 43, 0.04) !important;
}

.modal-footer {
    background: var(--bg-root);
    padding: 20px 32px;
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    border-top: 1px solid var(--border);
}
.save-changes-btn {
    background: var(--primary);
    color: white; border: none;
    padding: 10px 24px; border-radius: 12px;
    font-weight: 800; cursor: pointer; 
    transition: all 0.2s ease; font-size: 0.88rem;
    box-shadow: 0 4px 15px rgba(255, 92, 43, 0.25);
}
.save-changes-btn:hover { 
    background: var(--primary-alt); 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(255, 92, 43, 0.35);
}
.cancel-btn {
    background: #fff; 
    color: var(--text-white); 
    border: 1px solid var(--border);
    padding: 10px 18px; 
    border-radius: 12px;
    font-weight: 700; cursor: pointer; font-size: 0.85rem;
    transition: all 0.2s ease;
}
.cancel-btn:hover { 
    background: rgba(255, 92, 43, 0.05); 
    border-color: rgba(255, 92, 43, 0.3);
}

/* Tag input */
.tags-input-container { 
    background: #fff; 
    border-radius: 14px; 
    padding: 12px 18px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 7px; 
    align-items: center; 
    border: 1px solid var(--border); 
}
.modal-body-scroll .roles-multiselect {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    min-height: 52px;
}
.modal-body-scroll .roles-multiselect .selected-tags {
    background: transparent;
    border: none;
    padding: 0;
}
.modal-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
    background: rgba(255, 92, 43, 0.05);
    border: 1px solid rgba(255, 92, 43, 0.15);
    padding: 10px 14px;
    border-radius: 10px;
    line-height: 1.5;
    margin-top: 10px;
}
.tag-main-input { background: transparent; border: none; color: var(--text-white); outline: none; flex: 1; min-width: 120px; font-size: 0.9rem; }
.tag-item { background: rgba(255, 92, 43, 0.08); padding: 4px 12px; border-radius: 7px; font-size: 0.86rem; display: flex; align-items: center; gap: 7px; color: var(--text-white); font-weight: 600; border: 1px solid rgba(255, 92, 43, 0.2); }
.tag-item i { cursor: pointer; opacity: 0.5; transition: 0.18s; }
.tag-item i:hover { opacity: 1; color: var(--primary); }
.row-footer {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}
.create-custom-btn { 
    width: auto; 
    min-width: 320px;
    background: #fff; 
    border: 1px dashed rgba(255, 92, 43, 0.35); 
    border-radius: 14px; 
    padding: 16px 32px; 
    color: var(--primary); 
    font-weight: 700; 
    font-size: 0.9rem; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 12px; 
    cursor: pointer; 
    transition: 0.25s var(--ease); 
}
.create-custom-btn:hover { 
    border-color: var(--primary); 
    background: rgba(255, 92, 43, 0.06); 
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 92, 43, 0.1);
}

/* ═══════════════════════════════════════════════════════════
   TOGGLE SWITCH
   ═══════════════════════════════════════════════════════════ */
.switch { position: relative; display: inline-block; width: 42px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #E8E4DE;
    transition: 0.32s var(--ease);
    border-radius: 22px;
    border: 1px solid var(--border);
}
.slider:before {
    position: absolute; content: "";
    height: 16px; width: 16px;
    left: 2px; bottom: 2px;
    background: #fff;
    transition: 0.32s var(--ease); border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
input:checked + .slider { background: #23a559; border-color: transparent; box-shadow: 0 0 10px rgba(35, 165, 89, 0.35); }
input:checked + .slider:before { transform: translateX(20px); background: white; }

/* ═══════════════════════════════════════════════════════════
   COMMANDS PAGE
   ═══════════════════════════════════════════════════════════ */
.command-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
    justify-content: center;
}
.command-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.command-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 92, 43, 0.2), transparent);
}
.command-card:hover { border-color: rgba(255, 92, 43, 0.3); background: #FFF8F4; transform: translateY(-3px); box-shadow: 0 12px 28px rgba(255, 92, 43, 0.1); }
.command-header { display: flex; align-items: center; justify-content: space-between; }
.command-name { font-size: 1.05rem; font-weight: 800; color: var(--text-white); display: flex; align-items: center; gap: 10px; }
.command-name i { color: var(--primary); font-size: 0.9rem; }
.badge { font-size: 0.65rem; padding: 3px 9px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-enabled { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-disabled { background: rgba(239, 68, 68, 0.08); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.18); }
.alias-input-group { display: flex; flex-direction: column; gap: 8px; }
.alias-input-group label { font-size: 0.75rem; color: var(--text-dim); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.action-buttons { display: flex; gap: 8px; margin-top: auto; }
.btn-card {
    flex: 1; padding: 9px; border-radius: 8px;
    font-size: 0.82rem; font-weight: 700; cursor: pointer;
    border: none; transition: 0.18s;
    display: flex; align-items: center; justify-content: center; gap: 7px;
    font-family: inherit;
}
.btn-save { background: var(--primary); color: white; box-shadow: 0 4px 14px rgba(255,92,43,0.25); }
.btn-save:hover { background: var(--primary-alt); transform: translateY(-1px); }
.btn-toggle-disable { background: rgba(239, 68, 68, 0.08); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.15); }
.btn-toggle-disable:hover { background: rgba(239, 68, 68, 0.15); }
.btn-toggle-enable { background: rgba(16, 185, 129, 0.08); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.15); }
.btn-toggle-enable:hover { background: rgba(16, 185, 129, 0.15); }
.search-area {
    background: #FFFFFF;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 14px;
}
.search-input { flex: 1; background: transparent; border: none; color: var(--text-white); font-size: 0.95rem; padding: 4px; outline: none; }
.loading-spinner { display: none; width: 1rem; height: 1rem; border: 2px solid rgba(0,0,0,0.1); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.6s linear infinite; }
.saving .loading-spinner { display: inline-block; }
.saving .btn-text { display: none; }

/* ═══════════════════════════════════════════════════════════
   SETTINGS GRID
   ═══════════════════════════════════════════════════════════ */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
    justify-content: center;
}
@media (max-width: 1300px) {
    .settings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
    .settings-grid { grid-template-columns: 1fr; }
}
.settings-grid > .section-card {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
@media (max-width: 960px) { .settings-grid { grid-template-columns: 1fr; } }

.section-header {
    margin: 56px 0 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 92, 43, 0.15);
    display: flex; align-items: center; gap: 14px;
    clear: both;
}
.section-header h2 { font-size: 1.3rem; color: var(--text-white); margin: 0; font-weight: 900; }
.section-header i { color: var(--primary); font-size: 1.15rem; }

/* ═══════════════════════════════════════════════════════════
   TICKETS PAGE
   ═══════════════════════════════════════════════════════════ */
.panels-container { display: grid; gap: 0; }
.panel-group {
    display: none;
    animation: fadeInUp 0.3s ease both;
}
.panel-group.active { display: block; }

.panel-section-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 36px;
    margin-bottom: 24px;
    position: relative;
    transition: 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.panel-section-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 92, 43, 0.2), transparent);
}
.panel-section-card:hover { border-color: rgba(255, 92, 43, 0.25); }

.panel-header {
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.panel-icon {
    width: 44px; height: 44px;
    background: rgba(255, 92, 43, 0.1);
    border: 1px solid rgba(255, 92, 43, 0.18);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.panel-header h3 { font-size: 1.15rem; font-weight: 800; color: var(--text-white); margin: 0; }
.panel-header p { font-size: 0.8rem; color: var(--text-dim); margin: 4px 0 0; }

.ticket-fields-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 32px;
    align-items: start;
}
@media (max-width: 1400px) { .ticket-fields-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .ticket-fields-grid { grid-template-columns: 1fr; } }
.ticket-fields-grid .input-group { position: relative; z-index: 1; margin-bottom: 0; }
.ticket-fields-grid .input-group:has(.dropdown-menu),
.ticket-fields-grid .input-group:has(.roles-multiselect.active) {
    z-index: 50;
}

/* ═══════════════════════════════════════════════════════════
   ROLES PAGE
   ═══════════════════════════════════════════════════════════ */
.roles-section-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    transition: 0.2s ease;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.roles-section-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 92, 43, 0.2), transparent);
}
.roles-section-card:hover { border-color: rgba(255, 92, 43, 0.25); }

/* ═══════════════════════════════════════════════════════════
   WELCOME — Canvas Editor
   ═══════════════════════════════════════════════════════════ */
.editor-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 26px;
    margin-top: 26px;
}
@media (max-width: 1100px) { .editor-container { grid-template-columns: 1fr; } }

.canvas-wrapper {
    position: relative;
    background: var(--bg-root);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
    cursor: crosshair;
}
#welcomeCanvas { width: 100%; height: 100%; display: block; }

.controls-panel { display: flex; flex-direction: column; gap: 16px; }

.tool-card {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    transition: 0.2s;
    position: relative;
}
.tool-card:hover { border-color: rgba(255, 92, 43, 0.25); }

.tool-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.tool-title i { color: var(--primary); }

.preview-info {
    display: flex; justify-content: space-between;
    background: var(--bg-root);
    padding: 9px 14px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.78rem;
    color: var(--primary);
    margin-top: 10px;
    border: 1px solid rgba(255, 92, 43, 0.15);
}

.upload-zone {
    border: 2px dashed rgba(255, 92, 43, 0.25);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: 0.2s;
    cursor: pointer;
}
.upload-zone:hover { border-color: var(--primary); background: rgba(255, 92, 43, 0.04); }
.upload-zone i { font-size: 1.8rem; color: var(--text-dim); margin-bottom: 12px; display: block; }
.upload-zone p { font-size: 0.8rem; color: var(--text-dim); }

.placeholder-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.placeholder-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 92, 43, 0.08);
    color: var(--primary);
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid rgba(255, 92, 43, 0.2);
    transition: all 0.18s ease;
}
.placeholder-tag:hover { 
    background: rgba(255, 92, 43, 0.14);
    border-color: rgba(255, 92, 43, 0.35);
    transform: translateY(-1px);
}

.canvas-hint {
    position: absolute; bottom: 16px; left: 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(8px);
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 0.72rem;
    pointer-events: none;
    border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════════════════
   TEMP VOICE (Discord preview stays dark — native Discord UI)
   ═══════════════════════════════════════════════════════════ */
.discord-preview {
    background: #2b2d31;
    border-radius: 10px;
    padding: 16px;
    font-family: 'gg sans', 'Noto Sans', 'Inter', sans-serif;
    color: #dbdee1;
    max-width: 520px;
    border: 1px solid rgba(0,0,0,0.1);
}
.embed-card {
    border-left: 4px solid var(--primary);
    background: #232428;
    border-radius: 4px;
    padding: 12px 14px;
}
.v2-container {
    background: #232428;
    border-radius: 8px;
    overflow: hidden;
    border-left: 4px solid var(--primary);
    margin-bottom: 8px;
}
.media-gallery-preview { background: #1a1b20; width: 100%; display: none; }
.gallery-item { width: 100%; max-height: 280px; object-fit: cover; }
.text-display-preview { padding: 12px 14px; }
.embed-title { color: #ffffff; font-weight: 600; font-size: 0.97rem; margin-bottom: 7px; }
.embed-desc { color: #dbdee1; font-size: 0.93rem; line-height: 1.4; }
.discord-author {
    display: flex; justify-content: flex-end;
    align-items: center; gap: 8px; margin-bottom: 8px;
}
.discord-author .author-name { font-size: 0.8rem; font-weight: 600; color: #ffffff; }
.discord-author .author-icon { width: 18px; height: 18px; border-radius: 50%; }

.v2-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
    margin-top: 8px;
}
.v2-btn {
    background: #4e5058;
    color: white;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.v2-btn:hover { background: #6d6f78; }
.v2-btn.danger { background: #da373c; }
.v2-btn.danger:hover { background: #a12829; }

.btn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 20px;
}
.btn-preview {
    background: #fff;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    color: var(--text-white);
}
.btn-preview:hover { background: #FFF8F4; border-color: rgba(255, 92, 43, 0.3); transform: translateY(-2px); }
.btn-preview.btn-danger { color: #FF5C2B; border-color: rgba(255, 92, 43, 0.25); }
.btn-preview.disabled-btn { opacity: 0.4; filter: grayscale(1); }

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.panels-container {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 30px;
}
@media (max-width: 1100px) {
    .panels-container { grid-template-columns: 1fr; }
}
.author-name { color: #ffffff; font-weight: 600; font-size: 0.85rem; order: 1; }
.author-icon { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; order: 2; }
.v2-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.v2-btn {
    background: #4e5058; color: white; border: none;
    border-radius: 4px; padding: 6px 10px;
    font-size: 0.82rem; font-weight: 500;
    display: flex; align-items: center; justify-content: center;
    gap: 6px; cursor: default; transition: 0.15s;
}
.v2-btn:hover { background: #6d6f78; }
.v2-btn.danger { background: #da373c; }
.v2-btn.danger:hover { background: #a12829; }

.btn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 8px; margin-top: 16px; }
.btn-preview {
    background: #fff; color: var(--text-white); border: 1px solid var(--border);
    padding: 8px 10px; border-radius: 8px;
    font-size: 0.82rem;
    display: flex; align-items: center; gap: 7px;
    cursor: pointer; transition: 0.18s;
}
.btn-preview:hover { background: #FFF8F4; border-color: rgba(255, 92, 43, 0.3); }
.btn-preview.btn-danger { color: #FF5C2B; border-color: rgba(255, 92, 43, 0.25); }
.btn-preview.disabled-btn { opacity: 0.28; }

/* Voice Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26,26,26,0.45);
    display: none;
    justify-content: center; align-items: center;
    z-index: 1000; backdrop-filter: blur(6px);
}
.modal-content {
    background: #FFFFFF;
    width: 100%; max-width: 440px;
    border-radius: 18px; padding: 28px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}
.image-picker-container { display: flex; gap: 24px; margin-top: 18px; align-items: flex-end; }
.image-picker {
    background: var(--bg-root);
    border: 2px dashed rgba(255, 92, 43, 0.25);
    border-radius: 12px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
    position: relative; overflow: hidden;
}
.image-picker:hover { border-color: var(--primary); background: rgba(255, 92, 43, 0.04); }
.image-picker i { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 7px; }
.image-picker span { font-size: 0.72rem; color: var(--text-muted); font-weight: 600; }
.image-picker img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
.image-picker.has-image img { display: block; }
.image-picker.has-image i, .image-picker.has-image span { display: none; }
.thumbnail-picker { width: 140px; height: 140px; }
.main-image-picker { flex: 1; height: 140px; max-width: 340px; }
.footer-input-wrapper {
    display: flex; gap: 12px; align-items: center;
    background: #fff; padding: 8px 14px;
    border-radius: 9px; border: 1px solid var(--border); margin-top: 6px;
}
.footer-icon-picker { width: 33px; height: 33px; border-radius: 7px; border: 1px solid var(--border); background: var(--bg-root); }
.footer-icon-picker i { font-size: 0.76rem; margin: 0; }

/* ═══════════════════════════════════════════════════════════
   DASHBOARD OVERVIEW
   ═══════════════════════════════════════════════════════════ */
.stats-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    justify-content: center;
}
@media (max-width: 900px) { .stats-overview-grid { grid-template-columns: 1fr; } }

.stat-premium-card {
    background: #FFFFFF;
    border-radius: 14px; padding: 26px 28px;
    border: 1px solid var(--border);
    position: relative;
    transition: 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.stat-premium-card::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 92, 43, 0.25), transparent);
}
.stat-premium-card:hover { border-color: rgba(255, 92, 43, 0.3); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(255, 92, 43, 0.1); }
.stat-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.stat-icon-box {
    width: 42px; height: 42px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
}
.stat-info h3 { font-size: 0.78rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-info p { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }
.stat-value {
    font-size: 2.4rem; font-weight: 950;
    color: var(--text-white); letter-spacing: -1.5px;
    text-align: left; direction: ltr;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
    .stat-premium-card { padding: 20px; }
    .stat-value { font-size: 2rem; }
    .stat-icon-box { width: 36px; height: 36px; font-size: 0.95rem; }
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    justify-content: center;
}
@media (max-width: 900px) { .charts-grid { grid-template-columns: 1fr; } }

.chart-container-card {
    background: #FFFFFF;
    border-radius: 14px; padding: 36px;
    margin-bottom: 28px;
    transition: var(--t-base);
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.chart-container-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 92, 43, 0.2), transparent);
}
.chart-container-card.wide { grid-column: span 2; }
@media (max-width: 900px) { .chart-container-card.wide { grid-column: span 1; } }

.chart-header h4 {
    font-size: 0.72rem; font-weight: 800; color: var(--text-muted);
    margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px;
    display: flex; align-items: center; gap: 8px;
}
.chart-header h4::before {
    content: '';
    display: inline-block; width: 3px; height: 14px;
    background: var(--primary); border-radius: 3px; opacity: 0.8;
}
.chart-body { height: 240px; position: relative; }

.chart-filter-container { position: relative; }
.chart-filter {
    background: #fff;
    padding: 8px 16px;
    border-radius: 9px;
    color: var(--text-white);
    font-size: 0.82rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); transition: 0.18s;
    position: relative; z-index: 10;
}
.chart-filter:hover, .chart-filter.active { background: #FFF8F4; border-color: rgba(255, 92, 43, 0.3); }
.chart-filter i { transition: 0.18s; font-size: 0.72rem; opacity: 0.6; }
.chart-filter.active i { transform: rotate(180deg); }

.filter-dropdown-menu {
    position: absolute; top: calc(100% + 8px); left: 0;
    background: #fff; border: 1px solid var(--border);
    border-radius: 11px; width: 100%; min-width: 155px;
    display: none; flex-direction: column; overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,0.1);
    z-index: 1000;
}
.filter-dropdown-menu.show { display: flex; animation: slideDown 0.18s ease; }
.filter-option {
    padding: 10px 16px; color: var(--text-dim);
    font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: 0.15s; text-align: right;
}
.filter-option:hover { background: rgba(255, 92, 43, 0.05); color: var(--text-white); }

.section-card.small {
    padding: 18px 20px;
    display: flex; align-items: center; gap: 14px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-dim);
    transition: 0.2s;
    text-decoration: none;
    cursor: pointer;
}
.section-card.small:hover { border-color: rgba(255, 92, 43, 0.3); color: var(--text-white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 92, 43, 0.1); background: #FFF8F4; }
.section-card.small i { color: var(--primary); font-size: 1.1rem; width: 20px; text-align: center; }

.table-section-container {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════════ */
.login-hero {
    height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-root); position: relative; overflow: hidden;
}
.login-hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 30%, rgba(255, 92, 43, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.login-card {
    width: 90%;
    max-width: 440px;
    padding: 4rem 3.5rem;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 24px;
    text-align: center; z-index: 10;
    box-shadow: 0 24px 60px rgba(0,0,0,0.08);
    animation: fadeInUp 0.6s ease both;
    position: relative; overflow: hidden;
}
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 92, 43, 0.4), transparent);
}
.login-brand {
    font-size: 3.2rem; font-weight: 950; margin-bottom: 2rem;
    letter-spacing: -2px;
    color: var(--text-white);
}
.login-brand span { color: var(--primary); }
.login-title { font-size: 1.9rem; font-weight: 900; margin-bottom: 0.8rem; letter-spacing: -0.5px; color: var(--text-white); }
.login-subtitle { color: var(--text-dim); font-size: 0.9rem; line-height: 1.7; margin-bottom: 3rem; font-weight: 500; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
    from { transform: scale(0.5); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.section-card,
.panel-section-card,
.roles-section-card,
.automod-card,
.command-card,
.stat-premium-card,
.tool-card,
.chart-container-card {
    overflow: visible !important;
    z-index: 10;
}
.input-group { position: relative; }
.input-group:has(.roles-multiselect.active) { z-index: 2200 !important; }

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.tickets-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 20px;
}

.cards-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(750px, 1fr));
    gap: 32px;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

.full-card {
    grid-column: 1 / -1 !important;
}

.cards-grid-2 .roles-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 1400px) {
    .cards-grid-2 { gap: 20px; }
}

@media (max-width: 1100px) {
    .cards-grid-2 { grid-template-columns: 1fr; }
    .content-area { padding: 30px 20px; }
}

.input-group.full-width,
.roles-grid .input-group.full-width,
.tickets-grid .input-group.full-width,
.settings-form-grid .input-group.full-width {
    grid-column: 1 / -1 !important;
}

@media (max-width: 1024px) {
    .roles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .roles-grid, .tickets-grid, .settings-form-grid {
        grid-template-columns: 1fr !important;
    }
}

.settings-grid,
.rows-grid,
.ticket-fields-grid,
.roles-grid,
.tickets-grid,
.settings-form-grid,
.command-grid,
.stats-overview-grid,
.charts-grid,
.form-container,
.panels-container,
form {
    overflow: visible !important;
}

.section-card::before,
.panel-section-card::before,
.roles-section-card::before,
.automod-card::before,
.command-card::before {
    z-index: -1;
}

@media (max-width: 900px) {
    .chart-container-card { padding: 24px; }
    .chart-body { height: 200px; }
    
    .automod-grid {
        grid-template-columns: 1fr !important;
    }
    
    .section-card.small {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .charts-grid, .stats-overview-grid { gap: 12px; }
    .chart-container-card { padding: 20px; }
    .chart-body { height: 180px; }
    
    .settings-grid,
    .rows-grid,
    .ticket-fields-grid,
    .command-grid,
    .panels-container,
    .form-grid {
        grid-template-columns: 1fr !important;
    }
    
    .input-group { min-width: 0; }
    
    .tabs-nav {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tab-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
}

.channel-cell-flex {
    display: flex;
    align-items: center;
    gap: 10px;
}
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    flex-shrink: 0;
}
.channel-name-text {
    color: var(--text-white);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════════════════
   SECURITY DASHBOARD
   ═══════════════════════════════════════════════════════════ */
:root {
    --card-bg: #FFFFFF;
    --card-border: #E8E4DE;
    --card-hover-bg: #FFF8F4;
    --card-hover-border: rgba(255, 92, 43, 0.3);
    --accent-glow: rgba(255, 92, 43, 0.12);
}

.security-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px 120px;
}

.category-section {
    margin-bottom: 50px;
}

.category-title {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 25px;
}

.category-title::before,
.category-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #E8E4DE, transparent);
}

.security-cards-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.security-card.horizontal {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    min-height: auto;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.security-card.horizontal:hover {
    background: #FFF8F4;
    border-color: rgba(255, 92, 43, 0.3);
    box-shadow: 0 10px 32px rgba(255, 92, 43, 0.1);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.header-main {
    display: flex;
    gap: 20px;
    align-items: center;
}

.card-settings-area {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.settings-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.setting-item.inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.setting-item.inline label,
.setting-item.inline-flexible label {
    margin-bottom: 0;
    min-width: 100px;
}

.setting-item.inline-flexible {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.limit-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.duration-fields {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInSlide 0.3s ease;
}

.duration-fields.hidden {
    display: none;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.connector-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.width-60 { width: 60px !important; }

.setting-item-full {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.width-80 { width: 80px !important; }

.radio-group-modern {
    display: flex;
    gap: 25px;
    margin-top: 8px;
}

.radio-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dim);
    transition: 0.2s;
}

.radio-modern:hover {
    color: var(--text-white);
}

.radio-modern input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #E8E4DE;
    border-radius: 50%;
    position: relative;
    transition: 0.3s;
}

.radio-modern input:checked + .radio-custom {
    border-color: var(--primary);
    background: rgba(255, 92, 43, 0.1);
}

.radio-modern.primary input:checked + .radio-custom {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.radio-modern.primary input:checked + .radio-custom::after {
    background: #3b82f6;
}

.radio-modern.danger input:checked + .radio-custom {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.radio-modern.danger input:checked + .radio-custom::after {
    background: #ef4444;
}

.undo-horizontal {
    background: var(--bg-root);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
}

.undo-text label {
    font-size: 0.9rem;
    color: var(--text-white);
    margin-bottom: 4px;
    display: block;
}

.undo-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.custom-select-container {
    position: relative;
    width: 100%;
    flex: 1;
}

.custom-select-trigger {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: 10px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-select-trigger:hover {
    background: #FFF8F4;
    border-color: rgba(255, 92, 43, 0.3);
}

.custom-select-container.active .custom-select-trigger {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 92, 43, 0.12);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #FFFFFF !important;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    display: none;
    z-index: 100000 !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    animation: dropdownSlide 0.2s ease-out;
}

@keyframes dropdownSlide {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-select-container.active .custom-select-options {
    display: block;
}

.custom-option {
    padding: 10px 14px;
    border-radius: 8px;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.custom-option:hover {
    background: rgba(255, 92, 43, 0.05);
    color: var(--text-white);
}

.custom-option.selected {
    background: rgba(255, 92, 43, 0.1);
    color: var(--primary);
    font-weight: 700;
}

.custom-option i {
    font-size: 0.75rem;
    opacity: 0;
}

.custom-option.selected i {
    opacity: 1;
}

.small-number-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.small-number-input::-webkit-outer-spin-button,
.small-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.small-number-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 92, 43, 0.12);
}

.perms-select-container-modern {
    background: var(--bg-root);
    border: 1px dashed rgba(255, 92, 43, 0.25);
    border-radius: 12px;
    padding: 15px;
}

.security-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: 0.4s;
}

.security-card:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-hover-border);
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(255, 92, 43, 0.1);
}

.security-card:hover::before {
    opacity: 1;
}

.card-header {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.header-left {
    display: flex;
    gap: 16px;
}

.card-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 92, 43, 0.08);
    border: 1px solid rgba(255, 92, 43, 0.18);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
}

.card-title-box h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text-white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-instant {
    background: rgba(88, 101, 242, 0.12);
    color: #5865f2;
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid rgba(88, 101, 242, 0.25);
    letter-spacing: 0.5px;
    font-weight: 700;
}

.card-title-box p {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

.card-body {
    padding: 20px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.setting-item label {
    font-size: 0.9rem;
    color: var(--text-dim);
    font-weight: 500;
}

.radio-group {
    display: flex;
    background: var(--bg-root);
    padding: 5px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.radio-label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 7px;
    font-size: 0.85rem;
    color: var(--text-dim);
    transition: 0.3s;
}

.radio-label:has(input:checked) {
    background: rgba(255, 92, 43, 0.1);
    color: var(--primary);
}

.radio-label input {
    display: none;
}

.small-number-input {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: 10px 15px;
    border-radius: 10px;
    width: 100%;
    transition: 0.3s;
}

.small-number-input:focus {
    border-color: var(--primary);
    background: #fff;
    outline: none;
}

.punishment-select {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text-white);
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
}

.punishment-select:focus {
    border-color: var(--primary);
    outline: none;
}

.undo-item {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.undo-info label {
    margin-bottom: 2px;
    display: block;
}

.undo-info p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.perms-select-container-modern {
    position: relative;
    width: 100%;
    direction: ltr !important;
    text-align: left !important;
}

.perms-input-modern {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    min-height: 48px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.perms-input-modern:hover {
    background: #FFF8F4;
    border-color: rgba(255, 92, 43, 0.3);
}

.perms-input-modern.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.perms-tags {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row !important;
    gap: 6px;
    flex: 1;
}

.perm-tag {
    background: rgba(255, 92, 43, 0.08);
    border: 1px solid rgba(255, 92, 43, 0.2);
    color: var(--text-white);
    padding: 4px 8px 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: 0.2s;
    white-space: nowrap;
}

.perm-tag:hover {
    background: rgba(255, 92, 43, 0.12);
    color: var(--text-white);
}

.perm-tag i.remove-perm {
    color: var(--text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: 0.2s;
    padding: 2px;
}

.perm-tag i.remove-perm:hover {
    color: #FF5C2B;
}

.perms-input-actions {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    padding: 0 14px;
    border-left: 1px solid var(--border);
    height: 24px;
}

.perms-input-actions i {
    transition: 0.2s;
    cursor: pointer;
    font-size: 0.9rem;
}

.perms-input-actions i:hover {
    color: var(--text-white);
}

.perms-input-actions .clear-all-perms:hover {
    color: #FF5C2B;
}

.perms-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: #FFFFFF !important;
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 100000 !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    padding: 6px;
}

.perm-option {
    padding: 11px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: 0.2s;
    border-radius: 8px;
    display: flex;
    flex-direction: row !important;
    justify-content: space-between;
    align-items: center;
    text-align: left !important;
}

.perm-option:hover {
    background: rgba(255, 92, 43, 0.05);
    color: var(--text-white);
}

.perm-option i {
    opacity: 0;
    font-size: 0.8rem;
    color: #3b82f6;
}

.perm-option.selected {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}

.perm-option.selected i {
    opacity: 1;
}

.lookup-select-container {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 5;
    overflow: visible;
}

.lookup-select-container:focus-within {
    border-color: rgba(255, 92, 43, 0.4);
    background: #fff;
    z-index: 1000;
}

.lookup-input-wrapper {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.id-lookup-input {
    background: transparent !important;
    border: none !important;
    color: var(--text-white) !important;
    outline: none !important;
    font-size: 14px !important;
    padding: 6px 4px !important;
    min-width: 150px;
    flex: 1;
    box-shadow: none !important;
}

.lookup-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    z-index: 10000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.lookup-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.lookup-item:hover {
    background: rgba(255, 92, 43, 0.05);
}

.lookup-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-root);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.lookup-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lookup-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lookup-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-white);
}

.lookup-handle {
    font-size: 12px;
    color: var(--text-muted);
}

.lookup-id {
    font-size: 11px;
    color: var(--text-muted);
}

.lookup-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
    text-transform: uppercase;
    font-weight: 700;
}

.perm-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 92, 43, 0.08);
    border: 1px solid rgba(255, 92, 43, 0.2);
    color: var(--text-white);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 13px;
    gap: 6px;
    max-width: 180px;
}

.perm-tag span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lookup-empty {
    padding: 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.lookup-loading {
    padding: 15px;
    text-align: center;
}

.lookup-loading i {
    animation: spin 1s linear infinite;
    color: #3b82f6;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.main-settings-card {
    margin-bottom: 25px;
    border-right: 3px solid #3b82f6 !important;
}

.card-settings-grid.dual-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.section-desc-light {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .card-settings-grid.dual-columns {
        grid-template-columns: 1fr;
    }
}

.roles-multiselect {
    position: relative;
    z-index: 5;
    overflow: visible !important;
    cursor: pointer;
}

.roles-multiselect.active {
    z-index: 9999 !important;
}

.roles-multiselect.active .selected-tags {
    border-color: rgba(255, 92, 43, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(255, 92, 43, 0.1);
}

.security-page-wrapper .roles-multiselect.active .selected-tags,
.security-page-wrapper .roles-multiselect.active {
    border-color: var(--security-accent) !important;
    box-shadow: 0 0 0 4px rgba(255, 92, 43, 0.12) !important;
}

.security-page-wrapper .setting-item-neo,
.security-page-wrapper .neo-settings-row,
.security-page-wrapper .neo-setting-col,
.security-page-wrapper .card-settings-grid {
    overflow: visible !important;
    position: relative;
}

.security-card, .section-card, .section-container, .main-settings-card, 
.rule-card-premium, .master-card-neo, .setting-card-container {
    overflow: visible !important;
}

.elevate-card {
    z-index: 2000 !important;
    position: relative !important;
}

#saveBar {
    z-index: 999999 !important;
}

.lookup-results {
    z-index: 10000 !important;
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM SECURITY (NEO) — KSHK LIGHT
   ═══════════════════════════════════════════════════════════ */
:root {
    --security-accent: #FF5C2B;
    --security-accent-glow: rgba(255, 92, 43, 0.2);
    --bg-cyber-deep: #F7F5F2;
    --border-neo: #E8E4DE;
    --bg-neo-card: #FFFFFF;
    --text-cyber-dim: #6B6B6B;
    --transition-premium: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.security-page-wrapper { background: var(--bg-cyber-deep); min-height: 100vh; position: relative; overflow: visible; font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }
.security-page-wrapper .mesh-gradient-bg { position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(255, 92, 43, 0.08), transparent 50%); pointer-events: none; }

.security-page-wrapper .page-header-premium { padding: 60px 40px 40px; text-align: center; position: relative; z-index: 20; }
.security-page-wrapper .page-eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; color: var(--security-accent); font-weight: 800; margin-bottom: 12px; display: block; }
.security-page-wrapper .page-header-premium h1 { font-size: 2.8rem; font-weight: 900; color: #1A1A1A; margin-bottom: 15px; letter-spacing: -1px; }
.security-page-wrapper .page-subtitle { font-size: 1.05rem; max-width: 700px; margin: 0 auto; line-height: 1.6; color: var(--text-dim); }

.security-page-wrapper .security-tabs-container { display: flex; justify-content: center; margin-bottom: 50px; position: relative; z-index: 30; }
.security-page-wrapper .tabs-nav-modern { display: flex; gap: 12px; background: #fff; border: 1px solid var(--border-neo); padding: 10px; border-radius: 24px; direction: rtl; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.security-page-wrapper .tab-btn-modern { padding: 14px 28px; border-radius: 16px; background: transparent; color: var(--text-cyber-dim); border: 1px solid transparent; cursor: pointer; font-weight: 800; font-size: 0.95rem; transition: var(--transition-premium); display: flex; align-items: center; gap: 12px; }
.security-page-wrapper .tab-btn-modern:hover { background: rgba(255, 92, 43, 0.05); color: #1A1A1A; }
.security-page-wrapper .tab-btn-modern.active { background: var(--security-accent); color: #fff; box-shadow: 0 8px 24px var(--security-accent-glow); border-color: transparent; }
.security-page-wrapper .tab-btn-modern i { font-size: 1.2rem; opacity: 0.85; }

.security-page-wrapper .security-layout { max-width: 1400px; margin: 0 auto; padding: 0 40px 100px; position: relative; z-index: 10; }
.security-page-wrapper .security-tab-panel { display: none; }
.security-page-wrapper .security-tab-panel.active { display: block; animation: securityFadeIn 0.5s ease forwards; }

.security-page-wrapper .fade-in { animation: securityFadeIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards; opacity: 0; }
@keyframes securityFadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

.security-page-wrapper .switch-modern { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.security-page-wrapper .switch-modern input { opacity: 0; width: 0; height: 0; }
.security-page-wrapper .slider-modern { position: absolute; cursor: pointer; inset: 0; background: #E8E4DE; border: 1px solid var(--border-neo); transition: .3s; border-radius: 34px; }
.security-page-wrapper .slider-modern:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background: #fff; transition: .3s; border-radius: 50%; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.security-page-wrapper .switch-modern input:checked + .slider-modern { background: var(--security-accent); border-color: transparent; }
.security-page-wrapper .switch-modern input:checked + .slider-modern:before { transform: translateX(20px); }
.security-page-wrapper .switch-modern input:focus + .slider-modern { box-shadow: 0 0 0 3px rgba(255, 92, 43, 0.15); }

.security-page-wrapper .badge-instant-neo { background: rgba(255, 92, 43, 0.1); color: var(--security-accent); padding: 4px 10px; border-radius: 8px; font-size: 0.7rem; font-weight: 800; border: 1px solid rgba(255, 92, 43, 0.22); text-transform: uppercase; letter-spacing: 0.5px; }

.security-page-wrapper .save-bar-premium { position: fixed; bottom: -100px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 800px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px); border: 1px solid rgba(255, 92, 43, 0.25); border-radius: 24px; padding: 15px 30px; transition: var(--transition-premium); z-index: 999999; box-shadow: 0 -12px 40px rgba(0,0,0,0.1); opacity: 0; pointer-events: none; }
.security-page-wrapper .save-bar-premium.active { bottom: 30px; opacity: 1; pointer-events: all; }
.security-page-wrapper .save-bar-glow { position: absolute; inset: 0; background: radial-gradient(circle at 50% 100%, var(--security-accent-glow), transparent 70%); opacity: 0.4; border-radius: 24px; pointer-events: none; }
.security-page-wrapper .save-bar-content-neo { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 10; gap: 20px; }
.security-page-wrapper .save-info-neo { display: flex; align-items: center; gap: 15px; }
.security-page-wrapper .save-pulse { width: 10px; height: 10px; background: var(--security-accent); border-radius: 50%; position: relative; }
.security-page-wrapper .save-pulse::after { content: ''; position: absolute; inset: -4px; border: 2px solid var(--security-accent); border-radius: 50%; animation: securitySavePulse 1.5s infinite; }
@keyframes securitySavePulse { from { transform: scale(1); opacity: 1; } to { transform: scale(2.5); opacity: 0; } }
.security-page-wrapper .save-text-box h4 { margin: 0; color: #1A1A1A; font-size: 0.95rem; font-weight: 800; }
.security-page-wrapper .save-text-box p { margin: 2px 0 0; color: var(--text-cyber-dim); font-size: 0.75rem; }
.security-page-wrapper .btn-neo-primary { background: var(--security-accent); border: none; color: #fff; padding: 12px 24px; border-radius: 14px; font-weight: 800; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; gap: 10px; }
.security-page-wrapper .btn-neo-primary:hover { background: #FF5833; transform: translateY(-2px); box-shadow: 0 8px 20px var(--security-accent-glow); }
.security-page-wrapper .btn-neo-secondary { background: #fff; border: 1px solid var(--border-neo); color: #1A1A1A; padding: 12px 24px; border-radius: 14px; font-weight: 800; cursor: pointer; transition: all 0.3s; }
.security-page-wrapper .btn-neo-secondary:hover { background: #FFF8F4; border-color: rgba(255, 92, 43, 0.3); }

.security-page-wrapper .rules-grid-premium { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 24px; position: relative; z-index: 10; padding: 20px; }
.security-page-wrapper .rule-card-premium { background: var(--bg-neo-card); border: 1px solid var(--border-neo); border-radius: 28px; transition: var(--transition-premium); position: relative; overflow: visible !important; min-height: 110px; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.security-page-wrapper .rule-card-premium:hover { border-color: rgba(255, 92, 43, 0.3); transform: translateY(-5px); box-shadow: 0 16px 36px rgba(255, 92, 43, 0.1); }

.security-page-wrapper .rule-card-header { padding: 24px; display: flex; align-items: center; gap: 20px; direction: rtl; }
.security-page-wrapper .rule-icon-box { width: 48px; height: 48px; background: rgba(255, 92, 43, 0.08); border: 1px solid rgba(255, 92, 43, 0.18); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--security-accent); flex-shrink: 0; }
.security-page-wrapper .rule-info-main { flex: 1; text-align: right; min-width: 0; }
.security-page-wrapper .rule-title-row { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.security-page-wrapper .rule-title-row h4 { font-size: 1.05rem; font-weight: 800; color: #1A1A1A; margin: 0; }
.security-page-wrapper .rule-desc { font-size: 0.8rem; color: var(--text-cyber-dim); margin: 0; line-height: 1.4; }

.security-page-wrapper .setting-item-neo { margin-bottom: 32px; direction: rtl; }
.security-page-wrapper .setting-item-neo.flex-between { display: flex !important; align-items: center; justify-content: space-between; gap: 32px; }
.security-page-wrapper .setting-text-neo { flex: 1; min-width: 0; text-align: right; }
.security-page-wrapper .setting-text-neo label { display: block; font-size: 1rem; font-weight: 800; color: #1A1A1A; margin-bottom: 6px; }
.security-page-wrapper .setting-desc-neo { font-size: 0.82rem; color: var(--text-cyber-dim); margin: 0; }
.security-page-wrapper .card-settings-grid { display: flex; flex-direction: column; gap: 32px; }

.hidden { display: none !important; }

.security-page-wrapper .card-header-neo { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; direction: rtl; padding-bottom: 20px; border-bottom: 1px solid var(--border-neo); }
.security-page-wrapper .card-header-neo i { font-size: 1.4rem; color: var(--security-accent); }
.security-page-wrapper .card-header-neo h3 { font-size: 1.15rem; font-weight: 900; color: #1A1A1A; margin: 0; }

.security-page-wrapper .custom-select-wrapper-neo { width: 240px; flex-shrink: 0; position: relative !important; }
.security-page-wrapper .custom-select-trigger-neo { background: #fff; border: 1px solid var(--border-neo); padding: 12px 18px; border-radius: 16px; color: #1A1A1A; display: flex !important; align-items: center; justify-content: space-between; cursor: pointer; font-weight: 700; transition: all 0.2s; min-height: 48px; }
.security-page-wrapper .custom-select-trigger-neo:hover { background: #FFF8F4; border-color: rgba(255, 92, 43, 0.3); }
.security-page-wrapper .custom-select-trigger-neo span { flex: 1; text-align: right; margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.security-page-wrapper .custom-select-trigger-neo i { font-size: 0.75rem; opacity: 0.5; transition: 0.3s; }

.security-page-wrapper .custom-select-options-neo { position: absolute; top: calc(100% + 8px); left: 0; right: 0; width: auto; min-width: 280px; background: #FFFFFF; border: 1px solid var(--border-neo); border-radius: 20px; padding: 10px; z-index: 100000; box-shadow: 0 16px 40px rgba(0,0,0,0.12); display: none; }

.security-page-wrapper .custom-select-search-neo { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-neo); margin-bottom: 8px; direction: rtl; }
.security-page-wrapper .custom-select-search-neo i { color: var(--text-cyber-dim); font-size: 0.85rem; }
.security-page-wrapper .custom-select-search-neo input { background: transparent; border: none; color: #1A1A1A; font-size: 0.85rem; width: 100%; outline: none; text-align: right; }
.security-page-wrapper .custom-select-search-neo input::placeholder { color: var(--text-cyber-dim); }

.security-page-wrapper .options-list-neo { max-height: 220px; overflow-y: auto; }
.security-page-wrapper .options-list-neo::-webkit-scrollbar { width: 4px; }
.security-page-wrapper .options-list-neo::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
.security-page-wrapper .custom-option-neo { padding: 10px 14px; border-radius: 12px; color: var(--text-cyber-dim); font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s; direction: rtl; text-align: right; }
.security-page-wrapper .custom-option-neo:hover { background: rgba(255, 92, 43, 0.05); color: #1A1A1A; }
.security-page-wrapper .custom-option-neo.selected { color: var(--security-accent); background: rgba(255, 92, 43, 0.1); }

.security-page-wrapper .neo-punish-select-wrapper { position: relative !important; width: 140px; }
.security-page-wrapper .neo-punish-btn { background: #fff; border: 1px solid var(--border-neo); padding: 8px 15px; border-radius: 12px; color: #1A1A1A; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; font-weight: 700; transition: all 0.3s; }
.security-page-wrapper .neo-punish-btn:hover { background: #FFF8F4; border-color: rgba(255, 92, 43, 0.3); }
.security-page-wrapper .neo-punish-btn.active { border-color: var(--security-accent); box-shadow: 0 0 0 3px rgba(255, 92, 43, 0.12); }
.security-page-wrapper .neo-punish-btn i { font-size: 0.75rem; opacity: 0.6; transition: 0.3s; }
.security-page-wrapper .neo-punish-btn.active i { transform: rotate(180deg); }

.security-page-wrapper .neo-punish-menu { position: absolute; bottom: calc(100% + 8px); left: 0; right: 0; background: #FFFFFF; border: 1px solid var(--border-neo); border-radius: 16px; padding: 6px; z-index: 500; display: none; box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.security-page-wrapper .punish-opt { padding: 10px 14px; border-radius: 10px; color: var(--text-cyber-dim); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; }
.security-page-wrapper .punish-opt:hover { background: rgba(255, 92, 43, 0.05); color: #1A1A1A; }
.security-page-wrapper .punish-opt.selected { color: var(--security-accent); background: rgba(255, 92, 43, 0.08); }
.security-page-wrapper .punish-opt.selected::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; }

.security-page-wrapper .lookup-select-container-neo { position: relative; }
.security-page-wrapper .lookup-input-wrapper-neo { background: #fff; border: 1px solid var(--border-neo); border-radius: 18px; padding: 10px; margin-top: 12px; position: relative !important; }
.security-page-wrapper .id-lookup-input-neo { background: transparent !important; border: none !important; padding: 12px 15px; color: #1A1A1A; font-size: 0.9rem; width: 100%; border-radius: 0; margin: 0; text-align: right; outline: none; }
.security-page-wrapper .id-lookup-input-neo::placeholder { color: var(--text-cyber-dim); }
.security-page-wrapper .premium-dashboard-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 32px; padding: 0; }
.security-page-wrapper .main-settings-card-neo { background: var(--bg-neo-card); border: 1px solid var(--border-neo); border-radius: 32px; padding: 36px; overflow: visible !important; position: relative; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
.security-page-wrapper .rule-card-premium { padding: 36px !important; }

.security-page-wrapper .lookup-results-neo { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #FFFFFF; border: 1px solid var(--border-neo); border-radius: 20px; padding: 10px; z-index: 10000; box-shadow: 0 12px 32px rgba(0,0,0,0.1); display: none; }
.security-page-wrapper .lookup-item { padding: 12px; border-radius: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; direction: rtl; }
.security-page-wrapper .lookup-item:hover { background: rgba(255, 92, 43, 0.05); }
.security-page-wrapper .lookup-item img, .security-page-wrapper .tag-avatar { width: 38px !important; height: 38px !important; border-radius: 12px !important; object-fit: cover; background: var(--bg-root); flex-shrink: 0; }

.security-page-wrapper .neo-selected-tags, .security-page-wrapper .lookup-tags-neo { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 0; min-height: 0; }
.security-page-wrapper .neo-tag, .security-page-wrapper .role-tag-neo, .security-page-wrapper .p-tag-neo { background: rgba(255, 92, 43, 0.08); border: 1px solid rgba(255, 92, 43, 0.2); padding: 8px 14px; border-radius: 12px; display: inline-flex; align-items: center; gap: 10px; color: #1A1A1A; font-size: 0.85rem; font-weight: 800; transition: all 0.3s; animation: securityFadeIn 0.3s ease; }
.security-page-wrapper .neo-tag:hover, .security-page-wrapper .role-tag-neo:hover { border-color: rgba(255, 92, 43, 0.35); background: rgba(255, 92, 43, 0.12); }
.security-page-wrapper .tag-discord-icon { font-size: 1.1rem; color: #5865F2; }
.security-page-wrapper .role-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; box-shadow: 0 0 8px currentColor; flex-shrink: 0; }
.security-page-wrapper .remove-perm, .security-page-wrapper .remove-role-btn { cursor: pointer; opacity: 0.4; transition: 0.2s; font-size: 0.75rem; margin-right: 2px; }
.security-page-wrapper .remove-perm:hover, .security-page-wrapper .remove-role-btn:hover { opacity: 1; color: var(--security-accent); }

.security-page-wrapper .neo-multiselect { position: relative !important; background: #fff; border: 1px solid var(--border-neo); border-radius: 18px; padding: 14px 18px; margin-top: 12px; cursor: pointer; transition: all 0.2s; min-height: 50px; }
.security-page-wrapper .neo-multiselect:hover { border-color: rgba(255, 92, 43, 0.3); }
.security-page-wrapper .neo-multiselect.active { border-color: var(--security-accent); box-shadow: 0 0 0 3px rgba(255, 92, 43, 0.12); }
.security-page-wrapper .neo-multiselect .placeholder { color: var(--text-cyber-dim); font-size: 0.88rem; font-weight: 700; direction: rtl; text-align: right; }

.security-page-wrapper .neo-dropdown { position: absolute; top: calc(100% + 10px); left: 0; right: 0; background: #FFFFFF; border: 1px solid var(--border-neo); border-radius: 20px; padding: 10px; z-index: 100000; box-shadow: 0 16px 40px rgba(0,0,0,0.12); display: none; }
.security-page-wrapper .neo-dropdown-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-neo); margin-bottom: 8px; direction: rtl; }
.security-page-wrapper .neo-dropdown-search input { background: transparent; border: none; color: #1A1A1A; font-size: 0.85rem; width: 100%; outline: none; text-align: right; }
.security-page-wrapper .neo-dropdown-search input::placeholder { color: var(--text-cyber-dim); }
.security-page-wrapper .neo-options-list { max-height: 220px; overflow-y: auto; }
.security-page-wrapper .neo-options-list::-webkit-scrollbar { width: 4px; }
.security-page-wrapper .neo-options-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }

.security-page-wrapper .neo-role-option { padding: 10px 14px; border-radius: 12px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.2s; direction: rtl; color: var(--text-cyber-dim); font-weight: 700; font-size: 0.85rem; }
.security-page-wrapper .neo-role-option:hover { background: rgba(255, 92, 43, 0.05); color: #1A1A1A; }
.security-page-wrapper .neo-role-option.selected { color: var(--security-accent); background: rgba(255, 92, 43, 0.1); }

.security-page-wrapper .rule-expanded-settings { padding: 0 28px 28px; max-height: 0; overflow: hidden; transition: var(--transition-premium); opacity: 0; visibility: hidden; }
.security-page-wrapper .rule-card-premium.active .rule-expanded-settings { max-height: 1200px; opacity: 1; visibility: visible; padding-top: 10px; overflow: visible !important; }

.security-page-wrapper .settings-divider { height: 1px; background: var(--border-neo); margin: 16px 0 24px; }

.security-page-wrapper .neo-settings-row { display: flex; flex-wrap: wrap; gap: 24px; direction: rtl; margin-bottom: 20px; }
.security-page-wrapper .neo-setting-col { flex: 1; min-width: 200px; }

.security-page-wrapper .small-label { display: block; font-size: 0.85rem; font-weight: 800; color: #1A1A1A; margin-bottom: 10px; text-align: right; direction: rtl; }

.security-page-wrapper .limit-controls-neo { display: flex; flex-direction: column; gap: 12px; }

.security-page-wrapper .mode-toggles-neo { display: flex; gap: 8px; direction: rtl; }
.security-page-wrapper .mode-btn { padding: 8px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--border-neo); color: var(--text-cyber-dim); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 6px; }
.security-page-wrapper .mode-btn:hover { background: #FFF8F4; color: #1A1A1A; }
.security-page-wrapper .mode-btn.active { background: rgba(255, 92, 43, 0.1); border-color: var(--security-accent); color: var(--security-accent); }
.security-page-wrapper .mode-btn input[type="radio"] { display: none; }

.security-page-wrapper .inputs-row-neo { display: flex; align-items: center; gap: 10px; direction: rtl; }
.security-page-wrapper .neo-input-number { background: #fff; border: 1px solid var(--border-neo); padding: 12px 16px; border-radius: 14px; color: #1A1A1A; font-size: 0.9rem; font-weight: 700; width: 100%; outline: none; text-align: center; transition: all 0.2s; -moz-appearance: textfield; appearance: none; }
.security-page-wrapper .neo-input-number::-webkit-inner-spin-button,
.security-page-wrapper .neo-input-number::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.security-page-wrapper .neo-input-number:focus { border-color: var(--security-accent); box-shadow: 0 0 0 3px rgba(255, 92, 43, 0.12); }
.security-page-wrapper .sep { color: var(--text-cyber-dim); font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.security-page-wrapper .unit { color: var(--text-cyber-dim); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }

.security-page-wrapper .undo-action-neo { display: flex; align-items: center; justify-content: space-between; gap: 16px; direction: rtl; margin-bottom: 20px; padding: 14px 18px; background: var(--bg-root); border: 1px solid var(--border-neo); border-radius: 16px; }
.security-page-wrapper .undo-info { display: flex; align-items: center; gap: 8px; }
.security-page-wrapper .undo-label { font-size: 0.85rem; font-weight: 800; color: #1A1A1A; }
.security-page-wrapper .undo-help { color: var(--text-cyber-dim); font-size: 0.75rem; }
.security-page-wrapper .undo-help i { cursor: help; }
.security-page-wrapper .small-switch { transform: scale(0.9); }

.security-page-wrapper .perms-neo-container { margin-bottom: 20px; }
.security-page-wrapper .perms-neo-box { position: relative; }
.security-page-wrapper .perms-neo-tags { display: flex; flex-wrap: wrap; gap: 10px; direction: rtl; padding: 14px; background: #fff; border: 1px solid var(--border-neo); border-radius: 16px; min-height: 50px; align-items: center; }
.security-page-wrapper .perms-plus { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 92, 43, 0.06); border: 1px dashed rgba(255, 92, 43, 0.3); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; color: var(--text-cyber-dim); font-size: 0.85rem; }
.security-page-wrapper .perms-plus:hover { background: rgba(255, 92, 43, 0.12); border-color: var(--security-accent); color: var(--security-accent); }

.security-page-wrapper .perms-neo-dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #FFFFFF; border: 1px solid var(--border-neo); border-radius: 18px; padding: 8px; z-index: 100000; box-shadow: 0 12px 32px rgba(0,0,0,0.1); display: none; max-height: 220px; overflow-y: auto; }
.security-page-wrapper .p-opt-neo { padding: 10px 14px; border-radius: 10px; color: var(--text-cyber-dim); font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: space-between; direction: rtl; }
.security-page-wrapper .p-opt-neo:hover { background: rgba(255, 92, 43, 0.05); color: #1A1A1A; }
.security-page-wrapper .p-opt-neo.selected { color: var(--security-accent); background: rgba(255, 92, 43, 0.08); }
.security-page-wrapper .p-opt-neo i { opacity: 0; transition: 0.2s; font-size: 0.7rem; }
.security-page-wrapper .p-opt-neo.selected i { opacity: 1; }

.security-page-wrapper .whitelist-neo-container { margin-bottom: 10px; }
.security-page-wrapper .mt-15 { margin-top: 15px; }

.security-page-wrapper .rule-toggle { flex-shrink: 0; }