/* Pruvn Design System */
:root {
  --brand: #0D7C5F;
  --brand-light: #E8F5F0;
  --brand-dark: #095C46;
  --verified: #12A67C;
  --mis: #DC2626;
  --mis-bg: #FEF2F2;
  --dev: #D97706;
  --dev-bg: #FFFBEB;
  --dark: #0F1117;
}

/* Phone shell — flex column, fixed h/f, middle scrolls */
.phone-shell {
  width: 100%; max-width: 430px; margin: 0 auto;
  height: 100vh; height: 100dvh;
  background: #F7F8FA;
  font-family: 'Outfit', -apple-system, sans-serif;
  display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}

/* Fixed top area */
.top-bar {
  flex-shrink: 0; background: #fff; z-index: 50;
}

/* Status bar */
.status-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 20px 6px; font-size: 12px; font-weight: 600;
  background: #fff;
}

/* App header */
.app-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 16px 4px; background: #fff;
}

/* Scrollable middle */
.scroll-area {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.app-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 22px; color: var(--brand); letter-spacing: -0.5px;
}

/* Pruvn stamp badges */
.stamp {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 8px;
  font-size: 10px; font-weight: 800; color: #fff; letter-spacing: 0.5px;
}
.stamp-v { background: rgba(18,166,124,0.9); }
.stamp-m { background: rgba(220,38,38,0.9); }
.stamp-d { background: rgba(217,119,6,0.9); }

/* News card */
.news-card {
  background: #fff; border-radius: 20px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05); margin-bottom: 14px;
}
.card-hero {
  min-height: 150px; position: relative;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px;
}
.card-hero-green { background: linear-gradient(145deg, #0a3d2e 0%, #1a6b50 40%, #28856a 100%); }
.card-hero-red { background: linear-gradient(145deg, #7f1d1d, #991b1b, #b91c1c); }
.card-hero-yellow { background: linear-gradient(145deg, #78350f, #92400e, #a16207); }

.card-headline {
  color: #fff; font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px; line-height: 1.25; text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Truth reactions row */
.reactions-row {
  display: flex; gap: 16px; padding: 6px 16px 14px; align-items: center;
}
.rx { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #9CA3AF; cursor: pointer; transition: all 0.2s; }
.rx:hover, .rx.active { color: var(--brand); }
.rx b { font-weight: 700; }

/* Claim vs Truth */
.cvt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.cvt-box { padding: 12px; border-radius: 12px; border-left: 3px solid; font-size: 11px; line-height: 1.5; }

/* Viral spread bar */
.viral-bar {
  margin-top: 14px; padding: 14px; border-radius: 14px;
  display: flex; justify-content: space-between; align-items: center;
}

/* Bottom nav — fixed at bottom */
.bottom-nav {
  flex-shrink: 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0 max(14px, env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid #E5E7EB;
  z-index: 50;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: 9px; font-weight: 500; color: #9CA3AF; cursor: pointer;
  text-decoration: none; transition: color 0.2s;
}
.nav-item.active { color: var(--brand); font-weight: 700; }
.nav-item .nav-icon { font-size: 18px; }

/* Fact-checker card */
.fc-card {
  background: #fff; border-radius: 16px; padding: 16px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04); margin-bottom: 12px;
}

/* WhatsApp styles */
.wa-bg { background: #E5DDD5; }
.wa-header { background: #075E54; }
.msg { max-width: 80%; padding: 8px 10px; font-size: 11px; line-height: 1.5; border-radius: 12px; }
.msg-user { align-self: flex-end; background: #DCF8C6; border-radius: 12px 12px 0 12px; }
.msg-bot { align-self: flex-start; background: #fff; border-radius: 12px 12px 12px 0; box-shadow: 0 1px 1px rgba(0,0,0,0.06); }

/* Smooth page transitions */
.page-content { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Pulse animation */
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.pulse { animation: pulse 2s ease-in-out infinite; }

/* Toast notification */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: #1F2937; color: #fff; padding: 10px 20px; border-radius: 12px;
  font-size: 13px; font-weight: 600; z-index: 100; opacity: 0;
  transition: opacity 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* Share sheet overlay */
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 90; display: none; align-items: flex-end; justify-content: center;
}
.overlay.show { display: flex; }
.share-sheet {
  background: #fff; border-radius: 20px 20px 0 0; width: 100%; max-width: 430px;
  padding: 20px 20px max(20px, env(safe-area-inset-bottom));
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
