/**
 * OptionFinder Member Area - Dashboard Core Styles
 * 
 * @package OptionFinder_Member_Area
 * @version 2.4.0
 * 
 * CHANGELOG v2.4.0:
 * - NEU: Watchlist &amp; Alarme Filter-Section Styling
 * 
 * CHANGELOG v2.3.0:
 * - FIX: Glocke standardm&auml;&szlig;ig grau (filter: grayscale), aktiv = farbig
 * 
 * CHANGELOG v2.2.0:
 * - NEU: WL &amp; Alarme Spalte Styling (Stern + Glocke Icons, Toast)
 * 
 * CHANGELOG v2.1.0:
 * - NEU: Kompakter Header spart Platz f&uuml;r Tabelle
 * - Begr&uuml;&szlig;ung, Tabs und Buttons in einer Zeile
 * - Responsive Anpassungen
 */

/* ===================================================
   CSS VARIABLEN
   =================================================== */
:root {
    /* Primary Colors */
    --ofma-color-primary: #14b8a6;
    --ofma-color-primary-dark: #0d9488;
    --ofma-color-primary-light: rgba(20, 184, 166, 0.1);
    
    /* Slate Color Palette */
    --ofma-color-slate-50: #f8fafc;
    --ofma-color-slate-100: #f1f5f9;
    --ofma-color-slate-200: #e2e8f0;
    --ofma-color-slate-300: #cbd5e1;
    --ofma-color-slate-400: #94a3b8;
    --ofma-color-slate-500: #64748b;
    --ofma-color-slate-600: #475569;
    --ofma-color-slate-700: #334155;
    --ofma-color-slate-800: #1e293b;
    --ofma-color-slate-900: #0f172a;
    
    /* Status Colors */
    --ofma-color-success: #10b981;
    --ofma-color-warning: #f59e0b;
    --ofma-color-danger: #ef4444;

    /* Value Colors — einheitlich für positive/negative Werte im gesamten Projekt */
    --ofma-val-positive: #059669;      /* Grün — Gewinne, positive Werte */
    --ofma-val-negative: #dc2626;      /* Rot — Verluste, negative Werte */
    --ofma-val-neutral: #1e293b;       /* Schwarz/Dunkel — neutrale Werte */

    /* Border Radius */
    --ofma-radius-sm: 6px;
    --ofma-radius-md: 8px;
    --ofma-radius-lg: 12px;
    --ofma-radius-xl: 16px;
    
    /* Shadows */
    --ofma-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ofma-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --ofma-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);

    /* Buttons (zentral) */
    --ofma-btn-font-size: 0.75rem;
    --ofma-btn-font-size-sm: 0.6875rem;
    --ofma-btn-font-weight: 600;
    --ofma-btn-padding: 0.5rem 1rem;
    --ofma-btn-padding-sm: 0.375rem 0.75rem;
    --ofma-btn-min-width: 120px;
}

/* Dark Mode — Farbpalette für Text anpassen */
[data-theme="dark"] {
    --ofma-val-neutral: #94a3b8;
    --ofma-color-slate-100: #94a3b8;
    --ofma-color-slate-200: #94a3b8;
    --ofma-color-slate-300: #94a3b8;
}

/* ===================================================
   VALUE COLOR UTILITY CLASSES
   Einheitliche Farbgebung für positive/negative Werte.
   Verwendung: .of-val--positive, .of-val--negative, .of-val--neutral
   =================================================== */
.of-val--positive { color: var(--ofma-val-positive, #059669) !important; }
.of-val--negative { color: var(--ofma-val-negative, #dc2626) !important; }
.of-val--neutral  { color: var(--ofma-val-neutral, #1e293b) !important; }

.dark-mode .of-val--neutral, [data-theme="dark"] .of-val--neutral { color: #e2e8f0 !important; }

/* ===================================================
   DASHBOARD CONTAINER
   =================================================== */
.ofma-dashboard {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 1rem;
}

/* ===================================================
   WORDPRESS THEME OVERRIDE
   =================================================== */
body.page .site-main,
body.page .of-main-content,
body.page main,
body.page .entry-content,
body.page article,
.page-template-default .site-main,
.page-template-default .of-main-content,
.page-template-default main,
.page-template-default .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin: 0 !important;
}

.ofma-dashboard,
.ofma-dashboard-wrapper,
.ofma-scanner-wrapper,
.ofma-scanner {
    max-width: 100% !important;
    width: 100% !important;
}

.entry-content:has(.ofma-dashboard) {
    max-width: 100% !important;
    padding: 0 !important;
}

body.page .entry-content {
    max-width: 100% !important;
}

/* ===================================================
   KOMPAKTER HEADER - Begr&uuml;&szlig;ung + Tabs + Buttons
   =================================================== */
.ofma-compact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    border-radius: var(--ofma-radius-xl);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    box-shadow: var(--ofma-shadow-sm);
    border: 1px solid var(--ofma-color-slate-200);
    flex-wrap: wrap;
}

/* Links: Begr&uuml;&szlig;ung + Plan Badge */
.ofma-compact-header__welcome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ofma-compact-header__greeting {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ofma-color-slate-800);
    white-space: nowrap;
}

/* Mitte: Tabs */
.ofma-compact-header__tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0;
}

/* Rechts: Buttons */
.ofma-compact-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ===================================================
   PLAN BADGE (kompakt)
   =================================================== */
.ofma-dashboard__plan {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ofma-dashboard__plan--1 {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.ofma-dashboard__plan--2 {
    background: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.ofma-dashboard__plan--3 {
    background: rgba(139, 92, 246, 0.15);
    color: #7c3aed;
}

/* ===================================================
   TAB ITEMS (kompakter)
   =================================================== */
.ofma-tabs__item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--ofma-radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ofma-color-slate-600);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    cursor: pointer;
}

.ofma-tabs__item:hover {
    background: var(--ofma-color-slate-100);
    color: var(--ofma-color-slate-900);
}

.ofma-tabs__item--active {
    background: var(--ofma-color-primary);
    color: white;
}

.ofma-tabs__item--active:hover {
    background: var(--ofma-color-primary-dark);
    color: white;
}

.ofma-tabs__item--locked {
    color: var(--ofma-color-slate-400);
    cursor: not-allowed;
}

.ofma-tabs__item--locked:hover {
    background: transparent;
    color: var(--ofma-color-slate-400);
}

.ofma-tabs__icon {
    font-size: 1rem;
}

.ofma-tabs__title {
    display: inline;
}

.ofma-tabs__lock {
    font-size: 0.625rem;
    opacity: 0.7;
}

/* ===================================================
   BUTTONS
   =================================================== */
.ofma-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: var(--ofma-btn-padding);
    min-width: var(--ofma-btn-min-width);
    border-radius: var(--ofma-radius-md);
    font-size: var(--ofma-btn-font-size);
    font-weight: var(--ofma-btn-font-weight);
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.ofma-btn--sm {
    padding: var(--ofma-btn-padding-sm);
    font-size: var(--ofma-btn-font-size-sm);
    min-width: auto;
}

.ofma-btn--primary {
    background: linear-gradient(135deg, var(--ofma-color-primary) 0%, var(--ofma-color-primary-dark) 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
}

.ofma-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

.ofma-btn--secondary {
    background: white;
    color: var(--ofma-color-slate-700);
    border: 1px solid var(--ofma-color-slate-300);
}

.ofma-btn--secondary:hover {
    background: var(--ofma-color-slate-50);
    border-color: var(--ofma-color-slate-400);
}

/* ===================================================
   DASHBOARD CONTENT
   =================================================== */
.ofma-dashboard__content {
    background: white;
    border-radius: var(--ofma-radius-xl);
    padding: 0;
    box-shadow: var(--ofma-shadow-sm);
    border: 1px solid var(--ofma-color-slate-200);
    min-height: 400px;
    overflow: hidden;
}

/* ===================================================
   MESSAGES
   =================================================== */
.ofma-message {
    text-align: center;
    padding: 3rem 2rem;
}

.ofma-message__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ofma-message h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ofma-color-slate-900);
    margin: 0 0 0.5rem 0;
}

.ofma-message p {
    color: var(--ofma-color-slate-600);
    margin: 0 0 1.5rem 0;
}

/* ===================================================
   UPGRADE TEASER
   =================================================== */
.ofma-upgrade-teaser {
    position: relative;
    text-align: center;
    padding: 3rem 2rem;
    overflow: hidden;
}

.ofma-upgrade-teaser__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ofma-upgrade-teaser__icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.ofma-upgrade-teaser__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ofma-color-slate-900);
    margin: 0 0 0.75rem 0;
}

.ofma-upgrade-teaser__text {
    font-size: 1rem;
    color: var(--ofma-color-slate-600);
    margin: 0 0 2rem 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.ofma-upgrade-teaser__benefits {
    display: inline-flex;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--ofma-color-slate-50);
    padding: 1.5rem 2rem;
    border-radius: var(--ofma-radius-lg);
    margin-bottom: 2rem;
    text-align: left;
}

.ofma-upgrade-teaser__benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--ofma-color-slate-700);
    font-size: 0.9375rem;
}

.ofma-upgrade-teaser__benefits li::before {
    content: "\2713";
    color: var(--ofma-color-success);
    font-weight: 700;
}

.ofma-upgrade-teaser__actions {
    display: inline-flex;
    gap: 1rem;
}

/* ===================================================
   MODULE PLACEHOLDER
   =================================================== */
.ofma-module-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--ofma-color-slate-500);
}

.ofma-module-placeholder__icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.ofma-module-placeholder h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ofma-color-slate-700);
    margin: 0 0 0.5rem 0;
}

.ofma-module-placeholder p {
    margin: 0;
    font-size: 0.9375rem;
}

/* ===================================================
   DARK MODE
   =================================================== */
[data-theme="dark"] .ofma-compact-header {
    background: var(--ofma-color-slate-800);
    border-color: var(--ofma-color-slate-700);
}

[data-theme="dark"] .ofma-compact-header__greeting {
    color: var(--ofma-color-slate-100);
}

[data-theme="dark"] .ofma-tabs__item {
    color: var(--ofma-color-slate-400);
}

[data-theme="dark"] .ofma-tabs__item:hover {
    background: var(--ofma-color-slate-700);
    color: var(--ofma-color-slate-200);
}

[data-theme="dark"] .ofma-tabs__item--active {
    background: var(--ofma-color-primary);
    color: white;
}

[data-theme="dark"] .ofma-dashboard__content {
    background: var(--ofma-color-slate-800);
    border-color: var(--ofma-color-slate-700);
}

[data-theme="dark"] .ofma-btn--secondary {
    background: var(--ofma-color-slate-700);
    color: var(--ofma-color-slate-200);
    border-color: var(--ofma-color-slate-600);
}

[data-theme="dark"] .ofma-upgrade-teaser__title {
    color: var(--ofma-color-slate-100);
}

[data-theme="dark"] .ofma-upgrade-teaser__text {
    color: var(--ofma-color-slate-400);
}

[data-theme="dark"] .ofma-upgrade-teaser__benefits {
    background: var(--ofma-color-slate-900);
}

[data-theme="dark"] .ofma-upgrade-teaser__benefits li {
    color: var(--ofma-color-slate-300);
}

[data-theme="dark"] .ofma-module-placeholder h3 {
    color: var(--ofma-color-slate-300);
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1200px) {
    .ofma-tabs__title {
        display: none;
    }
    
    .ofma-tabs__item {
        padding: 0.5rem 0.625rem;
    }
}

@media (max-width: 768px) {
    .ofma-dashboard {
        padding: 0.5rem;
    }
    
    .ofma-compact-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.5rem;
    }
    
    .ofma-compact-header__welcome {
        justify-content: center;
    }
    
    .ofma-compact-header__tabs {
        justify-content: flex-start;
        order: 3;
    }
    
    .ofma-compact-header__actions {
        justify-content: center;
    }
    
    .ofma-tabs__item {
        padding: 0.5rem;
    }
    
    .ofma-tabs__icon {
        font-size: 1.125rem;
    }
}

/* ===================================================
   COMPACT HEADER - v1.1.0
   Begr&uuml;&szlig;ung + Tabs + Buttons in einer Zeile
   =================================================== */

.ofma-compact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: var(--ofma-radius-xl);
    box-shadow: var(--ofma-shadow-sm);
    border: 1px solid var(--ofma-color-slate-200);
}

/* Links: Willkommen + Plan Badge */
.ofma-compact-header__welcome {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.ofma-compact-header__greeting {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ofma-color-slate-700);
    white-space: nowrap;
}

/* Mitte: Tabs */
.ofma-compact-header__tabs {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ofma-compact-header__tabs .ofma-tabs__item {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
}

.ofma-compact-header__tabs .ofma-tabs__icon {
    font-size: 1rem;
}

/* Rechts: Buttons */
.ofma-compact-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Kleine Buttons */
.ofma-btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
}

.ofma-btn--sm span {
    font-size: 0.875rem;
}

/* ===================================================
   COMPACT HEADER - DARK MODE
   =================================================== */
[data-theme="dark"] .ofma-compact-header {
    background: var(--ofma-color-slate-800);
    border-color: var(--ofma-color-slate-700);
}

[data-theme="dark"] .ofma-compact-header__greeting {
    color: var(--ofma-color-slate-200);
}

/* ===================================================
   COMPACT HEADER - RESPONSIVE
   =================================================== */
@media (max-width: 1200px) {
    .ofma-compact-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .ofma-compact-header__welcome {
        order: 1;
    }
    
    .ofma-compact-header__actions {
        order: 2;
    }
    
    .ofma-compact-header__tabs {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .ofma-compact-header__greeting {
        display: none;
    }
    
    .ofma-compact-header__tabs .ofma-tabs__title {
        display: none;
    }
    
    .ofma-compact-header__tabs .ofma-tabs__item {
        padding: 0.5rem;
    }
    
    .ofma-btn--sm span {
        display: none;
    }
}

/* =====================================================
   SCANNER FULLSCREEN - Kein Footer-Scroll
   ===================================================== */

/* Body: Kein Scrollen auf Seiten-Ebene */
body:has(.ofma-scanner-wrapper) {
    overflow: hidden !important;
    height: 100vh !important;
}

/* WordPress Footer verstecken */
body:has(.ofma-scanner-wrapper) footer,
body:has(.ofma-scanner-wrapper) .site-footer,
body:has(.ofma-scanner-wrapper) #footer {
    display: none !important;
}

/* Scanner-Wrapper: BildschirmhÃƒÂ¶he minus Header und Taskleiste */
.ofma-scanner-wrapper {
    height: calc(100vh - 200px) !important;
    max-height: calc(100vh - 200px) !important;
    min-height: auto !important;
}

/* Scanner Container: Volle HÃƒÂ¶he des Wrappers */
.ofma-scanner {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

/* Scanner Body: Nimmt verfÃƒÂ¼gbaren Platz, aber nicht mehr */
.ofma-scanner__body {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Tabellen-Container: Scrollbar */
.ofma-table-scroll {
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: auto !important;
}

/* Footer: Immer sichtbar am unteren Rand */
.ofma-scanner__footer {
    flex-shrink: 0 !important;
    margin-top: auto !important;
}

/* =====================================================
   SCANNER RESPONSIVE - Tablet & Mobile
   ===================================================== */

/* Tablet (bis 1200px) */
@media (max-width: 1200px) {
    .ofma-scanner-wrapper {
        height: calc(100vh - 180px) !important;
        max-height: calc(100vh - 180px) !important;
    }
}

/* Mobile (bis 768px) */
@media (max-width: 768px) {
    /* Weniger Abzug f&uuml;r Mobile (kein WordPress Admin Bar) */
    .ofma-scanner-wrapper {
        height: calc(100vh - 140px) !important;
        max-height: calc(100vh - 140px) !important;
    }
    
    /* Tabelle: Horizontales Scrollen erm&ouml;glichen */
    .ofma-table-scroll {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Kleinere Schrift in Tabelle */
    .ofma-scanner__table {
        font-size: 0.75rem !important;
    }
    
    .ofma-scanner__table th,
    .ofma-scanner__table td {
        padding: 0.5rem 0.625rem !important;
        white-space: nowrap !important;
    }
    
    /* Symbol-Spalte: Minimum-Breite */
    .ofma-scanner__table td:first-child {
        min-width: 80px;
        position: sticky;
        left: 0;
        background: white;
        z-index: 5;
    }
    
    .ofma-scanner__table th:first-child {
        position: sticky;
        left: 0;
        z-index: 15;
    }
    
    /* Header kompakter */
    .ofma-scanner__header {
        padding: 0.75rem 1rem !important;
    }
    
    .ofma-scanner__title {
        font-size: 1rem !important;
    }
    
    /* Meta-Info verstecken */
    .ofma-scanner__meta {
        display: none !important;
    }
    
    /* Kategorie-Buttons kleiner */
    .ofma-cat-btn {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.75rem !important;
    }
    
    /* &Uuml;berschriften kleiner */
    .ofma-column-section,
    .ofma-strategy-section {
        padding: 0.375rem 1rem !important;
    }
    
    .ofma-column-section__title,
    .ofma-strategy-section__title {
        font-size: 0.625rem !important;
    }
    
    /* Footer: Kompakter */
    .ofma-scanner__footer {
        padding: 0.5rem 1rem !important;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .ofma-scanner__info {
        font-size: 0.6875rem !important;
        width: 100%;
        text-align: center;
    }
    
    /* Pagination: Zentriert */
    .ofma-pagination {
        justify-content: center !important;
        width: 100%;
    }
    
    .ofma-pagination__btn {
        padding: 0.375rem 0.625rem !important;
        font-size: 0.75rem !important;
    }
}

/* Sehr kleine Screens (bis 480px) */
@media (max-width: 480px) {
    .ofma-scanner-wrapper {
        height: calc(100vh - 120px) !important;
        max-height: calc(100vh - 120px) !important;
    }
    
    /* Quick Actions verstecken - nur Apply Button */
    #ofma-btn-standard {
        display: none !important;
    }
    
    /* Nur Icons in Kategorie-Buttons */
    .ofma-cat-btn__count {
        display: none !important;
    }
    
    /* Suchfeld verstecken */
    .ofma-scanner__search {
        display: none !important;
    }
}

/* Dark Mode Mobile Fix */
@media (max-width: 768px) {
    [data-theme="dark"] .ofma-scanner__table td:first-child {
        background: var(--ofma-color-slate-800) !important;
    }
}

/* ===================================================
   ALARME ICONS (v4.40.0 - Vereinfacht)
   =================================================== */

/* Container f&uuml;r Alarm-Glocke (v4.40.0: vereinfacht) */
.alert-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Header aktiv wenn Alarme gesetzt (v4.40.0) - Standard Filter-Stil */
.ofma-scanner__table th[data-col="alerts"].has-active-alerts {
    background: rgba(20, 184, 166, 0.08);
}

.ofma-scanner__table th[data-col="alerts"].has-active-alerts .column-label {
    color: var(--ofma-color-primary);
}

.ofma-scanner__table th[data-col="alerts"].has-active-alerts .filter-btn {
    color: var(--ofma-color-primary);
}

[data-theme="dark"] .ofma-scanner__table th[data-col="alerts"].has-active-alerts {
    background: rgba(20, 184, 166, 0.12);
}

/* Glocke-Icon (Alert) - v4.40.0: Gr&ouml;&szlig;e angepasst */
.alert-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    user-select: none;
    filter: grayscale(100%);
    opacity: 0.5;
}

.alert-bell:hover {
    filter: grayscale(0%);
    opacity: 1;
    background: rgba(59, 130, 246, 0.1);
    transform: scale(1.15);
}

.alert-bell.active {
    filter: grayscale(0%);
    opacity: 1;
    animation: bell-ring 0.5s ease;
}

.alert-bell.active:hover {
    background: rgba(59, 130, 246, 0.15);
}

.alert-bell.loading {
    opacity: 0.5;
    pointer-events: none;
    animation: wl-pulse 0.8s infinite;
}

@keyframes wl-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@keyframes bell-ring {
    0% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(10deg); }
    100% { transform: rotate(0); }
}

/* Toast Benachrichtigung */
.wl-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ofma-color-slate-800);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
}

.wl-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.wl-toast.success {
    background: #059669;
}

.wl-toast.error {
    background: #dc2626;
}

.wl-toast.info {
    background: #3b82f6;
}

/* Spaltenbreite f&uuml;r Alarme (v4.40.0: Vereinfacht) */
.ofma-scanner__table th[data-col="alerts"] {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 100px !important;
    text-align: center;
    padding: 4px !important;
}

.ofma-scanner__table td[data-col="alerts"] {
    width: 80px !important;
    min-width: 80px !important;
    max-width: 100px !important;
    text-align: center;
    padding: 4px !important;
}

/* Header mit kleinerem Text */
.ofma-scanner__table th[data-col="alerts"] .col-label {
    font-size: 0.7rem;
    white-space: nowrap;
}

/* Dark Mode f&uuml;r Alert-Glocke */
[data-theme="dark"] .alert-bell {
    filter: grayscale(100%);
    opacity: 0.4;
}

[data-theme="dark"] .alert-bell:hover {
    filter: grayscale(0%);
    opacity: 1;
    background: rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .alert-bell.active {
    filter: grayscale(0%);
    opacity: 1;
}

[data-theme="dark"] .alert-toast {
    background: var(--ofma-color-slate-700);
}

/* Alarme-Filter CSS ist jetzt in dashboard-starter-underlying.css */

/* Alert Toast */
.alert-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.alert-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.alert-toast.error {
    background: #ef4444;
}
    cursor: pointer;
    accent-color: var(--ofma-color-primary);
}

.ofma-wl-filter-checkbox__icon {
    font-size: 1rem;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.2s ease;
}

.ofma-wl-filter-checkbox input:checked + .ofma-wl-filter-checkbox__icon {
    filter: grayscale(0%);
    opacity: 1;
}

.ofma-wl-filter-checkbox__label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ofma-color-slate-600);
}

.ofma-wl-filter-checkbox input:checked ~ .ofma-wl-filter-checkbox__label {
    color: var(--ofma-color-slate-800);
}

.ofma-wl-filter-hint {
    font-size: 0.75rem;
    color: var(--ofma-color-slate-500);
    margin-left: auto;
}

/* Dark Mode */
[data-theme="dark"] .ofma-wl-filter-section__content {
    background: var(--ofma-color-slate-800);
    border-color: var(--ofma-color-slate-700);
}

[data-theme="dark"] .ofma-wl-filter-checkbox:hover {
    background: var(--ofma-color-slate-700);
}

[data-theme="dark"] .ofma-wl-filter-checkbox__label {
    color: var(--ofma-color-slate-400);
}

[data-theme="dark"] .ofma-wl-filter-checkbox input:checked ~ .ofma-wl-filter-checkbox__label {
    color: var(--ofma-color-slate-200);
}

[data-theme="dark"] .ofma-wl-filter-hint {
    color: var(--ofma-color-slate-500);
}

/* Gefilterte Zeilen ausblenden */
.ofma-scanner__table tr.wl-filtered-out {
    display: none !important;
}

/* Alte Watchlist CSS entfernt in v4.40.0 */

/* ========================================
   PRO OVERLAY — Eingeschränkte Vorschau
   ======================================== */

.ofma-pro-preview { position: relative; }

.ofma-pro-overlay {
    position: relative;
    margin-top: -40px;
    padding-top: 40px;
}

.ofma-pro-overlay__blur {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--ofma-bg-card, #fff));
    pointer-events: none;
    z-index: 1;
}

.ofma-pro-overlay__content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 40px 30px;
    background: var(--ofma-bg-card, #fff);
    border: 2px dashed #8b5cf6;
    border-radius: 12px;
    margin-top: 10px;
}

.ofma-pro-overlay__icon { font-size: 36px; display: block; margin-bottom: 12px; }
.ofma-pro-overlay__title { font-size: 18px; font-weight: 700; color: var(--ofma-text, #1e293b); margin: 0 0 8px; }
.ofma-pro-overlay__text { font-size: 14px; color: var(--ofma-text-muted, #64748b); margin: 0 auto 16px; max-width: 500px; }

.ofma-pro-overlay__benefits { list-style: none; padding: 0; margin: 0 0 20px; display: inline-block; text-align: left; }
.ofma-pro-overlay__benefits li { padding: 4px 0; font-size: 13px; color: var(--ofma-text, #1e293b); }

/* Pro-Branding: Violet (Cash Flow Pro Plan-Farbe), konsistent zum IC-Upgrade-Modal. */
.ofma-pro-overlay__actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 12px; }
.ofma-pro-overlay__actions .ofma-btn { font-size: 13px; padding: 8px 16px; }
.ofma-pro-overlay__actions .ofma-btn--primary {
    background: #8b5cf6;
    color: #fff;
    border: 1px solid #8b5cf6;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s;
}
.ofma-pro-overlay__actions .ofma-btn--primary:hover { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.ofma-pro-overlay__actions .ofma-btn--secondary {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s;
}
.ofma-pro-overlay__actions .ofma-btn--secondary:hover { background: #f3f4f6; color: #1f2937; }

.ofma-pro-overlay__trial { font-size: 12px; color: var(--ofma-text-muted, #64748b); display: block; text-align: center; }

.ofma-nav-pro {
    font-size: 9px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    padding: 1px 5px; border-radius: 3px; margin-left: 4px;
    vertical-align: super; letter-spacing: 0.5px;
}

.ofma-dashboard__nav-item--locked { opacity: 0.6; }
.ofma-dashboard__nav-item--locked:hover { opacity: 1; }

[data-theme="dark"] .ofma-pro-overlay__content { background: var(--ofma-bg-card, #1e293b); border-color: #8b5cf6; }

/* =====================================================
   PRO-UPGRADE MODAL (für gelockte Schnellfilter-Chips)
   ===================================================== */
.ofma-pro-upgrade-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: ofmaProFadeIn 0.15s ease-out;
}
@keyframes ofmaProFadeIn { from { opacity: 0; } to { opacity: 1; } }

.ofma-pro-upgrade {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 460px;
    width: 100%;
    padding: 28px;
    position: relative;
    text-align: center;
}

.ofma-pro-upgrade__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 18px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    transition: all 0.15s;
}
.ofma-pro-upgrade__close:hover { background: #f1f5f9; color: #1f2937; border-color: #6b7280; }

.ofma-pro-upgrade__icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.85;
}

.ofma-pro-upgrade__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1f2937;
}

.ofma-pro-upgrade__desc {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 20px;
}
.ofma-pro-upgrade__desc strong { color: #8b5cf6; }

.ofma-pro-upgrade__actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
}
.ofma-pro-upgrade__actions .ofma-btn { font-size: 13px; padding: 8px 16px; }
.ofma-pro-upgrade__actions .ofma-btn--primary {
    background: #8b5cf6;
    color: #fff;
    border: 1px solid #8b5cf6;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.15s;
}
.ofma-pro-upgrade__actions .ofma-btn--primary:hover { background: #7c3aed; border-color: #7c3aed; }
.ofma-pro-upgrade__actions .ofma-btn--secondary {
    background: #fff;
    color: #6b7280;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.ofma-pro-upgrade__actions .ofma-btn--secondary:hover { background: #f3f4f6; color: #1f2937; }

[data-theme="dark"] .ofma-pro-upgrade { background: #1e293b; }
[data-theme="dark"] .ofma-pro-upgrade__title { color: #f1f5f9; }
[data-theme="dark"] .ofma-pro-upgrade__desc { color: #cbd5e1; }
[data-theme="dark"] .ofma-pro-upgrade__close { background: #1e293b; border-color: #334155; color: #64748b; }
[data-theme="dark"] .ofma-pro-upgrade__close:hover { background: #334155; color: #f8fafc; }
[data-theme="dark"] .ofma-pro-upgrade__actions .ofma-btn--secondary { background: #1e293b; border-color: #334155; color: #cbd5e1; }
[data-theme="dark"] .ofma-pro-upgrade__actions .ofma-btn--secondary:hover { background: #334155; color: #f1f5f9; }
[data-theme="dark"] .ofma-pro-overlay__blur { background: linear-gradient(to bottom, transparent, var(--ofma-bg-card, #1e293b)); }