* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

html {
    background: #0A0A0F !important;
    overflow-x: hidden;
    height: 100%;
}

body {
    background: #0A0A0F !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    height: 100%;
    position: relative;
}

.futuristic-bg {
    background: radial-gradient(ellipse at top, #0A0A0F 0%, #1A1A2E 50%, #0A0A0F 100%) !important;
    position: relative;
    min-height: 100vh;
}

.glass-card {
    background: rgba(26, 26, 46, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.neon-border {
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    background: linear-gradient(45deg, #00D4FF, #8B5CF6, #00FF88, #EC4899);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: glow 3s ease-in-out infinite;
}

.cyber-grid {
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: pulse-slow 4s ease-in-out infinite;
}

/* Force dark theme */
html, body {
    background: #0A0A0F !important;
    color: #FFFFFF !important;
    overflow-x: hidden;
}

.min-h-screen {
    background: #0A0A0F !important;
}

/* Fix transaction list overflow */
.transaction-row {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.transaction-row > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* Futuristic Dynamic Buttons */
.futuristic-profile-btn {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.futuristic-profile-btn:hover::before {
    left: 100%;
}

.futuristic-profile-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.futuristic-profile-btn:active {
    transform: translateY(0) scale(0.98);
}

.futuristic-profile-btn .fa-user-circle {
    animation: subtle-pulse 2s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(0, 212, 255, 0.3);
    }
    50% { 
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.6), 0 0 15px rgba(0, 212, 255, 0.3);
    }
}

.futuristic-refresh-btn {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 136, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 255, 136, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.futuristic-refresh-btn:hover::before {
    left: 100%;
}

.futuristic-refresh-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 
        0 8px 25px rgba(0, 255, 136, 0.3),
        0 0 20px rgba(0, 255, 136, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.futuristic-refresh-btn:active {
    transform: translateY(0) scale(0.98);
}

.futuristic-refresh-btn .refresh-icon {
    transition: transform 0.3s ease;
}

.futuristic-refresh-btn:hover .refresh-icon {
    transform: rotate(180deg);
}

.futuristic-refresh-btn.loading .refresh-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Performance Optimizations */
.transaction-row {
    will-change: transform, opacity;
    contain: layout style paint;
}

.new-transaction {
    will-change: transform, opacity;
    contain: layout style paint;
}

/* Optimize animations for better performance */
@keyframes slideInFromTop {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.new-transaction {
    animation: slideInFromTop 0.3s ease-out;
}

/* GPU acceleration for smooth scrolling */
.transactions-container {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Optimize chart containers */
.chart-container {
    will-change: transform;
    contain: layout style paint;
}

/* TFT Prediction Styles */
.prediction-direction {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prediction-direction.up {
    color: #10B981;
}

.prediction-direction.down {
    color: #EF4444;
}

.direction-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.5);
    border: 2px solid currentColor;
}

.prediction-history-item {
    transition: all 0.3s ease;
}

.prediction-history-item:hover {
    background: rgba(31, 41, 55, 0.5) !important;
    transform: translateX(4px);
}

.direction-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(31, 41, 55, 0.5);
}

.direction-indicator.up {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.direction-indicator.down {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
}

.prediction-content {
    animation: fadeInUp 0.5s ease-out;
}

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

.prediction-card {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Side-by-side prediction layout */
.prediction-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1280px) {
    .prediction-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.prediction-card-side {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.prediction-history-container {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(75, 85, 99, 0.5) transparent;
}

.prediction-history-container::-webkit-scrollbar {
    width: 6px;
}

.prediction-history-container::-webkit-scrollbar-track {
    background: transparent;
}

.prediction-history-container::-webkit-scrollbar-thumb {
    background: rgba(75, 85, 99, 0.5);
    border-radius: 3px;
}

.prediction-history-container::-webkit-scrollbar-thumb:hover {
    background: rgba(75, 85, 99, 0.7);
}

.prediction-status .text-neon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Responsive Layout Optimizations */
/* Keep 1440p+ screens with original layout (no max-width constraints) */

@media (max-width: 1366px) {
    .main-container {
        max-width: 1200px;
    }
}

@media (max-width: 1080px) {
    .main-container {
        max-width: 1000px;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .glass-card {
        padding: 1rem;
    }
}

/* Coming Soon Diagonal Overlay */
.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 10;
    pointer-events: none;
}

.coming-soon-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 3rem;
    color: rgba(0, 212, 255, 0.3);
    text-shadow: 
        2px 2px 0px rgba(0, 212, 255, 0.2),
        4px 4px 0px rgba(0, 212, 255, 0.1);
    white-space: nowrap;
    letter-spacing: 0.2em;
    user-select: none;
    animation: diagonalGlow 4s ease-in-out infinite;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
    .coming-soon-text {
        font-size: 2.5rem;
        letter-spacing: 0.15em;
    }
}

@media (max-width: 768px) {
    .coming-soon-text {
        font-size: 2rem;
        letter-spacing: 0.1em;
        transform: translate(-50%, -50%) rotate(-12deg);
    }
}

@media (max-width: 640px) {
    .coming-soon-text {
        font-size: 1.5rem;
        letter-spacing: 0.08em;
        transform: translate(-50%, -50%) rotate(-10deg);
    }
}

@media (max-width: 480px) {
    .coming-soon-text {
        font-size: 1.2rem;
        letter-spacing: 0.05em;
        transform: translate(-50%, -50%) rotate(-8deg);
    }
}

@keyframes diagonalGlow {
    0%, 100% { 
        color: rgba(0, 212, 255, 0.3);
        text-shadow: 
            2px 2px 0px rgba(0, 212, 255, 0.2),
            4px 4px 0px rgba(0, 212, 255, 0.1);
    }
    50% { 
        color: rgba(0, 212, 255, 0.5);
        text-shadow: 
            2px 2px 0px rgba(0, 212, 255, 0.3),
            4px 4px 0px rgba(0, 212, 255, 0.2);
    }
}

@media (max-width: 768px) {
    .main-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .stat-card h3 {
        font-size: 1rem;
    }
    
    .stat-card p {
        font-size: 0.75rem;
    }
}

/* Prevent content from being cut off */
body {
    overflow-x: hidden;
}

/* Ensure proper scrolling on mobile */
@media (max-height: 800px) {
    .min-h-screen {
        min-height: 100vh;
        overflow-y: auto;
    }
}

/* Disclaimer Button Styling */
.disclaimer-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

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

.disclaimer-btn:hover::before {
    left: 100%;
}

.disclaimer-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 212, 255, 0.6);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.3),
        0 0 20px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.disclaimer-btn:active {
    transform: translateY(0) scale(0.98);
}

.disclaimer-btn i {
    transition: transform 0.3s ease;
}

/* Profile Menu Enhancements */
.user-menu {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-menu.menu-hidden {
    opacity: 0;
    transform: translateY(-10px);
}

.menu-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.4s ease;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: rgba(0, 212, 255, 0.1);
    color: #00D4FF;
    transform: translateX(4px);
}

/* Mobile Responsive Styles */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .stat-card h3 {
        font-size: 1rem;
    }
    
    .stat-card p {
        font-size: 0.75rem;
    }
    
    .transaction-row {
        display: block;
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 0.5rem;
        background: rgba(10, 10, 15, 0.8);
        border: 1px solid rgba(0, 212, 255, 0.1);
    }
    
    .transaction-row > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;
        padding: 0.25rem 0;
    }
    
    .transaction-row > div:last-child {
        margin-bottom: 0;
    }
    
    .transaction-row > div::before {
        content: attr(data-label);
        font-weight: 600;
        color: #9CA3AF;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }
    
    .transaction-row > div:last-child::before {
        content: attr(data-label);
    }
    
    .transaction-row .font-mono {
        font-size: 0.875rem;
    }
    
    .transaction-row .font-orbitron {
        font-size: 0.875rem;
    }
    
    .chart-container {
        height: 200px !important;
    }
    
    .glass-card {
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) and (min-width: 641px) {
    .transaction-row {
        grid-template-columns: repeat(6, 1fr);
        font-size: 0.875rem;
    }
    .transaction-row > div:nth-child(1) { grid-column: span 2; }
    .transaction-row > div:nth-child(2) { grid-column: span 2; }
    .transaction-row > div:nth-child(3) { grid-column: span 2; }
    .transaction-row > div:nth-child(4) { grid-column: span 3; }
    .transaction-row > div:nth-child(5) { grid-column: span 3; }
    .transaction-row > div:nth-child(6) { grid-column: span 6; }
}

@media (max-width: 1024px) {
    .chart-container {
        height: 250px;
    }
}

/* Ensure main container doesn't create scrollbars */
.main-container {
    overflow-x: hidden;
}

.stat-card {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #00D4FF;
    box-shadow: 
        0 10px 25px rgba(0, 212, 255, 0.2),
        0 0 30px rgba(0, 212, 255, 0.1);
}

/* RSI Indicator Card Styles */
#rsiCard {
    cursor: pointer;
}

#rsiCard .rsi-timeframe-item {
    transition: all 0.2s ease;
}

#rsiCard .rsi-timeframe-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

#rsiCard .rsi-timeframe-item.active {
    background: rgba(37, 99, 235, 0.5) !important;
    border-color: rgba(59, 130, 246, 0.8) !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

#rsiMainValue {
    cursor: pointer;
    transition: all 0.3s ease;
}

#rsiMainValue:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px currentColor;
}

.rsi-loading-indicator {
    transition: opacity 0.3s ease;
}

/* VWAP Indicator Card Styles */
#vwapCard {
    cursor: pointer;
}

#vwapCard .vwap-timeframe-item {
    transition: all 0.2s ease;
}

#vwapCard .vwap-timeframe-item:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

#vwapCard .vwap-timeframe-item.active {
    background: rgba(168, 85, 247, 0.5) !important;
    border-color: rgba(192, 132, 252, 0.8) !important;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

#vwapMainValue {
    cursor: pointer;
    transition: all 0.3s ease;
}

#vwapMainValue:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px currentColor;
}

.vwap-loading-indicator {
    transition: opacity 0.3s ease;
}

.transaction-row {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.transaction-row:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateX(5px);
}

.transaction-row.new-transaction {
    animation: cyberPulse 1.5s ease-out;
}

.btn-primary {
    background: linear-gradient(135deg, #00D4FF 0%, #8B5CF6 100%);
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::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.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(0, 212, 255, 0.4),
        0 0 30px rgba(0, 212, 255, 0.3);
}

.logo-glow {
    text-shadow: 
        0 0 20px #00D4FF,
        0 0 40px #00D4FF,
        0 0 40px #00D4FF;
    animation: shine-logo 2s ease-in-out infinite alternate;
}

.data-flow {
    position: relative;
    overflow: hidden;
}

.data-flow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00D4FF, transparent);
    animation: dataFlow 3s linear infinite;
}

.threshold-slider {
    margin-left: 20px;
    -webkit-appearance: none;
    appearance: none;
    width: 100% !important;
    height: 6px !important;
    background: rgba(55, 65, 81, 0.5);
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 200px;
}

.threshold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px !important;
    height: 14px !important;
    background: #00D4FF;
    border-radius: 2px;
    cursor: pointer;
    border: 2px solid #00D4FF;
    box-shadow: 
        0 0 5px rgba(0, 212, 255, 0.3),
        inset 0 0 4px rgba(255, 255, 255, 0.4),
        inset 2px 2px 0 rgba(255, 255, 255, 0.6),
        inset -2px -2px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    transform: rotate(45deg);
}

.threshold-slider::-webkit-slider-thumb::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #00D4FF;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: rotate(45deg);
}

.threshold-slider::-webkit-slider-thumb:hover {
    transform: rotate(45deg) scale(1.2) translateY(-2px);
    box-shadow: 
        0 0 15px #00D4FF,
        0 0 25px rgba(0, 212, 255, 0.8),
        0 0 40px rgba(0, 212, 255, 0.5),
        inset 0 0 6px rgba(255, 255, 255, 0.6),
        inset 3px 3px 0 rgba(255, 255, 255, 0.8),
        inset -3px -3px 0 rgba(0, 0, 0, 0.4);
}

.threshold-slider::-webkit-slider-thumb:hover::before {
    opacity: 0.3;
}

.threshold-slider::-webkit-slider-thumb:active {
    transform: rotate(45deg) scale(1.1) translateY(-1px);
    box-shadow: 
        0 0 20px #00D4FF,
        0 0 30px rgba(0, 212, 255, 0.9),
        0 0 50px rgba(0, 212, 255, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.8),
        inset 4px 4px 0 rgba(255, 255, 255, 1),
        inset -4px -4px 0 rgba(0, 0, 0, 0.5);
}

.threshold-slider::-webkit-slider-thumb:active::before {
    opacity: 0.5;
}

/* Ensure glow resets when not interacting */
.threshold-slider::-webkit-slider-thumb:not(:hover):not(:active) {
    box-shadow: 
        0 0 5px rgba(0, 212, 255, 0.3),
        inset 0 0 4px rgba(255, 255, 255, 0.4),
        inset 2px 2px 0 rgba(255, 255, 255, 0.6),
        inset -2px -2px 0 rgba(0, 0, 0, 0.3);
}

.threshold-slider::-webkit-slider-thumb:not(:hover):not(:active)::before {
    opacity: 0;
}


/* Firefox Slider Styles */
.threshold-slider::-moz-range-track {
    background: rgba(55, 65, 81, 0.5);
    height: 6px;
    border-radius: 3px;
    border: none;
}

.threshold-slider::-moz-range-thumb {
    background: #00D4FF;
    border: 2px solid #00D4FF;
    border-radius: 2px;
    cursor: pointer;
    height: 14px !important;
    width: 14px !important;
    box-shadow: 
        0 0 5px rgba(0, 212, 255, 0.3),
        inset 0 0 4px rgba(255, 255, 255, 0.4),
        inset 2px 2px 0 rgba(255, 255, 255, 0.6),
        inset -2px -2px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(45deg);
}

.threshold-slider::-moz-range-thumb:hover {
    transform: rotate(45deg) scale(1.2) translateY(-2px);
    box-shadow: 
        0 0 15px #00D4FF,
        0 0 25px rgba(0, 212, 255, 0.8),
        0 0 40px rgba(0, 212, 255, 0.5),
        inset 0 0 6px rgba(255, 255, 255, 0.6),
        inset 3px 3px 0 rgba(255, 255, 255, 0.8),
        inset -3px -3px 0 rgba(0, 0, 0, 0.4);
}

.threshold-slider::-moz-range-thumb:active {
    transform: rotate(45deg) scale(1.1) translateY(-1px);
    box-shadow: 
        0 0 20px #00D4FF,
        0 0 30px rgba(0, 212, 255, 0.9),
        0 0 50px rgba(0, 212, 255, 0.6),
        inset 0 0 8px rgba(255, 255, 255, 0.8),
        inset 4px 4px 0 rgba(255, 255, 255, 1),
        inset -4px -4px 0 rgba(0, 0, 0, 0.5);
}

/* Ensure glow resets when not interacting - Firefox */
.threshold-slider::-moz-range-thumb:not(:hover):not(:active) {
    box-shadow: 
        0 0 5px rgba(0, 212, 255, 0.3),
        inset 0 0 4px rgba(255, 255, 255, 0.4),
        inset 2px 2px 0 rgba(255, 255, 255, 0.6),
        inset -2px -2px 0 rgba(0, 0, 0, 0.3);
}

.threshold-slider::-moz-range-progress {
    background: #00D4FF;
    height: 6px;
    border-radius: 3px;
}

/* Firefox Focus Styles */
.threshold-slider:focus {
    outline: none;
}

.threshold-slider:focus::-moz-range-thumb {
    box-shadow: 
        0 0 15px #00D4FF,
        0 0 25px rgba(0, 212, 255, 0.8),
        0 0 40px rgba(0, 212, 255, 0.5),
        inset 0 0 6px rgba(255, 255, 255, 0.6),
        inset 3px 3px 0 rgba(255, 255, 255, 0.8),
        inset -3px -3px 0 rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(0, 212, 255, 0.3);
}

/* Desktop Slider Styles - Ensure full width on desktop */
@media (min-width: 641px) {
    .threshold-slider {
        width: 100% !important;
        min-width: 300px !important;
        flex: 1 !important;
    }
    
    /* Ensure slider container takes full width */
    .flex.items-center.space-x-3 {
        width: 100% !important;
        display: flex !important;
    }
}

.chart-container {
    height: 300px;
    position: relative;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 48%, rgba(0, 212, 255, 0.1) 49%, rgba(0, 212, 255, 0.1) 51%, transparent 52%);
    background-size: 20px 20px;
    pointer-events: none;
    animation: pulse-slow 4s ease-in-out infinite;
}

.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    contain: layout style paint;
    will-change: transform;
}

.particle {
    position: absolute;
    top: 100%;
    width: 3px;
    height: 3px;
    background: #00D4FF;
    border-radius: 50%;
    box-shadow: 0 0 8px #00D4FF;
    animation: float 12s linear infinite;
    will-change: transform, opacity;
    transform: translateZ(0);
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-delay: 2.3s; background: #8B5CF6; box-shadow: 0 0 8px #8B5CF6; }
.particle:nth-child(3) { left: 40%; animation-delay: 7.1s; background: #00FF88; box-shadow: 0 0 8px #00FF88; }
.particle:nth-child(4) { left: 55%; animation-delay: 1.7s; background: #EC4899; box-shadow: 0 0 8px #EC4899; }
.particle:nth-child(5) { left: 70%; animation-delay: 9.4s; }
.particle:nth-child(6) { left: 85%; animation-delay: 4.8s; background: #8B5CF6; box-shadow: 0 0 8px #8B5CF6; }
.particle:nth-child(7) { left: 95%; animation-delay: 6.2s; background: #00FF88; box-shadow: 0 0 8px #00FF88; }


@keyframes float {
    0% { 
        transform: translateY(100vh) rotate(0deg); 
        opacity: 0; 
    }
    10% { 
        opacity: 1; 
    }
    90% { 
        opacity: 1; 
    }
    100% { 
        transform: translateY(-100vh) rotate(360deg); 
    opacity: 0;
    }
}


@keyframes glow {
    from { text-shadow: 0 0 10px #00D4FF, 0 0 20px #00D4FF, 0 0 30px #00D4FF; }
    to { text-shadow: 0 0 20px #00D4FF, 0 0 30px #00D4FF, 0 0 40px #00D4FF; }
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00D4FF, #8B5CF6);
    border-radius: 4px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 
        0 0 8px rgba(0, 212, 255, 0.4),
        inset 0 0 4px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00E5FF, #9B6DFF);
    box-shadow: 
        0 0 12px rgba(0, 212, 255, 0.6),
        inset 0 0 6px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

::-webkit-scrollbar-thumb:active {
    background: linear-gradient(45deg, #00F0FF, #A675FF);
    box-shadow: 
        0 0 16px rgba(0, 212, 255, 0.8),
        inset 0 0 8px rgba(255, 255, 255, 0.3);
}

::-webkit-scrollbar-corner {
    background: rgba(26, 26, 46, 0.3);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #00D4FF rgba(26, 26, 46, 0.3);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cyberPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

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


.menu-item {
    transition: all 0.3s ease;
}

.menu-item:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateX(5px);
}

.live-indicator {
    animation: cyberPulse 2s ease-in-out infinite;
}

.exchange-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5));
}

.btc-price {
    background: linear-gradient(135deg, #00D4FF, #8B5CF6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.transaction-value {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
}

.buy-action {
    color: #00FF88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.sell-action {
    color: #EC4899;
    text-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
}

/* Market Filter Buttons */
.market-filter-btn {
    background: rgba(26, 26, 46, 0.5);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #9CA3AF;
    font-weight: 600;
    cursor: pointer;
}

.market-filter-btn:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    color: #00D4FF;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.market-filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(139, 92, 246, 0.2));
    border-color: #00D4FF;
    color: #00D4FF;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.5),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

.market-filter-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.6),
        inset 0 0 25px rgba(0, 212, 255, 0.15);
}

/* Direction-based styling */
.direction-long {
    text-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

.direction-short {
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.6);
}

/* Transaction row background for futures */
.transaction-row.bg-green-900 {
    transition: all 0.3s ease;
}

.transaction-row.bg-red-900 {
    transition: all 0.3s ease;
}

.transaction-row:hover {
    opacity: 0.9 !important;
    transform: translateX(4px);
}