/* ================================================================
   FintexNews — Design System
   Premium Financial Intelligence Interface
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:ital,wght@0,300;0,400;0,500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700;800&family=Syne:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'DM Mono', 'SF Mono', 'Consolas', monospace;

    --sidebar-width: 256px;
    --header-height: 58px;
    --radius: 10px;
    --radius-sm: 7px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --transition: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================
   DARK THEME — Terminal Noir
   ================================================================ */
[data-theme="dark"] {
    /* Base surfaces — unified with landing page */
    --bg:            #0C0F1A;
    --bg-card:       #141824;
    --bg-sidebar:    #080A12;
    --bg-hover:      rgba(59, 91, 255, 0.05);
    --bg-active:     rgba(59, 91, 255, 0.10);
    --bg-input:      rgba(255, 255, 255, 0.04);
    --bg-badge:      rgba(212, 168, 50, 0.10);
    --bg-glass:      rgba(20, 24, 36, 0.85);

    /* Text hierarchy */
    --text-primary:   #F0F2F8;
    --text-secondary: #8A95B5;
    --text-tertiary:  rgba(240, 242, 248, 0.35);
    --text-gold:      #D4A832;

    /* Borders */
    --border:        rgba(255, 255, 255, 0.06);
    --border-card:   rgba(255, 255, 255, 0.08);
    --border-hover:  rgba(59, 91, 255, 0.30);
    --border-gold:   rgba(212, 168, 50, 0.22);

    /* Shadows */
    --shadow-sm:  0 1px 4px rgba(0, 0, 0, 0.5);
    --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg:  0 12px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 32px rgba(59, 91, 255, 0.08);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(59, 91, 255, 0.15);

    /* Signal colors */
    --positive:    #4ade80;
    --positive-bg: rgba(74, 222, 128, 0.08);
    --positive-glow: rgba(74, 222, 128, 0.15);
    --negative:    #f87171;
    --negative-bg: rgba(248, 113, 113, 0.08);
    --warning:     #F59E0B;
    --warning-bg:  rgba(245, 158, 11, 0.08);
    --gold:        #D4A832;
    --gold-bright: #E0B840;
    --gold-muted:  rgba(212, 168, 50, 0.10);
    --gold-border: rgba(212, 168, 50, 0.22);
    --gold-bg:     rgba(212, 168, 50, 0.08);

    /* Accent — Electric Blue */
    --accent:        #3B5BFF;
    --accent-bright: #5B7AFF;
    --accent-bg:     rgba(59, 91, 255, 0.10);
    --accent-glow:   rgba(59, 91, 255, 0.20);

    /* Sidebar specific */
    --sidebar-text:       rgba(240, 242, 248, 0.75);
    --sidebar-text-muted: rgba(240, 242, 248, 0.30);
    --sidebar-hover:      rgba(59, 91, 255, 0.07);
    --sidebar-active:     rgba(59, 91, 255, 0.12);
    --sidebar-border:     rgba(255, 255, 255, 0.05);
    --sidebar-accent-line: #D4A832;

    /* Gradients */
    --grad-sidebar: linear-gradient(180deg, #080A12 0%, #0C0F1A 100%);
    --grad-accent:  linear-gradient(135deg, #3B5BFF 0%, #5B7AFF 100%);
    --grad-gold:    linear-gradient(135deg, #D4A832 0%, #E0B840 100%);
    --grad-positive: linear-gradient(135deg, #4ade80 0%, #86efac 100%);
    --grad-card:    linear-gradient(145deg, rgba(255,255,255,0.02) 0%, transparent 100%);
}

/* ================================================================
   LIGHT THEME — Refined Paper
   ================================================================ */
[data-theme="light"] {
    --bg:            #F5F7FC;
    --bg-card:       #FFFFFF;
    --bg-sidebar:    #0C0F1A;
    --bg-hover:      rgba(59, 91, 255, 0.04);
    --bg-active:     rgba(59, 91, 255, 0.08);
    --bg-input:      #F0F2F8;
    --bg-badge:      rgba(184, 134, 11, 0.08);
    --bg-glass:      rgba(255, 255, 255, 0.88);

    --text-primary:   #0C0F1A;
    --text-secondary: #4A5578;
    --text-tertiary:  #7A849E;
    --text-gold:      #B8860B;

    --border:        rgba(0, 0, 0, 0.08);
    --border-card:   rgba(0, 0, 0, 0.08);
    --border-hover:  rgba(59, 91, 255, 0.25);
    --border-gold:   rgba(184, 134, 11, 0.25);

    --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg:  0 12px 32px rgba(0, 0, 0, 0.10);
    --shadow-glow: 0 0 32px rgba(59, 91, 255, 0.05);
    --shadow-card-hover: 0 8px 32px rgba(59, 91, 255, 0.10), 0 0 0 1px rgba(59, 91, 255, 0.12);

    --positive:    #16a34a;
    --positive-bg: rgba(22, 163, 74, 0.07);
    --positive-glow: rgba(22, 163, 74, 0.12);
    --negative:    #dc2626;
    --negative-bg: rgba(220, 38, 38, 0.07);
    --warning:     #D97706;
    --warning-bg:  rgba(217, 119, 6, 0.07);
    --gold:        #B8860B;
    --gold-bright: #C9960D;
    --gold-muted:  rgba(184, 134, 11, 0.10);
    --gold-border: rgba(184, 134, 11, 0.25);
    --gold-bg:     rgba(184, 134, 11, 0.07);

    --accent:        #3B5BFF;
    --accent-bright: #5B7AFF;
    --accent-bg:     rgba(59, 91, 255, 0.07);
    --accent-glow:   rgba(59, 91, 255, 0.12);

    --sidebar-text:       rgba(240, 242, 248, 0.80);
    --sidebar-text-muted: rgba(240, 242, 248, 0.35);
    --sidebar-hover:      rgba(212, 168, 50, 0.08);
    --sidebar-active:     rgba(212, 168, 50, 0.14);
    --sidebar-border:     rgba(255, 255, 255, 0.07);
    --sidebar-accent-line: #D4A832;

    --grad-sidebar: linear-gradient(180deg, #0C0F1A 0%, #141824 100%);
    --grad-accent:  linear-gradient(135deg, #3B5BFF 0%, #5B7AFF 100%);
    --grad-gold:    linear-gradient(135deg, #B8860B 0%, #D4A832 100%);
    --grad-positive: linear-gradient(135deg, #16a34a 0%, #4ade80 100%);
    --grad-card:    transparent;
}

/* ================================================================
   RESET & BASE
   ================================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.55;
    font-size: 13.5px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Subtle grid texture on dark */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(212, 168, 50, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 168, 50, 0.012) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

/* ================================================================
   APP LAYOUT
   ================================================================ */
.app-container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ================================================================
   SIDEBAR — Dark Monolith
   ================================================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--grad-sidebar);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition-slow), width var(--transition-slow);
    overflow-y: auto;
    overflow-x: hidden;
    border-right: 1px solid var(--sidebar-border);
}

/* Thin accent line on left edge */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--sidebar-accent-line) 30%,
        var(--sidebar-accent-line) 70%,
        transparent 100%
    );
    opacity: 0.6;
    z-index: 1;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 20px 18px 22px;
    border-bottom: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

/* Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 17px;
    background: var(--grad-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--sidebar-text);
    letter-spacing: -0.02em;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.sidebar-collapse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid var(--sidebar-border);
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text-muted);
    cursor: pointer;
    transition: all var(--transition);
}

.sidebar-collapse-btn:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
    border-color: rgba(59, 130, 246, 0.25);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 10px 10px;
    overflow-y: auto;
}

.nav-section { margin-bottom: 2px; }

.nav-section-title {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sidebar-text-muted);
    padding: 18px 12px 8px;
    opacity: 0.7;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text-muted);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
    position: relative;
}

.nav-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 2px;
    height: 60%;
    background: var(--sidebar-accent-line);
    border-radius: 0 2px 2px 0;
    transition: transform var(--transition);
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
}

.nav-item.active {
    background: var(--sidebar-active);
    color: #ffffff;
    font-weight: 600;
}

.nav-item.active::after {
    transform: translateY(-50%) scaleY(1);
}

.nav-item-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-item.active .nav-item-icon {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
}

.nav-item-icon img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.nav-item-label { flex: 1; }

.nav-arrow {
    font-size: 12px;
    color: var(--sidebar-text-muted);
    transition: transform var(--transition);
    margin-left: auto;
    opacity: 0.5;
}

.nav-arrow.expanded { transform: rotate(90deg); opacity: 1; }

/* Submenu */
.nav-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
}

.nav-submenu.expanded { max-height: 800px; }

.nav-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px 7px 46px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    color: var(--sidebar-text-muted);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 400;
    cursor: pointer;
    transition: all var(--transition);
    text-align: left;
}

.nav-subitem:hover {
    color: var(--sidebar-text);
    background: var(--sidebar-hover);
}

.nav-subitem.active {
    color: var(--sidebar-text);
    font-weight: 600;
}

.nav-subitem-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--sidebar-text-muted);
    flex-shrink: 0;
    transition: all var(--transition);
}

.nav-subitem.active .nav-subitem-dot {
    background: var(--accent-bright);
    box-shadow: 0 0 6px rgba(96, 165, 250, 0.6);
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 14px 10px;
    border-top: 1px solid var(--sidebar-border);
    flex-shrink: 0;
}

.sidebar-theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--sidebar-text-muted);
    font-size: 12.5px;
    font-weight: 500;
    transition: all var(--transition);
}

.sidebar-theme-toggle:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
}

.theme-icon { font-size: 14px; }

.sidebar-disclaimer {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--sidebar-text-muted);
    padding: 6px 12px 2px;
    opacity: 0.45;
    letter-spacing: 0.04em;
}

/* Sidebar Overlay (Mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(6, 9, 16, 0.7);
    z-index: 99;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.visible { display: block; }

/* ================================================================
   MAIN AREA
   ================================================================ */
.main-area {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition-slow);
}

/* Dashboard Header */
.dashboard-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

[data-theme="dark"] .dashboard-header {
    background: rgba(8, 11, 20, 0.9);
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dashboard-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Dashboard Language Switcher (identisch zur Landing) ── */
.dash-lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    background: var(--accent-bg, rgba(90,127,230,0.07));
    border-radius: 999px;
    border: 1px solid var(--border);
}

.dash-lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 28px;
    border-radius: 999px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    opacity: 0.45;
    transition: all 0.2s ease;
}

.dash-lang-btn svg {
    border-radius: 3px;
    display: block;
}

.dash-lang-btn:hover {
    opacity: 0.75;
}

.dash-lang-btn--active {
    opacity: 1;
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

.mobile-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.mobile-menu-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.dashboard-title {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
}

.dashboard-content {
    flex: 1;
    padding: 28px 32px;
}

/* ================================================================
   SECTION HEADERS — Editorial Style
   ================================================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--grad-accent);
    border-radius: 2px;
}

.section-icon {
    font-size: 14px;
    opacity: 0.8;
}

.section-title {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.section-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-badge);
    color: var(--accent-bright);
    letter-spacing: 0.06em;
    border: 1px solid var(--border-card);
}

.section-link {
    margin-left: auto;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.section-link:hover { color: var(--accent-bright); }

/* ================================================================
   CARD GRID
   ================================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
    margin-bottom: 32px;
}

/* ================================================================
   PROJECT CARD — Glass Panel
   ================================================================ */
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    transition:
        transform var(--transition-slow),
        box-shadow var(--transition-slow),
        border-color var(--transition-slow);
    cursor: default;
    position: relative;
    overflow: hidden;
    background-image: var(--grad-card);
}

/* Top edge shimmer line */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(59, 130, 246, 0.25),
        rgba(212, 175, 55, 0.15),
        rgba(59, 130, 246, 0.25),
        transparent
    );
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--border-hover);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 14px;
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: var(--bg-input);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition);
}

.project-card:hover .card-icon {
    border-color: rgba(59, 130, 246, 0.2);
}

.card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.card-logo-svg {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.card-icon-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
}

.card-name {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.card-ticker {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-left: 5px;
    letter-spacing: 0.04em;
}

.card-chart-badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--accent-bg);
    color: var(--accent-bright);
    letter-spacing: 0.06em;
    border: 1px solid rgba(59, 130, 246, 0.20);
}

.card-description {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.6;
}

/* ================================================================
   METRICS GRID — Terminal Numbers
   ================================================================ */
.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    position: relative;
}

.metric {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 11px;
    transition: border-color var(--transition);
}

.metric:hover { border-color: var(--border-hover); }

.metric-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.metric-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    font-variant-numeric: tabular-nums;
}

.metric-value.positive { color: var(--positive); }
.metric-value.negative { color: var(--negative); }

/* Live dot — animated */
.metric-live-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--positive);
    margin-left: 5px;
    vertical-align: middle;
    animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--positive-glow); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px transparent; }
}

.metrics-grid.loading { opacity: 0.35; }

/* ================================================================
   CARD USE CASE
   ================================================================ */
.card-usecase {
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border-left: 2px solid var(--accent);
}

.card-section-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-bright);
    margin-bottom: 5px;
}

.card-usecase-text {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ================================================================
   COMPETITORS
   ================================================================ */
.card-competitors {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.competitors-group {
    padding: 10px 12px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
}

.competitors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.competitor-chip {
    display: flex;
    flex-direction: column;
    padding: 5px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    flex: 1 1 auto;
    min-width: 110px;
    max-width: 180px;
}

.competitor-chip:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.competitor-chip.blockchain { border-left: 2px solid var(--accent); }

.competitor-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
}

.competitor-desc {
    font-size: 10px;
    color: var(--text-tertiary);
    line-height: 1.4;
    margin-top: 1px;
}

/* Card Link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition);
    letter-spacing: 0.02em;
}

.card-link:hover { color: var(--accent-bright); }

/* ================================================================
   ECONOMY — SENTIMENT CARD
   ================================================================ */
.economy-sentiment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    margin-bottom: 20px;
    background-image: var(--grad-card);
}

.sentiment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.sentiment-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.sentiment-loading {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

.sentiment-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.sentiment-gauge {
    width: 100%;
    max-width: 440px;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.sentiment-gauge-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.sentiment-gauge-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: inherit;
    box-shadow: 0 0 8px currentColor;
}

.sentiment-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sentiment-value { text-align: center; }

.sentiment-breakdown {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.sentiment-pill {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 4px;
    background: var(--bg-badge);
    letter-spacing: 0.04em;
}

.sentiment-pill.bullish { color: var(--positive); background: var(--positive-bg); }
.sentiment-pill.neutral-pill { color: var(--warning); background: var(--warning-bg); }
.sentiment-pill.bearish { color: var(--negative); background: var(--negative-bg); }

/* ================================================================
   ECONOMY CALENDAR
   ================================================================ */
.economy-calendar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 20px;
    background-image: var(--grad-card);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.calendar-title {
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.calendar-loading, .calendar-loading-placeholder {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
}

.calendar-loading-placeholder { text-align: center; padding: 20px; }

.calendar-empty {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    padding: 20px;
}

.calendar-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.calendar-event {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all var(--transition);
}

.calendar-event:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.calendar-event.calendar-today {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.12);
}

.calendar-event.calendar-tomorrow {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.12);
}

/* Date chip */
.calendar-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 42px;
    padding: 5px 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.calendar-day {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.calendar-month {
    font-family: var(--font-mono);
    font-size: 8.5px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 1px;
}

.calendar-event-info { flex: 1; min-width: 0; }

.calendar-event-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
}

.calendar-event-meta {
    display: flex;
    gap: 8px;
    margin-top: 3px;
}

.calendar-event-freq, .calendar-event-series {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

.calendar-event-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 80px;
    gap: 2px;
}

.calendar-days-label {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.calendar-days-label.calendar-today { color: var(--negative); background: var(--negative-bg); }
.calendar-days-label.calendar-tomorrow { color: var(--warning); background: var(--warning-bg); }
.calendar-days-label.calendar-soon { color: var(--warning); }
.calendar-days-label.calendar-week { color: var(--text-secondary); }
.calendar-days-label.calendar-normal { color: var(--text-tertiary); }

.calendar-date-full {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

/* ================================================================
   ECONOMY INDICATOR CARDS
   ================================================================ */
.economy-indicator-card .card-description {
    font-size: 12px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.econ-icon { font-size: 16px; }
.econ-value-container { margin-bottom: 10px; }

.econ-current-value {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.econ-val-loading {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
}

.econ-val-number {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 500;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}

.econ-val-number.bullish { color: var(--positive); }
.econ-val-number.bearish { color: var(--negative); }
.econ-val-number.neutral { color: var(--warning); }

.econ-chart-container {
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    background: var(--bg-input);
    padding: 10px;
    min-height: 86px;
    border: 1px solid var(--border);
}

.econ-chart-placeholder {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: center;
    padding: 28px 0;
    letter-spacing: 0.04em;
}

.econ-sparkline { display: block; max-width: 100%; }

.econ-chart-dates {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--text-tertiary);
    margin-top: 5px;
    padding: 0 4px;
    letter-spacing: 0.02em;
}

.econ-signal { text-align: center; }

.econ-signal-badge {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    padding: 3px 12px;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.econ-signal-badge.bullish { background: var(--positive-bg); color: var(--positive); border: 1px solid rgba(16,185,129,0.15); }
.econ-signal-badge.bearish { background: var(--negative-bg); color: var(--negative); border: 1px solid rgba(239,68,68,0.15); }
.econ-signal-badge.neutral { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(245,158,11,0.15); }

/* ================================================================
   CHART MODAL
   ================================================================ */
.chart-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

.chart-modal.open { opacity: 1; pointer-events: all; }

.chart-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 9, 16, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chart-modal-content {
    position: relative;
    width: 90vw;
    max-width: 1020px;
    height: 85vh;
    max-height: 760px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(59, 130, 246, 0.06);
    background-image: var(--grad-card);
}

.chart-modal.open .chart-modal-content {
    transform: translateY(0) scale(1);
}

.chart-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
}

.chart-modal-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chart-modal-title h2 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.chart-modal-subtitle {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
    letter-spacing: 0.03em;
}

.modal-logo { width: 36px; height: 36px; border-radius: var(--radius); object-fit: contain; }
.modal-svg-logo { width: 36px; height: 36px; }
.modal-svg-logo svg { width: 100%; height: 100%; }
.modal-icon { font-size: 24px; }

.chart-modal-close {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 16px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.chart-modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.chart-modal-metrics {
    display: flex;
    gap: 20px;
    padding: 12px 22px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-shrink: 0;
}

.chart-modal-metric { display: flex; flex-direction: column; gap: 2px; min-width: fit-content; }

.chart-modal-metric .metric-label {
    font-size: 9.5px;
    letter-spacing: 0.08em;
}

.chart-modal-metric .metric-value {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.chart-modal-chart { flex: 1; padding: 12px; min-height: 0; }

.chart-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 22px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.chart-modal-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color var(--transition);
    letter-spacing: 0.02em;
}

.chart-modal-link:hover { color: var(--accent-bright); }

.chart-modal-powered {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    opacity: 0.6;
}

/* ================================================================
   STOCK CHART
   ================================================================ */
.stock-chart-full .project-card { cursor: default; }
.stock-chart-full .project-card:hover { transform: none; }
.stock-mini-chart iframe { border-radius: var(--radius-sm); }

/* ================================================================
   SCROLLBAR
   ================================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.15);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.30);
}

/* ================================================================
   SELECTION
   ================================================================ */
::selection {
    background: rgba(59, 130, 246, 0.2);
    color: var(--text-primary);
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

.project-card {
    animation: fadeInUp 0.4s ease both;
}

/* Stagger animation for grid cards */
.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.10s; }
.project-card:nth-child(3) { animation-delay: 0.15s; }
.project-card:nth-child(4) { animation-delay: 0.20s; }
.project-card:nth-child(5) { animation-delay: 0.25s; }
.project-card:nth-child(6) { animation-delay: 0.30s; }

/* ================================================================
   NEWSLETTER (Sidebar Footer)
   ================================================================ */
.sidebar-newsletter {
    padding: 8px 10px 4px;
}

.newsletter-form {
    display: flex;
    gap: 4px;
}

.newsletter-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--sidebar-border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: var(--sidebar-text);
    font-family: var(--font-mono);
    font-size: 11.5px;
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.newsletter-input::placeholder { color: var(--sidebar-text-muted); }

.newsletter-input:focus {
    border-color: rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.05);
}

.newsletter-btn {
    padding: 8px 13px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--grad-accent);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
}

.newsletter-btn:hover {
    opacity: 0.9;
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.newsletter-msg {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 4px 2px 0;
    min-height: 16px;
    letter-spacing: 0.02em;
}

.newsletter-msg.success { color: var(--positive); }
.newsletter-msg.error { color: var(--negative); }

/* ================================================================
   CHAT FAB — Gradient Orb
   ================================================================ */
.chat-fab {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 200;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: var(--grad-accent);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 4px 20px rgba(59, 130, 246, 0.35),
        0 0 0 0 rgba(59, 130, 246, 0.2);
    transition: all var(--transition-slow);
    animation: fabPulse 3s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(59,130,246,0.35), 0 0 0 0 rgba(59,130,246,0.15); }
    50%       { box-shadow: 0 4px 28px rgba(59,130,246,0.50), 0 0 0 8px rgba(59,130,246,0); }
}

.chat-fab:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.5);
    animation: none;
}

.chat-fab.hidden { display: none; }

/* ================================================================
   CHAT PANEL
   ================================================================ */
.chat-panel {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 300;
    width: 400px;
    height: 548px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(59, 130, 246, 0.07);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: chatSlideIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: var(--grad-card);
}

.chat-panel.open { display: flex; }

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Chat Header */
.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--grad-accent);
    position: relative;
    overflow: hidden;
}

/* Animated shimmer on header */
.chat-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    pointer-events: none;
}

[data-theme="dark"] .chat-header { background: #0F1629; }

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-icon { font-size: 18px; }

.chat-header-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .chat-header-title { color: var(--text-primary); }

.chat-header-sub {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.04em;
}

[data-theme="dark"] .chat-header-sub { color: var(--text-tertiary); }

.chat-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.75);
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    z-index: 1;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

[data-theme="dark"] .chat-close {
    background: var(--bg-input);
    border-color: var(--border);
    color: var(--text-secondary);
}

[data-theme="dark"] .chat-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-message {
    display: flex;
    max-width: 87%;
}

.chat-message.user { align-self: flex-end; }
.chat-message.assistant { align-self: flex-start; }

.chat-bubble {
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    line-height: 1.65;
    word-break: break-word;
}

.chat-message.user .chat-bubble {
    background: var(--grad-accent);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.25);
}

.chat-message.assistant .chat-bubble {
    background: var(--bg-input);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.chat-bubble p { margin: 0 0 8px; }
.chat-bubble p:last-child { margin: 0; }
.chat-bubble strong { font-weight: 700; }

.chat-bubble code {
    background: var(--bg-badge);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    border: 1px solid var(--border);
}

/* Typing indicator */
.chat-typing {
    display: flex;
    gap: 5px;
    padding: 12px 14px;
    background: var(--bg-input);
    border-radius: var(--radius-lg);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
    width: fit-content;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-tertiary);
    animation: chatTyping 1.3s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chatTyping {
    0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-5px); }
}

/* Input Bar */
.chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-card);
}

.chat-input {
    flex: 1;
    padding: 10px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-input);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.chat-input:focus {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.chat-input::placeholder { color: var(--text-tertiary); }

.chat-send {
    padding: 10px 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--grad-accent);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.chat-send:hover {
    opacity: 0.9;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.chat-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ================================================================
   NEWS FEED
   ================================================================ */
.news-feed-header { margin-bottom: 10px; }

.news-source-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.news-filter-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.03em;
}

.news-filter-btn:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
    color: var(--text-primary);
}

.news-filter-btn.active {
    background: var(--grad-accent);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.news-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.news-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    transition: all 0.28s ease;
    animation: fadeInUp 0.4s ease both;
    background-image: var(--grad-card);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--grad-accent);
    opacity: 0;
    transition: opacity var(--transition);
    border-radius: 0 2px 2px 0;
}

.news-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

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

.news-card-source {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 9px;
}

.news-source-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.news-source-name {
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.news-card-time {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--text-tertiary);
    margin-left: auto;
    letter-spacing: 0.02em;
}

.news-card-title {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0 0 7px 0;
    letter-spacing: -0.02em;
}

.news-card-summary {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer { display: flex; align-items: center; }

.news-card-link {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--positive);
    transition: opacity var(--transition);
    letter-spacing: 0.02em;
}

.news-card:hover .news-card-link { opacity: 0.8; }

/* Loading / Error / Empty */
.news-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 56px 0;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.news-loading-spinner {
    width: 28px;
    height: 28px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-bright);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.news-error, .news-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 56px 0;
    text-align: center;
    color: var(--text-tertiary);
}

.news-error span, .news-empty span { font-size: 28px; }

.news-error p, .news-empty p {
    font-family: var(--font-mono);
    font-size: 12px;
    margin: 0;
    letter-spacing: 0.03em;
}

.news-retry-btn {
    margin-top: 10px;
    padding: 8px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.04em;
}

.news-retry-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

/* ================================================================
   WIRTSCHAFTSKALENDER — Eigener Rahmen
   ================================================================ */

/* Wrapper */
.econ-calendar {
    margin-top: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Loading */
.econ-calendar__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 36px 24px;
    color: var(--text-tertiary);
    font-size: 12px;
}

.econ-loading-dots {
    display: flex;
    gap: 5px;
}
.econ-loading-dots span {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
    animation: econ-pulse 1.2s ease-in-out infinite;
}
.econ-loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.econ-loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes econ-pulse {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
}

/* Empty/Error */
.econ-calendar__empty {
    padding: 28px 24px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 13px;
}

/* Grid: Tages-Gruppen nebeneinander (horizontal scroll auf Mobile) */
.econ-calendar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0;
    border-bottom: 1px solid var(--border);
}

/* Tag-Gruppe */
.econ-day-group {
    border-right: 1px solid var(--border);
    min-width: 0;
}
.econ-day-group:last-child { border-right: none; }

.econ-day-group--today .econ-day-header {
    background: rgba(212, 168, 50, 0.06);
    border-bottom-color: var(--gold-border);
}

/* Tag-Header */
.econ-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 9px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

.econ-day-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.econ-day-today {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.econ-day-count {
    font-size: 10px;
    color: var(--text-tertiary);
    background: var(--bg-hover);
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Events-Liste */
.econ-events {
    display: flex;
    flex-direction: column;
}

/* Einzelnes Event */
.econ-event {
    display: grid;
    grid-template-columns: 70px 14px 1fr;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.econ-event:last-child { border-bottom: none; }
.econ-event:hover { background: var(--bg-hover); }

.econ-event--past {
    opacity: 0.45;
}

/* Zeit */
.econ-event__time {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--text-tertiary);
    white-space: nowrap;
    line-height: 1;
}

/* Impact-Dot */
.econ-event__impact {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    justify-self: center;
}
.impact--high {
    background: var(--negative);
    box-shadow: 0 0 6px rgba(248, 113, 113, 0.5);
}
.impact--medium {
    background: var(--warning, #F59E0B);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.35);
}

/* Event Body */
.econ-event__body {
    min-width: 0;
}

.econ-event__title {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.35;
    word-break: break-word;
}
.econ-event__title span {
    overflow: hidden;
    text-overflow: ellipsis;
}

.econ-event__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
}

.econ-ev-currency {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--accent-bright);
    background: var(--accent-bg);
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.04em;
}

.econ-ev-meta {
    font-size: 10px;
    color: var(--text-tertiary);
}
.econ-ev-meta strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Footer */
.econ-calendar__footer {
    display: flex;
    justify-content: flex-end;
    padding: 7px 14px;
    font-size: 10px;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

/* ── Kalender Wochen-Tabs ── */
.econ-week-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    width: fit-content;
}

.econ-week-tab {
    padding: 6px 16px;
    border-radius: calc(var(--radius) - 2px);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.econ-week-tab:hover { color: var(--text-primary); background: var(--bg-hover); }
.econ-week-tab.active {
    background: var(--gold-muted, rgba(212,168,50,0.12));
    color: var(--gold);
    font-weight: 600;
    border: 1px solid var(--gold-border);
}

/* ================================================================
   MAKRO 1×1  —  Accordion
   ================================================================ */

.m1x1-intro {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    max-width: 640px;
}

/* ── Lang-Toggle ── */
.m1x1-lang-toggle {
    display: flex;
    gap: 4px;
}
.m1x1-lang-btn {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--border-card);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.m1x1-lang-btn:hover { background: var(--bg-hover, rgba(255,255,255,0.05)); }
.m1x1-lang-btn.active {
    background: var(--gold-bg, rgba(212,168,50,0.12));
    color: var(--gold);
    border-color: rgba(212,168,50,0.35);
}

/* ── Accordion Container ── */
.m1x1-accordion {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ── Accordion Item ── */
.m1x1-acc-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.22s, box-shadow 0.22s;
}
.m1x1-acc-item.is-open {
    border-color: rgba(212,168,50,0.30);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* Farbakzent links */
.m1x1-color-accent   { border-left: 3px solid var(--accent); }
.m1x1-color-negative { border-left: 3px solid var(--negative); }
.m1x1-color-gold     { border-left: 3px solid var(--gold); }
.m1x1-color-positive { border-left: 3px solid var(--positive); }
.m1x1-color-warning  { border-left: 3px solid var(--warning, #F59E0B); }

/* ── Accordion Header ── */
.m1x1-acc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 50px;
    padding: 0 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.m1x1-acc-header:hover { background: var(--bg-hover, rgba(255,255,255,0.02)); }

.m1x1-acc-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}
.m1x1-acc-emoji { font-size: 1rem; flex-shrink: 0; }
.m1x1-acc-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: color 0.2s;
}
.m1x1-acc-item.is-open .m1x1-acc-title { color: var(--gold); }

/* ── Release Pill ── */
.m1x1-release-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(90,127,230,0.10);
    border: 1px solid rgba(90,127,230,0.22);
    border-radius: 999px;
    padding: 2px 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Chevron ── */
.m1x1-chevron {
    width: 15px; height: 15px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(.4,0,.2,1), color 0.2s;
}
.m1x1-acc-item.is-open .m1x1-chevron {
    transform: rotate(180deg);
    color: var(--gold);
}

/* ── Accordion Body ── */
.m1x1-acc-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(.4,0,.2,1);
}
.m1x1-acc-item.is-open .m1x1-acc-body { max-height: 5000px; }

.m1x1-acc-inner {
    padding: 0 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ── Trigger Card ── */
.m1x1-trigger-card {
    background: var(--bg-hover, rgba(255,255,255,0.02));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.m1x1-trigger-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
}

.m1x1-dir {
    font-size: 12px;
    font-weight: 700;
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.m1x1-dir-up      { color: var(--positive, #4ade80); background: var(--positive-bg, rgba(74,222,128,0.10)); }
.m1x1-dir-down    { color: var(--negative, #f87171); background: var(--negative-bg, rgba(248,113,113,0.10)); }
.m1x1-dir-special { color: var(--warning, #F59E0B); background: rgba(245,158,11,0.10); }

.m1x1-trigger-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* ── Effect Rows (3-spaltig) ── */
.m1x1-effects-list {
    padding: 6px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.m1x1-effect-row {
    display: grid;
    grid-template-columns: 110px 90px 1fr;
    align-items: start;
    gap: 6px;
    padding: 3px 0;
}
.m1x1-effect-asset {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    padding-top: 2px;
}
.m1x1-effect-reason {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ── Impact-Badges ── */
.m1x1-badge {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
    letter-spacing: 0.02em;
    justify-self: start;
}
.impact-pos { background: var(--positive-bg, rgba(74,222,128,0.10)); color: var(--positive, #4ade80); border: 1px solid rgba(74,222,128,0.22); }
.impact-neg { background: var(--negative-bg, rgba(248,113,113,0.10)); color: var(--negative, #f87171); border: 1px solid rgba(248,113,113,0.22); }
.impact-mix { background: rgba(245,158,11,0.10); color: var(--warning, #F59E0B); border: 1px solid rgba(245,158,11,0.22); }

/* ── Responsive ── */
@media (max-width: 640px) {
    .m1x1-effect-row { grid-template-columns: 90px 80px 1fr; gap: 4px; }
    .m1x1-release-pill { display: none; }
}
@media (max-width: 480px) {
    .m1x1-effect-row { grid-template-columns: 1fr 80px; }
    .m1x1-effect-reason { grid-column: 1 / -1; padding-top: 1px; }
}

@media (max-width: 900px) {
    .econ-calendar__grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 640px) {
    .econ-calendar__grid {
        grid-template-columns: 1fr;
    }
    .econ-day-group {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

.economy-market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding: 16px;
}

.economy-market-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.economy-market-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}

.economy-market-label { font-size: 12.5px; font-weight: 600; }

.tradingview-mini {
    height: 160px;
    overflow: hidden;
}

/* ================================================================
   MARKETS TAB BAR
   ================================================================ */
.markets-tab-bar {
    display: flex;
    gap: 3px;
    margin-bottom: 26px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 4px;
    width: fit-content;
}

.markets-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: none;
    border-radius: calc(var(--radius) - 3px);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.markets-tab.active {
    background: var(--grad-accent);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
}

.markets-tab:not(.active):hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ================================================================
   MACRO EVENTS GRID
   ================================================================ */
.macro-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
    margin-bottom: 10px;
}

.macro-event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: all 0.22s ease;
    border-left: 2px solid var(--border);
    background-image: var(--grad-card);
}

.macro-event-card.macro-importance-high {
    border-left-color: #EF4444;
}

.macro-event-card.macro-importance-medium {
    border-left-color: #F59E0B;
}

.macro-event-card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.macro-event-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.macro-event-icon { font-size: 18px; flex-shrink: 0; }

.macro-event-meta {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
}

.macro-event-flag { font-size: 13px; }

.macro-event-name {
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.macro-importance-badge {
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 20px;
    flex-shrink: 0;
}

.macro-importance-badge.macro-importance-high {
    background: rgba(239, 68, 68, 0.10);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.macro-importance-badge.macro-importance-medium {
    background: rgba(245, 158, 11, 0.10);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.15);
}

.macro-event-explanation {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* ================================================================
   CRYPTO METRICS ROW
   ================================================================ */
.crypto-metrics-row {
    display: flex;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 13px;
}

.crypto-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 9px 6px;
    background: var(--bg-input);
    border-right: 1px solid var(--border);
    text-align: center;
    transition: background var(--transition);
}

.crypto-metric:last-child { border-right: none; }
.crypto-metric:hover { background: var(--bg-hover); }

.crypto-metric-label {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 4px;
}

.crypto-metric-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* ================================================================
   UTILITY
   ================================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Gold accent helper */
.text-gold { color: var(--gold); }
.bg-gold { background: var(--gold-bg); }

/* Data badge */
.data-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-area { margin-left: 0; }
    .mobile-menu-btn { display: flex; }
    .economy-market-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .dashboard-content { padding: 16px 18px; }
    .dashboard-header { padding: 0 18px; }
    .projects-grid { grid-template-columns: 1fr; }
    .chart-modal-content {
        width: 96vw;
        height: 92vh;
        border-radius: var(--radius-lg);
    }
    .chart-modal-footer { flex-direction: column; gap: 4px; }
}

@media (max-width: 640px) {
    .economy-market-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
    .calendar-event { gap: 8px; padding: 8px 10px; }
    .chat-panel {
        width: calc(100vw - 16px) !important;
        right: 8px !important;
        bottom: 8px !important;
        height: 70vh !important;
        border-radius: var(--radius-lg) !important;
    }
    .markets-tab-bar { width: 100%; overflow-x: auto; }
}

/* ===== Fear & Greed Widget ===== */
.fg-widget { }
.fg-loading { display:flex; flex-direction:column; align-items:center; padding:32px; gap:8px; color:var(--text-muted); }
.fg-card { background:var(--card-bg); border:1px solid var(--border-color); border-radius:var(--radius-lg); padding:24px; display:flex; flex-direction:column; align-items:center; gap:20px; max-width:480px; }
.fg-gauge-wrap { position:relative; width:220px; }
.fg-gauge-svg { width:100%; display:block; }
.fg-center { position:absolute; bottom:0; left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:2px; }
.fg-value { font-size:2.4rem; font-weight:700; line-height:1; }
.fg-label { font-size:0.85rem; font-weight:600; letter-spacing:0.04em; text-transform:uppercase; }
.fg-date { font-size:0.7rem; color:var(--text-muted); margin-top:2px; }
.fg-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; width:100%; }
.fg-metric { display:flex; flex-direction:column; align-items:center; gap:3px; background:var(--bg-secondary,var(--bg)); border-radius:8px; padding:10px 6px; }
.fg-metric-value { font-size:1.1rem; font-weight:700; color:var(--text-primary); }
.fg-metric-label { font-size:0.65rem; color:var(--text-muted); text-align:center; text-transform:uppercase; letter-spacing:0.04em; }
.fg-scale { display:flex; justify-content:space-between; width:100%; font-size:0.65rem; font-weight:600; padding:0 4px; }
@media (max-width:480px) { .fg-metrics { grid-template-columns:repeat(2,1fr); } }
