/* ===== Google Fonts & Variables ===== */
:root {
  --gold: #D4A843;
  --gold-dark: #B8860B;
  --gold-light: #F5E6C8;
  --gold-glow: rgba(212, 168, 67, .25);
  --dark: #1a1a2e;
  --dark-soft: #2d2d44;
  --font-head: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ===== Reset & Base ===== */
body {
  font-family: var(--font-body);
  background: #fff;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

/* ===== Coin Marquee ===== */
.coin-marquee-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: #fff;
  border-bottom: 1px solid var(--gold-light);
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 16px 0;
  background: #ffffff;
  border-bottom: 2px solid var(--gold-light);
  transition: var(--transition);
  top: 36px !important;
  z-index: 1050;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .98) !important;
  backdrop-filter: blur(14px);
  border-bottom-color: var(--gold);
  box-shadow: 0 2px 20px rgba(212, 168, 67, .12);
  padding: 10px 0;
}

.navbar-brand {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark) !important;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.navbar .nav-link {
  font-size: .92rem;
  font-weight: 500;
  color: #444 !important;
  padding: .5rem 1rem !important;
  position: relative;
  transition: var(--transition);
}

.navbar .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 1rem;
  right: 1rem;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--gold-dark) !important;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  transform: scaleX(1);
}

/* Gold Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff !important;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(212, 168, 67, .3);
  transition: var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 168, 67, .4);
  color: #fff !important;
}

.btn-outline-gold {
  color: var(--gold-dark) !important;
  border: 2px solid var(--gold) !important;
  border-radius: 50px;
  font-weight: 600;
  background: transparent;
  transition: var(--transition);
}

.btn-outline-gold:hover {
  background: var(--gold) !important;
  color: #fff !important;
  border-color: var(--gold) !important;
}

.gold-link {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
}

.gold-link:hover {
  text-decoration: underline;
  color: var(--gold-dark);
}

/* ===== Section Utilities ===== */
.section-tag {
  display: inline-block;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-light);
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--dark);
  margin-bottom: 14px;
  line-height: 1.25;
}

.bg-light-gold {
  background: #faf7f0;
}

/* ===== HERO ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  background: url('../images/gold_bar_storage_bg.png') center/cover no-repeat;
  padding-top: 120px;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.hero-section .hero-title,
.hero-section .hero-desc,
.hero-section .hero-stat-number,
.hero-section .hero-stat-label {
  color: #fff !important;
}

.hero-glow {
  position: absolute;
  top: -40%;
  right: -15%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: glow 6s ease-in-out infinite alternate;
}

@keyframes glow {
  0% {
    transform: scale(1);
    opacity: .5;
  }

  100% {
    transform: scale(1.2) translate(-40px, 30px);
    opacity: .8;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--gold-light);
  color: var(--gold-dark);
  border-radius: 30px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-head);
  font-size: 3.4rem;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.08rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-stat-number {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--gold-dark);
  font-weight: 700;
}

.hero-stat-label {
  font-size: .84rem;
  color: #888;
}

/* Hero Card */
.hero-card {
  background: #fff;
  border: 1px solid #e8e0d0;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .1);
  position: relative;
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--gold), transparent, var(--gold-dark));
  border-radius: 22px;
  z-index: -1;
  opacity: .35;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 600;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(1.3);
  }
}

.price-box {
  padding: 20px;
  background: #faf7f0;
  border-radius: 14px;
}

.price-label {
  font-size: .78rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 4px;
}

.price-amount {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-dark);
}

.price-change {
  font-size: .88rem;
  font-weight: 600;
  color: #22c55e;
  margin-top: 2px;
}

.detail-box {
  padding: 14px;
  background: #faf7f0;
  border-radius: 10px;
}

.detail-label {
  font-size: .72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.detail-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
}

/* ===== ABOUT ===== */
.about-overlay {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
}

.overlay-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-card {
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 8px 24px rgba(212, 168, 67, .12);
  transform: translateY(-2px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: var(--gold-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ===== LIVE CHART ===== */
.chart-tab {
  border: 1px solid #ddd !important;
  border-radius: 30px !important;
  font-weight: 600;
  color: #888;
  transition: var(--transition);
}

.chart-tab.active,
.chart-tab:hover {
  background: var(--gold) !important;
  color: #fff !important;
  border-color: var(--gold) !important;
}

.chart-embed {
  background: #faf7f0;
  min-height: 480px;
}

@media (max-width:768px) {
  .chart-embed {
    min-height: 320px;
  }

  .chart-embed iframe {
    height: 320px !important;
  }
}

/* ===== FAQ ===== */
.accordion-item {
  border: 1px solid #e8e0d0 !important;
  background: #fff;
}

.accordion-button {
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--dark);
  background: transparent;
}

.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(212, 168, 67, .25);
}

.accordion-button:not(.collapsed) {
  background: rgba(245, 230, 200, .35);
  color: var(--gold-dark);
  box-shadow: none;
}

.accordion-button::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23B8860B'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* ===== CONTACT ===== */
.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.contact-card {
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 8px 24px rgba(212, 168, 67, .12);
  transform: translateY(-2px);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, .2);
}

.form-control-lg,
.form-select-lg {
  border-radius: 10px;
  background: #faf7f0;
  border-color: #e8e0d0;
}

/* ===== FOOTER ===== */
.footer-section {
  background: var(--dark);
}

.footer-link {
  color: rgba(255, 255, 255, .6);
  text-decoration: none;
  font-size: .88rem;
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--gold);
}

.social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 10px;
  color: rgba(255, 255, 255, .65);
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--gold);
  color: #fff;
  transform: translateY(-2px);
}

/* ===== MODALS ===== */
.modal-content {
  border-radius: 20px !important;
}

.modal {
  z-index: 1150 !important;
}

.modal-backdrop {
  z-index: 1140 !important;
}

/* ===== HELP CENTER ===== */
.help-card {
  transition: var(--transition);
}

.help-card:hover {
  border-color: var(--gold) !important;
  box-shadow: 0 8px 24px rgba(212, 168, 67, .12);
  transform: translateY(-3px);
}

.help-card-icon {
  width: 56px;
  height: 56px;
  background: var(--gold-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--gold-dark);
}

.help-link {
  color: #555;
  text-decoration: none;
  transition: var(--transition);
}

.help-link:hover {
  color: var(--gold-dark);
}

.help-link i {
  color: var(--gold);
}

/* ===== ANIMATIONS ===== */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp .8s ease forwards;
}

.delay-1 {
  animation-delay: .15s;
}

.delay-2 {
  animation-delay: .3s;
}

.delay-3 {
  animation-delay: .45s;
}

.delay-4 {
  animation-delay: .6s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadeRight 1s ease .4s forwards;
}

@keyframes fadeRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .navbar-collapse {
    background: #fff;
    border-radius: 0 0 16px 16px;
    padding: 16px 20px;
    margin-top: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.7rem;
  }
}