/**
 * NOX ALERT PANEL - Design Casino Premium
 */

/* Panel principal */
#nox-alert {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    padding: 20px;
    position: relative;
    overflow-y: auto;
}

/* ======================
   NOX ALERT FULLSCREEN MODAL
   ====================== */
#nox-alert-modal {
    position: fixed;
    inset: 0;
    display: none; /* toggled via JS */
    align-items: stretch;
    justify-content: center;
    background: transparent; /* no dark overlay to keep same blue tone as header */
    backdrop-filter: none;
    z-index: 10000;
}

#nox-alert-modal.active {
    display: flex;
}

.nox-alert-content {
    /* Legacy theme variables (scoped to modal) */
    --legacy-bg-1: #0b1226;   /* Navy deep */
    --legacy-bg-2: #121f3d;   /* Navy */
    --legacy-bg-3: #1d2b4f;   /* Steel blue */
    --legacy-card: rgba(57, 48, 115, 0.6); /* Purple glass */
    --legacy-card-border: rgba(126, 117, 198, 0.55);
    --legacy-muted: rgba(255,255,255,0.06);
    --legacy-text: #e8e8ff;
    --legacy-gold: #ffd84d;
    --legacy-gold-strong: #ffc107;
    --legacy-purple: #6a5acd;
    --legacy-purple-deep: #5646c9;

    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
    /* Match the darker navy from screenshot */
    background: #1a2332;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* header sticky + inner scroll */
}

.nox-alert-content .modal-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #1a2332; /* same exact navy as body */
    border-bottom: none; /* remove separator for seamless look */
    backdrop-filter: none;
}

/* Hero header (TikTok-style) */
.nox-hero-header {
    gap: 12px;
    position: relative;
    justify-content: center; /* center header content */
}
.nox-hero-container { max-width: 1320px; margin: 0 auto; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.nox-hero-header .hero-left { display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; }
.nox-hero-header .hero-title-row { display: flex; align-items: center; gap: 10px; }
.nox-hero-header .hero-logo { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(255,255,255,0.2)); }
.nox-hero-header .hero-icon { font-size: 1.4rem; filter: drop-shadow(0 0 10px rgba(255,215,0,0.5)); }
.nox-hero-header .hero-title { letter-spacing: 0.5px; background: linear-gradient(45deg,#ffd700,#ffed4e,#ffd700); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-shadow: 0 0 20px rgba(255,215,0,0.35); }
.nox-hero-header .hero-subtitle { color: #bdbdbd; font-size: 0.95rem; opacity: 0.95; }
.nox-hero-header .badge-live { background: linear-gradient(45deg,#ff3b5c,#ff8a9b); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; box-shadow: 0 0 12px rgba(255,59,92,0.4); }
.nox-hero-header .badge-vip { background: linear-gradient(45deg,#8a2be2,#b07cff); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; box-shadow: 0 0 12px rgba(138,43,226,0.35); }
.nox-hero-header .hero-right { display: flex; align-items: center; gap: 10px; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }
.nox-hero-header .hero-cta { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.15); color: #fff; background: rgba(255,255,255,0.06); cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.nox-hero-header .hero-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.nox-hero-header .hero-cta i { transition: transform .4s ease; }
.nox-hero-header .hero-cta.spin i { transform: rotate(360deg); }

.nox-alert-content .modal-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--legacy-text);
}

.nox-alert-content .modal-close {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nox-alert-content .modal-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 20px 24px 24px;
}

/* Modal containers reuse the same visuals */
#noxAlertListModal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1320px; /* center like old design */
    margin: 0 auto;
}

#noxLoadingModal, #noxEmptyModal {
    text-align: center;
    color: #a0a0a0;
}

/* Legacy styling INSIDE the modal scope */
#nox-alert-modal .nox-alert-card {
    background: var(--legacy-card);
    border: 1px solid var(--legacy-card-border);
}

#nox-alert-modal .nox-metric { 
    background: var(--legacy-muted);
    border: 1px solid rgba(255,255,255,0.08);
}

#nox-alert-modal .nox-score-value { color: var(--legacy-gold); }

#nox-alert-modal .nox-action-btn.copy { 
    background: linear-gradient(45deg, var(--legacy-purple), var(--legacy-purple-deep));
    border-color: rgba(255,255,255,0.2);
}

#nox-alert-modal .nox-action-btn.chart {
    background: rgba(106, 90, 205, 0.12);
    color: #c9c4ff;
    border: 1px solid rgba(106, 90, 205, 0.35);
}

#nox-alert-modal .nox-action-btn.trade {
    background: linear-gradient(45deg, var(--legacy-gold), var(--legacy-gold-strong));
    color: #2b1f00;
    border: 1px solid rgba(255, 216, 77, 0.6);
}

/* Hero badges in legacy tone */
#nox-alert-modal .nox-hero-header .badge-live {
    background: linear-gradient(45deg, var(--legacy-gold), #ffe072);
    color: #2b1f00;
    box-shadow: 0 0 12px rgba(255, 216, 77, 0.35);
}
#nox-alert-modal .nox-hero-header .badge-vip {
    background: linear-gradient(45deg, var(--legacy-purple), var(--legacy-purple-deep));
}

/* Responsive tweaks for modal */
@media (max-width: 1200px) {
    #noxAlertListModal { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}
@media (max-width: 992px) {
    .nox-hero-header .hero-subtitle { font-size: 0.9rem; }
}
@media (max-width: 768px) {
    .nox-hero-header { flex-direction: column; align-items: center; gap: 10px; }
    .nox-hero-header .hero-right { position: static; transform: none; width: 100%; justify-content: space-between; }
    #noxAlertListModal { grid-template-columns: 1fr; }
}

/* Legacy-style menu bar inside modal */
.nox-modal-filter-bar {
    max-width: 1320px;
    margin: 8px auto 16px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    display: flex;
    justify-content: center;
}
.nox-modal-filter-bar .nox-filter-group { display: flex; gap: 10px; flex-wrap: wrap; }
.nox-modal-filter-bar .nox-filter-btn {
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #eaeaff;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    transition: all .2s ease;
}
.nox-modal-filter-bar .nox-filter-btn:hover { transform: translateY(-1px); }
.nox-modal-filter-bar .nox-filter-btn.active {
    background: linear-gradient(45deg, var(--legacy-gold), var(--legacy-gold-strong));
    color: #2b1f00;
    border-color: rgba(255, 216, 77, 0.5);
}

#nox-alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(0, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* Quand le panel est actif, s'assurer qu'il est visible */
#nox-alert.active {
    display: flex !important;
    flex-direction: column;
}

/* Header des alertes */
.nox-alert-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.nox-alert-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmer 3s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    margin-bottom: 10px;
}

.nox-alert-subtitle {
    color: #a0a0a0;
    font-size: 1.1rem;
    font-weight: 400;
}

@keyframes goldShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Barre de filtres */
.nox-filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(10px);
}

.nox-filter-group {
    display: flex;
    gap: 10px;
}

.nox-filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nox-filter-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    border-color: rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.nox-filter-btn.active {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.nox-refresh-btn {
    padding: 10px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(45deg, #8a2be2, #9370db);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nox-refresh-btn:hover {
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.5);
}

/* Liste des alertes */
.nox-alert-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Carte d'alerte */
.nox-alert-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    padding: 25px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nox-alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.nox-alert-card:hover::before {
    left: 100%;
}

.nox-alert-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

/* Header de la carte */
.nox-alert-header-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.nox-token-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nox-token-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.5);
    object-fit: cover;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
}

.nox-token-details h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.nox-token-symbol {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin: 0;
}

.nox-verdict {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nox-verdict.bullish {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.nox-verdict.bearish {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.4);
}

.nox-verdict.neutral {
    background: linear-gradient(45deg, #ffa502, #ff9500);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 165, 2, 0.4);
}

/* Métriques */
.nox-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.nox-metric {
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nox-metric-label {
    color: #a0a0a0;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.nox-metric-value {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
}

.nox-metric-value.positive {
    color: #00ff88;
}

.nox-metric-value.negative {
    color: #ff4757;
}

/* Score IA */
.nox-ai-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px;
    background: linear-gradient(45deg, rgba(138, 43, 226, 0.2), rgba(147, 112, 219, 0.2));
    border-radius: 15px;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.nox-score-icon {
    font-size: 1.5rem;
    color: #9370db;
}

.nox-score-text {
    color: #ffffff;
    font-weight: 600;
}

.nox-score-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffd700;
}

/* Narrative IA */
.nox-narrative {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
    margin-bottom: 15px;
}

.nox-narrative-text {
    color: #e0e0e0;
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

/* Actions */
.nox-alert-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nox-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.nox-action-btn.scan {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
}

.nox-action-btn.chart {
    background: linear-gradient(45deg, #3742fa, #2f3542);
    color: #fff;
}

.nox-action-btn.trade {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.nox-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* État de chargement */
.nox-loading {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0a0;
}

.nox-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-top: 3px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* État vide */
.nox-empty {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0a0;
}

.nox-empty-icon {
    font-size: 4rem;
    color: #333;
    margin-bottom: 20px;
}

/* État d'erreur */
.nox-error {
    text-align: center;
    padding: 60px 20px;
    color: #a0a0a0;
}

.nox-error-icon {
    font-size: 4rem;
    color: #ff4757;
    margin-bottom: 20px;
}

.nox-error h3 {
    color: #ff4757;
    margin-bottom: 10px;
}

.nox-error p {
    margin-bottom: 20px;
}

/* Dernière mise à jour */
.nox-last-update {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* FORCER L'AFFICHAGE DU PANEL NOX-ALERT */
#nox-alert.active {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%) !important;
    padding: 20px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Assurer que le contenu des alertes est visible */
#nox-alert .nox-alert-list {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    z-index: 5 !important;
}

#nox-alert .nox-alert-card {
    display: block !important;
    position: relative !important;
    z-index: 3 !important;
    margin-bottom: 20px !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Forcer tous les éléments du panel à être visibles */
#nox-alert * {
    opacity: 1 !important;
    visibility: visible !important;
}

#nox-alert .nox-alert-header,
#nox-alert .nox-filter-bar,
#nox-alert .nox-alert-list {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Boutons d'action */
.nox-alert-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.nox-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

/* Style spécifique pour le bouton de copie */
.nox-action-btn.copy {
    background: linear-gradient(45deg, #4a6bff, #6e8cff);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nox-action-btn.copy:hover {
    background: linear-gradient(45deg, #3a5bef, #5d7cff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 107, 255, 0.3);
}

.nox-action-btn.copy:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(74, 107, 255, 0.3);
}

/* État copié */
.nox-action-btn.copy.copied {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    animation: pulseGreen 0.5s ease-out;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* Boutons Chart et Trade */
.nox-action-btn.chart {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.nox-action-btn.trade {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.nox-action-btn.chart:hover {
    background: rgba(255, 193, 7, 0.2);
    transform: translateY(-2px);
}

.nox-action-btn.trade:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .nox-alert-list {
        grid-template-columns: 1fr;
    }
    
    .nox-filter-bar {
        flex-direction: column;
        gap: 15px;
    }
    
    .nox-filter-group {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nox-metrics {
        grid-template-columns: 1fr;
    }
}

/* Animations */
.nox-alert-card {
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Effet de pulsation pour les nouvelles alertes */
.nox-alert-card.new {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

/* ==== SYSTÈME DE FEEDBACK UTILISATEUR ==== */

/* Section feedback */
.nox-feedback-section {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(5px);
}

.nox-feedback-question {
    text-align: center;
    margin-bottom: 15px;
}

.nox-feedback-question p {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
}

/* Boutons de feedback */
.nox-feedback-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}

.nox-feedback-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 90px;
    justify-content: center;
}

.nox-feedback-btn.profit {
    background: linear-gradient(45deg, #00ff88, #00cc6a);
    color: #000;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.nox-feedback-btn.profit:hover {
    background: linear-gradient(45deg, #00cc6a, #00aa55);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.nox-feedback-btn.loss {
    background: linear-gradient(45deg, #ff4757, #ff3742);
    color: #fff;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.nox-feedback-btn.loss:hover {
    background: linear-gradient(45deg, #ff3742, #e63946);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
}

.nox-feedback-btn.neutral {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: #fff;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.nox-feedback-btn.neutral:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

/* Message de remerciement */
.nox-feedback-thanks {
    text-align: center;
    padding: 15px;
    background: linear-gradient(45deg, rgba(0, 255, 136, 0.1), rgba(255, 215, 0, 0.1));
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.nox-feedback-thanks p {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Animation pour les boutons de feedback */
.nox-feedback-btn {
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive pour le feedback */
@media (max-width: 768px) {
    .nox-feedback-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .nox-feedback-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Mobile-first responsiveness for modal */
@media (max-width: 768px) {
    /* Add a subtle backdrop on mobile for readability */
    #nox-alert-modal {
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(2px);
    }
    .nox-alert-content { height: 100dvh; }
    .nox-alert-content .modal-header { padding: 10px 12px; }
    .nox-alert-content .modal-body { padding: 12px 12px 16px; }
    #noxAlertListModal { gap: 12px; }
    .nox-alert-card { padding: 16px; border-radius: 14px; }
    .nox-token-logo { width: 32px; height: 32px; }
    .nox-token-details h3 { font-size: 1rem; }
    .nox-token-symbol { font-size: 0.8rem; }
    .nox-metric { padding: 10px; }
    .nox-metric-value { font-size: 1rem; }
    .nox-score-value { font-size: 1.1rem; }
    .nox-narrative { padding: 12px; }
    .nox-narrative-text { font-size: 0.9rem; }
    .nox-alert-actions { flex-wrap: wrap; gap: 8px; }
    .nox-action-btn { flex: 1 1 calc(50% - 6px); min-width: 130px; font-size: 0.85rem; padding: 10px 12px; }
    .nox-hero-header .hero-cta { display: none; }
    .nox-hero-header .hero-title-row { gap: 8px; }
    .nox-hero-header .hero-title { font-size: 1.1rem; }
    .nox-hero-header .hero-subtitle { font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .nox-alert-card { padding: 14px; }
    .nox-metrics { grid-template-columns: 1fr; gap: 10px; }
    .nox-action-btn { flex: 1 1 100%; min-width: 0; }
    #noxAlertListModal { grid-template-columns: 1fr; }
}

/* =============================
   NOXAI Brand Overrides (Pro UI)
   Align NOX ALERT to site branding using CSS variables
   ============================= */
#nox-alert,
#nox-alert.active { background: var(--bg) !important; }

.nox-alert-content,
.nox-alert-content .modal-header { background: var(--surface-2) !important; }

/* Header branding */
.nox-hero-header .hero-title,
.nox-alert-title {
  background: linear-gradient(135deg, var(--primary), #00ad84) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
}
.nox-hero-header .badge-live {
  background: linear-gradient(135deg, var(--primary), #00ad84) !important;
  color: #0b1220 !important;
  box-shadow: 0 0 12px rgba(0,229,168,0.35) !important;
}
.nox-hero-header .badge-vip {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

/* Filters */
.nox-filter-bar { background: var(--surface) !important; border: 1px solid var(--border) !important; }
.nox-filter-btn { background: rgba(255,255,255,0.06) !important; color: var(--text) !important; border: 1px solid var(--border) !important; }
.nox-filter-btn.active {
  background: linear-gradient(135deg, var(--primary), #00ad84) !important;
  color: #0b1220 !important;
  border-color: transparent !important;
}
.nox-refresh-btn { background: linear-gradient(135deg, var(--primary), #00ad84) !important; color: #0b1220 !important; }

/* Cards and metrics */
.nox-alert-card { background: var(--surface-2) !important; border: 1px solid var(--border) !important; }
.nox-alert-card:hover { border-color: rgba(0,229,168,0.5) !important; box-shadow: 0 10px 30px rgba(0,229,168,0.16) !important; }
.nox-token-logo { border-color: rgba(0,229,168,0.5) !important; background: linear-gradient(45deg, var(--primary), #00ad84) !important; }
.nox-metric { background: var(--surface) !important; border: 1px solid var(--border) !important; }
.nox-metric-label { color: var(--muted) !important; }
.nox-metric-value { color: var(--text) !important; }
.nox-metric-value.positive { color: var(--success) !important; }
.nox-metric-value.negative { color: var(--danger) !important; }

/* AI score & narrative */
.nox-ai-score { background: linear-gradient(135deg, rgba(0,229,168,0.15), rgba(0,173,132,0.15)) !important; border: 1px solid rgba(0,229,168,0.35) !important; }
.nox-score-icon { color: #00ad84 !important; }
.nox-score-text { color: var(--text) !important; }
.nox-score-value { color: var(--primary) !important; }
.nox-narrative { background: rgba(0,229,168,0.07) !important; border-left-color: var(--primary) !important; }
.nox-narrative-text { color: var(--text) !important; }

/* Action buttons */
.nox-action-btn.copy { background: linear-gradient(135deg, var(--primary), #00ad84) !important; color: #0b1220 !important; border: 1px solid rgba(0,0,0,0.2) !important; }
.nox-action-btn.chart { background: rgba(255,255,255,0.06) !important; color: var(--text) !important; border: 1px solid var(--border) !important; }
.nox-action-btn.trade { background: linear-gradient(135deg, var(--primary), #00ad84) !important; color: #0b1220 !important; border: 1px solid rgba(0,0,0,0.2) !important; }

/* Remove old decorative radial lights */
#nox-alert::before { display: none !important; }
