/**
 * Featured Market Panel Styles
 * Namespaced with .fp- prefix to avoid conflicts with main site
 */

/* ===== VARIABLES (scoped to .featured-panel) ===== */
.featured-panel {
    /* Background */
    --fp-bg-primary: #0a0e14;
    --fp-bg-secondary: #111722;
    --fp-bg-tertiary: #1a2332;
    --fp-bg-card: #0d1219;

    /* Text */
    --fp-text-primary: #e6edf3;
    --fp-text-secondary: #8b949e;
    --fp-text-muted: #484f58;

    /* Trading Colors */
    --fp-buy-green: #00ff9d;
    --fp-buy-green-dim: #00cc7d;
    --fp-buy-green-bg: rgba(0, 255, 157, 0.08);
    --fp-sell-red: #ff006a;
    --fp-sell-red-dim: #cc0055;
    --fp-sell-red-bg: rgba(255, 0, 106, 0.08);

    /* Accent */
    --fp-accent-cyan: #00d4ff;
    --fp-accent-yellow: #ffd000;
    --fp-accent-purple: #a855f7;

    /* Borders */
    --fp-border-primary: #1e2736;
    --fp-border-secondary: #2d3748;
    --fp-border-accent: rgba(0, 255, 157, 0.3);

    /* Shadows */
    --fp-shadow-glow-green: 0 0 20px rgba(0, 255, 157, 0.15);
    --fp-shadow-glow-red: 0 0 20px rgba(255, 0, 106, 0.15);
}

/* ===== CONTAINER ===== */
.featured-panel {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--fp-bg-primary);
    color: var(--fp-text-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--fp-border-primary);
}

/* ===== HEADER BAR ===== */
.featured-panel .fp-header {
    background: linear-gradient(180deg, var(--fp-bg-secondary) 0%, var(--fp-bg-primary) 100%);
    border-bottom: 1px solid var(--fp-border-primary);
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.featured-panel .fp-market-pair {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.featured-panel .fp-market-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--fp-accent-cyan) 0%, var(--fp-accent-purple) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.featured-panel .fp-market-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fp-text-primary);
}

.featured-panel .fp-market-name small {
    display: block;
    font-size: 0.7rem;
    color: var(--fp-text-secondary);
    font-weight: 400;
    margin-top: 2px;
}

.featured-panel .fp-market-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.featured-panel .fp-price-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fp-text-primary);
    font-variant-numeric: tabular-nums;
}

.featured-panel .fp-price-change {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.featured-panel .fp-price-change.positive {
    color: var(--fp-buy-green);
    background: var(--fp-buy-green-bg);
}

.featured-panel .fp-price-change.negative {
    color: var(--fp-sell-red);
    background: var(--fp-sell-red-bg);
}

.featured-panel .fp-market-stats {
    display: flex;
    gap: 1.5rem;
}

.featured-panel .fp-stat-item {
    text-align: center;
}

.featured-panel .fp-stat-label {
    font-size: 0.65rem;
    color: var(--fp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.featured-panel .fp-stat-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fp-text-secondary);
    font-variant-numeric: tabular-nums;
}

.featured-panel .fp-countdown-badge {
    background: linear-gradient(135deg, var(--fp-bg-tertiary) 0%, var(--fp-bg-secondary) 100%);
    border: 1px solid var(--fp-border-primary);
    border-radius: 6px;
    padding: 0.5rem 1rem;
    text-align: center;
}

.featured-panel .fp-countdown-label {
    font-size: 0.6rem;
    color: var(--fp-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-panel .fp-countdown-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

/* ===== MAIN GRID ===== */
.featured-panel .fp-main-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto auto;
    min-height: 500px;
}

@media (max-width: 1024px) {
    .featured-panel .fp-main-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ORDERBOOK PANEL ===== */
.featured-panel .fp-orderbook-panel {
    background: var(--fp-bg-card);
    border-right: 1px solid var(--fp-border-primary);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 500px;
}

.featured-panel .fp-panel-header {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--fp-border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-panel .fp-panel-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-panel .fp-asset-selector {
    display: flex;
    gap: 0.25rem;
}

.featured-panel .fp-asset-btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--fp-border-primary);
    background: transparent;
    color: var(--fp-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.featured-panel .fp-asset-btn:hover {
    border-color: var(--fp-accent-cyan);
    color: var(--fp-accent-cyan);
}

.featured-panel .fp-asset-btn.active {
    background: var(--fp-accent-cyan);
    border-color: var(--fp-accent-cyan);
    color: var(--fp-bg-primary);
}

.featured-panel .fp-orderbook-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--fp-border-primary);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--fp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-panel .fp-orderbook-columns span:nth-child(2),
.featured-panel .fp-orderbook-columns span:nth-child(3) {
    text-align: right;
}

.featured-panel .fp-orderbook-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.featured-panel .fp-orderbook-asks {
    display: flex;
    flex-direction: column-reverse;
}

.featured-panel .fp-orderbook-spread {
    padding: 0.6rem 1rem;
    background: var(--fp-bg-tertiary);
    border-top: 1px solid var(--fp-border-primary);
    border-bottom: 1px solid var(--fp-border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.featured-panel .fp-spread-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fp-buy-green);
}

.featured-panel .fp-spread-price .arrow {
    margin-left: 0.25rem;
}

.featured-panel .fp-spread-info {
    font-size: 0.7rem;
    color: var(--fp-text-muted);
}

.featured-panel .fp-spread-info strong {
    color: var(--fp-accent-yellow);
}

.featured-panel .fp-orderbook-bids {
    flex: 1;
}

.featured-panel .fp-order-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 0.45rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    position: relative;
    cursor: pointer;
    transition: background 0.1s;
}

.featured-panel .fp-order-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.featured-panel .fp-order-row .depth-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    pointer-events: none;
    opacity: 0.15;
}

.featured-panel .fp-order-row.ask .depth-bar {
    background: linear-gradient(90deg, transparent, var(--fp-sell-red));
}

.featured-panel .fp-order-row.bid .depth-bar {
    background: linear-gradient(90deg, transparent, var(--fp-buy-green));
}

.featured-panel .fp-order-row .price {
    font-weight: 600;
    position: relative;
}

.featured-panel .fp-order-row.ask .price {
    color: var(--fp-sell-red);
}

.featured-panel .fp-order-row.bid .price {
    color: var(--fp-buy-green);
}

.featured-panel .fp-order-row .quantity,
.featured-panel .fp-order-row .total {
    text-align: right;
    color: var(--fp-text-secondary);
    position: relative;
}

.featured-panel .fp-orderbook-footer {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--fp-border-primary);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.featured-panel .fp-volume-bar {
    height: 6px;
    border-radius: 3px;
    background: var(--fp-bg-tertiary);
    overflow: hidden;
    grid-column: 1 / -1;
}

.featured-panel .fp-volume-bar-inner {
    height: 100%;
    display: flex;
}

.featured-panel .fp-volume-bid {
    background: var(--fp-buy-green);
    transition: width 0.3s;
}

.featured-panel .fp-volume-ask {
    background: var(--fp-sell-red);
    transition: width 0.3s;
}

.featured-panel .fp-volume-label {
    font-size: 0.65rem;
    color: var(--fp-text-muted);
}

.featured-panel .fp-volume-label.bid {
    color: var(--fp-buy-green);
}

.featured-panel .fp-volume-label.ask {
    text-align: right;
    color: var(--fp-sell-red);
}

/* ===== CHART PANEL ===== */
.featured-panel .fp-chart-panel {
    background: var(--fp-bg-card);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.featured-panel .fp-chart-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--fp-border-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-panel .fp-chart-tabs {
    display: flex;
    gap: 0.25rem;
}

.featured-panel .fp-chart-tab {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border: none;
    background: transparent;
    color: var(--fp-text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.featured-panel .fp-chart-tab:hover {
    color: var(--fp-text-primary);
    background: var(--fp-bg-tertiary);
}

.featured-panel .fp-chart-tab.active {
    background: var(--fp-bg-tertiary);
    color: var(--fp-accent-cyan);
}

.featured-panel .fp-chart-legend {
    display: flex;
    gap: 1.5rem;
}

.featured-panel .fp-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.featured-panel .fp-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.featured-panel .fp-legend-value {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.featured-panel .fp-chart-content {
    flex: 1;
    display: flex;
    gap: 1rem;
    padding: 1rem;
    min-height: 300px;
}

.featured-panel .fp-chart-container {
    flex: 1;
    position: relative;
    min-width: 0;
}

.featured-panel .fp-probability-chart {
    width: 100%;
    height: 100%;
}

/* ===== URL PREVIEW CARD ===== */
.featured-panel .fp-url-preview {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10;
    display: flex;
    gap: 0.75rem;
    background: rgba(17, 23, 34, 0.95);
    border: 1px solid var(--fp-border-primary);
    border-radius: 8px;
    padding: 0.6rem;
    max-width: 320px;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(8px);
}

.featured-panel .fp-url-preview:hover {
    border-color: var(--fp-accent-cyan);
    background: rgba(26, 35, 50, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.featured-panel .fp-url-preview-image {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    background: var(--fp-bg-primary);
    flex-shrink: 0;
}

.featured-panel .fp-url-preview-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-panel .fp-url-preview-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fp-text-primary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-panel .fp-url-preview-description {
    font-size: 0.7rem;
    color: var(--fp-text-secondary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-panel .fp-url-preview-domain {
    font-size: 0.65rem;
    color: var(--fp-text-muted);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.featured-panel .fp-url-preview-domain img {
    width: 12px;
    height: 12px;
}

/* ===== INFO/DISCOVER PANEL ===== */
.featured-panel .fp-info-panel {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 400px;
    background: var(--fp-bg-secondary);
    border-radius: 8px;
}

.featured-panel .fp-info-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--fp-text-secondary);
    gap: 1rem;
}

.featured-panel .fp-info-loading span {
    font-size: 0.9rem;
}

.featured-panel .fp-info-section {
    background: var(--fp-bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.featured-panel .fp-info-section-header {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fp-accent-cyan);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-panel .fp-info-icon {
    font-size: 1rem;
}

.featured-panel .fp-info-url-summary {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--fp-text-primary);
    margin-bottom: 0.75rem;
}

.featured-panel .fp-info-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.featured-panel .fp-info-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--fp-bg-secondary);
    color: var(--fp-text-secondary);
    text-transform: capitalize;
}

.featured-panel .fp-asset-analysis-card {
    background: var(--fp-bg-card);
    border: 1px solid var(--fp-border-primary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.featured-panel .fp-asset-analysis-card:last-child {
    margin-bottom: 0;
}

.featured-panel .fp-asset-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.featured-panel .fp-asset-identity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-panel .fp-asset-symbol {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: var(--fp-accent-cyan);
}

.featured-panel .fp-asset-name {
    color: var(--fp-text-secondary);
    font-size: 0.8rem;
}

.featured-panel .fp-relevance-score {
    text-align: center;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: var(--fp-bg-secondary);
}

.featured-panel .fp-relevance-score .score-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    display: block;
}

.featured-panel .fp-relevance-score .score-label {
    font-size: 0.65rem;
    color: var(--fp-text-muted);
    text-transform: uppercase;
}

.featured-panel .fp-relevance-score.high .score-value { color: var(--fp-buy-green); }
.featured-panel .fp-relevance-score.medium .score-value { color: var(--fp-accent-yellow); }
.featured-panel .fp-relevance-score.low .score-value { color: var(--fp-sell-red); }

.featured-panel .fp-asset-relationship {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.featured-panel .fp-relationship-badge,
.featured-panel .fp-impact-badge,
.featured-panel .fp-confidence-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.featured-panel .fp-relationship-badge {
    background: rgba(0, 212, 255, 0.15);
    color: var(--fp-accent-cyan);
}

.featured-panel .fp-impact-badge.positive { background: rgba(0, 255, 157, 0.15); color: var(--fp-buy-green); }
.featured-panel .fp-impact-badge.negative { background: rgba(255, 0, 106, 0.15); color: var(--fp-sell-red); }
.featured-panel .fp-impact-badge.neutral { background: rgba(139, 148, 158, 0.15); color: var(--fp-text-secondary); }
.featured-panel .fp-impact-badge.mixed { background: rgba(255, 208, 0, 0.15); color: var(--fp-accent-yellow); }

.featured-panel .fp-confidence-badge {
    background: rgba(139, 148, 158, 0.1);
    color: var(--fp-text-secondary);
}

.featured-panel .fp-asset-analysis-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--fp-text-primary);
    margin-bottom: 0.75rem;
}

.featured-panel .fp-asset-key-points {
    border-top: 1px solid var(--fp-border-primary);
    padding-top: 0.75rem;
}

.featured-panel .fp-key-point {
    font-size: 0.8rem;
    color: var(--fp-text-secondary);
    padding: 0.25rem 0;
    line-height: 1.4;
}

.featured-panel .fp-info-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    gap: 1rem;
    color: var(--fp-sell-red);
}

.featured-panel .fp-error-icon {
    font-size: 2rem;
}

.featured-panel .fp-info-retry-btn {
    padding: 0.5rem 1rem;
    background: var(--fp-bg-tertiary);
    border: 1px solid var(--fp-border-primary);
    border-radius: 4px;
    color: var(--fp-text-primary);
    cursor: pointer;
    font-size: 0.85rem;
}

.featured-panel .fp-info-retry-btn:hover {
    background: var(--fp-bg-secondary);
    border-color: var(--fp-accent-cyan);
}

/* ===== PROBABILITY PANEL ===== */
.featured-panel .fp-probability-panel {
    width: 280px;
    flex-shrink: 0;
    background: var(--fp-bg-tertiary);
    border: 1px solid var(--fp-border-primary);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.featured-panel .fp-probability-header {
    padding: 0.75rem 1rem;
    background: var(--fp-bg-secondary);
    border-bottom: 1px solid var(--fp-border-primary);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--fp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-panel .fp-probability-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
}

.featured-panel .fp-probability-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.featured-panel .fp-probability-bar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.featured-panel .fp-probability-asset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-panel .fp-probability-asset-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.featured-panel .fp-probability-asset-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fp-text-primary);
}

.featured-panel .fp-probability-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
}

.featured-panel .fp-probability-bar-track {
    height: 28px;
    background: var(--fp-bg-primary);
    border: 1px solid var(--fp-border-primary);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.featured-panel .fp-probability-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 3px 0 0 3px;
    transition: width 0.5s ease;
}

.featured-panel .fp-probability-bar-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fp-text-primary);
    z-index: 1;
}

.featured-panel .fp-probability-footer {
    padding: 0.5rem 1rem;
    background: var(--fp-bg-secondary);
    border-top: 1px solid var(--fp-border-primary);
    font-size: 0.6rem;
    color: var(--fp-text-muted);
    text-align: center;
}

/* ===== ALL ORDERBOOKS GRID ===== */
.featured-panel .fp-all-orderbooks-panel {
    grid-column: 1 / -1;
    background: var(--fp-bg-secondary);
    border-top: 1px solid var(--fp-border-primary);
    padding: 1rem;
    overflow-x: auto;
}

.featured-panel .fp-all-orderbooks-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--fp-border-primary);
}

.featured-panel .fp-all-orderbooks-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--fp-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-panel .fp-all-orderbooks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.featured-panel .fp-mini-orderbook {
    background: var(--fp-bg-card);
    border: 2px solid var(--fp-border-primary);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.featured-panel .fp-mini-orderbook:hover {
    border-color: var(--fp-border-secondary);
}

.featured-panel .fp-mini-orderbook.selected {
    border-color: var(--fp-accent-cyan);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.25), inset 0 0 20px rgba(0, 212, 255, 0.03);
}

.featured-panel .fp-mini-orderbook-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--fp-bg-tertiary);
    border-bottom: 1px solid var(--fp-border-primary);
}

.featured-panel .fp-mini-orderbook-asset {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.featured-panel .fp-mini-asset-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.featured-panel .fp-mini-asset-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fp-text-primary);
}

.featured-panel .fp-mini-orderbook-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fp-accent-cyan);
}

.featured-panel .fp-mini-orderbook-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.featured-panel .fp-mini-orderbook-side {
    padding: 0.5rem;
}

.featured-panel .fp-mini-orderbook-side.bids {
    border-right: 1px solid var(--fp-border-primary);
}

.featured-panel .fp-mini-side-header {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--fp-border-primary);
}

.featured-panel .fp-mini-side-header.bids {
    color: var(--fp-buy-green);
}

.featured-panel .fp-mini-side-header.asks {
    color: var(--fp-sell-red);
}

.featured-panel .fp-mini-order-row {
    display: flex;
    justify-content: space-between;
    padding: 0.2rem 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
}

.featured-panel .fp-mini-order-row .price {
    font-weight: 600;
}

.featured-panel .fp-mini-order-row.bid .price {
    color: var(--fp-buy-green);
}

.featured-panel .fp-mini-order-row.ask .price {
    color: var(--fp-sell-red);
}

.featured-panel .fp-mini-order-row .qty {
    color: var(--fp-text-secondary);
}

/* ===== LOADING & UTILITY ===== */
.featured-panel .fp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--fp-text-muted);
}

.featured-panel .fp-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--fp-border-primary);
    border-top-color: var(--fp-accent-cyan);
    border-radius: 50%;
    animation: fp-spin 0.8s linear infinite;
    margin-right: 0.75rem;
}

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

.featured-panel .fp-empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--fp-text-muted);
}

.featured-panel .fp-empty-state-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ===== SCROLLBAR ===== */
.featured-panel ::-webkit-scrollbar {
    width: 6px;
}

.featured-panel ::-webkit-scrollbar-track {
    background: var(--fp-bg-primary);
}

.featured-panel ::-webkit-scrollbar-thumb {
    background: var(--fp-border-secondary);
    border-radius: 3px;
}

.featured-panel ::-webkit-scrollbar-thumb:hover {
    background: var(--fp-text-muted);
}

/* ===== MINI ORDER ENTRY ===== */
.featured-panel .fp-mini-order-entry {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--fp-bg-primary);
    border-top: 1px solid var(--fp-border-primary);
}

.featured-panel .fp-mini-order-form {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    height: 100%;
}

.featured-panel .fp-mini-order-form.bull {
    border-right: 1px solid var(--fp-border-primary);
    padding-right: 0.5rem;
}

.featured-panel .fp-mini-order-form.bear {
    padding-left: 0.5rem;
}

.featured-panel .fp-mini-form-header {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.featured-panel .fp-mini-form-header.bull {
    color: var(--fp-buy-green);
}

.featured-panel .fp-mini-form-header.bear {
    color: var(--fp-sell-red);
}

.featured-panel .fp-mini-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.featured-panel .fp-mini-input-label {
    font-size: 0.6rem;
    color: var(--fp-text-muted);
    text-transform: uppercase;
}

.featured-panel .fp-mini-input {
    width: 100%;
    padding: 0.35rem 0.5rem;
    background: var(--fp-bg-secondary);
    border: 1px solid var(--fp-border-primary);
    border-radius: 4px;
    color: var(--fp-text-primary);
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.featured-panel .fp-mini-input:focus {
    outline: none;
    border-color: var(--fp-accent-cyan);
}

.featured-panel .fp-mini-order-btn {
    width: 100%;
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: auto;
}

.featured-panel .fp-mini-order-btn.bull {
    background: linear-gradient(135deg, var(--fp-buy-green) 0%, var(--fp-buy-green-dim) 100%);
    color: var(--fp-bg-primary);
}

.featured-panel .fp-mini-order-btn.bull:hover {
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.4);
    transform: translateY(-1px);
}

.featured-panel .fp-mini-order-btn.bear {
    background: linear-gradient(135deg, var(--fp-sell-red) 0%, var(--fp-sell-red-dim) 100%);
    color: white;
}

.featured-panel .fp-mini-order-btn.bear:hover {
    box-shadow: 0 0 15px rgba(255, 0, 106, 0.4);
    transform: translateY(-1px);
}

/* Remove spinner from number inputs */
.featured-panel .fp-mini-input[type="number"]::-webkit-inner-spin-button,
.featured-panel .fp-mini-input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.featured-panel .fp-mini-input[type="number"] {
    -moz-appearance: textfield;
}

/* ===== MARKET TRADES PANEL ===== */
.featured-panel .fp-trades-panel {
    background: var(--fp-bg-secondary);
    border-radius: 8px;
    padding: 0;
    margin-top: 1rem;
    overflow: hidden;
}

.featured-panel .fp-trades-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fp-text-primary);
    padding: 0.75rem 1rem;
    background: var(--fp-bg-tertiary);
    border-bottom: 1px solid var(--fp-border-primary);
}

.featured-panel .fp-trades-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--fp-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--fp-border-primary);
}

.featured-panel .fp-trades-content {
    max-height: 250px;
    overflow-y: auto;
}

.featured-panel .fp-trade-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    border-bottom: 1px solid var(--fp-border-primary);
    transition: background 0.15s ease;
}

.featured-panel .fp-trade-row:hover {
    background: var(--fp-bg-tertiary);
}

.featured-panel .fp-trade-row:last-child {
    border-bottom: none;
}

.featured-panel .fp-trade-price {
    font-weight: 600;
}

.featured-panel .fp-trade-amount {
    color: var(--fp-text-primary);
    text-align: right;
}

.featured-panel .fp-trade-time {
    color: var(--fp-text-secondary);
    text-align: right;
}

.featured-panel .fp-trades-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--fp-text-muted);
    gap: 0.5rem;
}

.featured-panel .fp-trades-empty-icon {
    font-size: 1.5rem;
    opacity: 0.5;
}

/* ===== COMMENTS SECTION ===== */
.featured-panel .fp-comments-section {
    background: var(--fp-bg-secondary);
    border-top: 1px solid var(--fp-border-primary);
    padding: 1.5rem;
}

.featured-panel .fp-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.featured-panel .fp-comments-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--fp-text-primary);
}

.featured-panel .fp-comments-count {
    font-size: 0.8rem;
    color: var(--fp-text-secondary);
}

/* Comment Form */
.featured-panel .fp-comment-form {
    background: var(--fp-bg-tertiary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.featured-panel .fp-comment-input-wrapper {
    display: flex;
    gap: 0.75rem;
}

.featured-panel .fp-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.featured-panel .fp-comment-input {
    flex: 1;
    background: var(--fp-bg-primary);
    border: 1px solid var(--fp-border-primary);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--fp-text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
    max-height: 200px;
}

.featured-panel .fp-comment-input:focus {
    outline: none;
    border-color: var(--fp-accent-cyan);
}

.featured-panel .fp-comment-input::placeholder {
    color: var(--fp-text-muted);
}

.featured-panel .fp-comment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.75rem;
}

.featured-panel .fp-comment-char-count {
    font-size: 0.75rem;
    color: var(--fp-text-muted);
}

.featured-panel .fp-comment-submit {
    background: var(--fp-accent-cyan);
    color: var(--fp-bg-primary);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.featured-panel .fp-comment-submit:hover:not(:disabled) {
    background: var(--fp-buy-green);
}

.featured-panel .fp-comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Login Prompt */
.featured-panel .fp-comment-login-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--fp-bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.featured-panel .fp-comment-login-prompt span {
    color: var(--fp-text-secondary);
    font-size: 0.9rem;
}

.featured-panel .fp-login-btn {
    background: var(--fp-accent-cyan);
    color: var(--fp-bg-primary);
    border: none;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.featured-panel .fp-login-btn:hover {
    background: var(--fp-buy-green);
}

/* Comments List */
.featured-panel .fp-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-panel .fp-comments-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--fp-text-muted);
    text-align: center;
    gap: 0.5rem;
}

.featured-panel .fp-comments-empty-icon {
    font-size: 2rem;
    opacity: 0.5;
}

/* Single Comment */
.featured-panel .fp-comment-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--fp-bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--fp-border-primary);
    transition: border-color 0.2s ease;
}

.featured-panel .fp-comment-item:hover {
    border-color: var(--fp-border-secondary);
}

.featured-panel .fp-comment-avatar-wrapper {
    flex-shrink: 0;
}

.featured-panel .fp-comment-content {
    flex: 1;
    min-width: 0;
}

.featured-panel .fp-comment-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.featured-panel .fp-comment-author {
    font-weight: 600;
    color: var(--fp-accent-cyan);
    font-size: 0.9rem;
}

.featured-panel .fp-comment-time {
    font-size: 0.75rem;
    color: var(--fp-text-muted);
}

.featured-panel .fp-comment-edited {
    font-size: 0.7rem;
    color: var(--fp-text-muted);
    font-style: italic;
}

.featured-panel .fp-comment-text {
    color: var(--fp-text-primary);
    font-size: 0.9rem;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.featured-panel .fp-comment-footer {
    display: flex;
    gap: 1rem;
    margin-top: 0.75rem;
}

.featured-panel .fp-comment-action {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    color: var(--fp-text-secondary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.featured-panel .fp-comment-action:hover {
    background: var(--fp-bg-primary);
    color: var(--fp-text-primary);
}

.featured-panel .fp-comment-action.liked {
    color: var(--fp-sell-red);
}

.featured-panel .fp-comment-action.delete:hover {
    color: var(--fp-sell-red);
}

/* Comment Replies */
.featured-panel .fp-comment-replies {
    margin-top: 0.75rem;
    padding-left: 1rem;
    border-left: 2px solid var(--fp-border-primary);
}

/* Load More */
.featured-panel .fp-comments-load-more {
    text-align: center;
    margin-top: 1rem;
}

.featured-panel .fp-load-more-btn {
    background: transparent;
    border: 1px solid var(--fp-border-primary);
    color: var(--fp-text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.featured-panel .fp-load-more-btn:hover {
    border-color: var(--fp-accent-cyan);
    color: var(--fp-accent-cyan);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .featured-panel .fp-comments-section {
        padding: 1rem;
    }

    .featured-panel .fp-comment-item {
        padding: 0.75rem;
    }

    .featured-panel .fp-comment-footer {
        gap: 0.5rem;
    }

    .featured-panel .fp-comment-action {
        font-size: 0.75rem;
        padding: 0.2rem 0.35rem;
    }

    .featured-panel .fp-comment-login-prompt {
        flex-direction: column;
        text-align: center;
    }
}
