/* Crossd Trading Navigation Theme (v2) */

@import url("/staticfiles/css/v2/variables.css");


body {
  padding-top: var(--navbar-height);
  padding-top: calc(var(--navbar-height) + env(safe-area-inset-top, 0px));
}

.auth-panel {
  border-radius: var(--radius-xl, 1rem);
  border: 1px solid rgba(39, 39, 42, 0.55);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg, 1.5rem);
}

.auth-panel__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.5rem);
  padding-right: calc(var(--space-xl, 2rem));
}

.auth-panel__eyebrow {
  font-size: var(--text-xs, 0.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}

.auth-panel__title {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: var(--font-semibold, 600);
  color: #f8fafc;
  letter-spacing: -0.015em;
  margin: 0;
}

.auth-panel__subtitle {
  font-size: var(--text-sm, 0.875rem);
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.6;
  margin: 0;
}

.auth-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 1rem);
}

.auth-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm, 0.75rem);
}

.modern-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  backdrop-filter: blur(24px);
  transition: transform 0.35s ease, background 0.2s ease, border-color 0.2s ease;
}

.modern-navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.modern-navbar.scrolled::before {
  opacity: 1;
}

.modern-navbar.hidden {
  transform: translateY(-100%);
}

.navbar-wrapper {
  position: relative;
  width: min(1200px, calc(100% - 2 * 1.5rem));
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar-brand-section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-text {
  gap: 0.2rem;
}

.brand-name {
  font-size: 0.95rem;
  color: #e2e8f0;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-subtitle {
  font-size: 0.95rem;
  color: rgba(148, 163, 184, 0.8);
  font-weight: 600;
  letter-spacing: -0.01em;
}


.brand-tagline {
  font-size: 0.7rem;
  text-transform: none;
  letter-spacing: 0.12em;
  color: rgba(148, 163, 184, 0.7);
}

.navbar-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(226, 232, 240, 0.78);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.16);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.nav-link.active {
  color: #f8fafc;
  background: rgba(148, 163, 184, 0.2);
  
}

.nav-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.25);
}

.nav-user-avatar-placeholder {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  color: rgba(147, 197, 253, 0.95);
  font-size: 0.875rem;
  font-weight: 500;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-actions .btn {
  padding: 0.4rem 1.15rem;
}

.modern-navbar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.15);
  color: rgba(226, 232, 240, 0.85);
}

.modern-navbar .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.25);
  color: #f8fafc;
}

.modern-navbar .btn.primary {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.28);
  color: #e2e8f0;
}

.modern-navbar .btn.primary:hover {
  background: rgba(99, 102, 241, 0.26);
  border-color: rgba(99, 102, 241, 0.42);
}

.modern-navbar .btn.outline {
  background-color: #060606;
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(226, 232, 240, 0.72);
}

.modern-navbar .btn.outline:hover {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.32);
}

.modern-navbar .btn:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.45);
  outline-offset: 3px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
}

.social-link,
.mobile-social-link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 0.75rem;
  background: rgba(148, 163, 184, 0.12);
  align-items: center;
  justify-content: center;
  color: rgba(226, 232, 240, 0.78);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.social-link:hover,
.mobile-social-link:hover {
  transform: translateY(-2px);
  background: rgba(148, 163, 184, 0.2);
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.28);
}

.notification-badge,
.mobile-notification-badge {
  display: none;
  min-width: 18px;
  height: 18px;
  border-radius: 0.85rem;
  padding: 0 0.35rem;
  background: rgba(148, 163, 184, 0.3);
  color: #f8fafc;
  font-size: 0.65rem;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
}

.notification-badge.is-visible,
.mobile-notification-badge.is-visible {
  display: inline-flex;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: color 0.18s ease;
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 4px;
}

.mobile-menu-btn .hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.active .hamburger-bar:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: stretch;
  justify-content: center;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(18px);
  z-index: var(--z-modal, 1050);
  padding: 0;
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-menu-container {
  width: 100%;
  max-width: none;
  height: 100vh;
  min-height: 100dvh;
  max-height: none;
  background: rgba(9, 9, 11, 1);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1.4rem, 5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 5vw, 1.75rem);
  position: relative;
  margin: 0;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  align-self: stretch;
}

.mobile-menu-container.auth-panel {
  backdrop-filter: blur(16px);
  flex: 1 1 auto;
}

.mobile-close-btn {
  position: absolute;
  top: var(--space-md, 1rem);
  right: var(--space-md, 1rem);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg, 0.75rem);
  border: 1px solid rgba(63, 63, 70, 0.45);
  background: rgba(24, 24, 27, 0.78);
  color: rgba(226, 232, 240, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.mobile-close-btn:hover,
.mobile-close-btn:focus-visible {
  background: rgba(63, 63, 70, 0.68);
  border-color: rgba(82, 82, 91, 0.6);
  color: #f8fafc;
  outline: none;
}

.mobile-menu-header.auth-panel__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs, 0.5rem);
  padding-right: calc(var(--space-xl, 2rem));
}

.mobile-menu-header .auth-panel__eyebrow {
  font-size: var(--text-xs, 0.75rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.6);
}

.mobile-menu-header .auth-panel__title {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: var(--font-semibold, 600);
  color: #f8fafc;
  letter-spacing: -0.015em;
  margin: 0;
}

.mobile-menu-header .auth-panel__subtitle {
  font-size: var(--text-sm, 0.875rem);
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.6;
  margin: 0;
}

.mobile-menu-content.auth-panel__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md, 1rem);
}

.mobile-menu-footer.auth-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.mobile-menu-footer.auth-panel__footer .mobile-social-links {
  margin-top: 0;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xxs);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg, 0.75rem);
  text-decoration: none;
  color: rgba(226, 232, 240, 0.85);
  background: rgba(9, 9, 11, 0.5);
  border: 1px solid rgba(63, 63, 70, 0.45);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  background: rgba(39, 39, 42, 0.55);
  color: #f8fafc;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.mobile-nav-link.active {
  background: rgba(99, 102, 241, 0.2);
  color: #f8fafc;
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 14px 28px rgba(8, 11, 19, 0.4);
}

.mobile-auth,
.mobile-user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-sign-in-btn {
  border: 1px solid rgba(63, 63, 70, 0.45);
  background: rgba(9, 9, 11, 0.5);
  color: rgba(226, 232, 240, 0.82);
  border-radius: var(--radius-lg, 0.75rem);
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mobile-sign-in-btn:hover,
.mobile-sign-in-btn:focus-visible {
  background: rgba(39, 39, 42, 0.55);
  border-color: rgba(99, 102, 241, 0.45);
  color: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.25);
  outline: none;
}

.mobile-cta-btn,
.mobile-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-size: 0.875rem;
  border: 1px solid transparent;
}

.mobile-cta-btn {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.28);
  color: #e2e8f0;
}

.mobile-logout-btn {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.7);
}

.mobile-logout-btn:hover {
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}

.mobile-user-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(9, 9, 11, 0.5);
  border-radius: 1.25rem;
  padding: 1.2rem;
  border: 1px solid rgba(63, 63, 70, 0.45);
  box-shadow: inset 0 0 0 1px rgba(39, 39, 42, 0.35);
}

.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-user-avatar,
.mobile-user-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.mobile-user-avatar-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.2);
  color: rgba(226, 232, 240, 0.9);
  font-weight: 600;
}

.mobile-user-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-user-name {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.mobile-user-email {
  color: rgba(161, 161, 170, 0.75);
  font-size: 0.75rem;
}

.mobile-menu-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-social-links {
  display: flex;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .navbar-navigation {
    display: none;
  }

  .navbar-actions .btn,
  .navbar-actions .social-links {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .navbar-wrapper {
    gap: 1rem;
    padding: 0.65rem 1rem;
  }

  .mobile-menu-overlay {
    padding: 0;
    align-items: stretch;
    justify-content: center;
  }

  .mobile-menu-container {
    width: 100%;
    height: 100vh;
    min-height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: clamp(1.4rem, 6vw, 2.25rem);
    gap: clamp(1.25rem, 5vw, 1.75rem);
    overflow: hidden;
  }

  .mobile-menu-content.auth-panel__body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: clamp(1.5rem, 6vw, 2.5rem);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-footer {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .mobile-menu-container {
    padding: 1rem;
  }
}
