.shared-topbar {
  height: 58px;
  background: #050505;
  border-bottom: 1px solid #1f1f1f;
  display: flex;
  align-items: center;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 1000;
}


.shared-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  flex: 0 0 auto;
}

.shared-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.shared-logo {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  margin-right: 42px;
}

.shared-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: 0;
}

.shared-nav a,
.shared-login-btn {
  text-decoration: none;
  color: #f5f5f5;
  font-weight: 400;
  font-size: 0.92rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
}

.shared-nav a:hover,
.shared-login-btn:hover,
.shared-nav a.active {
  color: #ffffff;
  background: transparent;
}

.shared-login-btn {
  margin-left: auto;
}

@media (max-width: 768px) {
  .shared-topbar {
    height: 56px;
    padding: 0 12px;
    gap: 10px;
    overflow: visible;
  }

  .shared-menu-btn {
    display: inline-flex;
    order: 0;
  }

  .shared-logo {
    order: 1;
    margin-right: 0;
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .shared-nav {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 0;
  }

  .shared-nav a {
    display: none;
  }

  .shared-login-btn {
    margin-left: 0;
    font-size: 0.86rem;
  }

  .shared-account-btn {
    margin-left: 0;
  }

  .account-menu {
    top: 52px;
    right: 12px;
    width: min(280px, calc(100vw - 24px));
  }
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.48);
  align-items: center;
  justify-content: center;
}

.auth-modal-card {
  width: 320px;
  background: white;
  border-radius: 18px;
  padding: 26px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0,0,0,0.25);
}

.auth-modal-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #111827;
}

.auth-modal-card p {
  margin: 0 0 18px;
  color: #64748B;
  font-size: 0.88rem;
}

.auth-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.apple-disabled-btn {
  margin-top: 12px;
  width: 100%;
  height: 40px;
  border-radius: 4px;
  border: 1px solid #D1D5DB;
  background: #F8FAFC;
  color: #94A3B8;
  cursor: not-allowed;
}


.shared-topbar {
  position: sticky;
}

.shared-nav {
  flex: 1;
}

.shared-login-btn {
  margin-left: auto;
}

.shared-account-btn {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}

.account-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.account-chevron {
  font-size: 0.75rem;
  color: #ffffff;
  line-height: 1;
}

.account-menu {
  display: none;
  position: absolute;
  top: 48px;
  right: 24px;
  width: 240px;
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 10000;
}

.account-menu.open {
  display: block;
}

.account-menu-header {
  padding: 16px 18px 14px;
  border-bottom: 1px solid #E5E7EB;
}

.account-menu-title {
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.account-email {
  color: #64748B;
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu a {
  display: block;
  padding: 13px 18px;
  color: #334155;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
}

.account-menu a:hover {
  background: #F8FAFC;
}

.account-menu .logout-link {
  color: #E11D48;
  border-top: 1px solid #E5E7EB;
}
