/* Lover Return Prediction - هل سيعود حبيبي؟ */

.lr-widget {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  background: #070b14;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(99,45,145,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(15,82,120,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(120,30,80,0.1) 0%, transparent 50%);
  color: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 560px;
}
.lr-widget *, .lr-widget *::before, .lr-widget *::after {
  box-sizing: border-box;
}

/* ─── Ambient Orbs ─── */
.lr-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.25;
  animation: lrOrbFloat 14s ease-in-out infinite;
  pointer-events: none;
}
.lr-orb-1 {
  width: 420px; height: 420px;
  background: #6d28d9;
  top: -120px; right: -120px;
}
.lr-orb-2 {
  width: 360px; height: 360px;
  background: #0e7490;
  bottom: -100px; left: -100px;
  animation-delay: -5s;
}
.lr-orb-3 {
  width: 240px; height: 240px;
  background: #be185d;
  top: 40%; left: 40%;
  animation-delay: -9s;
  opacity: 0.12;
}
@keyframes lrOrbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(25px,-30px) scale(1.06); }
  66% { transform: translate(-30px,25px) scale(0.94); }
}

/* ─── Stars ─── */
.lr-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.lr-star {
  position: absolute;
  background: white;
  border-radius: 50%;
  animation: lrTwinkle 4s ease-in-out infinite;
}
@keyframes lrTwinkle {
  0%,100% { opacity: 0.15; }
  50% { opacity: 0.7; }
}

/* ─── Floating Zodiac Symbols ─── */
.lr-zodiac-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.lr-zodiac-sym {
  position: absolute;
  font-size: 22px;
  opacity: 0.06;
  animation: lrSymDrift 20s linear infinite;
}
@keyframes lrSymDrift {
  0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
  10% { opacity: 0.06; }
  90% { opacity: 0.06; }
  100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* ─── Card ─── */
.lr-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  background: rgba(15,20,35,0.85);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 28px;
  padding: 44px 36px;
  box-shadow:
    0 0 0 1px rgba(109,40,217,0.06),
    0 30px 60px -15px rgba(0,0,0,0.55),
    0 0 120px rgba(109,40,217,0.06);
  backdrop-filter: blur(24px);
  margin: 0 auto;
}
.lr-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 140px; height: 3px;
  background: linear-gradient(90deg, #6d28d9, #0e7490, #be185d);
  border-radius: 0 0 4px 4px;
}

/* ─── Particles ─── */
.lr-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ─── Header ─── */
.lr-header {
  text-align: center;
  margin-bottom: 32px;
}
.lr-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,0.2), rgba(14,116,144,0.1));
  border: 1px solid rgba(109,40,217,0.25);
  margin-bottom: 20px;
  position: relative;
}
.lr-crystal {
  font-size: 38px;
  animation: lrGentleBob 3s ease-in-out infinite;
}
@keyframes lrGentleBob {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
.lr-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(109,40,217,0.15);
  animation: lrRingPulse 3s ease-in-out infinite;
}
@keyframes lrRingPulse {
  0%,100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.12); opacity: 0; }
}

.lr-title {
  font-family: 'Amiri', serif !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  background: linear-gradient(135deg, #e0d4f5, #67e8f9, #f0abfc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  border: none !important;
}
.lr-subtitle {
  color: #94a3b8;
  font-size: 15px;
  font-weight: 400;
  margin: 0;
}

/* ─── Steps ─── */
.lr-step {
  display: none;
}
.lr-step-active {
  display: block;
  animation: lrStepIn 0.4s ease;
}
@keyframes lrStepIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Step indicator */
.lr-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 8px;
}
.lr-step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: transparent;
  transition: all 0.3s;
  flex-shrink: 0;
}
.lr-dot-active {
  background: rgba(109,40,217,0.25);
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139,92,246,0.3);
}
.lr-dot-done {
  background: #6d28d9;
  border-color: #8b5cf6;
  color: white;
  font-weight: 700;
}
.lr-step-line {
  width: 40px; height: 2px;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.lr-line-done {
  background: linear-gradient(90deg, #6d28d9, #8b5cf6);
}
.lr-step-label {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}

/* ─── Form ─── */
.lr-form-group {
  margin-bottom: 18px;
  position: relative;
}
.lr-widget label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 8px;
  padding-right: 4px;
}
.lr-input {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  color: #f1f5f9;
  font-family: 'Tajawal', sans-serif;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  transition: all 0.3s ease;
  direction: rtl;
}
.lr-input::placeholder {
  color: #475569;
  font-weight: 400;
}
.lr-input:focus {
  border-color: rgba(109,40,217,0.4);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 4px rgba(109,40,217,0.08);
}

.lr-hearts-divider {
  text-align: center;
  margin: 10px 0;
  font-size: 14px;
  opacity: 0.25;
  letter-spacing: 12px;
  color: #8b5cf6;
}

/* ─── Errors ─── */
.lr-error {
  color: #f43f5e;
  font-size: 13px;
  margin-top: 6px;
  display: none;
  padding-right: 4px;
}
.lr-error.lr-show { display: block; }
.lr-error-center { text-align: center; margin-top: 12px; }

@keyframes lrShake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
.lr-shake { animation: lrShake 0.4s ease; }

/* ─── Buttons ─── */
.lr-btn {
  flex: 1;
  padding: 15px 24px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #6d28d9, #7c3aed, #0e7490);
  color: white;
  font-family: 'Tajawal', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.lr-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.lr-btn:hover::before { opacity: 1; }
.lr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(109,40,217,0.3);
}
.lr-btn:active { transform: translateY(0); }

.lr-btn-reveal {
  background: linear-gradient(135deg, #6d28d9, #be185d, #0e7490);
}

.lr-btn-back {
  padding: 15px 20px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
  font-family: 'Tajawal', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.lr-btn-back:hover {
  background: rgba(255,255,255,0.08);
  color: #f1f5f9;
}

.lr-btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* ─── Zodiac Grid ─── */
.lr-zodiac-label {
  display: block;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 16px;
}
.lr-zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 4px;
}
.lr-zodiac-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.25s ease;
  gap: 6px;
  user-select: none;
}
.lr-zodiac-item:hover {
  background: rgba(109,40,217,0.1);
  border-color: rgba(109,40,217,0.25);
  transform: translateY(-2px);
}
.lr-zodiac-item.lr-zodiac-selected {
  background: rgba(109,40,217,0.2);
  border-color: #8b5cf6;
  box-shadow: 0 0 16px rgba(139,92,246,0.2);
  transform: scale(1.04);
}
.lr-zodiac-item .lr-z-icon {
  font-size: 24px;
  line-height: 1;
}
.lr-zodiac-item .lr-z-name {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}
.lr-zodiac-item.lr-zodiac-selected .lr-z-name {
  color: #c4b5fd;
}

/* ─── Loading ─── */
.lr-loading-wrap {
  text-align: center;
  padding: 40px 0;
}
.lr-crystal-ball {
  position: relative;
  display: inline-block;
  font-size: 64px;
  margin-bottom: 24px;
  animation: lrBallFloat 2s ease-in-out infinite;
}
@keyframes lrBallFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}
.lr-crystal-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,0.3), transparent 70%);
  animation: lrGlow 1.5s ease-in-out infinite;
}
@keyframes lrGlow {
  0%,100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}
.lr-loading-text {
  font-family: 'Amiri', serif;
  font-size: 20px;
  color: #c4b5fd;
  margin-bottom: 20px;
}
.lr-loading-bar {
  width: 200px;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  margin: 0 auto;
  overflow: hidden;
}
.lr-loading-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #6d28d9, #0e7490, #be185d);
  border-radius: 4px;
  transition: width 0.3s ease;
}

/* ─── Result ─── */
.lr-result-box {
  text-align: center;
}
.lr-result-verdict {
  display: inline-block;
  padding: 8px 28px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.lr-verdict-yes {
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(52,211,153,0.08));
  border: 1px solid rgba(16,185,129,0.3);
  color: #34d399;
}
.lr-verdict-no {
  background: linear-gradient(135deg, rgba(244,63,94,0.12), rgba(251,113,133,0.06));
  border: 1px solid rgba(244,63,94,0.25);
  color: #fb7185;
}
.lr-verdict-maybe {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(251,191,36,0.06));
  border: 1px solid rgba(245,158,11,0.25);
  color: #fbbf24;
}

.lr-result-emoji-big {
  font-size: 56px;
  margin-bottom: 12px;
  display: block;
}
.lr-result-answer {
  font-family: 'Amiri', serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-bottom: 8px;
  line-height: 1.5;
}
.lr-result-names-line {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 24px;
}
.lr-result-names-line span {
  color: #8b5cf6;
  font-weight: 600;
}

.lr-divider-ornament {
  color: #334155;
  font-size: 14px;
  letter-spacing: 4px;
  margin: 20px 0;
}

/* ─── Advice ─── */
.lr-advice-section {
  background: rgba(109,40,217,0.06);
  border: 1px solid rgba(109,40,217,0.1);
  border-radius: 16px;
  padding: 24px 20px;
  margin-bottom: 20px;
}
.lr-advice-title {
  font-family: 'Amiri', serif;
  font-size: 18px;
  font-weight: 700;
  color: #c4b5fd;
  margin-bottom: 12px;
}
.lr-advice-text {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.9;
}

/* ─── Zodiac Compatibility Note ─── */
.lr-zodiac-compat {
  background: rgba(14,116,144,0.06);
  border: 1px solid rgba(14,116,144,0.1);
  border-radius: 14px;
  padding: 18px 16px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.8;
}
.lr-zodiac-compat .lr-compat-title {
  color: #67e8f9;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 15px;
}

/* ─── Actions ─── */
.lr-action-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lr-btn-secondary {
  padding: 10px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: #94a3b8;
  font-family: 'Tajawal', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}
.lr-btn-secondary:hover {
  background: rgba(255,255,255,0.08);
  color: #f1f5f9;
  border-color: rgba(255,255,255,0.15);
}

.lr-disclaimer {
  font-size: 12px;
  color: #475569;
  text-align: center;
  margin-top: 8px;
}

/* ─── Floating hearts on result ─── */
.lr-float-particle {
  position: absolute;
  font-size: 18px;
  animation: lrFloatUp 3.5s ease-out forwards;
  opacity: 0;
  pointer-events: none;
}
@keyframes lrFloatUp {
  0% { opacity: 1; transform: translateY(0) scale(0.4) rotate(0); }
  100% { opacity: 0; transform: translateY(-320px) scale(1.1) rotate(40deg); }
}

/* ─── Mobile ─── */
@media (max-width: 520px) {
  .lr-widget { padding: 24px 12px; }
  .lr-card { padding: 32px 20px; border-radius: 22px; }
  .lr-title { font-size: 24px !important; }
  .lr-zodiac-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lr-result-answer { font-size: 22px !important; }
  .lr-result-emoji-big { font-size: 44px; }
  .lr-btn-row { flex-direction: column; }
  .lr-btn-back { order: 2; }
}
