/* ═══════════════════════════════════════════════════════
   DILUTIONWATCH - PULSE + UNIFIED RISK BAR + CONTROLS
   Static glow. No breathing. Clean cockpit aesthetic.
   2026-02-04 v1045
   ═══════════════════════════════════════════════════════ */

:root {
    --pulse-critical: #ef4444;
    --pulse-critical-dim: rgba(239, 68, 68, 0.15);
    --pulse-critical-glow: rgba(239, 68, 68, 0.45);
    --pulse-critical-glow-dim: rgba(239, 68, 68, 0.12);
    --pulse-high: #f97316;
    --pulse-high-dim: rgba(249, 115, 22, 0.15);
    --pulse-high-glow: rgba(249, 115, 22, 0.40);
    --pulse-high-glow-dim: rgba(249, 115, 22, 0.10);
    --pulse-medium: #eab308;
    --pulse-medium-dim: rgba(234, 179, 8, 0.12);
    --pulse-medium-glow: rgba(234, 179, 8, 0.35);
    --pulse-medium-glow-dim: rgba(234, 179, 8, 0.08);
    --pulse-low: #22c55e;
    --pulse-low-dim: rgba(34, 197, 94, 0.10);
    --pulse-low-glow: rgba(34, 197, 94, 0.30);
    --pulse-low-glow-dim: rgba(34, 197, 94, 0.07);
}


/* ═══════════════════════════════════════════════════════
   UNIFIED RISK BAR — My Tickers + Pulse summary
   Overrides old .summary-cards / .summary-card
   ═══════════════════════════════════════════════════════ */

.dw-risk-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 14px 20px !important;
    background: linear-gradient(135deg, #0f0f1a 0%, #141428 100%) !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}

.dw-risk-pill {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 18px !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    font-family: inherit !important;
    outline: none !important;
    min-width: auto !important;
    max-width: none !important;
    text-align: left !important;
}

.dw-risk-pill:hover {
    transform: scale(1.04) !important;
}

.dw-risk-dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: currentColor !important;
    box-shadow: 0 0 8px currentColor !important;
    flex-shrink: 0 !important;
}

.dw-risk-count {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.dw-risk-label {
    font-weight: 500 !important;
    opacity: 0.85 !important;
    font-size: 0.88rem !important;
}

.dw-risk-pill.critical { color: var(--pulse-critical) !important; background: var(--pulse-critical-dim) !important; }
.dw-risk-pill.high     { color: var(--pulse-high) !important;     background: var(--pulse-high-dim) !important; }
.dw-risk-pill.medium   { color: var(--pulse-medium) !important;   background: var(--pulse-medium-dim) !important; }
.dw-risk-pill.low      { color: var(--pulse-low) !important;      background: var(--pulse-low-dim) !important; }

.dw-risk-pill.active {
    border-color: currentColor !important;
    box-shadow: 0 0 16px currentColor !important;
}

.dw-risk-pill.dimmed { opacity: 0.35 !important; }
.dw-risk-pill.dimmed:hover { opacity: 0.65 !important; }

.dw-avg-score {
    margin-left: auto !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 8px !important;
    padding: 0 10px !important;
}
.dw-avg-value {
    font-size: 2rem !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}
.dw-avg-label {
    font-size: 0.78rem !important;
    font-weight: 500 !important;
    opacity: 0.5 !important;
    color: #94a3b8 !important;
}


/* ═══════════════════════════════════════════════════════
   PULSE SUMMARY BANNER — same pill style
   ═══════════════════════════════════════════════════════ */

.pulse-summary-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #0f0f1a 0%, #141428 100%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pulse-summary-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    background: transparent;
}
.pulse-summary-stat:hover { transform: scale(1.04); }
.pulse-summary-stat.stat-critical { color: var(--pulse-critical); background: var(--pulse-critical-dim); }
.pulse-summary-stat.stat-high     { color: var(--pulse-high);     background: var(--pulse-high-dim); }
.pulse-summary-stat.stat-medium   { color: var(--pulse-medium);   background: var(--pulse-medium-dim); }
.pulse-summary-stat.stat-low      { color: var(--pulse-low);      background: var(--pulse-low-dim); }
.pulse-summary-stat.active { border-color: currentColor; box-shadow: 0 0 16px currentColor; }

.pulse-stat-indicator {
    width: 10px; height: 10px; border-radius: 50%;
    background: currentColor; box-shadow: 0 0 8px currentColor;
}
.pulse-stat-count { font-size: 1.15rem; font-weight: 800; }
.pulse-stat-label { font-weight: 500; opacity: 0.85; }
.pulse-summary-sep { display: none; }

.pulse-summary-meta {
    margin-left: auto;
    display: flex; align-items: center; gap: 14px;
    color: #64748b; font-size: 0.85rem;
}

.pulse-refresh-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: #64748b;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.pulse-refresh-btn:hover {
    border-color: #3b82f6; color: #3b82f6;
    box-shadow: 0 0 12px rgba(59,130,246,0.25);
}
.pulse-refresh-btn.spinning svg { animation: pulse-spin 0.8s linear infinite; }


/* ═══════════════════════════════════════════════════════
   CONTROLS BAR — REDESIGNED
   Bigger pills, type-specific colors, proper spacing
   ═══════════════════════════════════════════════════════ */

.pulse-controls {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

/* Event type filter row */
.pulse-filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pulse-filter-pill {
    padding: 8px 18px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #8892a8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: 0.2px;
}

.pulse-filter-pill:hover {
    color: #c8d0e0;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    transform: translateY(-1px);
}

.pulse-filter-pill.active {
    color: #e2e8f0;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.2);
}

/* Type-specific active colors */
.pulse-filter-pill[data-type="filing"].active {
    color: var(--pulse-critical);
    border-color: rgba(239, 68, 68, 0.4);
    background: var(--pulse-critical-dim);
    box-shadow: 0 0 14px var(--pulse-critical-glow-dim);
}
.pulse-filter-pill[data-type="score"].active {
    color: var(--pulse-high);
    border-color: rgba(249, 115, 22, 0.4);
    background: var(--pulse-high-dim);
    box-shadow: 0 0 14px var(--pulse-high-glow-dim);
}
.pulse-filter-pill[data-type="news"].active {
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.15);
}
.pulse-filter-pill[data-type="insider"].active {
    color: #a78bfa;
    border-color: rgba(167, 139, 250, 0.4);
    background: rgba(167, 139, 250, 0.1);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.15);
}
.pulse-filter-pill[data-type="short"].active {
    color: var(--pulse-medium);
    border-color: rgba(234, 179, 8, 0.4);
    background: var(--pulse-medium-dim);
    box-shadow: 0 0 14px var(--pulse-medium-glow-dim);
}
.pulse-filter-pill[data-type="institutional"].active {
    color: #2dd4bf;
    border-color: rgba(45, 212, 191, 0.4);
    background: rgba(45, 212, 191, 0.1);
    box-shadow: 0 0 14px rgba(45, 212, 191, 0.15);
}
.pulse-filter-pill[data-type="cash"].active {
    color: var(--pulse-low);
    border-color: rgba(34, 197, 94, 0.4);
    background: var(--pulse-low-dim);
    box-shadow: 0 0 14px var(--pulse-low-glow-dim);
}

/* Options row */
.pulse-controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pulse-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #8892a8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.pulse-toggle:hover {
    color: #c8d0e0;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
}
.pulse-toggle.active {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.12);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.2);
}

.pulse-sort-select,
.pulse-ticker-select {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #a0aec0;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}
.pulse-sort-select:hover,
.pulse-ticker-select:hover {
    border-color: rgba(255,255,255,0.2);
    color: #e2e8f0;
}
.pulse-sort-select:focus,
.pulse-ticker-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}
.pulse-ticker-select { max-width: 160px; }

.pulse-mark-all-read {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    color: #8892a8;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.pulse-mark-all-read:hover {
    color: #60a5fa;
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.08);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}


/* ═══════════════════════════════════════════════════════
   FEED CARDS — static glow only
   ═══════════════════════════════════════════════════════ */

@keyframes pulse-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.pulse-card {
    position: relative;
    background: linear-gradient(135deg, #111122 0%, #0e1524 100%);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 16px 18px 16px 22px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-slide-in 0.3s ease-out;
    overflow: hidden;
}

.pulse-card::before {
    content: '';
    position: absolute; left: 0; top: 10%; bottom: 10%;
    width: 4px; border-radius: 0 3px 3px 0;
    transition: all 0.3s ease;
}

/* Critical */
.pulse-card.priority-critical { border-color: rgba(239,68,68,0.25); background: linear-gradient(135deg, #18101a 0%, #1a0f14 50%, #0e1524 100%); }
.pulse-card.priority-critical::before { background: linear-gradient(180deg, transparent, var(--pulse-critical) 30%, var(--pulse-critical) 70%, transparent); box-shadow: 0 0 10px var(--pulse-critical-glow); }
.pulse-card.priority-critical.pulse-unread { box-shadow: 0 0 18px var(--pulse-critical-glow), inset 0 0 8px var(--pulse-critical-dim); }
.pulse-card.priority-critical:not(.pulse-unread) { box-shadow: 0 0 6px var(--pulse-critical-glow-dim); }

/* High */
.pulse-card.priority-high { border-color: rgba(249,115,22,0.20); background: linear-gradient(135deg, #181410 0%, #1a150f 50%, #0e1524 100%); }
.pulse-card.priority-high::before { background: linear-gradient(180deg, transparent, var(--pulse-high) 30%, var(--pulse-high) 70%, transparent); box-shadow: 0 0 8px var(--pulse-high-glow); }
.pulse-card.priority-high.pulse-unread { box-shadow: 0 0 15px var(--pulse-high-glow), inset 0 0 6px var(--pulse-high-dim); }
.pulse-card.priority-high:not(.pulse-unread) { box-shadow: 0 0 5px var(--pulse-high-glow-dim); }

/* Medium */
.pulse-card.priority-medium { border-color: rgba(234,179,8,0.15); background: linear-gradient(135deg, #161410 0%, #18160f 50%, #0e1524 100%); }
.pulse-card.priority-medium::before { background: linear-gradient(180deg, transparent, var(--pulse-medium) 30%, var(--pulse-medium) 70%, transparent); box-shadow: 0 0 6px var(--pulse-medium-glow); }
.pulse-card.priority-medium.pulse-unread { box-shadow: 0 0 12px var(--pulse-medium-glow), inset 0 0 5px var(--pulse-medium-dim); }
.pulse-card.priority-medium:not(.pulse-unread) { box-shadow: 0 0 4px var(--pulse-medium-glow-dim); }

/* Low */
.pulse-card.priority-low { border-color: rgba(34,197,94,0.12); background: linear-gradient(135deg, #101814 0%, #0f1810 50%, #0e1524 100%); }
.pulse-card.priority-low::before { background: linear-gradient(180deg, transparent, var(--pulse-low) 30%, var(--pulse-low) 70%, transparent); box-shadow: 0 0 5px var(--pulse-low-glow); }
.pulse-card.priority-low.pulse-unread { box-shadow: 0 0 10px var(--pulse-low-glow), inset 0 0 4px var(--pulse-low-dim); }
.pulse-card.priority-low:not(.pulse-unread) { box-shadow: 0 0 3px var(--pulse-low-glow-dim); }

.pulse-card:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* Card layout */
.pulse-card-header { display: flex; align-items: flex-start; gap: 12px; }
.pulse-card-icon { font-size: 1.1rem; line-height: 1; margin-top: 2px; opacity: 0.7; }
.pulse-card-body { flex: 1; min-width: 0; }
.pulse-card-top-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }

.pulse-ticker-badge {
    font-size: 0.8rem; font-weight: 800; padding: 2px 8px; border-radius: 5px;
    background: rgba(59,130,246,0.1); color: #3b82f6;
    border: 1px solid rgba(59,130,246,0.2);
    cursor: pointer; transition: all 0.2s;
}
.pulse-ticker-badge:hover { background: rgba(59,130,246,0.2); box-shadow: 0 0 8px rgba(59,130,246,0.3); }
.pulse-card.priority-critical .pulse-ticker-badge { background: var(--pulse-critical-dim); color: var(--pulse-critical); border-color: rgba(239,68,68,0.25); }
.pulse-card.priority-critical .pulse-ticker-badge:hover { box-shadow: 0 0 8px var(--pulse-critical-glow); }
.pulse-card.priority-high .pulse-ticker-badge { background: var(--pulse-high-dim); color: var(--pulse-high); border-color: rgba(249,115,22,0.2); }
.pulse-card.priority-high .pulse-ticker-badge:hover { box-shadow: 0 0 8px var(--pulse-high-glow); }

.pulse-event-type { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #64748b; opacity: 0.8; }
.pulse-timestamp { font-size: 0.75rem; color: #64748b; margin-left: auto; white-space: nowrap; opacity: 0.7; }
.pulse-headline { font-size: 0.95rem; font-weight: 600; color: #e2e8f0; line-height: 1.4; margin-bottom: 4px; }
.pulse-why { font-size: 0.82rem; color: #64748b; line-height: 1.45; margin-top: 2px; }

.pulse-card-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.pulse-ack-btn {
    width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1); background: transparent;
    color: #64748b; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; font-size: 0.75rem;
}
.pulse-ack-btn:hover { border-color: #3b82f6; color: #3b82f6; background: rgba(59,130,246,0.1); }
.pulse-card:not(.pulse-unread) .pulse-ack-btn { color: #3b82f6; border-color: #3b82f6; opacity: 0.5; }

.pulse-score-badge { font-size: 0.7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.06); color: #64748b; }


/* Expand detail */
.pulse-card-detail { display: none; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 0.85rem; color: #94a3b8; line-height: 1.5; }
.pulse-card.expanded .pulse-card-detail { display: block; animation: pulse-slide-in 0.2s ease-out; }
.pulse-detail-link { color: #38bdf8; text-decoration: none; font-weight: 500; }
.pulse-detail-link:hover { text-decoration: underline; }

.pulse-detail-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 6px 14px; border-radius: 8px;
    border: 1px solid rgba(59,130,246,0.3); background: rgba(59,130,246,0.08);
    color: #60a5fa; font-size: 0.82rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; font-family: inherit; margin-right: 10px;
}
.pulse-detail-btn:hover { background: rgba(59,130,246,0.15); border-color: rgba(59,130,246,0.5); box-shadow: 0 0 10px rgba(59,130,246,0.2); }


/* Cluster */
.pulse-cluster { border-width: 2px; border-style: dashed; }
.pulse-cluster-badge { font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: rgba(255,255,255,0.08); color: #94a3b8; }
.pulse-cluster-children { display: none; margin-top: 10px; padding-left: 16px; border-left: 2px solid rgba(255,255,255,0.08); }
.pulse-cluster.expanded .pulse-cluster-children { display: block; }
.pulse-cluster-child { padding: 8px 12px; margin-bottom: 6px; border-radius: 8px; background: rgba(0,0,0,0.2); font-size: 0.85rem; color: #94a3b8; }


/* Digest */
.pulse-digest-group { margin-bottom: 24px; }
.pulse-digest-header { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 12px; cursor: pointer; }
.pulse-digest-date { font-size: 1rem; font-weight: 700; color: #e2e8f0; }
.pulse-digest-counts { font-size: 0.8rem; color: #64748b; }
.pulse-digest-arrow { margin-left: auto; color: #64748b; transition: transform 0.2s; }
.pulse-digest-group.collapsed .pulse-digest-arrow { transform: rotate(-90deg); }
.pulse-digest-group.collapsed .pulse-digest-body { display: none; }


/* Empty / Loading */
.pulse-empty { text-align: center; padding: 60px 20px; color: #64748b; }
.pulse-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.pulse-empty-text { font-size: 1.05rem; margin-bottom: 8px; color: #94a3b8; }
.pulse-empty-sub { font-size: 0.85rem; }
.pulse-loading { text-align: center; padding: 40px 20px; color: #64748b; }
.pulse-loading-spinner { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,0.08); border-top-color: #3b82f6; border-radius: 50%; animation: pulse-spin 0.8s linear infinite; margin: 0 auto 14px; }


/* Tab badge — static glow */
.pulse-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; font-size: 0.7rem; font-weight: 800;
    margin-left: 6px; background: var(--pulse-critical); color: #fff;
    box-shadow: 0 0 10px var(--pulse-critical-glow);
}
.pulse-tab-badge.empty { display: none; }


/* Load more */
.pulse-load-more { text-align: center; padding: 16px; }
.pulse-load-more-btn {
    padding: 10px 28px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.03);
    color: #94a3b8; font-size: 0.9rem; font-weight: 600;
    cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.pulse-load-more-btn:hover { border-color: rgba(59,130,246,0.4); color: #60a5fa; box-shadow: 0 0 12px rgba(59,130,246,0.15); }


/* ═══════════════════════════════════════════════════════
   SITE-WIDE OVERRIDES — manage.html
   Banner, tabs, buttons, footer, dropdowns
   ═══════════════════════════════════════════════════════ */

/* --- HEADER BANNER: deep dark, subtle border, dim glow --- */
header {
    background: linear-gradient(135deg, #060a14 0%, #0a1128 50%, #0d1a3a 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    box-shadow:
        0 8px 32px rgba(6, 10, 20, 0.8),
        inset 0 1px 0 rgba(59, 130, 246, 0.06) !important;
}

header::before {
    content: 'NVDA $142.58 ▲+3.2%  ·  AAPL $237.41 ▼-0.8%  ·  MSFT $428.90 ▲+1.1%  ·  AMZN $198.34 ▲+2.4%  ·  TSLA $342.19 ▲+4.7%  ·  META $612.55 ▼-1.3%  ·  GOOG $178.92 ▲+0.6%  ·  AMD $164.28 ▲+2.8%  ·  PLTR $78.45 ▲+5.1%  ·' !important;
    color: rgba(59, 130, 246, 0.10) !important;
}
header::after {
    content: 'SOFI $14.82 ▲+6.3%  ·  JPM $248.16 ▲+0.9%  ·  BA $178.54 ▼-2.1%  ·  DIS $112.38 ▲+1.7%  ·  NFLX $924.67 ▲+3.4%  ·  COIN $268.91 ▼-4.2%  ·  RIVN $14.28 ▲+8.1%  ·  MARA $22.45 ▲+5.6%  ·  SPY $602.14 ▲+0.4%  ·' !important;
    color: rgba(59, 130, 246, 0.08) !important;
}


/* --- TAB NAV: elegant with border, subtle glow --- */
/* Tab styles moved to dashboard.css — no pulse.css overrides */


/* --- RISK BAR: full width matching content below --- */
.dw-risk-bar {
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Hide old summary-cards completely */
.summary-cards { display: none !important; }


/* --- UNIFIED BUTTON STYLE: dark, subtle, elegant --- */
.btn-action-unified,
.btn-primary-large {
    display: inline-block !important;
    padding: 16px 40px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #0a1628 0%, #111d38 100%) !important;
    color: #60a5fa !important;
    box-shadow: 0 4px 16px rgba(6, 10, 20, 0.6) !important;
    font-family: 'Inter', sans-serif !important;
    text-decoration: none !important;
}

.btn-action-unified:hover,
.btn-primary-large:hover {
    border-color: rgba(59, 130, 246, 0.4) !important;
    color: #93bbfc !important;
    box-shadow: 0 6px 24px rgba(59, 130, 246, 0.15) !important;
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, #0e1d34 0%, #152444 100%) !important;
}

.btn-action-unified.btn-action-caution {
    border-color: rgba(249, 115, 22, 0.2) !important;
    color: #f97316 !important;
}
.btn-action-unified.btn-action-caution:hover {
    border-color: rgba(249, 115, 22, 0.4) !important;
    color: #fb923c !important;
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.12) !important;
}

.form-actions-top {
    display: flex !important;
    gap: 12px !important;
    margin-bottom: 28px !important;
    flex-wrap: wrap !important;
}


/* --- UNSUBSCRIBE & DANGER BUTTONS: match unified style --- */
.btn-danger-outline {
    padding: 14px 32px !important;
    background: linear-gradient(135deg, #0a1628 0%, #111d38 100%) !important;
    border: 1px solid rgba(249, 115, 22, 0.2) !important;
    color: #f97316 !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 4px 16px rgba(6, 10, 20, 0.6) !important;
    transition: all 0.3s ease !important;
}
.btn-danger-outline:hover {
    border-color: rgba(249, 115, 22, 0.4) !important;
    color: #fb923c !important;
    background: linear-gradient(135deg, #0e1d34 0%, #152444 100%) !important;
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.12) !important;
    transform: translateY(-2px) !important;
}


/* --- ADVANCED TOGGLE: match unified button style --- */
.advanced-toggle {
    background: linear-gradient(135deg, #0a1628 0%, #111d38 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    border-radius: 10px !important;
    color: #60a5fa !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
}
.advanced-toggle:hover {
    border-color: rgba(59, 130, 246, 0.35) !important;
    background: linear-gradient(135deg, #0e1d34 0%, #152444 100%) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1) !important;
}
.advanced-toggle.active {
    border-style: solid !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.12) !important;
}


/* --- DROPDOWN SELECT: dark backgrounds --- */
.pulse-sort-select option,
.pulse-ticker-select option,
select option {
    background: #0e1524 !important;
    color: #e2e8f0 !important;
}
.pulse-sort-select,
.pulse-ticker-select {
    background-color: rgba(14, 21, 36, 0.9) !important;
}
select {
    background-color: #0e1524 !important;
    color: #a0aec0 !important;
}


/* --- HELP SECTION / FOOTER: cleaner, professional --- */
.help-section {
    background: linear-gradient(135deg, #060a14 0%, #0a1128 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.12) !important;
    border-radius: 12px !important;
    padding: 30px !important;
}
.help-section h2 {
    color: #60a5fa !important;
    font-size: 1.3rem !important;
}
.help-section p {
    color: #64748b !important;
    font-size: 0.95rem !important;
}

footer {
    border-top: 1px solid rgba(59, 130, 246, 0.08) !important;
}


/* --- FORM ACTIONS: center and space --- */
.form-actions {
    text-align: center !important;
    padding: 24px 0 !important;
}


/* ═══════════════════════════════════════════════════════
   LIGHT THEME OVERRIDES
   ═══════════════════════════════════════════════════════ */

html[data-theme="light"] .dw-risk-bar {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
}

html[data-theme="light"] .pulse-summary-banner {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
}

html[data-theme="light"] .pulse-card {
    background: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.08) !important;
}

html[data-theme="light"] .pulse-card.priority-critical {
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%) !important;
    border-color: rgba(239, 68, 68, 0.30) !important;
}
html[data-theme="light"] .pulse-card.priority-critical.pulse-unread {
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15), 0 2px 8px rgba(59, 130, 246, 0.06) !important;
}

html[data-theme="light"] .pulse-card.priority-high {
    background: linear-gradient(135deg, #ffffff 0%, #fff7ed 100%) !important;
    border-color: rgba(249, 115, 22, 0.25) !important;
}
html[data-theme="light"] .pulse-card.priority-high.pulse-unread {
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.12), 0 2px 8px rgba(59, 130, 246, 0.06) !important;
}

html[data-theme="light"] .pulse-card.priority-medium {
    background: linear-gradient(135deg, #ffffff 0%, #fefce8 100%) !important;
    border-color: rgba(234, 179, 8, 0.20) !important;
}
html[data-theme="light"] .pulse-card.priority-medium.pulse-unread {
    box-shadow: 0 0 12px rgba(234, 179, 8, 0.12), 0 2px 8px rgba(59, 130, 246, 0.06) !important;
}

html[data-theme="light"] .pulse-card.priority-low {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%) !important;
    border-color: rgba(34, 197, 94, 0.18) !important;
}
html[data-theme="light"] .pulse-card.priority-low.pulse-unread {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.10), 0 2px 8px rgba(59, 130, 246, 0.06) !important;
}

html[data-theme="light"] .pulse-card:not(.pulse-unread) {
    box-shadow: 0 1px 6px rgba(59, 130, 246, 0.06) !important;
}

html[data-theme="light"] .btn-action-unified,
html[data-theme="light"] .btn-primary-large {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 3px 12px rgba(59, 130, 246, 0.30) !important;
}

html[data-theme="light"] .btn-action-unified:hover,
html[data-theme="light"] .btn-primary-large:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.40) !important;
}

html[data-theme="light"] .btn-action-unified.btn-action-caution {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    box-shadow: 0 3px 12px rgba(220, 38, 38, 0.25) !important;
}

html[data-theme="light"] .btn-action-unified.btn-action-caution:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    color: #ffffff !important;
    border-color: #b91c1c !important;
    box-shadow: 0 5px 20px rgba(220, 38, 38, 0.35) !important;
}

html[data-theme="light"] .btn-danger-outline {
    background: transparent !important;
    border-color: rgba(220, 38, 38, 0.30) !important;
    color: #dc2626 !important;
}

html[data-theme="light"] .btn-danger-outline:hover {
    background: rgba(220, 38, 38, 0.06) !important;
    border-color: #dc2626 !important;
}

html[data-theme="light"] .advanced-toggle {
    background: rgba(59, 130, 246, 0.07) !important;
    border-color: rgba(59, 130, 246, 0.22) !important;
    color: #2563eb !important;
}

html[data-theme="light"] .advanced-toggle:hover {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="light"] .advanced-toggle.active {
    background: rgba(59, 130, 246, 0.10) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
}

html[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.08) !important;
}

html[data-theme="light"] .tab-nav {
    background: rgba(255, 255, 255, 0.75) !important;
}

html[data-theme="light"] select option {
    background: #ffffff !important;
    color: #1e3a5f !important;
}

html[data-theme="light"] .pulse-ticker-select,
html[data-theme="light"] select {
    background-color: #ffffff !important;
    color: #1e3a5f !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

html[data-theme="light"] .time-picker select {
    background-color: #ffffff !important;
    color: #1e3a5f !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}

html[data-theme="light"] .help-section {
    background: rgba(255, 255, 255, 0.90) !important;
    border-color: rgba(59, 130, 246, 0.15) !important;
}

html[data-theme="light"] .pulse-filter-pill {
    background: rgba(255, 255, 255, 0.90) !important;
    border-color: rgba(59, 130, 246, 0.18) !important;
    color: #3b6cb5 !important;
}

html[data-theme="light"] .pulse-filter-pill.active {
    background: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
}

html[data-theme="light"] .pulse-sort-select {
    background: #ffffff !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: #1e3a5f !important;
}

html[data-theme="light"] .pulse-score-badge {
    background: rgba(59, 130, 246, 0.08) !important;
}

html[data-theme="light"] .tab-button {
    color: #3b6cb5 !important;
}

html[data-theme="light"] .tab-button:hover {
    color: #1e3a5f !important;
    background: rgba(59, 130, 246, 0.08) !important;
}

html[data-theme="light"] .tab-button.active {
    color: #1d4ed8 !important;
    background: rgba(59, 130, 246, 0.10) !important;
    border-bottom-color: #3b82f6 !important;
}

html[data-theme="light"] .pulse-card-title,
html[data-theme="light"] .pulse-card-body,
html[data-theme="light"] .pulse-card-header {
    color: #1e3a5f !important;
}

html[data-theme="light"] .pulse-timestamp,
html[data-theme="light"] .pulse-card-meta {
    color: #6b8ec4 !important;
}


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .dw-risk-bar, .pulse-summary-banner { flex-direction: column; align-items: stretch; gap: 8px; }
    .dw-risk-pill, .pulse-summary-stat { justify-content: center; }
    .dw-avg-score { margin-left: 0; justify-content: center; }
    .pulse-summary-meta { margin-left: 0; justify-content: center; }
    .pulse-filter-group { gap: 6px; }
    .pulse-controls-right { flex-wrap: wrap; }
    .pulse-card-header { flex-wrap: wrap; }
    .pulse-timestamp { margin-left: 0; order: 10; width: 100%; }
    .tab-button { padding: 7px 10px !important; font-size: 0.72rem !important; }
    .btn-action-unified, .btn-primary-large { padding: 14px 24px !important; font-size: 0.85rem !important; }
    .form-actions-top { flex-direction: column; }
}

/* ===== COMPACT PULSE CARDS ===== */
.pulse-card {
    padding: 10px 14px 10px 18px !important;
    margin-bottom: 4px !important;
    border-radius: 8px !important;
}
.pulse-card:hover {
    transform: none !important;
}
.pulse-card-header {
    gap: 8px !important;
}
.pulse-card-icon {
    font-size: 0.9rem !important;
}
.pulse-card-top-row {
    margin-bottom: 2px !important;
    gap: 6px !important;
}
.pulse-card-title {
    font-size: 0.85rem !important;
}
.pulse-card-subtitle,
.pulse-card-detail {
    font-size: 0.78rem !important;
}
.pulse-card-actions {
    margin-top: 4px !important;
    padding-top: 6px !important;
}

/* ===== ULTRA COMPACT PULSE CARDS ===== */
.pulse-card {
    padding: 6px 12px 6px 16px !important;
    margin-bottom: 2px !important;
    border-radius: 6px !important;
    min-height: unset !important;
}
.pulse-card-header {
    gap: 6px !important;
    align-items: center !important;
}
.pulse-card-icon {
    font-size: 0.8rem !important;
    margin-top: 0 !important;
}
.pulse-card-top-row {
    margin-bottom: 0 !important;
    gap: 5px !important;
}
.pulse-card-title {
    font-size: 0.8rem !important;
    line-height: 1.3 !important;
}
.pulse-card-subtitle {
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    margin-top: 1px !important;
}
.pulse-event-type,
.pulse-ticker-badge,
.pulse-score-badge {
    font-size: 0.65rem !important;
    padding: 1px 5px !important;
}
.pulse-card-time {
    font-size: 0.7rem !important;
}
.pulse-card-actions {
    margin-top: 2px !important;
    padding-top: 4px !important;
    gap: 4px !important;
}

/* ===== MINIMAL PULSE CARDS ===== */
.pulse-card {
    padding: 4px 10px 4px 14px !important;
    margin-bottom: 1px !important;
}
.pulse-card-subtitle {
    display: none !important;
}
.pulse-card-title {
    font-size: 0.75rem !important;
    line-height: 1.2 !important;
}
