.gold-app {
  --gold-ink: #101826;
  --gold-muted: #586474;
  --gold-accent: #a47726;
  --gold-line: rgba(16, 24, 38, .1);
  --gold-surface: #fff;
  --gold-radius: 16px;
  min-height: 100dvh;
  background: radial-gradient(circle at 85% 0, #fbf6e9 0, transparent 34%), #f5f1e8;
}
.gold-app * { letter-spacing: 0; }
.gold-app button, .gold-app input, .gold-app textarea { font: inherit; }
.gold-app button, .gold-app a { touch-action: manipulation; }
.gold-app a { color: inherit; text-decoration: none; }
.gold-app button:focus-visible, .gold-app a:focus-visible, .gold-app input:focus-visible, .gold-app textarea:focus-visible {
  outline: 3px solid rgba(184,137,48,.45); outline-offset: 2px;
}
.gold-app button:disabled { cursor: not-allowed; }
.gold-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); border-bottom: 1px solid var(--gold-line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.gold-header__inner { min-height: 72px; max-width: 1280px; margin: auto; padding: calc(8px + env(safe-area-inset-top)) 20px 8px; display: flex; align-items: center; gap: 12px; }
.gold-back, .gold-header__history { flex: none; min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--gold-line); background: #fff; border-radius: 12px; color: var(--gold-ink); }
.gold-back:hover, .gold-header__history:hover { background: #fbf6ea; }
.gold-back .icon { transform: rotate(180deg); }
.gold-header__title { display: flex; flex-direction: column; min-width: 0; line-height: 1.55; }
.gold-header__title > span { font-size: 11px; color: var(--gold-accent); font-weight: 700; }
.gold-header__title strong { font-size: 16px; color: var(--gold-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gold-header__brand { display: none; margin-inline-start: auto; }
.gold-header__history { margin-inline-start: auto; padding: 0 12px; font-size: 13px; font-weight: 700; }
.gold-header__history .icon { width: 19px; height: 19px; }
.gold-main { width: 100%; min-height: calc(100dvh - 150px); padding: 24px 20px calc(118px + env(safe-area-inset-bottom)); }
.gold-container, .gold-loading { max-width: 600px; margin-inline: auto; }
.gold-container { display: grid; gap: 20px; }
.gold-intro, .gold-page-title { padding: 4px 0; }
.gold-intro > span, .gold-page-title > span, .gold-page-title > div > span { color: var(--gold-accent); font-size: 12px; font-weight: 700; }
.gold-intro h1, .gold-page-title h1 { margin: 4px 0 6px; font-size: clamp(24px, 5vw, 34px); line-height: 1.5; color: var(--gold-ink); }
.gold-intro p, .gold-page-title p { margin: 0; color: var(--gold-muted); line-height: 1.8; font-size: 14px; }
.gold-card { min-width: 0; padding: 20px; border: 1px solid var(--gold-line); border-radius: var(--gold-radius); background: var(--gold-surface); box-shadow: 0 6px 28px rgba(16,24,38,.035); }
.gold-card > h2 { margin: 0 0 16px; font-size: 17px; line-height: 1.55; color: var(--gold-ink); }
.gold-card h3 { font-size: 15px; margin: 0 0 12px; }
.gold-muted { color: var(--gold-muted); font-size: 13px; line-height: 1.8; margin: 12px 0 0; }
.gold-hint { color: var(--gold-muted); font-size: 12px; line-height: 1.8; margin: 8px 0 16px; }
.gold-center { text-align: center; }
.gold-price { position: relative; overflow: hidden; border-color: rgba(174,135,62,.28); background: linear-gradient(135deg, #fff 42%, #fbf5e8); }
.gold-price::after { content: ""; position: absolute; width: 170px; aspect-ratio: 1; border: 1px solid rgba(184,137,48,.15); border-radius: 50%; inset-inline-end: -85px; top: -80px; pointer-events: none; }
.gold-price__top { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--gold-muted); font-size: 12px; }
.gold-price__asset { color: #805d24; font-weight: 700; }
.gold-live { display: inline-flex; align-items: center; gap: 8px; color: #6f5663; }
.gold-live i { width: 8px; height: 8px; border-radius: 50%; background: #a76c76; }
.gold-live.is-live { color: #206c4d; }
.gold-live.is-live i { background: #25845d; animation: gold-pulse 2s ease-in-out infinite; }
.gold-price__primary { position: relative; z-index: 1; margin-top: 18px; }
.gold-price__primary > span { color: var(--gold-muted); font-size: 13px; }
.gold-price__number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 10px; margin-top: 2px; }
.gold-price__number strong { font-size: clamp(30px, 6vw, 44px); line-height: 1.4; font-weight: 800; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.gold-price__number span { color: var(--gold-muted); font-size: 13px; }
.gold-price__change { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; padding: 5px 10px; border-radius: 999px; background: #f2f0ec; color: #4b5665; font-size: 12px; }
.gold-price__change strong { font-weight: 800; }
.gold-price__change--up { background: #eaf5ed; color: #176640; }
.gold-price__change--down { background: #fbefee; color: #a03c36; }
.gold-price__reference { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.gold-price__reference > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px; border: 1px solid rgba(164,128,60,.16); border-radius: 12px; background: rgba(255,255,255,.72); }
.gold-price__reference dt { color: var(--gold-muted); font-size: 12px; line-height: 1.6; }
.gold-price__reference dd { margin: 0; color: var(--gold-ink); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: left; }
.gold-price__reference dd small { color: var(--gold-muted); font-size: 11px; font-weight: 500; }
.gold-price__footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 3px 12px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(164,128,60,.18); color: var(--gold-muted); font-size: 11px; line-height: 1.7; }
.gold-asset__total { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: #f9f6ee; border-radius: 12px; }
.gold-asset__total strong { font-size: 32px; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.gold-asset__total span { color: var(--gold-muted); font-size: 12px; }
.gold-metrics { display: grid; gap: 8px; margin-top: 16px; }
.gold-metrics > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 9px; border-bottom: 1px solid var(--gold-line); }
.gold-metrics small { color: var(--gold-muted); font-size: 12px; }
.gold-metrics strong { font-size: 13px; text-align: left; }
.gold-empty { min-height: 160px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.gold-empty__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #f9f2df; color: #9b7226; }
.gold-empty__icon .icon { width: 22px; height: 22px; }
.gold-empty strong { font-size: 15px; color: var(--gold-ink); }
.gold-empty p { margin: 0; color: var(--gold-muted); line-height: 1.8; font-size: 13px; }
.gold-link { display: inline-flex; min-height: 44px; align-items: center; gap: 4px; color: #825c1e !important; font-size: 13px; font-weight: 700; }
.gold-link .icon { width: 18px; height: 18px; }
.gold-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gold-actions a { min-height: 90px; border: 1px solid #e8e0d0; border-radius: 14px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 8px; font-size: 12px; font-weight: 700; text-align: center; transition: border-color .2s, background .2s; }
.gold-actions a:hover, .gold-actions a:active { border-color: #c4a45d; background: #faf6ea; }
.gold-actions .icon { color: var(--gold-accent); width: 23px; height: 23px; }
.gold-overview-grid, .gold-two-col { display: grid; gap: 16px; min-width: 0; }
.gold-overview-actions { min-width: 0; }
.gold-chart__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.gold-chart__heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.gold-chart__unit { color: var(--gold-muted); font-size: 12px; }
.gold-chart__state { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px; border-radius: 999px; background: #edf7f1; color: #206c4d; font-size: 11px; font-weight: 700; }
.gold-chart__state.is-preview { background: #f7f0df; color: #79581e; }
.gold-chart__tabs button { min-height: 44px; padding: 7px 12px; border: 1px solid var(--gold-line); border-radius: 10px; color: var(--gold-muted); background: #fff; font-size: 12px; }
.gold-chart__tabs button.is-active { background: var(--gold-ink); border-color: var(--gold-accent); color: #fff; }
.gold-chart__plot { height: clamp(190px, 35vw, 250px); padding: 16px 8px 4px; border: 1px solid #ebe2d1; border-radius: 14px; background: linear-gradient(180deg, #fffefa, #fbf7ee); overflow: hidden; }
.gold-chart__plot--loading { background: linear-gradient(100deg, #f7f2e7 20%, #fffdf8 40%, #f7f2e7 60%); background-size: 200% 100%; animation: sp-shimmer 1.5s linear infinite; }
.gold-chart__plot svg { width: 100%; height: 100%; }
.gold-chart__plot.is-preview svg { opacity: .66; }
.gold-chart__gridline { fill: none; stroke: #e9e2d5; stroke-width: 1; stroke-dasharray: 4 7; vector-effect: non-scaling-stroke; }
.gold-chart__axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--gold-muted); font-size: 11px; }
.gold-chart__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.gold-chart__stats > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: #faf7f0; }
.gold-chart__stats span { color: var(--gold-muted); font-size: 11px; }
.gold-chart__stats strong { color: var(--gold-ink); font-size: 12px; font-variant-numeric: tabular-nums; text-align: left; }
@media (max-width: 370px) { .gold-price__reference { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .gold-chart__plot--loading, .gold-live.is-live i { animation: none; } }
.gold-chart__disclosure { margin: 14px 0 0; padding: 10px 12px; border: 1px solid #ebdfc6; border-radius: 10px; background: #fcf8ef; color: #654c22; font-size: 12px; line-height: 1.8; }
.gold-activity { list-style: none; margin: 0; padding: 0; }
.gold-activity li { min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--gold-line); font-size: 13px; }
.gold-activity li:last-child { border-bottom: 0; }
.gold-page-title { margin-bottom: 4px; }
.gold-trade-layout { display: grid; gap: 16px; }
.gold-trade-layout__form, .gold-trade-layout__market { display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 1023px) {
  .gold-trade-layout__form, .gold-trade-layout__market { display: contents; }
  .gold-trade-layout .gold-price { order: 1; }
  .gold-trade-layout .gold-chart { order: 2; }
  .gold-trade-layout .gold-trade-panel { order: 3; }
  .gold-trade-layout .gold-activity-card { order: 4; }
}
.gold-segment { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: #f3f1eb; margin-bottom: 20px; }
.gold-segment button { min-height: 44px; border: 1px solid transparent; background: transparent; border-radius: 10px; color: var(--gold-ink); font-weight: 700; }
.gold-segment button.is-active { background: var(--gold-ink); border-color: var(--gold-accent); color: #fff; }
.gold-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; color: var(--gold-ink); font-size: 13px; font-weight: 700; }
.gold-field__control { min-height: 54px; border: 1px solid #c9cbd0; border-radius: 12px; display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; padding-inline: 14px; }
.gold-field__control:focus-within { border-color: var(--gold-accent); box-shadow: 0 0 0 3px rgba(184,137,48,.14); }
.gold-field__control input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--gold-ink); font-size: 18px; text-align: left; outline: none; font-variant-numeric: tabular-nums; }
.gold-field__control em { font-style: normal; color: var(--gold-muted); font-weight: 400; }
.gold-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gold-chips button { min-height: 44px; padding: 8px 12px; border: 1px solid #e0d6c3; border-radius: 999px; background: #fffaf0; color: #634917; font-size: 12px; }
.gold-chips button:hover { background: #f4e9cb; }
.gold-balance-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--gold-line); color: var(--gold-muted); font-size: 13px; }
.gold-balance-row strong { color: var(--gold-ink); font-size: 13px; }
.gold-fees { background: #f7f6f2; border-radius: 12px; padding: 16px; margin-top: 20px; }
.gold-fees dl, .gold-summary { margin: 0; }
.gold-fees dl > div, .gold-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 13px; }
.gold-fees dt, .gold-summary dt { color: var(--gold-muted); }
.gold-fees dd, .gold-summary dd { margin: 0; text-align: left; color: var(--gold-ink); font-weight: 700; overflow-wrap: anywhere; }
.gold-fees__total, .gold-summary__total { border-top: 1px solid #d8d5cd; margin-top: 8px; padding-top: 14px !important; font-weight: 700; }
.gold-fees > p { color: var(--gold-muted); font-size: 12px; margin: 10px 0 0; line-height: 1.7; }
.gold-primary { width: 100%; min-height: 56px; border: 1px solid var(--gold-ink); border-radius: 12px; background: var(--gold-ink); color: #fff; font-weight: 700; margin-top: 20px; transition: background .2s, border-color .2s, opacity .2s; }
.gold-primary:not(:disabled):hover { border-color: var(--gold-accent); background: #263650; }
.gold-primary:disabled { background: #d9dce1; color: #536073; border-color: #d9dce1; opacity: .9; }
.gold-sticky-action { position: fixed; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 22; padding: 8px 20px 12px; background: rgba(255,255,255,.96); border-top: 1px solid var(--gold-line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gold-sticky-action .gold-primary { max-width: 600px; display: block; margin: 0 auto; }
.gold-trade-panel .gold-trade-submit { display: none; }
.gold-app:has(.gold-sticky-action) .gold-main { padding-bottom: calc(190px + env(safe-area-inset-bottom)); }
.gold-steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 4px; margin-bottom: 2px; }
.gold-steps span { min-height: 52px; display: flex; gap: 4px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.7); color: var(--gold-muted); font-size: 11px; }
.gold-steps span.is-active { color: #fff; background: var(--gold-ink); }
.gold-steps b { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; flex: none; font-size: 11px; }
.gold-info { display: flex; align-items: flex-start; gap: 10px; padding: 14px; margin: 16px 0; border: 1px solid #e6d9b7; border-radius: 12px; background: #fbf8ef; color: #514021; }
.gold-info .icon { width: 20px; height: 20px; color: #8d6925; }
.gold-info p { margin: 0; font-size: 12px; line-height: 1.8; }
.gold-address-grid { display: grid; gap: 16px; }
.gold-address-grid input, .gold-address-grid textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #c9cbd0; border-radius: 12px; background: #fff; color: var(--gold-ink); resize: vertical; font-size: 16px; }
.gold-address-grid textarea { min-height: 84px; }
.gold-address-grid [aria-invalid="true"] { border-color: #b32628; }
.gold-field-error { min-height: 1.2em; color: #a12128; font-size: 11px; font-weight: 500; line-height: 1.5; }
.gold-summary > div { padding: 12px 0; border-bottom: 1px solid var(--gold-line); }
.gold-summary dd { max-width: 60%; }
.gold-inline-links { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.gold-inline-links a { display: inline-flex; align-items: center; min-height: 44px; color: #825c1e; font-weight: 700; font-size: 13px; }
.gold-otp { display: flex; gap: 6px; margin: 24px 0; }
.gold-otp input { min-width: 0; flex: 1; height: 52px; border: 1px solid #d9d5cb; border-radius: 10px; text-align: center; background: #f4f4f4; }
.gold-timeline { margin: 18px 0 0; padding: 0 24px 0 0; border-right: 2px solid #e6d6ae; }
.gold-timeline li { padding: 0 16px 20px 0; color: var(--gold-muted); line-height: 1.6; }
.gold-skeleton { height: 210px; border: 1px solid var(--gold-line); border-radius: var(--gold-radius); background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 20px; margin-bottom: 16px; }
.gold-skeleton span { height: 20px; border-radius: 8px; background: linear-gradient(90deg, #eceae4 20%, #f8f7f2 45%, #eceae4 75%); background-size: 200% 100%; animation: gold-shimmer 1.5s linear infinite; }
.gold-skeleton span:first-child { width: 40%; }
.gold-skeleton span:nth-child(2) { height: 50px; width: 70%; }
.gold-skeleton span:last-child { width: 85%; }
@keyframes gold-pulse { 50% { box-shadow: 0 0 0 5px rgba(37,132,93,.13); } }
@keyframes gold-shimmer { to { background-position-x: -200%; } }
@media (min-width: 600px) { .gold-metrics { grid-template-columns: repeat(2,1fr); } .gold-address-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .gold-field--wide { grid-column: 1 / -1; } }
@media (min-width: 768px) { .gold-main { padding: 32px 32px 100px; } .gold-header__inner { padding-inline: 32px; } .gold-card { padding: 28px; } .gold-container, .gold-loading { max-width: 1180px; } .gold-two-col { grid-template-columns: repeat(2,minmax(0,1fr)); } .gold-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .gold-overview-actions { grid-column: 1 / -1; } .gold-overview-grid .gold-chart { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .gold-header__brand { display: block; } .gold-header__history { margin-inline-start: 0; } .gold-trade-layout { grid-template-columns: minmax(420px,460px) minmax(0,1fr); gap: 24px; } .gold-trade-panel .gold-trade-submit { display: block; } .gold-sticky-action { display: none; } .gold-app:has(.gold-sticky-action) .gold-main { padding-bottom: 100px; } .gold-overview-grid { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); } .gold-overview-grid .gold-chart { grid-column: auto; } .gold-overview-actions { grid-column: 1 / -1; } }
@media (max-width: 359px) { .gold-header__history span { display: none; } .gold-header__history { padding: 0; } .gold-actions a { font-size: 11px; } .gold-steps span { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .gold-app *, .gold-app *::before, .gold-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
