.auth-overlay {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
}
.auth-overlay.auth-visible { opacity: 1; pointer-events: all; }
.auth-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
}
.auth-modal {
  position: relative;
  width: 100%; max-width: 400px;
  margin: 24px;
  background: #121212;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  font-family: 'Space Mono', monospace;
  color: rgba(255,255,255,0.9);
  box-shadow: 0 32px 80px rgba(0,0,0,0.65);
  overflow: hidden;
  transform: translateY(8px) scale(0.985);
  transition: transform 0.18s ease;
}
.auth-overlay.auth-visible .auth-modal { transform: none; }

.auth-head {
  display: flex; align-items: center;
  padding: 18px 18px 18px 26px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.auth-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 15px; font-weight: 600; color: #fff;
  letter-spacing: 0.02em;
}
.auth-close {
  margin-left: auto;
  width: 32px; height: 32px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; border-radius: 8px; cursor: pointer;
  color: rgba(255,255,255,0.45);
  transition: background 0.15s, color 0.15s;
}
.auth-close:hover { background: rgba(255,255,255,0.08); color: #fff; }
.auth-close svg { width: 15px; height: 15px; }

.auth-form {
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px 26px 24px;
}
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field > span {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.auth-field input {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 10px;
  padding: 11px 13px;
  color: #fff;
  font-family: 'Space Mono', monospace;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.auth-field input:focus { border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.085); }

.auth-row-right { display: flex; justify-content: flex-end; margin-top: -6px; }

.auth-checks { display: flex; flex-direction: column; gap: 9px; margin-top: 2px; }
.auth-check {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 11.5px; line-height: 1.5; color: rgba(255,255,255,0.55);
  cursor: pointer;
}
.auth-check input { margin-top: 2px; flex-shrink: 0; accent-color: #fff; width: 14px; height: 14px; cursor: pointer; }
.auth-check a { color: #9fd8ff; text-decoration: none; border-bottom: 1px solid rgba(159,216,255,0.35); }
.auth-check a:hover { border-bottom-color: rgba(159,216,255,0.9); }

.auth-error { font-size: 12px; line-height: 1.5; color: #ff8a8a; }
.auth-error:empty { display: none; }
.auth-notice { font-size: 12px; line-height: 1.5; color: #8affb0; }
.auth-hint { font-size: 12px; color: rgba(255,255,255,0.5); line-height: 1.6; }

.auth-submit {
  padding: 12px 0;
  background: #fff; color: #0a0a0a; border: none; border-radius: 10px;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.15s, transform 0.1s;
}
.auth-submit:hover { opacity: 0.9; }
.auth-submit:active { transform: scale(0.985); }
.auth-submit:disabled { opacity: 0.4; cursor: default; }

.auth-link {
  background: none; border: none; padding: 0;
  color: rgba(255,255,255,0.45);
  font-family: 'Space Mono', monospace; font-size: 11.5px; letter-spacing: 0.03em;
  cursor: pointer;
  transition: color 0.15s;
}
.auth-link:hover { color: rgba(255,255,255,0.85); }

.auth-captcha:empty { display: none; }
.auth-captcha { display: flex; justify-content: center; }

.auth-or {
  display: none;
  align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.auth-or span { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.auth-google { display: none; justify-content: center; min-height: 0; }
.auth-overlay.auth-has-google .auth-or { display: flex; }
.auth-overlay.auth-has-google .auth-google { display: flex; }

.auth-switch {
  text-align: center;
  font-size: 12px; color: rgba(255,255,255,0.4);
  padding-top: 4px;
}
.auth-switch button {
  background: none; border: none; padding: 0;
  color: #9fd8ff; font-family: 'Space Mono', monospace; font-size: 12px;
  cursor: pointer;
  border-bottom: 1px solid rgba(159,216,255,0.35);
  transition: border-color 0.15s;
}
.auth-switch button:hover { border-bottom-color: rgba(159,216,255,0.9); }

.cookie-notice {
  position: fixed; top: 18px; right: 18px; z-index: 3000;
  display: flex; align-items: center; gap: 14px;
  max-width: 360px;
  background: #141414;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 13px 14px 13px 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  opacity: 0; transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-notice.cookie-visible { opacity: 1; transform: none; }
.cookie-notice-text {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px; line-height: 1.55;
  color: rgba(255,255,255,0.72);
}
.cookie-notice-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  background: #fff; color: #0a0a0a; border: none; border-radius: 8px;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer; transition: opacity 0.15s;
}
.cookie-notice-btn:hover { opacity: 0.9; }

.likes-gate-wrap { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 40px); }
.likes-gate { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; max-width: 360px; padding: 0 24px; }
.likes-gate-icon { width: 48px; height: 48px; opacity: 0.35; }
.likes-gate-icon svg { width: 100%; height: 100%; }
.likes-gate-title { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 600; color: #fff; }
.likes-gate-sub { font-family: 'Space Mono', monospace; font-size: 12.5px; color: rgba(255,255,255,0.4); line-height: 1.6; }
.likes-gate-btn {
  margin-top: 10px; padding: 11px 24px;
  background: #fff; color: #0a0a0a; border: none; border-radius: 10px;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.15s, transform 0.1s;
}
.likes-gate-btn:hover { opacity: 0.9; }
.likes-gate-btn:active { transform: scale(0.97); }

.profile-page {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 56px !important;
  font-family: 'Space Mono', monospace;
}

.profile-head {
  display: flex; align-items: center; gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.profile-avatar {
  position: relative;
  width: 96px; height: 96px; flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  overflow: hidden;
  cursor: pointer;
}
.profile-avatar svg { width: 44px; height: 44px; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-avatar-hover {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff; font-size: 11px; line-height: 1.4; text-align: center;
  letter-spacing: 0.06em; text-transform: uppercase;
  opacity: 0; transition: opacity 0.15s;
}
.profile-avatar:hover .profile-avatar-hover { opacity: 1; }
.profile-head-info { min-width: 0; flex: 1; }
.profile-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 24px; font-weight: 600; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-email {
  margin-top: 6px;
  font-size: 12.5px; color: rgba(255,255,255,0.4);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.profile-avatar-status { margin-top: 8px; font-size: 11.5px; color: rgba(255,255,255,0.5); }
.profile-avatar-status.err { color: #ff8a8a; }

.profile-logout-btn {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0; align-self: flex-start;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 9px 16px;
  color: rgba(255,255,255,0.7);
  font-family: 'Space Mono', monospace; font-size: 12px; letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.profile-logout-btn:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }
.profile-logout-btn svg { width: 14px; height: 14px; }

.profile-tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin: 28px 0 8px;
}
.profile-tile {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.profile-tile svg { width: 22px; height: 22px; color: rgba(255,255,255,0.55); }
.profile-tile-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 600; color: #fff;
}
.profile-tile-soon {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(100,220,255,0.6); background: rgba(100,220,255,0.08);
  border: 1px solid rgba(100,220,255,0.2); border-radius: 6px; padding: 2px 7px;
}
.profile-tile--soon { opacity: 0.75; cursor: default; }

.profile-section {
  margin-top: 32px;
  padding: 22px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
}
.profile-section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px; font-weight: 600; color: #fff;
  margin-bottom: 16px;
}
.profile-form { display: flex; flex-direction: column; gap: 14px; max-width: 380px; }

.profile-btn {
  align-self: flex-start;
  padding: 10px 20px;
  background: #fff; color: #0a0a0a; border: none; border-radius: 10px;
  font-family: 'Space Mono', monospace; font-weight: 700; font-size: 12px;
  letter-spacing: 0.05em; text-transform: uppercase;
  cursor: pointer; transition: opacity 0.15s, transform 0.1s;
}
.profile-btn:hover { opacity: 0.9; }
.profile-btn:active { transform: scale(0.98); }
.profile-btn:disabled { opacity: 0.4; cursor: default; }
.profile-btn--danger {
  background: rgba(255,90,90,0.14); color: #ff9a9a;
  border: 1px solid rgba(255,90,90,0.3);
}
.profile-btn--danger:hover { background: rgba(255,90,90,0.22); opacity: 1; }
.profile-btn--ghost {
  background: none; color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.15);
}
.profile-btn--ghost:hover { color: #fff; border-color: rgba(255,255,255,0.3); opacity: 1; }

.profile-danger { border-color: rgba(255,90,90,0.18); }
.profile-danger .profile-section-title { color: #ff9a9a; }
.profile-danger-text {
  font-size: 12px; line-height: 1.6; color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}
.profile-danger-actions { display: flex; gap: 10px; }
