/* --- RESET & BASICS --- */
:root {
  --bg-color: #0f172a;
  --text-main: #f8fafc;
  --text-muted: rgba(255, 255, 255, 0.7);
  --accent: #14b8a6;
  --accent-hover: #0d9488;
  --surface: rgba(15, 23, 42, 0.6);
  --border: rgba(255, 255, 255, 0.1);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  background-image: url('https://offertabs.s3.amazonaws.com/offer/u7ermh/69c7ee8f8bfd02.83721430.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
}

.hidden { display: none !important; }
.text-center { text-align: center; }

/* --- LAYOUT --- */
.overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.98) 100%);
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* --- COMPONENTS --- */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.4s ease-out forwards;
}

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

.icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(20, 184, 166, 0.1);
  color: var(--accent);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(20, 184, 166, 0.2);
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%);
  color: #fff;
  padding: 1.1rem 2rem;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.25);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.4);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-block { width: 100%; }

/* --- QUIZ UI --- */
.progress-container { margin-bottom: 2rem; }
.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}
.question-meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.question-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 2rem;
}

.choices-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.choice-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.choice-btn:hover {
  background: rgba(20, 184, 166, 0.08);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.choice-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-color);
  transform: scale(0.99);
}

.choice-pts {
  font-family: 'Roboto Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}
.choice-btn:hover .choice-pts { color: rgba(20, 184, 166, 0.8); }
.choice-btn.selected .choice-pts { color: rgba(15, 23, 42, 0.7); }

/* --- FORMS --- */
.form-row { display: flex; gap: 1rem; }
@media (max-width: 600px) { .form-row { flex-direction: column; gap: 0; } }

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s;
  box-sizing: border-box;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}
.error-msg {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
}

/* --- RESULTS SCREEN --- */
.tier-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.3);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.gauge-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2.5rem;
}
.gauge-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: rgba(255, 255, 255, 0.05); stroke-width: 8; }
.gauge-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.2, 1, 0.2, 1);
}
.gauge-content {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.gauge-score {
  font-family: 'Roboto Mono', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.gauge-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

.recommendations { text-align: left; }
.recommendations h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #fff;
}
.weakness-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rec-item {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid var(--accent);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: 0 12px 12px 0;
}
.rec-title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}
.rec-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-section {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

/* --- SHARE PANEL --- */
.share-panel {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(20, 184, 166, 0.4);
  border-radius: 12px;
  text-align: center;
}
.share-panel h3 { margin: 0 0 0.5rem; font-size: 1.1rem; color: #fff; }
.share-panel p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.share-input-group { display: flex; gap: 0.5rem; }
.share-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: 'Roboto Mono', monospace;
  font-size: 0.9rem;
}
.share-input-group button {
  padding: 0 1.25rem;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}
.share-input-group button:hover { background: rgba(255,255,255,0.2); }

#wbx-powered-by-slot { margin-top: 2rem; }
@media (max-width: 600px) {
  .glass-card { padding: 2rem 1.5rem; border-radius: 16px; }
  .hero-title { font-size: 2rem; }
  .gauge-container { width: 150px; height: 150px; }
  .gauge-score { font-size: 3rem; }
}