/* ============================================
   🌟 Base Variables
   ============================================ */
:root {
  --black: #111;
  --white: #f5f5f5;
  --gold: #d4af37;
}

/* ============================================
   🔧 Universal Box‐Sizing & Reset
   ============================================ */
html {
  height: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}

/* ============================================
   🌙 Dark Theme + Page Layout
   ============================================ */
body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  background-color: var(--black);
  color: var(--white);
  font-family: sans-serif;
  /* contain Android/Chrome bounce on overscroll */
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}
a {
  text-decoration: none;
  color: inherit; /* optional: makes link color match surrounding text */
}

/* ============================================
   🧩 Site Header (Full‐Width, Non‐Scrolling)
   ============================================ */
.site-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--black);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Logo and Title */
.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header .logo-title img {
  height: 60px;
  width: auto !important;
  border-radius: 6px;
}
.logo-title span {
  color: var(--gold);
  font-size: 1.6rem;
  font-weight: bold;
}

/* ============================================
   🚀 Navigation Buttons
   ============================================ */
.nav-desktop {
  display: flex;
  gap: 7px;
  align-items: center;
}
.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  font-weight:bold;
  background: transparent;
  color: var(--gold);
  /*border: 2px solid var(--gold);
  border-radius: 8px;*/
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.nav-button img.btn-icon {
  width: 20px;
  height: 20px;
}
/*.nav-button.active,
.nav-button:hover {
  background-color: var(--gold);
  color: var(--black);
}*/
/* ==============================
   🔄 Replace nav-button hover
   Outline only gold underline
============================== */

.nav-button {
  position: relative;
  color: var(--gold); /* Gold text always */
  padding: 8px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: color 0.3s;
}

.nav-button::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(to right, #FFD700, #FFA500);
  box-shadow: 0 0 5px #FFD700, 0 0 10px #FFA500;
  transition: width 0.3s ease, left 0.3s ease;
  transform: translateX(-50%);
  opacity: 0.9;
}

.nav-button:hover,
.nav-button.active {
  color: var(--gold);
  background: transparent; /* ✅ Prevent gold background */
}

.nav-button:hover::after,
.nav-button.active::after {
  width: 50%;
}




/* ============================================
   📱 Mobile Navigation
   ============================================ */
.hamburger {
  display: none;
  font-size: 28px;
  background: none;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--black);
  position: absolute;
  top: 70px;
  right: 20px;
  z-index: 999;
  width: 200px;
  border: 1px solid #444;
}
.mobile-menu a {
  color: var(--gold);
  padding: 12px;
  font-weight: bold;
  border-top: 1px solid #333;
  text-decoration: none;
}
.mobile-menu.active {
  display: flex;
}

/* ============================================
   🖥️ Responsive Breakpoints
   ============================================ */
@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .site-header {
    flex-wrap: wrap;
  }
}

/* ============================================
   📦 Scrollable Middle Section
   ============================================ */
.scroll-wrapper {
  flex: 1 0 auto;                   /* fill between header & footer */
  width: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================
   📄 Main Content Area (Inside scroll‐wrapper)
   ============================================ */
.main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: left;
}

/* ============================================
   🪙 Token Info Box / Buy Token Box
   ============================================ */
.token-info-box,
.Buy-Tocken-Box {
  background-color: #f4f4f4;
  padding: 25px 30px;
  border-radius: 12px;
  color: #000;
  text-align: left;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
.token-info-box p,
.Buy-Tocken-Box p {
  margin-bottom: 12px;
  font-size: 16px;
}

/* ============================================
   🎥 Background Video Styling
   ============================================ */
#bgVideo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* ============================================
   🔗 Fluid Containers for Sections
   ============================================ */
.container,
.guide-container,
.referral-container,
.form-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ============================================
   🌊 Responsive Media (Images, Videos, etc)
   ============================================ */
img,
video,
iframe,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================================
   📊 Tables & Scrolling
   ============================================ */
table {
  width: 100%;
  border-collapse: collapse;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ============================================
   🧩 Prevent Overflow of Long Text
   ============================================ */
pre,
code,
.ref-link {
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* ============================================
   📝 Typography
   ============================================ */
h1, h2, h3, p, ul, ol, li {
  line-height: 1.6;
}

/* ============================================
   ⏳ Center any .loading blocks
   ============================================ */
.loading,
.guide-container .loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.loading img,
.guide-container .loading img {
  margin-bottom: 8px;
}

/* ============================================
   🦶 Footer (Full-Width & Non-Scrolling)
   ============================================ */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  background: var(--black);
  color: var(--white);
  padding: 20px 0;
}
.footer-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-col {
  flex: 1 1 200px;
  min-width: 200px;
}
.footer-nav {
  list-style: none;
}
.footer-nav li {
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--white);
  text-decoration: none;
}
.footer-nav a:hover {
  color: var(--gold);
}
.wallet-logos a {
  display: inline-block;
  width: 48px;
  margin: 4px;
}
.wallet-logos img {
  display: block;
  max-width: 100%;
  height: auto;
}
.footer-bottom {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  font-size: 14px;
  color: #aaa;
}
/* Container inline, for positioning */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

/* Hidden & absolutely positioned panel */
.nav-dropdown .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--gold);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 100;
}

/* Reveal on hover */
.nav-dropdown:hover .dropdown-content {
  display: block;
}

/* Link styles */
.nav-dropdown .dropdown-content a {
  color: var(--black);
  padding: 0.5em 1em;
  display: block;
  text-decoration: none;
}
.nav-dropdown .dropdown-content a:hover,
.nav-dropdown .dropdown-content a:focus {
  background: var(--black);
  color: var(--white);
}

/* Trigger button hover/active */
.nav-dropdown .nav-button:hover {
  background: transparent; /* ✅ Removes gold fill */
  color: var(--gold);       /* Optional: keep gold text if needed */
}

.nav-dropdown .nav-button.active {
  background: var(--gold);
  color: var(--black);
}
/* 1) Make phone input wrap on small screens */
@media (max-width: 600px) {
  /* Target the country+phone flex row */
  .form-group > div[style*="display:flex"] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  /* Give the select a fixed (but small) width, and let the input fill the rest */
  .form-group > div[style*="display:flex"] select {
    flex: 0 0 30%;
    min-width: 90px;
  }
  .form-group > div[style*="display:flex"] input[type="tel"] {
    flex: 1 1 65%;
    min-width: 0;            /* allow shrinking */
  }
}

/* 2) Scale down the reCAPTCHA widget so it never overflows */
@media (max-width: 480px) {
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: top left;
  }
  /* optionally reduce the container’s height so it doesn’t leave extra space */
  .g-recaptcha + .error-message {
    margin-top: 3rem;
  }
}
/* Mobile accordion container */
.mobile-dropdown {
  border-top: 1px solid #ccc;
}

/* Hide the submenu by default */
.mobile-dropdown-content {
  display: none;
  flex-direction: column;
}

/* Show when active */
.mobile-dropdown-content.active {
  display: flex;
}

/* Make the toggle full‐width and align text left */
.mobile-dropdown-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.75em 1em;
  font: inherit;
  cursor: pointer;
}

/* Optional: add a little indent to submenu items */
.mobile-dropdown-content .nav-button {
  padding-left: 2em;
}
.wallet-icon {
    height: 15px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    text-decoration: none;
  }
