/* ===== Basic Reset ===== */
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%}
body{
  font-family:"Poppins",sans-serif;
  color:#fff;
  background:#060d0d;
  overflow-x:hidden;
  position: relative;
}

/* ===== Premium FortuneX Blurred Gold Background ===== */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("https://images.unsplash.com/photo-1602524816830-648ad1f90a3e?auto=format&fit=crop&w=1600&q=80")
              center/cover no-repeat;
  filter: blur(14px) saturate(1.08);
  transform: scale(1.03);
  opacity: 0.55;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,215,0,0.08), rgba(255,166,0,0.08));
  mix-blend-mode: overlay;
  pointer-events: none;
}

a{text-decoration:none;transition:0.3s ease}

/* ===== Transparent Blurry Header ===== */
.mil-top-panel{
  position:fixed;
  top:0;left:0;right:0;
  z-index:9999;
  background:rgba(6,13,13,0.25);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(255,255,255,0.06);
  box-shadow:0 5px 15px rgba(0,0,0,0.2);
}

.mil-top-panel .container{
  max-width:1200px;
  margin:auto;
  padding:10px 18px; /* slightly compact */
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* logo sizes: default small, even smaller on narrow screens */
.mil-logo img{
  height:24px;
  display:block;
}

/* ===== Desktop Nav ===== */
.mil-top-menu ul{
  list-style:none;
  display:flex;
  gap:24px;
  align-items:center;
  margin:0;
  padding:0;
}

.mil-top-menu ul li a{
  color:#fff;
  font-weight:500;
  font-size:0.95rem;
  opacity:0.95;
}

.mil-top-menu ul li a:hover{
  color:#ff7a00;
}

.mil-top-menu .mil-active>a{
  color:#ff7a00;
  font-weight:600;
}

/* ===== Menu Buttons ===== */
.mil-menu-buttons{
  display:flex;
  align-items:center;
  gap:10px;
}

/* slightly smaller, tighter hamburger style */
.mil-menu-btn{
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:8px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  backdrop-filter:blur(6px);
  transition:all 0.22s ease;
  font-size:20px;
  color:#fff;
  font-weight:700;
  user-select:none;
}

.mil-menu-btn:hover{
  background:rgba(255,255,255,0.14);
  box-shadow:0 6px 18px rgba(255,122,0,0.12);
  transform:scale(1.03);
}

/* ===== Hide mobile button on desktop / hide desktop nav on mobile ===== */
@media (min-width: 993px){
  .mil-menu-buttons{display:none;}
}

@media (max-width: 992px){
  .mil-top-menu{display:none !important;}
  .mil-top-panel .container{padding-left:12px;padding-right:12px;}
  .mil-logo img{height:18px;} /* smaller on mobile */
  .mil-menu-btn{width:36px;height:36px;font-size:18px;border-radius:8px;}
}

/* ===== Mobile Overlay Menu ===== */
.mil-mobile-menu{
  position:fixed;
  inset:0;
  z-index:10010;
  display:none;
  background:rgba(6,13,13,0.98);
  color:#fff;
  padding:22px 18px;
  overflow-y:auto;
}

.mil-mobile-menu.open{display:block}
.body-menu-open{overflow:hidden}

.mil-mobile-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:20px;
}

.mil-mobile-top img{height:36px}

.mil-mobile-nav ul{list-style:none;margin:0;padding:0}
.mil-mobile-nav ul li{padding:12px 0;border-bottom:1px solid rgba(255,255,255,0.04)}
.mil-mobile-nav ul li a{color:#fff;font-size:1.02rem;font-weight:600;display:flex;justify-content:space-between;align-items:center}

.mil-mobile-nav .mil-active>a{color:#ff7a00}

/* submenu handling */
.mil-submenu{max-height:0;overflow:hidden;transition:max-height 0.28s ease;padding-left:14px}
.mil-has-children.open .mil-submenu{max-height:420px}
.mil-submenu li a{font-size:0.95rem;font-weight:500;color:#e0e0e0}

/* mobile CTA buttons */
.mil-mobile-cta{margin-top:20px;display:flex;gap:12px;flex-wrap:wrap}
.mil-cta-btn{padding:12px 20px;border-radius:8px;font-weight:700;text-align:center;display:inline-block}
.mil-cta-primary{background:#ff7a00;color:#fff}
.mil-cta-outline{border:1px solid rgba(255,255,255,0.14);color:#fff;background:transparent}

/* ===== Banner (Now with blurred background image) ===== */
.tapify-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg,#ff7a00 0%,#ff9900 100%);
  padding: 120px 0 80px;
  margin-top: 70px;
  z-index: 1;
}

/* optional: ensure banner has blurred image layer via pseudo (if used elsewhere) */
.tapify-banner::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('/assets/images/Headerbg.jpg') center/cover no-repeat;
  filter: blur(9px);
  opacity: 0.33;
}

/* The blurred background layer */
.tapify-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('/assets/images/Headerbg.jpg') center/cover no-repeat;
  filter: blur(9px);
  opacity: 0.33;
  z-index: -1;
}

.container{max-width:1200px;margin:auto;padding:0 20px}
.row{display:flex;flex-wrap:wrap;align-items:center}
.col-xl-6{flex:0 0 50%;max-width:50%;padding:10px}
.tapify-banner-text{color:#fff}
.tapify-banner-text h1{font-size:2.8rem;font-weight:700;margin-bottom:20px;line-height:1.2}
.tapify-banner-text p{margin-bottom:15px;font-size:1rem}
.tapify-banner-text a{background:#fff;color:#ff7a00;padding:12px 28px;border-radius:6px;font-weight:600;display:inline-block}
.tapify-banner-text a:hover{background:#ffe4cc}
.tapify-banner img{max-width:100%;border-radius:10px;height:auto}

/* ===== Responsive ===== */
@media(max-width:992px){
  .mil-top-menu ul{display:none}
  .col-xl-6{flex:0 0 100%;max-width:100%;text-align:center}
  .tapify-banner{padding:90px 0 60px}
}

/* Optional: Reduce blur on mobile for performance */
@media (max-width: 720px){
  body::before {
    filter: blur(8px) saturate(1.02);
    opacity: 0.5;
  }
}

/* ===== Body background image (replace path and tweak blur/opacity) ===== */
:root{
  --fx-bg-img: url("/logo3.png"); /* <- REPLACE this */
  --fx-bg-blur: 14px;     /* blur strength: change to taste */
  --fx-bg-opacity: 0.55;  /* how visible the image is */
}

/* keep layout stable */
html, body { height: 100%; }

/* blurred image layer (covers viewport) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -9999; /* behind everything */
  background: var(--fx-bg-img) center/cover no-repeat;
  filter: blur(var(--fx-bg-blur)) saturate(1.05);
  transform: scale(1.03);   /* hides sharp edges when blurred */
  opacity: var(--fx-bg-opacity);
  pointer-events: none;
}

/* ensure wrappers do not hide the background (override inline solid backgrounds) */
#smooth-wrapper, .mil-wrapper, #smooth-content {
  background: transparent !important;
}

/* Reduce blur & opacity on small devices for performance */
@media (max-width: 720px) {
  :root { --fx-bg-blur: 8px; --fx-bg-opacity: 0.45; }
  body::before { filter: blur(var(--fx-bg-blur)) saturate(1.02); }
}

/* minimal glow effect used by the counter */
  .glow {
    text-shadow: 0 0 14px rgba(255,213,74,0.5), 0 0 30px rgba(255,213,74,0.15);
    transform: translateY(-1px);
  }

  /* active currency button styling */
  #currencyToggle .cur-btn.active { color: #FFD54A; }
  #currencyToggle .cur-btn { transition: color .18s ease; font-size:1rem; }


  
  /* ======= FORTUNEX PAYMENT POPUP STYLING ======= */
  :root {
    --fx-bg: rgba(10, 10, 10, 0.9);
    --fx-accent: #ff7a00;
    --fx-text: #ffffff;
    --fx-muted: #cccccc;
  }

  /* Container positioning */
  #payment-popup-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    pointer-events: none;
  }

  /* Individual popup box */
  .payment-popup {
    pointer-events: auto;
    max-width: 320px;
    background: var(--fx-bg);
    border-left: 4px solid var(--fx-accent);
    color: var(--fx-text);
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(25px) scale(0.97);
    animation: popupEnter 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
    background-image: radial-gradient(
      circle at 0 100%,
      rgba(255, 122, 0, 0.08),
      transparent 70%
    );
  }

  /* Accent glow around text */
  .payment-popup::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(255, 122, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .payment-popup:hover::before {
    opacity: 1;
  }

  /* Entry animation */
  @keyframes popupEnter {
    from {
      opacity: 0;
      transform: translateY(25px) scale(0.97);
    }
    to {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  /* Exit animation handled by inline JS (opacity 0 + translateY) */

  /* Text styling inside popup */
  .payment-popup .amount {
    color: var(--fx-accent);
    font-weight: 700;
  }

  .payment-popup .name {
    color: #ffd54a;
    font-weight: 700;
  }

  /* Subtle glow animation for active payout */
  .payment-popup.glow {
    box-shadow: 0 0 16px rgba(255, 122, 0, 0.35),
      0 0 30px rgba(255, 122, 0, 0.15);
  }

  /* Mobile adjustments */
  @media (max-width: 480px) {
    #payment-popup-container {
      left: 12px;
      right: 12px;
      bottom: 16px;
      gap: 8px;
    }

    .payment-popup {
      width: 100%;
      max-width: none;
      font-size: 0.9rem;
      padding: 10px 12px;
      border-radius: 10px;
    }
  }

