/* =====================================
   LOVE CALCULATOR – Premium Styles
   ===================================== */

/* ── CSS Variables ── */
:root {
  --pink-100: #ffe0f0;
  --pink-300: #ff9cc8;
  --pink-500: #ff4d8d;
  --pink-600: #e0356e;
  --purple-400: #c94bff;
  --purple-600: #8a00d4;
  --gold-400: #ffd166;
  --gold-600: #f5a623;

  --bg-dark: #0d0715;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(255, 77, 141, 0.4);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.35);

  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-script: 'Dancing Script', cursive;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --shadow-glow-pink: 0 0 40px rgba(255, 77, 141, 0.35);
  --shadow-glow-purple: 0 0 40px rgba(201, 75, 255, 0.3);
  --shadow-card: 0 24px 80px rgba(0, 0, 0, 0.5);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  background-image:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(201, 75, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 90%, rgba(255, 77, 141, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 209, 102, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); }
::-webkit-scrollbar-thumb { background: var(--pink-500); border-radius: 3px; }

/* ── Particles Background ── */
#particles-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle {
  position: absolute;
  font-size: clamp(10px, 2vw, 20px);
  animation: floatUp linear infinite;
  opacity: 0;
  user-select: none;
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg) scale(0.5); opacity: 0; }
  10%  { opacity: 0.7; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-15vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* ── Confetti Canvas ── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

/* ── Main Wrapper ── */
.main-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 16px;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-heart {
  font-size: 28px;
  animation: heartPulse 1.5s ease-in-out infinite;
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.2); }
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--pink-300), var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--text-primary);
  border-color: var(--border-glass);
  background: var(--bg-card);
}

/* ── Hero Section ── */
.hero-section {
  text-align: center;
  padding: 80px 0 60px;
  position: relative;
}
.hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(255,77,141,0.2) 0%, transparent 70%);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%        { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}
.title-line-1 {
  display: block;
  color: var(--text-primary);
  opacity: 0.9;
}
.title-line-2 {
  display: block;
  background: linear-gradient(135deg, #ff6b9d, #ff4d8d 40%, #c94bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(255,77,141,0.5));
}
.title-heart {
  display: inline-block;
  font-size: 0.6em;
  animation: heartPulse 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(255, 77, 141, 0.8));
}
.hero-subtitle {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  max-width: 520px;
  margin: 0 auto 50px;
  font-weight: 300;
}

/* ── Calculator Card ── */
.calculator-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 60px);
  max-width: 700px;
  margin: 0 auto;
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.calculator-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,77,141,0.6), rgba(201,75,255,0.6), transparent);
}
.calculator-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 50px rgba(255,77,141,0.2);
}
.card-glow-ring {
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,141,0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Input Group ── */
.input-group {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.input-wrapper {
  flex: 1;
  min-width: 200px;
  max-width: 260px;
}
.input-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.label-icon { font-size: 1rem; }
.input-field-container { position: relative; }
.name-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}
.name-input::placeholder { color: var(--text-muted); }
.name-input:focus {
  border-color: var(--pink-500);
  background: rgba(255, 77, 141, 0.08);
  box-shadow: 0 0 0 3px rgba(255, 77, 141, 0.15), inset 0 2px 4px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.input-underline {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--pink-500), var(--purple-400));
  border-radius: 2px;
  transition: width 0.4s ease;
}
.name-input:focus ~ .input-underline { width: 100%; }

/* ── Connector ── */
.connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-bottom: 8px;
}
.connector-heart {
  font-size: 1.8rem;
  filter: drop-shadow(0 0 8px rgba(255,77,141,0.7));
}
.heart-beat {
  animation: heartPulse 1.5s ease-in-out infinite;
}
.connector-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, var(--pink-500), var(--purple-400));
  border-radius: 2px;
  opacity: 0.4;
}

/* ── Calculate Button ── */
.calculate-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 360px;
  padding: 18px 40px;
  border: none;
  border-radius: 60px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff6b9d, #ff4d8d 50%, #c94bff);
  box-shadow: 0 8px 32px rgba(255, 77, 141, 0.5), 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  letter-spacing: 0.03em;
}
.calculate-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255, 77, 141, 0.6), 0 4px 12px rgba(0,0,0,0.3);
}
.calculate-btn:active {
  transform: translateY(0) scale(0.98);
}
.btn-icon { font-size: 1.3rem; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.calculate-btn:hover .btn-icon { transform: rotate(20deg) scale(1.25); }
.btn-shine {
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: skewX(-20deg);
  transition: none;
}
.calculate-btn:hover .btn-shine { animation: shineCalc 0.7s ease forwards; }
@keyframes shineCalc { 100% { left: 200%; } }

/* ── Result Area ── */
.result-area {
  text-align: center;
  animation: fadeInUp 0.6s ease;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-names {
  font-family: var(--font-script);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--pink-300);
  margin-bottom: 30px;
  filter: drop-shadow(0 0 10px rgba(255,156,200,0.5));
  letter-spacing: 0.02em;
}

/* ── Progress Ring ── */
.progress-ring-container {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 32px;
}
.progress-ring { display: block; }
.ring-bg { stroke: rgba(255,255,255,0.06); }
.ring-progress {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.ring-percentage {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ff6b9d, #c94bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.percent-sign { font-size: 1.5rem; }
.ring-emoji { font-size: 1.8rem; animation: heartPulse 1.5s ease-in-out infinite; }

/* ── Love Meter ── */
.love-meter { margin-bottom: 32px; }
.meter-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.meter-track {
  position: relative;
  height: 12px;
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  overflow: visible;
  margin-bottom: 8px;
}
.meter-fill {
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #ff6b9d, #ff4d8d, #c94bff);
  width: 0;
  transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 0 16px rgba(255,77,141,0.6);
}
.meter-fill::after {
  content: '';
  position: absolute;
  right: -1px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255,77,141,0.8);
  border: 3px solid var(--pink-500);
}
.meter-dots {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  padding: 0 2px;
  filter: drop-shadow(0 0 4px rgba(255,77,141,0.4));
}

/* ── Love Message ── */
.love-message-card {
  background: rgba(255,77,141,0.08);
  border: 1px solid rgba(255,77,141,0.2);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.love-message-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,77,141,0.5), transparent);
}
.message-icon { font-size: 2rem; margin-bottom: 10px; }
.love-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* ── Traits Grid ── */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.trait-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  text-align: center;
  transition: var(--transition);
}
.trait-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255,77,141,0.3);
  transform: translateY(-2px);
}
.trait-icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.trait-name {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
  display: block;
}
.trait-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pink-300);
}

/* ── Recalculate Button ── */
.recalculate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.recalculate-btn:hover {
  border-color: var(--pink-500);
  color: var(--text-primary);
  background: rgba(255,77,141,0.1);
}

/* ── Ad Section ── */
.ad-section {
  padding: 20px 0;
  text-align: center;
}
.ad-banner {
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 20px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-placeholder {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── Sections ── */
.section { padding: 80px 0; }
.section-header {
  text-align: center;
  margin-bottom: 50px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff, var(--pink-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Zodiac Grid ── */
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.zodiac-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.zodiac-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,77,141,0.08), rgba(201,75,255,0.08));
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.zodiac-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 10px 25px rgba(255,77,141,0.25); border-color: rgba(255,77,141,0.5); }
.zodiac-card:hover::before { opacity: 1; }
.zodiac-symbol { font-size: 2.5rem; display: block; margin-bottom: 8px; }
.zodiac-name { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); margin-bottom: 4px; display: block; }
.zodiac-dates { font-size: 0.72rem; color: var(--text-muted); display: block; margin-bottom: 8px; }
.zodiac-match {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pink-300);
  background: rgba(255,77,141,0.1);
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

/* ── Quiz Section ── */
.quiz-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.quiz-question {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.4;
  text-align: center;
}
.quiz-question-num {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--pink-500);
  display: block;
  text-align: center;
  margin-bottom: 10px;
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz-option {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: left;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative; overflow: hidden;
}
.quiz-option::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--pink-500); transform: scaleY(0); transition: transform 0.3s ease;
}
.quiz-option:hover {
  border-color: rgba(255,77,141,0.4);
  background: rgba(255,77,141,0.08);
  transform: translateX(6px); box-shadow: 0 4px 15px rgba(255,77,141,0.15);
}
.quiz-option.selected {
  border-color: var(--pink-500);
  background: rgba(255,77,141,0.15);
  color: var(--text-primary);
  transform: translateX(8px); box-shadow: 0 4px 20px rgba(255,77,141,0.25);
}
.quiz-option.selected::after { transform: scaleY(1); }
.option-letter {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,77,141,0.1);
  border: 1px solid rgba(255,77,141,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pink-300);
  flex-shrink: 0; transition: all 0.3s ease;
}
.quiz-option.selected .option-letter {
  background: var(--pink-500); color: #fff; border-color: var(--pink-500);
  box-shadow: 0 0 15px rgba(255,77,141,0.5);
}
.quiz-result {
  text-align: center;
  animation: fadeInUp 0.6s ease;
}
.quiz-result-score {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}
.quiz-result-label {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--pink-300);
  margin-bottom: 12px;
}
.quiz-result-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 380px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.quiz-restart-btn {
  padding: 14px 32px;
  border: 1px solid var(--pink-500);
  border-radius: 50px;
  background: rgba(255,77,141,0.1);
  color: var(--pink-300);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.quiz-restart-btn:hover { background: rgba(255,77,141,0.2); color: #fff; }
.quiz-progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 32px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pink-500), var(--purple-400));
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}
.next-btn {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--pink-500), var(--purple-600));
  border: none;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(255,77,141,0.4);
}
.next-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255,77,141,0.5); }

/* ── Tips Grid ── */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.tip-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink-500), var(--purple-400));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}
.tip-card:hover { transform: translateY(-8px) scale(1.02); border-color: rgba(255,77,141,0.4); box-shadow: 0 16px 40px rgba(255,77,141,0.25); }
.tip-card:hover::after { transform: scaleX(1); }
.tip-emoji { font-size: 2.2rem; margin-bottom: 16px; display: block; }
.tip-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; color: var(--text-primary); }
.tip-text { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }
.tip-tag {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  background: rgba(255,77,141,0.1);
  border: 1px solid rgba(255,77,141,0.2);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pink-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 60px 0 40px;
  border-top: 1px solid var(--border-glass);
}
.footer-heart { font-size: 2.5rem; display: block; margin-bottom: 12px; animation: heartPulse 2s ease-in-out infinite; }
.footer-text { font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.footer-disclaimer { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 20px; }
.footer-nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.footer-link { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-link:hover { color: var(--pink-300); }

/* ── Responsive ── */
@media (max-width: 640px) {
  .input-group { flex-direction: column; align-items: center; }
  .input-wrapper { max-width: 100%; width: 100%; }
  .connector { flex-direction: row; padding-bottom: 0; }
  .connector-line { width: 40px; height: 2px; }
  .calculator-card { padding: 28px 20px; }
  .quiz-card { padding: 28px 20px; }
  .header-nav { display: none; }
  .zodiac-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 400px) {
  .zodiac-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Loading spinner ── */
.loading-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}
.loading-dots span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: dotBounce 1.2s ease-in-out infinite;
}
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%            { transform: scale(1);   opacity: 1; }
}
