/*
 * Shared page chrome — header + mega-menu + footer.
 * Used by /depipay.html (sourced inline there) AND by the
 * standalone pages /coins.html and /support.html (linked).
 * Keep visually identical to the inline rules in depipay.html.
 */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html, body { overflow-x: clip; max-width: 100%; overscroll-behavior-x: none; }
body {
  background: #010101;
  color: rgba(243, 246, 253, 0.88);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11';
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============================== Header ============================== */
.cp-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* No backdrop-filter on the header itself — that creates a
     stacking context which breaks the mega-menu panels' own
     backdrop-filter: blur. The blurred surface lives on a
     pseudo-element behind the header content instead. */
}
.cp-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 22, 0.55);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
          backdrop-filter: saturate(1.6) blur(14px);
  z-index: -1;
  pointer-events: none;
}
.cp-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  gap: 24px;
}
.cp-header-logo { display: inline-flex; align-items: center; }
.cp-header a[aria-label="DepiPay home"] img,
.cp-header-logo img {
  height: 26px !important;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.05));
  display: block;
}
.cp-header a[aria-label="DepiPay home"],
.cp-header-logo {
  filter: brightness(0.95) contrast(1.02);
}

.cp-header nav,
.cp-header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.cp-header nav a,
.cp-header-nav a {
  opacity: 0.9;
  background: linear-gradient(180deg, #ffffff 0%, #d8dcea 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.cp-header nav a:hover,
.cp-header-nav a:hover { opacity: 1; }
.cp-header nav a.is-active,
.cp-header-nav a.is-active {
  opacity: 1;
  background: linear-gradient(180deg, #6ea3ff 0%, #387eff 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cp-header-actions { display: flex; align-items: center; gap: 12px; }
.cp-header-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 9999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.cp-header-actions .login {
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.cp-header-actions .signup {
  background: linear-gradient(127deg, #f3f6fd 4.45%, #ccdbf6 78.7%);
  color: #000;
  transition: box-shadow 0.25s ease, transform 0.15s ease;
}
.cp-header-actions .login:hover {
  opacity: 0.7;
}
.cp-header-actions .signup:hover {
  box-shadow: 0 0 0 4px rgba(243,246,253,0.15), 0 0 20px rgba(243,246,253,0.2);
}

/* ===== Mega-menu (desktop) ===== */
.cp-megamenu { position: relative; display: inline-flex; align-items: center; }
.cp-megamenu__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  padding: 0;
  cursor: pointer;
  /* Same gradient text treatment as the regular nav links so the
     button visually matches them. */
  opacity: 0.9;
  background: linear-gradient(180deg, #ffffff 0%, #d8dcea 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.cp-megamenu__btn svg {
  width: 11px;
  height: 11px;
  stroke: #d8dcea;
  fill: none;
  transition: transform 0.2s;
}
.cp-megamenu:hover .cp-megamenu__btn,
.cp-megamenu:focus-within .cp-megamenu__btn { opacity: 1; }
.cp-megamenu:hover .cp-megamenu__btn svg,
.cp-megamenu:focus-within .cp-megamenu__btn svg { transform: rotate(180deg); }

.cp-megamenu__panel {
  position: absolute;
  top: calc(100% + 22px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 720px;
  background: rgba(10, 14, 28, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 20px;
  padding: 22px;
  -webkit-backdrop-filter: saturate(1.6) blur(28px);
          backdrop-filter: saturate(1.6) blur(28px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  z-index: 70;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
}
.cp-megamenu__panel::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 22px;
}
.cp-megamenu.is-open > .cp-megamenu__panel {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.cp-megamenu__sidebar {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cp-megamenu__cat { display: block; text-decoration: none; color: #fff; }
.cp-megamenu__cat-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f3f6fd !important;
  -webkit-text-fill-color: #f3f6fd !important;
  background: none !important;
  margin: 0 0 4px 0;
}
.cp-megamenu__cat-desc {
  font-size: 11.5px;
  line-height: 1.45;
  color: rgba(243, 246, 253, 0.55);
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
}
.cp-megamenu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 6px;
}
.cp-megamenu__item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #f3f6fd !important;
  -webkit-text-fill-color: #f3f6fd !important;
  background: none !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background 0.15s;
}
.cp-megamenu__item:hover { background: rgba(56, 126, 255, 0.12) !important; }
.cp-megamenu__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1c2233, #0c0f1a);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.cp-megamenu__icon svg {
  width: 15px;
  height: 15px;
  stroke: #6ea3ff;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ===== Language picker ===== */
.cp-lang { position: relative; display: inline-flex; align-items: center; }
.cp-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity .15s;
}
.cp-lang__btn:hover { opacity: 0.85; }
.cp-lang__btn svg { width: 11px; height: 11px; transition: transform .2s; }
.cp-lang:hover .cp-lang__btn svg,
.cp-lang:focus-within .cp-lang__btn svg { transform: rotate(180deg); }
.cp-lang__menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  min-width: 180px;
  background: rgba(10, 14, 28, 0.45);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 6px;
  -webkit-backdrop-filter: saturate(1.6) blur(28px);
          backdrop-filter: saturate(1.6) blur(28px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translate(-50%, -6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 70;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}
.cp-lang__menu::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 22px;
}
.cp-lang:hover .cp-lang__menu,
.cp-lang:focus-within .cp-lang__menu,
.cp-lang__btn:focus + .cp-lang__menu {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.cp-lang__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1 !important;
  background: transparent !important;
  -webkit-background-clip: border-box !important;
          background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  text-decoration: none;
  border-radius: 10px;
  transition: background .15s, color .15s;
}
.cp-lang__menu a:hover {
  background: rgba(255,255,255,0.06) !important;
  color: #fff !important;
}
.cp-lang__menu a.is-active {
  background: rgba(56,126,255,0.18) !important;
  color: #fff !important;
}
.cp-lang__menu a span { font-size: 10px; opacity: 0.6; letter-spacing: 0.08em; }
@media (max-width: 560px) { .cp-lang { display: none; } }

/* ============================== Footer ============================== */
.cp-footer {
  background: linear-gradient(180deg, #02050B 0%, #010101 100%);
  color: #F3F6FD;
  padding: 96px 0 32px;
  border-top: 1px solid rgba(243,246,253,0.06);
}
.cp-footer__inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.cp-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(243,246,253,0.08);
  flex-wrap: wrap;
}
.cp-footer__brand { max-width: 360px; }
.cp-footer__brand img { height: 42px; width: auto; display: block; margin-bottom: 18px; }
.cp-footer__brand p { color: #8A8F9B; font-size: 13px; line-height: 1.6; margin: 0; }
.cp-footer__newsletter { flex: 0 0 360px; }
.cp-footer__newsletter h4 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin: 0 0 8px; }
.cp-footer__newsletter p { font-size: 13px; color: #8A8F9B; margin: 0 0 18px; line-height: 1.5; }
.cp-footer__form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(243,246,253,0.12);
  border-radius: 9999px;
  padding: 6px 6px 6px 22px;
  transition: border-color .2s;
}
.cp-footer__form:focus-within { border-color: rgba(56,126,255,0.55); }
.cp-footer__form input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
}
.cp-footer__form input::placeholder { color: #6B7280; }
.cp-footer__form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(127deg,#387EFF 4.45%,#1255D1 78.7%);
  transition: transform .15s;
}
.cp-footer__form button:hover { transform: translateX(2px); }

.cp-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid rgba(243,246,253,0.08);
}
.cp-footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin: 0 0 22px;
  color: #fff;
}
.cp-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cp-footer__col a {
  color: #8A8F9B;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s, padding-left .15s;
}
.cp-footer__col a:hover { color: #fff; padding-left: 4px; }

.cp-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 24px;
  flex-wrap: wrap;
}
.cp-footer__copy { color: #5B6170; font-size: 12px; margin: 0; }
.cp-footer__socials { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cp-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(243,246,253,0.12);
  background: rgba(255,255,255,0.02);
  opacity: 0.85;
  transition: opacity .15s, border-color .15s, background .15s, transform .15s;
}
.cp-footer__socials a:hover {
  opacity: 1;
  border-color: rgba(56,126,255,0.55);
  background: rgba(56,126,255,0.08);
  transform: translateY(-1px);
}
.cp-footer__socials img { width: 16px; height: 16px; display: block; }

@media (max-width: 980px) {
  .cp-footer__top { flex-direction: column; }
  .cp-footer__newsletter { flex: 1 1 100%; max-width: 480px; }
  .cp-footer__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}
/* Mobile burger for sub-pages (coins, support, signup, etc.).
   The main depipay.html has its own checkbox-based drawer;
   sub-pages use this simpler CSS+JS toggle. */
.cp-mobile-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  cursor: pointer;
  color: #fff;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cp-mobile-burger svg { width: 22px; height: 22px; display: block; }
.cp-mobile-drawer {
  display: none;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 86vw;
  max-width: 360px;
  z-index: 60;
  background: #05080f;
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -20px 0 60px rgba(0,0,0,0.55);
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1);
}
.cp-mobile-drawer.open { transform: translateX(0); display: flex; }
.cp-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 58;
  background: rgba(0,0,0,0.6);
}
.cp-mobile-backdrop.open { display: block; }
.cp-mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cp-mobile-drawer__head p {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.cp-mobile-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  background: none;
  border: 0;
}
.cp-mobile-close svg { width: 18px; height: 18px; }
.cp-mobile-drawer__list {
  list-style: none;
  padding: 20px 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cp-mobile-drawer__list a {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.15s;
}
.cp-mobile-drawer__list a:hover { background: rgba(56,126,255,0.12); }
.cp-mobile-drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 26px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}
.cp-mobile-drawer__foot a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cp-mobile-drawer__login {
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.cp-mobile-drawer__signup {
  background: linear-gradient(127deg, #387eff 4.45%, #1255d1 78.7%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(56,126,255,0.35);
}

@media (max-width: 900px) {
  .cp-header-inner { padding: 16px 20px !important; }
  .cp-header nav, .cp-header-nav, .cp-header-actions { display: none !important; }
  .cp-mobile-burger { display: inline-flex; }
}
@media (max-width: 560px) {
  .cp-footer { padding: 72px 0 24px; }
  .cp-footer__cols { grid-template-columns: 1fr; gap: 32px; }
  .cp-footer__bottom { flex-direction: column; align-items: flex-start; }
  .cp-footer__socials { gap: 10px; }
  .cp-footer__socials a { width: 32px; height: 32px; }
}

/* ================== Section reveal animation =================== */
[data-cp-reveal] {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition:
    opacity 0.16s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.16s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--cp-reveal-i, 0) * 5ms);
  will-change: opacity, transform;
}
[data-cp-reveal][data-cp-reveal-in] {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}
@media (prefers-reduced-motion: reduce) {
  [data-cp-reveal],
  [data-cp-reveal][data-cp-reveal-in] {
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ===== Gradient headings — shared across sub-pages ===== */
.hero h1,
main > section h2,
.cats h2,
.faq h2,
.contact h2,
.ready h2 {
  background: linear-gradient(180deg, #ffffff 0%, #b0b8cc 40%, #7882a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* Bold words inside gradient headings keep the gradient */
.hero h1 b,
main > section h2 b,
.cats h2 b,
.faq h2 b,
.contact h2 b,
.ready h2 b {
  background: inherit;
  -webkit-background-clip: inherit;
  background-clip: inherit;
  -webkit-text-fill-color: inherit;
}
