* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    min-height: 100vh;
    padding: 15px;
    padding-top: 50px; /* Make room for fixed ticker */
    color: #e0e0e0;
}

/* News Ticker Banner */
.news-ticker-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 38px;
    background: linear-gradient(135deg, rgba(0, 150, 150, 0.8) 0%, rgba(0, 120, 120, 0.8) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    overflow: hidden;
}

.ticker-label {
    background: rgba(0, 0, 0, 0.3);
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #00ffff;
    font-size: 0.85rem;
    white-space: nowrap;
    border-right: 2px solid rgba(0, 255, 255, 0.2);
}

.ticker-content-wrapper {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
}

.ticker-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
    animation: scroll-ticker 30s linear infinite;
    white-space: nowrap;
}

.ticker-content:hover {
    animation-play-state: paused;
}

#tickerText {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.85rem;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    color: white;
    margin-bottom: 12px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #00ffff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

.hero-description {
    margin: 8px auto 10px;
    max-width: 900px;
}

.hero-text {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text strong {
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.hero-features {
    font-size: 0.75rem;
    color: #00ff88;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-top: 6px;
    padding: 6px 12px;
    background: rgba(0, 255, 136, 0.1);
    border-radius: 18px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: inline-block;
}

.market-status {
    font-size: 0.8rem;
    margin-top: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.market-timer {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #00ffff;
}

.timer-value {
    font-weight: 700;
    color: #00ff88;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.market-status-dot {
    font-size: 1rem;
    line-height: 1;
}

.market-status.open .market-status-dot {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.market-status.closed .market-status-dot {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

.last-update {
    font-size: 0.75rem;
    opacity: 0.8;
    margin-top: 6px;
}

.header-controls {
    position: absolute;
    top: 8px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.settings-button, .mute-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 12px;
    border-radius: 18px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.settings-button:hover, .mute-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.settings-button {
    border-color: rgba(0, 255, 255, 0.3);
}

.settings-button:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.mute-button.muted {
    background: rgba(255, 68, 68, 0.3);
    border-color: rgba(255, 68, 68, 0.5);
}

.partner-banner {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow:
        0 0 15px rgba(0, 255, 255, 0.3),
        0 0 30px rgba(0, 255, 255, 0.1),
        inset 0 0 15px rgba(0, 255, 255, 0.05);
}

.compact-banner {
    padding: 6px 10px;
    margin-bottom: 6px;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-width: 1px;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.2),
        0 0 20px rgba(0, 255, 255, 0.05),
        inset 0 0 10px rgba(0, 255, 255, 0.03);
}

.partner-label {
    color: #00ffff;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.compact-banner .partner-label {
    font-size: 0.65rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.6);
    white-space: nowrap;
}

.partner-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    flex: 1;
}

.partner-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    border: 2px solid #00ffff;
    border-radius: 8px;
    color: #00ffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.compact-banner .partner-link {
    padding: 4px 8px;
    font-size: 0.6rem;
    gap: 4px;
    border-width: 1px;
    box-shadow:
        0 0 8px rgba(0, 255, 255, 0.2),
        inset 0 0 8px rgba(0, 255, 255, 0.03);
}

.partner-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.partner-link:hover::before {
    left: 100%;
}

.partner-link:hover {
    border-color: #ff00ff;
    color: #ff00ff;
    transform: translateY(-2px);
    box-shadow:
        0 0 20px rgba(255, 0, 255, 0.5),
        0 5px 20px rgba(255, 0, 255, 0.3),
        inset 0 0 15px rgba(255, 0, 255, 0.1);
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.partner-icon {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px currentColor);
}

.compact-banner .partner-icon {
    font-size: 0.8rem;
}

.partner-link.kraken:hover {
    border-color: #5741d9;
    color: #a78bfa;
    box-shadow:
        0 0 20px rgba(87, 65, 217, 0.5),
        0 5px 20px rgba(87, 65, 217, 0.3),
        inset 0 0 15px rgba(167, 139, 250, 0.1);
}

.partner-link.coinbase:hover {
    border-color: #0052ff;
    color: #5b8def;
    box-shadow:
        0 0 20px rgba(0, 82, 255, 0.5),
        0 5px 20px rgba(0, 82, 255, 0.3),
        inset 0 0 15px rgba(91, 141, 239, 0.1);
}

.partner-link.incogni:hover {
    border-color: #ff6600;
    color: #ff9944;
    box-shadow:
        0 0 20px rgba(255, 102, 0, 0.5),
        0 5px 20px rgba(255, 102, 0, 0.3),
        inset 0 0 15px rgba(255, 153, 68, 0.1);
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.8);
}

.partner-link.vpn-tier:hover {
    border-color: #00ff88;
    color: #00ff88;
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.5),
        0 5px 20px rgba(0, 255, 136, 0.3),
        inset 0 0 15px rgba(0, 255, 136, 0.1);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
}

.partner-link.vpn-speed:hover {
    border-color: #ffff00;
    color: #ffff00;
    box-shadow:
        0 0 20px rgba(255, 255, 0, 0.5),
        0 5px 20px rgba(255, 255, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 0, 0.1);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.8);
}

.projects-banner {
    border-color: #ff00ff;
    box-shadow:
        0 0 15px rgba(255, 0, 255, 0.3),
        0 0 30px rgba(255, 0, 255, 0.1),
        inset 0 0 15px rgba(255, 0, 255, 0.05);
}

.projects-banner.compact-banner {
    box-shadow:
        0 0 10px rgba(255, 0, 255, 0.2),
        0 0 20px rgba(255, 0, 255, 0.05),
        inset 0 0 10px rgba(255, 0, 255, 0.03);
}

.projects-banner .partner-label {
    color: #ff00ff;
    text-shadow: 0 0 10px rgba(255, 0, 255, 0.8);
}

.projects-banner.compact-banner .partner-label {
    text-shadow: 0 0 5px rgba(255, 0, 255, 0.6);
}

.metrics-dashboard {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1) 0%, rgba(0, 150, 150, 0.05) 100%);
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.4),
        0 0 50px rgba(0, 255, 255, 0.15),
        inset 0 0 25px rgba(0, 255, 255, 0.08);
}

.dashboard-title {
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    text-align: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.metric-card {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 20, 40, 0.4) 100%);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(0, 255, 255, 0.05);
}

.metric-card:hover {
    border-color: rgba(0, 255, 255, 0.8);
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
}

.metric-label {
    color: #00ffff;
    font-size: 0.65rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    text-shadow: 0 0 8px rgba(0, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    justify-content: center;
}

/* Info Icon & Tooltip */
.info-icon {
    font-size: 0.7rem;
    cursor: help;
    color: #00ffff;
    opacity: 0.6;
    transition: all 0.3s ease;
    position: relative;
}

.info-icon:hover {
    opacity: 1;
    transform: scale(1.2);
}

.info-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.95);
    color: #00ffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: normal;
    width: 280px;
    text-align: left;
    line-height: 1.5;
    border: 2px solid rgba(0, 255, 255, 0.5);
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    text-transform: none;
    letter-spacing: normal;
}

.info-icon::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: rgba(0, 255, 255, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.info-icon:hover::before,
.info-icon:hover::after {
    opacity: 1;
    visibility: visible;
}

.metric-value {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 3px;
    text-shadow:
        0 0 5px rgba(0, 255, 255, 0.3),
        0 0 10px rgba(0, 255, 255, 0.15);
    line-height: 1.1;
}

.metric-subtitle {
    color: #b0b0b0;
    font-size: 0.65rem;
    margin-top: 2px;
    font-weight: 500;
}

.fear-greed-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right,
        #ff4444 0%,
        #ff8800 25%,
        #ffdd00 50%,
        #88ff00 75%,
        #00ff88 100%);
    border-radius: 4px;
    margin-top: 6px;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.fear-greed-indicator {
    position: absolute;
    top: -5px;
    width: 5px;
    height: 18px;
    background: white;
    border-radius: 2.5px;
    box-shadow:
        0 0 15px rgba(255, 255, 255, 1),
        0 0 25px rgba(0, 255, 255, 0.6);
    transition: left 0.5s ease;
    border: 1.5px solid #00ffff;
}

.portfolio-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #ff00ff;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow:
        0 0 20px rgba(255, 0, 255, 0.3),
        0 0 40px rgba(255, 0, 255, 0.1),
        inset 0 0 20px rgba(255, 0, 255, 0.05);
}

.portfolio-title {
    color: #ff00ff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    text-align: center;
}

.portfolio-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
}

.portfolio-stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 255, 0.3);
    text-align: center;
}

.stat-label {
    color: #a0a0a0;
    font-size: 0.6rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    color: #00ffff;
    font-size: 1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.stat-value.profit-positive {
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
}

.stat-value.profit-negative {
    color: #ff6b6b;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

/* Cloud Sync Styles */
.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.cloud-sync-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 4px 10px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 0.65rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.cloud-sync-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: scale(1.05);
}

.cloud-sync-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.cloud-option-btn {
    background: rgba(0, 255, 255, 0.05);
    border: 2px solid rgba(0, 255, 255, 0.3);
    padding: 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    color: #e0e0e0;
}

.cloud-option-btn:hover {
    background: rgba(0, 255, 255, 0.15);
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

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

.option-text {
    flex: 1;
}

.option-text strong {
    display: block;
    color: #00ffff;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.option-text small {
    color: #a0a0a0;
    font-size: 0.9rem;
}

.token-display {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.token-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.token-input:focus {
    outline: none;
    border-color: rgba(0, 255, 255, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.btn-copy {
    background: rgba(0, 255, 136, 0.2);
    border: 2px solid rgba(0, 255, 136, 0.4);
    color: #00ff88;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-copy:hover {
    background: rgba(0, 255, 136, 0.3);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

.token-warning {
    background: rgba(255, 165, 0, 0.1);
    border: 2px solid rgba(255, 165, 0, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.token-warning p {
    color: #ffa500;
    font-weight: 700;
    margin-bottom: 10px;
}

.token-warning ul {
    color: #e0e0e0;
    margin-left: 20px;
    line-height: 1.8;
}

.token-warning li {
    margin-bottom: 8px;
}

.warning-text {
    color: #ffa500;
    font-weight: 600;
}

.token-form .form-group {
    margin-bottom: 20px;
}

.news-ticker {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.news-ticker .ticker-label {
    color: #00ff88;
    font-weight: 700;
    font-size: 0.65rem;
    white-space: nowrap;
    padding-left: 6px;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.ticker-scroll {
    display: flex;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.ticker-scroll:hover {
    animation-play-state: paused;
}

.ticker-item {
    display: inline-block;
    padding: 0 15px;
    color: #e0e0e0;
    font-size: 0.65rem;
}

.ticker-item.positive {
    color: #00ff88;
}

.ticker-item.negative {
    color: #ff6b6b;
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%);
    }
}

.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.crypto-card {
    background: #1e1e2e;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.crypto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

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

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

.crypto-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e0e0;
}

.crypto-symbol {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: #00ffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    border: 1.5px solid #00ffff;
    box-shadow:
        0 0 10px rgba(0, 255, 255, 0.5),
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 10px rgba(0, 255, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.crypto-symbol::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #00ffff);
    border-radius: 4px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.crypto-symbol:hover {
    color: #ff00ff;
    border-color: #ff00ff;
    box-shadow:
        0 0 15px rgba(255, 0, 255, 0.6),
        0 0 30px rgba(255, 0, 255, 0.4),
        inset 0 0 15px rgba(255, 0, 255, 0.2);
    text-shadow: 0 0 8px rgba(255, 0, 255, 1);
    transform: scale(1.05);
}

.crypto-symbol:hover::before {
    opacity: 0.3;
}

.trend-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.trend-indicator.trend-up {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.trend-indicator.trend-down {
    background: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
}

.trend-indicator.trend-neutral {
    background: rgba(128, 128, 128, 0.15);
    color: #888;
}

.trend-arrow {
    font-size: 0.9rem;
}

.crypto-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 6px;
}

.chart-container {
    width: 100%;
    height: 30px;
    margin: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-preview {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.chart-preview:hover {
    transform: scale(1.02);
    opacity: 0.8;
}

.chart-click-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.6rem;
    color: #00ffff;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.chart-preview:hover .chart-click-hint {
    opacity: 0.7;
}

.sparkline {
    width: 100%;
    height: 30px;
    display: block;
}

.chart-placeholder {
    font-size: 0.7rem;
    color: #666;
    text-align: center;
    font-style: italic;
}

.crypto-change {
    display: flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 5px;
    margin-bottom: 6px;
}

.crypto-change.positive {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}

.crypto-change.negative {
    background: rgba(255, 68, 68, 0.15);
    color: #ff6b6b;
}

.change-icon {
    margin-right: 3px;
    font-size: 0.7rem;
}

.crypto-info {
    font-size: 0.7rem;
    color: #a0a0a0;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Holdings Section */
.holdings-section {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.holdings-add-btn, .holdings-edit-btn, .holdings-premium-btn {
    width: 100%;
    padding: 5px;
    background: linear-gradient(135deg, #00ffff 0%, #00cc99 100%);
    border: none;
    border-radius: 4px;
    color: #0a0a0a;
    font-weight: 700;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.holdings-premium-btn {
    background: linear-gradient(135deg, #ff00ff 0%, #cc00cc 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.premium-icon {
    font-size: 0.8rem;
}

.holdings-add-btn:hover, .holdings-edit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.5);
}

.holdings-premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.6);
}

.holdings-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.holdings-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.holdings-amount {
    color: #00ffff;
    font-weight: 600;
    font-size: 0.65rem;
}

.holdings-value {
    color: #a0a0a0;
    font-size: 0.6rem;
}

.holdings-profit {
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px;
    border-radius: 4px;
    text-align: center;
}

.profit-positive {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.15);
}

.profit-negative {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.15);
}

.holdings-edit-btn {
    background: linear-gradient(135deg, #ff00ff 0%, #cc00cc 100%);
    font-size: 0.6rem;
    padding: 4px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    border: 2px solid #00ffff;
    border-radius: 15px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.4),
        0 0 60px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Chart Modal Specific Styles */
.chart-modal-content {
    max-width: 800px;
    width: 95%;
    padding: 25px;
}

.chart-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
    padding-bottom: 10px;
}

.chart-tab {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.chart-tab:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.5);
}

.chart-tab.active {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    border-bottom: 2px solid transparent;
}

.large-chart-container {
    width: 100%;
    height: 300px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.chart-loading, .chart-error {
    color: #888;
    font-size: 1rem;
    text-align: center;
}

.chart-error {
    color: #ff6b6b;
}

.large-chart-container svg {
    width: 100%;
    height: 100%;
}

/* Sentiment Card Styles */
.general-sentiment-card {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.15) 0%, rgba(0, 200, 200, 0.08) 100%);
    border: 3px solid rgba(0, 255, 255, 0.6);
    box-shadow:
        0 0 30px rgba(0, 255, 255, 0.5),
        0 0 60px rgba(0, 255, 255, 0.2),
        inset 0 0 30px rgba(0, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.general-sentiment-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.9);
    box-shadow:
        0 0 40px rgba(0, 255, 255, 0.7),
        0 0 80px rgba(0, 255, 255, 0.3),
        inset 0 0 40px rgba(0, 255, 255, 0.15);
}

.sentiment-value {
    font-size: 1.6rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sentiment-value.very-bullish {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 1);
}

.sentiment-value.bullish {
    color: #44ff99;
    text-shadow: 0 0 15px rgba(68, 255, 153, 0.8);
}

.sentiment-value.slightly-bullish {
    color: #88ffaa;
    text-shadow: 0 0 10px rgba(136, 255, 170, 0.6);
}

.sentiment-value.neutral {
    color: #ffff00;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.6);
}

.sentiment-value.slightly-bearish {
    color: #ffaa88;
    text-shadow: 0 0 10px rgba(255, 170, 136, 0.6);
}

.sentiment-value.bearish {
    color: #ff6b6b;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
}

.sentiment-value.very-bearish {
    color: #ff4444;
    text-shadow: 0 0 20px rgba(255, 68, 68, 1);
}

.sentiment-score {
    width: 100%;
    height: 12px;
    background: linear-gradient(to right,
        #ff4444 0%,
        #ff6b6b 16%,
        #ffaa88 33%,
        #ffff00 50%,
        #88ffaa 66%,
        #44ff99 83%,
        #00ff88 100%);
    border-radius: 6px;
    margin-top: 10px;
    position: relative;
    overflow: visible;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.sentiment-score-fill {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 8px;
    height: 28px;
    background: white;
    border-radius: 4px;
    box-shadow:
        0 0 20px rgba(255, 255, 255, 1),
        0 0 30px rgba(0, 255, 255, 0.8);
    transition: left 0.5s ease;
    border: 2px solid #00ffff;
}

/* Sentiment Modal Styles */
.sentiment-modal-content {
    max-width: 700px;
    width: 95%;
}

.sentiment-overall {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
}

.sentiment-overall-label {
    color: #00ffff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sentiment-overall-value {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.sentiment-overall-verdict {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.sentiment-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.sentiment-breakdown-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.sentiment-breakdown-item:hover {
    border-color: rgba(0, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.breakdown-indicator-name {
    color: #00ffff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breakdown-score {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.breakdown-score.positive {
    color: #00ff88;
}

.breakdown-score.negative {
    color: #ff6b6b;
}

.breakdown-score.neutral {
    color: #ffff00;
}

.breakdown-interpretation {
    color: #a0a0a0;
    font-size: 0.75rem;
    font-style: italic;
}

.sentiment-legend {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
}

.sentiment-legend h3 {
    color: #00ffff;
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.sentiment-legend p {
    color: #ccc;
    font-size: 0.85rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.sentiment-legend p strong {
    color: #00ff88;
    font-weight: 700;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: #ff00ff;
    text-shadow: 0 0 15px rgba(255, 0, 255, 0.8);
    transform: rotate(90deg);
}

.modal-title {
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
}

.settings-subtitle {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 25px;
    text-align: center;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.setting-group {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.setting-group:hover {
    border-color: rgba(0, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #00ffff;
    flex-shrink: 0;
}

.checkbox-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.checkbox-text strong {
    color: #00ffff;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.checkbox-text small {
    color: #a0a0a0;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* Volume Control Styles */
.volume-control-group {
    border: 2px solid rgba(0, 255, 136, 0.3) !important;
    background: rgba(0, 255, 136, 0.05) !important;
}

.volume-control-group:hover {
    border-color: rgba(0, 255, 136, 0.5) !important;
    background: rgba(0, 255, 136, 0.08) !important;
}

.volume-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    width: 100%;
}

.volume-label strong {
    color: #00ff88;
    font-size: 1rem;
    text-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
}

.volume-value {
    color: #00ffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.volume-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(to right,
        rgba(255, 107, 107, 0.3) 0%,
        rgba(255, 200, 100, 0.3) 33%,
        rgba(255, 255, 100, 0.3) 66%,
        rgba(0, 255, 136, 0.3) 100%);
    outline: none;
    opacity: 0.9;
    transition: opacity 0.3s;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    margin-bottom: 10px;
}

.volume-slider:hover {
    opacity: 1;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #00ff88);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    border: 2px solid #fff;
}

.volume-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ffff, #00ff88);
    cursor: pointer;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.6);
    border: 2px solid #fff;
}

.volume-slider::-webkit-slider-thumb:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.9);
    transform: scale(1.1);
}

.volume-slider::-moz-range-thumb:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.9);
    transform: scale(1.1);
}

.volume-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

.volume-labels span {
    text-align: center;
    flex: 1;
}

.modal-crypto-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.modal-crypto-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.modal-current-price {
    color: #00ff88;
    font-weight: 600;
}

.holdings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #a0a0a0;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    padding: 12px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-save, .btn-delete, .btn-cancel {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save {
    background: linear-gradient(135deg, #00ff88 0%, #00cc66 100%);
    color: #0a0a0a;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

.btn-delete {
    background: linear-gradient(135deg, #ff6b6b 0%, #cc5555 100%);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.5);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.loading {
    text-align: center;
    color: white;
    padding: 60px 20px;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid white;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.error {
    background: rgba(255, 68, 68, 0.2);
    color: #ff6b6b;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px 0;
    border: 1px solid rgba(255, 68, 68, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    /* News Ticker Mobile Improvements */
    .news-ticker-banner {
        height: 50px;
        padding: 5px 0;
    }

    .ticker-label {
        padding: 0 10px;
        font-size: 0.75rem;
        min-width: 80px;
    }

    #tickerText {
        font-size: 0.75rem;
        line-height: 1.3;
    }

    .ticker-content {
        padding: 0 8px;
    }

    /* Header Mobile Improvements */
    h1 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    header {
        padding: 50px 12px 12px 12px;
    }

    .header-controls {
        position: fixed;
        top: 55px;
        right: 10px;
        gap: 10px;
        flex-direction: row;
        align-items: center;
        z-index: 10000;
    }

    .settings-button, .mute-button {
        padding: 12px 16px;
        font-size: 0.9rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
    }

    .settings-button span:last-child,
    .mute-button span:last-child {
        display: none;
    }

    .settings-button span:first-child,
    .mute-button span:first-child {
        font-size: 1.3rem;
    }

    .partner-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px;
    }

    .partner-links {
        width: 100%;
        flex-direction: column;
    }

    .partner-link {
        width: 100%;
        justify-content: center;
    }

    .news-ticker {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ticker-label {
        padding-left: 0;
    }

    .crypto-grid {
        grid-template-columns: 1fr;
    }

    .crypto-card {
        padding: 20px;
    }

    .crypto-price {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        padding-top: 60px;
    }

    .news-ticker-banner {
        height: 55px;
    }

    h1 {
        font-size: 1.4rem;
    }

    header {
        padding: 55px 12px 15px 12px;
        margin-bottom: 15px;
    }

    .header-controls {
        top: 60px;
        right: 8px;
        gap: 8px;
    }

    .settings-button, .mute-button {
        padding: 10px 14px;
        min-width: 42px;
        min-height: 42px;
    }

    .crypto-grid {
        gap: 12px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ============================================
   LATEST BLOG SECTION (AUTO-GENERATED AT 9 AM & 5 PM PST)
   ============================================ */

.latest-blog-section {
    background: rgba(20, 20, 40, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow:
        0 0 20px rgba(0, 255, 255, 0.2),
        inset 0 0 20px rgba(0, 255, 255, 0.05);
}

.latest-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.latest-blog-title {
    color: #00ffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.latest-blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.latest-blog-badge {
    padding: 8px 16px;
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid rgba(0, 255, 136, 0.5);
    border-radius: 20px;
    color: #00ff88;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.latest-blog-badge.evening {
    background: rgba(255, 136, 0, 0.2);
    border-color: rgba(255, 136, 0, 0.5);
    color: #ff8800;
}

.latest-blog-date {
    color: #888;
    font-size: 0.95rem;
}

/* Latest Blog Content */
.latest-blog-content {
    color: #ccc;
    line-height: 1.8;
    font-size: 1rem;
}

.latest-blog-content h2 {
    color: #00ffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 25px 0 15px 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.latest-blog-content h3 {
    color: #00ff88;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 20px 0 12px 0;
}

.latest-blog-content p {
    margin: 0 0 15px 0;
}

.latest-blog-content strong {
    color: #fff;
    font-weight: 600;
}

.latest-blog-content em {
    color: #00ffff;
    font-style: italic;
}

/* Markdown Formatting for Blog Content */
.latest-blog-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.latest-blog-content li {
    margin: 8px 0;
    color: #ccc;
}

.latest-blog-content code {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    color: #00ffff;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* Responsive Latest Blog */
@media (max-width: 768px) {
    .latest-blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .latest-blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .latest-blog-section {
        padding: 20px;
    }

    .latest-blog-title {
        font-size: 1.3rem;
    }
}

/* ============================================
   PREMIUM UPGRADE BANNER (Top of Page)
   ============================================ */

.premium-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 165, 0, 0.15));
    border-bottom: 2px solid rgba(255, 215, 0, 0.5);
    padding: 20px 30px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    animation: bannerPulse 3s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 215, 0, 0.5);
    }
}

.premium-banner.hidden {
    display: none;
}

.premium-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

.premium-banner-left {
    flex: 1;
}

.premium-banner-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.premium-banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.premium-banner-subtitle {
    font-size: 1rem;
    color: #ccc;
}

.premium-banner-right {
    flex-shrink: 0;
}

.premium-banner-cta {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    min-width: 200px;
}

.premium-banner-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(255, 215, 0, 0.7);
}

.cta-text {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.cta-price {
    font-size: 0.85rem;
    opacity: 0.8;
    font-weight: 500;
}

.premium-banner-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.premium-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Hide banner for premium users */
body.premium .premium-banner {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .premium-banner {
        padding: 15px 20px;
    }

    .premium-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .premium-banner-title {
        font-size: 1.2rem;
    }

    .premium-banner-subtitle {
        font-size: 0.9rem;
    }

    .premium-banner-cta {
        width: 100%;
        padding: 12px 20px;
    }

    .premium-banner-close {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 1.2rem;
    }
}

/* ============================================
   PREMIUM FEATURES STYLING
   ============================================ */

/* Premium Badge */
.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: premiumGlow 2s ease-in-out infinite;
}

@keyframes premiumGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.9);
    }
}

/* Premium Indicator with Blur/Lock for Free Users */
.premium-indicator {
    position: relative;
}

.premium-indicator:not(.unlocked) {
    filter: blur(8px);
    pointer-events: none;
    opacity: 0.6;
}

.premium-indicator:not(.unlocked) .metric-value,
.premium-indicator:not(.unlocked) .metric-subtitle {
    color: #444 !important;
}

/* Premium Lock Overlay */
.premium-lock {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.premium-indicator.unlocked .premium-lock {
    display: none;
}

.premium-lock:hover {
    background: rgba(0, 0, 0, 0.95);
    transform: scale(1.02);
}

.lock-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: lockBounce 2s ease-in-out infinite;
}

@keyframes lockBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.lock-text {
    color: #ffd700;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    padding: 8px 15px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

/* Remove blur for premium users */
body.premium .premium-indicator {
    filter: none !important;
    pointer-events: auto !important;
}

body.premium .premium-indicator .premium-lock {
    display: none !important;
}

body.premium .premium-indicator .metric-value,
body.premium .premium-indicator .metric-subtitle {
    color: inherit !important;
}

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

.upgrade-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.upgrade-view {
    width: 100%;
}

/* Back Button */
.back-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-3px);
}

/* Comparison View */
.comparison-subtitle {
    text-align: center;
    color: #888;
    font-size: 1rem;
    margin: -10px 0 30px 0;
}

.comparison-table {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
}

.comparison-feature-col {
    text-align: left;
    color: #fff;
    font-size: 1rem;
}

.comparison-free-col,
.comparison-premium-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tier-label {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.tier-label.free-tier {
    background: rgba(136, 136, 136, 0.3);
    color: #888;
}

.tier-label.premium-tier {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.tier-price {
    font-size: 1.2rem;
    color: #fff;
    font-weight: 600;
}

.comparison-category {
    background: rgba(0, 255, 255, 0.1);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding: 12px 15px;
    color: #00ffff;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.comparison-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-row.highlight {
    background: rgba(255, 215, 0, 0.02);
}

.comparison-row.highlight:hover {
    background: rgba(255, 215, 0, 0.05);
}

.comparison-feature {
    color: #ccc;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.comparison-free,
.comparison-premium {
    text-align: center;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon {
    font-size: 0.65rem;
    color: #ffa500;
    background: rgba(255, 165, 0, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

.comparison-cta {
    padding: 30px 20px 20px;
    text-align: center;
}

.comparison-trial-note {
    color: #888;
    font-size: 0.9rem;
    margin-top: 15px;
}

.upgrade-price {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    margin: 20px 0;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.price-period {
    font-size: 1.5rem;
    color: #888;
    font-weight: 400;
}

.price-subtitle {
    font-size: 1.1rem;
    color: #aaa;
    margin-top: 10px;
}

/* Premium Features List */
.premium-features-list {
    margin: 30px 0;
}

.premium-features-list h3 {
    color: #00ffff;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 215, 0, 0.3);
    transform: translateX(5px);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-text {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.feature-text strong {
    color: #fff;
    font-weight: 600;
}

/* Upgrade Buttons */
.upgrade-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 30px 0;
}

.upgrade-btn-demo,
.upgrade-btn-primary,
.upgrade-btn-secondary {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.upgrade-btn-demo {
    background: linear-gradient(135deg, #00ff88, #00cc6e);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4);
}

.upgrade-btn-demo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6);
}

.upgrade-btn-primary {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.upgrade-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.upgrade-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upgrade-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #aaa;
}

/* Upgrade Footer */
.upgrade-footer {
    text-align: center;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.upgrade-footer p {
    color: #888;
    font-size: 0.9rem;
    margin: 8px 0;
}

/* Mobile Responsive for Upgrade Modal */
@media (max-width: 768px) {
    .upgrade-modal-content {
        margin: 10px;
        padding: 15px;
        max-width: 95%;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .price-period {
        font-size: 1.2rem;
    }

    .feature-item {
        padding: 10px;
    }

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

    .feature-text {
        font-size: 0.85rem;
    }

    .upgrade-btn-demo,
    .upgrade-btn-primary,
    .upgrade-btn-secondary {
        padding: 12px 20px;
        font-size: 1rem;
    }

    /* Comparison Table Mobile */
    .comparison-header {
        grid-template-columns: 3fr 1fr 1fr;
        padding: 15px 10px;
        font-size: 0.85rem;
    }

    .comparison-feature-col {
        font-size: 0.85rem;
    }

    .tier-label {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .tier-price {
        font-size: 1rem;
    }

    .comparison-row {
        grid-template-columns: 3fr 1fr 1fr;
        padding: 12px 10px;
    }

    .comparison-feature {
        font-size: 0.8rem;
    }

    .comparison-free,
    .comparison-premium {
        font-size: 1.1rem;
    }

    .comparison-category {
        font-size: 0.8rem;
        padding: 10px;
    }

    .coming-soon {
        font-size: 0.55rem;
        padding: 1px 4px;
    }

    .comparison-subtitle {
        font-size: 0.9rem;
    }
}

/* ============================================
   INDICATOR HISTORICAL DATA MODAL
   ============================================ */

.history-modal-content {
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
}

.history-current {
    text-align: center;
    padding: 20px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    margin: 20px 0;
}

.history-current-label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
}

.history-current-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.history-chart-wrapper {
    margin: 30px 0;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

#historyChart {
    max-width: 100%;
    height: auto;
}

.history-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.history-stat {
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
}

.history-stat-label {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 8px;
}

.history-stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.history-footer {
    text-align: center;
    padding: 20px 0 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

.history-footer p {
    color: #888;
    font-size: 0.9rem;
    margin: 8px 0;
}

/* Make indicator cards clickable */
.metric-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 255, 0.2);
}

.metric-card:active {
    transform: translateY(0);
}

/* Mobile Responsive for History Modal */
@media (max-width: 768px) {
    .history-modal-content {
        margin: 10px;
        padding: 20px;
    }

    .history-current-value {
        font-size: 2rem;
    }

    .history-stats-grid {
        grid-template-columns: 1fr;
    }

    #historyChart {
        width: 100%;
        height: auto;
    }

    .history-chart-wrapper {
        padding: 10px;
    }
}
