.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.1rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.75);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a.active {
  color: var(--color-primary);
  font-weight: 600;
}

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

.ghost-button,
.outline-button,
.primary-button {
  border-radius: 999px;
  padding: 0.35rem 1.25rem;
  font-weight: 600;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.ghost-button {
  border: 1px solid var(--color-outline);
  background: transparent;
  color: var(--color-text);
}

.language-switcher {
  position: relative;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
}

.globe-icon {
  width: 16px;
  height: 16px;
  color: var(--color-text);
  flex-shrink: 0;
}

.lang-code {
  font-weight: 600;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--color-outline);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
  z-index: var(--z-dropdown);
  overflow: hidden;
}

.language-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease;
}

.lang-option:hover {
  background: rgba(15, 23, 42, 0.05);
}

.lang-option:first-child {
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.lang-option:last-child {
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.lang-check {
  display: none;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.9rem;
}

.lang-option.active .lang-check {
  display: inline;
}

.outline-button {
  border: 1px solid var(--color-outline);
  color: var(--color-text);
  background: transparent;
}

.primary-button {
  background: linear-gradient(120deg, var(--color-primary), #1dd8a4);
  color: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(15, 186, 129, 0.35);
}

.ghost-button:hover,
.outline-button:hover,
.primary-button:hover {
  transform: translateY(-1px);
}

.coming-soon {
  position: relative;
}

.coming-soon::after {
  content: "soon";
  position: absolute;
  top: -0.65rem;
  right: -0.25rem;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.95);
  padding: 2.5rem 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: rgba(15, 23, 42, 0.6);
}

.footer-text p {
  margin: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  color: rgba(15, 23, 42, 0.7);
}

.footer-nav a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

.footer-nav a:hover {
  color: var(--color-text);
}

.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-lg); /* Consistent radius */
  padding: 1.75rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-weight: 500;
}

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

/* User menu styles - v2 */
.user-menu-container {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--color-outline);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
  font: inherit;
}

.user-menu-trigger:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.user-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--color-primary), #1dd8a4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.625rem;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.user-name {
  font-weight: 600;
  color: var(--color-text);
}

.user-menu-chevron {
  width: 16px;
  height: 16px;
  color: var(--color-muted);
  transition: transform 150ms ease;
  flex-shrink: 0;
}

.user-menu-trigger[aria-expanded="true"] .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, visibility 150ms ease, transform 150ms ease;
  z-index: var(--z-dropdown);
  overflow: hidden;
}

.user-menu-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease;
  text-decoration: none;
  line-height: 1.5;
}

.user-menu-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

.user-menu-item:first-child {
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
}

.user-menu-item:last-child {
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
}

/* Auth buttons container */
.auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 767px) {
  .user-name {
    display: none;
  }

  .user-menu-trigger {
    padding: 0.35rem 0.75rem;
    gap: 0;
  }

  .user-menu-chevron {
    display: none;
  }

  .user-menu-dropdown {
    min-width: 160px;
    right: 0;
  }

  .auth-buttons {
    display: none;
  }
}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

@media (max-width: 767px) {
  .mobile-menu-toggle {
    display: flex;
  }
}

/* Hamburger icon */
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 200ms ease;
}

.hamburger-icon {
  position: relative;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger-icon::before {
  top: -7px;
}

.hamburger-icon::after {
  bottom: -7px;
}

/* Animate to X when menu is open */
.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon {
  background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) - 1);
  background: var(--color-overlay-bg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
  display: none;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile menu drawer */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.15);
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform 300ms ease;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.mobile-menu.active {
  transform: translateX(0);
}

@media (max-width: 767px) {
  .mobile-menu-overlay {
    display: block;
  }

  .mobile-menu {
    display: flex;
  }
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 1.125rem;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: background 150ms ease;
}

.mobile-menu-close:hover {
  background: rgba(15, 23, 42, 0.05);
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
}

.mobile-menu-nav a {
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  transition: background 150ms ease;
}

.mobile-menu-nav a:hover {
  background: rgba(15, 23, 42, 0.04);
}

.mobile-menu-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  margin-top: auto;
  border-top: 1px solid var(--color-border);
}

.mobile-auth-button {
  display: block;
  text-align: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 150ms ease;
}

.mobile-auth-button.outline {
  border: 1px solid var(--color-outline);
  color: var(--color-text);
  background: transparent;
}

.mobile-auth-button.outline:hover {
  background: rgba(15, 23, 42, 0.04);
}

.mobile-auth-button.primary {
  background: linear-gradient(120deg, var(--color-primary), #1dd8a4);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(15, 186, 129, 0.25);
}

.mobile-auth-button.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 186, 129, 0.35);
}

.mobile-menu-item {
  display: block;
  width: 100%;
  padding: 1rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 150ms ease;
  text-decoration: none;
}

.mobile-menu-item:hover {
  background: rgba(15, 23, 42, 0.05);
}

/* Skeleton loading screens */
.skeleton {
  background: linear-gradient(90deg, var(--color-bg, #f0f0f0) 25%, var(--color-border, #e0e0e0) 50%, var(--color-bg, #f0f0f0) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.75rem;
}

.skeleton-title {
  height: 2rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-card {
  height: 200px;
  border-radius: var(--radius-md);
}

.skeleton-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.skeleton-button {
  height: 2.5rem;
  width: 120px;
  border-radius: 999px;
}

.skeleton-paragraph {
  height: 0.875rem;
  margin-bottom: 0.5rem;
}

.skeleton-paragraph:last-child {
  width: 80%;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: var(--z-toast, 9999);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-size: 0.875rem;
  line-height: 1.4;
  max-width: min(24rem, calc(100vw - 2rem));
  pointer-events: auto;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
}

.toast-message {
  flex: 1;
}

.toast-success {
  border-left: 3px solid var(--color-success);
  color: var(--color-success-text);
}

.toast-success .toast-icon {
  color: var(--color-success);
}

.toast-error {
  border-left: 3px solid var(--color-error);
  color: var(--color-error-text);
}

.toast-error .toast-icon {
  color: var(--color-error);
}

.toast-info {
  border-left: 3px solid var(--color-info);
  color: var(--color-info-text);
}

.toast-info .toast-icon {
  color: var(--color-info);
}
