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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffd700, #ffa500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: #888;
    font-size: 1.1rem;
}

.status-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
    color: #666;
}

#refresh-indicator {
    color: #4CAF50;
    animation: pulse 2s infinite;
}

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

.price-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.current-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-price .label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 10px;
}

.current-price .price {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffd700;
}

.current-price .currency {
    font-size: 1.2rem;
    color: #666;
    margin-top: 5px;
}

.price-change {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.price-change .change-value,
.price-change .change-percent {
    font-size: 1.3rem;
    font-weight: 500;
}

.price-change .change-value.positive,
.price-change .change-percent.positive {
    color: #4CAF50;
}

.price-change .change-value.negative,
.price-change .change-percent.negative {
    color: #f44336;
}

.chart-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#gold-chart {
    min-height: 400px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: translateY(0);
}

.info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

.info p {
    margin: 5px 0;
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }
    
    .current-price .price {
        font-size: 2.5rem;
    }
    
    #gold-chart {
        min-height: 300px;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .control-btn {
        width: 100%;
        max-width: 200px;
    }
}
