* {
    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, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    color: #fff;
    padding: 20px;
}

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

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

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

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

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

.price-info {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.price-info .label {
    font-size: 1rem;
    color: #888;
}

.price-info .price {
    font-size: 3.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, #f39c12, #f1c40f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-info .unit {
    font-size: 1rem;
    color: #888;
}

.change-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.change {
    font-size: 1.5rem;
    font-weight: bold;
}

.change.up {
    color: #2ecc71;
}

.change.down {
    color: #e74c3c;
}

.change-percent {
    font-size: 1.2rem;
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
}

.change-percent.up {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.change-percent.down {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.update-time {
    color: #666;
    font-size: 0.9rem;
}

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

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

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-label {
    display: block;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #f1c40f;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

#refreshBtn {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#refreshBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(243, 156, 18, 0.4);
}

#refreshBtn:active {
    transform: translateY(0);
}

.auto-refresh {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #888;
}

.auto-refresh input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

    .price-info .price {
        font-size: 2.5rem;
    }

    .chart-container {
        height: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
