.login-modal {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 30, 0.65);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  backdrop-filter: blur(6px);
  padding: 1.5rem;
}

.login-modal.is-open {
  display: flex;
}

.login-card {
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  max-width: 420px;
  width: min(420px, 90vw);
  box-shadow: 0 25px 70px rgba(8, 12, 32, 0.25);
  position: relative;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #131526;
  text-align: center;
}

.login-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}

.login-card p {
  margin: 0.25rem 0;
  color: #4a4f66;
}

.login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
}

.login-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}

.google-signin-container {
  width: 100%;
  display: flex;
  justify-content: center;
}

.google-signin-container.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.google-signin-container > div,
.google-signin-container > button {
  width: auto;
  min-width: 220px;
}

.login-btn {
  border-radius: 12px;
  border: none;
  padding: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
  width: 100%;
}

.login-btn--google {
  background: #4285f4;
}

.login-btn--dev {
  background: #1f2233;
  border: 1px solid rgba(31, 34, 51, 0.18);
}

.login-btn--facebook {
  background: #1877f2;
}

.login-btn--line {
  background: #07b53b;
}

.login-note {
  font-size: 0.8rem;
  color: #7b7f93;
}

body.login-modal-open {
  overflow: hidden;
}

.auth-control {
  position: relative;
  display: inline-flex;
}

.auth-control .nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.auth-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c62ff, #ff6db7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 260px;
  background: #fff;
  color: #1f2233;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(12, 13, 32, 0.35);
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 50;
}

.auth-control .auth-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.auth-menu__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.auth-menu__name {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
}

.auth-menu__email {
  margin: 0.1rem 0 0;
  font-size: 0.85rem;
  color: #6c708c;
  word-break: break-all;
}

.auth-menu__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.auth-menu__badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(124, 98, 255, 0.1);
  color: #5b35ff;
  border: 1px solid rgba(124, 98, 255, 0.2);
}

.auth-menu__badge.auth-menu__badge--free {
  background: rgba(140, 91, 255, 0.08);
  color: #6b44ff;
}

.auth-menu__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-menu__actions button {
  border-radius: 999px;
  border: none;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.auth-menu__actions button[data-auth-menu-logout] {
  background: linear-gradient(120deg, #7c62ff, #ff6db7);
  color: #fff;
}

.auth-menu__actions button[data-auth-menu-logout]:hover {
  opacity: 0.9;
}

