/* ============================================================
   Luna Oracle — Membership & Content Hook Styles
   ============================================================ */

/* --- User Menu in Navbar --- */
.user-menu-container {
  position: relative;
  display: inline-flex;
  align-items: center;
}

#user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 30px;
  border: 2px solid rgba(155, 125, 212, 0.3);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--text-body, #4a3a6e);
}

#user-menu-btn:hover {
  border-color: var(--lavender, #9b7dd4);
  box-shadow: 0 4px 15px rgba(155, 125, 212, 0.2);
}

#user-menu-btn.logged-in {
  border-color: var(--lavender, #9b7dd4);
  background: rgba(155, 125, 212, 0.08);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lavender, #9b7dd4), var(--rose, #e8a4c8));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 700;
}

.user-tier-badge {
  font-size: 0.78em;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.tier-free { background: #f0f0f0; color: #666; }
.tier-basic { background: #e8f4fd; color: #2196F3; }
.tier-premium { background: #fef3e8; color: #FF9800; }
.tier-vip { background: linear-gradient(135deg, #ffd700, #ff6b6b); color: #fff; }

.login-text {
  color: var(--lavender, #9b7dd4);
}

/* --- User Dropdown Menu --- */
.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  padding: 12px 0;
  min-width: 220px;
  display: none;
  z-index: 9999;
  border: 1px solid rgba(155, 125, 212, 0.1);
}

.user-dropdown.show {
  display: block;
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-body, #4a3a6e);
  text-decoration: none;
  font-size: 0.9em;
  transition: background 0.2s;
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: rgba(155, 125, 212, 0.06);
}

.user-dropdown-divider {
  height: 1px;
  background: rgba(155, 125, 212, 0.1);
  margin: 8px 0;
}

.user-dropdown-header {
  padding: 10px 20px 5px;
  font-size: 0.8em;
  color: var(--text-muted, #7e6b9e);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.readings-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 0.85em;
}

.readings-counter .counter-bar {
  flex: 1;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.readings-counter .counter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lavender, #9b7dd4), var(--rose, #e8a4c8));
  border-radius: 3px;
  transition: width 0.3s;
}

/* --- Content Lock & Hook Styles --- */
.content-locked {
  position: relative;
  overflow: hidden;
}

.content-preview-wrapper {
  position: relative;
}

.content-preview {
  max-height: 200px;
  overflow: hidden;
}

.content-fade-overlay {
  position: absolute;
  bottom: 120px;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, transparent, rgba(248, 240, 255, 0.95));
  pointer-events: none;
}

.content-upgrade-prompt {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(180deg, rgba(248, 240, 255, 0.95), rgba(255, 245, 251, 0.98));
  border-radius: 0 0 16px 16px;
}

.content-upgrade-prompt .upgrade-icon {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.content-upgrade-prompt h4 {
  font-family: 'Playfair Display', serif;
  color: var(--deep-purple, #2d1b5e);
  font-size: 1.3em;
  margin-bottom: 8px;
}

.content-upgrade-prompt p {
  color: var(--text-muted, #7e6b9e);
  font-size: 0.9em;
  margin-bottom: 15px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.upgrade-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--lavender, #9b7dd4), var(--rose, #e8a4c8));
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  box-shadow: 0 6px 20px rgba(155, 125, 212, 0.3);
  transition: all 0.3s;
}

.upgrade-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(155, 125, 212, 0.4);
}

.upgrade-note {
  font-size: 0.8em !important;
  color: var(--text-muted, #7e6b9e) !important;
  margin-top: 8px !important;
}

/* Full overlay lock (for monthly/holiday content) */
.lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(248, 240, 255, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 10;
}

.lock-content {
  text-align: center;
  padding: 30px;
}

.lock-icon {
  font-size: 3em;
  margin-bottom: 12px;
}

.lock-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4em;
  color: var(--deep-purple, #2d1b5e);
  margin-bottom: 15px;
}

.lock-btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--lavender, #9b7dd4), var(--rose, #e8a4c8));
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95em;
  box-shadow: 0 6px 20px rgba(155, 125, 212, 0.3);
  transition: all 0.3s;
  margin-bottom: 10px;
}

.lock-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(155, 125, 212, 0.4);
}

.lock-price {
  font-size: 0.85em;
  color: var(--text-muted, #7e6b9e);
  margin-top: 8px;
}

/* --- Login/Register Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 16, 53, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-box {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5em;
  color: var(--text-muted, #7e6b9e);
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--deep-purple, #2d1b5e);
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6em;
  color: var(--deep-purple, #2d1b5e);
  text-align: center;
  margin-bottom: 5px;
}

.modal-subtitle {
  text-align: center;
  color: var(--text-muted, #7e6b9e);
  font-size: 0.9em;
  margin-bottom: 25px;
}

.modal-form .form-group {
  margin-bottom: 18px;
}

.modal-form .form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85em;
  color: var(--text-body, #4a3a6e);
  margin-bottom: 6px;
}

.modal-form .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(155, 125, 212, 0.2);
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95em;
  background: var(--bg-main, #f8f0ff);
  transition: border-color 0.3s;
}

.modal-form .form-group input:focus {
  outline: none;
  border-color: var(--lavender, #9b7dd4);
}

.modal-form .form-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--lavender, #9b7dd4), var(--rose, #e8a4c8));
  color: #fff;
  border: none;
  border-radius: 30px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.modal-form .form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(155, 125, 212, 0.4);
}

.modal-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85em;
  color: var(--text-muted, #7e6b9e);
}

.modal-switch a {
  color: var(--lavender, #9b7dd4);
  font-weight: 600;
  text-decoration: none;
}

.modal-switch a:hover {
  text-decoration: underline;
}

/* OTP Login Styles */
.modal-icon {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 10px;
}

.modal-note {
  text-align: center;
  margin-top: 16px;
  font-size: 0.82em;
  color: var(--text-muted, #7e6b9e);
  line-height: 1.5;
}

.modal-note a {
  color: var(--lavender, #9b7dd4);
  text-decoration: none;
}

.modal-note a:hover {
  text-decoration: underline;
}

.otp-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fff0f0;
  border: 1px solid #ffcccc;
  border-radius: 10px;
  color: #c0392b;
  font-size: 0.85em;
  text-align: center;
}

.modal-form .form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Demo tier selector in modal */
.demo-tier-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(155, 125, 212, 0.2);
  border-radius: 12px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.95em;
  background: var(--bg-main, #f8f0ff);
  color: var(--text-body, #4a3a6e);
  cursor: pointer;
}

/* --- Promo Banner (Activity Ad Bar) --- */
.promo-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #2d1b5e, #4a2d8a);
  color: #fff;
  padding: 0;
  z-index: 9990;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.promo-banner.show {
  transform: translateY(0);
}
body.promo-visible {
  padding-bottom: 72px;
}

.promo-banner.dismissed {
  transform: translateY(100%);
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.promo-banner-scroll {
  flex: 1;
  overflow: hidden;
  margin: 0 15px;
}

.promo-banner-text {
  display: inline-block;
  white-space: nowrap;
  animation: promoScroll 20s linear infinite;
  font-size: 0.9em;
  font-weight: 500;
}

@keyframes promoScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.promo-banner-icon {
  font-size: 1.5em;
  flex-shrink: 0;
}

.promo-banner-cta {
  flex-shrink: 0;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold, #d4a853), #f0c060);
  color: #2d1b5e;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85em;
  transition: all 0.3s;
}

.promo-banner-cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(212, 168, 83, 0.4);
}

.promo-banner-close {
  flex-shrink: 0;
  margin-left: 12px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3em;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.promo-banner-close:hover {
  color: #fff;
}

/* --- Disclaimer Bar --- */
.disclaimer-bar {
  background: rgba(45, 27, 94, 0.03);
  border-top: 1px solid rgba(155, 125, 212, 0.1);
  padding: 12px 20px;
  text-align: center;
  font-size: 0.75em;
  color: var(--text-muted, #7e6b9e);
  line-height: 1.5;
}

.disclaimer-bar a {
  color: var(--lavender, #9b7dd4);
  text-decoration: none;
}

.disclaimer-bar a:hover {
  text-decoration: underline;
}

/* --- Divination Service Cards --- */
.divination-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.divination-card {
  background: #fff;
  border: 2px solid rgba(155, 125, 212, 0.12);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.divination-card:hover {
  border-color: var(--lavender, #9b7dd4);
  box-shadow: 0 10px 35px rgba(155, 125, 212, 0.15);
  transform: translateY(-3px);
}

.divination-card-icon {
  font-size: 3em;
  margin-bottom: 15px;
}

.divination-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--deep-purple, #2d1b5e);
  font-size: 1.3em;
  margin-bottom: 10px;
}

.divination-card-desc {
  color: var(--text-muted, #7e6b9e);
  font-size: 0.9em;
  margin-bottom: 18px;
  line-height: 1.6;
}

.divination-card-price {
  font-size: 1.1em;
  font-weight: 700;
  color: var(--deep-purple, #2d1b5e);
  margin-bottom: 5px;
}

.divination-card-free {
  font-size: 0.8em;
  color: var(--lavender, #9b7dd4);
  margin-bottom: 15px;
}

.divination-btn {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--lavender, #9b7dd4), var(--rose, #e8a4c8));
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.divination-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(155, 125, 212, 0.35);
}

/* Readings remaining indicator */
.readings-remaining {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(155, 125, 212, 0.08);
  border-radius: 20px;
  font-size: 0.8em;
  color: var(--text-body, #4a3a6e);
  margin-bottom: 20px;
}

.readings-remaining .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lavender, #9b7dd4);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .modal-box {
    padding: 30px 25px;
    margin: 10px;
  }
  
  .promo-banner-inner {
    padding: 10px 15px;
  }
  
  .promo-banner-cta {
    font-size: 0.78em;
    padding: 6px 14px;
  }
  
  .divination-grid {
    grid-template-columns: 1fr;
  }
  
  .content-upgrade-prompt {
    padding: 20px 15px;
  }
}
