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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000000;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
    min-height: 100vh;
    color: #ffffff;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 3em;
    font-weight: 700;
    background: linear-gradient(135deg, #7877C6 0%, #8A2BE2 50%, #9D4EDD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.subtitle {
    color: #888888;
    font-size: 1.1em;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.status {
    padding: 16px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.status.connected {
   
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.status.error {
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.status.loading {
    border-color: rgba(120, 119, 198, 0.3);
    color: #7877C6;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(120, 119, 198, 0.3);
    border-top-color: #7877C6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.quote-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(120, 119, 198, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.quote-card:hover {
    border-color: rgba(120, 119, 198, 0.4);
    box-shadow: 0 12px 48px rgba(120, 119, 198, 0.2);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
}

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

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

.ticker {
    font-size: 2em;
    font-weight: 700;
    background: linear-gradient(135deg, #7877C6 0%, #8A2BE2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 1px;
}

.status-badge {
    font-size: 1.4em;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 0 8px currentColor);
}

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

.card-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.price-section {
    text-align: center;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.price-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.price {
    font-size: 3em;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 8px;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.3);
    transition: all 0.3s ease;
}

.update-flash {
    animation: flash 0.3s ease;
}

@keyframes flash {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        color: #fbbf24;
    }
}

.change {
    font-size: 0.95em;
    color: #888888;
    font-weight: 400;
}

/* PCR Section Styling */
.pcr-section {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.08) 0%, rgba(120, 119, 198, 0.08) 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 14px;
    position: relative;
}

.pcr-label {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888888;
    margin-bottom: 10px;
    font-weight: 500;
}

.pcr-value {
    font-size: 2.2em;
    font-weight: 700;
    color: #8A2BE2;
    text-shadow: 0 0 15px rgba(138, 43, 226, 0.4);
    margin-bottom: 8px;
}

.pcr-indicator {
    font-size: 0.9em;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    font-weight: 500;
}

.pcr-indicator.bullish {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.pcr-indicator.bearish {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.pcr-indicator.neutral {
    background: rgba(234, 179, 8, 0.2);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(120, 119, 198, 0.3);
}

.label {
    font-size: 0.75em;
    text-transform: uppercase;
    color: #888888;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
    font-weight: 500;
}

.value {
    font-size: 1em;
    font-weight: 600;
    color: #ffffff;
    word-break: break-word;
}

footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666666;
    font-size: 0.9em;
    font-weight: 300;
}

.health-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2em;
    }

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

    .details-grid {
        grid-template-columns: 1fr;
    }

    .price {
        font-size: 2.5em;
    }

    .pcr-value {
        font-size: 1.8em;
    }

    .health-info {
        flex-direction: column;
        gap: 10px;
    }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: rgba(120, 119, 198, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 119, 198, 0.5);
}