/* ==========================================================================
   CRYPTOSCREENER247 - COIN DETAIL PAGE REDESIGN
   A cohesive, professional dark theme with consistent color hierarchy
   ========================================================================== */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   Centralized color palette for consistency across all components
   ========================================================================== */
:root {
    /* === Primary Background Hierarchy === */
    --bg-primary: #0a0e14;          /* Deepest background */
    --bg-secondary: #111822;        /* Card backgrounds */
    --bg-tertiary: #1a2332;         /* Elevated elements */
    --bg-elevated: #232d3f;         /* Hover states, active items */
    
    /* === Accent Colors - Blue Theme === */
    --accent-primary: #3b82f6;      /* Main accent (buttons, active states) */
    --accent-secondary: #60a5fa;    /* Secondary accent (headers, links) */
    --accent-muted: #2563eb;        /* Darker accent variant */
    --accent-glow: rgba(59, 130, 246, 0.15);  /* Subtle glow effects */
    
    /* === Semantic Colors === */
    --bullish: #10b981;             /* Green for bullish/positive */
    --bullish-bg: rgba(16, 185, 129, 0.12);
    --bullish-border: rgba(16, 185, 129, 0.25);
    
    --bearish: #ef4444;             /* Red for bearish/negative */
    --bearish-bg: rgba(239, 68, 68, 0.12);
    --bearish-border: rgba(239, 68, 68, 0.25);
    
    --warning: #f59e0b;             /* Orange/yellow for warnings */
    --warning-bg: rgba(245, 158, 11, 0.12);
    --warning-border: rgba(245, 158, 11, 0.25);
    
    --neutral: #64748b;             /* Gray for neutral states */
    --neutral-bg: rgba(100, 116, 139, 0.12);
    --neutral-border: rgba(100, 116, 139, 0.25);
    
    /* === Text Hierarchy === */
    --text-primary: #f1f5f9;        /* Main headings, important text */
    --text-secondary: #cbd5e1;      /* Body text, descriptions */
    --text-tertiary: #94a3b8;       /* Labels, meta info */
    --text-muted: #64748b;          /* Disabled, placeholder */
    
    /* === Border Colors === */
    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-default: rgba(148, 163, 184, 0.12);
    --border-strong: rgba(148, 163, 184, 0.2);
    --border-accent: rgba(59, 130, 246, 0.3);
    
    /* === Typography === */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
    
    /* === Spacing Scale === */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* === Border Radius === */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    
    /* === Shadows === */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
    
    /* === Transitions === */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms ease;
    
    /* === Theme Toggle === */
    --theme-toggle-bg: var(--bg-tertiary);
    --chart-bg: #131722;
}


/* ==========================================================================
   1D. ANIMATION PERFORMANCE OPTIMIZATIONS
   Using will-change and GPU acceleration for smooth animations
   ========================================================================== */

/* Cards that animate on hover - prepare GPU layer */
.metric-card,
.analysis-card,
.indicator-card,
.scenario-card,
.trade-card,
.faq-item,
.signal-badge,
.btn-action,
.btn-primary,
.btn-secondary,
.tf-btn,
.indicator-tab,
.chart-indicator-tab {
    will-change: transform;
    transform: translateZ(0); /* Force GPU layer */
    backface-visibility: hidden;
}

/* Elements with opacity transitions */
.toast,
.scroll-to-top-btn,
.dropdown-arrow {
    will-change: opacity, transform;
}

/* Progress bars and animated fills */
.confidence-bar-fill,
.prob-fill,
.gauge-bullish,
.gauge-bearish {
    will-change: width;
    transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .metric-card,
    .analysis-card,
    .indicator-card,
    .scenario-card,
    .trade-card,
    .faq-item {
        will-change: auto;
        transform: none;
    }
    
    .loading-spinner {
        animation: none;
        border-top-color: var(--accent-primary);
    }
}

/* Optimize scrolling performance */
.detail-container,
.multi-tf-table-wrapper,
.indicator-panels,
.signals-dropdown {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* Contain paint for complex components */
.signal-section,
.chart-section,
.indicators-section,
.market-overview-section {
    contain: layout style;
}

/* Optimize images */
.coin-logo-large {
    content-visibility: auto;
}


/* ==========================================================================
   2. BASE CONTAINER STYLES
   ========================================================================== */
.detail-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: var(--bg-primary);
    min-height: 100vh;
}

/* ==========================================================================
   3. NAVIGATION & HEADER
   ========================================================================== */
.back-navigation {
    margin-bottom: var(--space-lg);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 18px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid var(--border-default);
    transition: all var(--transition-normal);
}

.back-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-accent);
    transform: translateX(-4px);
}

/* ==========================================================================
   4. COIN HEADER SECTION
   ========================================================================== */
.coin-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-default);
}

.coin-header-left {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.coin-logo-large {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--border-strong);
    box-shadow: var(--shadow-md);
    background: var(--bg-tertiary);
}

.coin-info h1 {
    margin: 0 0 var(--space-sm) 0;
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.coin-symbol-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Price Section */
.coin-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-md);
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.price-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.price-large {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.price-change-badge {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-mono);
}

.price-change-badge.positive {
    background: var(--bullish-bg);
    color: var(--bullish);
    border: 1px solid var(--bullish-border);
}

.price-change-badge.negative {
    background: var(--bearish-bg);
    color: var(--bearish);
    border: 1px solid var(--bearish-border);
}

/* Stats Inline */
.stats-inline {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.stat-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.stat-divider {
    color: var(--border-strong);
    font-size: 14px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.stat-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}

.stat-value.stat-high { color: var(--bullish); }
.stat-value.stat-low { color: var(--bearish); }

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 10px;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-action:hover {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.btn-action.active {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-secondary);
}

.btn-icon {
    font-size: 1.1em;
}

/* ==========================================================================
   5. TIMEFRAME BAR
   ========================================================================== */
.timeframe-bar {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px var(--space-lg);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-default);
}

.tf-label {
    font-weight: 600;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tf-buttons {
    display: flex;
    gap: 6px;
}

.tf-btn {
    padding: 10px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tf-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    color: var(--text-secondary);
}

.tf-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   6. METRICS GRID (Quick Stats Cards)
   ========================================================================== */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: var(--space-lg);
}

.metric-card {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
    transition: all var(--transition-normal);
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.metric-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.metric-status.signal-bullish {
    background: var(--bullish-bg);
    color: var(--bullish);
    border: 1px solid var(--bullish-border);
}

.metric-status.signal-bearish {
    background: var(--bearish-bg);
    color: var(--bearish);
    border: 1px solid var(--bearish-border);
}

.metric-status.signal-warning {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.metric-status.signal-neutral {
    background: var(--neutral-bg);
    color: var(--neutral);
    border: 1px solid var(--neutral-border);
}

/* Responsive Metrics Grid */
@media (max-width: 1200px) {
    .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .metrics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .metrics-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   7. SECTION CONTAINERS (Unified Card Style)
   ========================================================================== */
.chart-section,
.signal-section,
.multi-tf-section,
.indicators-section,
.trade-ideas-section,
.market-overview-section,
.seo-content-section {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-default);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-default);
}

.section-header h2 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Killer Feature Highlight */
.killer-feature {
    border: 2px solid var(--accent-primary);
    box-shadow: var(--shadow-glow);
    position: relative;
}

.killer-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), #8b5cf6, #ec4899);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ==========================================================================
   8. SIGNAL SECTION (AI Analysis)
   ========================================================================== */
.signal-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.signal-overview {
    background: var(--accent-glow);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-accent);
}

.signal-badge-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.signal-badge {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.signal-badge.strong-bullish {
    background: linear-gradient(135deg, var(--bullish) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.signal-badge.bullish {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.signal-badge.neutral {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.signal-badge.bearish {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.signal-badge.strong-bearish {
    background: linear-gradient(135deg, var(--bearish) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

/* Confidence Display */
.confidence-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confidence-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
}

.confidence-bar-container {
    width: 200px;
    height: 12px;
    background: var(--bg-tertiary);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-default);
}

.confidence-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bullish) 0%, var(--accent-primary) 50%, var(--bearish) 100%);
    transition: width 0.5s ease;
    border-radius: 6px;
}

.confidence-text {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
    font-family: var(--font-mono);
    min-width: 50px;
}

/* Confluence Score */
.confluence-score {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    border: 1px solid var(--border-default);
}

.confluence-label {
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.9rem;
}

.confluence-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent-secondary);
    font-family: var(--font-mono);
}

.confluence-desc {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Signals Grid */
.signals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.signals-column {
    background: var(--bg-tertiary);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-default);
}

.signals-column.bullish {
    border-left: 4px solid var(--bullish);
}

.signals-column.bearish {
    border-left: 4px solid var(--bearish);
}

.signals-column h4 {
    color: var(--text-primary);
    margin: 0 0 var(--space-md) 0;
    font-size: 1rem;
    font-weight: 600;
}

.signals-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signals-column li {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border: 1px solid var(--border-subtle);
}

.signals-column li.empty {
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   9. INDICATOR PANELS & TABS
   ========================================================================== */
.indicator-tabs-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.indicator-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-tertiary);
    padding: 8px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border: 1px solid var(--border-default);
    border-bottom: none;
}

.indicator-tab {
    flex: 1;
    padding: 12px 18px;
    background: transparent;
    border: none;
    color: var(--text-tertiary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.indicator-tab:hover {
    background: var(--accent-glow);
    color: var(--text-primary);
}

.indicator-tab.active {
    background: var(--accent-primary);
    color: white;
}

.indicator-panels {
    background: var(--bg-tertiary);
    padding: var(--space-lg);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--border-default);
    border-top: none;
}

.indicator-panel {
    display: none;
}

.indicator-panel.active {
    display: block;
}

.indicator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent-primary);
}

.detail-label {
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.9rem;
}

.detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ==========================================================================
   10. ANALYSIS CARDS (Unified Card Component)
   ========================================================================== */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.analysis-card,
.indicator-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.analysis-card:hover,
.indicator-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.analysis-card .card-header,
.indicator-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--accent-glow) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-default);
}

.card-icon {
    font-size: 1.2rem;
}

.card-header h4 {
    margin: 0;
    color: var(--accent-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}

.card-content {
    padding: var(--space-md) 18px;
}

.card-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
}

/* ==========================================================================
   11. AI ANALYSIS CONTAINER
   ========================================================================== */
.ai-analysis-container {
    background: var(--bg-secondary);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin: var(--space-xl) 0;
    box-shadow: var(--shadow-glow);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-default);
}

.ai-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-primary), #8b5cf6);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.ai-header h2 {
    color: var(--accent-secondary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.ai-header p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin: 4px 0 0 0;
}

/* Narrative Section */
.narrative-section {
    background: linear-gradient(135deg, var(--accent-glow) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    position: relative;
}

.narrative-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), #8b5cf6, #ec4899);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.narrative-section h3 {
    color: var(--accent-secondary);
    font-size: 1.15rem;
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.narrative-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ==========================================================================
   12. PROBABILITY SECTION
   ========================================================================== */
.probability-section {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: var(--space-lg) 0;
}

.probability-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: var(--space-lg) 0;
}

.prob-bar {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    height: 44px;
    display: flex;
    align-items: center;
    border: 1px solid var(--border-subtle);
}

.prob-label {
    position: absolute;
    left: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
}

.prob-fill {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 14px;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-mono);
    transition: width 0.8s ease;
}

.prob-bar.continuation .prob-fill {
    background: linear-gradient(90deg, var(--bullish), #059669);
}

.prob-bar.pullback .prob-fill {
    background: linear-gradient(90deg, var(--warning), #d97706);
}

.prob-bar.reversal .prob-fill {
    background: linear-gradient(90deg, var(--bearish), #dc2626);
}

/* ==========================================================================
   13. SCENARIO CARDS
   ========================================================================== */
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

.scenario-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-normal);
}

.scenario-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.scenario-card.base-case { border-left: 4px solid var(--bullish); }
.scenario-card.alternative-case { border-left: 4px solid var(--warning); }
.scenario-card.tail-risk { border-left: 4px solid var(--bearish); }

.scenario-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-md);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}

.scenario-icon {
    font-size: 1.4rem;
}

.scenario-header h4 {
    color: var(--accent-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.scenario-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 10px 0;
}

.scenario-targets {
    background: var(--accent-glow);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    margin: 10px 0;
    border: 1px solid var(--border-accent);
}

/* ==========================================================================
   14. TRADE QUALITY SECTION
   ========================================================================== */
.trade-quality-section {
    margin: var(--space-xl) 0;
}

.trade-quality-badge {
    background: linear-gradient(135deg, var(--bullish-bg) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--bullish-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.quality-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.quality-header h4 {
    color: var(--accent-secondary);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.quality-score {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.quality-score { color: var(--bullish); }
.quality-score.moderate { color: var(--warning); }
.quality-score.low, .quality-score.poor { color: var(--bearish); }

.quality-details {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin: var(--space-md) 0;
    border: 1px solid var(--border-subtle);
}

.quality-metric {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.quality-metric:last-child { border-bottom: none; }

.quality-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.quality-value {
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-mono);
}

/* ==========================================================================
   15. RISK & WARNING BADGES
   ========================================================================== */
.risk-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.risk-badge.low {
    background: var(--bullish-bg);
    color: var(--bullish);
    border: 1px solid var(--bullish-border);
}

.risk-badge.moderate {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid var(--warning-border);
}

.risk-badge.high {
    background: var(--bearish-bg);
    color: var(--bearish);
    border: 1px solid var(--bearish-border);
}

.warning-badge {
    background: var(--bearish-bg);
    border: 1px solid var(--bearish-border);
    color: var(--bearish);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    margin: 8px 0;
    display: inline-block;
    font-size: 0.85rem;
}

.warning-box {
    background: var(--bearish-bg);
    border: 1px solid var(--bearish-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.warning-box h5 {
    color: var(--bearish);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 600;
}

/* ==========================================================================
   16. MULTI-TIMEFRAME TABLE
   ========================================================================== */
.multi-tf-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
}

.multi-tf-table {
    width: 100%;
    border-collapse: collapse;
}

.multi-tf-table th {
    background: var(--bg-tertiary);
    padding: 14px;
    text-align: center;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-default);
}

.multi-tf-table th.active-tf {
    background: var(--accent-primary);
    color: white;
}

.multi-tf-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid var(--border-default);
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
}

.multi-tf-table td.ind-name {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    text-align: left;
    padding-left: var(--space-lg);
}

.multi-tf-table td.tf-cell {
    transition: all var(--transition-fast);
}

.multi-tf-table td.tf-cell:hover {
    background: var(--bg-tertiary);
}

.multi-tf-table td.rsi-overbought {
    background: var(--bearish-bg);
    color: var(--bearish);
    font-weight: 600;
}

.multi-tf-table td.rsi-oversold {
    background: var(--bullish-bg);
    color: var(--bullish);
    font-weight: 600;
}

.multi-tf-table td.signal-bullish {
    background: var(--bullish-bg);
    color: var(--bullish);
}

.multi-tf-table td.signal-bearish {
    background: var(--bearish-bg);
    color: var(--bearish);
}

/* ==========================================================================
   17. SEO & FAQ SECTIONS
   ========================================================================== */
.seo-summary {
    margin: 12px 0;
    padding: 14px 18px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-primary);
}

.seo-summary p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.seo-summary strong {
    color: var(--text-primary);
}

.faq-section {
    margin-top: var(--space-xl);
}

.faq-section h2 {
    font-size: 1.3rem;
    margin-bottom: var(--space-md);
    color: var(--accent-secondary);
    font-weight: 600;
}

.faq-item {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.faq-item h3 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
}

.faq-item p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.faq-item strong {
    color: var(--accent-secondary);
}

/* Related Coins & Internal Links */
.related-coins,
.internal-links {
    margin-top: var(--space-xl);
}

.related-coins h2,
.internal-links h2 {
    font-size: 1.15rem;
    margin-bottom: var(--space-md);
    color: var(--accent-secondary);
    font-weight: 600;
}

.related-coins ul,
.internal-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-coins li a,
.internal-links li a {
    display: inline-block;
    background: var(--bg-tertiary);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-fast);
}

.related-coins li a:hover,
.internal-links li a:hover {
    background: var(--bg-elevated);
    color: var(--accent-secondary);
    border-color: var(--border-accent);
}

/* ==========================================================================
   18. CHART SECTION
   ========================================================================== */
.tv-chart-container {
    height: 350px;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #131722;
    border: 1px solid var(--border-default);
}

.chart-indicator-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

.chart-indicator-tab {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.chart-indicator-tab:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.chart-indicator-tab.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* ==========================================================================
   19. SENTIMENT GAUGE
   ========================================================================== */
.sentiment-gauge-section {
    margin-bottom: var(--space-lg);
}

.sentiment-gauge {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.sentiment-gauge h3 {
    color: var(--accent-secondary);
    margin-bottom: var(--space-md);
    font-size: 1.1rem;
    font-weight: 600;
}

.gauge-container {
    display: flex;
    height: 36px;
    border-radius: 18px;
    overflow: hidden;
    margin: var(--space-md) 0;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-default);
}

.gauge-bullish {
    background: linear-gradient(90deg, var(--bullish), #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.5s ease;
}

.gauge-bearish {
    background: linear-gradient(90deg, var(--bearish), #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.5s ease;
}

/* ==========================================================================
   20. LOADING & ERROR STATES
   ========================================================================== */
.loading-container,
.error-container {
    text-align: center;
    padding: 80px var(--space-lg);
}

.loading-spinner {
    border: 4px solid var(--border-default);
    border-top: 4px solid var(--accent-primary);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-lg);
}

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

.loading-container p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.error-container h3 {
    color: var(--bearish);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.error-container p {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.no-data {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-style: italic;
}

/* ==========================================================================
   21. BUTTONS
   ========================================================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-primary:hover {
    background: var(--accent-muted);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border-color: var(--border-accent);
}

/* ==========================================================================
   22. TOAST NOTIFICATIONS
   ========================================================================== */
.toast {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    padding: 16px 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 1000;
    border: 1px solid var(--border-default);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.toast-success { border-left: 4px solid var(--bullish); }
.toast.toast-error { border-left: 4px solid var(--bearish); }
.toast.toast-info { border-left: 4px solid var(--accent-primary); }

/* ==========================================================================
   23. SCROLL TO TOP BUTTON
   ========================================================================== */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-muted));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.5);
}

/* ==========================================================================
   24. COLLAPSIBLE CARDS
   ========================================================================== */
.collapsible-card {
    margin-bottom: var(--space-md);
}

.deep-dive-header,
.section-header-dropdown {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px var(--space-lg);
    background: linear-gradient(135deg, var(--accent-glow) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-accent);
}

.deep-dive-header:hover,
.section-header-dropdown:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, var(--bg-elevated) 100%);
}

.deep-dive-header h3,
.section-header-dropdown h3 {
    margin: 0;
    color: var(--accent-secondary);
    font-size: 1.05rem;
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 14px;
    color: var(--accent-secondary);
    transition: transform var(--transition-normal);
}

.dropdown-arrow.expanded {
    transform: rotate(180deg);
}

.deep-dive-content {
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    border: 1px solid var(--border-default);
    border-top: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* ==========================================================================
   25. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .coin-header-section {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .coin-header-right {
        align-items: flex-start;
        width: 100%;
    }
    
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: var(--space-md);
    }
    
    .coin-header-section {
        padding: var(--space-md);
    }
    
    .price-large {
        font-size: 1.75rem;
    }
    
    .price-change-badge {
        font-size: 0.9rem;
    }
    
    .stats-inline {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .stat-divider {
        display: none;
    }
    
    .stat-item {
        width: 100%;
        justify-content: space-between;
    }
    
    .tf-buttons {
        flex-wrap: wrap;
    }
    
    .indicator-tabs {
        flex-wrap: wrap;
    }
    
    .action-buttons {
        flex-wrap: wrap;
    }
    
    .btn-text {
        display: none;
    }
    
    .signals-grid {
        grid-template-columns: 1fr;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .coin-header-left {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-md);
    }
    
    .coin-logo-large {
        width: 56px;
        height: 56px;
    }
    
    .coin-info h1 {
        font-size: 1.5rem;
    }
    
    .signal-badge {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .confidence-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .confidence-bar-container {
        width: 100%;
    }
}

/* ==========================================================================
   26. UTILITY CLASSES
   ========================================================================== */
.text-bullish { color: var(--bullish) !important; }
.text-bearish { color: var(--bearish) !important; }
.text-warning { color: var(--warning) !important; }
.text-neutral { color: var(--neutral) !important; }
.text-accent { color: var(--accent-secondary) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-bullish { background: var(--bullish-bg) !important; }
.bg-bearish { background: var(--bearish-bg) !important; }
.bg-warning { background: var(--warning-bg) !important; }

.font-mono { font-family: var(--font-mono) !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }

/* Highlight classes for dynamic content */
.price-highlight {
    color: var(--bullish);
    font-weight: 700;
    font-family: var(--font-mono);
}

.change-highlight {
    font-weight: 600;
}

.change-highlight.positive { color: var(--bullish); }
.change-highlight.negative { color: var(--bearish); }

.level-low { color: var(--bearish); font-weight: 600; }
.level-high { color: var(--bullish); font-weight: 600; }

.confidence-badge {
    background: var(--accent-glow);
    color: var(--accent-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-block;
    border: 1px solid var(--border-accent);
}

/* Timeframe Badge */
.timeframe-badge {
    background: var(--accent-glow);
    color: var(--accent-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid var(--border-accent);
}

/* ==========================================================================
   27. PRINT STYLES
   ========================================================================== */
@media print {
    .detail-container {
        background: white;
    }
    
    .back-navigation,
    .action-buttons,
    .scroll-to-top-btn,
    .share-section {
        display: none;
    }
}



/* ========== REFERRAL CTAs ========== */
.referral-cta {
    border-radius: 16px;
    padding: 16px 24px; /* Reduced top/bottom padding from 24px to 16px */
    margin-bottom: 16px; /* Reduced from 24px to 16px */
}

.referral-cta.binance-cta {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.15) 0%, rgba(240, 185, 11, 0.05) 100%);
    border: 2px solid rgba(240, 185, 11, 0.3);
}

.referral-cta.tradingview-cta {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border: 2px solid rgba(34, 197, 94, 0.3);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 16px; /* Reduced from 20px to 16px */
    flex-wrap: wrap;
}

.cta-icon {
    font-size: 2rem; /* Reduced from 2.5rem to 2rem */
}

.cta-text {
    flex: 1;
    min-width: 250px;
}

.cta-text h3 {
    font-size: 1.1rem; /* Reduced from 1.2rem to 1.1rem */
    margin-bottom: 4px; /* Reduced from 6px to 4px */
}

.binance-cta .cta-text h3 {
    color: #f0b90b;
}

.tradingview-cta .cta-text h3 {
    color: #22c55e;
}

.cta-text p {
    color: #94a3b8;
    font-size: 0.9rem; /* Reduced from 0.95rem to 0.9rem */
    margin: 0;
    line-height: 1.4; /* Added to reduce line height */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Reduced from 10px to 8px */
    padding: 12px 24px; /* Reduced top/bottom padding from 14px to 12px */
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem; /* Reduced from 1rem to 0.95rem */
    transition: all 0.3s ease;
}

.cta-button.binance-btn {
    background: linear-gradient(135deg, #f0b90b 0%, #d4a50a 100%);
    box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.cta-button.binance-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4);
}

.cta-button.tradingview-btn {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.cta-button.tradingview-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

.cta-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px; /* Reduced from 4px 10px */
    border-radius: 20px;
    font-size: 0.7rem; /* Reduced from 0.75rem */
}


/* SEO Features */
.seo-features {
    margin-bottom: 32px;
}

.seo-features h3 {
    color: #60a5fa;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.feature-item {
    background: rgba(30, 41, 59, 0.6);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(96, 165, 250, 0.1);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.feature-item h4 {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 8px;
}

.feature-item p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}




/* Responsive */
@media (max-width: 768px) {
    .seo-content-section {
        padding: 20px;
    }
    
    .seo-header h2 {
        font-size: 1.4rem;
    }
    
    .seo-analysis-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
    }
    
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    
    .banner-arrow {
        display: none;
    }
}


/* ============ ADD AFTER LINE 838 (after .signal-badge styles) ============ */

/* Confluence Card Specific Styles */
.confluence-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.confluence-badge {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-md);
}

.confluence-badge.strong-bullish {
    background: linear-gradient(135deg, var(--bullish) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.confluence-badge.bullish {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

.confluence-badge.neutral {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.confluence-badge.bearish {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.confluence-badge.strong-bearish {
    background: linear-gradient(135deg, var(--bearish) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.35);
}

.confluence-narrative {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-primary);
}

.confluence-meta {
    display: flex;
    gap: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-default);
}

.action-bias,
.risk-level {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.action-bias strong,
.risk-level strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: var(--space-xs);
}

.action-bias .positive,
.action-bias .bullish {
    color: var(--bullish);
    font-weight: 600;
}

.action-bias .negative,
.action-bias .bearish {
    color: var(--bearish);
    font-weight: 600;
}

.action-bias .neutral {
    color: var(--neutral);
    font-weight: 600;
}

.risk-level .positive {
    color: var(--bullish);
    font-weight: 600;
}

.risk-level .negative {
    color: var(--bearish);
    font-weight: 600;
}

.risk-level .neutral {
    color: var(--warning);
    font-weight: 600;
}


/* In coin-detail.css, ensure these navbar styles exist (copy from main.css if missing): */

.navbar {
    background: var(--nav-bg);
    border-bottom: 2px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #60a5fa;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 5px;
    list-style: none;
    align-items: center;
    margin: 0;
}

.nav-toggle {
    display: none;
    background: rgba(99, 102, 241, 0.2);
    border: 2px solid rgba(99, 102, 241, 0.4);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: var(--nav-bg);
        border-top: 2px solid var(--border-color);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    }
    
    .nav-link {
        width: 100%;
        padding: 15px 25px;
        border-radius: 0;
        text-align: left;
    }
    
    .nav-container {
        position: relative;
    }
}