/* Premium Crypto Panel - Start */
.market-header h2 {
    background: linear-gradient(to right, #fff, #e5c063, #fff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.market-header p {
    color: #a0a0a0;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.crypto-icon-header {
    margin-right: 10px;
    color: #f7931a;
    animation: pulseglow 3s infinite;
}

.crypto-hexagon-container {
    position: relative;
    background: linear-gradient(145deg, rgba(22,22,26,0.8) 0%, rgba(32,32,42,0.9) 100%);
    border-radius: 16px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    overflow: hidden;
    margin-bottom: 50px;
}

.crypto-background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
    filter: blur(50px);
    opacity: 0.4;
    animation: float 15s infinite ease-in-out;
}

.floating-element:nth-child(1) {
    top: -150px;
    left: -100px;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, rgba(234, 88, 12, 0.05) 50%, transparent 70%);
}

.floating-element:nth-child(2) {
    bottom: -180px;
    right: -50px;
    width: 350px;
    height: 350px;
    animation-delay: -5s;
    animation-duration: 18s;
}

.floating-element:nth-child(3) {
    top: 30%;
    right: 20%;
    width: 200px;
    height: 200px;
    animation-delay: -2.5s;
    animation-duration: 12s;
    background: radial-gradient(circle, rgba(192, 38, 211, 0.1) 0%, rgba(139, 92, 246, 0.05) 50%, transparent 70%);
}

/* Crypto Grid Layout */
.crypto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 5;
}

/* Crypto Card Design */
.crypto-card {
    background: rgba(30, 30, 40, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.crypto-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #f7931a, #ff9d00);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.crypto-card:hover:before {
    opacity: 1;
}

.crypto-card-inner {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* Crypto Symbol */
.crypto-symbol {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(40, 40, 50, 0.7);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.crypto-symbol:after {
    content: "";
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 60%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(25deg);
    animation: shimmer 3s infinite;
}

.crypto-symbol i {
    font-size: 2.2rem;
}

/* Crypto icons */
.crypto-symbol i {
    font-size: 26px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.crypto-card:hover .crypto-symbol i {
    transform: scale(1.2) rotate(5deg);
    animation: pulse-icon 1.5s infinite;
}

/* Specific icon colors */
.btc-symbol i {
    color: #f7931a;
    text-shadow: 0 0 10px rgba(247, 147, 26, 0.5);
}

.eth-symbol i {
    color: #627eea;
    text-shadow: 0 0 10px rgba(98, 126, 234, 0.5);
}

.sol-symbol i {
    color: #00ffbd;
    text-shadow: 0 0 10px rgba(0, 255, 189, 0.5);
}

.xrp-symbol i {
    color: #00aae4;
    text-shadow: 0 0 10px rgba(0, 170, 228, 0.5);
}

.doge-symbol i {
    color: #c3a634;
    text-shadow: 0 0 10px rgba(195, 166, 52, 0.5);
}

.bch-symbol i {
    color: #8dc351;
    text-shadow: 0 0 10px rgba(141, 195, 81, 0.5);
}

.bnb-symbol i {
    color: #f3ba2f;
    text-shadow: 0 0 10px rgba(243, 186, 47, 0.5);
}

.ada-symbol i {
    color: #0033ad;
    text-shadow: 0 0 10px rgba(0, 51, 173, 0.5);
}

.ltc-symbol i {
    color: #bfbbbb;
    text-shadow: 0 0 10px rgba(191, 187, 187, 0.5);
}

.avax-symbol i {
    color: #e84142;
    text-shadow: 0 0 10px rgba(232, 65, 66, 0.5);
}

@keyframes pulse-icon {
    0% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px currentColor;
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
}

/* Crypto Card Info */
.crypto-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 10px;
    margin-bottom: 6px;
}

.crypto-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Roboto Mono', monospace;
}

.crypto-change {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

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

.crypto-change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.crypto-volume {
    font-size: 0.85rem;
    color: #8b8b9d;
    margin-bottom: 15px;
}

/* Sparkline */
.crypto-spark {
    height: 40px;
    position: relative;
    margin-top: auto;
}

.spark-line {
    display: block;
    height: 100%;
    width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 100 40'%3E%3Cpath fill='none' stroke='%2310B981' stroke-width='2' d='M0,20 L10,25 L20,15 L30,28 L40,18 L50,33 L60,25 L70,35 L80,15 L90,20 L100,10' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.7;
}

.crypto-card[data-coin="DOGE"] .spark-line {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewBox='0 0 100 40'%3E%3Cpath fill='none' stroke='%23EF4444' stroke-width='2' d='M0,20 L10,15 L20,25 L30,20 L40,30 L50,15 L60,25 L70,20 L80,25 L90,20 L100,25' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* Live Data Badge */
.live-data-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(22, 22, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #ffffff;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes pulseglow {
    0% {
        text-shadow: 0 0 5px rgba(247, 147, 26, 0);
    }
    50% {
        text-shadow: 0 0 15px rgba(247, 147, 26, 0.5);
    }
    100% {
        text-shadow: 0 0 5px rgba(247, 147, 26, 0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .crypto-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .market-header h2 {
        font-size: 2rem;
    }
    
    .crypto-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    
    .crypto-symbol {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    .crypto-name {
        font-size: 1rem;
    }
    
    .crypto-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .crypto-hexagon-container {
        padding: 20px 10px;
    }
    
    .crypto-grid {
        grid-template-columns: 1fr;
    }
    
    .live-data-badge {
        bottom: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}
