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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
}

.container {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

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

.logo-icon {
    font-size: 48px;
    color: #f7931a;
    animation: pulse 2s ease-in-out infinite;
}

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

.logo h1 {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #f7931a 0%, #ffb347 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

main {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-card {
    text-align: center;
}

.price-display {
    margin-bottom: 40px;
}

.price-label {
    font-size: 14px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.price-value {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    transition: color 0.5s ease;
    margin-bottom: 15px;
}

.price-value.up {
    color: #00d4aa;
}

.price-value.down {
    color: #ff4757;
}

.price-value.neutral {
    color: #fff;
}

.price-change {
    font-size: 20px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.5s ease;
}

.price-change.up {
    background: rgba(0, 212, 170, 0.15);
    color: #00d4aa;
}

.price-change.down {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
}

.price-change.neutral {
    background: rgba(255, 255, 255, 0.1);
    color: #888;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 120px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}

.stat-value.up {
    color: #00d4aa;
}

.stat-value.down {
    color: #ff4757;
}

.error-message {
    background: rgba(255, 71, 87, 0.15);
    border: 1px solid rgba(255, 71, 87, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.error-icon {
    font-size: 32px;
}

.error-text {
    color: #ff4757;
    font-size: 16px;
}

footer {
    text-align: center;
    margin-top: 30px;
}

.footer-text {
    color: #666;
    font-size: 12px;
}

.market-details {
    margin-top: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.detail-item {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.detail-label {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.detail-value.up {
    color: #00d4aa;
}

.detail-value.down {
    color: #ff4757;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .logo-icon {
        font-size: 36px;
    }
    
    main {
        padding: 25px;
    }
    
    .price-value {
        font-size: 42px;
    }
    
    .stats-container {
        flex-direction: column;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    .detail-row {
        flex-wrap: wrap;
    }
    
    .detail-item {
        min-width: calc(50% - 6px);
        flex: 1 1 calc(50% - 6px);
    }
}