/* ============================================
   DIPCATCHER RANKING SYSTEM STYLES v3
   Dual Crypto/Stock Sections with Paywall
   ============================================ */

/* Tier Colors */
:root {
    --tier-top10: #ef4444;
    --tier-top10-bg: rgba(239, 68, 68, 0.1);
    --tier-excellent: #22c55e;
    --tier-excellent-bg: rgba(34, 197, 94, 0.1);
    --tier-good: #eab308;
    --tier-good-bg: rgba(234, 179, 8, 0.1);
    --tier-neutral: #6b7280;
    --tier-neutral-bg: rgba(107, 114, 128, 0.1);
    --tier-weak: #f97316;
    --tier-weak-bg: rgba(249, 115, 22, 0.1);
    --tier-bottom: #991b1b;
    --tier-bottom-bg: rgba(153, 27, 27, 0.1);

    /* Asset Type Colors */
    --crypto-color: #f7931a;
    --crypto-bg: rgba(247, 147, 26, 0.15);
    --stock-color: #3b82f6;
    --stock-bg: rgba(59, 130, 246, 0.15);
    --etf-color: #8b5cf6;
    --etf-bg: rgba(139, 92, 246, 0.15);

    /* Volatility Colors */
    --vol-high: #ef4444;
    --vol-medium: #eab308;
    --vol-low: #22c55e;

    /* Premium Tier Colors */
    --platinum-color: #a855f7;
    --gold-color: #fbbf24;
    --silver-color: #94a3b8;
}

/* ============================================
   DUAL TOP 5 SECTIONS
   ============================================ */

.top5-dual-preview {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
}

.top5-dual-header {
    display: flex; justify-content: center;
    justify-content: center !important;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.2);
}

.top5-dual-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
}

.header-right {
    display: flex; justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.tier-membership-badge {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
}

.top5-dual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .top5-dual-container {
        grid-template-columns: 1fr;
    }
}

.top5-section {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 10px;
    padding: 1rem;
}

.crypto-section {
    border-left: 3px solid var(--crypto-color);
}

.stocks-section {
    border-left: 3px solid var(--stock-color);
}

.section-header { text-align: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    display: block; text-align: center;
}

.section-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
}

/* ============================================
   ASSET TYPE BADGE
   ============================================ */

.asset-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.4rem;
}

.asset-type-badge.crypto {
    background: var(--crypto-bg);
    color: var(--crypto-color);
    border: 1px solid var(--crypto-color);
}

.asset-type-badge.stock {
    background: var(--stock-bg);
    color: var(--stock-color);
    border: 1px solid var(--stock-color);
}

.asset-type-badge.etf {
    background: var(--etf-bg);
    color: var(--etf-color);
    border: 1px solid var(--etf-color);
}

/* ============================================
   VOLATILITY INDICATOR WITH TOOLTIP
   ============================================ */

.volatility-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    margin-left: 0.3rem;
    cursor: help;
    position: relative;
}

.volatility-indicator.high {
    background: rgba(239, 68, 68, 0.15);
}

.volatility-indicator.medium {
    background: rgba(234, 179, 8, 0.15);
}

.volatility-indicator.low {
    background: rgba(34, 197, 94, 0.15);
}

.volatility-dots {
    display: flex; justify-content: center;
    gap: 2px;
}

.volatility-dot {
    width: 4px;
    height: 10px;
    border-radius: 2px;
    background: rgba(100, 116, 139, 0.3);
    transition: background 0.2s;
}

.volatility-indicator.high .volatility-dot.active {
    background: var(--vol-high);
}

.volatility-indicator.medium .volatility-dot.active {
    background: var(--vol-medium);
}

.volatility-indicator.low .volatility-dot.active {
    background: var(--vol-low);
}

/* Tooltip */
.volatility-tooltip {
    position: absolute;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    max-width: 280px;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-primary, #e2e8f0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    animation: tooltipFade 0.2s ease;
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TOP 5 LIST ITEMS
   ============================================ */

.top5-list {
    display: flex; justify-content: center;
    flex-direction: column;
    gap: 0.4rem;
}

.top5-item {
    display: grid;
    grid-template-columns: 28px 1fr auto 45px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.4);
    position: relative;
}

.top5-item:hover {
    background: rgba(15, 23, 42, 0.7);
    transform: translateX(3px);
}

.top5-item.crypto-asset {
    border-left: 2px solid var(--crypto-color);
}

.top5-item.stock-asset {
    border-left: 2px solid var(--stock-color);
}

.top5-rank {
    width: 26px;
    height: 26px;
    display: flex; justify-content: center;
    align-items: center;
    justify-content: center;
    background: var(--tier-top10);
    color: white;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
}

.top5-symbol-container {
    display: flex; justify-content: center;
    flex-direction: column;
    min-width: 0;
}

.top5-symbol-row {
    display: flex; justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.top5-symbol {
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
    font-size: 0.85rem;
}

.top5-company {
    font-size: 0.65rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top5-score {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
}

.top5-change {
    font-size: 0.75rem;
    font-weight: 500;
    text-align: right;
}

.top5-change.positive { color: #22c55e; }
.top5-change.negative { color: #ef4444; }
.top5-change.neutral { color: var(--text-muted, #64748b); }

/* ============================================
   BLUR / PAYWALL STYLES
   ============================================ */

.blurred-content {
    position: relative;
}

.blurred-content .top5-symbol,
.blurred-content .top5-company,
.blurred-content .top5-score,
.blurred-text {
    filter: blur(5px);
    user-select: none;
}

.blurred-content:hover {
    background: rgba(239, 68, 68, 0.1);
}

.lock-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ============================================
   UPGRADE BANNER
   ============================================ */

.upgrade-banner {
    margin-top: 1rem;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.upgrade-content {
    display: flex; justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.upgrade-icon {
    font-size: 1.5rem;
}

.upgrade-text {
    flex: 1;
    display: flex; justify-content: center;
    flex-direction: column;
}

.upgrade-text strong {
    color: var(--gold-color);
    font-size: 0.85rem;
}

.upgrade-text span {
    font-size: 0.7rem;
    color: var(--text-muted, #64748b);
}

.upgrade-btn {
    background: linear-gradient(135deg, var(--gold-color), #f59e0b);
    color: #1e293b;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.upgrade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* ============================================
   UPGRADE MODAL
   ============================================ */

.upgrade-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.upgrade-modal.show {
    display: block; text-align: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 16px;
    padding: 2rem;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #e2e8f0);
}

.modal-content > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .pricing-tiers {
        grid-template-columns: 1fr;
    }
}

.pricing-tier {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.2s;
}

.pricing-tier:hover {
    transform: translateY(-5px);
}

.pricing-tier.silver {
    border-color: var(--silver-color);
}

.pricing-tier.gold {
    border-color: var(--gold-color);
}

.pricing-tier.platinum {
    border-color: var(--platinum-color);
}

.pricing-tier.popular {
    border-width: 2px;
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-color);
    color: #1e293b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
}

.tier-header {
    margin-bottom: 1rem;
}

.tier-icon {
    font-size: 2rem;
    display: block; text-align: center;
    margin-bottom: 0.5rem;
}

.tier-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary, #e2e8f0);
}

.tier-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary, #e2e8f0);
    margin-bottom: 1rem;
}

.tier-price span {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: left;
}

.tier-features li {
    padding: 0.4rem 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(100, 116, 139, 0.1);
}

.tier-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.silver .tier-btn {
    background: var(--silver-color);
    color: #1e293b;
}

.gold .tier-btn {
    background: linear-gradient(135deg, var(--gold-color), #f59e0b);
    color: #1e293b;
}

.platinum .tier-btn {
    background: linear-gradient(135deg, var(--platinum-color), #7c3aed);
    color: white;
}

.tier-btn:hover {
    transform: scale(1.02);
}

/* ============================================
   VIEW ALL LINK
   ============================================ */

.view-all-link {
    display: block; text-align: center;
    text-align: center;
    margin-top: 1rem;
    padding: 0.6rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--tier-top10);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.view-all-link:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

/* ============================================
   LEADERBOARD STYLES
   ============================================ */

.ranking-overview {
    background: var(--card-bg, rgba(30, 41, 59, 0.95));
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ranking-overview-header {
    display: flex; justify-content: center;
    justify-content: center !important;
    align-items: center;
    margin-bottom: 1rem;
}

.ranking-overview-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary, #e2e8f0);
}

.ranking-timestamp {
    font-size: 0.75rem;
    color: var(--text-muted, #64748b);
}

.leaderboard {
    display: flex; justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 40px 1fr auto 60px;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    gap: 0.75rem;
    position: relative;
}

.leaderboard-item:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateX(4px);
}

.leaderboard-item.rank-1 {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.2), transparent);
    border-left: 3px solid var(--tier-top10);
}

.leaderboard-item.rank-2 {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.15), transparent);
    border-left: 3px solid var(--tier-top10);
}

.leaderboard-item.rank-3 {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.1), transparent);
    border-left: 3px solid var(--tier-top10);
}

.rank-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.rank-number.gold { color: #fbbf24; }
.rank-number.silver { color: #94a3b8; }
.rank-number.bronze { color: #cd7f32; }

.leaderboard-symbol {
    display: flex; justify-content: center;
    flex-direction: column;
    min-width: 0;
}

.leaderboard-symbol-row {
    display: flex; justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.leaderboard-symbol-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.leaderboard-company {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.composite-score {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: right;
}

.rank-change {
    font-size: 0.85rem;
    font-weight: 500;
    display: flex; justify-content: center;
    align-items: center;
    justify-content: center;
}

.rank-change.positive { color: #22c55e; }
.rank-change.negative { color: #ef4444; }
.rank-change.neutral { color: var(--text-muted); }

/* ============================================
   TIER DISTRIBUTION
   ============================================ */

.tier-distribution {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.tier-card {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.tier-card:hover {
    transform: translateY(-2px);
}

.tier-card-header {
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}

.tier-card-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tier-card-action {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ============================================
   MOVERS SECTION
   ============================================ */

.movers-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .movers-section {
        grid-template-columns: 1fr;
    }
}

.movers-column h4 {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.movers-list {
    display: flex; justify-content: center;
    flex-direction: column;
    gap: 0.25rem;
}

.mover-item {
    display: flex; justify-content: center;
    justify-content: center !important;
    align-items: center;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.3);
    border-radius: 4px;
    font-size: 0.8rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}

.mover-item:hover {
    background: rgba(15, 23, 42, 0.5);
}

/* ============================================
   NO DATA MESSAGE
   ============================================ */

.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 1rem;
    font-size: 0.8rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .leaderboard-item {
        grid-template-columns: 30px 1fr 50px 40px;
    }

    .top5-item {
        grid-template-columns: 26px 1fr auto 40px;
    }

    .upgrade-content {
        flex-direction: column;
        text-align: center;
    }
}
/* ============================================
   RANKINGS SECTION - PROFESSIONAL REDESIGN
   ============================================ */

.rankings-section {
    padding: 4rem 0;
    background: linear-gradient(180deg,
        rgba(3, 7, 18, 1) 0%,
        rgba(10, 15, 28, 1) 50%,
        rgba(3, 7, 18, 1) 100%
    );
    position: relative;
    overflow: hidden;
}

.rankings-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 255, 136, 0.3) 50%,
        transparent 100%
    );
}

.rankings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.rankings-header { text-align: center; flex-direction: column; align-items: center !important;
    display: flex; justify-content: center;
    justify-content: center !important;
    align-items: center !important;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.rankings-title-group {
    flex: 1;
    min-width: 280px;
}

.rankings-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4);
    }
    50% {
        opacity: 0.7;
        box-shadow: 0 0 0 6px rgba(0, 255, 136, 0);
    }
}

.rankings-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.rankings-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    margin: 0;
    max-width: 500px;
}

.rankings-legend {
    display: flex; justify-content: center;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(100, 116, 139, 0.2);
}

.legend-item {
    display: flex; justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #94a3b8;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.crypto {
    background: linear-gradient(135deg, #f7931a, #f59e0b);
}

.legend-dot.stock {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
}

/* ============================================
   UPDATED DUAL TOP 5 PREVIEW
   ============================================ */

.top5-dual-preview {
    background: transparent;
    border: none;
    padding: 0;
}

.top5-dual-header {
    display: none; /* Hide internal header since we have section header */
}

.top5-dual-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .top5-dual-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .rankings-header { text-align: center; flex-direction: column; align-items: center !important;
        flex-direction: column;
    }

    .rankings-legend {
        width: 100%;
        justify-content: center;
    }

    .rankings-title {
        font-size: 1.5rem;
    }
}

.top5-section {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.8) 0%, rgba(10, 15, 28, 0.9) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(100, 116, 139, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.top5-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
}

.crypto-section::before {
    background: linear-gradient(90deg, #f7931a, #f59e0b, transparent);
}

.stocks-section::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa, transparent);
}

.top5-section:hover {
    border-color: rgba(100, 116, 139, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.section-header { text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(100, 116, 139, 0.15);
}

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    display: flex; justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.crypto-section .section-title {
    color: #f7931a;
}

.stocks-section .section-title {
    color: #3b82f6;
}

.section-subtitle {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 0.25rem;
    display: block; text-align: center;
}

/* ============================================
   REFINED TOP 5 LIST ITEMS
   ============================================ */

.top5-list {
    display: flex; justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
}

.top5-item {
    display: grid;
    grid-template-columns: 32px 1fr auto 50px;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid transparent;
    position: relative;
}

.top5-item:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(100, 116, 139, 0.3);
    transform: translateX(4px);
}

.top5-item.crypto-asset {
    border-left: 3px solid #f7931a;
}

.top5-item.stock-asset {
    border-left: 3px solid #3b82f6;
}

.top5-rank {
    width: 32px;
    height: 32px;
    display: flex; justify-content: center;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.crypto-section .top5-rank {
    background: linear-gradient(135deg, #f7931a, #ea580c);
}

.stocks-section .top5-rank {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.top5-symbol-container {
    display: flex; justify-content: center;
    flex-direction: column;
    min-width: 0;
}

.top5-symbol-row {
    display: flex; justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.top5-symbol {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.9rem;
}

.top5-company {
    font-size: 0.7rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top5-score {
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
    text-align: right;
}

.top5-change {
    font-size: 0.8rem;
    font-weight: 600;
    text-align: right;
}

.top5-change.positive { color: #22c55e; }
.top5-change.negative { color: #ef4444; }
.top5-change.neutral { color: #64748b; }

/* ============================================
   ASSET TYPE BADGES - REFINED
   ============================================ */

.asset-type-badge {
    display: none; /* Hide in dual view since sections are separated */
}

/* ============================================
   VOLATILITY INDICATOR - REFINED
   ============================================ */

.volatility-indicator {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    cursor: help;
}

.volatility-dots {
    display: flex; justify-content: center;
    gap: 2px;
}

.volatility-dot {
    width: 4px;
    height: 12px;
    border-radius: 2px;
    background: rgba(100, 116, 139, 0.2);
    transition: all 0.2s;
}

.volatility-indicator.high .volatility-dot.active {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.volatility-indicator.medium .volatility-dot.active {
    background: #eab308;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.5);
}

.volatility-indicator.low .volatility-dot.active {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

/* ============================================
   UPGRADE BANNER - REFINED
   ============================================ */

.upgrade-banner {
    margin-top: 1.5rem;
    background: linear-gradient(135deg,
        rgba(251, 191, 36, 0.08) 0%,
        rgba(168, 85, 247, 0.08) 100%
    );
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    padding: 1rem 1.5rem;
}

.upgrade-content {
    display: flex; justify-content: center;
    align-items: center;
    gap: 1rem;
}

.upgrade-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.upgrade-text {
    flex: 1;
}

.upgrade-text strong {
    color: #fbbf24;
    font-size: 0.95rem;
    display: block; text-align: center;
    margin-bottom: 0.25rem;
}

.upgrade-text span {
    font-size: 0.8rem;
    color: #94a3b8;
}

.upgrade-btn {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.upgrade-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.4);
}

/* ============================================
   VIEW ALL LINK - REFINED
   ============================================ */

.view-all-link {
    display: flex; justify-content: center;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(0, 212, 255, 0.05) 100%);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 12px;
    color: #00ff88;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-link:hover {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

/* ============================================
   BLUR / PAYWALL - REFINED
   ============================================ */

.blurred-content {
    position: relative;
}

.blurred-content .top5-symbol,
.blurred-content .top5-company,
.blurred-content .top5-score {
    filter: blur(6px);
    user-select: none;
}

.blurred-content:hover {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.2);
}

.lock-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: 0.6;
}

/* ============================================
   TOOLTIP - REFINED
   ============================================ */

.volatility-tooltip {
    position: absolute;
    z-index: 10000;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    max-width: 300px;
    font-size: 0.75rem;
    line-height: 1.5;
    color: #e2e8f0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    animation: tooltipFade 0.2s ease;
}

@keyframes tooltipFade {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   RESPONSIVE REFINEMENTS
   ============================================ */

@media (max-width: 600px) {
    .rankings-section {
        padding: 3rem 0;
    }

    .top5-section {
        padding: 1rem;
    }

    .top5-item {
        grid-template-columns: 28px 1fr auto 40px;
        gap: 0.5rem;
        padding: 0.6rem;
    }

    .top5-rank {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .top5-symbol {
        font-size: 0.8rem;
    }

    .top5-score {
        font-size: 0.85rem;
    }

    .upgrade-content {
        flex-direction: column;
        text-align: center;
    }

    .upgrade-btn {
        width: 100%;
    }
}

/* ============================================
   INSTRUMENT RANK HERO STYLES
   ============================================ */

.instrument-rank-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    gap: 24px;
    flex-wrap: wrap;
}

.rank-hero-number {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.rank-hero-label {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
}

.rank-hero-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rank-hero-tier {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rank-hero-action {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.rank-hero-stats {
    display: flex;
    gap: 24px;
}

.rank-stat {
    font-size: 14px;
    color: #475569;
}

.rank-stat-label {
    color: #94a3b8;
}

.rank-stat .positive {
    color: #10b981;
}

.rank-stat .negative {
    color: #ef4444;
}

@media (max-width: 768px) {
    .instrument-rank-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .rank-hero-stats {
        flex-direction: column;
        gap: 8px;
    }
}
