/* Funding Page V2 — page-specific layers on top of page-home-v2.css */

/* ─── Body scope ─────────────────────────────────────────── */
body.page-template-page-funding-v2-php {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
}


/* ─── Page wrapper ───────────────────────────────────────── */
.fnd-page {
  position: relative;
  min-height: 60vh;
}

/* ─── Ambient glow ───────────────────────────────────────── */
.fnd-ombre {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 600px at 15% -5%, rgba(227,181,73,0.10), transparent 60%),
    radial-gradient(ellipse 800px 700px at 100% 20%, rgba(69,224,168,0.06), transparent 55%),
    radial-gradient(ellipse 1000px 800px at 50% 110%, rgba(184,134,44,0.08), transparent 60%);
}

/* ─── Main content ───────────────────────────────────────── */
.fnd-main {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 80px;
}

#deposit-methods,
#withdrawals,
#return-policy,
#funds-safety,
#islamic,
#faq,
#fnd-top {
  scroll-margin-top: 110px;
}

/* ─── Shared utilities ───────────────────────────────────── */
.fnd-eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(227,181,73,0.08);
  border: 1px solid rgba(227,181,73,0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.fnd-accent { color: var(--gold-2); }

.fnd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  box-sizing: border-box;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.fnd-btn:hover { transform: translateY(-2px); }
.fnd-btn--primary,
.fnd-cta-row ngp-auth-login.fnd-btn--primary,
.fnd-cta-row ngp-auth-signup.fnd-btn--primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--bg);
  box-shadow: 0 10px 28px rgba(227,181,73,0.25);
  border: 1px solid transparent;
}
.fnd-btn--primary:hover,
.fnd-cta-row ngp-auth-login.fnd-btn--primary:hover,
.fnd-cta-row ngp-auth-signup.fnd-btn--primary:hover {
  box-shadow: 0 14px 34px rgba(227,181,73,0.35);
}
.fnd-btn--ghost,
.fnd-cta-row ngp-auth-login.fnd-btn--ghost,
.fnd-cta-row ngp-auth-signup.fnd-btn--ghost {
  border: 1px solid rgba(245,247,250,0.3);
  color: var(--text);
  background: rgba(10,15,28,0.4);
}
.fnd-btn--ghost:hover,
.fnd-cta-row ngp-auth-login.fnd-btn--ghost:hover,
.fnd-cta-row ngp-auth-signup.fnd-btn--ghost:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
}

.fnd-cta-row ngp-auth-login,
.fnd-cta-row ngp-auth-signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fnd-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* ─── Section block ──────────────────────────────────────── */
.fnd-block {
  margin-bottom: 76px;
  padding: 0;
}
.fnd-block__head {
  margin-bottom: 20px;
}
.fnd-block__head .fnd-eyebrow {
  margin-bottom: 12px;
}
.fnd-block__head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.01em;
}
.fnd-lead {
  color: var(--text-mute);
  margin-top: 10px;
  max-width: 680px;
  font-size: 1rem;
}

/* ─── HERO ───────────────────────────────────────────────── */
.fnd-hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 56px 48px;
  direction: ltr;
  background: var(--bg-2);
}

.fnd-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fnd-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.fnd-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(270deg,
    rgba(10,15,28,0.95) 0%,
    rgba(10,15,28,0.88) 32%,
    rgba(10,15,28,0.5) 56%,
    rgba(10,15,28,0.14) 78%,
    rgba(10,15,28,0.02) 100%);
}

.fnd-hero__txt {
  position: relative;
  z-index: 2;
  max-width: 480px;
  min-width: 0;
  direction: ltr;
  text-align: left;
}

[dir="rtl"] .fnd-hero__txt {
  direction: rtl;
  text-align: right;
}

.fnd-hero__txt h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.2rem, 4.4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.fnd-hero__sub {
  color: var(--text-mute);
  font-size: 1.04rem;
  max-width: 420px;
}

/* ─── 3-STEP STRIP ───────────────────────────────────────── */
.fnd-step-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: 36px 0 48px;
}

.fnd-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 200px;
}

.fnd-step__num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gold);
  font-size: 0.8rem;
  border: 1px solid rgba(227,181,73,0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fnd-step h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.fnd-step p {
  font-size: 0.83rem;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ─── DEPOSIT METHOD CARDS ───────────────────────────────── */
.fnd-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fnd-method-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 28px;
  transition: border-color .25s ease, transform .25s ease;
}
.fnd-method-card:hover {
  border-color: rgba(227,181,73,0.25);
  transform: translateY(-3px);
}

.fnd-method-card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.fnd-badge-free {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: rgba(69,224,168,0.10);
  border: 1px solid rgba(69,224,168,0.30);
  padding: 3px 9px;
  border-radius: 100px;
  text-transform: uppercase;
}

.fnd-payment-logos {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.fnd-logo-plate {
  background: #fff;
  border-radius: 9px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.fnd-logo-plate img {
  display: block;
  height: 20px;
  width: auto;
}

.fnd-gpay-mark,
.fnd-applepay-mark {
  display: block;
  height: 28px;
  width: auto;
}
.fnd-gpay-mark {
  border-radius: 100px;
}

.fnd-method-sub {
  color: var(--text-faint);
  font-size: 0.84rem;
  margin-bottom: 16px;
}

.fnd-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 0.88rem;
}
.fnd-dl dt { color: var(--text-faint); }
.fnd-dl dd {
  color: var(--text);
  text-align: right;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.85rem;
}
[dir="rtl"] .fnd-dl dd { text-align: left; }

/* ─── LIMITS ROW ─────────────────────────────────────────── */
.fnd-limits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 32px;
}

.fnd-limits-item {
  padding: 30px 24px;
  text-align: center;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.fnd-limits-item:first-child { border-left: none; }
[dir="rtl"] .fnd-limits-item {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.08);
}
[dir="rtl"] .fnd-limits-item:first-child { border-right: none; }

.fnd-limits-value {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--gold-2);
  margin-bottom: 6px;
}
.fnd-limits-label {
  color: var(--text-mute);
  font-size: 0.86rem;
}

/* ─── TABLE ──────────────────────────────────────────────── */
.fnd-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
}

.fnd-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--bg-2);
  border-radius: 16px;
  overflow: hidden;
  font-size: 0.88rem;
}

.fnd-table th,
.fnd-table td {
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fnd-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--gold-2);
  background: rgba(227,181,73,0.06);
}
.fnd-table td:first-child,
.fnd-table th:first-child {
  text-align: left;
  color: var(--text-mute);
}
[dir="rtl"] .fnd-table td:first-child,
[dir="rtl"] .fnd-table th:first-child {
  text-align: right;
}
.fnd-table .mono { font-family: 'IBM Plex Mono', monospace; }
.fnd-table tbody tr:last-child td { border-bottom: none; }

/* ─── POLICY LIST ────────────────────────────────────────── */
.fnd-policy-item {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  font-size: 0.92rem;
  color: var(--text-mute);
  line-height: 1.65;
}
.fnd-policy-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.08); }
.fnd-policy-item strong { color: var(--text); }

/* ─── SAFETY BANNER ──────────────────────────────────────── */
.fnd-safety-banner {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  padding: 48px 40px;
  margin-bottom: 36px;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-2);
}

.fnd-safety-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.fnd-safety-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.fnd-safety-banner__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(10,15,28,0.96) 0%, rgba(10,15,28,0.88) 42%, rgba(10,15,28,0.45) 78%, rgba(10,15,28,0.25) 100%),
    linear-gradient(0deg, rgba(10,15,28,0.5) 0%, transparent 45%);
}

.fnd-safety-banner__content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}
.fnd-safety-banner__content .fnd-eyebrow {
  margin-bottom: 16px;
}
.fnd-safety-banner__content h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.fnd-safety-banner__content p {
  color: var(--text-mute);
  font-size: 0.98rem;
}
.fnd-safety-banner__content p strong { color: var(--text); }

/* ─── SAFETY PILLARS ─────────────────────────────────────── */
.fnd-pillars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 36px;
}

.fnd-pillar {
  padding: 22px 18px;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.fnd-pillar:first-child { border-left: none; }
[dir="rtl"] .fnd-pillar {
  border-left: none;
  border-right: 1px solid rgba(255,255,255,0.08);
}
[dir="rtl"] .fnd-pillar:first-child { border-right: none; }

.fnd-pillar__icon { margin-bottom: 12px; }
.fnd-pillar__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-2);
  display: block;
}
.fnd-pillar h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.86rem;
  margin-bottom: 8px;
  color: var(--gold-2);
}
.fnd-pillar p {
  font-size: 0.78rem;
  color: var(--text-mute);
  line-height: 1.5;
}

/* ─── ACCORDION ──────────────────────────────────────────── */
.fnd-acc-item { border-top: 1px solid rgba(255,255,255,0.08); }
.fnd-acc-item:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.08); }

.fnd-acc-trigger {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
}
[dir="rtl"] .fnd-acc-trigger { text-align: right; }
.fnd-acc-trigger:hover { color: var(--gold-2); }

.fnd-acc-icon {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--gold);
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
  transition: transform .24s ease;
}
.fnd-acc-trigger[aria-expanded="true"] .fnd-acc-icon {
  transform: rotate(45deg);
}

.fnd-acc-panel { overflow: hidden; }

.fnd-acc-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding-bottom: 20px;
}
.fnd-acc-body p {
  color: var(--text-mute);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 800px;
}
.fnd-acc-body strong { color: var(--text); }

.fnd-detail-img {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(227,181,73,0.22);
  flex-shrink: 0;
}
.fnd-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── ISLAMIC STRIP ──────────────────────────────────────── */
.fnd-islamic-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #101A2C;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  padding: 26px 32px;
  flex-wrap: wrap;
}
.fnd-islamic-strip__txt h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.fnd-islamic-strip__txt p {
  color: var(--text-mute);
  font-size: 0.9rem;
  max-width: 520px;
  line-height: 1.55;
}

.fnd-link-cta {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 12px 22px;
  border-radius: 100px;
  flex-shrink: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fnd-link-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(227,181,73,0.28);
}

/* ─── FAQ ────────────────────────────────────────────────── */
.fnd-faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
}
.fnd-faq-item:first-child {
  border-top: 1px solid rgba(255,255,255,0.08);
}
.fnd-faq-item h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--text);
}
.fnd-faq-item p {
  color: var(--text-mute);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ─── CLOSING CTA ────────────────────────────────────────── */
.fnd-closing-cta {
  text-align: center;
  padding: 40px 20px 16px;
}
.fnd-closing-cta h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.fnd-closing-cta p {
  color: var(--text-mute);
  font-size: 1.02rem;
  max-width: 560px;
  margin: 0 auto;
}
.fnd-closing-cta .fnd-cta-row {
  justify-content: center;
  margin-top: 28px;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .fnd-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
  .fnd-pillar:nth-child(n) {
    border-left: 1px solid rgba(255,255,255,0.08);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .fnd-pillar:nth-child(3n + 1) { border-left: none; }
  .fnd-pillar:nth-child(-n + 3) { border-top: none; }
  [dir="rtl"] .fnd-pillar:nth-child(n) {
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.08);
  }
  [dir="rtl"] .fnd-pillar:nth-child(3n + 1) { border-right: none; }
}

@media (max-width: 900px) {

  .fnd-main {
    padding: 16px 20px 64px;
  }

  .fnd-hero {
    min-height: 380px;
    padding: 36px 24px;
    justify-content: flex-end;
  }
  .fnd-hero__txt {
    max-width: min(100%, 420px);
  }

  .fnd-step-strip {
    margin: 28px 0 40px;
    gap: 18px 24px;
  }

  .fnd-block {
    margin-bottom: 40px;
  }
  .fnd-block__head {
    margin-bottom: 16px;
  }

  .fnd-method-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .fnd-limits-row {
    grid-template-columns: 1fr;
  }
  .fnd-limits-item {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 22px 16px;
  }
  .fnd-limits-item:first-child { border-top: none; }

  .fnd-pillars {
    grid-template-columns: 1fr 1fr;
  }
  .fnd-pillar:nth-child(n) {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .fnd-pillar:nth-child(-n + 2) { border-top: none; }

  .fnd-acc-body {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fnd-detail-img {
    width: 100%;
    height: 180px;
    order: -1;
  }

  .fnd-safety-banner {
    padding: 32px 24px;
    min-height: 240px;
    margin-bottom: 28px;
  }

  .fnd-pillars {
    margin-bottom: 28px;
  }

  .fnd-islamic-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    gap: 16px;
  }

  .fnd-closing-cta {
    padding: 28px 12px 8px;
  }
}

@media (max-width: 560px) {
  .fnd-main {
    padding: 12px 16px 56px;
  }

  .fnd-hero {
    min-height: 340px;
    padding: 28px 18px;
    border-radius: 18px;
    justify-content: center;
  }
  .fnd-hero__txt {
    max-width: 100%;
    text-align: center;
  }
  [dir="rtl"] .fnd-hero__txt {
    text-align: center;
  }
  .fnd-hero__sub {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .fnd-hero__overlay {
    background: linear-gradient(180deg,
      rgba(10,15,28,0.55) 0%,
      rgba(10,15,28,0.82) 45%,
      rgba(10,15,28,0.96) 100%);
  }
  .fnd-cta-row {
    justify-content: center;
    width: 100%;
  }
  .fnd-cta-row .fnd-btn,
  .fnd-cta-row ngp-auth-login,
  .fnd-cta-row ngp-auth-signup {
    width: 100%;
  }

  .fnd-step-strip {
    flex-direction: column;
    gap: 16px;
    margin: 24px 0 36px;
    padding: 18px 0;
  }

  .fnd-block {
    margin-bottom: 36px;
  }

  .fnd-method-card {
    padding: 22px;
    border-radius: 18px;
  }

  .fnd-pillars {
    grid-template-columns: 1fr;
  }
  .fnd-pillar:nth-child(n) {
    border-top: 1px solid rgba(255,255,255,0.08) !important;
    padding: 18px 4px;
  }
  .fnd-pillar:first-child { border-top: none !important; }

  .fnd-safety-banner {
    padding: 28px 18px;
    min-height: 220px;
    border-radius: 18px;
    margin-bottom: 24px;
  }
  .fnd-pillars {
    margin-bottom: 28px;
  }

  .fnd-table {
    font-size: 0.8rem;
    min-width: 480px;
  }
  .fnd-table th,
  .fnd-table td {
    padding: 12px 10px;
  }

  .fnd-detail-img {
    height: 160px;
    border-radius: 14px;
  }

  .fnd-islamic-strip {
    border-radius: 18px;
  }
  .fnd-link-cta {
    width: 100%;
    justify-content: center;
  }

  .fnd-closing-cta .fnd-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fnd-btn,
  .fnd-method-card,
  .fnd-link-cta,
  .fnd-acc-icon {
    transition: none;
  }
  .fnd-btn:hover,
  .fnd-method-card:hover,
  .fnd-link-cta:hover {
    transform: none;
  }
}
