:root {
  --primary: #FF69B4;    /* Hot Pink */
  --secondary: #7B2CBF;  /* Deep Purple */
  --accent: #00F5D4;     /* Cyber Mint */
  --dark-bg: #0a0a16;
  --glass-bg: rgba(20, 20, 35, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --radius: 24px;
  --font: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--dark-bg);
  color: var(--text-main);
  font-family: var(--font);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-x: hidden;
}

/* --- Animated Background --- */
.background-blobs {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}
.blob-1 { width: 300px; height: 300px; background: var(--secondary); top: -50px; left: -50px; }
.blob-2 { width: 400px; height: 400px; background: var(--primary); bottom: -100px; right: -100px; animation-delay: -2s; }
.blob-3 { width: 200px; height: 200px; background: var(--accent); top: 40%; left: 30%; opacity: 0.2; animation-delay: -5s; }

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 50px) scale(1.1); }
}

/* --- Layout --- */
.app-container {
  width: 100%;
  max-width: 500px;
  z-index: 10;
}

header { text-align: center; margin-bottom: 30px; }
.logo-mark { font-size: 3em; margin-bottom: 10px; filter: drop-shadow(0 0 20px rgba(255,105,180,0.5)); }
h1 {
  font-size: 2.2em;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
}
.subtitle { color: var(--text-muted); font-size: 1em; margin-top: 8px; font-weight: 500; }

/* --- Glass Cards --- */
.card {
  padding: 30px;
  border-radius: var(--radius);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* --- Inputs --- */
.input-group { margin-bottom: 20px; }
.input-group label {
  display: block;
  font-size: 0.85em;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.select-wrapper, .text-wrapper { position: relative; display: flex; align-items: center; }
.icon { position: absolute; left: 16px; color: var(--primary); pointer-events: none; z-index: 2; }
.arrow { position: absolute; right: 16px; color: var(--text-muted); pointer-events: none; }

select, input {
  width: 100%;
  background: rgba(0,0,0,0.2);
  border: 2px solid rgba(255,255,255,0.05);
  border-radius: 18px;
  padding: 18px 18px 18px 50px;
  color: white;
  font-size: 1.05em;
  font-family: inherit;
  transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  appearance: none;
}
select:focus, input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255,105,180,0.05);
  box-shadow: 0 0 0 4px rgba(255, 105, 180, 0.15);
  transform: translateY(-1px);
}

/* --- Buttons --- */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  padding: 18px;
  border-radius: 50px;
  color: white;
  font-size: 1.1em;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  box-shadow: 0 10px 30px rgba(255, 105, 180, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 40px rgba(255, 105, 180, 0.4);
}
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  width: 100%;
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  padding: 16px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); color: white; border-color: white; }

/* --- Results --- */
.score {
  font-size: 3em;
  font-weight: 800;
  text-align: center;
  margin-bottom: 15px;
  color: var(--accent);
  text-shadow: 0 0 30px rgba(0, 245, 212, 0.4);
  animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.advice-card {
  padding: 30px;
  line-height: 1.7;
  font-size: 1.15em;
  color: rgba(255,255,255,0.95);
  margin-bottom: 24px;
}

.pros-cons { display: flex; flex-direction: column; gap: 16px; }
.column { background: rgba(255,255,255,0.03); padding: 24px; border-radius: 20px; border: 1px solid var(--glass-border); }
.column h3 { margin: 0 0 12px 0; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.8; }
.column.pro h3 { color: var(--accent); }
.column.con h3 { color: #FF4757; }
.column ul { padding-left: 20px; margin: 0; color: #cbd5e1; }
.column li { margin-bottom: 8px; }

/* --- Utilities & Animation --- */
.hidden { display: none !important; }
.fade-in { animation: fadeIn 0.8s ease-out; }
.fade-in-up { animation: fadeInUp 0.6s ease-out; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: scale(1); } }

/* Loader */
.loader {
  width: 48px; height: 48px;
  border: 5px solid rgba(255,255,255,0.1);
  border-bottom-color: var(--primary);
  border-radius: 50%;
  display: inline-block;
  animation: rotation 1s linear infinite;
  margin-bottom: 15px;
}
@keyframes rotation { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }