/* Gold Rate Page – same overall layout as My Wishlist */

.gold-rate-page {
  padding: 140px 5% 60px;
  background: linear-gradient(180deg, #fff5f7 0%, var(--floral-white) 100%);
  min-height: 80vh;
}

.gold-rate-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.gold-rate-main-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  color: var(--text-dark-brown);
  text-align: center;
  margin-bottom: 8px;
}

.gold-rate-updated {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light-brown);
  margin-bottom: 32px;
}

/* Section 1: Two-column layout */
.gold-rate-section-1 {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 48px;
}

/* Today's Rate card (left) */
.live-rate-card {
  /* background: radial-gradient(
    circle at center,
    var(--bg-gradient-start),
    var(--bg-gradient-end)
  ); */
  background: linear-gradient(145deg, #5c3d2e 0%, #4a3226 100%);
  /* background: linear-gradient(135deg, #2c1810 0%, #5c4033 40%, #8b6914 100%); */

  /* background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z' fill='%23d4af37' fill-opacity='0.08'/%3E%3C/g%3E%3C/svg%3E"); */
  /* background-image: linear-gradient( 101.9deg,  rgba(239,151,189,1) -13.9%, rgba(204,239,243,1) 34.6%, rgba(227,241,202,1) 54.2%, rgba(237,187,187,1) 88.6% ); */
  border-radius: 16px;
  padding: 28px 24px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(92, 61, 46, 0.35);
  position: relative;
}

.live-rate-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: #f5e6c8;
}

.live-rate-date {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

.live-rate-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(46, 125, 50, 0.9);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.live-rate-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--accent-gold-light);
}

.live-rate-metal {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #f5e6c8;
}

.live-rate-value {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f5e6c8;
}

.live-rate-unit {
  font-size: 1.25rem;
  font-weight: 500;
  opacity: 0.95;
}

/* Metal selector card (right) */
.metal-selector-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(139, 69, 19, 0.08);
}

.metal-selector-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.metal-selector-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.06));
  color: var(--accent-gold-med);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.metal-selector-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-dark-brown);
  margin: 0;
  font-weight: 600;
}

.metal-selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light-brown);
  margin-bottom: 14px;
}

.metal-selector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.metal-btn {
  padding: 14px 18px;
  border: 1px solid rgba(139, 69, 19, 0.15);
  border-radius: 10px;
  background: rgba(252, 179, 171, 0.2);
  color: var(--text-dark-brown);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.metal-btn:hover {
  border-color: var(--accent-gold-med);
  background: rgba(212, 175, 55, 0.1);
  color: var(--text-saddle-brown);
}

.metal-btn.active {
  background: #8b2942;
  border-color: #8b2942;
  color: #fff;
}

/* Section 2: Weight-based calculator */
.gold-rate-section-2 {
  margin-bottom: 40px;
}

.weight-calc-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(139, 69, 19, 0.08);
}

.weight-calc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.weight-calc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(252, 179, 171, 0.4), rgba(252, 179, 171, 0.2));
  color: #8b2942;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.weight-calc-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-dark-brown);
  margin: 0;
  font-weight: 600;
}

.weight-calc-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-light-brown);
  margin-bottom: 10px;
}

.weight-calc-label-2 {
  margin-top: 24px;
  margin-bottom: 12px;
}

.weight-input-wrap {
  display: flex;
  align-items: stretch;
  max-width: 160px;
  border: 1px solid rgba(139, 69, 19, 0.2);
  border-radius: 10px;
  overflow: hidden;
  background: var(--floral-white);
}

.weight-input {
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark-brown);
}

.weight-input:focus {
  outline: none;
}

.weight-stepper {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(139, 69, 19, 0.15);
}

.weight-step-btn {
  flex: 1;
  padding: 6px 14px;
  border: none;
  background: rgba(139, 69, 19, 0.06);
  color: var(--text-saddle-brown);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.weight-step-btn:hover {
  background: var(--accent-gold-med);
  color: #fff;
}

.weight-material-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.weight-tab {
  padding: 12px 24px;
  border: 1px solid rgba(139, 69, 19, 0.2);
  border-radius: 10px;
  background: rgba(252, 179, 171, 0.2);
  color: var(--text-dark-brown);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.weight-tab:hover {
  border-color: var(--accent-gold-med);
  background: rgba(212, 175, 55, 0.1);
}

.weight-tab.active {
  background: #8b2942;
  border-color: #8b2942;
  color: #fff;
}

/* Cost cards grid */
.weight-cost-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.weight-cost-card {
  background: #fff;
  border: 1px solid rgba(139, 69, 19, 0.12);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.weight-cost-card.highlight {
  border-color: #c99aa0;
  background: rgba(252, 179, 171, 0.12);
  box-shadow: 0 4px 16px rgba(139, 41, 66, 0.08);
}

.weight-cost-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-dark-brown);
  margin-bottom: 4px;
  font-weight: 600;
}

.weight-cost-purity {
  font-size: 0.8rem;
  color: var(--text-light-brown);
  margin-bottom: 12px;
}

.weight-cost-rate {
  font-size: 0.95rem;
  color: var(--text-saddle-brown);
  margin-bottom: 4px;
}

.weight-cost-weight {
  font-size: 0.85rem;
  color: var(--text-light-brown);
  margin-bottom: 14px;
}

.weight-cost-total {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background: #8b2942;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: default;
  text-align: center;
}

@media (max-width: 900px) {
  .gold-rate-section-1 {
    grid-template-columns: 1fr;
  }

  .weight-cost-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gold-rate-page {
    padding-top: 120px;
  }

  .gold-rate-main-title {
    font-size: 1.85rem;
  }

  .metal-selector-grid {
    grid-template-columns: 1fr;
  }

  .weight-cost-cards {
    grid-template-columns: 1fr;
  }
}
