@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

.gpt-card {
    font-family: 'Inter', 'Noto Sans Devanagari', sans-serif;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    margin: 24px 0;
    overflow: hidden;
    max-width: 720px;
}

/* Header */
.gpt-header {
    background: linear-gradient(135deg, #78350f, #d97706, #f59e0b);
    color: white;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.gpt-icon { font-size: 42px; }
.gpt-header h2 { font-size: 22px; font-weight: 700; margin: 0 0 4px; color: white !important; border: none !important; }
.gpt-header p  { font-size: 13px; opacity: 0.85; margin: 0; }
.gpt-live-badge { margin-left: auto; background: #dc2626; color: white; padding: 6px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.gpt-dot { width: 8px; height: 8px; background: white; border-radius: 50%; animation: gptBlink 1s infinite; display: inline-block; }
@keyframes gptBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Updated bar */
.gpt-updated { background: #fef3c7; padding: 10px 20px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #92400e; flex-wrap: wrap; }
.gpt-refresh { background: #d97706; color: white; border: none; padding: 4px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; margin-left: auto; }

/* City selector */
.gpt-city-wrap { padding: 16px 20px; background: #fffbeb; border-bottom: 1px solid #fde68a; }
.gpt-city-wrap label { font-size: 13px; font-weight: 600; color: #78350f; display: block; margin-bottom: 10px; }
.gpt-hint { font-weight: 400; color: #b45309; margin-left: 6px; }
.gpt-cities { display: flex; flex-wrap: wrap; gap: 8px; }
.gpt-city { padding: 6px 14px; border: 2px solid #d97706; border-radius: 20px; background: white; color: #92400e; font-size: 13px; cursor: pointer; font-weight: 500; transition: all 0.2s; }
.gpt-city:hover, .gpt-city.active { background: #d97706; color: white; border-color: #d97706; }

/* Section title */
.gpt-section-title { padding: 16px 20px 8px; font-size: 15px; font-weight: 700; color: #78350f; background: #fff; }

/* Price grid */
.gpt-price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 20px 16px; background: #fff; }
.gpt-price-box { border-radius: 12px; padding: 14px 10px; text-align: center; border: 2px solid #fde68a; }
.gpt-gold-24 { border-top: 4px solid #d97706; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.gpt-gold-22 { border-top: 4px solid #f59e0b; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.gpt-gold-18 { border-top: 4px solid #fbbf24; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.gpt-gold-1g { border-top: 4px solid #78350f; background: linear-gradient(135deg, #fffbeb, #fef3c7); }
.gpt-silver  { border-top: 4px solid #94a3b8; background: linear-gradient(135deg, #f8fafc, #f1f5f9); }
.gpt-karat  { font-size: 13px; font-weight: 700; color: #78350f; margin-bottom: 2px; }
.gpt-weight { font-size: 11px; color: #b45309; margin-bottom: 8px; }
.gpt-price  { font-size: 16px; font-weight: 700; color: #1e3a5f; }
.gpt-change { font-size: 11px; margin-top: 4px; font-weight: 600; }
.gpt-up   { color: #16a34a; }
.gpt-down { color: #dc2626; }

/* Calculator */
.gpt-calc-wrap { padding: 0 20px 20px; background: #fff; }
.gpt-calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.gpt-calc-field label { display: block; font-size: 13px; font-weight: 600; color: #78350f; margin-bottom: 6px; }
.gpt-calc-field input, .gpt-select { width: 100%; padding: 10px 12px; border: 2px solid #fde68a; border-radius: 8px; font-size: 15px; color: #1e3a5f; background: white; outline: none; box-sizing: border-box; }
.gpt-btn { width: 100%; padding: 13px; background: linear-gradient(135deg, #d97706, #b45309); color: white; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 4px; }
.gpt-calc-result { margin-top: 14px; animation: gptFade 0.3s ease; }
@keyframes gptFade { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
.gpt-calc-box { background: linear-gradient(135deg, #fef3c7, #fffbeb); border: 2px solid #d97706; border-radius: 10px; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.gpt-calc-box span { font-size: 14px; color: #92400e; font-weight: 500; }
.gpt-calc-box strong { font-size: 22px; color: #78350f; }
.gpt-disc { font-size: 11px; color: #b45309; margin-top: 8px; }
.gpt-disclaimer { font-size: 11px; color: #94a3b8; text-align: center; padding: 12px 20px; border-top: 1px solid #fde68a; font-style: italic; margin: 0; }

/* Mobile */
@media(max-width:600px) {
    .gpt-header { padding: 18px 16px; }
    .gpt-price-grid { grid-template-columns: repeat(2, 1fr); }
    .gpt-price { font-size: 14px; }
    .gpt-calc-row { grid-template-columns: 1fr; }
}
