/* app.css - Mapenzi AI Core Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,400&display=swap');

:root {
  --color-bg: #120e0b;
  --color-card-bg: rgba(30, 24, 20, 0.65);
  --color-card-border: rgba(255, 184, 0, 0.12);
  --color-primary: #ffb800;       /* Savannah Gold */
  --color-primary-rgb: 255, 184, 0;
  --color-secondary: #ff4d2a;     /* Maasai Red / Sunset Orange */
  --color-secondary-rgb: 255, 77, 42;
  --color-success: #10b981;       /* Acacia Green */
  --color-text-main: #f5ece5;
  --color-text-muted: #bdaea2;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 77, 42, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 184, 0, 0.05) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='rgba(255,184,0,0.015)' stroke-width='1'/%3E%3C/svg%3E");
  color: var(--color-text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 60px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-card-border);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Typography & Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
}

p {
  font-weight: 300;
}

/* Page Wrapper */
.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

/* Navigation Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-heart {
  color: var(--color-secondary);
  animation: heartbeat 1.5s infinite;
  display: inline-block;
  font-size: 1.6rem;
}

.nav-badges {
  display: flex;
  gap: 15px;
}

.nav-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-card-border);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.nav-badge:hover {
  border-color: var(--color-primary);
  background: rgba(255, 184, 0, 0.05);
}

.nav-badge.ethics {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--color-success);
}

/* Standard Glassmorphism Card styling */
.glass-panel {
  background: var(--color-card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-success));
}

/* Animations */
@keyframes heartbeat {
  0% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

@keyframes laser-scan {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 100%; opacity: 0.8; }
  100% { top: 0%; opacity: 0.8; }
}

@keyframes spinner-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes float-heart {
  0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0; }
  10% { opacity: 0.8; }
  90% { opacity: 0.8; }
  100% { transform: translateY(-120px) scale(1.2) rotate(15deg); opacity: 0; }
}

.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

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

/* View Routing Mechanism */
.app-view {
  display: none;
}
.app-view.active {
  display: block;
}

/* LANDING VIEW */
.landing-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  margin-top: 20px;
}

@media (max-width: 868px) {
  .landing-grid {
    grid-template-columns: 1fr;
  }
  .hero-shield-wrapper {
    order: -1;
    max-width: 300px;
    margin: 0 auto;
  }
}

.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-text h1 span.gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p.subtitle {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 16px 36px;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(255, 77, 42, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 77, 42, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--color-card-border);
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 40px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 184, 0, 0.08);
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.hero-shield-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-shield-svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.5));
  animation: float-shield 4s ease-in-out infinite;
}

@keyframes float-shield {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Feature grid cards */
.features-container {
  margin-top: 60px;
}

.features-header {
  text-align: center;
  margin-bottom: 40px;
}

.features-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 30px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-card-border);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 15px;
  display: block;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--color-primary);
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Transparency/Ethics Footer */
.transparency-bar {
  margin-top: 50px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  border-radius: var(--border-radius-md);
  padding: 20px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.transparency-icon {
  font-size: 2.2rem;
}

.transparency-bar h4 {
  color: var(--color-success);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.transparency-bar p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* ONBOARDING VIEW */
.onboard-card {
  max-width: 600px;
  margin: 40px auto;
}

.onboard-header {
  text-align: center;
  margin-bottom: 30px;
}

.onboard-header h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--color-card-border);
  color: var(--color-text-main);
  padding: 14px 20px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(255, 77, 42, 0.2);
}

.options-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

@media (max-width: 500px) {
  .options-row {
    grid-template-columns: 1fr;
  }
}

.option-selector {
  position: relative;
}

.option-selector input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
}

.option-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-md);
  padding: 12px;
  text-align: center;
  font-weight: 500;
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.option-box .icon {
  font-size: 1.5rem;
}

.option-selector input[type="radio"]:checked + .option-box {
  border-color: var(--color-primary);
  background: rgba(255, 184, 0, 0.1);
  box-shadow: 0 0 15px rgba(255, 184, 0, 0.15);
  color: var(--color-primary);
}

.btn-row {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  gap: 20px;
}

.btn-row .btn-primary, .btn-row .btn-secondary {
  flex: 1;
  justify-content: center;
}

/* QUIZ VIEW */
.quiz-card {
  max-width: 750px;
  margin: 30px auto;
  position: relative;
}

.progress-container {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  height: 10px;
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transition: width 0.4s ease-out;
  border-radius: 10px;
}

.quiz-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.question-text {
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 30px;
  color: var(--color-text-main);
}

.answers-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.answer-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--border-radius-md);
  padding: 20px 24px;
  color: var(--color-text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.answer-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: var(--color-primary);
  opacity: 0;
  transition: var(--transition-smooth);
}

.answer-btn:hover {
  background: rgba(255, 184, 0, 0.04);
  border-color: rgba(255, 184, 0, 0.3);
  transform: translateX(5px);
}

.answer-btn:hover::before {
  opacity: 1;
}

.answer-btn .vibe-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(255,255,255,0.03);
}

.answer-btn:hover .vibe-tag {
  background: rgba(255, 184, 0, 0.15);
  color: var(--color-primary);
  border-color: rgba(255, 184, 0, 0.1);
}

/* ANALYSIS/LOADING VIEW */
.analyzer-card {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
  position: relative;
}

.scanner-box {
  width: 150px;
  height: 150px;
  margin: 30px auto;
  border-radius: 50%;
  border: 4px solid var(--color-primary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(255, 184, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-box::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, transparent, var(--color-secondary), transparent);
  box-shadow: 0 0 10px var(--color-secondary);
  animation: laser-scan 2.2s infinite ease-in-out;
  left: 0;
}

.scanner-brain {
  font-size: 4rem;
  animation: heartbeat 2s infinite ease-in-out;
}

.analyzer-title {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.terminal-box {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 18px 24px;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--color-success);
  text-align: left;
  max-height: 180px;
  overflow-y: hidden;
  margin: 25px 0;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.terminal-line {
  margin-bottom: 6px;
  opacity: 0;
  transform: translateY(4px);
  animation: terminalFade 0.4s ease forwards;
}

@keyframes terminalFade {
  to { opacity: 1; transform: translateY(0); }
}

/* RESULTS DASHBOARD */
.results-header {
  text-align: center;
  margin-bottom: 40px;
}

.results-header .greeting {
  font-size: 1.2rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 8px;
}

.results-header h2 {
  font-size: 2.8rem;
}

.reveal-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 868px) {
  .reveal-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 184, 0, 0.02);
  border: 1px solid var(--color-card-border);
  padding: 40px 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: inset 0 0 20px rgba(255, 184, 0, 0.05);
  position: relative;
}

.arch-svg-container {
  width: 160px;
  height: 160px;
  margin-bottom: 25px;
  filter: drop-shadow(0 8px 15px rgba(0,0,0,0.4));
  position: relative;
}

.arch-svg {
  width: 100%;
  height: 100%;
}

.archetype-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  display: inline-block;
}

.archetype-title {
  font-size: 2.1rem;
  color: var(--color-text-main);
  margin-bottom: 8px;
}

.archetype-tagline {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: 20px;
}

.archetype-quote {
  font-size: 1.05rem;
  color: var(--color-primary);
  font-style: italic;
  background: rgba(255, 255, 255, 0.02);
  padding: 15px 20px;
  border-radius: var(--border-radius-md);
  border-left: 3px solid var(--color-primary);
}

/* Stat Vibe meters */
.stats-container {
  margin-bottom: 25px;
}

.stat-row {
  margin-bottom: 18px;
}

.stat-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-val {
  color: var(--color-primary);
}

.stat-meter-bg {
  height: 8px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.02);
}

.stat-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
  border-radius: 10px;
  width: 0%;
  transition: width 1s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* Strengths / Weaknesses Grid */
.traits-box {
  margin-top: 30px;
}

.traits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

@media (max-width: 600px) {
  .traits-grid {
    grid-template-columns: 1fr;
  }
}

.trait-col h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trait-col.strengths h4 {
  color: var(--color-success);
}

.trait-col.weaknesses h4 {
  color: var(--color-secondary);
}

.trait-list {
  list-style: none;
}

.trait-list li {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.trait-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  font-size: 1.2rem;
}

.trait-col.strengths li::before {
  color: var(--color-success);
}

.trait-col.weaknesses li::before {
  color: var(--color-secondary);
}

/* Matches block */
.matches-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
  border-top: 1px solid var(--color-card-border);
  padding-top: 25px;
}

@media (max-width: 550px) {
  .matches-block {
    grid-template-columns: 1fr;
  }
}

.match-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.match-card.best {
  border-left: 4px stroke var(--color-success);
  border-color: rgba(16, 185, 129, 0.15);
}

.match-card.worst {
  border-left: 4px stroke var(--color-secondary);
  border-color: rgba(255, 77, 42, 0.15);
}

.match-illustration {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.match-info h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.match-card.best h5 { color: var(--color-success); }
.match-card.worst h5 { color: var(--color-secondary); }

.match-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: 2px;
}

/* COMPATIBILITY MATCHER SECTION */
.compatibility-container {
  margin-top: 50px;
  border-top: 1px solid var(--color-card-border);
  padding-top: 40px;
}

.comp-box-header {
  text-align: center;
  margin-bottom: 30px;
}

.comp-box-header h2 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.comp-form {
  display: grid;
  grid-template-columns: 1.2fr auto 1.2fr;
  gap: 20px;
  align-items: center;
  background: rgba(0,0,0,0.2);
  padding: 25px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255,255,255,0.03);
}

@media (max-width: 768px) {
  .comp-form {
    grid-template-columns: 1fr;
  }
  .comp-vs {
    margin: 10px auto;
  }
}

.comp-user-card {
  text-align: center;
  padding: 15px;
  border-radius: var(--border-radius-md);
}

.comp-user-card.me {
  background: rgba(255, 184, 0, 0.03);
  border: 1px dashed rgba(255, 184, 0, 0.2);
}

.comp-user-card.them {
  background: rgba(255, 77, 42, 0.03);
  border: 1px dashed rgba(255, 77, 42, 0.2);
}

.comp-user-card h4 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}

.comp-vs {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-align: center;
  background: rgba(255, 77, 42, 0.15);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp-result-box {
  display: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: var(--border-radius-md);
  padding: 30px;
  margin-top: 35px;
  text-align: center;
}

.comp-result-box.active {
  display: block;
}

.comp-percent {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.comp-verdict {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 15px;
}

.comp-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* PREMIUM SHOP & MONETIZATION VIEW */
.premium-container {
  margin-top: 50px;
  border-top: 1px solid var(--color-card-border);
  padding-top: 40px;
}

.premium-header {
  text-align: center;
  margin-bottom: 30px;
}

.premium-header h3 {
  font-size: 2.1rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.premium-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.premium-locked-panel {
  background: linear-gradient(135deg, rgba(30, 24, 20, 0.8), rgba(15, 10, 8, 0.9));
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  position: relative;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.premium-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.premium-lock-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 15px;
  display: inline-block;
  animation: pulse-lock 2s infinite ease-in-out;
}

@keyframes pulse-lock {
  0% { transform: scale(1); filter: drop-shadow(0 0 0px var(--color-primary)); }
  50% { transform: scale(1.1); filter: drop-shadow(0 0 8px var(--color-primary)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0px var(--color-primary)); }
}

.premium-features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
}

.premium-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.premium-feat-item span.bullet {
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.premium-feat-item h5 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.premium-feat-item p {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.premium-price-box {
  margin-top: 30px;
}

.premium-price-box .price {
  font-size: 2.8rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--color-text-main);
  margin-bottom: 15px;
  display: block;
}

.premium-price-box .price span.currency {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-right: 5px;
}

.premium-unlocked-content {
  display: none;
}

.premium-unlocked-content.active {
  display: block;
  animation: fadeIn 0.6s ease-out;
}

.unlocked-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  margin-top: 30px;
}

@media (max-width: 768px) {
  .unlocked-grid {
    grid-template-columns: 1fr;
  }
}

.unlocked-panel {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: inset 0 0 15px rgba(16, 185, 129, 0.05);
}

.unlocked-panel.green {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.03);
}

.unlocked-panel.red {
  border-color: rgba(255, 77, 42, 0.3);
  background: rgba(255, 77, 42, 0.03);
}

.unlocked-panel h4 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.unlocked-panel.green h4 { color: var(--color-success); }
.unlocked-panel.red h4 { color: var(--color-secondary); }

.flag-item {
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.02);
  padding: 14px 18px;
  border-radius: var(--border-radius-md);
  margin-bottom: 12px;
  font-size: 0.92rem;
}

.unlocked-panel.green .flag-item {
  border-left: 3px solid var(--color-success);
}

.unlocked-panel.red .flag-item {
  border-left: 3px solid var(--color-secondary);
}

.deep-dive-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-card-border);
  padding: 30px;
  border-radius: var(--border-radius-lg);
}

.deep-dive-card h4 {
  color: var(--color-primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.deep-dive-card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* PAYMENTS MODAL */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #1a1512;
  border: 1px solid var(--color-primary);
  border-radius: var(--border-radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--color-secondary);
}

.mpesa-logo {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--color-success);
  text-align: center;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mpesa-logo span.mpesa-part {
  color: var(--color-secondary);
}

.mpesa-sub {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.mpesa-phone-row {
  display: flex;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--color-card-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  align-items: center;
}

.mpesa-prefix {
  padding: 14px 15px;
  background: rgba(255, 255, 255, 0.05);
  font-weight: 600;
  color: var(--color-text-muted);
  border-right: 1px solid var(--color-card-border);
}

.mpesa-phone-row .form-input {
  border: none;
  background: transparent;
}

/* STK push loading animation inside modal */
.stk-loading-box {
  display: none;
  text-align: center;
  padding: 30px 10px;
}

.stk-loading-box.active {
  display: block;
}

.stk-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(16, 185, 129, 0.1);
  border-top-color: var(--color-success);
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spinner-rotate 1s linear infinite;
}

.stk-timer {
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: bold;
  margin-top: 15px;
}

/* Floating particle background for results */
.floating-hearts-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.floating-heart {
  position: absolute;
  color: var(--color-secondary);
  opacity: 0;
  font-size: 1.2rem;
  animation: float-heart 3s ease-in-out infinite;
}

/* Phone Notification simulation overlay */
.phone-notification {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 400px;
  background: #181c14;
  border: 1.5px solid var(--color-success);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: top 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-notification.active {
  top: 20px;
}

.notification-icon {
  background: var(--color-success);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.notification-body h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-success);
  margin-bottom: 2px;
}

.notification-body p {
  font-size: 0.8rem;
  color: var(--color-text-main);
}

.notification-time {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-left: auto;
}

/* Ethics and transparent disclosures section at bottom */
.ethics-info-box {
  margin-top: 40px;
  border-top: 1px solid var(--color-card-border);
  padding-top: 30px;
}

.ethics-info-box h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-success);
}

.ethics-info-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 15px;
}

.ethics-bullets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.ethics-bullet-item {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.ethics-bullet-item .check {
  color: var(--color-success);
  font-weight: bold;
}

/* ============ NEW FEATURES: CONFETTI, HOROSCOPE, DOWNLOAD ============ */

/* 🎉 CONFETTI ANIMATION */
.confetti {
  position: fixed;
  width: 12px;
  height: 12px;
  top: -10px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
}

@keyframes fall {
  to {
    transform: translateY(100vh) rotateZ(360deg);
    opacity: 0;
  }
}

/* ✨ HOROSCOPE CARD STYLING */
.horoscope-card {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08), rgba(255, 77, 42, 0.08));
  border: 1px solid rgba(255, 184, 0, 0.2);
  border-radius: var(--border-radius-md);
  padding: 24px;
  backdrop-filter: blur(10px);
  animation: slideInUp 0.6s ease-out;
}

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

.horoscope-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.horoscope-icon {
  font-size: 1.8rem;
  animation: twinkle 2s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.horoscope-header h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin: 0;
}

.horoscope-text {
  font-size: 1rem;
  color: var(--color-text-main);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.horoscope-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  border-top: 1px dashed rgba(255, 184, 0, 0.2);
  padding-top: 12px;
}

.refresh-hint {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* FLOATING ANIMATION FOR RESULTS */
@keyframes floatIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#horoscope-container {
  animation: floatIn 0.8s ease-out 0.3s both;
}

/* ENHANCED BUTTON STYLES */
#download-card-btn {
  background: linear-gradient(135deg, var(--color-secondary), #ff6847) !important;
  box-shadow: 0 8px 25px rgba(255, 77, 42, 0.3) !important;
}

#download-card-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(255, 77, 42, 0.4) !important;
}

/* MOBILE RESPONSIVENESS FOR NEW ELEMENTS */
@media (max-width: 600px) {
  .horoscope-card {
    padding: 16px;
  }

  .horoscope-header h3 {
    font-size: 1.1rem;
  }

  .horoscope-text {
    font-size: 0.95rem;
  }

  .horoscope-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* SayYes.co.ke Member Tabs & Paid Area Styles */
.member-tabs {
  margin-top: 10px;
}

.member-tab-btn:hover {
  background: rgba(255, 184, 0, 0.12) !important;
  color: var(--color-primary) !important;
  border-color: var(--color-card-border) !important;
}

.tab-content {
  animation: fadeIn 0.4s ease-out forwards;
}

/* Simulated Chatroom Styles */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

.chat-bubble {
  position: relative;
  line-height: 1.4;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.chat-bubble.me::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -6px;
  width: 0;
  height: 0;
  border-left: 8px solid #059669;
  border-top: 8px solid transparent;
}

.chat-bubble:not(.me)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -6px;
  width: 0;
  height: 0;
  border-right: 8px solid rgba(255,255,255,0.06);
  border-top: 8px solid transparent;
}

.typing-indicator {
  letter-spacing: 0.3px;
}

/* Custom Events Card Styles */
.event-card {
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

/* Subscription Packages Card Styles */
.package-card {
  transition: var(--transition-smooth);
}

.package-card:hover {
  transform: translateY(-8px);
}

.package-features li {
  line-height: 1.4;
}

.package-card .btn-primary:disabled,
.package-card .btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============ NEW FEATURES: DISCOVER MATCHES FEED ============ */
.member-feed-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 290px;
  transition: var(--transition-smooth);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.member-feed-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

/* Premium card borders based on rank */
.member-feed-card.rank-silver { border-color: rgba(192, 192, 192, 0.3); }
.member-feed-card.rank-gold { border-color: rgba(255, 215, 0, 0.3); }
.member-feed-card.rank-diamond { border-color: rgba(0, 255, 255, 0.3); }
.member-feed-card.rank-platinum { border-color: rgba(229, 228, 226, 0.3); }
.member-feed-card.rank-super { border-color: rgba(128, 0, 128, 0.4); }
.member-feed-card.my-card { border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.03); }

.blurred-content {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
}

.card-lock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 14, 11, 0.82);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  z-index: 5;
}

.card-lock-overlay .lock-icon {
  font-size: 2.2rem;
  color: var(--color-primary);
  animation: pulse-lock 2s infinite ease-in-out;
}

@keyframes pulse-lock {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.15); opacity: 1; }
}

.card-lock-overlay .lock-text {
  font-size: 0.88rem;
  color: var(--color-text-main);
  font-weight: 500;
  max-width: 200px;
}

.card-lock-overlay .btn-primary {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: 20px;
  box-shadow: none;
  background: linear-gradient(135deg, var(--color-success), #059669);
  color: #fff;
  border: none;
  cursor: pointer;
}

.comp-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.comp-badge.high {
  background: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.comp-badge.medium {
  background: rgba(255, 184, 0, 0.15);
  color: var(--color-primary);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.comp-badge.low {
  background: rgba(255, 77, 42, 0.15);
  color: var(--color-secondary);
  border: 1px solid rgba(255, 77, 42, 0.3);
}

.comp-badge.you {
  background: rgba(0, 255, 255, 0.15);
  color: #00FFFF;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.member-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.share-banner-discover {
  background: rgba(255, 184, 0, 0.05);
  border: 1px solid rgba(255, 184, 0, 0.15);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}

.share-banner-discover p {
  font-size: 0.92rem;
  color: var(--color-text-main);
  margin: 0;
}

