:root {
  --cw-shell-nav-height: 72px;
  --cw-shell-container-width: 1200px;
  --cw-shell-container-pad: 16px;
  --cw-shell-text-main: #ffffff;
  --cw-shell-text-muted: #a3a7c2;
  --cw-shell-accent: #f7b0ff;
  --cw-shell-accent-2: #78c6ff;
  --cw-shell-border: rgba(255, 255, 255, 0.06);
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 7, 17, 0.96), rgba(5, 7, 17, 0.84), transparent);
  border-bottom: 1px solid var(--cw-shell-border);
  width: 100%;
  overflow: visible;
}

.navbar .container,
.footer .container {
  width: 100%;
  max-width: var(--cw-shell-container-width);
  margin: 0 auto;
  padding: 0 var(--cw-shell-container-pad);
}

.navbar.p2p-shell .container,
.footer.p2p-shell .container {
  max-width: 1100px;
  padding-left: 24px;
  padding-right: 24px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--cw-shell-nav-height);
  gap: 16px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
}

.logo-badge {
  background: linear-gradient(135deg, #f59e0b, #f7b0ff);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  color: #050711;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.logo span {
  background: linear-gradient(90deg, #f7b0ff, #78c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo .logo-sep {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--cw-shell-text-muted);
  font-weight: 300;
}

.nav-resources {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-resource-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  color: var(--cw-shell-text-muted);
  white-space: nowrap;
  text-decoration: none;
}

.nav-resource-btn .btn-icon {
  font-size: 13px;
}

.nav-resource-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(247, 176, 255, 0.6);
  color: var(--cw-shell-text-main);
  transform: translateY(-1px);
}

.nav-resource-btn.active {
  background: rgba(247, 176, 255, 0.08);
  border-color: rgba(247, 176, 255, 0.4);
  color: var(--cw-shell-accent);
}

.nav-resource-btn.premium {
  background: linear-gradient(90deg, rgba(247, 176, 255, 0.12), rgba(120, 198, 255, 0.08));
  border-color: rgba(247, 176, 255, 0.35);
  color: var(--cw-shell-accent);
}

.nav-resource-btn.premium:hover {
  background: linear-gradient(90deg, rgba(247, 176, 255, 0.22), rgba(120, 198, 255, 0.14));
  box-shadow: 0 4px 20px rgba(247, 176, 255, 0.2);
}

.nav-resource-btn.premium.active {
  background: linear-gradient(90deg, rgba(247, 176, 255, 0.22), rgba(120, 198, 255, 0.14));
  border-color: rgba(247, 176, 255, 0.6);
  box-shadow: 0 0 16px rgba(247, 176, 255, 0.2);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  gap: 5px;
  flex-shrink: 0;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cw-shell-text-main);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  background: rgba(5, 7, 17, 0.98);
  border-bottom: 1px solid var(--cw-shell-border);
  backdrop-filter: blur(18px);
  position: sticky;
  top: var(--cw-shell-nav-height);
  z-index: 49;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--cw-shell-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.2s;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: "Unbounded", sans-serif;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: rgba(247, 176, 255, 0.08);
  border-color: rgba(247, 176, 255, 0.3);
  color: var(--cw-shell-text-main);
}

.mobile-menu a.premium {
  background: linear-gradient(90deg, rgba(247, 176, 255, 0.1), rgba(120, 198, 255, 0.06));
  border-color: rgba(247, 176, 255, 0.3);
  color: var(--cw-shell-accent);
}

.mobile-menu a.premium:hover,
.mobile-menu a.premium.active {
  background: linear-gradient(90deg, rgba(247, 176, 255, 0.18), rgba(120, 198, 255, 0.1));
  border-color: rgba(247, 176, 255, 0.5);
}

.cw-mobile-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 4px 0;
}

.footer {
  border-top: 1px solid var(--cw-shell-border);
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0;
  font-size: 13px;
  color: var(--cw-shell-text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--cw-shell-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cw-shell-text-main);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-resources {
    display: none !important;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-links {
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .navbar .container,
  .footer .container {
    padding: 0 16px;
  }

  .logo {
    font-size: 13px;
  }

  .logo-badge {
    font-size: 10px;
  }
}

/* Shared Ecosystem Footer (from p2p/cashback style) */
.footer.footer-ecosystem {
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer.footer-ecosystem .container {
  max-width: 1100px;
  padding-left: 24px;
  padding-right: 24px;
}

.cw-footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px 0 12px;
}

.cw-footer-brand a {
  font-family: "Unbounded", sans-serif;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(90deg, #f7b0ff, #78c6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

.cw-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.cw-footer-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(74, 79, 106, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cw-footer-links-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cw-footer-links-list a {
  font-size: 13px;
  color: #a3a7c2;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cw-footer-links-list a:hover {
  color: #ffffff;
}

.cw-footer-links-list a.cw-link-premium {
  color: #78c6ff;
  font-weight: 500;
}

.cw-footer-links-list a.cw-link-premium:hover {
  color: #ffffff;
}

.cw-footer-bottom {
  margin-top: 10px;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: rgba(74, 79, 106, 0.8);
}

@media (max-width: 980px) {
  .cw-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .footer.footer-ecosystem .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cw-footer-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cw-footer-top {
    gap: 18px;
    padding-top: 20px;
  }
}

/* Footer right-aligned layout override */
.footer.footer-ecosystem .cw-footer-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 36px;
}

.footer.footer-ecosystem .cw-footer-brand {
  flex: 0 0 auto;
}

.footer.footer-ecosystem .cw-footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 24px 36px;
  margin-left: auto;
  max-width: 860px;
}

.footer.footer-ecosystem .cw-footer-col {
  min-width: 170px;
}

@media (max-width: 980px) {
  .footer.footer-ecosystem .cw-footer-top {
    flex-direction: column;
    gap: 18px;
  }

  .footer.footer-ecosystem .cw-footer-grid {
    margin-left: 0;
    justify-content: flex-start;
    max-width: none;
  }
}


/* Navbar P2P dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  padding-right: 12px;
}

.dropdown-caret {
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s ease;
}


.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: auto;
  min-width: 260px;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(9, 12, 24, 0.96);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.45);
  z-index: 70;
}


.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--cw-shell-text-muted);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--cw-shell-text-main);
  border-color: rgba(247,176,255,0.35);
  background: rgba(247,176,255,0.09);
}

.mobile-menu-group-title {
  padding: 4px 2px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(163, 167, 194, 0.85);
}


/* Dropdown click-open support */
.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown.open .dropdown-caret {
  transform: rotate(180deg);
}
