@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

.portal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
}

.portal-body .font-mono-code {
  font-family: 'JetBrains Mono', monospace;
}

.portal-hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 18rem;
  padding: 2rem;
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: 1.5rem;
  background: linear-gradient(110deg, rgba(59, 7, 100, 0.45), #09090b 52%, rgba(49, 46, 129, 0.35));
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.portal-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}

.portal-hero-copy {
  min-width: 0;
  max-width: 42rem;
}

.portal-hero-status {
  display: flex;
  min-height: 9rem;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.6);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
}

.portal-hero-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: #94a3b8;
}

.portal-hero-stat strong {
  color: #c084fc;
  font-weight: 700;
  text-align: right;
}

.portal-hero-stat strong.text-emerald-400 {
  color: #34d399;
}

.portal-hero-stat strong.text-white {
  color: #fff;
}

@media (min-width: 640px) {
  .portal-hero-banner {
    padding: 3rem;
  }
}

@media (min-width: 768px) {
  .portal-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 18rem);
  }
}

.portal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #f1f5f9;
  background: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.portal-header-inner {
  width: min(100%, 80rem);
  min-height: 4rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
}

.portal-logo {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 0.625rem;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #4f46e5);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.25);
}

.portal-brand-name,
.portal-nav,
.portal-menu,
.portal-actions,
.portal-footer {
  font-family: 'JetBrains Mono', monospace;
}

.portal-brand-name {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.portal-nav {
  display: none;
  align-items: center;
  gap: 0.125rem;
  font-size: 0.68rem;
  white-space: nowrap;
}

.portal-nav a,
.portal-menu a {
  color: #94a3b8;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 0.625rem;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.portal-nav a {
  padding: 0.55rem 0.6rem;
}

.portal-menu a {
  display: block;
  padding: 0.7rem 0.8rem;
}

.portal-nav a:hover,
.portal-menu a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.portal-nav a[aria-current='page'],
.portal-menu a[aria-current='page'] {
  color: #c084fc;
  font-weight: 700;
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.35);
}

.portal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  font-size: 0.7rem;
}

.portal-wallet-dropdown {
  position: relative;
}

.portal-wallet-dropdown summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

.portal-wallet-dropdown summary::-webkit-details-marker {
  display: none;
}

.portal-connect,
.portal-disconnect,
.portal-menu-toggle {
  min-height: 2.4rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.7rem;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.portal-connect {
  background: #7e22ce;
  border: 1px solid rgba(192, 132, 252, 0.25);
}

.portal-connect:hover {
  background: #9333ea;
}

.portal-connected {
  display: block;
  max-width: 10rem;
  overflow: hidden;
  padding: 0.6rem 0.75rem;
  color: #d8b4fe;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 0.7rem;
  background: rgba(126, 34, 206, 0.2);
}

.portal-wallet-menu-list {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 60;
  display: grid;
  width: min(19rem, calc(100vw - 2rem));
  max-height: min(70vh, 24rem);
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 0.85rem;
  background: #09090b;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.portal-wallet-menu-group {
  display: grid;
  gap: 0.25rem;
  padding: 0.35rem;
}

.portal-wallet-menu-group + .portal-wallet-menu-group {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.portal-wallet-menu-heading,
.portal-wallet-menu-message {
  margin: 0;
  padding: 0.35rem 0.5rem;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.portal-wallet-menu-item {
  width: 100%;
  padding: 0.55rem 0.65rem;
  overflow: hidden;
  color: #e2e8f0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: inherit;
  font-size: 0.72rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  background: transparent;
  cursor: pointer;
}

.portal-wallet-menu-item:hover,
.portal-wallet-menu-item.is-active {
  color: #fff;
  border-color: rgba(168, 85, 247, 0.35);
  background: rgba(168, 85, 247, 0.14);
}

.portal-disconnect {
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(239, 68, 68, 0.08);
}

.portal-menu-toggle {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.portal-menu {
  display: none;
  padding: 0.75rem 1.5rem 1rem;
  background: #09090b;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.72rem;
}

.portal-menu.is-open {
  display: grid;
  gap: 0.25rem;
}

.portal-main {
  width: min(100%, 80rem);
  flex: 1 0 auto;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.portal-footer {
  flex: 0 0 auto;
  padding: 1.5rem;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.7rem;
}

.portal-hidden {
  display: none !important;
}

@media (min-width: 1280px) {
  .portal-nav {
    display: flex;
  }

  .portal-menu-toggle,
  .portal-menu {
    display: none !important;
  }
}

@media (max-width: 639px) {
  .portal-header-inner {
    padding: 0 1rem;
  }

  .portal-main {
    padding: 2rem 1rem;
  }

  .portal-actions {
    gap: 0.35rem;
  }

  .portal-connect,
  .portal-disconnect {
    padding: 0.5rem 0.6rem;
    font-size: 0.65rem;
  }
}
