/* Gold Price Saver Chart – esituse stiilid */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

.gpsc-root {
  --gpsc-bg: #f5f7f8;
  --gpsc-card: #ffffff;
  --gpsc-ink: #17212b;
  --gpsc-sub: #8b989d;
  --gpsc-line: #e1e7e9;
  --gpsc-hero: #15252a;
  --gpsc-accent: #e3b760;
  --gpsc-pos: #23845d;
  --gpsc-neg: #c4594f;
  font-family: 'DM Sans', sans-serif;
  color: var(--gpsc-ink);
  background: var(--gpsc-bg);
  border-radius: 12px;
  overflow: hidden;
  min-height: var(--gpsc-height, 380px);
}
.gpsc-root * { box-sizing: border-box; }
.gpsc-loading { display: grid; place-items: center; min-height: var(--gpsc-height, 380px); color: var(--gpsc-sub); font-size: 14px; }

/* Hero */
.gpsc-hero { background: var(--gpsc-hero); color: #fff; padding: 28px 30px 30px; display: flex; align-items: center; gap: 16px; }
.gpsc-brand { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; color: var(--gpsc-accent); background: rgba(255,255,255,.06); flex: 0 0 auto; }
.gpsc-brand svg { width: 20px; height: 20px; }
.gpsc-eyebrow { margin: 0 0 4px; color: var(--gpsc-accent); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.gpsc-title { margin: 0; font-family: 'Manrope', sans-serif; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.gpsc-copy { margin: 6px 0 0; color: #b7c2c5; font-size: 14px; }
.gpsc-updated { margin-left: auto; display: flex; align-items: center; gap: 7px; color: #b7c2c5; font-size: 12px; white-space: nowrap; }
.gpsc-updated strong { color: #fff; }
.gpsc-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #65c496; box-shadow: 0 0 0 4px rgba(101,196,150,.13); }

/* Tabs */
.gpsc-tabs { display: flex; gap: 8px; padding: 18px 22px 0; overflow-x: auto; scrollbar-width: none; }
.gpsc-tabs::-webkit-scrollbar { display: none; }
.gpsc-tab { display: flex; align-items: center; gap: 8px; border: 1px solid var(--gpsc-line); background: var(--gpsc-card); border-radius: 9px; color: #52616a; padding: 10px 14px; cursor: pointer; font-size: 14px; font-weight: 500; white-space: nowrap; transition: .2s ease; }
.gpsc-tab:hover { border-color: #b9c7ca; transform: translateY(-1px); }
.gpsc-tab.active { border-color: var(--metal-color); color: var(--gpsc-ink); box-shadow: 0 3px 10px rgba(29,46,52,.08); }
.gpsc-tab-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--metal-color); }
.gpsc-tab-change { color: #77868d; font-size: 12px; margin-left: 4px; }
.gpsc-tab-change.pos { color: var(--gpsc-pos); }
.gpsc-tab-change.neg { color: var(--gpsc-neg); }

/* Card */
.gpsc-card { background: var(--gpsc-card); border: 1px solid var(--gpsc-line); border-radius: 14px; box-shadow: 0 12px 36px rgba(32,55,65,.06); margin: 16px 22px 22px; overflow: hidden; }
.gpsc-card-header { padding: 24px 26px 18px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.gpsc-title-row { display: flex; align-items: center; gap: 10px; }
.gpsc-metal-name { margin: 0; font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.gpsc-unit-pill { padding: 4px 8px; background: #f1f4f4; border-radius: 5px; color: #65747b; font-size: 11px; font-weight: 600; }
.gpsc-price-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.gpsc-price { font-family: 'Manrope', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -.04em; }
.gpsc-change { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 700; }
.gpsc-change.pos { color: var(--gpsc-pos); }
.gpsc-change.neg { color: var(--gpsc-neg); }
.gpsc-subtle { margin: 5px 0 0; color: var(--gpsc-sub); font-size: 12px; }


/* Controls */
.gpsc-controls { display: flex; align-items: center; gap: 12px; padding: 14px 26px; border-top: 1px solid #edf0f1; border-bottom: 1px solid #edf0f1; flex-wrap: wrap; }
.gpsc-range { display: flex; gap: 2px; padding: 3px; background: #f2f5f5; border-radius: 7px; }
.gpsc-range button { border: 0; background: transparent; color: #75838a; cursor: pointer; font-size: 12px; font-weight: 600; border-radius: 5px; padding: 7px 10px; transition: .15s ease; }
.gpsc-range button.selected { color: #1b3439; background: #fff; box-shadow: 0 1px 4px rgba(32,55,65,.1); }
.gpsc-type-toggle { display: flex; gap: 2px; padding: 3px; background: #f2f5f5; border-radius: 7px; }
.gpsc-type-toggle button { border: 0; background: transparent; color: #75838a; cursor: pointer; border-radius: 5px; padding: 7px; display: grid; place-items: center; transition: .15s ease; }
.gpsc-type-toggle button.selected { color: #1b3439; background: #fff; box-shadow: 0 1px 4px rgba(32,55,65,.1); }
.gpsc-type-toggle svg { width: 16px; height: 16px; }
.gpsc-date-btn, .gpsc-currency-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid #e0e6e7; border-radius: 6px; background: #fff; color: #75838a; cursor: pointer; font-size: 12px; font-weight: 600; }
.gpsc-date-btn { margin-left: auto; }
.gpsc-currency-btn { color: #35474d; }
.gpsc-date-btn svg, .gpsc-currency-btn svg { width: 14px; height: 14px; }

/* Chart */
.gpsc-chart-wrap { padding: 16px 18px 0 10px; height: var(--gpsc-height, 380px); }
.gpsc-chart-wrap svg { width: 100%; height: 100%; overflow: visible; display: block; }
.gpsc-grid-line { stroke: #e9eeef; stroke-width: 1; }
.gpsc-axis-text { fill: #96a1a5; font-size: 11px; font-family: 'DM Sans', sans-serif; }
.gpsc-chart-wrap circle { cursor: crosshair; }
.gpsc-tooltip rect { fill: #1e3237; }
.gpsc-tooltip text { fill: #b9c8c9; font-size: 11px; font-family: 'DM Sans', sans-serif; }
.gpsc-tooltip .gpsc-tip-val { fill: #fff; font-size: 14px; font-weight: 700; }

/* Footer */
.gpsc-chart-footer { display: flex; align-items: center; gap: 22px; padding: 14px 26px 18px; border-top: 1px solid #edf0f1; color: #819096; font-size: 12px; flex-wrap: wrap; }
.gpsc-chart-footer span { display: inline-flex; align-items: center; gap: 6px; }
.gpsc-chart-footer svg { width: 14px; height: 14px; color: #3a9d76; }
.gpsc-chart-footer strong { color: #47575d; }

/* Info cards */
.gpsc-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 22px 18px; }
.gpsc-info-card { display: flex; align-items: flex-start; gap: 13px; padding: 16px 18px; background: #fff; border: 1px solid var(--gpsc-line); border-radius: 10px; }
.gpsc-info-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: #628087; background: #eef4f3; flex: 0 0 auto; }
.gpsc-info-icon svg { width: 17px; height: 17px; }
.gpsc-info-card strong { display: block; color: #34464c; font-size: 13px; }
.gpsc-info-card p { margin: 4px 0 0; color: var(--gpsc-sub); font-size: 12px; line-height: 1.5; }
.gpsc-disclaimer { margin: 0 22px 20px; color: #9ba6aa; font-size: 11px; text-align: center; }

@media (max-width: 700px) {
  .gpsc-hero { padding: 22px 18px 24px; flex-direction: column; align-items: flex-start; }
  .gpsc-updated { margin-left: 0; }
  .gpsc-tabs { padding: 14px 18px 0; }
  .gpsc-card { margin: 14px 14px 18px; }
  .gpsc-card-header { padding: 20px 18px 16px; flex-direction: column; }
  .gpsc-controls { padding: 13px 18px; }
  .gpsc-date-btn { margin-left: 0; }
  .gpsc-chart-wrap { padding: 12px 6px 0 2px; }
  .gpsc-chart-footer { padding-left: 18px; padding-right: 18px; gap: 12px 20px; }
  .gpsc-info-grid { grid-template-columns: 1fr; margin: 0 14px 16px; }
  .gpsc-disclaimer { margin: 0 14px 16px; }
  .gpsc-price { font-size: 24px; }
}
