/* ===== AUTHENTICATION MODAL & PROFILE BADGE ===== */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.2, 0.65, 0.2, 1);
}

.auth-overlay.open {
  display: flex;
  opacity: 1;
}

.auth-modal {
  background: #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 32px 28px;
  box-shadow: 0 40px 100px -20px rgba(110, 86, 207, 0.5), 0 20px 40px rgba(0, 0, 0, 0.8);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.2, 0.65, 0.2, 1);
  color: #f5f5f7;
  font-family: var(--font, 'Inter', sans-serif);
}

.auth-overlay.open .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a1a1a6;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.auth-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 102, 230, 0.25), rgba(91, 70, 201, 0.1));
  border: 1px solid rgba(155, 138, 255, 0.3);
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(110, 86, 207, 0.3);
}

.auth-logo-badge svg {
  width: 26px;
  height: 26px;
  color: #a78bfa;
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: #fff;
}

.auth-subtitle {
  font-size: 14px;
  color: #a1a1a6;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  padding: 8px 12px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: #86868b;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.auth-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.auth-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #d2d2d7;
}

.auth-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.auth-input:focus {
  border-color: rgba(155, 138, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(110, 86, 207, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.auth-submit-btn {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #7c66e6 0%, #5b46c9 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 8px 24px -6px rgba(110, 86, 207, 0.6);
  font-family: inherit;
  margin-top: 6px;
}

.auth-submit-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6e6e73;
  font-size: 12px;
  margin: 16px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-guest-btn {
  width: 100%;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f7;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.auth-guest-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

/* User profile button in sidebar and navbar */
.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.15s;
}

.user-profile-widget:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.user-avatar-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c66e6, #5b46c9);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.user-name-text {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge-text {
  font-size: 10.5px;
  color: #a78bfa;
}
