/* Login Modal */
.login-backdrop {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 99998;
  backdrop-filter: none; /* Moved to page-wrapper */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

.login-backdrop[hidden] {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 90%;
  max-width: 440px;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  z-index: 99999;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.login-modal[hidden] {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.95);
  pointer-events: none;
}

.login-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 0 24px;
  margin-bottom: 16px;
}

.login-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
}

.login-close {
  font-size: 1.5rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.login-body {
  padding: 0 10px 24px 24px;
}

.login-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.login-input:focus {
  border-color: var(--accent);
}

/* Multiplier Row */
.multiplier-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.multiplier-btn {
  width: 100%;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: #111;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.multiplier-btn:hover:not(.is-active) {
  background: #222;
}

.multiplier-btn.is-active {
  background: var(--accent);
  color: #fff;
  border: none;
}

/* Rank Tabs */
.rank-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
}
.rank-tab:hover { background: rgba(255,255,255,0.1); }
.rank-tab.is-active {
  background: var(--accent);
  border-color: var(--accent-glow);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
}

/* Old Price Strike-through */
.old-price {
  text-decoration: line-through;
  color: #f43f5e;
  font-size: 0.7em;
  margin-left: 6px;
  font-weight: 500;
  vertical-align: middle;
}
