/* ==================== N10TV.AI — LOGIN & AUTH SYSTEM ==================== */
/* VNCH Heritage Red/Gold Theme — Inclusive Design (Gmail + Phone + Guest) */

/* ============ DESIGN TOKENS ============ */
:root {
  --vnch-red: #DC2626;
  --vnch-red-deep: #991B1B;
  --vnch-gold: #FFD700;
  --vnch-gold-deep: #B8860B;
  --bella-pink: #ff6b9d;
  --bella-purple: #a855f7;
  --modal-bg: rgba(15, 8, 8, 0.96);
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 215, 0, 0.25);
  --text-primary: #ffffff;
  --text-secondary: #c9c9c9;
  --text-muted: #8a8a8a;
}

/* ============ LOGIN MODAL ============ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.auth-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.auth-modal {
  width: 100%;
  max-width: 920px;
  max-height: 92vh;
  background: linear-gradient(135deg, #1a0a0a 0%, #0a0505 100%);
  border: 2px solid var(--vnch-gold);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.1),
    0 0 60px rgba(220, 38, 38, 0.3),
    0 25px 80px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.auth-modal-overlay.active .auth-modal { transform: scale(1); }

/* VNCH ribbon decorative top bar */
.auth-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg,
    var(--vnch-red) 0%,
    var(--vnch-gold) 50%,
    var(--vnch-red) 100%);
  border-radius: 22px 22px 0 0;
}

.auth-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.auth-modal-close:hover {
  background: var(--vnch-red);
  transform: rotate(90deg);
}

.auth-modal-header {
  padding: 36px 32px 20px;
  text-align: center;
  position: relative;
}
.auth-modal-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
  font-family: 'Playfair Display', 'Be Vietnam Pro', serif;
}
.auth-modal-header h2 .gold {
  background: linear-gradient(135deg, var(--vnch-gold) 0%, #ffeb99 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-modal-header p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* Bella peeking corner */
.auth-bella-peek {
  position: absolute;
  bottom: -24px;
  right: 24px;
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--bella-pink), var(--bella-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  border: 3px solid var(--vnch-gold);
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
  animation: bellaWave 3s ease-in-out infinite;
  z-index: 5;
}
@keyframes bellaWave {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-4px); }
}

/* ============ TWO PATH CARDS ============ */
.auth-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 32px 16px;
}
@media (max-width: 720px) {
  .auth-paths { grid-template-columns: 1fr; }
}

.auth-path-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1.5px solid rgba(255, 215, 0, 0.2);
  border-radius: 20px;
  padding: 28px 22px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.auth-path-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 215, 0, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.auth-path-card:hover {
  border-color: var(--vnch-gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.15);
}
.auth-path-card:hover::before { opacity: 1; }

.auth-path-card.path-google {
  border-color: rgba(66, 133, 244, 0.25);
}
.auth-path-card.path-google:hover {
  border-color: #4285f4;
  box-shadow: 0 12px 32px rgba(66, 133, 244, 0.2);
}

.auth-path-card.path-phone {
  border-color: rgba(220, 38, 38, 0.3);
}
.auth-path-card.path-phone:hover {
  border-color: var(--vnch-red);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.25);
}

.auth-path-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 16px;
}
.auth-path-icon.google {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.auth-path-icon.phone {
  background: linear-gradient(135deg, var(--vnch-red), var(--vnch-red-deep));
  color: white;
}

.auth-path-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.auth-path-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.auth-path-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 14px;
}
.auth-path-desc-en {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 14px;
}

.auth-path-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.auth-path-benefits li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.auth-path-benefits li::before {
  content: '✓';
  color: var(--vnch-gold);
  font-weight: 700;
  font-size: 14px;
}

.auth-path-btn {
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}
.auth-path-btn.btn-google {
  background: white;
  color: #1f1f1f;
}
.auth-path-btn.btn-google:hover {
  background: #f0f0f0;
  transform: scale(1.02);
}
.auth-path-btn.btn-phone {
  background: linear-gradient(135deg, var(--vnch-red), var(--vnch-red-deep));
  color: white;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}
.auth-path-btn.btn-phone:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.55);
}

.auth-trust-badge {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 8px;
  font-size: 11px;
  color: var(--vnch-gold);
  text-align: center;
}

/* ============ GUEST FOOTER ============ */
.auth-guest-footer {
  padding: 16px 32px 32px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 8px;
}
.auth-guest-footer p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 6px;
}
.auth-guest-link {
  color: var(--vnch-gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}
.auth-guest-link:hover {
  color: #ffeb99;
}

/* Trust signals row */
.auth-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 32px 24px;
}
.auth-trust-pill {
  font-size: 11px;
  color: var(--text-muted);
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ============ FLOW CONTAINER (multi-step) ============ */
.auth-flow {
  padding: 32px;
  display: none;
}
.auth-flow.active { display: block; }

.auth-flow-back {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  padding: 0;
  transition: color 0.2s;
}
.auth-flow-back:hover { color: var(--vnch-gold); }

.auth-flow-stepper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 28px;
}
.auth-flow-step {
  width: 32px; height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: background 0.3s;
}
.auth-flow-step.active { background: var(--vnch-gold); }
.auth-flow-step.completed { background: var(--vnch-red); }

/* ============ PHONE INPUT ============ */
.auth-form-group {
  margin-bottom: 20px;
}
.auth-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.auth-form-help {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.auth-phone-row {
  display: flex;
  gap: 10px;
}
.auth-country-select {
  width: 110px;
  padding: 14px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.auth-country-select:focus { border-color: var(--vnch-gold); }
.auth-country-select option { background: #1a0a0a; color: white; }

.auth-input {
  flex: 1;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
.auth-input:focus {
  border-color: var(--vnch-gold);
  background: rgba(255, 255, 255, 0.08);
}
.auth-input::placeholder { color: var(--text-muted); }

/* ============ OTP CODE INPUT ============ */
.auth-otp-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 24px 0 16px;
}
.auth-otp-input {
  width: 52px;
  height: 64px;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}
.auth-otp-input:focus {
  border-color: var(--vnch-gold);
  background: rgba(255, 215, 0, 0.05);
  transform: scale(1.05);
}
.auth-otp-input.filled {
  border-color: var(--vnch-gold);
  background: rgba(255, 215, 0, 0.08);
}

.auth-otp-resend {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}
.auth-otp-resend a {
  color: var(--vnch-gold);
  text-decoration: none;
  margin-left: 4px;
  cursor: pointer;
}

/* ============ SUBMIT BUTTON (general) ============ */
.auth-submit {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--vnch-red), var(--vnch-red-deep));
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
  font-family: inherit;
}
.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
}
.auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.auth-submit.btn-gold {
  background: linear-gradient(135deg, var(--vnch-gold), var(--vnch-gold-deep));
  color: #1a0a0a;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
}
.auth-submit.btn-gold:hover {
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.5);
}

/* ============ WELCOME / SUCCESS ============ */
.auth-welcome {
  text-align: center;
  padding: 16px 0;
}
.auth-welcome-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vnch-gold), var(--vnch-gold-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: 0 0 40px rgba(255, 215, 0, 0.4);
  animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes successPop {
  0% { transform: scale(0); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.auth-welcome-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px;
  font-family: 'Playfair Display', serif;
}
.auth-welcome-msg {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 8px;
}
.auth-welcome-folder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  color: var(--vnch-gold);
  font-size: 13px;
  margin: 16px 0;
}

/* ============ TUTORIAL SLIDES ============ */
.auth-tutorial {
  padding: 8px 0;
}
.auth-tutorial-slide {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.auth-tutorial-slide.active {
  display: block;
  animation: slideFade 0.4s ease-out;
}
@keyframes slideFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-tutorial-img {
  width: 200px;
  height: 140px;
  margin: 0 auto 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--vnch-red-deep), var(--bella-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.auth-tutorial-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.auth-tutorial-caption {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.auth-tutorial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
}
.auth-tutorial-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.2s;
}
.auth-tutorial-dot.active { background: var(--vnch-gold); }

.auth-tutorial-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  gap: 10px;
}
.auth-tutorial-controls button {
  flex: 1;
  padding: 12px 18px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
}
.auth-tutorial-skip {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.auth-tutorial-next {
  background: var(--vnch-red);
  color: white;
}

/* ============ SAVE LOCATION INDICATOR ============ */
.save-indicator {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 320px;
  background: linear-gradient(135deg, #1a0a0a, #0a0505);
  border: 2px solid var(--vnch-gold);
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 9000;
  transform: translateY(120%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.save-indicator.show { transform: translateY(0); }
.save-indicator-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--vnch-gold);
}
.save-indicator-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.save-indicator-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 12px;
}
.save-indicator-btn {
  padding: 8px 10px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.save-indicator-btn:hover {
  background: var(--vnch-red);
  border-color: var(--vnch-red);
}
.save-indicator-tip {
  margin-top: 12px;
  padding: 8px 10px;
  background: rgba(255, 215, 0, 0.08);
  border-radius: 8px;
  font-size: 11px;
  color: var(--vnch-gold);
  line-height: 1.4;
}

/* ============ USER BADGE (top-right pill) ============ */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.15), rgba(255, 215, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.user-badge:hover {
  border-color: var(--vnch-gold);
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(255, 215, 0, 0.15));
}
.user-badge-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vnch-red), var(--vnch-gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}
.user-badge-credits {
  color: var(--vnch-gold);
  font-weight: 700;
}
.user-badge-storage {
  color: var(--text-muted);
  font-size: 12px;
}

/* ============ ELDER-FRIENDLY MODE ============ */
body.elder-mode {
  font-size: 18px;
}
body.elder-mode .auth-modal-header h2 { font-size: 32px; }
body.elder-mode .auth-path-title { font-size: 24px; }
body.elder-mode .auth-path-desc { font-size: 16px; }
body.elder-mode .auth-path-btn { font-size: 18px; padding: 18px 24px; }
body.elder-mode .auth-input { font-size: 18px; padding: 18px 20px; }
body.elder-mode .auth-otp-input { width: 60px; height: 72px; font-size: 32px; }
body.elder-mode .auth-submit { font-size: 18px; padding: 20px 28px; }

.elder-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 215, 0, 0.06);
  border: 1px solid rgba(255, 215, 0, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  color: var(--vnch-gold);
  transition: all 0.2s;
}
.elder-toggle:hover {
  background: rgba(255, 215, 0, 0.12);
}
.elder-toggle-switch {
  width: 32px; height: 18px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  position: relative;
  transition: background 0.2s;
}
.elder-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  transition: transform 0.2s;
}
.elder-toggle.active .elder-toggle-switch {
  background: var(--vnch-gold);
}
.elder-toggle.active .elder-toggle-switch::after {
  transform: translateX(14px);
}

/* ============ GOOGLE SITES HELPER SECTION ============ */
.gsites-section {
  padding: 60px 24px;
  background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.04));
  position: relative;
}
.gsites-grid {
  max-width: 1100px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}
.gsites-step {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  transition: all 0.3s;
}
.gsites-step:hover {
  transform: translateY(-4px);
  border-color: var(--vnch-gold);
  box-shadow: 0 12px 32px rgba(255, 215, 0, 0.15);
}
.gsites-step-num {
  width: 36px; height: 36px;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--vnch-red), var(--vnch-gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: white;
}
.gsites-step-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.gsites-step-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.gsites-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============ GUEST UPGRADE PROMPT ============ */
.guest-upgrade-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: linear-gradient(135deg, var(--vnch-red), var(--vnch-red-deep));
  color: white;
  padding: 14px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
  font-size: 14px;
  font-weight: 600;
  z-index: 8500;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.guest-upgrade-banner.show {
  transform: translateX(-50%) translateY(0);
}

/* ============ BELLA CHAT WIDGET ============ */
.bella-chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--bella-pink), var(--bella-purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
  z-index: 8000;
  border: 3px solid var(--vnch-gold);
  transition: all 0.3s;
  animation: bellaIdle 4s ease-in-out infinite;
}
@keyframes bellaIdle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.bella-chat-fab:hover {
  transform: scale(1.1) !important;
  animation: none;
}
.bella-chat-fab .bella-mood-indicator {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 2px solid var(--vnch-gold);
}

.bella-chat-panel {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: linear-gradient(180deg, #1a0a0a 0%, #0a0505 100%);
  border: 2px solid var(--vnch-gold);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  z-index: 8001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s;
}
.bella-chat-panel.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.bella-chat-header {
  padding: 16px;
  background: linear-gradient(135deg, var(--bella-pink), var(--bella-purple));
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bella-chat-avatar {
  width: 40px; height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.bella-chat-info {
  flex: 1;
}
.bella-chat-name {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}
.bella-chat-status {
  font-size: 12px;
  opacity: 0.85;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bella-chat-status::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}
.bella-chat-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}
.bella-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bella-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  animation: msgFade 0.3s ease-out;
}
@keyframes msgFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.bella-msg.from-bella {
  align-self: flex-start;
  background: rgba(255, 107, 157, 0.15);
  border: 1px solid rgba(255, 107, 157, 0.3);
  color: white;
  border-bottom-left-radius: 4px;
}
.bella-msg.from-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--vnch-red), var(--vnch-red-deep));
  color: white;
  border-bottom-right-radius: 4px;
}
.bella-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 8px;
}
.bella-quick-reply {
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.bella-quick-reply:hover {
  background: var(--vnch-gold);
  color: #1a0a0a;
  border-color: var(--vnch-gold);
}
.bella-chat-input-row {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
}
.bella-chat-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: white;
  font-size: 14px;
  outline: none;
  font-family: inherit;
}
.bella-chat-input:focus { border-color: var(--vnch-gold); }
.bella-chat-send {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bella-pink), var(--bella-purple));
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

/* ============ CONFETTI ============ */
.auth-confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}
.auth-confetti-piece {
  position: absolute;
  width: 10px; height: 14px;
  top: -20px;
  animation: confettiFall 3s ease-in forwards;
}
@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 600px) {
  .auth-modal { max-width: 100%; border-radius: 18px; }
  .auth-modal-header { padding: 28px 20px 16px; }
  .auth-modal-header h2 { font-size: 24px; }
  .auth-paths { padding: 18px 20px 12px; gap: 14px; }
  .auth-path-card { padding: 22px 18px; }
  .auth-flow { padding: 20px; }
  .auth-otp-input { width: 44px; height: 56px; font-size: 22px; }
  .save-indicator { width: calc(100vw - 40px); right: 20px; left: 20px; }
  .bella-chat-panel { right: 12px; bottom: 90px; width: calc(100vw - 24px); }
  .auth-bella-peek { width: 70px; height: 70px; font-size: 32px; bottom: -16px; right: 16px; }
}
