/* ── Auth Modal Overlay ───────────────────────────────── */
.auth-modal-overlay {
  align-items: center;
  animation: fadeSlideUp 200ms var(--transition-smooth);
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 200;
}

.auth-modal {
  background: color-mix(in srgb, var(--bg-primary) 96%, white 4%);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  width: min(420px, calc(100vw - 32px));
}

/* ── Modal Header ────────────────────────────────────── */
.auth-modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.auth-logo-badge {
  align-items: center;
  background: var(--accent);
  border-radius: 16px;
  color: #fff;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  height: 52px;
  justify-content: center;
  margin-bottom: 14px;
  width: 52px;
}

.auth-avatar-preview {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 2rem;
  height: 72px;
  justify-content: center;
  margin-bottom: 12px;
  transition: background 220ms ease;
  width: 72px;
}

.auth-modal-header h2 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  line-height: 1;
  margin: 0 0 8px;
}

.auth-modal-header p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
}

/* ── Google Button ───────────────────────────────────── */
.auth-google-btn {
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  display: flex;
  font-size: 0.92rem;
  font-weight: 500;
  gap: 10px;
  justify-content: center;
  margin-top: 4px;
  min-height: 48px;
  padding: 0 20px;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
  width: 100%;
}

.auth-google-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-1px);
}

/* ── Divider ─────────────────────────────────────────── */
.auth-divider {
  align-items: center;
  color: var(--text-secondary);
  display: flex;
  font-size: 0.72rem;
  gap: 10px;
  letter-spacing: 0.08em;
  margin: 16px 0;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: rgba(var(--accent-rgb), 0.15);
  content: "";
  flex: 1;
  height: 1px;
}

/* ── Form ────────────────────────────────────────────── */
.auth-form {
  display: grid;
  gap: 10px;
}

.auth-input {
  background: var(--bg-secondary);
  border: 1.5px solid rgba(var(--accent-rgb), 0.18);
  border-radius: 12px;
  box-sizing: border-box;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.93rem;
  min-height: 48px;
  outline: none;
  padding: 0 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.auth-input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.auth-submit-btn {
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  min-height: 48px;
  transition: background 180ms ease, transform 180ms ease;
  width: 100%;
}

.auth-submit-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.auth-secondary-btn {
  background: transparent;
  border: 1.5px solid rgba(var(--accent-rgb), 0.22);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.85rem;
  min-height: 40px;
  transition: all 180ms ease;
  width: 100%;
}

.auth-secondary-btn:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.auth-error {
  color: #e53e3e;
  font-size: 0.8rem;
  min-height: 18px;
  text-align: center;
}

/* ── Section Label ───────────────────────────────────── */
.auth-section-label {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  margin: 6px 0 2px;
  text-transform: uppercase;
}

/* ── Emoji Grid ──────────────────────────────────────── */
.auth-emoji-grid {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(6, 1fr);
  max-height: 148px;
  overflow-y: auto;
}

.auth-emoji-btn {
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  min-height: 44px;
  transition: all 140ms ease;
}

.auth-emoji-btn:hover {
  transform: scale(1.15);
}

.auth-emoji-btn.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: scale(1.1);
}

/* ── Color Picker ────────────────────────────────────── */
.auth-color-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-color-btn {
  border: 3px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  height: 28px;
  transition: transform 140ms ease, border-color 140ms ease;
  width: 28px;
}

.auth-color-btn:hover {
  transform: scale(1.25);
}

.auth-color-btn.selected {
  border-color: var(--text-primary);
  transform: scale(1.2);
}

/* ── Gender Selector ─────────────────────────────────── */
.auth-gender-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.auth-gender-btn {
  background: var(--bg-secondary);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  min-height: 38px;
  transition: all 180ms ease;
}

.auth-gender-btn:hover,
.auth-gender-btn.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 600;
}

/* ── Sidebar Card — Guest ────────────────────────────── */
.auth-guest-row {
  align-items: center;
  display: flex;
  gap: 10px;
  width: 100%;
}

.auth-brand-icon {
  align-items: center;
  background: linear-gradient(145deg, var(--accent-light), var(--accent));
  border-radius: 50%;
  color: #fff;
  display: flex;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.auth-brand-text {
  flex: 1;
  min-width: 0;
}

.auth-brand-text strong {
  display: block;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-brand-text span {
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.auth-pill-btn {
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  flex-shrink: 0;
  font-size: 0.74rem;
  font-weight: 600;
  min-height: 28px;
  padding: 0 11px;
  transition: background 180ms ease;
  white-space: nowrap;
}

.auth-pill-btn:hover {
  background: var(--accent-dark);
}

/* ── Sidebar Card — Logged In ────────────────────────── */
.auth-profile-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 4px;
  text-align: left;
  transition: background 180ms ease;
  width: 100%;
}

.auth-profile-row:hover {
  background: var(--accent-soft);
}

.auth-user-avatar {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 1.25rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.auth-user-text {
  flex: 1;
  min-width: 0;
}

.auth-user-text strong {
  display: block;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-user-text span {
  color: var(--text-secondary);
  font-size: 0.74rem;
  text-transform: capitalize;
}

.auth-edit-icon {
  fill: currentColor;
  flex-shrink: 0;
  height: 14px;
  opacity: 0.4;
  width: 14px;
}

/* ── WhatsApp Buttons ────────────────────────────────── */
.whatsapp-order-btn {
  align-items: center;
  background: #25D366;
  border: 0;
  border-radius: var(--radius-pill);
  color: #fff;
  display: flex;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 10px;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
  width: 100%;
}

.whatsapp-order-btn:hover {
  background: #128C7E;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

.whatsapp-order-btn svg {
  fill: #fff;
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.whatsapp-card-btn {
  align-items: center;
  background: rgba(37, 211, 102, 0.12);
  border: 0;
  border-radius: 50%;
  color: #25D366;
  display: inline-flex;
  flex: 0 0 auto;
  height: 42px;
  justify-content: center;
  transition: background 180ms ease, transform 180ms ease;
  width: 42px;
}

.whatsapp-card-btn:hover {
  background: #25D366;
  color: #fff;
  transform: scale(1.1);
}

.whatsapp-card-btn svg {
  fill: currentColor;
  height: 18px;
  width: 18px;
}

@media (max-width: 768px) {
  .whatsapp-card-btn {
    height: 28px;
    width: 28px;
  }

  .whatsapp-card-btn svg {
    height: 13px;
    width: 13px;
  }
}
