/* ============================
   Buy Crypto CTA Button Styles
   ============================ */

/* CTA Button */
.buy-crypto-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  background: linear-gradient(135deg, #2D6CDF, #20BFA9);
  box-shadow: 0 0 10px rgba(45,108,223,0.6);

  /* Animations */
  opacity: 0;
  animation: buttonPulse 4s infinite ease-in-out,
             fadeSlideIn 1s ease forwards;
  animation-delay: 0s, 0.5s;
}

.buy-crypto-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(45,108,223,0.9),
              0 0 35px rgba(32,191,169,0.7);
  text-shadow: 0 0 6px #ffffff;
}

/* Coin Icon */
.coin-icon {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 4px rgba(255,215,0,0.6));
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.buy-crypto-btn:hover .coin-icon {
  transform: rotate(15deg) scale(1.1);
}

/* Coin Golden Aura */
@keyframes pulseGlow {
  0%   { filter: drop-shadow(0 0 4px rgba(255,215,0,0.6)); }
  50%  { filter: drop-shadow(0 0 12px rgba(255,215,0,0.9)); }
  100% { filter: drop-shadow(0 0 4px rgba(255,215,0,0.6)); }
}

/* Button Breathing Glow */
@keyframes buttonPulse {
  0%   { box-shadow: 0 0 10px rgba(45,108,223,0.6); }
  50%  { box-shadow: 0 0 20px rgba(45,108,223,0.9),
                 0 0 35px rgba(32,191,169,0.7); }
  100% { box-shadow: 0 0 10px rgba(45,108,223,0.6); }
}

/* Fade + Slide Entry */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Light Mode */
@media (prefers-color-scheme: light) {
  .buy-crypto-btn {
    background: linear-gradient(135deg, #2D6CDF, #20BFA9);
    color: #ffffff;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  .buy-crypto-btn {
    background: linear-gradient(135deg, #141414, #1c1c1e);
    border: 2px solid #2D6CDF;
    color: #FFD700;
  }
  .buy-crypto-btn:hover {
    color: #ffffff;
    text-shadow: 0 0 8px #FFD700;
    box-shadow: 0 0 25px rgba(45,108,223,1),
                0 0 40px rgba(255,145,77,0.8);
  }
}

/* ============================
   Modal (Buy Crypto Widget)
   ============================ */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(6px);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 0;
  background: linear-gradient(135deg, #0A0A0F, #1C1C1E);
  border: 2px solid #2D6CDF;
  border-radius: 16px;
  width: 460px;
  height: 90vh;          /* Responsive */
  max-height: 720px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease-in-out;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.modal-content iframe {
  flex: 1;
  width: 100%;
  border: none;
  border-radius: 12px;
}

.close {
  position: absolute;
  top: 10px;
  right: 18px;
  color: #FF914D;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  z-index: 10;
}
.close:hover {
  color: #FFD700;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Mobile fullscreen */
@media (max-width: 768px) {
  .modal-content {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: none;
  }
  .modal-content iframe {
    border-radius: 0;
  }
  .close {
    top: 15px;
    right: 20px;
    font-size: 34px;
  }
}
li .buy-crypto-btn {
  list-style: none;
}
/* Align Buy Crypto button with navbar links */
nav ul {
  display: flex;
  align-items: center;  /* ensures vertical alignment */
}

nav ul li {
  list-style: none;     /* removes bullets */
  display: flex;        /* makes li respect alignment */
  align-items: center;
}

/* Make Buy Crypto button match height of other nav links */
.buy-crypto-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;   /* ✅ adjusted padding to match navbar height */
  line-height: 1;      /* avoids misalignment */
  vertical-align: middle;
}
/* Navbar container setup */
nav {
  display: flex;
  justify-content: space-between; /* pushes CTA to right */
  align-items: center;
}

/* Make sure menu items stay aligned left */
.nav-menu {
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  list-style: none; /* remove dots */
}

/* Ensure Buy Crypto button aligns center vertically */
.buy-crypto-btn {
  margin-left: auto;  /* pushes button to far right */
}
