/* Plasma Wallet chrome — nav, drawer, site footer (P2P menus preserved) */
.pw-plasma-shell {
  --pw-nav-muted: #94969c;
  --pw-nav-text: #fff;
  --pw-nav-line: rgba(255, 255, 255, 0.12);
  --pw-nav-panel: rgba(10, 10, 10, 0.96);
  font-family: Inter, system-ui, sans-serif;
}

.pw-plasma-shell .wlf-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.pw-plasma-shell .wlf-skip:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10001;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #c22df8;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.pw-plasma-shell .navbar_component {
  z-index: 1000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 1.25rem 5%;
  min-height: 3.5rem;
  display: flex;
  align-items: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.pw-plasma-shell.pw-plasma-shell--inner .navbar_component {
  position: sticky;
  background-color: rgba(0, 0, 0, 0.92);
}

.pw-plasma-shell .navbar_component.is-scrolled {
  background-color: rgba(0, 0, 0, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.pw-plasma-shell .navbar_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 3vw, 1.5rem);
  min-width: 0;
}

.pw-plasma-shell .navbar_logo-link {
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: min(14rem, 48vw);
  min-width: 0;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.pw-plasma-shell .pw-plasma-nav__logo {
  width: auto;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.pw-plasma-shell .navbar_menu {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-left: 1rem;
  min-width: 0;
}

@media (min-width: 1024px) {
  .pw-plasma-shell .navbar_menu {
    display: flex;
  }
}

.pw-plasma-shell .pw-plasma-nav__center {
  flex: 1;
  min-width: 0;
}

.pw-plasma-shell .pw-plasma-nav__center .wlf-nav__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pw-plasma-shell .wlf-drop__trigger,
.pw-plasma-shell .wlf-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pw-nav-muted) !important;
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.pw-plasma-shell .wlf-drop__trigger:hover,
.pw-plasma-shell .wlf-nav__link:hover,
.pw-plasma-shell .wlf-drop.is-open > .wlf-drop__trigger {
  color: var(--pw-nav-text) !important;
  background: rgba(255, 255, 255, 0.06);
}

.pw-plasma-shell .wlf-drop__icon {
  width: 1rem;
  height: 1rem;
  opacity: 0.75;
  transition: transform 0.2s;
}

.pw-plasma-shell .wlf-drop.is-open .wlf-drop__icon {
  transform: rotate(180deg);
}

.pw-plasma-shell .wlf-drop {
  position: relative;
}

.pw-plasma-shell .wlf-drop__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: min(320px, calc(100vw - 2rem));
  padding: 0.5rem;
  background: var(--pw-nav-panel);
  border: 1px solid var(--pw-nav-line);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s, visibility 0.18s;
  z-index: 60;
}

.pw-plasma-shell .wlf-drop__panel--lang {
  left: auto;
  right: 0;
  transform: none;
  min-width: 170px;
}

.pw-plasma-shell .wlf-drop.is-open .wlf-drop__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pw-plasma-shell .wlf-drop__title {
  margin: 0 0 0.375rem;
  padding: 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pw-nav-muted) !important;
}

.pw-plasma-shell .wlf-drop__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.25rem;
  max-height: 240px;
  overflow-y: auto;
}

.pw-plasma-shell .wlf-drop__link,
.pw-plasma-shell .wlf-drop__row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--pw-nav-muted) !important;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none !important;
  text-align: left;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
  transition: background 0.15s, color 0.15s;
}

.pw-plasma-shell .wlf-drop__link {
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  color: var(--pw-nav-text) !important;
}

.pw-plasma-shell .wlf-drop__link:hover,
.pw-plasma-shell .wlf-drop__row:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pw-nav-text) !important;
}

.pw-plasma-shell .wlf-drop__row--danger:hover {
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.08);
}

.pw-plasma-shell .navbar_menu-right {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-shrink: 0;
}

.pw-plasma-shell .wlf-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--pw-nav-line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--pw-nav-muted) !important;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
}

.pw-plasma-shell .wlf-lang img,
.pw-plasma-shell .wlf-lang-opt img {
  border-radius: 2px;
  object-fit: cover;
}

.pw-plasma-shell .navbar_menu-button {
  display: flex;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .pw-plasma-shell .navbar_menu-button {
    display: none;
  }
}

.pw-plasma-shell .menu-icon {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  display: flex;
}

.pw-plasma-shell .menu-icon_line-top,
.pw-plasma-shell .menu-icon_line-bottom,
.pw-plasma-shell .menu-icon_line-middle {
  background: #fff;
  width: 24px;
  height: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.pw-plasma-shell .menu-icon_line-middle {
  margin: 6px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pw-plasma-shell .menu-icon_line-middle-inner {
  width: 0;
  height: 0;
}

.pw-plasma-shell .navbar_menu-button.w--open .menu-icon_line-top {
  transform: translateY(8px) rotate(45deg);
}

.pw-plasma-shell .navbar_menu-button.w--open .menu-icon_line-middle {
  opacity: 0;
}

.pw-plasma-shell .navbar_menu-button.w--open .menu-icon_line-bottom {
  transform: translateY(-8px) rotate(-45deg);
}

/* Plasma CTA pill */
.pw-plasma-shell .link-block {
  opacity: 0.85;
  cursor: pointer;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 2px;
  text-decoration: none;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
}

.pw-plasma-shell .link-block:hover {
  opacity: 1;
}

.pw-plasma-shell .div-block-2 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.pw-plasma-shell .div-block {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-right: 8px;
  padding: 4px;
  display: flex;
}

.pw-plasma-shell .text-block-2 {
  color: #fff;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 400;
  line-height: 12px;
}

.pw-plasma-shell .text-block-3 {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}

.pw-plasma-shell .link-block--solo {
  opacity: 1;
  align-items: center;
  padding: 3px 10px 3px 10px;
}

.pw-plasma-shell .link-block--solo .div-block {
  margin-right: 0;
  padding: 5px 2px;
  align-items: center;
}

.pw-plasma-shell .link-block--solo .text-block-3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.pw-plasma-drawer .link-block--solo {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.pw-plasma-drawer .link-block--solo .div-block {
  align-items: center;
}

/* Mobile drawer — Plasma dark panel */
.pw-plasma-drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 1050;
}

.pw-plasma-drawer-bg.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pw-plasma-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: #000;
  border-left: 1px solid var(--pw-nav-line);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1060;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}

.pw-plasma-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.pw-plasma-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--pw-nav-line);
}

.pw-plasma-drawer__logo {
  width: auto;
  height: 36px;
  max-width: 140px;
  object-fit: contain;
}

.pw-plasma-drawer__head button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--pw-nav-line);
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.pw-plasma-drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1rem;
  flex: 1;
  overflow-y: auto;
}

.pw-plasma-drawer__nav > a {
  padding: 0.875rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pw-nav-muted) !important;
  text-decoration: none !important;
  border-bottom: 1px solid var(--pw-nav-line);
}

.pw-plasma-drawer__nav > a:hover {
  color: #c22df8 !important;
}

.pw-plasma-drawer__group {
  border-bottom: 1px solid var(--pw-nav-line);
}

.pw-plasma-drawer__group summary {
  padding: 0.875rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--pw-nav-muted);
  cursor: pointer;
  list-style: none;
}

.pw-plasma-drawer__group summary::-webkit-details-marker {
  display: none;
}

.pw-plasma-drawer__group-links {
  display: grid;
  gap: 0.25rem;
  padding: 0 0 0.875rem 0.75rem;
}

.pw-plasma-drawer__group-links a,
.pw-plasma-drawer__lang {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--pw-nav-muted) !important;
  text-decoration: none !important;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: Inter, system-ui, sans-serif;
}

.pw-plasma-drawer__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  padding: 1rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--pw-nav-line);
}

.pw-plasma-drawer__foot .link-block {
  grid-column: 1 / -1;
  justify-content: center;
}

html.pw-plasma-drawer-open,
html.pw-plasma-drawer-open body {
  overflow: hidden;
}

/* Plasma site footer (inner pages + marketplace) */
.pw-site-footer.footer {
  flex-direction: column;
  align-items: center;
  padding: 2rem 5% 1.5rem;
  background: #000;
}

.pw-site-footer .div-block-11 {
  background-color: #424245;
  width: min(980px, 100%);
  height: 1px;
  margin-bottom: 20px;
}

.pw-site-footer .div-block-12 {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  width: min(980px, 100%);
}

.pw-site-footer .div-block-13 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0;
}

.pw-site-footer .text-block-9 {
  color: #86868b;
  margin-right: 1rem;
  font-size: 12px;
  line-height: 1.4;
}

.pw-site-footer .link-3 {
  color: #86868b;
  margin: 0 14px;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s;
}

.pw-site-footer .link-3:hover {
  color: #c22df8;
  text-decoration: underline;
}

.pw-site-footer .div-block-14 .link-3 {
  margin: 0;
}

.pw-site-footer .div-block-14 {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.pw-site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.pw-site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #86868b !important;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.pw-site-footer__social-link:hover {
  color: #c22df8 !important;
  border-color: rgba(194, 45, 248, 0.45);
}

body:not(:has(.pw-home)) {
  padding-top: 0;
}

@media (max-width: 767px) {
  .pw-plasma-shell .navbar_component {
    padding: 0.875rem 1rem;
  }

  .pw-plasma-shell .navbar_menu-button {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .pw-plasma-drawer__nav a,
  .pw-plasma-drawer__nav summary {
    min-height: 44px;
  }

  .pw-plasma-shell .pw-plasma-nav__logo {
    height: 44px;
  }

  .pw-plasma-shell .link-block .text-block-3 {
    font-size: 14px;
  }

  .pw-site-footer .div-block-12 {
    flex-direction: column;
    align-items: flex-start;
  }

  .pw-site-footer .div-block-13 {
    flex-direction: column;
    align-items: flex-start;
  }

  .pw-site-footer .link-3 {
    margin: 0.25rem 0;
  }
}
