/* ===== COCO TRADING SIGNALS STYLES - FIBONACCI SWING TRADING VERSION (OPTIMIZED) ===== */

/* ===== GRID POSITIONS - SAME SIZE AS CHAT BOX ===== */
.crypto-trading-inline {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: relative;
    height: 700px; /* Same as chat-interface */
    max-height: 700px;
    overflow: hidden;
}

.news-inline-bottom {
    grid-column: 2 !important;
    grid-row: 2 !important;
    position: relative;
}

/* ===== MAIN TRADING CARD - MATCHED TO CHAT BOX ===== */
.trading-card {
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(15, 15, 30, 0.95) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 24px;
    padding: 1.5rem;
    backdrop-filter: blur(30px);
    box-shadow: 
        0 20px 60px rgba(245, 158, 11, 0.15), 
        0 0 100px rgba(245, 158, 11, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    height: 700px; /* Exact same as chat-container */
    max-height: 700px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

/* ===== HEADER - COMPACT ===== */
.trading-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    flex-shrink: 0;
}

.trading-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.trading-title i {
    font-size: 1.2rem;
    color: #f59e0b;
    animation: pulse 2s infinite;
}

.trading-title h2 {
    font-size: 1.2rem;
    margin: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.trading-controls {
    display: flex;
    gap: 0.5rem;
}

.refresh-signals-btn {
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #f59e0b;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.refresh-signals-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.refresh-signals-btn.spinning i {
    animation: spin 1s linear;
}

/* ===== TIMEFRAME SELECTOR - COMPACT ===== */
.timeframe-selector {
    display: flex;
    gap: 0.3rem;
    margin-bottom: 0.75rem;
    padding: 0.35rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    justify-content: center;
    flex-shrink: 0;
}

.timeframe-btn {
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.65rem;
    font-weight: 600;
}

.timeframe-btn:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    transform: translateY(-1px);
    border-color: rgba(245, 158, 11, 0.4);
}

.timeframe-btn.active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
}

/* ===== CHART CONTAINER - BIGGER! ===== */
.chart-container {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    height: 240px; /* INCREASED from 180px to 240px */
    position: relative;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.chart-container canvas {
    border-radius: 8px;
}

.chart-container svg {
    width: 100%;
    height: 100%;
}

/* ===== SIGNALS CONTAINER WITH SCROLL ===== */
#signalsContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
}

/* Scrollbar styling */
#signalsContainer::-webkit-scrollbar {
    width: 8px;
}

#signalsContainer::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#signalsContainer::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 4px;
}

#signalsContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

/* ===== TOKEN SIGNALS GRID - 4 COLUMNS COMPACT ===== */
.token-signals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    padding: 0.25rem 0;
}

/* ===== ULTRA-KOMPAKTE TOKEN SIGNAL CARD ===== */
.token-signal-card {
    display: flex;
    flex-direction: column;
    padding: 0.6rem;
    background: linear-gradient(135deg, 
        rgba(15, 27, 34, 0.98) 0%, 
        rgba(10, 20, 30, 0.95) 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: auto;
}

.token-signal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, 
        rgba(245, 158, 11, 0.05) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.token-signal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.2);
}

.token-signal-card:hover::before {
    opacity: 1;
}

.token-signal-card.active {
    border-color: #f59e0b !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.35) !important;
    background: linear-gradient(135deg, 
        rgba(245, 158, 11, 0.08) 0%, 
        rgba(217, 119, 6, 0.05) 100%) !important;
}

.token-signal-card:active {
    transform: scale(0.98);
}

/* Special style for COCO */
.token-signal-card.coco {
    background: linear-gradient(135deg, 
        rgba(106, 90, 205, 0.12) 0%, 
        rgba(147, 112, 219, 0.08) 100%);
    border-color: rgba(147, 112, 219, 0.3);
}

.token-signal-card.coco::before {
    background: radial-gradient(circle at top right, 
        rgba(147, 112, 219, 0.1) 0%, 
        transparent 70%);
}

.token-signal-card.coco:hover {
    border-color: rgba(147, 112, 219, 0.6);
    box-shadow: 0 4px 15px rgba(147, 112, 219, 0.3);
}

/* ===== ULTRA-KOMPAKTER TOKEN HEADER ===== */
.token-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.35rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.token-icon-large {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-right: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.token-icon-large::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: iconShine 3s infinite;
}

/* Token Symbols */
.token-icon-large.btc {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.2) 0%, rgba(242, 169, 0, 0.15) 100%);
    border-color: rgba(247, 147, 26, 0.4);
    color: #f7931a;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

.token-icon-large.eth {
    background: linear-gradient(135deg, rgba(98, 126, 234, 0.2) 0%, rgba(142, 142, 245, 0.15) 100%);
    border-color: rgba(98, 126, 234, 0.4);
    color: #627eea;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
}

.token-icon-large.sol {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.2) 0%, rgba(153, 69, 255, 0.15) 100%);
    border-color: rgba(0, 255, 163, 0.4);
    color: #00ffa3;
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 1.5rem;
}

.token-icon-large.coco {
    background: linear-gradient(135deg, rgba(147, 112, 219, 0.25) 0%, rgba(106, 90, 205, 0.2) 100%);
    border-color: rgba(147, 112, 219, 0.5);
    font-size: 1.1rem;
    animation: cocoGlow 2s ease-in-out infinite;
}

.token-name-large {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== ULTRA-KOMPAKTE PRICE SECTION ===== */
.token-price-section {
    text-align: center;
    margin-bottom: 0.35rem;
}

.token-price-large {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.1rem;
    transition: all 0.3s ease;
}

.token-change {
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
}

.token-change.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.token-change.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.token-change i {
    font-size: 0.6rem;
}

/* ===== ULTRA-KOMPAKTE METRICS - FIBONACCI FOCUSED ===== */
.token-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.metric-box {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.25rem;
    border-radius: 5px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.metric-box:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(245, 158, 11, 0.2);
}

.metric-label {
    font-size: 0.5rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 0.1rem;
    font-weight: 700;
}

.metric-value {
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

/* Fibonacci level coloring */
.metric-value[style*="color: #f59e0b"] {
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

/* RSI coloring */
.metric-value.high {
    color: #ef4444;
    text-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.metric-value.low {
    color: #10b981;
    text-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.metric-value.neutral {
    color: #f59e0b;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

/* ===== ULTRA-KOMPAKTER SIGNAL BADGE - SWING TRADING STYLE ===== */
.signal-section {
    margin-top: auto;
}

.signal-badge-large {
    display: block;
    width: 100%;
    padding: 0.4rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signal-badge-large.buy {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.signal-badge-large.buy:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(16, 185, 129, 0.4);
}

.signal-badge-large.sell {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.3);
}

.signal-badge-large.sell:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(239, 68, 68, 0.4);
}

.signal-badge-large.hold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.signal-badge-large.hold:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 15px rgba(245, 158, 11, 0.4);
}

.signal-badge-large:active {
    transform: scale(0.98);
}

.signal-badge-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: signalShine 3s infinite;
}

.signal-strength-text {
    font-size: 0.55rem;
    opacity: 0.9;
    font-weight: 600;
    margin-top: 0.05rem;
    letter-spacing: 0.2px;
}

/* ===== FIBONACCI INFO BOX - ADJUSTED FOR BIGGER CHART ===== */
.fibonacci-info-box {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.95) 0%, rgba(15, 15, 30, 0.9) 100%);
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 1rem;
    z-index: 100;
    min-width: 220px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.fibonacci-info-box h4 {
    font-size: 0.9rem !important;
    color: #f59e0b !important;
    margin-bottom: 0.75rem !important;
    font-weight: 600;
}

.fibonacci-info-box .fib-content {
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
}

/* ===== CHART TOKEN NAME - ADJUSTED POSITION ===== */
.chart-token-name {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    z-index: 10;
    animation: slideInRight 0.3s ease;
}

/* ===== LOADING STATE ===== */
.signal-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.signal-loading i {
    font-size: 1.75rem;
    color: #f59e0b;
    margin-bottom: 0.75rem;
    display: block;
    animation: spin 1s linear infinite;
}

.signal-loading p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== TRADING FOOTER - COMPACT ===== */
.trading-footer {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(245, 158, 11, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.trading-footer p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.trading-footer i {
    color: rgba(245, 158, 11, 0.6);
    font-size: 0.6rem;
}

.disclaimer {
    color: rgba(239, 68, 68, 0.6);
    font-weight: 600;
}

.disclaimer i {
    color: rgba(239, 68, 68, 0.6);
}

/* ===== ANIMATIONS ===== */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

@keyframes signalShine {
    0% { left: -100%; }
    50%, 100% { left: 150%; }
}

@keyframes iconShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes cocoGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(147, 112, 219, 0.5);
    }
    50% {
        box-shadow: 0 0 15px rgba(147, 112, 219, 0.8);
    }
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes priceUpdate {
    0% { 
        transform: scale(1); 
    }
    50% { 
        transform: scale(1.08); 
        color: #f59e0b; 
    }
    100% { 
        transform: scale(1); 
    }
}

/* ===== CHART SPECIFIC STYLES ===== */
.chart-point-group:hover .chart-point { 
    opacity: 1 !important; 
}

.fibonacci-group line {
    transition: opacity 0.3s ease;
}

.fibonacci-group:hover line {
    opacity: 0.8 !important;
}

/* ===== NOTIFICATION STYLES ===== */
.trading-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideInRight 0.3s ease;
    max-width: 280px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
}

.trading-notification.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(5, 150, 105, 0.95) 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
}

.trading-notification.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.95) 100%);
    border: 1px solid rgba(239, 68, 68, 0.5);
}

.trading-notification.info {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(217, 119, 6, 0.95) 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1400px) {
    .token-signals-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .trading-card {
        height: 700px;
        max-height: 700px;
    }
    
    .chart-container {
        height: 220px; /* Slightly smaller on medium screens */
    }
}

@media (max-width: 1200px) {
    .trading-card {
        height: 650px;
        max-height: 650px;
    }
    
    .chart-container {
        height: 200px;
    }
}

@media (max-width: 768px) {
    /* Grid reset for mobile */
    .ai-hub-content-wrapper {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto auto !important;
    }
    
    .crypto-trading-inline {
        grid-column: 1 !important;
        grid-row: auto !important;
        height: 500px !important;
        max-height: 500px !important;
    }
    
    .trading-card {
        height: 100%;
        max-height: 100%;
        padding: 1rem;
        border-radius: 16px;
    }
    
    .token-signals-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .chart-container {
        height: 160px;
        padding: 0.75rem;
    }
    
    .timeframe-selector {
        flex-wrap: wrap;
        padding: 0.3rem;
    }
    
    .timeframe-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.6rem;
    }
    
    .token-header {
        flex-direction: row;
        justify-content: flex-start;
        padding-bottom: 0.3rem;
    }
    
    .token-icon-large {
        width: 28px;
        height: 28px;
        font-size: 1.2rem;
    }
    
    .token-icon-large.sol {
        font-size: 1.4rem;
    }
    
    .token-icon-large.coco {
        font-size: 1rem;
    }
    
    .token-name-large {
        font-size: 0.9rem;
    }
    
    .token-price-large {
        font-size: 0.95rem;
    }
    
    .signal-badge-large {
        font-size: 0.75rem;
        padding: 0.35rem;
        letter-spacing: 0.8px;
    }
    
    .trading-title h2 {
        font-size: 1rem;
    }
    
    .trading-title i {
        font-size: 1rem;
    }
    
    /* Fibonacci Info Box Responsive */
    .fibonacci-info-box {
        top: 8px !important;
        left: 8px !important;
        padding: 0.75rem !important;
        min-width: 180px !important;
    }
    
    .fibonacci-info-box h4 {
        font-size: 0.8rem !important;
    }
    
    .fibonacci-info-box .fib-content {
        font-size: 0.7rem !important;
    }
    
    .chart-token-name {
        top: 8px;
        right: 8px;
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .crypto-trading-inline {
        height: 450px !important;
        max-height: 450px !important;
    }
    
    .trading-card {
        border-radius: 14px;
        padding: 0.75rem;
    }
    
    .chart-container {
        height: 140px;
        padding: 0.5rem;
    }
    
    .token-signal-card {
        padding: 0.5rem;
        border-radius: 8px;
    }
    
    .token-metrics-grid {
        gap: 0.2rem;
    }
    
    .metric-box {
        padding: 0.2rem;
        border-radius: 4px;
    }
    
    .metric-label {
        font-size: 0.45rem;
    }
    
    .metric-value {
        font-size: 0.7rem;
    }
    
    .signal-strength-text {
        font-size: 0.5rem;
    }
    
    .token-change {
        font-size: 0.65rem;
        padding: 0.08rem 0.25rem;
    }
    
    .trading-header {
        margin-bottom: 0.5rem;
        padding-bottom: 0.3rem;
    }
    
    .trading-footer {
        font-size: 0.6rem;
        padding-top: 0.4rem;
    }
    
    /* Fibonacci Info Box Small Screens */
    .fibonacci-info-box {
        font-size: 0.6rem !important;
        padding: 0.5rem !important;
        min-width: 150px !important;
    }
}

/* ===== HOVER EFFECTS ===== */
@media (hover: hover) {
    .token-signal-card:hover .token-price-large {
        color: #f59e0b;
        transform: scale(1.05);
    }
    
    .token-signal-card:hover .token-icon-large::after {
        animation-duration: 1.5s;
    }
    
    .metric-box:hover .metric-value {
        transform: scale(1.05);
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .trading-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .refresh-signals-btn,
    .timeframe-selector {
        display: none;
    }
}

/* ===== DARK MODE OPTIMIZATIONS ===== */
@media (prefers-color-scheme: dark) {
    .trading-card {
        background: linear-gradient(135deg, rgba(5, 5, 10, 0.98) 0%, rgba(10, 10, 20, 0.95) 100%);
    }
    
    .token-signal-card {
        background: linear-gradient(135deg, 
            rgba(10, 15, 20, 0.98) 0%, 
            rgba(5, 10, 15, 0.95) 100%);
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .token-signal-card {
        border-width: 3px;
    }
    
    .signal-badge-large {
        font-weight: 900;
        border: 2px solid currentColor;
    }
    
    .metric-value {
        font-weight: 800;
    }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== SCROLLBAR STYLING ===== */
.token-signals-grid::-webkit-scrollbar,
.chart-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.token-signals-grid::-webkit-scrollbar-track,
.chart-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.token-signals-grid::-webkit-scrollbar-thumb,
.chart-container::-webkit-scrollbar-thumb {
    background: rgba(245, 158, 11, 0.3);
    border-radius: 3px;
}

.token-signals-grid::-webkit-scrollbar-thumb:hover,
.chart-container::-webkit-scrollbar-thumb:hover {
    background: rgba(245, 158, 11, 0.5);
}

/* ===== UTILITY CLASSES ===== */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.text-center {
    text-align: center !important;
}

.mt-auto {
    margin-top: auto !important;
}

/* END OF trading-signals.css */
