:root {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --primary-blue: #154c79;
    /* Deep Navy Blue */
    --secondary-blue: #e8f0f7;
    /* Very light blue for hover/backgrounds */
    --gold-accent: #d4af37;
    /* Classic Gold */
    --text-main: #333333;
    --text-muted: #666666;
    --border-color: #e0e0e0;
    --shadow-color: rgba(21, 76, 121, 0.1);
}

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

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
}

/* Card Style */
.gold-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px var(--shadow-color);
    transition: transform 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gold-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(21, 76, 121, 0.15);
}

/* Header */
.card-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--secondary-blue);
    padding-bottom: 20px;
}

.card-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.card-header h1 i {
    color: var(--gold-accent);
    /* Keep icon gold */
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Price Section */
.price-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.price-row:not(.header-row):hover {
    background: var(--secondary-blue);
    border-color: var(--primary-blue);
}

.header-row {
    background: var(--primary-blue);
    border: none;
    padding: 12px 15px;
    color: #ffffff;
}

.header-row .col-type,
.header-row .col-price {
    font-weight: 400;
    font-size: 14px;
    color: #ffffff;
}

.col-type {
    flex: 1.5;
    font-size: 18px;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--primary-blue);
}

.col-type i {
    color: var(--gold-accent);
    margin-right: 8px;
    font-size: 16px;
}

.weight-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 300;
    margin-left: 24px;
}

.col-price {
    flex: 1;
    text-align: right;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-blue);
}

/* Footer */
.card-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 12px;
}

.update-info i {
    margin-right: 5px;
}

#refreshBtn {
    background: transparent;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#refreshBtn:hover {
    background: var(--secondary-blue);
    transform: rotate(180deg);
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .card-header h1 {
        font-size: 24px;
    }

    .price-row {
        padding: 12px;
    }

    .col-type {
        font-size: 16px;
    }

    .col-price {
        font-size: 16px;
    }

    .header-row {
        font-size: 12px;
    }
}