/* ========== CUSTOM BOTTOM BAR - Sesuai Screenshot ========== */

/* Override bottom bar styles */
.bottom-bar {
  display: flex !important;
  height: auto !important;
  min-height: 130px !important;
  background: #2d4271 !important;
  border-top: none !important;
  padding: 0 !important;
  align-items: stretch !important;
  gap: 0 !important;
}

/* Container tombol Beli Emas */
.bb-actions {
  width: 280px !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  padding: 25px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-right: none !important;
}

.gold-button-wrapper {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

/* Tombol Beli Emas - Gold Button */
.gold-button {
  width: 100% !important;
  background: linear-gradient(135deg, #d4a828 0%, #c9a227 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 18px 30px !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3) !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
}

.gold-button:hover {
  background: linear-gradient(135deg, #e0b52e 0%, #d4a828 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.4) !important;
}

.gold-button:active {
  transform: translateY(0) !important;
  box-shadow: 0 3px 10px rgba(201, 162, 39, 0.3) !important;
}

/* Price Cards Container */
.bb-prices {
  flex: 1 !important;
  display: flex !important;
  gap: 0 !important;
}

/* Price Card - Emas (Gold) */
.bb-price-card {
  flex: 1 !important;
  padding: 30px 35px !important;
  background: transparent !important;
  border-right: none !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.bb-price-card:first-child {
  background: linear-gradient(135deg, rgba(212, 168, 40, 0.95) 0%, rgba(201, 162, 39, 0.95) 100%) !important;
}

.bb-price-card:first-child::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.03) 10px, rgba(255,255,255,0.03) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,0,0.03) 10px, rgba(0,0,0,0.03) 20px) !important;
  pointer-events: none !important;
}

/* Price Card - Perak (Silver) */
.bb-price-card:last-child {
  background: linear-gradient(135deg, rgba(169, 169, 169, 0.9) 0%, rgba(128, 128, 128, 0.9) 100%) !important;
}

.bb-price-card:last-child::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-image: 
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px),
    repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(0,0,0,0.05) 10px, rgba(0,0,0,0.05) 20px) !important;
  pointer-events: none !important;
}

/* Remove default background images */
.bb-price-card .bg-img {
  display: none !important;
}

/* Content styling */
.bb-price-card .content {
  position: relative !important;
  z-index: 1 !important;
}

.bb-price-card .label {
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 10px !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.bb-price-card .price {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #fff !important;
  display: block !important;
  margin-bottom: 8px !important;
}

.bb-price-card .change {
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-left: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  color: #fff !important;
}

.bb-price-card .change.up {
  color: #4ade80 !important;
}

.bb-price-card .change.up::before {
  content: '▲ ' !important;
  margin-right: 4px !important;
  font-size: 11px !important;
}

.bb-price-card .change.down {
  color: #f87171 !important;
}

.bb-price-card .change.down::before {
  content: '▼ ' !important;
  margin-right: 4px !important;
  font-size: 11px !important;
}

/* Hide sub text */
.bb-price-card .sub {
  display: none !important;
}

/* More link styling */
.bb-price-card .more {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  margin-top: 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.bb-price-card .more:hover {
  color: #fff !important;
  gap: 8px !important;
}

/* Tambahan: Tombol Hubungi Kami di sebelah kanan */
.bb-contact {
  width: 280px !important;
  flex-shrink: 0 !important;
  background: transparent !important;
  padding: 25px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.contact-button {
  width: 100% !important;
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  color: #fff !important;
  padding: 18px 30px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  transition: all 0.3s ease !important;
  letter-spacing: 0.3px !important;
}

.contact-button::before {
  content: '✉' !important;
  font-size: 18px !important;
}

.contact-button:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  transform: translateY(-2px) !important;
}

/* Responsive */
@media (max-width: 1024px) {
  .bottom-bar {
    flex-wrap: wrap !important;
  }
  
  .bb-actions,
  .bb-contact {
    flex: 1 1 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 20px 40px !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .gold-button-wrapper {
    width: 100% !important;
    max-width: 400px !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .gold-button,
  .contact-button {
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .bb-price-card {
    flex: 1 1 calc(50% - 10px) !important;
  }
}

@media (max-width: 768px) {
  .bottom-bar {
    flex-direction: column !important;
    padding: 0 !important;
  }
  
  .bb-actions {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .gold-button-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: center !important;
  }
  
  .bb-price-card {
    flex: 1 1 100% !important;
  }
  
  .bb-contact {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 20px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  .gold-button,
  .contact-button {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }
}
