/* ============================================
   ZOLA — Complete Stylesheet
   Landing Page + Admin Dashboard
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- CSS VARIABLES ---- */
:root {
  --primary: #2E9E62;
  --primary-dark: #26804f;
  --primary-glow: rgba(46, 158, 98, 0.10);
  --bg: #111315;
  --bg-card: #181B1E;
  --bg-card2: #1F2327;
  --text: #ECEFF1;
  --text-muted: #9AA4AC;
  --border: rgba(255,255,255,0.10);

  /* Prose should not run the full width of a desktop screen. 68ch is
     about 11 words a line, which is where long-form text stays readable. */
  --measure: 68ch;

  /* Admin legacy vars */
  --bg-color: #0d0d0d;
  --card-bg: #1a1a1a;
  --primary-color: #34AE6B;
  --primary-hover: #2a8f58;
  --text-white: #ffffff;
  --text-gray: #a1a1a1;
  --border-color: #333;
  --danger: #ff4444;
}

/* ---- RESET ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* ---- BASE ---- */
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

body.landing {
  background-color: var(--bg);
}

.hidden { display: none !important; }

a { text-decoration: none; color: inherit; }

/* ============================================
   LANDING PAGE STYLES
   ============================================ */

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13, 13, 13, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(13, 13, 13, 0.95);
  box-shadow: 0 2px 30px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.logo-circle {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  color: #000;
  flex-shrink: 0;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-admin-btn {
  background: var(--primary) !important;
  color: #000 !important;
  font-weight: 700 !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
}

.nav-admin-btn:hover {
  background: var(--primary-dark) !important;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--border);
  gap: 4px;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-menu a {
  padding: 10px 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-mobile-menu a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 24px 60px;
  background: radial-gradient(ellipse at 70% 50%, rgba(52,174,107,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 10% 80%, rgba(52,174,107,0.04) 0%, transparent 50%);
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(52,174,107,0.1);
  border: 1px solid rgba(52,174,107,0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
  color: var(--text);
}

.text-green {
  color: var(--primary);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- PLAY STORE BUTTONS ---- */
.play-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  text-decoration: none;
  min-width: 180px;
  position: relative;
}

.play-btn:hover {
  background: #1a1a1a;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(52,174,107,0.15);
}

.play-btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.play-btn-outline:hover {
  background: rgba(52,174,107,0.1);
}

.play-btn-white {
  background: #fff;
  color: #000;
  border-color: transparent;
}

.play-btn-white .play-icon { color: #000; }
.play-btn-white .play-text small { color: #444; }
.play-btn-white .play-text strong { color: #000; }
.play-btn-white .play-label { color: #555; }

.play-btn-white:hover {
  background: #f0f0f0;
  border-color: transparent;
}

.play-btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
}

.play-btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.play-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--primary);
}

.play-btn-outline .play-icon {
  color: var(--primary);
}

.play-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.play-text small {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 400;
}

.play-text strong {
  font-size: 0.95rem;
  font-weight: 700;
}

.play-label {
  position: absolute;
  top: -8px;
  right: 10px;
  background: var(--primary);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ---- PHONE MOCKUP ---- */
.hero-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 260px;
  height: 520px;
  background: #0a0a0a;
  border-radius: 36px;
  border: 2px solid rgba(255,255,255,0.12);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 0 0 6px rgba(255,255,255,0.04),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
  animation: float 4s ease-in-out infinite;
}

.phone-mockup.small {
  width: 200px;
  height: 400px;
  border-radius: 28px;
  animation: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
}

.phone-status-bar {
  height: 28px;
  background: var(--primary);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 0.6rem;
  color: rgba(0,0,0,0.7);
  font-weight: 600;
}

.phone-map {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #1a1a2e;
}

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

.map-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(52,174,107,0.6); opacity: 1; }
  70% { box-shadow: 0 0 0 24px rgba(52,174,107,0); opacity: 0.7; }
  100% { box-shadow: 0 0 0 0 rgba(52,174,107,0); opacity: 0; }
}

.phone-eta-card {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22,22,22,0.95);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(10px);
}

.eta-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.eta-time {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.phone-app-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.app-bar-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text);
  background: rgba(0,0,0,0.6);
  padding: 3px 8px;
  border-radius: 5px;
}

.app-bar-status {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
}

.app-bar-status.on-duty {
  background: rgba(52,174,107,0.2);
  color: var(--primary);
}

.app-bar-dist {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0,0,0,0.6);
  padding: 3px 8px;
  border-radius: 5px;
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px;
}

.stats-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 40px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.stat-icon {
  width: 36px;
  height: 36px;
  background: var(--primary-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ---- SECTION SHARED ---- */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 60px;
  color: var(--text);
}

/* ---- FEATURES ---- */
.features-section {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52,174,107,0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.feature-card-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-wrap.green {
  background: rgba(52,174,107,0.15);
  color: var(--primary);
}

.feature-icon-wrap.blue {
  background: rgba(100,160,255,0.12);
  color: #64a0ff;
}

.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.feature-list li svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  transition: gap 0.2s;
}

.feature-cta:hover {
  gap: 10px;
}

/* ---- HOW IT WORKS ---- */
.how-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps-grid {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: space-between;
}

.step-card {
  flex: 1;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52,174,107,0.3);
}

.step-number {
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(52,174,107,0.15);
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.step-connector {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  opacity: 0.6;
}

.step-connector svg {
  width: 50px;
}

/* ---- PRICING ---- */
.pricing-section {
  background: var(--bg);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pricing-left {
  padding: 40px;
  border-right: 1px solid var(--border);
}

.pricing-left h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.pricing-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pricing-value {
  font-size: 1rem;
  font-weight: 700;
}

.pricing-value.green {
  color: var(--primary);
}

.pricing-value small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-example {
  background: var(--bg-card2);
  border-radius: 12px;
  padding: 20px;
}

.example-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.example-formula {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.example-formula strong.green {
  color: var(--primary);
  font-size: 1rem;
}

.example-split {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.split-item {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
}

.split-divider {
  width: 1px;
  background: var(--border);
}

.split-who {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.split-amount {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}

.split-amount.green {
  color: var(--primary);
}

.pricing-right {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(52,174,107,0.06) 0%, transparent 70%);
}

.revenue-card {
  text-align: center;
}

.revenue-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.revenue-amount {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -2px;
  line-height: 1;
}

.revenue-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.revenue-calc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.revenue-badge {
  display: inline-block;
  background: rgba(52,174,107,0.1);
  border: 1px solid rgba(52,174,107,0.3);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* ---- SCREENSHOTS ---- */
.screenshots-section {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.screenshots-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.screenshot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.screenshot-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: linear-gradient(135deg, #1a2f22 0%, #0d1a12 50%, #0d0d0d 100%);
  border-top: 1px solid rgba(52,174,107,0.2);
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 100px 24px;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.cta-inner .hero-buttons {
  justify-content: center;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo .logo-circle {
  width: 28px;
  height: 28px;
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

/* ============================================
   ADMIN DASHBOARD STYLES
   ============================================ */

/* ---- LOGIN ---- */
.login-container {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
  padding: 20px;
}

.login-box {
  background: var(--card-bg);
  padding: 3rem;
  border-radius: 8px;
  width: 400px;
  max-width: 100%;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: 0 0 20px rgba(52, 174, 107, 0.1);
}

.logo {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-white);
  letter-spacing: 2px;
}

.badge {
  background-color: var(--primary-color);
  color: #000;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  font-weight: bold;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  background: #000;
  border: 1px solid var(--border-color);
  color: white;
  border-radius: 4px;
  font-size: 16px;
}

.login-box input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.login-box button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  background: var(--primary-color);
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
}

.login-box button:hover {
  background: var(--primary-hover);
}

.error {
  color: var(--danger);
  margin-top: 10px;
  font-size: 0.9rem;
}

/* ---- DASHBOARD LAYOUT ---- */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: var(--card-bg);
  border-right: 1px solid var(--border-color);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar nav {
  margin-top: 20px;
}

.sidebar nav a {
  color: var(--text-gray);
  text-decoration: none;
  padding: 15px 10px;
  display: block;
  border-left: 3px solid transparent;
  transition: 0.3s;
  margin-bottom: 5px;
}

.sidebar nav a:hover, .sidebar nav a.active {
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  background: rgba(52, 174, 107, 0.05);
}

.main-content {
  flex: 1;
  padding: 30px;
  width: 100%;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}

.user-profile {
  background: var(--card-bg);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
}

/* ---- STATS CARDS ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.card h3 {
  font-size: 0.8rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card .number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin: 10px 0;
}

.card .sub-text {
  font-size: 0.8rem;
  color: var(--text-gray);
}

/* ---- TABLES ---- */
.data-section {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.refresh-btn {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: 600;
}

.refresh-btn:hover {
  background: var(--primary-color);
  color: black;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 600px;
}

th {
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid var(--border-color);
  color: var(--text-gray);
  white-space: nowrap;
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}

.status-true {
  background: rgba(52, 174, 107, 0.2);
  color: var(--primary-color);
}

.status-false {
  background: rgba(255, 68, 68, 0.2);
  color: var(--danger);
}

.status-new {
  background: rgba(66, 153, 225, 0.2);
  color: #63b3ed;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media screen and (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-phone-wrap {
    order: -1;
  }
  .hero-sub {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    grid-template-columns: 1fr;
  }
  .pricing-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .nav-burger {
    display: flex;
  }

  .hero {
    padding: 90px 20px 50px;
  }

  .phone-mockup {
    width: 200px;
    height: 400px;
  }

  .stats-bar-inner {
    flex-direction: column;
    gap: 16px;
  }
  .stat-divider {
    display: none;
  }
  .stat-item {
    padding: 0;
  }

  .steps-grid {
    flex-direction: column;
    gap: 16px;
  }
  .step-connector {
    transform: rotate(90deg);
    width: 40px;
  }

  .screenshots-grid {
    gap: 28px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  /* Admin mobile */
  .login-box {
    width: 100%;
    padding: 2rem;
  }

  .logo {
    font-size: 2rem;
  }

  .dashboard-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 15px;
    z-index: 100;
  }

  .sidebar h2 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .sidebar nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    padding-bottom: 5px;
    margin-top: 0;
  }

  .sidebar nav a {
    padding: 8px 15px;
    background: #111;
    border-radius: 20px;
    border-left: none;
    border: 1px solid #333;
    white-space: nowrap;
    font-size: 0.9rem;
  }

  .sidebar nav a.active {
    background: var(--primary-color);
    color: black;
    border-left: none;
  }

  .main-content {
    padding: 15px;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .user-profile {
    font-size: 0.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .data-section {
    padding: 15px;
  }

  td, th {
    padding: 10px;
    font-size: 0.85rem;
  }
}

/* ============================================
   TEST USERS SECTION
   ============================================ */

.tu-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.tu-tab {
  padding: 10px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-gray);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.tu-tab.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

.tu-tab:hover:not(.active) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.tu-form-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
}

.tu-form-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 6px;
}

.tu-hint {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-bottom: 20px;
}

.tu-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.tu-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tu-field label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tu-field input {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.tu-field input:focus {
  border-color: var(--primary-color);
}

.tu-submit-btn {
  margin-top: 8px;
  padding: 11px 28px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.tu-submit-btn:hover {
  background: var(--primary-hover);
}

.tu-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tu-status {
  display: inline-block;
  margin-left: 14px;
  font-size: 0.85rem;
  font-weight: 500;
}

.delete-btn {
  padding: 5px 14px;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: var(--danger);
  color: #fff;
}

.delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

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

/* ============================================
   INTERNAL TESTERS SECTION
   ============================================ */

.sa-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  gap: 16px;
}

.sa-badge {
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.sa-connected {
  background: rgba(52, 174, 107, 0.15);
  color: #34AE6B;
  border: 1px solid rgba(52, 174, 107, 0.4);
}

.sa-disconnected {
  background: rgba(255,255,255,0.05);
  color: var(--text-gray);
  border: 1px solid var(--border-color);
}

#sa-json {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-white);
  font-size: 0.8rem;
  font-family: monospace;
  resize: vertical;
  outline: none;
}

#sa-json:focus {
  border-color: var(--primary-color);
}

.tu-inline-input {
  flex: 1;
  min-width: 240px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-white);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.tu-inline-input:focus {
  border-color: var(--primary-color);
}

.testers-list {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.tester-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
}

.tester-row:last-child {
  border-bottom: none;
}

.tester-email {
  font-size: 0.9rem;
  color: var(--text-white);
}

.delete-btn {
  padding: 5px 14px;
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: var(--danger);
  color: #fff;
}

.delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */

.download-lede {
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto 42px;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.7;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  max-width: 860px;
  margin: 0 auto;
}

.dl-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dl-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(52,174,107,0.10);
}

.dl-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.dl-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dl-icon svg { width: 24px; height: 24px; }
.dl-icon-driver    { background: rgba(46,120,255,0.14); color: #5B96FF; }
.dl-icon-passenger { background: rgba(52,174,107,0.16); color: var(--primary); }

.dl-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
}

.dl-for {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.dl-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  /* Pushes the button to the bottom so both cards align regardless of text length */
  flex: 1;
  margin-bottom: 22px;
}

.dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--primary);
  color: #06180E;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease;
}

.dl-btn:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.dl-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.dl-btn-icon { width: 19px; height: 19px; flex-shrink: 0; }

.dl-meta {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.dl-soon {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #666;
  text-align: center;
}

.dl-help {
  max-width: 860px;
  margin: 34px auto 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}

.dl-help summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.dl-help summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.dl-help ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.75;
}

.dl-help ol li { margin-bottom: 8px; }
.dl-help strong { color: var(--text); }

.dl-help-note {
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: #777;
}

@media (max-width: 600px) {
  .dl-card { padding: 22px; }
  .download-lede { margin-bottom: 30px; }
}

/* Placeholder state, while the apps are still in association testing.
   Deliberately inert rather than serving a file that looks like an app and
   fails to install — a failed install reads as a broken app, which costs more
   trust than an honest "not yet". */
.dl-btn-soon {
  background: var(--bg-card2);
  color: var(--text-muted);
  border: 1px dashed rgba(255,255,255,0.18);
  cursor: not-allowed;
  pointer-events: none;
}

.dl-btn-soon:hover {
  background: var(--bg-card2);
  box-shadow: none;
}

/* Two actions side by side on the passenger card; stacks on narrow screens */
.dl-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-btn-play {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.dl-btn-play:hover {
  background: rgba(52,174,107,0.1);
  box-shadow: none;
}

/* The placeholder state wins over the Play variant while nothing is live */
.dl-btn-play.dl-btn-soon {
  background: transparent;
  color: var(--text-muted);
  border: 1px dashed rgba(255,255,255,0.18);
}

/* Checksum under the download cards. Small and quiet — it matters to the
   handful of people who check it and should not shout at everyone else. */
.dl-hash {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
}
.dl-hash code { font-size: 0.72rem; }

/* ── Footer: identity and obligations ──────────────────────────────────
   The footer carried a logo and a copyright line. On a site for a service
   that records where people are, the absence of a privacy policy is a
   bigger credibility problem than any styling choice, so the links are
   given real presence rather than being tucked away at 0.85rem. */
.footer-links a {
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.85;
}
.footer-links a:hover { opacity: 1; color: var(--primary); }

.footer-note {
  margin: 18px auto 0;
  max-width: var(--measure);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-muted);
  text-align: center;
}

/* ── Readable measure ──────────────────────────────────────────────────
   Centred paragraphs running the full width of a desktop screen are hard
   to read and look unconsidered. The download lede was the worst case. */
.download-lede,
.section-container > p {
  max-width: var(--measure);
  margin-left: auto;
  margin-right: auto;
}
