
        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif!important;
                   background: url('https://soldegens.com/alley.jpg')!important;
		background-size: cover!important;;
			background-attachment: fixed!important;
            min-height: 100vh;
            color: #ffffff;
          
            padding-top: 80px; /* Space for fixed header */
        }

        body, html{  overflow-x: hidden!important;}

        p{
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif!important;}

        /* Token History Styles */
.clear-history-btn {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin-left: auto;
}

.grok-raw-content a{color:#e74c3c;}

.clear-history-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    transform: scale(1.1);
}

.token-history-list {
    max-height: 600px;
    overflow-y: auto;
    overflow-x:hidden;
}

#newsTicker img{display:none!important}

.history-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(3px);
}

.history-symbol {
    font-weight: 700;
    color: #ffffff;
    font-size: 1rem;
    margin-bottom: 5px;
}

.history-name {
    color: #b0b7ff;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.history-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #667eea;
}

.history-price {
    font-weight: 600;
}

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

.history-change.positive { color: #10b981; }
.history-change.negative { color: #ef4444; }

/* Floating Chat Widget */
.floating-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

.chat-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.chat-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.chat-icon {
    font-size: 1.5rem;
    color: white;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(102, 126, 234, 0.4);
    border-radius: 50%;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Chat Popup */
.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    animation: chatSlideIn 0.3s ease-out;
}

.chat-popup.active {
    display: flex;
}

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

.chat-popup-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chat-title span:first-child {
    font-weight: 700;
    color: #ffffff;
    font-size: 1.1rem;
}

.chat-status {
    font-size: 0.8rem;
    color: #10b981;
}

.chat-close {
    background: none;
    border: none;
    color: #b0b7ff;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.chat-popup-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.chat-popup-input {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input-popup {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input-popup:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.chat-send-popup {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-send-popup:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

/* Typing Indicator */
.typing-indicator {
    padding: 15px 20px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    animation: typing-bounce 1.4s ease-in-out infinite both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing-bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Chat Trigger Ready State */
.chat-trigger.ready .pulse-ring {
    border-color: rgba(16, 185, 129, 0.6);
}

.chat-trigger.ready {
    background: linear-gradient(135deg, #10b981, #059669);
}


/* Safety Analysis Dashboard Styles */
.safety-analysis-dashboard {
    background: rgba(0,0,0,0.5);
    border-radius: 16px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid rgba(255, 107, 107, 0.2);
}

.galaxy-brain-summary {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(26, 26, 46, 0.9));
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 25px;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.galaxy-score-display {
    text-align: center;
}

.galaxy-score {
    font-size: 3.5rem;
    font-weight: bold;
    margin: 10px 0;
    text-shadow: 0 0 30px currentColor;
    position: relative;
    z-index: 1;
}

.galaxy-score.minimal_risk { 
    color: #51cf66; 
    border-color: #51cf66;
}
.galaxy-score.low_risk { 
    color: #339af0; 
    border-color: #339af0;
}
.galaxy-score.medium_risk { 
    color: #ffd93d; 
    border-color: #ffd93d;
}
.galaxy-score.high_risk { 
    color: #ff6b6b; 
    border-color: #ff6b6b;
}
.galaxy-score.critical_risk { 
    color: #ff3838; 
    border-color: #ff3838;
}

.galaxy-score-label {
    font-size: 0.9rem;
    color: #b0b7ff;
    font-weight: 600;
}

.safety-analysis-center {
    text-align: center;
}

.severity-level {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.confidence-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    margin: 15px 0;
    overflow: hidden;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ffd93d, #51cf66);
    border-radius: 4px;
    transition: width 1s ease;
}

.safety-status-indicators {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.status-text {
    font-size: 0.9rem;
    color: #b0b7ff;
    font-weight: 600;
}

.status-value {
    font-size: 0.8rem;
    color: #ffffff;
    margin-left: auto;
    font-weight: bold;
}

/* Grok Intelligence Panel */
.grok-intelligence-panel {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(255, 107, 107, 0.15));
    backdrop-filter: blur(15px);
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    border: 2px solid;
    border-image: linear-gradient(135deg, #6c5ce7, #ff6b6b) 1;
    animation: grokGlow 4s ease-in-out infinite;
}

@keyframes grokGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 92, 231, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 107, 107, 0.5); }
}

.grok-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.grok-brain-icon {
    font-size: 1.8rem;
    animation: brainPulse 2s ease-in-out infinite;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.grok-title {
    font-size: 1.3rem;
    font-weight: bold;
    background: linear-gradient(135deg, #6c5ce7, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grok-verdict {
    padding: 6px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.8rem;
    margin-left: auto;
}

.grok-verdict.revolutionary_safe {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: #fff;
}

.grok-verdict.caution_advised {
    background: linear-gradient(135deg, #ffd93d, #fcc419);
    color: #000;
}

.grok-verdict.danger_detected {
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: #fff;
}

/* Risk Vectors */
.risk-vectors-section {
    margin: 25px 0;
}

.risk-vectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.risk-vector-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.risk-vector-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.risk-vector-card.critical {
    border-color: #ff3838;
    background: rgba(255, 56, 56, 0.1);
}

.risk-vector-card.high {
    border-color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.risk-vector-card.medium {
    border-color: #ffd93d;
    background: rgba(255, 217, 61, 0.1);
}

.risk-vector-card.low {
    border-color: #51cf66;
    background: rgba(81, 207, 102, 0.1);
}

.vector-category {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vector-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
}

.vector-impact {
    color: #ccc;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.vector-mitigation {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    border-left: 3px solid #6c5ce7;
}

/* Advanced Safety Metrics */
.advanced-safety-metrics {
    margin: 25px 0;
}

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

.safety-metric-card {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
    text-align: center;
    transition: all 0.3s ease;
}

.safety-metric-card:hover {
    transform: translateY(-2px);
    border-color: #6c5ce7;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.2);
}

.safety-metric-label {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.safety-metric-value {
    font-size: 1.4rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 6px;
}

.safety-metric-subtitle {
    font-size: 0.75rem;
    color: #aaa;
}

/* Safety Charts Section */
.safety-charts-section {
    margin: 25px 0;
}

/* Detailed Safety Analysis Tabs */
.detailed-safety-analysis {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid #333;
    margin: 25px 0;
}

.analysis-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    overflow-x: auto;
}

.analysis-tabs .tab-btn {
    padding: 10px 16px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
}

.analysis-tabs .tab-btn.active {
    color: #6c5ce7;
    border-bottom-color: #6c5ce7;
}

.analysis-tabs .tab-btn:hover {
    color: #a29bfe;
}

/* Responsive Design */
@media (max-width: 768px) {
    .galaxy-brain-summary > div {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .safety-status-indicators {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .status-indicator {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .risk-vectors-grid {
        grid-template-columns: 1fr;
    }
    
    .safety-metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .safety-charts-section > div {
        grid-template-columns: 1fr;
    }
    
    .analysis-tabs {
        justify-content: flex-start;
    }
}

/* Floating History Widget Styles */
.floating-history-widget {
    position: fixed;
    bottom: 100px; /* Position above chat widget */
    right: 30px;
    z-index: 1000;
}

.history-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.history-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6);
}

.history-trigger.has-history {
    animation: historyPulse 2s infinite;
}

@keyframes historyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.history-icon {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.history-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border: 2px solid white;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.history-count-badge.show {
    transform: scale(1);
}

.history-pulse-ring {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(102, 126, 234, 0.6);
    border-radius: 50%;
    animation: historyPulseRing 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes historyPulseRing {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    80%, 100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.history-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    backdrop-filter: blur(20px);
}

.history-popup.active {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.history-popup-header {
    padding: 20px 25px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 18px 18px 0 0;
}

.history-title span:first-child {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-subtitle {
    font-size: 12px;
    color: #b0b7ff;
    opacity: 0.8;
}

.history-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.history-clear-btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.history-clear-btn:hover {
    background: rgba(255, 107, 107, 0.4);
    transform: translateY(-1px);
}

.history-close {
    background: none;
    border: none;
    color: #888;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: rotate(90deg);
}

.history-popup-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
}

.history-popup-content::-webkit-scrollbar {
    width: 6px;
}

.history-popup-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.history-popup-content::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.5);
    border-radius: 3px;
}

.popup-history-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.popup-history-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.6), transparent);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.popup-history-item:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.popup-history-item:hover::before {
    transform: translateX(0);
}

.popup-history-symbol {
    font-size: 16px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.popup-history-name {
    font-size: 13px;
    color: #b0b7ff;
    margin-bottom: 10px;
    opacity: 0.9;
}

.popup-history-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.popup-history-price {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
}

.popup-history-change {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 6px;
}

.popup-history-change.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.2);
}

.popup-history-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.2);
}

.popup-history-time {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.popup-history-empty {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}

.popup-history-empty .empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .history-popup {
        width: 340px;
        right: -10px;
    }
    
    .floating-history-widget {
        right: 20px;
        bottom: 90px;
    }
}

        /* News Ticker */
.news-ticker-container {
        flex-direction: row !important;
border-radius:15px;
padding:0px 10px 0px 0px;
    left: 0;
    right: 0;
    z-index: 900;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    height: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    margin-bottom:15px;
}

.news-ticker-content {
    display: flex;
    animation: scroll-ticker-simple 180s linear infinite;
    white-space: nowrap;
}

@keyframes scroll-ticker-simple {
    0% {
        transform: translateX(10%); /* Start from right edge of container */
    }
    100% {
        transform: translateX(-100%); /* End at left edge */
    }
}

/* Updated CSS for trending tokens with real metrics */

.trending-token {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.trending-token:hover {
    transform: translateY(-2px);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.trending-symbol {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trending-metric-row {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.safety-tab-btn {
    background: transparent;
    border: none;
    color: #888;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.holder-chart-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.holder-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.holder-chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.holder-chart-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.holder-stat {
    text-align: center;
}

.holder-stat-label {
    font-size: 0.75rem;
    color: #a1a1aa;
    margin-bottom: 4px;
}

.holder-stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #ffffff;
}

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

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

.chart-canvas-container {
    position: relative;
    height: 300px;
    margin-top: 20px;
}

.chart-loading {
    text-align: center;
    padding: 40px;
    color: #a1a1aa;
}

.chart-error {
    text-align: center;
    padding: 40px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.deployer-analysis {
    background: rgba(0,0,0,0.5);
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    border: 1px solid #333;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.deployer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.deployer-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.3em;
    font-weight: 600;
}

.deployer-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.deployer-stat {
    text-align: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.deployer-stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #00d4ff;
    display: block;
}

.deployer-stat-label {
    font-size: 0.85em;
    color: #cccccc;
    margin-top: 2px;
}

.risk-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9em;
    text-transform: uppercase;
}

.risk-low { background: #0d7d3d; color: white; }
.risk-low-moderate { background: #f39c12; color: white; }
.risk-moderate { background: #e67e22; color: white; }
.risk-high { background: #e74c3c; color: white; }
.risk-unknown { background: #7f8c8d; color: white; }

.deployer-address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid #444;
}

.address-text {
    font-family: 'Courier New', monospace;
    color: #00d4ff;
    cursor: pointer;
    padding: 5px 10px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 5px;
    transition: all 0.2s ease;
    user-select: none;
}

.address-text:hover {
    background: rgba(0, 212, 255, 0.2);
    transform: translateY(-1px);
}

.copy-btn {
    background: #00d4ff;
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8em;
    font-weight: bold;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #00a8cc;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #00ff88;
    animation: pulse 0.3s ease;
}

.deployer-tokens-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.deployer-tokens-table th {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #ffffff;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9em;
    border-bottom: 2px solid #00d4ff;
}

.deployer-tokens-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #333;
    color: #ffffff;
    font-size: 0.85em;
}

.deployer-tokens-table tr:hover {
    background: rgba(0, 212, 255, 0.1);
}

.token-image {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #333;
}

.token-image-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.7em;
}

.token-address {
    font-family: 'Courier New', monospace;
    color: #00d4ff;
    cursor: pointer;
    padding: 2px 6px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 3px;
    transition: all 0.2s ease;
    font-size: 0.8em;
}

.token-address:hover {
    background: rgba(0, 212, 255, 0.2);
}

.market-cap-cell {
    font-weight: bold;
}

.market-cap-high { color: #00ff88; }
.market-cap-medium { color: #ffd700; }
.market-cap-low { color: #ff6b6b; }
.market-cap-zero { color: #888; }

.liquidity-cell {
    font-style: italic;
}

.socials-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 5px;
}

.socials-yes { background: #00ff88; }
.socials-no { background: #ff6b6b; }

.risk-indicators {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
        display: flex!important;
    align-items: center; /* ✅ vertically center the h4 */
    gap: 20px;
}



.risk-indicators h4 {
    margin: 0;
    color: #fff;
    font-weight:900; margin-right:20px;
    white-space: nowrap;
}

.risk-indicators ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 40px;
}

.risk-indicators li {
    padding: 5px 0;
    color: #fff;
    display: block;
}





.risk-indicators li:before {
    content: "";
    font-size: 0.8em;
}

.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 10px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.show-more-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.table-info {
    color: #cccccc;
    font-size: 0.85em;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    .deployer-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .deployer-stats {
        width: 100%;
        justify-content: space-around;
    }
    
    .deployer-tokens-table {
        font-size: 0.8em;
    }
    
    .deployer-tokens-table th,
    .deployer-tokens-table td {
        padding: 8px 4px;
    }
}

.trend-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.trend-growth {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.trend-decline {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.trend-stable {
    background: rgba(161, 161, 170, 0.2);
    color: #a1a1aa;
}

.account-handle a{color:red}

.safety-tab-btn:hover {
    color: #b0b7ff;
    background: rgba(108, 92, 231, 0.1);
}

.safety-tab-btn.active {
    color: #ffffff;
    background: rgba(108, 92, 231, 0.2);
    border-bottom: 2px solid #6c5ce7;
}

.safety-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.safety-tab-content.active {
    display: block;
}

.metric-label {
    font-size: 0.7rem;
    color: #b0b7ff;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.metric-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: #10b981;
}

/* Responsive grid for trending tokens */
.trending-tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px 0;
}

/* Tab styling updates */
.tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.2);
    color: #b0b7ff;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.tab-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
}

/* Loading and error states */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #b0b7ff;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px dashed rgba(102, 126, 234, 0.3);
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    border: 1px dashed rgba(239, 68, 68, 0.3);
}

/* Session cache indicator */
.cache-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 12px;
    margin-left: 10px;
}

.cache-indicator::before {
    content: "📦";
    font-size: 0.8rem;
}

/* Refresh button for manual cache refresh */
.refresh-cache-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.refresh-cache-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.refresh-cache-btn:active {
    transform: translateY(0);
}

.trending-price{color:#10b981;}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .trending-tokens-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .trending-token {
        min-height: 50px;
        padding: 12px;
    }
    
    .trending-symbol {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .metric-value {
        font-size: 0.8rem;
    }
    
    .metric-label {
        font-size: 0.65rem;
    }
}

.ticker-item {
    padding: 0 50px;
    font-size: 0.9rem;
    color: #b0b7ff;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.ticker-item:hover {
    color: #ffffff;
}

.ticker-item::before {
    content: "📈";
    margin-right: 8px;
}



        /* Fixed Header */
        .main-header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1000;
            background: rgba(0, 0, 0, 0.95);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(102, 126, 234, 0.2);
            padding: 15px 0;
        }

        .header-content {
            max-width: 1800px;
            margin: 0 auto;
            padding: 0 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            font-family: "Lacquer", system-ui;
            font-size: 2rem;
            font-weight: 400;
            background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
            background-size: 300% 300%;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradient-flow 3s ease infinite;
            text-decoration: none;
        }
		
		html {
  scroll-behavior: smooth;   /* enables the built-in smooth scroller */
}

        @keyframes gradient-flow {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .nav-links {
            display: flex;
            gap: 30px;
            align-items: center;
        }

        .nav-link {
            color: #b0b7ff;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            padding: 8px 16px;
            border-radius: 20px;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .nav-link:hover {
            background: rgba(102, 126, 234, 0.2);
            color: #ffffff;
            transform: translateY(-1px);
        }

        .dashboard-container {
            max-width: 1800px;
            margin: 0 auto;
            padding: 0px 20px 20px 20px;
        }

        /* Enhanced Market Overview Bar with CoinGecko/DexScreener */
        .market-overview {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        }

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

        .market-title {
             font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-style: normal;
            font-size: 1.4rem;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .market-sentiment {
            display: block;
            align-items: center;
            gap: 15px;
            font-weight: 700;
        }

        .sentiment-indicator {
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .sentiment-bullish { background: rgba(16, 185, 129, 0.2); color: #10b981; }
        .sentiment-bearish { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
        .sentiment-neutral { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

        /* Enhanced Market Overview Layout */
        .market-overview-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
            align-items: start;
        }
		
		.diamond-hands-container {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
}

.diamond-hands-main {
    text-align: center;
    margin-bottom: 15px;
}

.diamond-hands-score {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 5px;
}

.diamond-hands-level {
    font-size: 1.2em;
    font-weight: bold;
}

.diamond-hands-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 0.9em;
}

.diamond-hands-metrics {
    text-align: center;
    opacity: 0.8;
    font-size: 0.8em;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
}

.no-data-message {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #888;
}

        .crypto-prices {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 15px;
        }

        .crypto-price-card {
            background: rgba(0, 0, 0, 0.65);
            border-radius: 12px;
            padding: 8px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
        }

        .crypto-price-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
        }

        .crypto-symbol {
            font-weight: 700;
            font-size: 0.9rem;
            color: #ffffff;
            margin-bottom: 6px;
			float:left;
			padding-top:5px;
        }

        .crypto-price {
            font-size: .9rem;
            font-weight: 800;
            color: #667eea;
            margin-bottom: 4px;
			padding:5px 15px 0px 15px;
			float:left;
        }

.hideme{display:none!important}

        .crypto-change {
            font-size: 0.75rem;
            font-weight: 600;
			float:left;
			padding-top:8px;
        }

        .crypto-change.positive { color: #10b981; }
        .crypto-change.negative { color: #ef4444; }

        /* Fear & Greed Dial */
        .fear-greed-dial {
            background: rgba(0, 0, 0, 0.65);
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .dial-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: #b0b7ff;
            margin-bottom: 15px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .dial-container {
            position: relative;
            width: 120px;
            height: 120px;
            margin: 0 auto 15px;
        }

   .dial-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: -60px;
}

        .dial-label {
            font-size: 0.75rem;
            color: #b0b7ff;
            margin-top: 5px;
        }

        /* Market Intelligence Sections - Updated for CoinGecko data */
        .market-intelligence {
            display: flex;
            flex-direction: column;
            gap: 15px;
            display:none!important;
        }

        .intelligence-section {
            background: rgba(0, 0, 0, 0.65);
            border-radius: 12px;
            padding: 15px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .intelligence-section-title {
            font-size: 0.85rem;
            font-weight: 600;
            color: #667eea;
            margin-bottom: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .market-insights {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }

        .insight-tag {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
            padding: 4px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 600;
            border: 1px solid rgba(16, 185, 129, 0.3);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .insight-tag:hover {
            background: rgba(16, 185, 129, 0.3);
            color: #ffffff;
        }

        .trending-searches {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .search-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 6px;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .search-item:hover {
            background: rgba(102, 126, 234, 0.1);
            transform: translateX(3px);
        }

        .search-name {
            font-size: 0.75rem;
            font-weight: 600;
            color: #ffffff;
        }

        .search-rank {
            font-size: 0.65rem;
            padding: 2px 6px;
            border-radius: 8px;
            font-weight: 600;
            background: rgba(102, 126, 234, 0.2);
            color: #667eea;
        }

        /* Dashboard Grid with Sticky Sidebar */
        .dashboard-grid {
            display: grid;
   
            gap: 25px;
            margin-bottom: 25px;
            align-items: start;
        }

        .main-content {
            display: flex;
            flex-direction: column;
            gap: 25px;
            max-width:100%;
        }

        .sidebar {
            position: sticky;
            top: 100px; /* Account for header height */
            display: flex;
            flex-direction: column;
            gap: 25px;
            height: calc(100vh - 120px);
            overflow-y: auto;
        }

        /* Trending Tokens with Enhanced Tabs - FIXED */
        .trending-tokens-section {
            background: rgba(0, 0, 0, 0.65);
            backdrop-filter: blur(25px);
            border-radius: 20px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .section-header {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .section-title {
           font-family: "Titillium Web", sans-serif;
  font-weight: 700!important;
  font-style: normal;
            font-size: 1.5rem;
            color: #ffffff;
            font-weight: 400;
        }

        .section-refresh {
            margin-left: auto;
            background: none;
            border: none;
            color: #667eea;
            cursor: pointer;
            padding: 8px;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-size: 1.1rem;
        }

        .section-refresh:hover {
            background: rgba(102, 126, 234, 0.2);
            transform: rotate(180deg);
        }

        /* Enhanced Tab Navigation */
        .tab-navigation {
            display: flex;
            gap: 0;
            margin-bottom: 20px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 4px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .tab-btn {
            flex: 1;
            background: none;
            border: none;
            color: #b0b7ff;
            padding: 12px 20px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .tab-btn:hover {
            background: rgba(102, 126, 234, 0.2);
            color: #ffffff;
        }

        .tab-btn.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: #ffffff;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        /* Tab Content */
        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
            animation: fadeInTab 0.4s ease-in;
        }

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

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

        .trending-token {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            border-left: 3px solid #667eea;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
        }

        .trending-token:hover {
            transform: translateY(-2px);
            background: rgba(102, 126, 234, 0.1);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
        }

        .trending-token.fresh-hype {
            border-left-color: #10b981;
            background: rgba(16, 185, 129, 0.05);
        }

        .trending-token.recent-trending {
            border-left-color: #f59e0b;
            background: rgba(245, 158, 11, 0.05);
        }

        .trending-token.blue-chip {
            border-left-color: #3b82f6;
            background: rgba(59, 130, 246, 0.05);
        }

        .trending-symbol {
            font-weight: 700;
            font-size: 0.9rem;
            color: #ffffff;
            margin-bottom: 5px;
        }

        .trending-change {
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 5px;
        }

        .trending-mentions {
            font-size: 0.7rem;
            color: #b0b7ff;
            opacity: 0.8;
        }

        /* Loading and Error States */
        .loading-state {
            text-align: center;
            color: #b0b7ff;
            padding: 40px;
            font-style: italic;
        }

        .error-state {
            text-align: center;
            color: #ef4444;
            padding: 40px;
            font-style: italic;
        }

        /* Token Analyzer */
        .token-analyzer {
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(25px);
            border-radius: 20px;
            padding: 30px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
		h2{padding-top:35px;}
        .analyzer-input {
            display: grid;
            grid-template-columns: 2fr 1fr auto;
            gap: 30px;
            align-items: start;
            margin-bottom: 20px;
        }

        .input-group {
            min-width: 0;
        }

        .input-group label {
            display: block;
            font-weight: 700;
            margin-bottom: 8px;
            color: #e1e7ff;
            font-size: 0.95rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .input-group input, .input-group select {
            width: 100%;
            padding: 15px 20px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            font-size: 15px;
            background: rgba(255, 255, 255, 0.05);
            color: #ffffff;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .input-group input:focus, .input-group select:focus {
            outline: none;
            border-color: #667eea;
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
        }

        .analyze-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
          font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-style: normal;
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .analyze-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
        }

        .analyze-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        /* Loading Animation */
        .loading-spinner {
            display: none;
            text-align: center;
            padding: 40px;
            background: rgba(102, 126, 234, 0.1);
            border-radius: 16px;
            margin: 20px 0;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(255, 255, 255, 0.1);
            border-top: 4px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin: 0 auto 20px;
        }
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.console-line {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

        .loading-text {
            color: #667eea;
            font-weight: 600;
            font-size: 1.1rem;
        }

        /* Token Age Dashboard */
        .token-age-dashboard {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
            border: 1px solid rgba(245, 158, 11, 0.3);
        }

        .age-metric-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: all 0.3s ease;
        }

        .age-metric-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(245, 158, 11, 0.2);
        }

        .age-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .age-value {
            font-size: 1.5rem;
            font-weight: 700;
            color: #f59e0b;
            margin-bottom: 5px;
        }

        .age-label {
            font-size: 0.8rem;
            color: #b0b7ff;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Revolutionary Charts Dashboard */
        .revolutionary-charts-dashboard {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
            border-radius: 24px;
            padding: 30px;
            margin-bottom: 25px;
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        .chart-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 20px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            position: relative;
        }

        .chart-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
            border-color: rgba(102, 126, 234, 0.4);
        }

        .chart-card h3 {
            color: #ffffff;
            font-size: 1rem;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .chart-value {
            position: absolute;
            display:none!important;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.9rem;
            font-weight: 700;
            color: #10b981;
        }

        .chart-card canvas {
            max-height: 150px !important;
        }

        /* Real Google Trends */
       /* Enhanced Search Intelligence Dashboard */
        .search-intelligence-dashboard {
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(25px);
            border-radius: 24px;
            padding: 40px;
           
            margin-bottom: 25px;
        }

        .search-intel-header {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .search-intel-metric {
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .intel-value {
            font-size: 2.5rem;
            font-weight: 900;
            color: #10b981;
            margin-bottom: 8px;
        }

        .intel-label {
            font-size: 0.9rem;
            color: #b0b7ff;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .search-trends-chart {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            height: 350px; /* Fixed height to prevent stretching */
        }

        .search-trends-chart canvas {
            max-height: 280px !important; /* Prevent canvas from growing too large */
        }

        .geo-heatmap-container {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            height: 350px; /* Fixed height to match chart */
        }

        /* Fix the search intelligence grid to be 50/50 */
        .search-intel-charts {
            display: grid;
            grid-template-columns: 1fr 1fr; /* 50/50 split */
            gap: 25px;
            margin-top: 20px;
        }

        /* DexScreener Chart */
        .chart-container {
            display: none;
            margin: 25px 0;
            position: relative;
            width: 100%;
            height: 600px;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 15px 40px rgba(0,0,0,0.2);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
		
		/* Notable Accounts Styling */
.notable-account-item {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #fbbf24;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notable-account-item:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: translateX(3px);
}

.notable-username {
    font-weight: 700;
    color: #fbbf24;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.notable-display-name {
    font-size: 0.8rem;
    color: #e1e7ff;
    margin-bottom: 6px;
}

.notable-followers {
    font-size: 0.75rem;
    color: #fbbf24;
    font-weight: 600;
}

/* Enhanced tweet styling */
.tweet-item {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 3px solid #1da1f2;
    transition: all 0.3s ease;
}

.tweet-item:hover {
    background: rgba(29, 161, 242, 0.1);
    transform: translateX(3px);
}

.tweet-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: #7dd3fc;
}

.tweet-sentiment {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.sentiment-bullish { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.sentiment-bearish { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.sentiment-neutral { background: rgba(107, 114, 128, 0.2); color: #6b7280; }

        .chart-container iframe {
            width: 100%;
            height: 100%;
            border: 0;
            background: #1a1a2e;
        }

        /* Token Profile Section */
        .token-profile {
            display: none;
                background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(25px);
            border-radius: 20px;
            padding: 30px;
           
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .token-profile-header {
            display: flex;
            align-items: center;
            gap: 20px;
            margin-bottom: 25px;
        }

      .token-profile   .token-image {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            border: 3px solid rgba(102, 126, 234, 0.3);
        }

        .token-info h2 {
            font-family: "Titillium Web", sans-serif;
  font-weight: 600;
  font-style: normal;
            font-size: 2.2rem;
            color: #ffffff;
            margin-bottom: 5px;
        }

        .token-info .token-contract {
            font-family: monospace;
            font-size: 0.9rem;
            color: #b0b7ff;
            opacity: 0.8;
        }

    .token-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

        .metric-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 12px;
            padding: 15px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .metric-value {
            font-size: 1.4rem;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 5px;
        }

        .metric-label {
            font-size: 0.8rem;
            color: #b0b7ff;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* Results Section */
        .results-section {
            display: none;
            margin-top: 25px;
        }

      

        .search-intel-header {
            display: grid;
            grid-template-columns: 1fr 1fr 1fr;
            gap: 30px;
            margin-bottom: 30px;
        }

        .search-intel-metric {
            text-align: center;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.15);
        }

        .intel-value {
            font-size: 2.5rem;
            font-weight: 900;
            color: #10b981;
            margin-bottom: 8px;
        }

        .intel-label {
            font-size: 0.9rem;
            color: #b0b7ff;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .search-trends-chart {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            height: 350px; /* Fixed height to prevent stretching */
        }

        .search-trends-chart canvas {
            max-height: 280px !important; /* Prevent canvas from growing too large */
        }

        .geo-heatmap-container {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 16px;
            padding: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            height: 350px; /* Fixed height to match chart */
        }

        /* Fix the search intelligence grid to be 50/50 */
        .search-intel-charts {
            display: grid;
            grid-template-columns: 1fr 1fr; /* 50/50 split */
            gap: 25px;
            margin-top: 20px;
        }

        /* Social Momentum Dashboard with Visual Metrics */
        .momentum-dashboard {
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
            border-radius: 24px;
            padding: 40px;
            border: 1px solid rgba(102, 126, 234, 0.25);
            margin-bottom: 25px;
			
        }


		
        .momentum-header {
            text-align: center;
            margin-bottom: 30px;
        }

        .momentum-score {
            font-size: 4rem;
            font-weight: 900;
            background: #fff;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 10px;
        }
		
		/* ===========================
   Safety Analysis Styles
   =========================== */

#rugcheck-safety {
  margin: 20px 0;
  font-family: 'Inter', sans-serif;
  color: #333;
}

#rugcheck-safety h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

/* Container for the colored bar and score text */
.safety-bar-container {
  position: relative;
  background: #e0e0e0;
  border-radius: 4px;
  height: 16px;
  width: 100%;
  overflow: hidden;
  margin-bottom: 8px;
}

/* The inner div whose width = score% */
.safety-bar {
  height: 100%;
  width: 0;
  border-radius: 4px;
  transition: width 0.3s ease;
  background: green; /* default; JS overrides with .low/.medium/.high */
}

/* Color tiers */
.safety-bar.low {
  background: #e74c3c; /* red */
}
.safety-bar.medium {
  background: #f39c12; /* orange */
}
.safety-bar.high {
  background: #27ae60; /* green */
}

/* Score text (e.g. “72/100”) centered on the bar */
.safety-score-text {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: #fff;
  font-weight: bold;
}

/* Top risks list */
.top-risks-list {
  list-style: disc inside;
  margin: 6px 0 12px 0;
  padding: 0;
}
.top-risks-list li {
  font-size: 0.9rem;
  margin: 4px 0;
}

/* “Show Details” / “Hide Details” button */
#toggle-details-btn {
  background: none;
  border: none;
  color: #007bff;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
}

/* Full details section (hidden by default) */
#safety-details.hidden {
  display: none;
}

#safety-details {
  margin-top: 16px;
  border-top: 1px solid #ccc;
  padding-top: 12px;
}

#safety-details h3 {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #444;
}

#safety-details p,
#safety-details ul {
  margin: 6px 0;
  font-size: 0.9rem;
}
#safety-details ul {
  list-style: disc inside;
  padding-left: 16px;
}


        .momentum-label {
            font-size: 1.2rem;
            color: #b0b7ff;
            margin-bottom: 10px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .live-data-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(16, 185, 129, 0.2);
            padding: 6px 12px;
            border-radius: 15px;
            border: 1px solid rgba(16, 185, 129, 0.3);
            font-size: 0.8rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .live-dot {
            width: 6px;
            height: 6px;
            background: #10b981;
            border-radius: 50%;
            animation: pulse-green 2s infinite;
        }

        @keyframes pulse-green {
            0%, 100% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.7; transform: scale(1.2); }
        }

        .momentum-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 15px;
        }

        .momentum-metric {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px);
            border-radius: 12px;
            padding: 15px 10px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: all 0.3s ease;
            position: relative;
        }

        .momentum-metric:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        .metric-visual {
            width: 40px;
            height: 40px;
            margin: 0 auto 10px;
            border-radius: 50%;
            position: relative;
             background: conic-gradient(
    from 180deg,
    #0040ff 0deg,    /* deep blue (cold) */
    #00e5ff 72deg,   /* cyan */
    #00ff00 144deg,  /* green */
    #ffff00 216deg,  /* yellow */
    #ff7f00 288deg,  /* orange */
    #ff0000 360deg   /* red (hot) */
  );
        }
		
		.news-summary img{display:none;}

        .metric-visual::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 24px;
            background: #1a1a2e;
            border-radius: 50%;
        }

        .metric-value-main {
            font-size: 1.3rem;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 5px;
        }

        .metric-label-main {
            font-size: 0.75rem;
            color: #b0b7ff;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        /* Live Tweets Panel */
        .live-tweets-panel {
                background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border: 1px solid rgba(29, 161, 242, 0.2);
            border-radius: 20px;
            padding: 25px;
            margin-bottom: 25px;
        }

        .tweets-list {
            max-height: 400px;
            overflow-y: auto;
            padding-right: 10px;
        }

        .tweet-item {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 15px;
            margin-bottom: 12px;
            border-left: 3px solid #1da1f2;
            transition: all 0.3s ease;
        }

        .tweet-item:hover {
            background: rgba(29, 161, 242, 0.1);
            transform: translateX(3px);
        }

        .tweet-header {
            display: flex;
            justify-content: space-between;

            align-items: center;
            margin-bottom: 8px;
        }

        .tweet-author {
            font-weight: 700;
            color: #1da1f2;
            font-size: 0.9rem;
            text-decoration: none;
        }

        .tweet-author:hover {
            text-decoration: underline;
        }

        .tweet-timestamp {
            font-size: 0.75rem;
            color: #7dd3fc;
        }

        .tweet-content {
            color: #e1e7ff;
            line-height: 1.5;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .tweet-engagement {
            font-size: 0.75rem;
            color: #7dd3fc;
        }

        /* Sidebar Sections */
        .sidebar-section {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            margin-bottom: 20px;
        }

        .sidebar-content {
            padding: 0 25px 25px 25px;
            transition: all 0.3s ease;
        }

        .toggle-arrow {
            margin-left: auto;
			padding-right:15px;
            font-size: 1rem;
            transition: transform 0.3s ease;
            user-select: none;
        }

        /* KOLs List */
        .kols-list {
            max-height: 400px;
            overflow-y: auto;
        }

        .kol-item {
            padding: 12px;
            margin-bottom: 10px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
            border-left: 3px solid #667eea;
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .kol-item:hover {
            background: rgba(102, 126, 234, 0.1);
            transform: translateX(3px);
        }

        .kol-account {
            font-weight: 700;
            color: #1da1f2;
            font-size: 0.85rem;
            margin-bottom: 5px;
        }

        .kol-description {
            color: #b0b7ff;
            font-size: 0.75rem;
            line-height: 1.3;
        }

        /* Enhanced Analysis Grid - 3 Columns */
        .analysis-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 25px;
            margin-bottom: 25px;
        }

        .analysis-card {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border-radius: 20px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            display: flex;
            flex-direction: column;
            min-height: 300px;
        }

        .analysis-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
            border-color: rgba(102, 126, 234, 0.3);
        }

        /* Enhanced Card Content with Infographics */
        .card-content {
            line-height: 1.7;
            color: #e1e7ff;
            font-size: 0.95rem;
            flex: 1;
            display: flex;
            flex-direction: column;
        }

        .info-score {
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
            border-radius: 50%;
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            font-size: 1.5rem;
            font-weight: 700;
            color: #667eea;
            border: 3px solid rgba(102, 126, 234, 0.3);
        }

        .info-rating {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin: 15px 0;
        }

        .rating-star {
            font-size: 1.2rem;
            color: #fbbf24;
        }

        .rating-star.empty {
            color: rgba(251, 191, 36, 0.3);
        }

        /* Enhanced Social Momentum with Icons and Thermometers */
        .momentum-grid {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            gap: 15px;
        }

        .momentum-metric {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(15px);
            border-radius: 12px;
            padding: 15px 10px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: all 0.3s ease;
            position: relative;
        }

        .momentum-metric:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
        }

        /* Different Chart Types for Each Metric */
        .metric-visual {
            width: 40px;
            height: 40px;
            margin: 0 auto 10px;
            border-radius: 50%;
            position: relative;
            background: conic-gradient(#667eea 0deg, #764ba2 120deg, rgba(255,255,255,0.1) 120deg, rgba(255,255,255,0.1) 360deg);
        }

        .metric-visual.thermometer {
            border-radius: 20px;
            background: linear-gradient(to top, 
                #ef4444 0%, 
                #f59e0b 25%, 
                #eab308 50%, 
                #84cc16 75%, 
                #10b981 100%);
            position: relative;
            overflow: hidden;
        }

        .metric-visual.thermometer::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(255, 255, 255, 0.9);
            transition: height 1s ease;
        }

        .metric-visual.bar-chart {
            border-radius: 4px;
            background: linear-gradient(to top, 
                rgba(102, 126, 234, 0.2) 0%, 
                #667eea 100%);
            position: relative;
        }

        .metric-visual.gauge {
            border: 4px solid rgba(255, 255, 255, 0.2);
            border-top-color: #667eea;
            border-right-color: #764ba2;
            animation: gauge-spin 2s ease-in-out infinite alternate;
        }
		
		  /* Meme Psychology Dashboard */
        .psychology-dashboard {
            background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
            border-radius: 24px;
            padding: 40px;
            margin-bottom: 25px;
            border: 2px solid rgba(139, 92, 246, 0.3);
        }

        .psychology-card {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 16px;
            padding: 25px;
            text-align: center;
            border: 1px solid rgba(255, 255, 255, 0.15);
            position: relative;
            transition: all 0.3s ease;
        }

        .psychology-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
        }

        .psychology-score {
            font-size: 2.75rem;
            font-weight: 900;
            margin-bottom: 10px;
            background: #fff;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .psychology-label {
            font-size: 1rem;
            color: #c4b5fd;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
        }

        .psychology-insight {
            font-size: 0.85rem;
            color: #e1e7ff;
            line-height: 1.4;
            font-style: italic;
        }

        @keyframes gauge-spin {
            0% { transform: rotate(-90deg); }
            100% { transform: rotate(90deg); }
        }

        .metric-visual::after {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 24px;
            height: 24px;
            background: #1a1a2e;
            border-radius: 50%;
        }

        .metric-visual.thermometer::after,
        .metric-visual.bar-chart::after {
            display: none;
        }

        .metric-icon {
            position: absolute;
            top: 5px;
            left: 5px;
            font-size: 0.8rem;
            opacity: 0.8;
        }
		
		.tweet-details {
    margin-top: 8px;
    padding-left: 15px;
    font-size: 0.75rem;
    color: #b0b7ff;
}

.tweet-details li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.tweet-details li::before {
    content: '▶';
    color: #667eea;
    position: absolute;
    left: 0;
    font-size: 0.7rem;
}

        .metric-value-main {
            font-size: 1.3rem;
            font-weight: 700;
            color: #ffffff;
            margin-bottom: 5px;
        }

        .metric-label-main {
            font-size: 0.75rem;
            color: #b0b7ff;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.3px;
        }

        /* Enhanced Risk Assessment & Market Predictions Styling */
        .card-content .risk-table,
        .card-content .prediction-list {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            padding: 15px;
            margin: 15px 0;
        }

        .card-content .risk-item,
        .card-content .prediction-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .card-content .risk-item:last-child,
        .card-content .prediction-item:last-child {
            border-bottom: none;
        }

        .card-content .risk-icon,
        .card-content .prediction-icon {
            font-size: 1.5rem;
            width: 30px;
            text-align: center;
        }

        .card-content .risk-text,
        .card-content .prediction-text {
            flex: 1;
        }

        .card-content .risk-level {
            font-weight: 700;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .card-content .risk-high { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
        .card-content .risk-medium { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
        .card-content .risk-low { background: rgba(16, 185, 129, 0.2); color: #10b981; }

        .content-heading {
            font-weight: 700;
            color: #ffff;
            margin: 20px 0 10px 0;
            font-size: 1.1rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .bullet-point {
            position: relative;
            padding-left: 20px;
            margin: 10px 0;
            color: #b0b7ff;
        }

        .bullet-point::before {
            content: '▶';
            color: #667eea;
            font-weight: bold;
            position: absolute;
            left: 0;
            font-size: 0.9rem;
        }

        /* Expert Analysis */
        .expert-analysis {
               background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border-radius: 20px;
            padding: 30px;
            margin-bottom: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .analysis-content {
            line-height: 1.8;
            color: #e1e7ff;
            font-size: 1.05rem;
        }

        /* Crypto News Sidebar */
        .crypto-news {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border-radius: 20px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            flex: 1;
        }

        .news-list {
            max-height: 500px;
            overflow-y: auto;
        }

        .news-item {
            padding: 15px;
            margin-bottom: 12px;
            background: rgba(255, 255, 255, 0.05);
            border-radius: 12px;
            border-left: 3px solid #667eea;
            transition: all 0.3s ease;
            cursor: pointer;
			min-height:150px;
        }

        .news-item:hover {
            background: rgba(102, 126, 234, 0.1);
            transform: translateX(3px);
        }

        .news-headline {
            font-weight: 700;
            color: #ffffff;
            font-size: 0.9rem;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .news-summary {
            color: #b0b7ff;
            font-size: 0.8rem;
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .news-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.7rem;
            color: #667eea;
        }

        /* Sticky Chat Interface */
        .chat-interface {
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(25px);
            border-radius: 20px;
            padding: 25px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            height: 450px;
            display: flex;
            flex-direction: column;
            position: sticky;
            top: 120px;
        }

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 15px 0;
            margin-bottom: 15px;
            max-height: 280px;
        }

        .chat-message {
            margin: 12px 0;
            padding: 12px 16px;
            border-radius: 16px;
            max-width: 85%;
            line-height: 1.5;
            font-size: 0.9rem;
        }

        .chat-message.user {
            background: rgba(102, 126, 234, 0.2);
            color: #e1e7ff;
            margin-left: auto;
            border-bottom-right-radius: 4px;
        }

        .chat-message.assistant {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            margin-right: auto;
            border-bottom-left-radius: 4px;
        }

        .chat-input-container {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .chat-input {
            flex: 1;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 20px;
            color: #ffffff;
            font-size: 0.9rem;
            outline: none;
            transition: all 0.3s ease;
        }

        .chat-input:focus {
            border-color: #667eea;
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
        }

        .chat-send {
            background: linear-gradient(135deg, #667eea, #764ba2);
            border: none;
            color: white;
            padding: 12px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 0.8rem;
        }

        .chat-send:hover {
            transform: translateY(-1px);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

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

        /* Error Message */
        .error-message {
            background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
            color: #ef4444;
            padding: 20px;
            border-radius: 12px;
            margin: 15px 0;
            border: 1px solid rgba(239, 68, 68, 0.3);
            font-weight: 600;
            display: none;
        }

        /* Powered By */
        .powered-by {
            text-align: center;
            margin-top: 40px;
            color: #b0b7ff;
            font-weight: 500;
        }

        .powered-by a {
            color: #667eea;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s ease;
        }

        .powered-by a:hover {
            color: #764ba2;
            text-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
        }

        /* Mobile Responsiveness */
        @media (max-width: 1200px) {
            .dashboard-grid {
                grid-template-columns: 1fr;
            }
            
            .sidebar {
                position: static;
                height: auto;
            }
            
            .chat-interface {
                position: static;
                height: 400px;
            }

            .market-overview-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .search-intel-charts {
                grid-template-columns: 1fr; /* Stack charts vertically on smaller screens */
                gap: 20px;
            }

            .search-intel-header {
                grid-template-columns: 1fr;
                gap: 15px;
            }
        }

        @media (max-width: 768px) {

            .floating-chat-widget {
    bottom: 20px;
    right: 20px;
}

.chat-trigger {
    width: 50px;
    height: 50px;
}



.chat-popup {
    width: calc(100vw - 40px);
    height: 60vh;
    bottom: 80px;
    right: -10px;
}

.news-ticker-container {
    height: 35px;
}

.ticker-item {
    font-size: 0.8rem;
    padding: 0 30px;
}

.ticker-item img{display:none!important;}

body {
    padding-top: 115px; /* Update this from 70px */
}
            .header-content {
                padding: 0 15px;
            }
            
            .logo {
                font-size: 1.5rem;
            }
            
            .nav-links {
                gap: 15px;
            }
            
            .nav-link {
                font-size: 0.8rem;
                padding: 6px 12px;
            }
            
            .analyzer-input {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            .crypto-prices {
                grid-template-columns: repeat(2, 1fr);
                gap: 15px;
                display:none;
            }
            
            .momentum-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }
            
            .analysis-grid {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .token-metrics {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }

            body {
                padding-top: 70px;
            }

            .search-intel-charts {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .search-trends-chart, .geo-heatmap-container {
                height: 300px; /* Smaller height on mobile */
                
            }

            .market-insights {
                gap: 4px;
            }

            .insight-tag {
                font-size: 0.65rem;
                padding: 3px 6px;
            }
        }

        /* Animations */
        .fade-in {
            animation: fadeIn 0.8s ease-in;
        }

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

        /* Custom Scrollbar */
        .tweets-list::-webkit-scrollbar,
        .news-list::-webkit-scrollbar,
        .chat-messages::-webkit-scrollbar,
        .sidebar::-webkit-scrollbar {
            width: 6px;
        }

        .tweets-list::-webkit-scrollbar-track,
        .news-list::-webkit-scrollbar-track,
        .chat-messages::-webkit-scrollbar-track,
        .sidebar::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 3px;
        }

        .tweets-list::-webkit-scrollbar-thumb,
        .news-list::-webkit-scrollbar-thumb,
        .chat-messages::-webkit-scrollbar-thumb,
        .sidebar::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.5);
            border-radius: 3px;
        }

        .tweets-list::-webkit-scrollbar-thumb:hover,
        .news-list::-webkit-scrollbar-thumb:hover,
        .chat-messages::-webkit-scrollbar-thumb:hover,
        .sidebar::-webkit-scrollbar-thumb:hover {
            background: rgba(102, 126, 234, 0.7);
        }

        /* Hide navigation on very small screens */
        @media (max-width: 480px) {
            .nav-links {
                display: none;
            }
        }
		/* Accounts to Follow Styling */
.accounts-list {
    padding-right: 10px;
}

.account-item {
    background: rgba(0, 0, 0, 0.65);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border-left: 3px solid #1da1f2;
    transition: all 0.3s ease;
    cursor: pointer;
}

.account-item:hover {
    background: rgba(29, 161, 242, 0.1);
    transform: translateX(3px);
}

.account-username {
    font-weight: 700;
    color: #1da1f2;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.account-followers {
    font-size: 0.75rem;
    color: #7dd3fc;
    margin-bottom: 6px;
}

.account-activity {
    font-size: 0.8rem;
    color: #e1e7ff;
    line-height: 1.3;
}
		
		.dial-talk{    display: flex
;
    flex-direction: row;
    gap: 15px;}
		
				.mainleft{    display: flex
;
    flex-direction: column;
    gap: 15px;}
   

    .fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Risk Badge Styles for Deployer Analysis */
.risk-unknown {
    background: rgba(107, 114, 128, 0.2) !important;
    color: #6b7280 !important;
}

.risk-low {
    background: rgba(16, 185, 129, 0.2) !important;
    color: #10b981 !important;
}

.risk-moderate, .risk-medium {
    background: rgba(245, 158, 11, 0.2) !important;
    color: #f59e0b !important;
}

.risk-high {
    background: rgba(239, 68, 68, 0.2) !important;
    color: #ef4444 !important;
}

.risk-critical {
    background: rgba(220, 38, 38, 0.2) !important;
    color: #dc2626 !important;
}

/* Address text styling */
.address-text {
    font-family: monospace;
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.address-text:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

/* Safety risk level colors */
.severity-level-low {
    color: #10b981 !important;
}

.severity-level-medium {
    color: #ffd93d !important;
}

.severity-level-high {
    color: #ef4444 !important;
}

.severity-level-critical {
    color: #dc2626 !important;
}

.severity-level-unknown {
    color: #6b7280 !important;
}

.info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    cursor: help;
}

.info-icon {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.info-icon:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.tooltip-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #ffffff;
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
    z-index: 1000;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    width: 400px;
    max-width: 400px;
    white-space: normal;
    pointer-events: none;
}

.tooltip-content::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: #16213e transparent transparent transparent;
}

.info-tooltip:hover .tooltip-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
    pointer-events: auto;
}

.psychology-label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.tooltip-formula {
    background: rgba(102, 126, 234, 0.25);
    padding: 8px 12px;
    border-radius: 6px;
    margin: 8px 0;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid rgba(102, 126, 234, 0.4);
    color: #e2e8f0;
    font-weight: 500;
}

.tooltip-factors {
    margin-top: 12px;
    text-align: left;
}

.tooltip-factors ul {
    margin: 6px 0;
    padding-left: 20px;
}

.tooltip-factors li {
    margin: 4px 0;
    color: #e2e8f0;
    font-size: 12px;
}

.tooltip-content strong {
    color: #7dd3fc;
    font-size: 14px;
}

.tooltip-content em {
    color: #fbbf24;
    font-style: italic;
    font-weight: 500;
    display: block;
    margin-top: 8px;
    text-align: center;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@media (max-width: 768px) {
    .tooltip-content {
        width: 320px;
        max-width: 320px;
        font-size: 12px;
        padding: 14px 16px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tooltip-formula {
        font-size: 11px;
    }
    
    .tooltip-factors li {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .tooltip-content {
        width: 280px;
        max-width: 280px;
        font-size: 11px;
        padding: 12px 14px;
    }
}

.ai-comprehensive-section {
    background: rgba(0,0,0,0.5);
    border-radius: 20px;
    padding: 30px;
    margin: 0px 90px 30px 0px;
 
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
    font-family: 'Inter', sans-serif;
}

.ai-header-container {
    text-align: center;
    margin-bottom: 30px;
}

.ai-main-title {
    color: #fff;
    font-size: 2.2em;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    font-weight: bold;
}

.ai-subtitle {
    color: #a0a0a0;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.ai-trigger-button {
    background: linear-gradient(45deg, #00ff88, #00cc66);
    color: #000;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.ai-trigger-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.3);
}

.ai-trigger-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.ai-processing-dots {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    margin-right: 10px;
}

.ai-processing-dots::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    animation: aiDotPulse 1.4s infinite ease-in-out both;
}

.ai-processing-dots::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: #000;
    border-radius: 50%;
    left: 8px;
    animation: aiDotPulse 1.4s infinite ease-in-out both;
    animation-delay: 0.2s;
}

@keyframes aiDotPulse {
    0%, 80%, 100% { 
        transform: scale(0);
        opacity: 0.5;
    } 
    40% { 
        transform: scale(1);
        opacity: 1;
    }
}

/* Score Section */
.ai-score-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.ai-degen-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.ai-degen-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #00ff88;
    object-fit: cover;
    animation: aiGlow 2s ease-in-out infinite alternate;
}

@keyframes aiGlow {
    0% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.3); }
    100% { box-shadow: 0 0 30px rgba(0, 255, 136, 0.6); }
}

.ai-score-badge {
    position: absolute;
    bottom: -10px;
    right: -10px;
    background: linear-gradient(45deg, #00ff88, #00cc66);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    border: 2px solid #fff;
}

.ai-final-score {
    font-size: 1.2em;
    line-height: 1;
}

.ai-score-text {
    font-size: 0.6em;
    line-height: 1;
}

.ai-risk-display {
    flex: 1;
    margin-left: 30px;
}

.ai-risk-tag {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.ai-risk-tag.LOW {
    background: #00ff88;
    color: #000;
}

.ai-risk-tag.MEDIUM {
    background: #ffaa00;
    color: #000;
}

.ai-risk-tag.HIGH {
    background: #ff3333;
    color: #fff;
}

.ai-degen-info {
    color: #00ff88;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.ai-confidence-display {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.ai-conf-label {
    font-size: 1em;
}

.ai-confidence-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.ai-confidence-progress {
    height: 100%;
    background: linear-gradient(90deg, #ff3333, #ffaa00, #00ff88);
    transition: width 0.5s ease;
    width: 0%;
}

/* Metrics Grid */
.ai-metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.ai-metric-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.ai-metric-box:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
}

.ai-metric-number {
    font-size: 2em;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 5px;
}

.ai-metric-title {
    color: #a0a0a0;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.ai-metric-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.ai-metric-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc66);
    transition: width 0.8s ease;
    width: 0%;
}

/* Trading Signals */
.ai-signals-container {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.ai-signals-title {
    color: #00ff88;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3em;
}

.ai-signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.ai-signal-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.ai-signal-label {
    color: #a0a0a0;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.ai-signal-badge {
    font-size: 1.3em;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 15px;
}

.ai-signal-badge.BUY {
    background: #00ff88;
    color: #000;
}

.ai-signal-badge.HOLD {
    background: #ffaa00;
    color: #000;
}

.ai-signal-badge.SELL {
    background: #ff3333;
    color: #fff;
}

/* Advice Section */
.ai-advice-container {
    margin-bottom: 30px;
}

.ai-advice-switcher {
    display: flex;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 5px;
}

.ai-advice-toggle {
    flex: 1;
    background: transparent;
    border: none;
    color: #a0a0a0;
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.ai-advice-toggle.ai-active {
    background: #00ff88;
    color: #000;
    font-weight: bold;
}

.ai-advice-toggle:hover:not(.ai-active) {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.ai-advice-panels {
    position: relative;
    min-height: 200px;
}

.ai-advice-panel {
    display: none;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.ai-advice-panel.ai-show {
    display: block;
    animation: aiFadeIn 0.3s ease;
}

@keyframes aiFadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.ai-advice-content {
    color: #fff;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Summary Section */
.ai-summary-container {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.ai-summary-title {
    color: #00ff88;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.ai-summary-content {
    color: #fff;
    line-height: 1.6;
    font-size: 1.05em;
}

/* Data Sources */
.ai-sources-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.1);
}

.ai-sources-title {
    color: #00ff88;
    margin-bottom: 15px;
    text-align: center;
    font-size: 1.2em;
}

.ai-sources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.ai-source-item {
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.ai-source-item.ai-available {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.ai-source-item.ai-unavailable {
    background: rgba(255, 51, 51, 0.1);
    color: #ff3333;
}

/* Error Container */
.ai-error-display {
    padding: 20px;
    background: rgba(255, 51, 51, 0.1);
    border: 1px solid #ff3333;
    border-radius: 15px;
    text-align: center;
}

.ai-error-text {
    color: #ff3333;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ai-score-display {
        flex-direction: column;
        text-align: center;
    }
    
    .ai-risk-display {
        margin-left: 0;
        margin-top: 20px;
    }
    
    .ai-metrics-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .ai-degen-container {
        width: 120px;
        height: 120px;
    }
    
    .ai-advice-switcher {
        flex-direction: column;
    }
}

.sleep-thermometer {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.5) 0%, rgba(49, 46, 129, 0.5) 100%);

    border: 1px solid #4f46e5;
    border-radius: 12px;
    padding: 16px;
    color: #e0e7ff;
    margin-bottom:30px;
    margin-top:30px;
}

.sleep-header {
  font-size:26px;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.sleep-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.sleep-badge {
    background: #4f46e5;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: 500;
}

.thermometer-container {
    position: relative;
    height: 40px;
    margin-bottom: 8px;
}




.thermometer-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #ef4444 0%, #f59e0b 25%, #eab308 50%, #22c55e 75%, #3b82f6 100%);
    border-radius: 4px;
    transform: translateY(-50%);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.thermometer-indicator {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 24px;
    background: white;
    border: 2px solid #1e293b;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 2;
    left: 50%;
}

.thermometer-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 8px;
}

.sleep-message {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    color: #c7d2fe;
    line-height: 1.2;
}

@font-face {
    font-family: 'empiresregular';
    src: url('empires-webfont.woff2') format('woff2'),
         url('empires-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}



.section-title{font-size:40px;}

.main-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    margin-top: 80px;
    padding: 60px 0 0 0;
    color: #ffffff;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-section h4 {
    color: #667eea;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-logo img {
    max-height: 100px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.3));
}

.footer-logo p {
    color: #b0b7ff;
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #b0b7ff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: #ffffff;
    transform: translateX(5px);
}

.footer-section ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.footer-section ul li a:hover::before {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #b0b7ff;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    border-color: #667eea;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    margin-top: 50px;
    padding: 25px 0;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #667eea;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-section:first-child {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 40px 0 0 0;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 15px;
        gap: 25px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
}

/* Add this to your existing body styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Add this to wrap all your main content */
.main-content-wrapper {
    flex: 1;
}

/* Update the footer CSS */
.main-footer {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    margin-top: auto; /* Changed from 80px to auto */
    padding: 60px 0 0 0;
    color: #ffffff;
}

      .analyze-btn {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .analyze-btn:hover {
            transform: translateY(-1px);
        }

        .course-container {
            display: flex;
            max-width: 100%;
            margin: 0;
            gap: 2rem;
            padding: 2rem;
            min-height: calc(100vh - 90px);
        }

        .course-sidebar {
            width: 420px;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 16px;
            padding: 2rem;
            height: fit-content;
            
            top: 110px;
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        .course-title {
            font-size: 1.75rem;
            font-weight: 700;
                font-family: "Titillium Web", sans-serif;
            margin-bottom: 1.5rem;
     color:#fff;
        }

        .progress-overview {
            margin-bottom: 2rem;
        }

        .progress-bar {
            background: rgba(75, 85, 99, 0.3);
            height: 8px;
            border-radius: 4px;
            margin-bottom: 0.5rem;
        }

        .progress-fill {
            background: linear-gradient(90deg, #10b981, #3b82f6);
            height: 100%;
            border-radius: 4px;
            transition: width 0.5s ease;
            width: 0%;
        }

        .progress-text {
            color: #94a3b8;
            font-size: 0.875rem;
        }

        .module-nav {
            list-style: none;
        }

        .module-item {
            margin-bottom: 1rem;
        }

        .module-header {
            background: rgba(51, 65, 85, 0.5);
            padding: 1rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
        }

        .module-header:hover,
        .module-header.active {
            background: rgba(102, 126, 234, 0.1);
            border-color: rgba(102, 126, 234, 0.3);
        }

        .lesson-list {
            margin-top: 0.5rem;
            padding-left: 1rem;
        }

        .lesson-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.75rem;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.3s;
            margin-bottom: 0.25rem;
        }

        .lesson-item:hover {
            background: rgba(102, 126, 234, 0.1);
        }

        .lesson-item.active {
            background: rgba(102, 126, 234, 0.2);
            color: #667eea;
        }

        .lesson-item.completed {
            color: #10b981;
        }

        .lesson-status {
            font-size: 1.2rem;
            min-width: 16px;
        }

        .course-content {
            flex: 1;
            background: rgba(0, 0, 0, 0.5);
            border-radius: 16px;
            padding: 2rem;
            border: 1px solid rgba(102, 126, 234, 0.1);
        }

        .lesson-content {
            display: none;
        }

        .lesson-content.active {
            display: block;
        }

        .lesson-header {
            margin-bottom: 2rem;
        }

        .lesson-number {
            color: #667eea;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .lesson-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
color:#fff;
                font-family: "Titillium Web", sans-serif;

        }

        .lesson-duration {
            color: #94a3b8;
            font-size: 0.875rem;
        }

        .lesson-body {
            max-width: 800px;
        }

        .lesson-body h3 {
            font-size: 1.5rem;
            margin: 2rem 0 1rem;
            color: #f1f5f9;
        }

        .lesson-body h4 {
            font-size: 1.25rem;
            margin: 1.5rem 0 0.75rem;
            color: #e2e8f0;
        }

        .lesson-body h5 {
            font-size: 1.1rem;
            margin: 1rem 0 0.5rem;
            color: #cbd5e1;
        }

        .lesson-body p {
            margin-bottom: 1rem;
            color: #cbd5e1;
        }

        .lesson-body ul,
        .lesson-body ol {
            margin-bottom: 1rem;
            padding-left: 1.5rem;
        }

        .lesson-body li {
            margin-bottom: 0.5rem;
            color: #cbd5e1;
        }

        .lesson-image {
            width: 100%;
            max-width: 600px;
            height: 300px;
            border-radius: 12px;
            margin: 2rem 0;
            object-fit: cover;
            border: 1px solid rgba(102, 126, 234, 0.2);
        }

        .info-box {
            padding: 1.5rem;
            border-radius: 12px;
            margin: 2rem 0;
            border-left: 4px solid;
        }

        .info-box.warning {
            background: rgba(251, 146, 60, 0.1);
            border-color: #f59e0b;
        }

        .info-box.danger {
            background: rgba(239, 68, 68, 0.1);
            border-color: #ef4444;
        }

        .info-box.tip {
            background: rgba(16, 185, 129, 0.1);
            border-color: #10b981;
        }

        .info-box.pro {
            background: rgba(139, 92, 246, 0.1);
            border-color: #8b5cf6;
        }

        .code-block {
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(102, 126, 234, 0.2);
            border-radius: 8px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            font-family: 'Monaco', 'Menlo', monospace;
            font-size: 0.875rem;
            white-space: pre-line;
            overflow-x: auto;
        }

        .interactive-element {
            background: rgba(102, 126, 234, 0.1);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 12px;
            padding: 1.5rem;
            margin: 2rem 0;
        }

        .quiz-container {
            background: rgba(51, 65, 85, 0.5);
            border-radius: 12px;
            padding: 1.5rem;
            margin: 2rem 0;
        }

        .quiz-question {
            font-weight: 600;
            margin-bottom: 1rem;
            color: #f1f5f9;
        }

        .quiz-options {
            list-style: none;
            padding: 0;
        }

        .quiz-option {
            background: rgba(75, 85, 99, 0.3);
            padding: 1rem;
            margin-bottom: 0.5rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s;
            border: 1px solid transparent;
        }

        .quiz-option:hover {
            background: rgba(102, 126, 234, 0.2);
            border-color: rgba(102, 126, 234, 0.3);
        }

        .quiz-option.correct {
            background: rgba(16, 185, 129, 0.2);
            border-color: #10b981;
            color: #10b981;
        }

        .quiz-option.incorrect {
            background: rgba(239, 68, 68, 0.2);
            border-color: #ef4444;
            color: #ef4444;
        }

        .quiz-result {
            margin-top: 1rem;
            padding: 1rem;
            border-radius: 8px;
            font-weight: 600;
        }

        .quiz-result.passed {
            background: rgba(16, 185, 129, 0.2);
            color: #10b981;
        }

        .quiz-result.failed {
            background: rgba(239, 68, 68, 0.2);
            color: #ef4444;
        }

        .lesson-checklist {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 12px;
            padding: 1.5rem;
            margin: 2rem 0;
        }

        .checklist-item {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 0.75rem 0;
            cursor: pointer;
            transition: color 0.3s;
        }

        .checklist-item:hover {
            color: #10b981;
        }

        .checklist-checkbox {
            width: 20px;
            height: 20px;
            border: 2px solid #10b981;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #10b981;
            font-weight: bold;
        }

        .checklist-checkbox.checked {
            background: #10b981;
            color: white;
        }

        .action-buttons {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 3rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(102, 126, 234, 0.2);
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            cursor: pointer;
            border: none;
            transition: all 0.3s;
        }

        .btn-primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
        }

        .btn-secondary {
            background: rgba(75, 85, 99, 0.5);
            color: white;
            border: 1px solid rgba(102, 126, 234, 0.3);
        }

        .btn-secondary:hover {
            background: rgba(102, 126, 234, 0.2);
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .resource-links {
            background: rgba(51, 65, 85, 0.5);
            border-radius: 12px;
            padding: 1.5rem;
            margin: 2rem 0;
        }

        .resource-links h4 {
            margin-bottom: 1rem;
            color: #f1f5f9;
        }

        .resource-links a {
            color: #667eea;
            text-decoration: none;
            display: block;
            margin-bottom: 0.5rem;
        }

        .resource-links a:hover {
            text-decoration: underline;
        }

        .trading-simulator {
            background: rgba(16, 185, 129, 0.1);
            border: 1px solid rgba(16, 185, 129, 0.3);
            border-radius: 12px;
            padding: 1.5rem;
            margin: 2rem 0;
        }

        .simulator-controls {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .simulator-input {
            background: rgba(15, 23, 42, 0.8);
            border: 1px solid rgba(102, 126, 234, 0.3);
            border-radius: 6px;
            padding: 0.5rem;
            color: white;
            width: 120px;
        }

        .simulator-button {
            background: #10b981;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            cursor: pointer;
        }

        .simulator-result {
            background: rgba(15, 23, 42, 0.8);
            padding: 1rem;
            border-radius: 6px;
            margin-top: 1rem;
        }

        @media (max-width: 1024px) {
            .course-container {
                flex-direction: column;
                padding: 1rem;
            }

            .course-sidebar {
                width: 100%;
                position: relative;
                top: 0;
            }

            .lesson-title {
                font-size: 2rem;
            }

            .simulator-controls {
                flex-direction: column;
            }

            .simulator-input {
                width: 100%;
            }
        }

        /* Add this to your existing CSS styles */

.action-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.2);
    gap: 1rem; /* Add gap between buttons */
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

#markCompleteBtn {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    transition: all 0.3s;
}

#markCompleteBtn:hover {
    background: rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

/* Update action buttons layout for better spacing */
.action-buttons .btn {
    min-width: 120px; /* Ensure buttons have minimum width */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

.twitter-analysis-section {
    background: linear-gradient(135deg, rgba(29, 161, 242, 0.1), rgba(29, 161, 242, 0.05));
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(29, 161, 242, 0.2);
}

.tweet-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tweet-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(29, 161, 242, 0.3);
    transform: translateY(-2px);
}

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

.tweet-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 2px solid rgba(29, 161, 242, 0.3);
}

.tweet-author-info {
    flex: 1;
}

.tweet-author-name {
    font-weight: 600;
    color: #fff;
    margin: 0;
    font-size: 14px;
}

.tweet-author-handle {
    color: #1da1f2;
    font-size: 13px;
    text-decoration: none;
    margin: 0;
}

.tweet-author-handle:hover {
    text-decoration: underline;
}

.tweet-verified {
    color: #1da1f2;
    margin-left: 5px;
}

.tweet-time {
    color: #666;
    font-size: 12px;
    margin-left: auto;
}

.tweet-text {
    color: #e0e0e0;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 14px;
}

.tweet-metrics {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

.tweet-metric {
    display: flex;
    align-items: center;
    gap: 4px;
}

.influencer-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.influencer-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(29, 161, 242, 0.3);
}

.influencer-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.influencer-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 10px;
    border: 2px solid rgba(29, 161, 242, 0.3);
}

.influencer-info {
    flex: 1;
}

.influencer-name {
    font-weight: 600;
    color: #fff;
    margin: 0;
    font-size: 13px;
}

.influencer-handle {
    color: #1da1f2;
    font-size: 12px;
    text-decoration: none;
    margin: 0;
}

.influencer-followers {
    color: #666;
    font-size: 11px;
    margin-top: 2px;
}

.influencer-recent-tweet {
    color: #ccc;
    font-size: 11px;
    font-style: italic;
    margin-top: 6px;
    line-height: 1.4;
}

.follow-button {
    background: #1da1f2;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.follow-button:hover {
    background: #1991da;
}

.twitter-empty {
    text-align: center;
    padding: 30px;
    color: #666;
}

.twitter-empty-icon {
    font-size: 48px;
    margin-bottom: 10px;
    opacity: 0.5;
}

.twitter-error {
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 8px;
    padding: 15px;
    color: #ff6b6b;
    text-align: center;
}

.status-indicator.online {
    background: #00ff88 !important;
}

.status-indicator.offline {
    background: #ff6b6b !important;
}

@media (max-width: 768px) {
    .twitter-content {
        grid-template-columns: 1fr;
        gap: 20px;
        
    }
    
    .who-to-follow {
        order: -1;
    }
}

/* Scan Options Container */
        .scan-options {
            background: rgba(255, 255, 255, 0.03);
            border-radius: 15px;
            padding: 0px;
            border: 0px solid rgba(102, 126, 234, 0.2);
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .scan-options:hover {
            border-color: rgba(102, 126, 234, 0.4);
            box-shadow: 0 8px 32px rgba(102, 126, 234, 0.1);
        }

        /* Toggle Switch Container */
        .scan-type-toggle {
            position: relative;
            display: flex;
            align-items: center;
            background: rgba(0, 0, 0, 0.3);
            border-radius: 12px;
            padding: 4px;
            margin-bottom: 0px;
            border: 1px solid rgba(255, 255, 255, 0.1);
            overflow: hidden;
        }

        /* Toggle Options */
        .toggle-option {
            flex: 1;
            position: relative;
            z-index: 2;
        }

        .toggle-option input[type="radio"] {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .toggle-label {
            display: block;
            text-align: center;
            padding: 12px 20px;
            font-size: 0.9rem;
            font-weight: 600;
            color: #b0b7ff;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            border-radius: 8px;
            user-select: none;
        }

        .toggle-label:hover {
            color: #ffffff;
            transform: translateY(-1px);
        }

        /* Active state */
        .toggle-option input[type="radio"]:checked + .toggle-label {
            color: #ffffff;
            font-weight: 700;
        }

        /* Sliding background indicator */
        .toggle-slider {
            position: absolute;
            top: 4px;
            left: 4px;
            width: calc(50% - 4px);
            height: calc(100% - 8px);
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 8px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 
                0 4px 15px rgba(102, 126, 234, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2);
            z-index: 1;
        }

        /* Move slider when deep scan is selected */
        .scan-type-toggle:has(input[value="deep"]:checked) .toggle-slider {
            transform: translateX(100%);
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            box-shadow: 
                0 4px 15px rgba(245, 87, 108, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2);
        }

        /* Alternative for browsers without :has() support */
        .toggle-slider.deep-active {
            transform: translateX(100%);
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            box-shadow: 
                0 4px 15px rgba(245, 87, 108, 0.4),
                0 2px 8px rgba(0, 0, 0, 0.2);
        }

        /* Icons */
        .toggle-icon {
            display: inline-block;
            margin-right: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .toggle-option input[type="radio"]:checked + .toggle-label .toggle-icon {
            transform: scale(1.1);
        }

        /* Password Section */
        .password-section {
            max-height: 0;
            opacity: 0;
            overflow: hidden;
            transform: translateY(-10px);
            transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .password-section.show {
            max-height: 220px;
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }

        .password-container {
            background: rgba(245, 87, 108, 0.1);
            border: 1px solid rgba(245, 87, 108, 0.3);
            border-radius: 12px;
            padding: 20px;
            margin-top: 16px;
            position: relative;
            overflow: hidden;
        }

        .password-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(245, 87, 108, 0.1), transparent);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .password-header {
            display: flex;
            align-items: center;
            margin-bottom: 12px;
        }

        .password-icon {
            font-size: 1.2rem;
            margin-right: 8px;
            color: #f5576c;
        }

        .password-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: #f5576c;
        }

        .password-input {
            width: 100%;
            background: rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(245, 87, 108, 0.4);
            border-radius: 8px;
            padding: 12px 16px;
            color: #ffffff;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            box-sizing: border-box;
        }

        .password-input:focus {
            outline: none;
            border-color: #f5576c;
            box-shadow: 0 0 0 3px rgba(245, 87, 108, 0.2);
            background: rgba(0, 0, 0, 0.4);
        }

        .password-input::placeholder {
            color: #888;
        }

        .password-note {
            margin-top: 8px;
            font-size: 0.75rem;
            color: #ffb3ba;
            display: flex;
            align-items: center;
        }

        .password-note::before {
            content: '🔐';
            margin-right: 6px;
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .scan-options {
                padding: 20px;
            }

            .toggle-label {
                padding: 10px 16px;
                font-size: 0.85rem;
            }

            .password-container {
                padding: 16px;
            }
        }
/* CRITICAL: Chart positioning and loader separation */
#chartContainer {
    display: block !important;
    position: relative !important;
    z-index: 10 !important;
    margin-bottom: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#enhancedLoader {
    position: relative !important;
    z-index: 2 !important;
    clear: both !important;
    margin-top: 20px !important;
}

/* Prevent any interference between chart and loader */
.chart-container + #enhancedLoader {
    margin-top: 20px;
    clear: both;
}

/* Ensure chart iframe is properly sized */
#dexscreenerChart {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 12px;
   
}
        

 .compact-loader {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
            border-radius: 12px;
            padding: 15px 20px;
            border: 1px solid rgba(102, 126, 234, 0.4);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
            margin: 15px 0;
            max-width: 600px;
        }

        .loader-content {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        /* Smooth spinning animation */
        .spinner {
            width: 24px;
            height: 24px;
            border: 3px solid rgba(102, 126, 234, 0.3);
            border-top: 3px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            flex-shrink: 0;
        }

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

        /* Terminal-style status */
        .status-terminal {
            background: rgba(0, 0, 0, 0.4);
            border-radius: 6px;
            padding: 8px 12px;
            font-family: 'Courier New', monospace;
            font-size: 0.85rem;
            color: #00d4ff;
            border: 1px solid rgba(0, 212, 255, 0.2);
            flex: 1;
            min-width: 0;
        }

        .status-text {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            transition: opacity 0.3s ease;
        }

        /* Success state */
        .compact-loader.success .spinner {
            border-top-color: #00ff88;
            border-right-color: #00ff88;
            animation: none;
        }

        .compact-loader.success .status-terminal {
            border-color: rgba(0, 255, 136, 0.3);
            background: rgba(0, 255, 136, 0.1);
        }

        .compact-loader.success .status-text {
            color: #00ff88;
        }

        .ai-score-display {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.ai-degen-container {
    flex-shrink: 0;
}

.ai-degen-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #00ff88;
}

.ai-middle-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-degen-info {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.degen-level-explanation {
    font-size: 0.9rem;
    color: #b0b7ff;
    line-height: 1.4;
    margin: 0;
}

.ai-confidence-display {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-conf-label {
    font-weight: bold;
    color: #b0b7ff;
    font-size: 0.9rem;
}

.ai-confidence-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.ai-confidence-progress {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #10b981);
    width: 0%;
    transition: width 0.8s ease;
}

.ai-conf-value {
    font-weight: bold;
    color: #00ff88;
    font-size: 0.9rem;
}

.ai-final-score-container {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #00ff88 0%, #10b981 100%);
    border-radius: 50%;
    border: 3px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.ai-final-score {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    margin: 0;
    line-height: 1;
}

.ai-score-text {
    font-size: 0.75rem;
    font-weight: bold;
    color: #000;
    margin: 0;
    text-align: center;
    margin-top: 4px;
}

/* Summary Section Below */
.ai-summary-section {
    margin-bottom: 25px;
}

.ai-summary-content {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    border-left: 4px solid #00ff88;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ai-score-display {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .ai-middle-info {
        order: 2;
    }
    
    .ai-final-score-container {
        order: 3;
    }
}

 /* Invite System Styles */
        .invite-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f0f23 100%);
            z-index: 999999;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(20px);
            animation: fadeIn 0.5s ease-out;
        }

        .invite-overlay.hidden {
            display: none;
        }

        .invite-container {
            background: rgba(0, 0, 0, 0.9);
            border: 2px solid #667eea;
            border-radius: 20px;
            padding: 40px;
            text-align: center;
            max-width: 500px;
            width: 90%;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
            animation: slideIn 0.6s ease-out;
            position: relative;
            overflow: hidden;
        }

        .invite-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #10b981);
            animation: shimmer 3s ease-in-out infinite;
        }

        .invite-logo {
            margin-bottom: 30px;
        }

        .invite-logo img {
            max-height: 80px;
            filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
        }

        .invite-title {
            color: #ffffff;
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 15px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .invite-subtitle {
            color: #b0b7ff;
            font-size: 1.1rem;
            margin-bottom: 30px;
            line-height: 1.5;
        }

        .invite-form {
            margin-bottom: 30px;
        }

        .invite-input {
            width: 100%;
            max-width: 300px;
            padding: 15px 20px;
            font-size: 1.1rem;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid rgba(102, 126, 234, 0.3);
            border-radius: 50px;
            color: #ffffff;
            text-align: center;
            font-family: 'Courier New', monospace;
            font-weight: bold;
            letter-spacing: 2px;
            text-transform: uppercase;
            outline: none;
            transition: all 0.3s ease;
            margin-bottom: 20px;
        }

        .invite-input:focus {
            border-color: #667eea;
            box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
            background: rgba(255, 255, 255, 0.15);
        }

        .invite-input::placeholder {
            color: rgba(176, 183, 255, 0.6);
            letter-spacing: 1px;
            text-transform: none;
        }

        .invite-submit {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 40px;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            overflow: hidden;
        }

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

        .invite-submit:hover::before {
            left: 100%;
        }

        .invite-submit:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
        }

        .invite-submit:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .invite-error {
            color: #ff6b6b;
            font-size: 0.9rem;
            margin-top: 15px;
            padding: 10px;
            background: rgba(255, 107, 107, 0.1);
            border-radius: 8px;
            border: 1px solid rgba(255, 107, 107, 0.3);
            display: none;
        }

        .invite-success {
            color: #51cf66;
            font-size: 0.9rem;
            margin-top: 15px;
            padding: 10px;
            background: rgba(81, 207, 102, 0.1);
            border-radius: 8px;
            border: 1px solid rgba(81, 207, 102, 0.3);
            display: none;
        }

        .invite-footer {
            color: #888;
            font-size: 0.8rem;
            margin-top: 30px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 20px;
        }


        /* Animations */
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        @keyframes slideIn {
            from { 
                opacity: 0;
                transform: translateY(-50px) scale(0.9);
            }
            to { 
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

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

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

        /* Responsive */
        @media (max-width: 768px) {
            .invite-container {
                padding: 30px 20px;
                margin: 20px;
            }

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

            .invite-subtitle {
                font-size: 1rem;
            }

            .invite-input {
                font-size: 1rem;
                padding: 12px 15px;
            }
        }

        /* Admin Panel Styles */
        .admin-panel {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(0, 0, 0, 0.9);
            border: 1px solid #667eea;
            border-radius: 10px;
            padding: 20px;
            z-index: 1000000;
            display: none;
            max-width: 300px;
        }

        .admin-panel.show {
            display: block;
        }

        .admin-title {
            color: #667eea;
            font-weight: bold;
            margin-bottom: 15px;
            text-align: center;
        }

        .admin-button {
            background: #667eea;
            color: white;
            border: none;
            padding: 8px 16px;
            border-radius: 5px;
            cursor: pointer;
            margin: 5px;
            font-size: 0.9rem;
        }

        .admin-input {
            width: 100%;
            padding: 8px;
            margin: 5px 0;
            border: 1px solid #667eea;
            border-radius: 5px;
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }

        .generated-code {
            background: rgba(81, 207, 102, 0.2);
            border: 1px solid #51cf66;
            border-radius: 5px;
            padding: 10px;
            margin: 10px 0;
            font-family: 'Courier New', monospace;
            color: #51cf66;
            text-align: center;
            font-weight: bold;
        }

        /* Mobile CSS - Responsive Layout */
@media (max-width: 768px) {
    /* Header and Navigation */
    .header-content {
        padding: 0 15px;
        flex-wrap: wrap;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(102, 126, 234, 0.2);
        max-height: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .mobile-nav.open {
        max-height: 100vh;
        height:100vh;
        top: 80px;
    }

    .results-section {

    gap: 0px;}

    .mobile-nav-content {
        padding: 20px;
        display: block;
    }

    .mobile-nav-item {
        margin-bottom: 10px;
        display: block;
    }

    .mobile-nav-link {
        display: block;
        color: #b0b7ff;
        text-decoration: none;
        padding: 15px 20px;
        font-weight: 600;
        border-radius: 12px;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background: rgba(102, 126, 234, 0.15);
        color: #ffffff;
        border-left-color: #667eea;
        transform: translateX(8px);
    }

    .mobile-dropdown-items {
        margin-left: 20px;
        padding-top: 10px;
        border-left: 1px solid rgba(102, 126, 234, 0.2);
        display: block;
    }

    .mobile-dropdown-item {
        display: block;
        color: #888;
        text-decoration: none;
        padding: 8px 15px;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

    .mobile-dropdown-item:hover {
        color: #ffffff;
        background: rgba(102, 126, 234, 0.1);
        border-radius: 8px;
    }

    /* Main Layout Stacking */
    .dashboard-container {
        padding: 10px;
    }

    .market-overview-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .mainleft,
    .market-intelligence {
        width: 100%;
        margin-bottom: 20px;
    }

    .dial-talk {
        flex-direction: column;
        align-items: center;
    }

    .fear-greed-dial {
        width: 100%;
        max-width: 300px;
        margin-bottom: 20px;
    }

    /* Trending Tokens Tabs - Stack vertically */
    .tab-navigation {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .tab-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 0.9rem;
    }

    .trending-tokens-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Token Analyzer */
    .analyzer-input {
        flex-direction: column;
        gap: 15px;
    }

    .input-group {
        width: 100%;
    }

    .input-group input,
    .input-group select {
        width: 100%;
        box-sizing: border-box;
    }

    .scan-options {
        flex-direction: column;
        gap: 15px;
    }

    .scan-type-toggle {
        flex-direction: row;
        gap: 10px;
    }

    .toggle-option {
        width: 100%;
    }

    .toggle-label {
        width: 100%;
        justify-content: center;
    }

    /* Chart Container */
    #dexscreenerChart {
        height: 70vh;
    }

    /* Token Profile Metrics - Stack in single column */
    .token-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .metric-card {
        padding: 15px;
        text-align: center;
    }

    /* Safety Analysis Dashboard */
    .safety-metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

     .risk-vectors-grid {
        grid-template-columns: 1fr ;
        gap: 15px;
    }

    .token-profile {
    padding: 10px;

}

.age-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f59e0b;
    margin-bottom: 5px;
}

    .safety-charts-section > div {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .chart-card {
        margin-bottom: 20px;
    }

    /* Safety Tabs - Stack vertically */
    .analysis-tabs {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .safety-tab-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        margin-bottom: 5px;
    }

    /* Deployer Analysis Table - Horizontal scroll */
    .deployer-tokens-table {
        font-size: 0.8rem;
        min-width: 800px;
    }

    .deployer-analysis {
        overflow-x: auto;
    }

    .deployer-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        display: grid!important;
    }

    /* Twitter Analysis - Stack sections */


    .who-to-follow {
        order: -1; /* Show "who to follow" first on mobile */
    }

    /* AI Analysis Section */
    .ai-score-display {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }

    .ai-metrics-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .ai-signals-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ai-advice-switcher {
        flex-direction: column;
        gap: 10px;
    }

    .ai-advice-toggle {
        width: 100%;
        text-align: center;
    }

    /* Enhanced Loading */
    .enhanced-loader .loading-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .loading-section {
        margin-bottom: 15px;
    }

    /* Psychology Cards - Single column */
    .psychology-dashboard > div {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Floating Widgets - Adjust position */
    .floating-chat-widget {
        bottom: 80px;
        right: 15px;
    }

    .floating-history-widget {
        bottom: 170px;
        right: 15px;
    }

    .chat-popup,
    .history-popup {
        width: calc(100vw - 30px);
        max-width: 350px;
        right: 15px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

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

    /* Small Mobile Adjustments */
    @media (max-width: 480px) {
        .trending-tokens-grid {
            grid-template-columns: 1fr 1fr;
        }

        .trending-tokens-section {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

        .ai-metrics-container {
            grid-template-columns: 1fr;
        }

        .safety-charts-section canvas {
            height: 200px !important;
        }

        .token-metrics {
            padding: 0px;
        }

        .metric-card {
            padding: 12px;
            font-size: 0.9rem;
        }

        /* Adjust font sizes for very small screens */
        .section-title {
            font-size: 1.2rem;
        }

        .metric-value {
            font-size: 1.5rem;
        }

        /* Stack admin panel controls */
        .admin-button-row {
            flex-direction: column;
            gap: 8px;
        }

        .universal-admin-button {
            width: 100%;
        }
    }
}

/* Landscape Mobile Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .mobile-nav.open {
        height: 100vh;
        overflow-y: auto;
    }

    #dexscreenerChart {
        height: 80vh;
    }

    .fear-greed-dial canvas {
        max-height: 100px;
    }
}

.safemetrics{display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 25px;}

/* Touch-friendly adjustments */
@media (max-width: 768px) {
    /* Larger touch targets */
    .tab-btn,
    .safety-tab-btn,
    .analyze-btn,
    .mobile-nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .main-content {

    max-width: 100%;
}

.search-trends-chart canvas {
    max-height: 280px !important;
    max-width: 400px !important;
}

.deployer-address {
    display: grid
;}

.risk-indicators {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border-left: 4px solid #e74c3c;
    display: grid !important
;
    align-items: center;
    gap: 20px;
}

.safemetrics{display: grid; grid-template-columns: 1fr; gap: 10px;}

        .dial-talk {
   display:none;
    }

    /* Better spacing for touch */
    .metric-card,
    .chart-card,
    .risk-vector-card {
        margin-bottom: 16px;
    }

    /* Ensure text is readable */
    .metric-value {
        font-size: 1.1rem;
        line-height: 1.2;
    }

    .metric-label {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
}

@media screen and (max-width:767px){.hidemobile{display:none !important;}  .search-intelligence-dashboard {
 
    display: none !important;
}

.address-text {font-size:10px;}

}

/* Deployer Analysis Mobile Fixes */
#deployer-analysis-section {
    margin-bottom: 60px; /* Add space before footer */
    min-height: auto; /* Allow dynamic height */
    overflow: visible; /* Ensure content isn't clipped */
    padding-bottom: 40px; /* Extra padding for breathing room */
    position: relative;
    z-index: 1; /* Lower z-index than AI section */
}

/* AI Analysis Section Fixes */
.ai-comprehensive-section {
    position: relative;
    z-index: 10; /* Higher z-index to stay above other content */
    margin-top: 40px;
    margin-bottom: 60px;
    clear: both; /* Clear any floated elements */
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Prevent horizontal overflow */
    box-sizing: border-box;
}

#ai-comprehensive-section {
    position: relative;
    z-index: 10;
    margin-top: 40px;
    margin-bottom: 60px;
    clear: both;
    width: 100%;
    max-width: 94%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 0 10px; /* Add horizontal padding */
}

/* AI Content Containers */
.ai-header-container,
.ai-results-wrapper,
.ai-score-display,
.ai-metrics-container,
.ai-signals-container,
.ai-advice-container,
.ai-summary-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* AI Score Display - prevent overflow */
.ai-score-display {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* AI Metrics Grid - responsive */
.ai-metrics-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.ai-metric-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 0; /* Allow shrinking */
}

/* AI Signals Container */
.ai-signals-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.ai-signals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* AI Advice Container */
.ai-advice-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.ai-advice-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 20px;
    gap: 4px;
}

.ai-advice-toggle {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #b0b7ff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    min-width: 0;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    #deployer-analysis-section {
        margin-bottom: 120px; /* More space before AI section */
        padding-bottom: 80px;
    }

    #ai-comprehensive-section {
        margin-top: 60px; /* More space after deployer section */
        padding: 0 15px;
        max-width:400px!important;
        clear: both;
    }

    .ai-score-display {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .ai-metrics-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }

    .ai-metric-box {
        padding: 15px 10px;
    }

    .ai-signals-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .ai-advice-switcher {
        flex-direction: column;
        gap: 8px;
    }

    .ai-advice-toggle {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .ai-advice-container,
    .ai-signals-container {
        padding: 20px 15px;
    }

    /* Prevent any width overflow */
    .ai-comprehensive-section * {
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    #deployer-analysis-section {
        margin-bottom: 140px; /* Even more space on small mobile */
        padding-bottom: 100px;
    }

    #ai-comprehensive-section {
        margin-top: 80px;
        padding: 0 10px;
            max-width:400px!important;
    }

    .ai-score-display {
        padding: 12px;
        gap: 12px;
    }

    .ai-metrics-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ai-metric-box {
        padding: 12px 8px;
        min-height: auto;
    }

    .ai-advice-container,
    .ai-signals-container {
        padding: 15px 10px;
        margin-bottom: 20px;
    }

    .ai-advice-toggle {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Force all AI content to fit screen width */
    .ai-comprehensive-section,
    .ai-comprehensive-section *,
    #ai-comprehensive-section,
    #ai-comprehensive-section * {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
}

/* Additional fixes for content flow */
.main-content {
    position: relative;
    z-index: 1;
}

.results-section {
    position: relative;
    z-index: 2;
}

/* Ensure proper stacking order */
.safety-analysis-dashboard {
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.deployer-tokens-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.deployer-tokens-table th,
.deployer-tokens-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
}

.deployer-tokens-table th {
    background: rgba(102, 126, 234, 0.2);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.deployer-tokens-table td {
    color: #e0e0e0;
    font-size: 0.85rem;
}

/* Table wrapper for horizontal scrolling */
.deployer-table-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 40px;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
}

/* Ensure main content has enough bottom padding */
.main-content-wrapper {
    padding-bottom: 120px; /* Space for footer */
    min-height: calc(100vh - 120px);
}

.dashboard-container {
    padding-bottom: 80px; /* Additional padding for content */
}

/* Footer positioning fixes */
.main-footer {
    position: relative !important;
    margin-top: 80px !important;
    clear: both !important;
    z-index: 10 !important;
}

/* Mobile responsive adjustments for deployer table */
@media (max-width: 768px) {
    .main-content-wrapper {
        padding-bottom: 200px; /* More space on mobile */
    }

    .deployer-tokens-table {
        font-size: 0.8rem;
        min-width: 800px; /* Force horizontal scroll */
    }

    .deployer-tokens-table th,
    .deployer-tokens-table td {
        padding: 10px 6px;
        min-width: 80px;
        font-size: 0.75rem;
    }

    .deployer-tokens-table th {
        font-size: 0.8rem;
    }

    /* Make specific columns more compact on mobile */
    .deployer-tokens-table th:nth-child(1),
    .deployer-tokens-table td:nth-child(1) {
        width: 40px;
        min-width: 40px;
    }

    .deployer-tokens-table th:nth-child(4),
    .deployer-tokens-table td:nth-child(4) {
        width: 100px;
        min-width: 100px;
    }

    /* Token image sizing */
    .token-image,
    .token-image-placeholder {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.7rem !important;
    }
}

@media (max-width: 480px) {
    .main-content-wrapper {
        padding-bottom: 240px; /* Extra space on small screens */
    }

    .deployer-tokens-table {
        font-size: 0.7rem;
        min-width: 700px; /* Ensure horizontal scroll */
    }

    .deployer-tokens-table th,
    .deployer-tokens-table td {
        padding: 8px 4px;
        min-width: 70px;
        font-size: 0.7rem;
    }

    .deployer-tokens-table th {
        font-size: 0.75rem;
    }

    /* Further compress columns on very small screens */
    .deployer-tokens-table th:nth-child(1),
    .deployer-tokens-table td:nth-child(1) {
        width: 35px;
        min-width: 35px;
    }

    .deployer-tokens-table th:nth-child(3),
    .deployer-tokens-table td:nth-child(3) {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Token image sizing for very small screens */
    .token-image,
    .token-image-placeholder {
        width: 40px !important;
        height: 40px !important;
        font-size: 0.6rem !important;
    }
}

/* Token image styling */
.token-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.token-image-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

/* Market cap color coding */
.market-cap-high {
    color: #00ff88 !important;
    font-weight: bold;
}

.market-cap-medium {
    color: #ffd93d !important;
    font-weight: bold;
}

.market-cap-low {
    color: #ff8c42 !important;
}

.market-cap-zero {
    color: #ff6b6b !important;
}

/* Liquidity cell styling */
.liquidity-cell {
    color: #64e4ff;
    font-weight: 600;
}

/* Token address styling */
.token-address {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #a0a0ff;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(160, 160, 255, 0.1);
    border: 1px solid rgba(160, 160, 255, 0.2);
    transition: all 0.2s ease;
}

.token-address:hover {
    background: rgba(160, 160, 255, 0.2);
    border-color: rgba(160, 160, 255, 0.4);
    transform: translateY(-1px);
}

/* Socials indicator */
.socials-yes {
    color: #00ff88;
}

.socials-no {
    color: #888;
}

.socials-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.socials-yes.socials-indicator {
    background: #00ff88;
}

.socials-no.socials-indicator {
    background: #888;
}

/* Table controls styling */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-info {
    color: #b0b7ff;
    font-size: 0.9rem;
}

.show-more-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Deployer header styling */
.deployer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.deployer-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deployer-stats {
    display: flex;
    gap: 20px;
}

.deployer-stat {
    text-align: center;
}

.deployer-stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.deployer-stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* Risk badge styling */
.risk-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.risk-low {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.risk-medium {
    background: rgba(255, 217, 61, 0.2);
    color: #ffd93d;
    border: 1px solid #ffd93d;
}

.risk-high {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.risk-unknown {
    background: rgba(136, 136, 136, 0.2);
    color: #888;
    border: 1px solid #888;
}

/* Deployer address styling */
.deployer-address {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.address-text {
    font-family: 'Courier New', monospace;
    color: #64e4ff;
    font-weight: bold;
    margin: 0 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(100, 228, 255, 0.1);
    transition: all 0.2s ease;
}

.address-text:hover {
    background: rgba(100, 228, 255, 0.2);
    transform: translateY(-1px);
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Mobile adjustments for deployer header */
@media (max-width: 768px) {
    .deployer-header {
        flex-direction: column;
        gap: 15px;
    }

    .deployer-stats {
        justify-content: space-around;
        width: 100%;
    }

    .deployer-stat-value {
        font-size: 1rem;
    }

    .deployer-stat-label {
        font-size: 0.75rem;
    }

    .table-controls {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .deployer-address {
        text-align: center;
    }

    .address-text {
        display: block;
        margin: 10px 0;
        word-break: break-all;
    }
}

/* Token image styling */
.token-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

.token-image-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    border: 2px solid rgba(102, 126, 234, 0.3);
}

/* Market cap color coding */
.market-cap-high {
    color: #00ff88 !important;
    font-weight: bold;
}

.market-cap-medium {
    color: #ffd93d !important;
    font-weight: bold;
}

.market-cap-low {
    color: #ff8c42 !important;
}

.market-cap-zero {
    color: #ff6b6b !important;
}

/* Liquidity cell styling */
.liquidity-cell {
    color: #64e4ff;
    font-weight: 600;
}

/* Token address styling */
.token-address {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: #a0a0ff;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(160, 160, 255, 0.1);
    border: 1px solid rgba(160, 160, 255, 0.2);
    transition: all 0.2s ease;
}

.token-address:hover {
    background: rgba(160, 160, 255, 0.2);
    border-color: rgba(160, 160, 255, 0.4);
    transform: translateY(-1px);
}

/* Socials indicator */
.socials-yes {
    color: #00ff88;
}

.socials-no {
    color: #888;
}

.socials-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}

.socials-yes.socials-indicator {
    background: #00ff88;
}

.socials-no.socials-indicator {
    background: #888;
}

/* Table controls styling */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.table-info {
    color: #b0b7ff;
    font-size: 0.9rem;
}

.show-more-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.show-more-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Deployer header styling */
.deployer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.deployer-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.deployer-stats {
    display: flex;
    gap: 20px;
}

.deployer-stat {
    text-align: center;
}

.deployer-stat-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
}

.deployer-stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 4px;
}

/* Risk badge styling */
.risk-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.risk-low {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
}

.risk-medium {
    background: rgba(255, 217, 61, 0.2);
    color: #ffd93d;
    border: 1px solid #ffd93d;
}

.risk-high {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.risk-unknown {
    background: rgba(136, 136, 136, 0.2);
    color: #888;
    border: 1px solid #888;
}

/* Deployer address styling */
.deployer-address {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.address-text {
    font-family: 'Courier New', monospace;
    color: #64e4ff;
    font-weight: bold;
    margin: 0 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(100, 228, 255, 0.1);
    transition: all 0.2s ease;
}

.address-text:hover {
    background: rgba(100, 228, 255, 0.2);
    transform: translateY(-1px);
}

.copy-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Mobile adjustments for deployer header */
@media (max-width: 768px) {
    .deployer-header {
        flex-direction: column;
        gap: 15px;
    }

 

    .deployer-stats {
        justify-content: space-around;
        width: 100%;
    }

    .deployer-stat-value {
        font-size: 1rem;
    }

    .deployer-stat-label {
        font-size: 0.75rem;
    }

    .table-controls {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .deployer-address {
        text-align: center;
    }

    .address-text {
        display: block;
        margin: 10px 0;
        word-break: break-all;
    }
}

/* Enhanced trending token display styles */
.trending-token.enhanced {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 140px;
    border: 1px solid #000;
}

.trending-token.enhanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.3);
}

.trending-token.enhanced .token-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px;
}

.token-header {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-bottom: 8px;
}

.trending-symbol {
    font-size: 1rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.risk-score {
    background-color: #00ff88;
    color: #000;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: bold;
    text-shadow: none;
    min-width: 25px;
    text-align: center;
}

.token-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    margin-bottom: 8px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.token-footer {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.trending-price {
    font-size: 0.9rem;
    font-weight: 600;
    color: #00ff88;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.risk-line {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: space-between;;
    gap: 4px;
}

.risk-score-inline {
    background-color: #00ff88;
    color: #000;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    text-shadow: none;
    min-width: 20px;
    text-align: center;
    display: inline-block;
}

.risk-text-inline {
    font-weight: bold;
    font-size: 0.65rem;
}

.view-only-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-weight: bold;
    z-index: 3;
}

/* Loading and error states */
.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 255, 136, 0.3);
    border-top: 3px solid #00ff88;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #ff6b6b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.error-details {
    font-size: 0.8rem;
    color: rgba(255, 107, 107, 0.7);
    margin-bottom: 10px;
}

.retry-btn {
    background: #00ff88;
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #00cc66;
    transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .trending-token.enhanced {
        min-height: 120px;
    }
    
    .trending-token.enhanced .token-content {
        padding: 0px;
        min-height: 120px;
    }
    
    .trending-symbol {
        font-size: 1rem;
    }
    
    .token-name {
        font-size: 0.75rem;
    }
    
    .trending-price {
        font-size: 0.8rem;
    }
    
    .risk-line {
        font-size: 0.6rem;
    }
    
    .risk-score-inline {
        font-size: 0.6rem;
        padding: 1px 3px;
    }
    
    .risk-text-inline {
        font-size: 0.6rem;
    }
}

/* Special styling for tokens without images */
.trending-token.enhanced:not([style*="background-image"]) {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.trending-token.enhanced:not([style*="background-image"]):hover {
    background: linear-gradient(135deg, #1e1e3a 0%, #1a2550 100%);
}

/* Category-specific styling */
.trending-token.trending {
    border-left: 3px solid #ff6b35;
}

.trending-token.volume {
    border-left: 3px solid #4ecdc4;
}

.trending-token.latest {
    border-left: 3px solid #45b7d1;
}

/* ==============================================
   MOBILE LAYOUT FIXES
   ============================================== */

/* Fix Google Trends Chart Sizing on Mobile */
@media (max-width: 768px) {
    /* Keep Google Trends visible but fix sizing */
    .search-intelligence-dashboard {

        padding: 15px !important;
        margin: 20px 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .search-intel-charts {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .search-trends-chart,
    .geo-heatmap-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 280px !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    .search-trends-chart canvas,
    .geo-heatmap-container canvas {
        max-width: 100% !important;
        max-height: 240px !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin: 0 auto !important;
    }
    
    /* Fix chart.js responsive behavior */
    .search-trends-chart .chartjs-render-monitor,
    .geo-heatmap-container .chartjs-render-monitor {
        max-width: 100% !important;
        max-height: 240px !important;
    }
    
    .search-intel-header {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .search-intel-metric {
        padding: 15px 10px !important;
        text-align: center !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .intel-value {
        font-size: 1.8rem !important;
    }
    
    .intel-label {
        font-size: 0.8rem !important;
    }
}

/* ==============================================
   SECTION STACKING AND SPACING FIXES
   ============================================== */

/* Ensure proper section stacking order */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Deployer Analysis Section Fixes */
#deployer-analysis-section,
.deployer-analysis {
    position: relative;
    z-index: 2;
    margin-bottom: 80px !important;
    padding-bottom: 40px;
    clear: both;
    width: 100%;
    overflow: visible;
    order: 2; /* Ensure it comes after other content */
}

/* Search Intelligence Dashboard */
.search-intelligence-dashboard {
    position: relative;
    z-index: 2;
    order: 3; /* After deployer section */
    margin: 40px 0;
}

/* AI Comprehensive Section Fixes */
#ai-comprehensive-section,
.ai-comprehensive-section {
    position: relative;
    z-index: 1;
    clear: both;
    margin-top: 60px !important;
    margin-bottom: 80px !important;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    order: 999; /* Force to bottom in flex containers */
}

/* Prevent overlapping */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* Footer spacing fixes */
.main-content-wrapper {
    min-height: calc(100vh - 120px);
    padding-bottom: 120px !important;
    position: relative;
}

.dashboard-container {
    padding-bottom: 100px !important;
}

.main-footer {
    position: relative !important;
    margin-top: 100px !important;
    clear: both !important;
    z-index: 999 !important;
}

/* ==============================================
   MOBILE SPECIFIC FIXES
   ============================================== */

@media (max-width: 768px) {
    /* Main content wrapper adjustments */
    .main-content-wrapper {
        padding-bottom: 200px !important;
    }
    
    .dashboard-container {
        padding: 10px 15px 150px 15px !important;
    }
    
    /* Section spacing on mobile */
    .main-content {
        gap: 40px !important;
    }
    
    /* Deployer Analysis Mobile Fixes */
    #deployer-analysis-section,
    .deployer-analysis {
        margin-bottom: 100px !important;
        padding-bottom: 60px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* AI Section Mobile Fixes */
    #ai-comprehensive-section,
    .ai-comprehensive-section {
        margin-top: 80px !important;
        margin-bottom: 100px !important;
        padding: 20px 10px !important;
        width: 100% !important;
        max-width: calc(100vw - 40px) !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        order: 999 !important; /* Force to very bottom */
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Force proper content flow */
    .ai-comprehensive-section > * {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }
    
    /* AI Score Display Mobile */
    .ai-score-display {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* AI Metrics Grid Mobile */
    .ai-metrics-container {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* AI Signals Mobile */
    .ai-signals-container {
        padding: 15px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .ai-signals-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* AI Advice Mobile */
    .ai-advice-container {
        padding: 15px 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .ai-advice-switcher {
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    .ai-advice-toggle {
        width: 100% !important;
        padding: 10px !important;
        font-size: 0.85rem !important;
    }
    
    /* Deployer Table Mobile Fixes */
    .deployer-table-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        margin-bottom: 40px !important;
        width: 100% !important;
        max-width: calc(100vw - 40px) !important;
    }
    
    .deployer-tokens-table {
        min-width: 800px !important;
        font-size: 0.8rem !important;
        width: 800px !important;
    }
    
    .deployer-tokens-table th,
    .deployer-tokens-table td {
        padding: 8px 6px !important;
        font-size: 0.75rem !important;
        white-space: nowrap !important;
    }
    
    /* Deployer Header Mobile */
    .deployer-header {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 15px !important;
    }
    
    .deployer-stats {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    /* Footer Mobile */
    .main-footer {
        margin-top: 120px !important;
    }
}

/* ==============================================
   SMALL MOBILE FIXES (480px and below)
   ============================================== */

@media (max-width: 480px) {
    /* Extra spacing for very small screens */
    .main-content-wrapper {
        padding-bottom: 250px !important;
    }
    
    .dashboard-container {
        padding: 10px 10px 180px 10px !important;
    }
    
    /* Section spacing */
    #deployer-analysis-section,
    .deployer-analysis {
        margin-bottom: 120px !important;
        padding-bottom: 80px !important;
    }
    
    #ai-comprehensive-section,
    .ai-comprehensive-section {
        margin-top: 100px !important;
        margin-bottom: 120px !important;
        padding: 15px 5px !important;
        max-width: calc(100vw - 20px) !important;
    }
    
    /* AI Metrics Single Column */
    .ai-metrics-container {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }
    
    .ai-metric-box {
        padding: 12px 8px !important;
        min-height: auto !important;
    }
    
    /* Deployer Table Very Small */
    .deployer-tokens-table {
        min-width: 700px !important;
        font-size: 0.7rem !important;
    }
    
    .deployer-tokens-table th,
    .deployer-tokens-table td {
        padding: 6px 4px !important;
        font-size: 0.7rem !important;
    }
    
    /* Token images smaller */
    .token-image,
    .token-image-placeholder {
        width: 80px !important;
        height: 80px !important;
        font-size: 0.6rem !important;
    }
    
    /* Footer */
    .main-footer {
        margin-top: 140px !important;
    }
}

/* ==============================================
   MOBILE SECTION ORDER FIXES
   ============================================== */

/* Force proper section ordering on mobile */
@media (max-width: 768px) {
    /* Parent container should be flex column */
    .results-section,
    .main-content,
    .dashboard-container > div {
        display: flex !important;
        flex-direction: column !important;
    }

    .news-ticker-container {
        flex-direction: row !important;}
    
    /* Explicit ordering for sections */
    .deployer-analysis,
    #deployer-analysis-section {
        order: 1 !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    .search-intelligence-dashboard {
        order: 2 !important;
        position: relative !important;
        z-index: 9 !important;
    }
    
    .ai-comprehensive-section,
    #ai-comprehensive-section {
        order: 3 !important;
        position: relative !important;
        z-index: 8 !important;
        margin-top: 60px !important;
    }
    
    /* Ensure no floating or absolute positioning interferes */
    .deployer-analysis *,
    .search-intelligence-dashboard *,
    .ai-comprehensive-section * {
        position: relative !important;
        float: none !important;
    }
    
    /* Exception for intentionally positioned elements */
    .floating-chat-widget,
    .floating-history-widget,
    .main-header {
        position: fixed !important;
    }
}

/* Add these classes temporarily to debug spacing */
.debug-spacing {
    border: 2px solid red !important;
    background: rgba(255, 0, 0, 0.1) !important;
}

.debug-ai-section {
    border: 2px solid blue !important;
    background: rgba(0, 0, 255, 0.1) !important;
}

.debug-deployer-section {
    border: 2px solid green !important;
    background: rgba(0, 255, 0, 0.1) !important;
}

/* ==============================================
   CHART SIZING FIXES FOR ALL CHARTS
   ============================================== */

/* Ensure all charts respect mobile bounds */
@media (max-width: 768px) {
    /* Global canvas fixes */
    canvas {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        object-fit: contain !important;
    }
    
    /* Chart.js specific fixes */
    .chartjs-render-monitor {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Container fixes */
    .chart-container,
    .chart-card,
    .search-trends-chart,
    .geo-heatmap-container,
    .holder-chart-container {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    
    /* Chart canvas containers */
    .chart-canvas-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 280px !important;
        position: relative !important;
        overflow: hidden !important;
    }
    
    /* DexScreener chart mobile */
    #dexscreenerChart {
        width: 100% !important;
        max-width: 100% !important;
        height: 70vh !important;
    }
    
    .chart-container {
        width: 100% !important;
        max-width: 100% !important;
        height: 70vh !important;
        margin: 20px 0 !important;
    }
    
    /* Force chart responsiveness */
    .chart-container iframe,
    .search-trends-chart iframe,
    .geo-heatmap-container iframe {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
    }

    .market-overview {padding:5px;}
}

/* Additional chart fixes for very small screens */
@media (max-width: 480px) {
    .search-trends-chart,
    .geo-heatmap-container {
        height: 250px !important;
    }
    
    .search-trends-chart canvas,
    .geo-heatmap-container canvas {
        max-height: 200px !important;
    }
    
    .chart-canvas-container {
        height: 250px !important;
    }
    
    #dexscreenerChart {
        height: 70vh !important;
    }
}

Mobile Geo Heatmap Fix
Interactive artifact 
The key changes you need to make in your main code:

Update your CSS - Add this to your existing styles:
css
/* Mobile-optimized geo heatmap container */
@media (max-width: 768px) {
    .geo-heatmap-container {
        /* Full width container on mobile */
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 0 20px;
        box-sizing: border-box;
    }

    #geoHeatmap {
        width: 400px !important; /* Fixed 400px width */
        height: 300px !important; /* Slightly taller on mobile */
        margin: 0 auto; /* Center the heatmap */
        overflow-x: visible;
        border-radius: 12px;
        background: rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(102, 126, 234, 0.3);
    }

    /* Ensure parent containers don't constrain width */
    .search-intel-charts,
    .search-intelligence-dashboard {
        overflow-x: visible !important;
    }
}



@media (max-width: 768px) {
    .news-ticker-container {
        flex-direction: row !important;
        display: none !important;
    }
}

 .bubblemap-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            text-decoration: none;
            padding: 10px 16px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }

        .bubblemap-link:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
            background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
        }

        .bubblemap-icon {
            font-size: 16px;
        }

        /* Alternative compact version */
        .bubblemap-link-compact {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(102, 126, 234, 0.2);
            color: #667eea;
            text-decoration: none;
            padding: 6px 12px;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 600;
            border: 1px solid rgba(102, 126, 234, 0.3);
            transition: all 0.2s ease;
        }

        .bubblemap-link-compact:hover {
            background: rgba(102, 126, 234, 0.3);
            color: #ffffff;
        }

/* ===== NEWS TICKER STYLES ===== */
.news-ticker-container {
    background: rgba(0, 20, 40, 0.8);
    border-top: 1px solid #667eea;
    border-bottom: 1px solid #667eea;
    padding: 8px 0;
    margin-bottom: 20px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    animation: fadeInTicker 0.8s ease-in-out;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.news-ticker {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 24px;
    margin-left: 80px; /* Space for label */
}

.news-ticker-content {
    display: inline-block;
    animation: tickerScrollRightToLeft 45s linear infinite;
    line-height: 24px;
    white-space: nowrap;
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

.news-ticker-label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 0 4px 4px 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-ticker-item {
    color: #ffffff;
    text-decoration: none;
    margin-right: 40px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    opacity: 0.9;
}

.news-ticker-item:hover {
    color: #667eea;
    transform: scale(1.05);
    opacity: 1;
    text-shadow: 0 0 5px rgba(102, 126, 234, 0.3);
}

.news-ticker-item::after {
    content: " • ";
    color: #667eea;
    margin-left: 40px;
    font-weight: bold;
}

.news-ticker-item:last-child::after {
    display: none;
}

/* ===== ANIMATIONS ===== */
@keyframes tickerScrollRightToLeft {
    0% {
        transform: translateX(50%); /* Start closer to middle */
        opacity: 0;
    }
    8% {
        opacity: 1;
    }
    92% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%);
        opacity: 1;
    }
}

@keyframes fadeInTicker {
    0% {
        opacity: 0;
        transform: translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced fade-in class */
.ticker-fade-in {
    animation: fadeInTicker 0.8s ease-in-out !important;
}

/* Pause on hover for desktop */
.news-ticker-container:hover .news-ticker-content {
    animation-play-state: paused;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    .news-ticker-container {
        margin-bottom: 18px;
        padding: 7px 0;
    }
    
    .news-ticker {
        margin-left: 75px;
        height: 22px;
    }
    
    .news-ticker-content {
        animation-duration: 80s !important;
        line-height: 22px;
    }
    
    .news-ticker-label {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
    
    .news-ticker-item {
        font-size: 0.8rem;
        margin-right: 35px;
    }
    
    .news-ticker-item::after {
        margin-left: 35px;
    }
}

@media (max-width: 768px) {
    .news-ticker-container {
        margin-bottom: 15px;
        padding: 6px 0;
        border-top: 1px solid rgba(102, 126, 234, 0.5);
        border-bottom: 1px solid rgba(102, 126, 234, 0.5);
    }
    
    .news-ticker {
        margin-left: 65px;
        height: 20px;
    }
    
    .news-ticker-content {
        animation-duration: 80s !important;
        line-height: 20px;
    }
    
    .news-ticker-label {
        font-size: 0.7rem;
        padding: 3px 8px;
        border-radius: 0 3px 3px 0;
    }
    
    .news-ticker-item {
        font-size: 0.75rem;
        margin-right: 30px;
    }
    
    .news-ticker-item::after {
        margin-left: 30px;
    }
    
    /* Don't pause on mobile hover */
    .news-ticker-container:hover .news-ticker-content {
        animation-play-state: running;
    }
}

@media (max-width: 480px) {
    .news-ticker-container {
        margin-bottom: 12px;
        padding: 5px 0;
    }
    
    .news-ticker {
        margin-left: 55px;
        height: 18px;
    }
    
    .news-ticker-content {
        animation-duration: 70s !important;
        line-height: 18px;
    }
    
    .news-ticker-label {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    .news-ticker-item {
        font-size: 0.7rem;
        margin-right: 25px;
    }
    
    .news-ticker-item::after {
        margin-left: 25px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.news-ticker-content {
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .news-ticker-container {
        background: rgba(0, 0, 0, 0.5);
        border-color: rgba(102, 126, 234, 0.6);
    }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    .news-ticker-content {
        animation-duration: 80s !important;
    }
    
    .news-ticker-container {
        animation: none;
    }
    
    .ticker-fade-in {
        animation: none !important;
        opacity: 1;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .news-ticker-item {
        color: #ffffff;
        font-weight: bold;
    }
    
    .news-ticker-label {
        background: #000000;
        color: #ffffff;
        border: 2px solid #ffffff;
    }
}

 /* Button Styles */
        .trenches-button {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            font-size: 16px;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        }

        .trenches-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }

        .trenches-button:active {
            transform: translateY(0);
        }

        /* Modal Overlay */
        .modal-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal-overlay.show {
            display: flex;
            justify-content: center;
            align-items: center;
            opacity: 1;
        }

        /* Modal Container */
        .modal-container {
            background: white;
            border-radius: 12px;
            width: 90%;
            max-width: 900px;
            max-height: 90vh;
            position: relative;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            display: flex;
            flex-direction: column;
            transform: scale(0.7);
            transition: transform 0.3s ease;
        }

        .modal-overlay.show .modal-container {
            transform: scale(1);
        }

        /* Modal Header */
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid #e5e7eb;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-radius: 12px 12px 0 0;
        }

        .modal-title {
            font-size: 24px;
            font-weight: 700;
            margin: 0;
        }

        .close-button {
            background: none;
            border: none;
            font-size: 28px;
            color: white;
            cursor: pointer;
            padding: 0;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: background-color 0.2s ease;
        }

        .close-button:hover {
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* Modal Content */
        .modal-content {
            flex: 1;
            overflow: hidden;
            position: relative;
        }

        .modal-iframe {
            width: 100%;
            height: 70vh;
            border: none;
            border-radius: 0 0 12px 12px;
        }

        /* Loading State */
        .loading-spinner {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            border: 4px solid #f3f3f3;
            border-top: 4px solid #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        /* Responsive Design */
        @media (max-width: 768px) {
            .modal-container {
                width: 95%;
                max-height: 95vh;
            }
            
            .modal-header {
                padding: 16px 20px;
            }
            
            .modal-title {
                font-size: 20px;
            }
            
            .modal-iframe {
                height: 60vh;
            }
        }

        /* Error State */
        .error-message {
            display: none;
            text-align: center;
            padding: 40px 20px;
            color: #ef4444;
            font-size: 16px;
        }