:root {
  --bg-primary: #0a0f1d;
  --bg-secondary: #131a2e;
  --bg-tertiary: #1b243d;
  --accent-mint: #10b981;
  --accent-mint-glow: rgba(16, 185, 129, 0.15);
  --accent-mint-hover: #34d399;
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: rgba(255, 255, 255, 0.08);
  --card-glow: rgba(16, 185, 129, 0.05);
  
  --font-title: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Reset & Basics */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Background Glows */
.bg-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-mint-glow) 0%, rgba(0,0,0,0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}
.bg-glow-1 {
  top: -100px;
  right: -50px;
}
.bg-glow-2 {
  bottom: 20%;
  left: -150px;
  opacity: 0.7;
}

/* Header */
header {
  background: rgba(10, 15, 29, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  padding-top: max(16px, env(safe-area-inset-top));
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-mint-hover));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  box-shadow: 0 0 15px var(--accent-mint-glow);
}

.logo-icon svg {
  width: 20px;
  height: 20px;
}

.service-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.status-indicator {
  width: 8px;
  height: 8px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-mint);
  animation: pulse 2s infinite;
}

nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-mint);
}

/* Hero Section */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  padding: 30px 0;
}

.hero-content {
  display: flex;
  flex-direction: flex-start;
  flex-direction: column;
}

.tagline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  align-self: flex-start;
}

h1 {
  font-family: var(--font-title);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.promo-text-blink {
  font-family: var(--font-title);
  font-size: 54px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -1.5px;
  color: #F59E0B;
  margin-top: -10px;
  margin-bottom: 24px;
  animation: premium-blink 2s infinite ease-in-out;
}

@keyframes premium-blink {
  0%, 100% {
    opacity: 1;
    text-shadow: 0 0 12px rgba(245, 158, 11, 0.7), 0 0 24px rgba(245, 158, 11, 0.4);
  }
  50% {
    opacity: 0.25;
    text-shadow: none;
  }
}


.gradient-text {
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-mint-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 540px;
}

.cta-group {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.cta-group .btn {
  padding: 12px 20px;
  font-size: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-mint-hover));
  color: #040812;
  box-shadow: 0 4px 20px var(--accent-mint-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.badge {
  background: rgba(0, 0, 0, 0.2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 12px;
  margin-left: 4px;
}

.share-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: 14px;
  max-width: 540px;
  gap: 16px;
}

.share-box p {
  font-size: 14px;
  color: var(--text-secondary);
}

.btn-share {
  background: none;
  border: none;
  color: var(--accent-mint);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

.btn-share:hover {
  opacity: 0.8;
}

/* Phone Mockup */
.hero-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* How antiDELETE Works Card */
.how-it-works-card {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 30px rgba(16, 185, 129, 0.02);
  max-width: 320px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.how-it-works-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 40px rgba(16, 185, 129, 0.05);
}

.how-it-works-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.how-it-works-card .card-icon {
  font-size: 24px;
}

.how-it-works-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.how-it-works-card .card-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how-it-works-card .step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.how-it-works-card .step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-mint);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.how-it-works-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.how-it-works-card p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.phone-mockup {
  width: 290px;
  height: 560px;
  background: #0f1524;
  border: 8px solid #232c45;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(16, 185, 129, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-speaker {
  width: 60px;
  height: 4px;
  background: #232c45;
  border-radius: 2px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  flex: 1;
  margin-top: 24px;
  background: #0b0f19;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-header {
  background: #111827;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-avatar {
  width: 32px;
  height: 32px;
  background: #374151;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.chat-info {
  flex: 1;
}

.chat-name {
  font-size: 13px;
  font-weight: 600;
}

.chat-status {
  font-size: 10px;
  color: var(--accent-mint);
}

.chat-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.chat-bubble {
  max-width: 80%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.chat-bubble.received {
  align-self: flex-start;
  background: #1f2937;
  border-bottom-left-radius: 2px;
}

.bubble-text {
  margin-bottom: 4px;
}

.bubble-time {
  font-size: 8px;
  color: var(--text-muted);
  align-self: flex-end;
}

.deleted-placeholder {
  background: rgba(239, 68, 68, 0.05) !important;
  border: 1px dashed rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.recovered {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.2);
  animation: slideInUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.recovered-badge {
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-mint);
  margin-bottom: 2px;
}

.demo-trigger-area {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #111827;
  display: flex;
  justify-content: center;
}

.btn-demo {
  background: var(--accent-mint);
  color: #000;
  border: none;
  font-size: 12px;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
}

/* Stats Section */
.stats-section {
  padding: 30px 0;
  border-top: 1px solid var(--border-color);
}

.sideload-guide-section {
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 30px;
}

.sideload-guide-section .play-protect-box {
  margin: 0;
  width: 100%;
  max-width: 600px;
}


.live-stats-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-title);
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
}

.blink-dot {
  width: 14px;
  height: 14px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-mint);
  display: inline-block;
  position: relative;
}

.blink-dot::before,
.blink-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border: 1.5px solid var(--accent-mint);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  animation: pulse-ring-expand 3s cubic-bezier(0.2, 0.6, 0.4, 1) infinite;
  pointer-events: none;
}

.blink-dot::after {
  animation-delay: 1.5s;
}

@keyframes pulse-ring-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.9;
  }
  80%, 100% {
    transform: translate(-50%, -50%) scale(9);
    opacity: 0;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stats-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px 24px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.stats-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.3);
}

.stats-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.stats-number {
  font-family: var(--font-title);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent-mint);
  margin-bottom: 6px;
}

.stats-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Features Section */
.features-section {
  padding: 60px 0 100px 0;
}

.features-section h2 {
  font-family: var(--font-title);
  font-size: 32px;
  text-align: center;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* App View (Logged-in APK list view) */
.view-section {
  width: 100%;
}

.messages-container {
  max-width: 600px;
  margin: 40px auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.3);
}

.search-bar-container {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.search-input {
  flex: 1;
  height: 48px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0 18px;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
}

.search-input:focus {
  border-color: var(--accent-mint);
}

.btn-icon-only {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.filter-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #000;
  background: var(--accent-mint);
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
  overflow-y: auto;
}

.message-item {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: border-color 0.2s ease;
}

.message-item:hover {
  border-color: rgba(16, 185, 129, 0.2);
}

.message-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.message-sender {
  color: var(--accent-mint);
}

.message-body {
  font-size: 14px;
  word-break: break-word;
}

.message-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-deleted {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-normal {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
}

.empty-state-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

/* Ad Space Banner */
.ad-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
}

.ad-header {
  width: 100%;
  max-width: 728px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  padding: 0 4px 4px 4px;
}

.ad-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
}

.ad-content {
  width: 100%;
  max-width: 728px;
  aspect-ratio: 728 / 90;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  overflow: hidden;
}

.ad-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.0);
  transform-origin: center center;
}

/* Redesigned Footer Section */
footer {
  border-top: 1px solid var(--border-color);
  padding: 50px 0 30px 0;
  margin-top: auto;
  font-size: 14px;
  background: linear-gradient(to top, rgba(16, 185, 129, 0.015), rgba(0,0,0,0));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-desc {
  color: var(--text-secondary);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 280px;
  margin-top: 10px;
}

/* Social Media Glowing Buttons */
.social-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-icon svg {
  transition: transform 0.3s ease;
}

.social-icon:hover svg {
  transform: scale(1.15);
}

/* Specific glows for each social network */
.social-icon.linkedin:hover {
  color: #0077b5;
  border-color: #0077b5;
  background: rgba(0, 119, 181, 0.05);
  box-shadow: 0 0 15px rgba(0, 119, 181, 0.45);
}

.social-icon.github:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.25);
}

.social-icon.facebook:hover {
  color: #1877f2;
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.05);
  box-shadow: 0 0 15px rgba(24, 119, 242, 0.45);
}

.social-icon.tiktok:hover {
  color: #00f2fe;
  border-color: #fe0979;
  background: rgba(0, 242, 254, 0.03);
  box-shadow: -3px 0 12px rgba(0, 242, 254, 0.45), 3px 0 12px rgba(254, 9, 121, 0.45);
}

.social-icon.instagram:hover {
  color: #e1306c;
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.05);
  box-shadow: 0 0 15px rgba(225, 48, 108, 0.45);
}

/* Contacts List with Neon Accents */
.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.contact-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-list li:hover a {
  color: var(--text-primary);
}

.contact-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Glowing classes for contact icons */
.contact-list li:hover .phone-glow {
  color: #06b6d4;
  filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.95));
}

.contact-list li:hover .email-glow {
  color: #ff4a4a;
  filter: drop-shadow(0 0 5px rgba(255, 74, 74, 0.95));
}

.contact-list li:hover .web-glow {
  color: #10b981;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.95));
}

/* Footer Bottom Layout */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
}

.techbrain-tag {
  color: #ff4a4a;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
}

.techbrain-tag:hover {
  text-shadow: 0 0 8px rgba(255, 74, 74, 0.7);
  opacity: 0.9;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Utility Hidden */
.hidden {
  display: none !important;
}

.sideload-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 14px;
  max-width: 500px;
  opacity: 0.75;
  line-height: 1.5;
}

.play-protect-box {
  background: rgba(245, 158, 11, 0.02);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  max-width: 540px;
}

.warning-tag {
  display: inline-block;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.warning-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 10px;
}

.steps-details {
  font-size: 13px;
}

.steps-details summary {
  color: var(--accent-mint);
  cursor: pointer;
  font-weight: 600;
  outline: none;
  user-select: none;
}

.steps-details summary:hover {
  color: var(--accent-mint-hover);
}

.steps-list {
  margin-top: 10px;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.steps-list li {
  margin-bottom: 6px;
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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


/* Permission Warning Card in App View */
.permission-warning-card {
  background: rgba(239, 68, 68, 0.03);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  animation: slideInUp 0.4s ease;
}

.warning-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #F87171;
  margin-bottom: 6px;
}

.warning-descr {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px;
}

.btn-warning {
  background: #EAB308;
  color: #0f172a;
  border: none;
  font-weight: 600;
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
  text-align: center;
}

.btn-warning:hover {
  background: #CA8A04;
  transform: translateY(-1px);
}

/* In-App Update Card */
.update-app-card {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  animation: slideInUp 0.4s ease;
}

.update-icon {
  font-size: 28px;
}

.update-info {
  flex: 1;
}

.update-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-mint);
  margin-bottom: 4px;
}

.update-descr {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.btn-update {
  background: var(--accent-mint);
  color: #000;
  border: none;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, transform 0.2s;
}

.btn-update:hover {
  background: var(--accent-mint-hover);
  transform: translateY(-1px);
}

.app-steps-details {
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

.app-steps-details summary {
  color: #EAB308;
  cursor: pointer;
  font-weight: 600;
  outline: none;
}

.app-steps-list {
  margin-top: 8px;
  padding-left: 20px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.app-steps-list li {
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 6px 0;
  }
  
  #landingView {
    display: flex;
    flex-direction: column;
  }
  
  .hero-grid {
    display: contents;
  }
  
  .hero-content {
    order: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 0 10px 0;
  }
  
  .hero-content .tagline {
    align-self: center;
  }
  
  .cta-group {
    justify-content: center;
  }
  
  .stats-section {
    order: 2;
    padding: 20px 0;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
  }
  
  .hero-preview {
    order: 3;
    flex-direction: column;
    gap: 30px;
    padding: 20px 0;
  }
  
  .sideload-guide-section {
    order: 4;
  }
  
  #features {
    order: 5;
  }

  .nav-link {
    font-size: 14px;
  }

  .logo {
    font-size: 20px;
  }

  h1, .promo-text-blink {
    font-size: 38px;
  }
  
  .stats-grid, .features-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* APK Mode Mobile Optimization */
body.apk-mode {
  height: 100vh;
  overflow: hidden;
  position: fixed;
  width: 100%;
}

body.apk-mode header {
  height: auto;
  min-height: 60px;
  padding: 28px 0 10px 0; /* Add top padding to clear status bar/notch overlay */
  display: flex;
  align-items: center;
}

body.apk-mode main.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  max-width: 100%;
}

body.apk-mode #appView {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.apk-mode .messages-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 16px;
  overflow: hidden;
  background: transparent;
}

body.apk-mode .messages-list {
  flex: 1;
  overflow-y: auto;
  max-height: none;
  padding-bottom: 20px;
}

/* ==================== M-PESA Payment Modal Styles ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 8, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease forwards;
}

.payment-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  min-width: 0;
  padding: 36px 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 50px rgba(16, 185, 129, 0.08);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
  padding: 4px;
  z-index: 10;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.payment-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  width: 100%;
  box-sizing: border-box;
}

/* Lipa na M-PESA Brand Header */
.mpesa-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.mpesa-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #43B02A;
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(67, 176, 42, 0.4);
}

.mpesa-brand h3 {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

.payment-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.price-tag {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 16px 28px;
  border-radius: 16px;
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-tag .currency {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-mint);
}

.price-tag .amount {
  font-family: var(--font-title);
  font-size: 38px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

/* Phone Number Input Custom Wrapper */
.phone-input-wrapper {
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  height: 48px;
  transition: border-color 0.2s;
  width: 100%;
}

.phone-input-wrapper:focus-within {
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 1px var(--accent-mint-glow);
}

.phone-prefix {
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--border-color);
  padding: 0 14px;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  height: 100%;
}

.phone-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  padding: 0 16px;
  font-size: 16px;
  outline: none;
  font-family: var(--font-body);
  width: 100%;
  min-width: 0;
}

.input-hint {
  font-size: 11px;
  color: #ef4444;
  margin-top: 6px;
  display: block;
  text-align: left;
  align-self: flex-start;
  font-weight: 600;
  animation: pulse-red 1.5s infinite ease-in-out;
}

@keyframes pulse-red {
  0%, 100% {
    opacity: 0.6;
    text-shadow: none;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 4px rgba(239, 68, 68, 0.5);
  }
}

.btn-pay {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-pay:hover .pay-arrow {
  transform: translateX(4px);
}

.pay-arrow {
  transition: transform 0.2s;
  font-weight: bold;
}

.secure-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* Spinner Loader & Animations */
.payment-loader-container {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-spinner {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(16, 185, 129, 0.1);
  border-top: 4px solid var(--accent-mint);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: absolute;
}

.payment-pulse-dot {
  width: 20px;
  height: 20px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-mint);
  animation: pulse 1.5s infinite;
}

.processing-msg {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.instructions-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px 20px;
  width: 100%;
  margin-bottom: 24px;
}

.instructions-box ol {
  text-align: left;
  padding-left: 20px;
}

.instructions-box li {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

.instructions-box li:last-child {
  margin-bottom: 0;
}

.polling-status {
  font-size: 13px;
  color: var(--text-muted);
}

/* Success Checkmark Animation */
.success-icon-container {
  width: 90px;
  height: 90px;
  margin-bottom: 24px;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: var(--accent-mint);
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--accent-mint);
  animation: fillSuccess .4s ease-in-out .4s forwards, scaleSuccess .3s ease-in-out .9s both;
  margin: 0 auto;
}

.success-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--accent-mint);
  fill: none;
  animation: strokeSuccess 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: strokeSuccess 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

.success-title {
  font-family: var(--font-title);
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Error View styling */
.error-icon-container {
  font-size: 50px;
  width: 80px;
  height: 80px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.error-title {
  font-family: var(--font-title);
  font-size: 24px;
  color: #EF4444;
  margin-bottom: 8px;
}

.error-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes spin {
  100% { transform: rotate(360deg); }
}

@keyframes strokeSuccess {
  100% { stroke-dashoffset: 0; }
}

@keyframes fillSuccess {
  100% { box-shadow: inset 0px 0px 0px 40px rgba(16, 185, 129, 0.05); }
}

@keyframes scaleSuccess {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

/* Payment Modal Mobile Optimization */
@media (max-width: 480px) {
  .modal-overlay {
    padding: 12px;
  }
  
  .payment-card {
    padding: 24px 16px;
    border-radius: 20px;
  }
  
  .price-tag {
    padding: 12px 20px;
    margin-bottom: 20px;
  }
  
  .price-tag .amount {
    font-size: 32px;
  }
  
  .phone-input-wrapper {
    height: 44px;
    max-width: 250px;
    width: 100%;
    margin: 0 auto;
  }
  
  .phone-prefix {
    padding: 0 10px;
    font-size: 14px;
  }
  
  .phone-input-wrapper input {
    padding: 0 10px;
    font-size: 15px;
  }

  .btn-pay {
    max-width: 250px;
    width: 100%;
    margin: 10px auto 0 auto;
  }

  .form-group label {
    display: block;
    text-align: center;
    margin-bottom: 6px;
  }

  .input-hint {
    text-align: center;
    align-self: center;
    max-width: 250px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .instructions-box {
    padding: 12px 14px;
    margin-bottom: 20px;
  }
  
  .instructions-box li {
    font-size: 12.5px;
    margin-bottom: 6px;
  }
}


/* ==================== ACTIVATION REQUIRED SCREEN ==================== */

.activation-container {
  max-width: 420px;
  margin: 40px auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: slideInUp 0.4s ease;
}

.activation-icon {
  font-size: 56px;
  animation: pulse 2s infinite;
}

.activation-title {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 0;
}

.activation-reason {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

/* Device ID card */
.device-id-card {
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.device-id-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.device-id-value-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.device-id-value {
  flex: 1;
  font-family: monospace;
  font-size: 13px;
  color: var(--accent-mint);
  word-break: break-all;
  background: none;
}

.copy-btn {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-mint);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.device-id-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}

/* Activation Tabs */
.activation-tabs {
  display: flex;
  gap: 8px;
  width: 100%;
  background: var(--bg-primary);
  border-radius: 10px;
  padding: 4px;
}

.act-tab {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.act-tab:hover {
  color: var(--text-primary);
}

.act-tab.active {
  background: var(--accent-mint);
  color: #000;
}

/* Tab content panels */
.activation-tab-content {
  width: 100%;
  animation: slideInUp 0.25s ease;
}

.tab-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 14px 0;
  line-height: 1.5;
}

/* Large monospace code input */
.activation-code-input {
  width: 100%;
  text-transform: uppercase;
  text-align: center;
  font-size: 24px !important;
  letter-spacing: 6px;
  font-family: monospace;
  font-weight: 700;
  color: var(--accent-mint) !important;
  box-sizing: border-box;
}

.activation-code-input::placeholder {
  color: var(--text-muted);
  font-size: 20px;
  letter-spacing: 4px;
}

/* Support link */
.support-link {
  font-size: 14px;
  font-weight: 600;
  color: #25d366; /* WhatsApp green */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.support-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* APK mode: Activation view fills screen */
body.apk-mode #activationView {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 16px;
}

body.apk-mode .activation-container {
  margin: 20px auto;
}

/* Success Toast notification */
.activation-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #000;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  white-space: nowrap;
}

.activation-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
