:root {
    --ui-bg: #0a0b0f;
    --ui-surface: #12141b;
    --ui-surface-raised: #191c25;
    --ui-border: rgba(164, 174, 196, .14);
    --ui-text: #f3f4f7;
    --ui-muted: #9aa3b4;
    --ui-accent: #ef343c;
    --ui-accent-soft: rgba(239, 52, 60, .12);
    --ui-radius: 14px;
    color-scheme: dark;
}

* { scrollbar-color: #343844 transparent; }
body {
    color: var(--ui-text);
    background: radial-gradient(ellipse at 85% -10%, rgba(121, 25, 34, .17), transparent 34rem), var(--ui-bg);
    line-height: 1.55;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .btn, .nav-btn { min-height: 40px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid #ff7278;
    outline-offset: 3px;
}

.navbar {
    min-height: 72px;
    padding: 12px clamp(18px, 4vw, 64px);
    background: rgba(12, 13, 18, .9);
    border-bottom: 1px solid var(--ui-border);
    backdrop-filter: blur(16px);
}
.nav-content { max-width: 1440px; margin: 0 auto; }
.logo, .nav-logo, .logo-text { color: var(--ui-text); font-weight: 750; letter-spacing: -.04em; }
.logo i, .logo svg { color: var(--ui-accent); }
.nav-actions { gap: 10px; }
.nav-btn, .btn { border-radius: 10px; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.nav-btn:hover, .btn:hover { transform: translateY(-1px); }
.btn-primary, .dashboard-btn { background: var(--ui-accent); border: 1px solid var(--ui-accent); color: #fff; }
.btn-primary:hover, .dashboard-btn:hover { background: #d62831; }
.btn-secondary { background: var(--ui-surface-raised); border: 1px solid var(--ui-border); color: var(--ui-text); }
.btn-secondary:hover { background: #222530; border-color: rgba(239, 52, 60, .4); }

.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.hero { position: relative; overflow: hidden; padding: clamp(72px, 11vw, 140px) 20px 72px; }
.hero::before { content: ''; position: absolute; width: 520px; height: 360px; right: 8%; top: 0; z-index: -1; background: rgba(197, 31, 42, .12); filter: blur(100px); border-radius: 50%; }
.hero-content { max-width: 820px; margin: 0 auto; }
.hero-badge { border: 1px solid rgba(239, 52, 60, .24); background: var(--ui-accent-soft); color: #ff9a9f; border-radius: 999px; padding: 7px 13px; }
.hero-title { color: #fff; letter-spacing: -.055em; line-height: 1.08; }
.gradient-text { color: #ff555d; background: none; -webkit-text-fill-color: currentColor; }
.hero-description { max-width: 660px; color: var(--ui-muted); line-height: 1.75; }
.hero-actions { gap: 12px; flex-wrap: wrap; }
.features, .how-it-works, .modules-section, .testimonials, .faq-section { padding-block: clamp(44px, 7vw, 88px); }
.section-header { margin-bottom: 28px; }
.section-title { color: var(--ui-text); letter-spacing: -.035em; }
.section-subtitle { color: var(--ui-muted); }
.features-grid, .modules-grid, .testimonials-grid { gap: 16px; }
.feature-card, .module-card, .step-card, .testimonial-card, .stat-card, .card, .suggestion-card {
    background: linear-gradient(145deg, rgba(25, 28, 37, .98), rgba(17, 19, 25, .98));
    border: 1px solid var(--ui-border);
    border-radius: var(--ui-radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
}
.feature-card:hover, .module-card:hover, .testimonial-card:hover, .card:hover {
    border-color: rgba(239, 52, 60, .38);
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, .24);
}
.feature-icon, .module-icon { color: #ff6168; }
.testimonial-text, .feature-description, .step-description { color: #b1b8c6; }
.stats-section { border-block: 1px solid var(--ui-border); background: rgba(255, 255, 255, .015); }
.stat-value { color: #ff5a62; }
.cta-section { border: none !important; background: transparent !important; }
/* Footer : fond noir uniforme, sections colonnes sans fond propre */
.footer { border-top: 1px solid var(--ui-border); background: #0a0b0f !important; }
.footer-section { background: transparent !important; border: none !important; }
/* Section suggestion : card sombre avec fond explicite */
.suggestion-section { background: transparent; }
.suggestion-content, .suggestion-box { background: #14161d !important; border: 1px solid var(--ui-border) !important; }

.container-dashboard { min-height: 100dvh; background: transparent; }
.sidebar {
    width: 272px;
    background: rgba(15, 17, 23, .98);
    border-right: 1px solid var(--ui-border);
    padding-top: 18px;
}
.sidebar .logo { min-height: 54px; align-items: center; font-size: 1.12rem; }
.sidebar .logo i { color: var(--ui-accent); }
.server-selector { min-height: 48px; border-radius: 12px; background: #171922; border-color: var(--ui-border); }
.nav-content { padding: 4px 12px 20px; }
.nav-label { margin: 20px 10px 8px; color: #7f8798; font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.nav-item { min-height: 42px; margin: 3px 0; padding: 0 12px; border: 1px solid transparent; border-radius: 10px; color: #a8afbd; }
.nav-item i { width: 20px; color: #7f899c; }
.nav-item:hover { background: rgba(255, 255, 255, .045); color: #fff; }
.nav-item:hover i { color: #f1787d; }
.nav-item.active { color: #fff; background: linear-gradient(100deg, rgba(211, 32, 42, .22), rgba(211, 32, 42, .08)); border-color: rgba(239, 52, 60, .22); box-shadow: inset 3px 0 0 var(--ui-accent); }
.nav-item.active i { color: #ff666d; }
.main-content { min-width: 0; padding: 28px clamp(18px, 3vw, 48px) 56px; background: transparent; }
.guild-header {
    max-width: none;
    min-height: 82px;
    margin: -28px calc(clamp(18px, 3vw, 48px) * -1) 28px;
    padding: 14px clamp(18px, 3vw, 48px);
    position: relative;
    top: auto;
    z-index: 5;
    background: rgba(12, 13, 18, .94);
    border-bottom: 1px solid var(--ui-border);
}
.guild-icon, .guild-icon-large { width: 50px; height: 50px; border: 1px solid var(--ui-border); border-radius: 14px; }
.guild-title h1 { color: #f5f6fa; font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.04em; }
.guild-title p { margin-top: 3px; color: var(--ui-muted); }
.mobile-menu-toggle { border-radius: 10px; background: var(--ui-surface-raised); color: white; }
.settings-view { max-width: 1500px; margin-inline: auto; transform: none !important; }
.settings-view.active { animation: ui-enter .22s ease both; }
@keyframes ui-enter { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

#view-dashboard { max-width: 1640px; margin: 0 auto; }
#view-dashboard .search-container { margin: 0 0 22px !important; }
#view-dashboard .search-wrapper { max-width: none !important; }
#module-search { min-height: 50px; border-color: var(--ui-border) !important; border-radius: 12px !important; background: rgba(20, 22, 29, .88) !important; }
#module-search:focus { border-color: rgba(239, 52, 60, .58) !important; box-shadow: 0 0 0 4px rgba(239, 52, 60, .1); }
#view-dashboard .config-actions { gap: 9px !important; margin-bottom: 28px !important; }
#view-dashboard .config-actions button { min-height: 40px; padding: 8px 14px !important; border-radius: 9px !important; }
.grid-section { margin: 0 0 32px; }
.grid-section h3 { margin-bottom: 14px; padding-bottom: 11px; color: #e6e9f0; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; border-bottom: 1px solid var(--ui-border); }
.grid-section h3::before { width: 3px; height: 18px; border-radius: 3px; background: var(--ui-accent); }
.module-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.module-card { min-height: 185px; padding: 18px; gap: 10px; border-radius: 14px; }
.module-card:hover { border-color: rgba(239, 52, 60, .42); transform: translateY(-2px); }
.module-card .card-icon, .card-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--ui-accent-soft); border-color: rgba(239, 52, 60, .2); color: #ff5961; }
.module-card .card-title { font-size: .98rem; color: #f0f2f7; }
.module-card .card-desc { font-size: .84rem; color: var(--ui-muted); }
.btn-card-config { min-height: 36px; padding: 7px 13px; border-radius: 9px; font-size: .78rem; }
.form-section { padding: clamp(18px, 2.4vw, 30px); border-color: var(--ui-border); border-radius: 14px; background: linear-gradient(145deg, #15171e, #111319); }
.form-section h2 { color: var(--ui-text); }

.guild-card, .server-card, #guildsGrid .card, #botServersGrid .card {
    min-width: 0;
    padding: 20px;
    background: linear-gradient(145deg, #191c25, #111319);
    border: 1px solid var(--ui-border);
    border-radius: 16px;
}
.grid { gap: 16px; }
.card-actions { gap: 8px; }
.user-pill { border: 1px solid var(--ui-border); border-radius: 999px; background: var(--ui-surface); }
.suggestion-card { padding: 14px; }
.suggestion-card-actions button { border-radius: 9px; }
.stats-grid { gap: 14px; }
.suggestions-list { gap: 12px; }

.modal, .modal-overlay { backdrop-filter: blur(8px); }
.modal-content { max-width: min(760px, calc(100vw - 32px)); border: 1px solid var(--ui-border); border-radius: 18px; background: #14161d; box-shadow: 0 28px 90px rgba(0, 0, 0, .55); }
.modal-header { border-bottom: 1px solid var(--ui-border); }
.modal-title { color: var(--ui-text); }
.form-control, input, select, textarea { border-color: var(--ui-border); border-radius: 10px; }
.form-control:focus, input:focus, select:focus, textarea:focus { border-color: rgba(239, 52, 60, .65); box-shadow: 0 0 0 3px rgba(239, 52, 60, .1); }
.form-group label { color: #d7dbe4; }
.toolbar-btn { border-radius: 8px; }
.custom-option[style*="display: none"] { display: none !important; }
.search-result-item {
    width: 100%;
    min-height: 60px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    border-radius: 0;
    background: transparent;
    color: var(--ui-text);
    text-align: left;
    cursor: pointer;
}
.search-result-item:hover, .search-result-item:focus-visible { background: rgba(255, 255, 255, .055); }
.search-result-icon { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: var(--ui-accent-soft); color: #ff6870; }
.search-result-content { min-width: 0; flex: 1; display: grid; gap: 3px; }
.search-result-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 650; }
.search-result-desc { color: var(--ui-muted); font-size: .78rem; }
.search-result-empty { padding: 18px; color: var(--ui-muted); text-align: center; }

.settings-view.active { display: block; }
.form-section { margin-bottom: 16px; }
.form-section > h2 { margin-bottom: 14px; font-size: 1.02rem; letter-spacing: -.02em; }
.form-section > p { max-width: 74ch; line-height: 1.65; }
.switch-group { min-height: 54px; gap: 18px; border-bottom: 1px solid var(--ui-border); }
.switch-group:last-child { border-bottom: 0; }
.switch-group .label { color: #e0e4ec; font-size: .92rem; }
.switch-group .toggle-state { margin-left: auto; padding: 4px 9px; border: 1px solid var(--ui-border); border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.25; }
.switch-group .toggle-state.is-active { border-color: rgba(52, 211, 153, .25); background: rgba(52, 211, 153, .08); color: #7de0b7; }
.switch-group .toggle-state.is-inactive { border-color: rgba(164, 174, 196, .16); background: rgba(164, 174, 196, .05); color: #a4adbd; }
.switch { flex: 0 0 auto; }
.form-section .form-section { background: rgba(255, 255, 255, .025) !important; border-color: rgba(164, 174, 196, .1) !important; }
[id^="dep-"] { scroll-margin-top: 18px; }
.system-disabled-overlay {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    margin: 0 0 14px;
    padding: 0;
    align-items: stretch;
    justify-content: flex-start;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    z-index: 1;
    pointer-events: none;
}
.system-disabled-overlay-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    padding: 11px 14px;
    text-align: left;
    border: 1px solid rgba(164, 174, 196, .16);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    box-shadow: none;
    color: #c4cad5;
}
.system-disabled-overlay-content i { flex: 0 0 auto; margin: 0; font-size: .92rem; color: #a4adbd; }
.system-disabled-overlay-content p { flex: 0 0 auto; color: #e0e4ec; font-size: .84rem; }
.system-disabled-overlay-content span { display: block; margin: 0 !important; color: #9aa3b4 !important; }
[id^="dep-"].dep-disabled > *:not(.system-disabled-overlay) { opacity: .48 !important; filter: grayscale(55%); }
.dep-disabled .system-disabled-overlay { opacity: 1 !important; filter: none !important; }
#saveBar { max-width: min(620px, calc(100vw - 24px)) !important; white-space: normal !important; }
#saveBar .save-bar-title { line-height: 1.4 !important; }

#view-welcome > .form-section,
#view-welcome #dep-WELCOME_ENABLED > .form-section,
#view-welcome #dep-GOODBYE_ENABLED > .form-section {
    padding: clamp(18px, 2.2vw, 28px) !important;
}
#view-welcome #dep-WELCOME_ENABLED > div[style*="grid-template-columns"],
#view-welcome #dep-GOODBYE_ENABLED > div[style*="grid-template-columns"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr) !important;
    gap: 18px !important;
    align-items: start !important;
}
#view-welcome #dep-WELCOME_ENABLED > div[style*="grid-template-columns"] > .form-section,
#view-welcome #dep-GOODBYE_ENABLED > div[style*="grid-template-columns"] > .form-section {
    min-width: 0;
    margin: 0 !important;
    padding: clamp(18px, 2vw, 26px) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: 14px;
    background: linear-gradient(145deg, #15171e, #111319) !important;
}
#view-welcome #dep-WELCOME_ENABLED > div[style*="grid-template-columns"] > .form-section:last-child,
#view-welcome #dep-GOODBYE_ENABLED > div[style*="grid-template-columns"] > .form-section:last-child {
    position: sticky !important;
    top: 18px !important;
    background: #202127 !important;
}
#view-welcome textarea {
    min-height: 112px !important;
    padding: 12px 14px !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: 10px !important;
    background: #101116 !important;
    color: var(--ui-text) !important;
    line-height: 1.6;
    resize: vertical;
}
#view-welcome input[type="radio"] { accent-color: var(--ui-accent); }
#view-welcome label { color: #b9c0ce; }
#view-welcome #welcome-preview-container,
#view-welcome #goodbye-preview-container {
    min-height: 96px;
    padding: 14px !important;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
}

#role-react-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
#role-react-list > .module-card { min-height: 0; padding: 18px !important; }
#role-react-list > .module-card > div { gap: 16px; }
#role-react-list > .module-card h4 { color: #f1f3f8; font-size: 1rem; }
#role-react-list > .module-card p { color: var(--ui-muted); }
#role-react-list .btn-activate { min-height: 38px; border-radius: 9px; }
#role-react-list > .module-card { align-self: stretch; border-radius: 14px; background: linear-gradient(145deg, #171920, #111319); }
#role-react-list > .module-card > div { min-height: 100%; }
#role-react-list > .module-card > div > div:first-child { min-width: 0; }
#role-react-list > .module-card h4 { overflow-wrap: anywhere; }
#role-react-list > .module-card > div > div:last-child { flex: 0 0 132px; }
  #modal-role-react-create > div { width: min(900px, calc(100vw - 36px)) !important; max-height: min(92dvh, 920px); overflow: auto; padding: clamp(22px, 3.5vw, 40px) !important; border: 1px solid var(--ui-border); border-radius: 20px !important; box-shadow: 0 28px 90px rgba(0, 0, 0, .55); }
#modal-role-react-create h3 { margin: 0 0 20px; font-size: 1.2rem; }
#modal-role-react-create label, #modal-role-react-manage label { display: block; margin: 14px 0 7px; color: #aeb8c9; font-size: .72rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
#modal-role-react-manage > div { width: min(1080px, calc(100vw - 28px)) !important; max-height: min(92dvh, 900px) !important; padding: clamp(16px, 3vw, 28px) !important; border: 1px solid var(--ui-border); border-radius: 18px !important; background: #12141a !important; }
#modal-role-react-manage .tab-btn { min-height: 40px; padding: 8px 13px; border: 1px solid var(--ui-border); border-radius: 9px; background: #181a22; color: #aeb8c9; }
#modal-role-react-manage .tab-btn.active { border-color: rgba(239, 52, 60, .5); background: var(--ui-accent-soft); color: #fff; }
.temp-voice-creator-row { padding: 12px; border: 1px solid var(--ui-border); border-radius: 11px; background: rgba(255, 255, 255, .02); }
.temp-voice-creator-row label { display: block; margin: 0 0 7px; color: #aeb8c9; font-size: .75rem; font-weight: 750; text-transform: uppercase; }
.feature-add-button { display: inline-flex; align-items: center; gap: 8px; margin: 12px 0 18px; }
.feature-inline-control select { min-width: 0; flex: 1; }
.feature-radio-group { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0; }
.feature-radio-group label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.feature-radio-group input { accent-color: var(--ui-accent); }
#view-reminders textarea { min-height: 94px; }
.reminder-preview-card { display: grid; gap: 8px; margin-top: 14px; padding: 14px; border: 1px solid var(--ui-border); border-radius: 12px; background: #202127; }
.reminder-preview-label { color: var(--ui-muted); font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.reminder-preview-bubble { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-radius: 10px; background: #2b2d31; }
.reminder-preview-avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: #41434a; color: #fff; }
.reminder-preview-bubble strong { color: #fff; font-size: .84rem; }
.reminder-preview-bubble strong small { margin-left: 4px; padding: 2px 4px; border-radius: 4px; background: #5865f2; font-size: .58rem; }
.reminder-preview-bubble p { margin: 5px 0 0; color: #e2e4e8; white-space: pre-wrap; overflow-wrap: anywhere; }
.temp-voice-creator-row .custom-select-wrapper { min-width: 0; flex: 1; margin: 0 !important; }
.temp-voice-creator-row .custom-select-options { max-height: 230px !important; }
.temp-voice-creator-row .feature-remove-button { flex: 0 0 auto; }
#role-react-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); align-items: stretch; }
.rr-panel-card { min-width: 0; display: flex; flex-direction: column; gap: 13px; padding: 18px; border: 1px solid var(--ui-border); border-radius: 15px; background: linear-gradient(145deg, #191c24, #111319); transition: border-color .18s ease, transform .18s ease; }
.rr-panel-card:hover { transform: translateY(-2px); border-color: rgba(239, 52, 60, .42); }
.rr-panel-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rr-panel-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(239, 52, 60, .25); border-radius: 12px; background: var(--ui-accent-soft); color: #ff656c; }
.rr-panel-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--ui-border); border-radius: 999px; font-size: .72rem; font-weight: 700; }
.rr-panel-status.is-live { border-color: rgba(52, 211, 153, .28); background: rgba(52, 211, 153, .08); color: #7de0b7; }
.rr-panel-status.is-draft { color: #c0c6d2; }
.rr-panel-card h3 { margin: 0; color: #f0f2f7; font-size: 1rem; overflow-wrap: anywhere; }
.rr-panel-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--ui-muted); font-size: .78rem; }
.rr-panel-meta span { display: inline-flex; align-items: center; gap: 6px; }
.rr-panel-channel { min-height: 38px; margin: 0; color: var(--ui-muted); font-size: .8rem; line-height: 1.5; }
.rr-panel-actions { display: flex; gap: 8px; margin-top: auto; }
.rr-panel-actions .rr-manage-button { flex: 1; justify-content: center; }
.rr-panel-actions .rr-delete-button { width: 40px; min-height: 40px; border: 1px solid rgba(239, 52, 60, .32); border-radius: 9px; background: rgba(239, 52, 60, .07); color: #ff7379; cursor: pointer; }
.rr-empty-state { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: clamp(28px, 5vw, 52px); border: 1px dashed var(--ui-border); border-radius: 15px; text-align: center; }
.rr-empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--ui-accent-soft); color: #ff656c; font-size: 1.2rem; }
.rr-empty-state h3, .rr-empty-state p { margin: 0; }
.rr-empty-state p { max-width: 52ch; color: var(--ui-muted); }
  .rr-create-dialog { width: min(900px, calc(100vw - 36px)); max-height: min(92dvh, 920px); overflow: auto; padding: clamp(22px, 3.5vw, 40px); border: 1px solid var(--ui-border); border-radius: 20px; background: #14161d; box-shadow: 0 28px 90px rgba(0, 0, 0, .58); }
.rr-dialog-heading { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--ui-border); }
.rr-dialog-heading h3 { margin: 0 0 5px; font-size: 1.18rem; }
.rr-dialog-heading p, .rr-step-content p { margin: 0; color: var(--ui-muted); font-size: .84rem; line-height: 1.55; }
.rr-create-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 17px 0; border-bottom: 1px solid var(--ui-border); }
.rr-step-number { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(239, 52, 60, .35); border-radius: 50%; color: #ff777e; font-size: .8rem; font-weight: 750; }
.rr-step-content { min-width: 0; }
.rr-step-content h4 { margin: 2px 0 5px; color: #eff1f6; font-size: .94rem; }
.rr-step-content label { display: block; margin: 13px 0 6px; color: #aeb8c9; font-size: .72rem; font-weight: 750; text-transform: uppercase; }
.rr-step-content input, .rr-step-content select { width: 100%; min-height: 44px; }
.rr-type-help { margin-top: 7px; color: var(--ui-muted); font-size: .78rem; }
.rr-create-actions { display: flex; justify-content: flex-end; gap: 9px; padding-top: 18px; }
#view-reminders .feature-config-card > div[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) minmax(240px, .72fr) !important; gap: 18px !important; }
#modal-role-react-manage .modal-content { max-width: min(820px, calc(100vw - 32px)); }

.testimonial-card { padding: 22px; }
.testimonial-rating { color: #ffb84d; }
.review-form, .review-form .form-group { gap: 14px; }
.review-submit-btn { border-radius: 10px; }
.toast-notification { border: 1px solid var(--ui-border); border-radius: 12px; }

@media (max-width: 992px) {
    body { height: auto; min-height: 100dvh; overflow: auto; }
    .sidebar { position: fixed !important; top: 0; bottom: 0; left: -290px !important; width: min(290px, 86vw); height: 100dvh; z-index: 1500; transition: left .22s ease; }
    .sidebar.active { left: 0 !important; }
    .main-content { height: auto; min-height: 100dvh; overflow: visible; padding: 18px 18px 40px; }
    .guild-header { margin: -18px -18px 22px; padding: 14px 18px; min-height: 70px; }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #view-dashboard .config-actions { flex-wrap: wrap; }
}

@media (max-width: 600px) {
    #role-react-list > .module-card > div > div:last-child { flex-basis: 108px; }
    .rr-create-actions { flex-direction: column-reverse; }
    .rr-create-actions button { width: 100%; justify-content: center; }
    .feature-inline-control { align-items: stretch; }
    .rr-role-item { align-items: flex-start; flex-direction: column; }
    .rr-role-actions { width: 100%; }
    .rr-role-actions button { flex: 1; }
    #rr-tab-roles > div { grid-template-columns: minmax(0, 1fr) !important; }
    .navbar { padding: 10px 14px; }
    .navbar .nav-content { gap: 10px; }
    .nav-actions { gap: 6px; }
    .nav-btn { padding: 8px 10px; font-size: .82rem; }
    .container { width: min(100% - 28px, 1200px); }
    .hero { padding: 64px 18px 50px; }
    .hero-title { font-size: clamp(2.15rem, 11vw, 3.4rem); }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .main-content { padding: 14px 14px 32px; }
    .guild-header { margin: -14px -14px 18px; padding: 12px 14px; }
    .guild-info-container { gap: 10px !important; }
    .guild-icon, .guild-icon-large { width: 40px; height: 40px; }
    .guild-title h1 { font-size: 1.08rem; }
    .guild-title p { font-size: .78rem; }
    .module-grid, #role-react-list { grid-template-columns: 1fr; }
    .module-card { min-height: 0; }
    .system-disabled-overlay-content { align-items: flex-start; flex-wrap: wrap; }
    .system-disabled-overlay-content span { flex-basis: 100%; padding-left: 25px; }
    #view-dashboard .config-actions { display: grid !important; grid-template-columns: 1fr 1fr; }
    #view-dashboard .config-actions button:last-of-type { grid-column: 1 / -1; }
    .grid-section { margin-bottom: 26px; }
    #notification-dropdown { width: min(92vw, 440px) !important; right: -10px !important; }
}

@media (max-width: 760px) {
    #view-reminders .feature-config-card > div[style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
    #view-reminders .embed-preview-wrapper { position: static !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
:root {
    --feature-gap: 12px;
}

.feature-config-card {
    display: grid;
    gap: var(--feature-gap);
}

.feature-config-card h2,
.feature-config-card p {
    margin-top: 0;
}

.feature-help,
.feature-choice small,
.feature-rule-fields small {
    color: var(--text-muted);
    line-height: 1.55;
}

.feature-section-heading,
.feature-rule-title,
.feature-inline-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.feature-choice-list,
.feature-rule-list {
    display: grid;
    gap: 10px;
}

.feature-choice,
.feature-rule-card {
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-secondary);
}

.feature-choice {
    min-height: 56px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.feature-choice input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.feature-choice span {
    display: grid;
    gap: 3px;
}

.feature-choice small,
.feature-rule-fields small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
}

.feature-rule-card {
    padding: 16px;
}

.feature-rule-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    margin-top: 12px;
}

.feature-inline-control {
    justify-content: flex-start;
}

.feature-inline-control input:not(.custom-select-search) {
    max-width: 140px;
}

.feature-inline-control .custom-select-search {
    max-width: none;
    width: 100%;
}

.feature-note,
.feature-empty {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    line-height: 1.55;
}

.feature-add-button,
.feature-remove-button {
    min-height: 40px;
}

.feature-remove-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    color: var(--danger, #ef4444);
    background: transparent;
    border: 1px solid currentColor;
    border-radius: 8px;
    cursor: pointer;
}

.feature-choice:focus-within,
.feature-rule-card:focus-within {
    outline: 2px solid var(--primary, #dc2626);
    outline-offset: 2px;
}

@media (max-width: 760px) {
    .feature-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-rule-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.feature-config-card > label,
.feature-rule-fields label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
    font-weight: 600;
}

.feature-config-card input[type="text"],
.feature-config-card input[type="number"],
.feature-rule-fields input,
.feature-rule-fields select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    color: var(--text-main);
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 9px;
}

#modal-custom-command > div {
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr) !important;
    gap: 22px !important;
    padding: clamp(18px, 3vw, 30px) !important;
    border: 1px solid var(--ui-border);
    border-radius: 16px !important;
}

#modal-custom-command > div > div:last-child {
    position: sticky;
    top: 0;
    align-self: start;
}

#modal-custom-command label,
#automation-editor label {
    line-height: 1.45;
}

#modal-custom-command textarea,
#automation-editor textarea {
    min-height: 100px;
    line-height: 1.55;
    resize: vertical;
}

#modal-custom-command select[multiple] {
    min-height: 132px !important;
    padding: 7px !important;
    border-radius: 9px;
}

#modal-custom-command select[multiple] option:checked {
    color: white;
    background: #8f2026 linear-gradient(0deg, #8f2026 0%, #8f2026 100%);
}

@media (max-width: 900px) {
    #modal-custom-command > div {
        grid-template-columns: minmax(0, 1fr) !important;
        max-height: calc(100dvh - 24px) !important;
        overflow-y: auto;
    }

    #modal-custom-command > div > div:last-child {
        position: static;
    }
}

/* ===== Messages de tickets : éditeur Embed / Texte + aperçu en direct ===== */
.tmsg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .tmsg-grid { grid-template-columns: 1fr; } }
.tmsg-form { display: flex; flex-direction: column; gap: 8px; }
.tmsg-sub { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-top: 4px; }
.tmsg-embed-opts { grid-template-columns: 1fr 120px; gap: 10px; }
.tmsg-preview-wrap { position: sticky; top: 12px; }
.tmsg-preview { background: #313338; border-radius: 8px; padding: 14px 16px; color: #dbdee1; font-size: 0.92rem; line-height: 1.4; overflow: hidden; }
.tmsg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.tmsg-head strong { color: #fff; }
.tmsg-avatar { width: 32px; height: 32px; border-radius: 50%; background: #dc2626; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.tmsg-tag { background: #5865f2; color: #fff; font-size: 0.65rem; padding: 1px 5px; border-radius: 4px; font-weight: 600; }
.tmsg-time { color: #949ba4; font-size: 0.72rem; }
.tmsg-text { white-space: normal; overflow-wrap: anywhere; padding-left: 40px; }
.tmsg-embed { margin-left: 40px; max-width: 520px; background: #2b2d31; border-left: 4px solid #dc2626; border-radius: 4px; padding: 10px 14px 10px 12px; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.tmsg-embed-title { color: #fff; font-weight: 700; }
.tmsg-embed-desc { font-size: 0.88rem; }
.tmsg-embed-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 0.85rem; }
.tmsg-field { grid-column: 1 / -1; }
.tmsg-field.inline { grid-column: auto; }
.tmsg-field-name { color: #fff; font-weight: 700; font-size: 0.8rem; }
.tmsg-embed-footer { color: #949ba4; font-size: 0.72rem; }
.tmsg-mention { background: rgba(88, 101, 242, .3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; }
.tmsg-preview code { background: #1e1f22; border-radius: 3px; padding: 1px 4px; font-size: 0.85em; }

/* ── Rôles Réactions : options multi-rôles ─────────────────── */
.rr-chips, .rr-selected-roles { display: flex; flex-wrap: wrap; gap: 6px; }
.rr-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 9px 3px 7px; border: 1px solid var(--ui-border); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #e4e8f0; font-size: .74rem; font-weight: 600; line-height: 1.5; }
.rr-chip > i { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; }
.rr-chip.is-missing { border-style: dashed; color: var(--ui-muted); }
.rr-chip-more { color: var(--ui-muted); padding-left: 9px; }
.rr-chip.is-removable button { margin-left: 2px; padding: 0 2px; border: 0; background: none; color: var(--ui-muted); font-size: .95rem; line-height: 1; cursor: pointer; }
.rr-chip.is-removable button:hover { color: #ff7379; }
.rr-custom-emoji { width: 1.25em; height: 1.25em; object-fit: contain; vertical-align: middle; }

.rr-mini-options { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rr-mini-options li { display: flex; align-items: flex-start; gap: 9px; padding: 8px 10px; border: 1px solid var(--ui-border); border-radius: 10px; background: rgba(255, 255, 255, .025); }
.rr-mini-emoji { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; font-size: .95rem; }
.rr-mini-body { min-width: 0; display: grid; gap: 5px; }
.rr-mini-body strong { color: #eef0f5; font-size: .82rem; overflow-wrap: anywhere; }
.rr-mini-options .rr-more-options { display: block; padding: 2px 4px; border: 0; background: none; color: var(--ui-muted); font-size: .76rem; }
.rr-no-options { padding: 12px; border: 1px dashed var(--ui-border); border-radius: 10px; color: var(--ui-muted); font-size: .8rem; }

.rr-options-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.rr-options-column, .rr-editor-column { min-width: 0; padding: 16px; border: 1px solid var(--ui-border); border-radius: 12px; background: rgba(255, 255, 255, .018); }
.rr-editor-column { position: sticky; top: 0; }
.rr-column-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.rr-column-head h4 { margin: 0 0 3px; color: #f0f2f7; font-size: .98rem; }
.rr-column-head p { margin: 0; color: var(--ui-muted); font-size: .78rem; line-height: 1.5; }
#rr-manage-list { display: grid; gap: 10px; max-height: 520px; overflow: auto; padding: 2px; }
.rr-options-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; border: 1px dashed var(--ui-border); border-radius: 12px; color: var(--ui-muted); text-align: center; font-size: .82rem; }
.rr-options-empty i { color: #ff656c; font-size: 1.3rem; }
.rr-options-empty strong { color: #eef0f5; }
.rr-option { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--ui-border); border-radius: 12px; background: #171920; transition: border-color .15s ease; }
.rr-option:hover { border-color: rgba(255, 255, 255, .22); }
.rr-option.is-editing { border-color: rgba(239, 52, 60, .6); background: var(--ui-accent-soft); }
.rr-option-emoji { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--ui-border); border-radius: 10px; background: rgba(255, 255, 255, .04); font-size: 1.1rem; }
.rr-option-main { min-width: 0; flex: 1; display: grid; gap: 7px; }
.rr-option-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rr-option-name { color: #f0f2f7; font-weight: 700; overflow-wrap: anywhere; }
.rr-option-desc { color: var(--ui-muted); font-size: .76rem; }
.rr-style-tag { padding: 1px 8px; border-radius: 999px; font-size: .68rem; font-weight: 700; border: 1px solid var(--ui-border); color: #c0c6d2; }
.rr-style-Primary { border-color: rgba(88, 101, 242, .5); color: #9aa5ff; }
.rr-style-Success { border-color: rgba(52, 211, 153, .4); color: #7de0b7; }
.rr-style-Danger { border-color: rgba(239, 52, 60, .45); color: #ff8a8f; }
.rr-option-actions { flex: 0 0 auto; display: flex; gap: 6px; }
.rr-icon-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ui-border); border-radius: 8px; background: #1e2028; color: #dce1ea; cursor: pointer; }
.rr-icon-btn:hover { border-color: rgba(255, 255, 255, .35); }
.rr-icon-btn.is-danger { color: #ff7379; }
.rr-icon-btn.is-danger:hover { border-color: rgba(239, 52, 60, .6); background: rgba(239, 52, 60, .1); }

.rr-editor-column input[type="text"], .rr-editor-column select { width: 100%; }
.rr-optional { color: var(--ui-muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.rr-selected-roles { min-height: 34px; padding: 8px; border: 1px solid var(--ui-border); border-radius: 10px; background: rgba(0, 0, 0, .18); }
.rr-selected-empty { color: var(--ui-muted); font-size: .78rem; align-self: center; }
.rr-picker { margin-top: 8px; border: 1px solid var(--ui-border); border-radius: 10px; overflow: hidden; }
.rr-picker-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--ui-border); color: var(--ui-muted); }
.rr-picker-search input { width: 100%; min-height: 38px; border: 0 !important; background: transparent !important; outline: none; }
.rr-picker-list { max-height: 210px; overflow: auto; }
#modal-role-react-manage .rr-picker-row { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 8px 12px; border-bottom: 1px solid rgba(255, 255, 255, .04); color: #e4e8f0 !important; font-size: .84rem !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
#modal-role-react-manage .rr-picker-row:hover { background: rgba(255, 255, 255, .04); }
#modal-role-react-manage .rr-picker-row.is-disabled { opacity: .45; cursor: not-allowed; }
#modal-role-react-manage .rr-picker-row input { flex: 0 0 auto; width: 16px; height: 16px; min-height: 0 !important; accent-color: var(--ui-accent, #ef343c); }
#modal-role-react-manage .rr-picker-row > i { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; }
#modal-role-react-manage .rr-picker-row span { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#modal-role-react-manage .rr-picker-row small { color: var(--ui-muted); }
.rr-picker-empty { padding: 16px; color: var(--ui-muted); text-align: center; font-size: .8rem; }
.rr-hint { margin: 8px 0 0; color: var(--ui-muted); font-size: .78rem; line-height: 1.5; }
.rr-editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.rr-settings-card { max-width: 640px; padding: 20px; border: 1px solid var(--ui-border); border-radius: 12px; background: rgba(255, 255, 255, .018); }
.rr-settings-card h4 { margin: 0 0 4px; font-size: 1rem; }
.rr-settings-card input, .rr-settings-card select { width: 100%; }
.rr-settings-actions { margin-top: 18px; }
.rr-danger-zone { margin-top: 26px; padding: 16px; border: 1px solid rgba(239, 52, 60, .4); border-radius: 12px; background: rgba(239, 52, 60, .07); }
.rr-danger-zone h4 { margin: 0 0 6px; color: #ff7379; font-size: .92rem; }
.rr-danger-zone p { margin: 0 0 14px; color: var(--ui-muted); font-size: .84rem; line-height: 1.5; }

@media (max-width: 860px) {
    .rr-options-layout { grid-template-columns: minmax(0, 1fr); }
    .rr-editor-column { position: static; }
    .rr-column-head { flex-wrap: wrap; }
}

.rr-danger-zone .btn-danger { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid rgba(239, 52, 60, .55); border-radius: 9px; background: rgba(239, 52, 60, .14); color: #ff8a8f; font-weight: 700; cursor: pointer; }
.rr-danger-zone .btn-danger:hover { background: rgba(239, 52, 60, .26); }


/* ==========================================================================
   SELECTEUR FORMAT MESSAGE — TEXTE SIMPLE / EMBED DISCORD
   ========================================================================== */

.msg-format-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.msg-format-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #141722;
    border: 1px solid rgba(164, 174, 196, 0.18);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8b95a5;
    transition: all 0.18s ease;
    user-select: none;
}

.msg-format-option input[type="radio"] {
    display: none;
}

.msg-format-option i {
    font-size: 0.9rem;
    color: inherit;
}

.msg-format-option:hover {
    border-color: rgba(239, 52, 60, 0.35);
    color: #f1f5f9;
    background: #181c28;
}

.msg-format-option--active {
    background: linear-gradient(90deg, rgba(239, 52, 60, 0.16) 0%, rgba(239, 52, 60, 0.06) 100%);
    border-color: rgba(239, 52, 60, 0.5);
    color: #ffffff;
}

.msg-format-option--active i {
    color: #ef343c;
}

.msg-format-option--embed.msg-format-option--active {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.18) 0%, rgba(88, 101, 242, 0.06) 100%);
    border-color: rgba(88, 101, 242, 0.5);
}

.msg-format-option--embed.msg-format-option--active i {
    color: #7289da;
}

/* ==========================================================================
   REFONTE DU CENTRE DE NOTIFICATIONS & DROPDOWN - AKZ PROTECT
   ========================================================================== */

/* Bell Container & Badge */
.notification-bell-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notification-bell-container:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(208, 24, 24, 0.4);
    color: #fff;
    box-shadow: 0 0 16px rgba(208, 24, 24, 0.2);
    transform: translateY(-1px);
}

#notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 2px solid #0f1117;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
    animation: notifPulse 2s infinite ease-in-out;
}

@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Modern Dropdown */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: 440px;
    max-width: calc(100vw - 28px);
    z-index: 2500;
    animation: notifDropFade 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifDropFade {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.notif-dropdown-box {
    background: linear-gradient(180deg, rgba(20, 22, 30, 0.98) 0%, rgba(14, 16, 22, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.04), 0 0 35px rgba(208, 24, 24, 0.08);
    overflow: hidden;
}

.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.notif-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-header-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(208, 24, 24, 0.12);
    border: 1px solid rgba(208, 24, 24, 0.25);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.notif-header-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.notif-count-tag {
    padding: 2px 7px;
    border-radius: 6px;
    background: rgba(208, 24, 24, 0.18);
    border: 1px solid rgba(208, 24, 24, 0.35);
    color: #ff6b6b;
    font-size: 0.72rem;
    font-weight: 750;
    line-height: 1.2;
}

.notif-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notif-btn-create {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 7px;
    background: linear-gradient(135deg, #d01818 0%, #b81414 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
}

.notif-btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(208, 24, 24, 0.4);
    background: linear-gradient(135deg, #e51d1d 0%, #c81616 100%);
}

.notif-btn-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted, #94a3b8);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
}

.notif-btn-clear:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.notif-scroll-container {
    max-height: 420px;
    overflow-y: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-scroll-container::-webkit-scrollbar {
    width: 6px;
}
.notif-scroll-container::-webkit-scrollbar-track {
    background: transparent;
}
.notif-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}
.notif-scroll-container::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Empty State */
.notif-empty-state {
    padding: 38px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.notif-empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.notif-empty-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 4px;
}

.notif-empty-subtitle {
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    max-width: 260px;
    line-height: 1.4;
}

.notif-empty-page {
    min-height: 340px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    margin: 20px 0;
}
.notif-empty-page .notif-empty-icon {
    width: 72px;
    height: 72px;
    font-size: 1.8rem;
}
.notif-empty-page .notif-empty-title {
    font-size: 1.15rem;
}
.notif-empty-page .notif-empty-subtitle {
    font-size: 0.88rem;
    max-width: 400px;
}

/* Notification Items (Cards) */
.notification-item {
    position: relative;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 13px 14px;
    display: flex;
    gap: 13px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.notification-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3.5px;
    background: #3b82f6;
    border-radius: 3px 0 0 3px;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Notification Types Border & Accents */
.notification-item.info::before    { background: #3b82f6; }
.notification-item.success::before { background: #10b981; }
.notification-item.warning::before { background: #f59e0b; }
.notification-item.error::before   { background: #ef4444; }

.notification-item.info:hover    { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(59, 130, 246, 0.12); }
.notification-item.success:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(16, 185, 129, 0.12); }
.notification-item.warning:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(245, 158, 11, 0.12); }
.notification-item.error:hover   { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 20px rgba(239, 68, 68, 0.14); }

.notif-icon-col {
    flex-shrink: 0;
}

.notif-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.notif-icon.info {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #60a5fa;
}
.notif-icon.success {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399;
}
.notif-icon.warning {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fbbf24;
}
.notif-icon.error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.28);
    color: #f87171;
}

.notif-content-col {
    flex: 1;
    min-width: 0;
}

.notif-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 5px;
}

.notif-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.notif-pill.info {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.24);
    color: #60a5fa;
}
.notif-pill.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.24);
    color: #34d399;
}
.notif-pill.warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.24);
    color: #fbbf24;
}
.notif-pill.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.24);
    color: #f87171;
}

.notif-date {
    font-size: 0.72rem;
    color: var(--text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.notif-title {
    font-size: 0.91rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 4px;
    line-height: 1.35;
    word-break: break-word;
}

.notif-message {
    font-size: 0.82rem;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.55;
    word-break: break-word;
    margin-bottom: 9px;
}
.notif-message a {
    color: #60a5fa;
    text-decoration: underline;
}
.notif-message code {
    background: rgba(0, 0, 0, 0.35);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
    color: #fca5a5;
}

.notif-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.notif-author-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px 2px 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.notif-author-avatar,
.notif-author-chip .notif-avatar-fallback {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.notif-author-chip .notif-avatar-fallback {
    background: rgba(208, 24, 24, 0.2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
}

.notif-author-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
}

.notif-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notif-actions-btn {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted, #64748b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.74rem;
    transition: all 0.15s ease;
}

.notif-actions-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.notif-actions-btn.delete:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

/* Full Page Notifications Layout */
.notif-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

.notif-page-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 750;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.notif-page-title i {
    color: #ef4444;
}

.notif-page-desc {
    margin: 5px 0 0;
    color: var(--text-muted, #94a3b8);
    font-size: 0.88rem;
}

.notif-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notif-btn-create-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #d01818 0%, #a81212 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(208, 24, 24, 0.35);
    transition: all 0.2s ease;
}

.notif-btn-create-page:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(208, 24, 24, 0.5);
    background: linear-gradient(135deg, #e01b1b 0%, #b81414 100%);
}

.notif-btn-clear-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-secondary, #94a3b8);
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notif-btn-clear-page:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.notif-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

/* ==========================================================================
   SELECTEUR FORMAT MESSAGE — TEXTE SIMPLE / EMBED DISCORD
   ========================================================================== */

.msg-format-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.msg-format-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #141722;
    border: 1px solid rgba(164, 174, 196, 0.18);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8b95a5;
    transition: all 0.18s ease;
    user-select: none;
}

.msg-format-option input[type="radio"] {
    display: none;
}

.msg-format-option i {
    font-size: 0.9rem;
    color: inherit;
}

.msg-format-option:hover {
    border-color: rgba(239, 52, 60, 0.35);
    color: #f1f5f9;
    background: #181c28;
}

.msg-format-option--active {
    background: linear-gradient(90deg, rgba(239, 52, 60, 0.16) 0%, rgba(239, 52, 60, 0.06) 100%);
    border-color: rgba(239, 52, 60, 0.5);
    color: #ffffff;
}

.msg-format-option--active i {
    color: #ef343c;
}

.msg-format-option--embed.msg-format-option--active {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.18) 0%, rgba(88, 101, 242, 0.06) 100%);
    border-color: rgba(88, 101, 242, 0.5);
}

.msg-format-option--embed.msg-format-option--active i {
    color: #7289da;
}

/* ==========================================================================
   MODAL CRÉATION / ÉDITION DE NOTIFICATION
   ========================================================================== */
.notif-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(6, 8, 12, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3200;
    padding: 20px;
}

.notif-modal-card {
    background: linear-gradient(180deg, #161822 0%, #10121a 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 660px;
    max-width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 45px rgba(208, 24, 24, 0.08);
    overflow: hidden;
    animation: notifModalScale 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes notifModalScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notif-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.notif-modal-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(208, 24, 24, 0.25) 0%, rgba(208, 24, 24, 0.08) 100%);
    border: 1px solid rgba(208, 24, 24, 0.35);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 0 18px rgba(208, 24, 24, 0.2);
}

.notif-close-btn {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted, #94a3b8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.18s ease;
}

.notif-close-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.notif-modal-body {
    padding: 22px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.notif-modal-body::-webkit-scrollbar {
    width: 6px;
}
.notif-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 3px;
}

.notif-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notif-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.notif-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.notif-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted, #64748b);
    font-size: 0.9rem;
    pointer-events: none;
}

.notif-input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.2s ease;
}

.notif-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

/* 4-Card Selector */
.notif-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

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

.notif-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 12px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.notif-type-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.notif-type-card.active {
    background: rgba(255, 255, 255, 0.07);
    border-color: #ef4444;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px #ef4444, inset 0 0 16px rgba(208, 24, 24, 0.12);
}

.notif-type-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.notif-type-card-icon.info {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}
.notif-type-card-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
.notif-type-card-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}
.notif-type-card-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.notif-type-card-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.notif-type-card-desc {
    font-size: 0.68rem;
    color: var(--text-muted, #94a3b8);
}

/* Rich Message Editor */
.notif-editor-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.notif-editor-box:focus-within {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.18);
}

.notif-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    flex-wrap: wrap;
}

.notif-toolbar-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.notif-toolbar-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 4px;
}

.notif-tool-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary, #cbd5e1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s ease;
}

.notif-tool-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.notif-tool-btn.emoji {
    font-size: 0.95rem;
}

.notif-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
}

.notif-textarea:focus {
    outline: none;
}

.notif-textarea::placeholder {
    color: var(--text-muted, #64748b);
}

/* Live Preview Box */
.notif-preview-wrapper {
    background: rgba(14, 16, 23, 0.95);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px;
}

/* Modal Footer */
.notif-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}

.notif-btn-cancel {
    padding: 9px 18px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: var(--text-secondary, #94a3b8);
    font-weight: 600;
    font-size: 0.86rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.notif-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.notif-btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 9px;
    background: linear-gradient(135deg, #d01818 0%, #b81414 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(208, 24, 24, 0.35);
    transition: all 0.18s ease;
}

.notif-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(208, 24, 24, 0.5);
    background: linear-gradient(135deg, #e51d1d 0%, #c81616 100%);
}


/* PicOnly Searchable Selectors */
.piconly-selector-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.piconly-count-badge {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 9px;
    border-radius: 999px;
}

.piconly-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.piconly-search-wrapper i {
    position: absolute;
    left: 13px;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.piconly-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: var(--bg-body, #0e1017);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: #fff;
    font-size: 0.86rem;
    outline: none;
    transition: all 0.2s ease;
}

.piconly-search-input:focus {
    border-color: var(--primary, #d01818);
    box-shadow: 0 0 0 2px rgba(208, 24, 24, 0.2);
}

.piconly-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 42px;
    max-height: 110px;
    overflow-y: auto;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    align-items: center;
}

.piconly-placeholder-chip {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-style: italic;
}

.piconly-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.78rem;
    color: #fff;
    font-weight: 500;
}

.piconly-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.piconly-chip-avatar {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.piconly-chip-remove {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 2px;
    transition: color 0.15s;
}

.piconly-chip-remove:hover {
    color: var(--danger, #ef4444);
}

.piconly-items-scroll {
    max-height: 230px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--bg-body, #0e1017);
    display: flex;
    flex-direction: column;
}

.piconly-items-scroll::-webkit-scrollbar {
    width: 5px;
}
.piconly-items-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.piconly-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.15s ease;
    user-select: none;
}

.piconly-item-row:last-child {
    border-bottom: none;
}

.piconly-item-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.piconly-item-row.selected {
    background: rgba(208, 24, 24, 0.1);
}

.piconly-item-left {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}

.piconly-item-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.piconly-avatar-fallback {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(208, 24, 24, 0.2);
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.piconly-item-name {
    font-size: 0.83rem;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.piconly-item-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.piconly-item-right input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary, #d01818);
    cursor: pointer;
}


/* ==========================================================================
   SELECTEUR FORMAT MESSAGE — TEXTE SIMPLE / EMBED DISCORD
   ========================================================================== */

.msg-format-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.msg-format-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #141722;
    border: 1px solid rgba(164, 174, 196, 0.18);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8b95a5;
    transition: all 0.18s ease;
    user-select: none;
}

.msg-format-option input[type="radio"] {
    display: none;
}

.msg-format-option i {
    font-size: 0.9rem;
    color: inherit;
}

.msg-format-option:hover {
    border-color: rgba(239, 52, 60, 0.35);
    color: #f1f5f9;
    background: #181c28;
}

.msg-format-option--active {
    background: linear-gradient(90deg, rgba(239, 52, 60, 0.16) 0%, rgba(239, 52, 60, 0.06) 100%);
    border-color: rgba(239, 52, 60, 0.5);
    color: #ffffff;
}

.msg-format-option--active i {
    color: #ef343c;
}

.msg-format-option--embed.msg-format-option--active {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.18) 0%, rgba(88, 101, 242, 0.06) 100%);
    border-color: rgba(88, 101, 242, 0.5);
}

.msg-format-option--embed.msg-format-option--active i {
    color: #7289da;
}

/* ==========================================================================
   REFONTE PREMIUM DU VISUEL DES NOTIFICATIONS & MODAL - AKZ PROTECT
   ========================================================================== */

/* Modern Notification Card */
.notif-card {
    position: relative;
    background: linear-gradient(135deg, rgba(24, 27, 36, 0.95) 0%, rgba(15, 17, 24, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
}

.notif-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.notif-card.mini {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Colored Left Accent */
.notif-card-accent {
    width: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.notif-card-accent.info    { background: #38bdf8; box-shadow: 0 0 14px rgba(56, 189, 248, 0.7); }
.notif-card-accent.success { background: #10b981; box-shadow: 0 0 14px rgba(16, 185, 129, 0.7); }
.notif-card-accent.warning { background: #f59e0b; box-shadow: 0 0 14px rgba(245, 158, 11, 0.7); }
.notif-card-accent.error   { background: #ef4444; box-shadow: 0 0 14px rgba(239, 68, 68, 0.7); }

.notif-card-inner {
    flex: 1;
    min-width: 0;
    padding: 13px 16px 13px 15px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.notif-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.notif-badge-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.notif-badge-chip.info {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    color: #38bdf8;
}
.notif-badge-chip.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #10b981;
}
.notif-badge-chip.warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #f59e0b;
}
.notif-badge-chip.error {
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.32);
    color: #ef4444;
}

.notif-timestamp {
    font-size: 0.73rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notif-card-title {
    font-size: 0.96rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    word-break: break-word;
    letter-spacing: -0.01em;
}

.notif-card-message {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.6;
    word-break: break-word;
}
.notif-card-message a {
    color: #38bdf8;
    text-decoration: underline;
    font-weight: 500;
}
.notif-card-message code {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.86em;
    color: #fca5a5;
}

.notif-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2px;
}

/* Admin Author Chip */
.notif-author-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.notif-author-img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}

.notif-author-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.notif-author-title {
    font-size: 0.82rem;
    font-weight: 650;
    color: #f1f5f9;
}

.notif-author-role {
    display: inline-flex;
    align-items: center;
    gap: 3.5px;
    font-size: 0.65rem;
    font-weight: 800;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    padding: 1.5px 6px;
    border-radius: 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.notif-card-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.notif-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
    color: #94a3b8;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    transition: all 0.18s ease;
}

.notif-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

.notif-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

/* Category Cards Selector in Modal */
.notif-types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

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

.notif-type-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.notif-type-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.notif-type-card.active[data-type="info"] {
    background: rgba(56, 189, 248, 0.08);
    border-color: #38bdf8;
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.25), inset 0 0 16px rgba(56, 189, 248, 0.08);
}
.notif-type-card.active[data-type="success"] {
    background: rgba(16, 185, 129, 0.08);
    border-color: #10b981;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.25), inset 0 0 16px rgba(16, 185, 129, 0.08);
}
.notif-type-card.active[data-type="warning"] {
    background: rgba(245, 158, 11, 0.08);
    border-color: #f59e0b;
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25), inset 0 0 16px rgba(245, 158, 11, 0.08);
}
.notif-type-card.active[data-type="error"] {
    background: rgba(239, 68, 68, 0.08);
    border-color: #ef4444;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.25), inset 0 0 16px rgba(239, 68, 68, 0.08);
}

.notif-type-card-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.notif-type-card-icon.info {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}
.notif-type-card-icon.success {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}
.notif-type-card-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}
.notif-type-card-icon.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.notif-type-card-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.notif-type-card-name {
    font-size: 0.83rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.notif-type-card-desc {
    font-size: 0.69rem;
    color: #94a3b8;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Live Badge Pulse in Modal */
.notif-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 2px 9px;
    border-radius: 999px;
}

.notif-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: notifLiveDotPulse 1.8s infinite ease-in-out;
}

@keyframes notifLiveDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   SELECTEUR FORMAT MESSAGE — TEXTE SIMPLE / EMBED DISCORD
   ========================================================================== */

.msg-format-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.msg-format-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #141722;
    border: 1px solid rgba(164, 174, 196, 0.18);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #8b95a5;
    transition: all 0.18s ease;
    user-select: none;
}

.msg-format-option input[type="radio"] {
    display: none;
}

.msg-format-option i {
    font-size: 0.9rem;
    color: inherit;
}

.msg-format-option:hover {
    border-color: rgba(239, 52, 60, 0.35);
    color: #f1f5f9;
    background: #181c28;
}

.msg-format-option--active {
    background: linear-gradient(90deg, rgba(239, 52, 60, 0.16) 0%, rgba(239, 52, 60, 0.06) 100%);
    border-color: rgba(239, 52, 60, 0.5);
    color: #ffffff;
}

.msg-format-option--active i {
    color: #ef343c;
}

.msg-format-option--embed.msg-format-option--active {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.18) 0%, rgba(88, 101, 242, 0.06) 100%);
    border-color: rgba(88, 101, 242, 0.5);
}

.msg-format-option--embed.msg-format-option--active i {
    color: #7289da;
}

/* ==========================================================================
   COLOR PICKER UNIFIÉ - AKZ PROTECT (SWATCH + HEX + POPOVER PRESETS)
   ========================================================================== */

.cpk-wrap {
    position: relative;
    display: inline-block;
    width: 100%;
}

.cpk-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #141722;
    border: 1px solid rgba(164, 174, 196, 0.18);
    border-radius: 10px;
    padding: 7px 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cpk-trigger:hover {
    border-color: rgba(239, 52, 60, 0.45);
    background: #181c28;
}

.cpk-wrap.open .cpk-trigger {
    border-color: #ef343c;
    background: #151824;
    box-shadow: 0 0 0 3px rgba(239, 52, 60, 0.14);
}

.cpk-swatch {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    transition: transform 0.15s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.cpk-trigger:hover .cpk-swatch {
    transform: scale(1.08);
}

.cpk-hex {
    flex: 1;
    color: #f1f5f9;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cpk-arrow {
    color: #8b95a5;
    font-size: 0.75rem;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.cpk-wrap.open .cpk-arrow {
    transform: rotate(180deg);
    color: #ef343c;
}

.cpk-panel {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 9999;
    background: #12141d;
    border: 1px solid rgba(164, 174, 196, 0.18);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
    min-width: 260px;
    width: 100%;
    box-sizing: border-box;
    animation: cpk-fade-in 0.15s ease-out;
}

@keyframes cpk-fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cpk-wrap.open .cpk-panel {
    display: block;
}

.cpk-presets-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #8b95a5;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cpk-presets {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 12px;
}

.cpk-preset {
    height: 24px;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.12s ease, border-color 0.12s ease;
}

.cpk-preset:hover {
    transform: scale(1.18);
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.cpk-native-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(164, 174, 196, 0.12);
}

.cpk-native-label {
    font-size: 0.78rem;
    color: #8b95a5;
    white-space: nowrap;
}

.cpk-native-input {
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    border: 1px solid rgba(164, 174, 196, 0.2) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    background: transparent !important;
    flex-shrink: 0;
}

.cpk-hex-input {
    flex: 1;
    background: #181c28 !important;
    border: 1px solid rgba(164, 174, 196, 0.16) !important;
    border-radius: 6px !important;
    color: #f1f5f9 !important;
    padding: 6px 10px !important;
    font-size: 0.84rem !important;
    font-family: 'JetBrains Mono', monospace !important;
    text-transform: uppercase;
    outline: none !important;
}

.cpk-hex-input:focus {
    border-color: #ef343c !important;
    box-shadow: 0 0 0 2px rgba(239, 52, 60, 0.15) !important;
}

/* ==========================================================================
   LISTES DÉROULANTES PERSONNALISÉES (CUSTOM SELECT) - MODERN DARK SLATE
   ========================================================================== */

.custom-select-wrapper {
    position: relative !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

.custom-select {
    position: relative !important;
    width: 100% !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    user-select: none !important;
}

.custom-select-trigger {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #141722 !important;
    border: 1px solid rgba(164, 174, 196, 0.18) !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    color: #f1f5f9 !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    min-height: 42px !important;
    box-sizing: border-box !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.custom-select-trigger:hover {
    border-color: rgba(239, 52, 60, 0.45) !important;
    background: #181c28 !important;
}

.custom-select-wrapper.open .custom-select-trigger,
.custom-select.open .custom-select-trigger {
    border-color: #ef343c !important;
    background: #151824 !important;
    box-shadow: 0 0 0 3px rgba(239, 52, 60, 0.14) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.custom-select-value {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: #f1f5f9 !important;
    font-weight: 500 !important;
    min-width: 0 !important;
}

.custom-select-value i {
    color: #ef343c !important;
}

.arrow, .custom-select-arrow {
    width: 0 !important;
    height: 0 !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 5px solid #8b95a5 !important;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-top-color 0.2s ease !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
}

.custom-select.open .arrow,
.custom-select-wrapper.open .custom-select-arrow {
    transform: rotate(180deg) !important;
    border-top-color: #ef343c !important;
}

.custom-options, .custom-select-options {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: #12141d !important;
    border: 1px solid rgba(164, 174, 196, 0.18) !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
    max-height: 330px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    z-index: 999 !important;
    display: none !important;
    padding: 6px 6px 8px !important;
}

.custom-select.open .custom-options,
.custom-select-wrapper.open .custom-select-options {
    display: block !important;
    animation: customSelectFadeIn 0.18s ease-out !important;
}

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

/* Ouverture vers le haut quand la place manque en dessous */
.custom-select.open-up .custom-options,
.custom-select-wrapper.open-up .custom-select-options {
    top: auto !important;
    bottom: 100% !important;
    border-top: 1px solid rgba(164, 174, 196, 0.18) !important;
    border-bottom: none !important;
    border-radius: 10px 10px 0 0 !important;
    box-shadow: 0 -16px 36px rgba(0, 0, 0, 0.65) !important;
}

.custom-select.open-up .custom-select-trigger {
    border-radius: 0 0 10px 10px !important;
}

/* La barre de recherche dans la liste déroulante */
.custom-select-search {
    position: sticky !important;
    top: 0 !important;
    z-index: 5 !important;
    display: block !important;
    width: 100% !important;
    margin: 2px 0 8px 0 !important;
    background: #191c28 !important;
    border: 1px solid rgba(164, 174, 196, 0.16) !important;
    border-radius: 8px !important;
    color: #f1f5f9 !important;
    padding: 9px 12px !important;
    font-size: 0.88rem !important;
    font-family: 'Inter', sans-serif !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.custom-select-search::placeholder {
    color: #64748b !important;
    font-style: normal !important;
}

.custom-select-search:focus {
    border-color: #ef343c !important;
    background: #1d2130 !important;
    box-shadow: 0 0 0 2px rgba(239, 52, 60, 0.18) !important;
}

.custom-select-noresult {
    padding: 14px 16px !important;
    color: #64748b !important;
    font-size: 0.85rem !important;
    font-style: italic !important;
    text-align: center !important;
}

/* Options */
.custom-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    margin: 2px 0 !important;
    color: #cbd5e1 !important;
    font-size: 0.88rem !important;
    font-weight: 450 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.14s ease !important;
    border: 1px solid transparent !important;
}

.custom-option > span {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    min-width: 0 !important;
}

.custom-select-value .cs-label-text {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    transform: translateX(2px) !important;
}

.custom-option:hover i {
    color: #ff666d !important;
}

/* Élément sélectionné : fond bleuté subtil avec accentuation rouge douce et texte blanc net */
.custom-option.selected {
    background: linear-gradient(90deg, rgba(239, 52, 60, 0.18) 0%, rgba(239, 52, 60, 0.06) 100%) !important;
    border: 1px solid rgba(239, 52, 60, 0.35) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

.custom-option.selected i {
    color: #ef343c !important;
}

.custom-option i {
    color: #7d899b !important;
    width: 16px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.custom-options::-webkit-scrollbar,
.custom-select-options::-webkit-scrollbar {
    width: 6px !important;
}
.custom-options::-webkit-scrollbar-track,
.custom-select-options::-webkit-scrollbar-track {
    background: transparent !important;
}
.custom-options::-webkit-scrollbar-thumb,
.custom-select-options::-webkit-scrollbar-thumb {
    background: rgba(164, 174, 196, 0.2) !important;
    border-radius: 4px !important;
}
.custom-options::-webkit-scrollbar-thumb:hover,
.custom-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 52, 60, 0.5) !important;
}

/* ==========================================================================
   MODULE UNIFIÉ : MESSAGE BUILDER & PREVIEW (100% IDENTIQUE A LA REFERENCE)
   ========================================================================== */
.unified-msg-builder-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 20px !important;
    align-items: start !important;
    margin-bottom: 24px !important;
}

@media (max-width: 1100px) {
    .unified-msg-builder-wrap {
        grid-template-columns: 1fr !important;
    }
}

.msg-format-radio-group {
    display: flex !important;
    gap: 24px !important;
    margin-bottom: 16px !important;
    align-items: center !important;
}

.msg-format-radio-group label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    color: var(--text-main) !important;
    letter-spacing: 0.03em !important;
    user-select: none !important;
    transition: color 0.15s ease !important;
}

.msg-format-radio-group label:hover {
    color: #ffffff !important;
}

.msg-format-radio-group input[type="radio"] {
    accent-color: #ef343c !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    cursor: pointer !important;
}

.unified-msg-right-col {
    background: #313338 !important;
    position: sticky !important;
    top: 20px !important;
    margin-top: 0 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    font-family: 'gg sans', 'Noto Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}
