.alm-gold {
  --alm-gold-bg: #0b0f14;
  --alm-gold-panel: #11161d;
  --alm-gold-panel-2: #151c24;
  --alm-gold-border: rgba(255, 255, 255, 0.08);
  --alm-gold-border-soft: rgba(255, 255, 255, 0.05);
  --alm-gold-text: #f8fafc;
  --alm-gold-text-soft: #cbd5e1;
  --alm-gold-text-muted: #94a3b8;
  --alm-gold-gold: #facc15;
  --alm-gold-gold-2: #f59e0b;
  --alm-gold-green: #22c55e;
  --alm-gold-red: #ef4444;
  --alm-gold-shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.45);
  --alm-gold-shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.35);
  --alm-gold-shadow-md: 0 10px 26px rgba(0, 0, 0, 0.28);
  --alm-gold-radius-xl: 24px;
  --alm-gold-radius-lg: 18px;
  --alm-gold-radius-md: 14px;

  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: var(--alm-gold-radius-xl);
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.08), transparent 22%),
    linear-gradient(180deg, #0f141a 0%, #0b0f14 100%);
  border: 1px solid var(--alm-gold-border);
  box-shadow: var(--alm-gold-shadow-xl);
  color: var(--alm-gold-text);
  font-family: inherit;
  isolation: isolate;
}

.alm-gold,
.alm-gold * {
  box-sizing: border-box;
}

.alm-gold::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.02), transparent 35%, transparent 70%, rgba(255,255,255,.015));
}

.alm-gold__hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.alm-gold__panel,
.alm-gold__bar-card {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(22,29,38,.96) 0%, rgba(14,19,26,.96) 100%);
  border: 1px solid var(--alm-gold-border);
  box-shadow: var(--alm-gold-shadow-lg);
}

.alm-gold__panel::before,
.alm-gold__bar-card::after {
  content: "";
  position: absolute;
  top: -75px;
  right: -75px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250,204,21,.16), transparent 70%);
  pointer-events: none;
}

.alm-gold__panel-head {
  margin-bottom: 16px;
}

.alm-gold__eyebrow {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--alm-gold-text-muted);
}

.alm-gold__title,
.alm-gold__bar-weight {
  margin: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff3c4;
}

.alm-gold__stack {
  display: grid;
  gap: 12px;
}

.alm-gold__line,
.alm-gold__bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.alm-gold__line:last-child,
.alm-gold__bar-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.alm-gold__currency {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--alm-gold-gold);
  text-transform: uppercase;
  flex-shrink: 0;
}

.alm-gold__value-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  direction: ltr;
  min-width: 0;
}

.alm-gold__price {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  letter-spacing: .2px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.alm-gold__arrow {
  width: 16px;
  text-align: center;
  font-size: 15px;
  line-height: 1;
  color: var(--alm-gold-text-muted);
  transition: transform .25s ease, opacity .25s ease, color .25s ease;
}

.alm-gold__arrow.is-up {
  color: var(--alm-gold-green);
  animation: almGoldArrowUp .35s ease;
}

.alm-gold__arrow.is-down {
  color: var(--alm-gold-red);
  animation: almGoldArrowDown .35s ease;
}

.alm-gold__arrow.is-flat {
  color: var(--alm-gold-text-muted);
}

@keyframes almGoldArrowUp {
  0% { transform: translateY(6px); opacity: .35; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes almGoldArrowDown {
  0% { transform: translateY(-6px); opacity: .35; }
  100% { transform: translateY(0); opacity: 1; }
}

.alm-gold__table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--alm-gold-border);
  box-shadow: var(--alm-gold-shadow-md);
}

.alm-gold__table {
  width: 100%;
  min-width: 700px;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(180deg, rgba(19,25,33,.98) 0%, rgba(12,17,24,.98) 100%);
}

.alm-gold__table th,
.alm-gold__table td {
  padding: 15px 12px;
  text-align: center;
  vertical-align: middle;
}

.alm-gold__table thead th {
  font-size: 12px;
  font-weight: 800;
  color: #e5e7eb;
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid var(--alm-gold-border);
  white-space: nowrap;
}

.alm-gold__table thead th:first-child,
.alm-gold__karat {
  color: #fff0b3;
  font-weight: 800;
}

.alm-gold__table tbody td {
  color: var(--alm-gold-text);
  border-bottom: 1px solid var(--alm-gold-border-soft);
}

.alm-gold__table tbody tr:last-child td {
  border-bottom: 0;
}

.alm-gold__table tbody tr:nth-child(even) td {
  background: rgba(255,255,255,.015);
}

.alm-gold__table tbody tr:hover td {
  background: rgba(250,204,21,.06);
}

.alm-gold__value-row--table {
  justify-content: center;
}

.alm-gold__value-row--table .alm-gold__price,
.alm-gold__value-row--bar .alm-gold__price {
  font-size: 16px;
  font-weight: 800;
}

.alm-gold__value-row--table .alm-gold__arrow,
.alm-gold__value-row--bar .alm-gold__arrow {
  font-size: 11px;
  width: 12px;
}

.alm-gold__bars-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.alm-gold__bar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--alm-gold-gold-2), var(--alm-gold-gold), #fde68a);
}

.alm-gold__bar-row span {
  color: var(--alm-gold-text-soft);
}

@media (max-width: 1180px) {
  .alm-gold__bars-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .alm-gold {
    padding: 16px;
  }

  .alm-gold__hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .alm-gold__price {
    font-size: 22px;
  }

  .alm-gold__bars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .alm-gold {
    padding: 12px;
    border-radius: 16px;
  }

  .alm-gold__panel,
  .alm-gold__bar-card {
    padding: 14px;
    border-radius: 14px;
  }

  .alm-gold__title,
  .alm-gold__bar-weight {
    font-size: 15px;
  }

  .alm-gold__price {
    font-size: 20px;
  }

  .alm-gold__table th,
  .alm-gold__table td {
    padding: 10px 8px;
  }

  .alm-gold__bars-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
