/* ============================================================
   AFRYQA DESIGN SYSTEM
   The operating system for the global Black builder economy.
   ============================================================ */

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

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

:root {
  /* Core palette */
  --black:        #080808;
  --dark-0:       #0d0d0d;
  --dark-1:       #111111;
  --dark-2:       #161616;
  --dark-3:       #1c1c1c;
  --dark-4:       #222222;
  --panel:        #181818;
  --panel-2:      #1e1e1e;

  /* Borders */
  --border:       rgba(255,255,255,0.06);
  --border-light: rgba(255,255,255,0.1);
  --border-mid:   rgba(255,255,255,0.15);

  /* Text */
  --text-primary:   #f0f0f0;
  --text-secondary: #8a8a8a;
  --text-muted:     #555555;
  --text-dim:       #3a3a3a;

  /* Orange accent system */
  --orange:         #f97316;
  --orange-bright:  #fb923c;
  --orange-dim:     #c2410c;
  --orange-glow:    rgba(249,115,22,0.18);
  --orange-glow-sm: rgba(249,115,22,0.08);

  /* Magenta / depth */
  --magenta:        rgba(180,30,80,0.15);
  --red-depth:      rgba(200,20,60,0.08);

  /* Status */
  --green:          #22c55e;
  --green-dim:      rgba(34,197,94,0.12);
  --yellow:         #eab308;
  --yellow-dim:     rgba(234,179,8,0.12);
  --red:            #ef4444;
  --red-dim:        rgba(239,68,68,0.12);
  --blue:           #3b82f6;
  --blue-dim:       rgba(59,130,246,0.12);

  /* Typography */
  --font-body:     'Inter', sans-serif;
  --font-display:  'Space Grotesk', sans-serif;

  /* Spacing */
  --nav-h: 64px;
  --sidebar-w: 240px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-1); }
::-webkit-scrollbar-thumb { background: var(--dark-4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #333; }

/* ---- TYPOGRAPHY ---- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }
p { color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8,8,8,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 28px;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .logo-dot {
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--orange);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 6px 14px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--orange);
  color: #000;
}
.btn-primary:hover {
  background: var(--orange-bright);
  box-shadow: 0 0 24px var(--orange-glow);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--border-mid);
  background: rgba(255,255,255,0.04);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: none;
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-danger {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.2);
}
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-sm { padding: 6px 14px; font-size: 0.8125rem; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-xl { padding: 18px 40px; font-size: 1.05rem; }

/* ---- BADGE / TAG ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-orange { background: var(--orange-glow); color: var(--orange); border: 1px solid rgba(249,115,22,0.25); }
.badge-green  { background: var(--green-dim);  color: var(--green);  border: 1px solid rgba(34,197,94,0.2); }
.badge-yellow { background: var(--yellow-dim); color: var(--yellow); border: 1px solid rgba(234,179,8,0.2); }
.badge-red    { background: var(--red-dim);    color: var(--red);    border: 1px solid rgba(239,68,68,0.2); }
.badge-blue   { background: var(--blue-dim);   color: var(--blue);   border: 1px solid rgba(59,130,246,0.2); }
.badge-gray   { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border); }

/* ---- CARDS ---- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-light); }
.card-sm { padding: 16px; border-radius: var(--radius); }
.card-flush { border-radius: var(--radius-lg); overflow: hidden; }

/* glow card on hover */
.card-glow:hover {
  border-color: rgba(249,115,22,0.3);
  box-shadow: 0 0 30px rgba(249,115,22,0.06);
}

/* ---- SECTION ---- */
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.section-xs { padding: 40px 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--orange);
}
.section-title { margin-bottom: 16px; }
.section-body { color: var(--text-secondary); max-width: 600px; line-height: 1.7; }
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center .section-body { margin: 0 auto; }

/* ---- GRID ---- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--border); margin: 32px 0; }
.divider-glow { height: 1px; background: linear-gradient(90deg, transparent, var(--orange-glow), transparent); }

/* ---- FORM ---- */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-control {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: all 0.2s;
}
.form-control:focus { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow-sm); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ---- TABLE ---- */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.data-table .td-name { color: var(--text-primary); font-weight: 500; }

/* ---- STAT CARD ---- */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.stat-card .stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; font-family: var(--font-display); color: var(--text-primary); line-height: 1; }
.stat-card .stat-delta { font-size: 0.75rem; color: var(--green); margin-top: 6px; }
.stat-card .stat-delta.down { color: var(--red); }

/* ---- PROGRESS ---- */
.progress-bar { background: var(--dark-4); border-radius: 99px; height: 6px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 99px; transition: width 0.6s; }
.progress-fill-green { background: var(--green); }

/* ---- AVATAR ---- */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--dark-4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--orange);
  border: 1px solid var(--border-light);
  flex-shrink: 0;
  overflow: hidden;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.1rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.5rem; }
.avatar-sm { width: 30px; height: 30px; font-size: 0.75rem; }

/* ---- TABS ---- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.tab-btn {
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.tab-btn:hover { color: var(--text-primary); }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }

/* ---- SIDEBAR LAYOUT ---- */
.app-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--nav-h);
}
.sidebar {
  width: var(--sidebar-w);
  background: var(--dark-1);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h);
  left: 0;
  bottom: 0;
  overflow-y: auto;
  z-index: 900;
  padding: 20px 12px;
}
.sidebar-section { margin-bottom: 28px; }
.sidebar-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 12px;
  margin-bottom: 6px;
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a, .sidebar-nav li button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  width: 100%;
  border: none;
  background: none;
  font-family: var(--font-body);
  transition: all 0.15s;
  text-align: left;
}
.sidebar-nav li a:hover,
.sidebar-nav li button:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.sidebar-nav li.active a,
.sidebar-nav li.active button { color: var(--orange); background: var(--orange-glow-sm); }
.sidebar-icon { width: 16px; text-align: center; flex-shrink: 0; }
.main-content { margin-left: var(--sidebar-w); flex: 1; padding: 32px; }

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--orange-bright) 0%, #ff6b35 50%, var(--orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- HERO SECTION ---- */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249,115,22,0.12) 0%, transparent 60%),
              radial-gradient(ellipse 60% 40% at 80% 80%, var(--magenta) 0%, transparent 50%),
              radial-gradient(ellipse 40% 30% at 20% 70%, var(--red-depth) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange-glow-sm);
  border: 1px solid rgba(249,115,22,0.2);
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  margin-bottom: 28px;
  letter-spacing: 0.03em;
}
.hero h1 { letter-spacing: -0.03em; margin-bottom: 20px; }
.hero-sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-secondary); max-width: 600px; line-height: 1.7; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 60px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat .value { font-size: 1.6rem; font-weight: 800; font-family: var(--font-display); color: var(--text-primary); }
.hero-stat .label { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* ---- GLOW SEPARATOR ---- */
.glow-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--orange-glow) 50%, transparent 100%);
}

/* ---- MAP SECTION ---- */
.map-section {
  position: relative;
  background: var(--dark-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.map-canvas {
  position: relative;
  height: 400px;
  background: var(--dark-0);
  overflow: hidden;
}
.map-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--orange), 0 0 16px var(--orange-glow);
  animation: pulse-dot 2s infinite;
  cursor: pointer;
}
.map-dot.large { width: 12px; height: 12px; }
.map-dot::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 20px; height: 20px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  opacity: 0;
  animation: ripple-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 6px var(--orange), 0 0 14px var(--orange-glow); }
  50% { box-shadow: 0 0 12px var(--orange), 0 0 24px rgba(249,115,22,0.35); }
}
@keyframes ripple-dot {
  0% { width: 8px; height: 8px; opacity: 0.6; }
  100% { width: 30px; height: 30px; opacity: 0; }
}

/* ---- STARTUP CARD ---- */
.startup-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
  cursor: pointer;
}
.startup-card:hover {
  border-color: rgba(249,115,22,0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.startup-logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--dark-4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--orange);
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.startup-name { font-weight: 700; font-size: 1rem; color: var(--text-primary); margin-bottom: 6px; }
.startup-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
.startup-meta { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- BUILDER CARD ---- */
.builder-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s;
}
.builder-card:hover { border-color: var(--border-light); transform: translateY(-2px); }
.builder-header { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.builder-info .name { font-weight: 700; color: var(--text-primary); }
.builder-info .handle { font-size: 0.8125rem; color: var(--text-muted); }
.builder-bio { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
.builder-badges { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- FEED POST ---- */
.post {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: border-color 0.2s;
}
.post:hover { border-color: var(--border-light); }
.post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-content { color: var(--text-primary); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 16px; }
.post-actions { display: flex; gap: 20px; }
.post-action {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.8125rem; color: var(--text-muted);
  cursor: pointer; transition: color 0.2s;
}
.post-action:hover { color: var(--orange); }

/* ---- OPPORTUNITY CARD ---- */
.opp-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  gap: 16px;
  transition: all 0.2s;
}
.opp-card:hover { border-color: var(--border-light); }
.opp-logo {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--dark-4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--orange);
  font-size: 0.875rem;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.opp-body { flex: 1; }
.opp-title { font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.opp-company { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 10px; }
.opp-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 12px; }
.opp-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---- NOTIFICATION ---- */
.notif {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.notif:hover { background: rgba(255,255,255,0.025); }
.notif.unread { background: var(--orange-glow-sm); }
.notif-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.notif-body .notif-text { font-size: 0.875rem; color: var(--text-primary); }
.notif-body .notif-time { font-size: 0.75rem; color: var(--text-muted); margin-top: 3px; }
.notif-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  margin-left: auto;
  margin-top: 6px;
  flex-shrink: 0;
}

/* ---- TIMELINE ---- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ''; position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before {
  content: ''; position: absolute;
  left: -20px; top: 5px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--dark-4);
  border: 2px solid var(--border-light);
}
.timeline-item.done::before { background: var(--orange); border-color: var(--orange); }
.timeline-item.active::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 8px var(--orange); }
.timeline-label { font-weight: 600; font-size: 0.875rem; color: var(--text-primary); }
.timeline-sub { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* ---- PRICING CARD ---- */
.pricing-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--orange);
  box-shadow: 0 0 40px var(--orange-glow);
}
.pricing-featured-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--orange);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}
.pricing-name { font-size: 0.875rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.pricing-price { font-size: 2.5rem; font-weight: 800; font-family: var(--font-display); color: var(--text-primary); line-height: 1; margin-bottom: 4px; }
.pricing-period { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.875rem; color: var(--text-secondary);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li .check { color: var(--green); flex-shrink: 0; }
.pricing-features li .lock { color: var(--text-dim); flex-shrink: 0; }

/* ---- MISSION ITEM ---- */
.mission-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.15s;
}
.mission-item:hover { border-color: var(--border-light); }
.mission-item.completed { opacity: 0.6; }
.mission-check {
  width: 22px; height: 22px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
}
.mission-item.completed .mission-check { background: var(--orange); border-color: var(--orange); }
.mission-title { font-weight: 600; font-size: 0.9rem; color: var(--text-primary); }
.mission-desc { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }
.mission-reward { margin-left: auto; font-size: 0.75rem; color: var(--orange); font-weight: 600; white-space: nowrap; padding-left: 12px; }

/* ---- RANK BADGE ---- */
.rank-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rank-newcomer  { background: rgba(255,255,255,0.05); color: var(--text-muted); border: 1px solid var(--border); }
.rank-builder   { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.2); }
.rank-verified  { background: rgba(34,197,94,0.1); color: #4ade80; border: 1px solid rgba(34,197,94,0.2); }
.rank-founder   { background: var(--orange-glow); color: var(--orange); border: 1px solid rgba(249,115,22,0.3); }
.rank-legend    { background: linear-gradient(135deg, rgba(249,115,22,0.2), rgba(180,30,80,0.2)); color: #fb923c; border: 1px solid rgba(249,115,22,0.4); box-shadow: 0 0 12px rgba(249,115,22,0.2); }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 14px; opacity: 0.3; }
.empty-state .empty-title { font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.empty-state .empty-body { font-size: 0.875rem; margin-bottom: 20px; }

/* ---- ADMIN ---- */
.admin-layout { display: flex; min-height: 100vh; padding-top: var(--nav-h); }
.admin-sidebar {
  width: 220px;
  background: var(--dark-0);
  border-right: 1px solid var(--border);
  position: fixed;
  top: var(--nav-h); left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 900;
  padding: 16px 10px;
}
.admin-content { margin-left: 220px; flex: 1; padding: 28px 32px; }
.admin-stat {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.admin-stat .label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.admin-stat .value { font-size: 1.6rem; font-weight: 800; font-family: var(--font-display); color: var(--text-primary); }
.admin-stat .delta { font-size: 0.75rem; color: var(--green); }
.admin-stat .delta.neg { color: var(--red); }

/* ---- FILTER BAR ---- */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.filter-chip {
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: var(--dark-3);
  transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--border-light); color: var(--text-primary); }
.filter-chip.active { background: var(--orange-glow); border-color: rgba(249,115,22,0.3); color: var(--orange); }

/* ---- SEARCH ---- */
.search-input {
  position: relative;
}
.search-input input {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 10px 16px 10px 40px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.search-input input:focus { border-color: var(--orange); }
.search-input input::placeholder { color: var(--text-muted); }
.search-input .search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.875rem;
}

/* ---- CALLOUT BOX ---- */
.callout {
  background: var(--orange-glow-sm);
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.875rem;
}
.callout-blue { background: var(--blue-dim); border-color: rgba(59,130,246,0.2); }
.callout-green { background: var(--green-dim); border-color: rgba(34,197,94,0.2); }

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.page-header h1 { font-size: 1.8rem; }
.page-header p { color: var(--text-secondary); margin-top: 4px; }

/* ---- LOCK GATE ---- */
.lock-gate {
  position: relative;
  pointer-events: none;
}
.lock-gate-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 0%, var(--dark-1) 60%);
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 30px;
  border-radius: inherit;
}
.lock-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  pointer-events: all;
  cursor: pointer;
}
.lock-badge:hover { border-color: var(--orange); color: var(--orange); }

/* ---- WORKSPACE LAYOUT ---- */
.workspace {
  display: grid;
  grid-template-columns: 300px 1fr 280px;
  gap: 0;
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
}
.workspace-col {
  border-right: 1px solid var(--border);
  overflow-y: auto;
}
.workspace-col:last-child { border-right: none; }

/* ---- UTILITY ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-primary { color: var(--text-primary) !important; }
.text-orange { color: var(--orange) !important; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none; }
.relative { position: relative; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.border { border: 1px solid var(--border); }
.bg-panel { background: var(--panel); }

/* ---- SPONSOR STRIP ---- */
.sponsor-strip {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark-1);
  overflow: hidden;
}
.sponsor-logos { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.sponsor-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dim);
  transition: color 0.2s;
  letter-spacing: -0.01em;
}
.sponsor-logo:hover { color: var(--text-muted); }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr repeat(4, auto);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .brand-name { font-size: 1.25rem; font-weight: 800; font-family: var(--font-display); }
.footer-brand p { font-size: 0.875rem; color: var(--text-muted); margin-top: 10px; max-width: 240px; line-height: 1.6; }
.footer-col h5 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--text-secondary); transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--text-primary); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: 1px solid var(--border); }
.footer-bottom p { font-size: 0.8125rem; color: var(--text-muted); }
.newsletter-form { display: flex; gap: 8px; margin-top: 16px; }
.newsletter-form input {
  flex: 1;
  background: var(--dark-3);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-family: var(--font-body);
  outline: none;
}
.newsletter-form input:focus { border-color: var(--orange); }

/* ---- CHART PLACEHOLDERS ---- */
.chart-area {
  background: var(--dark-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.chart-bar-group { display: flex; align-items: flex-end; gap: 4px; height: 100%; padding: 16px; }
.chart-bar {
  flex: 1;
  background: var(--orange-glow);
  border-top: 2px solid var(--orange);
  border-radius: 3px 3px 0 0;
  transition: background 0.2s;
  cursor: pointer;
}
.chart-bar:hover { background: rgba(249,115,22,0.3); }

/* ============================================================
   MOBILE NAV — hamburger + drawer
   ============================================================ */
.nav-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  flex-shrink: 0;
  transition: all 0.2s;
}
.nav-mobile-toggle:hover { color: var(--text-primary); border-color: var(--border-light); }

/* Mobile nav drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: rgba(8,8,8,0.97);
  z-index: 999;
  overflow-y: auto;
  padding: 24px 24px 48px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  gap: 8px;
  animation: drawerIn 0.22s ease;
}
.mobile-nav-drawer.open { display: flex; }
@keyframes drawerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-align: center;
}
.mobile-nav-link:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); border-color: var(--border); }
.mobile-nav-link.active { color: var(--orange); background: var(--orange-glow-sm); border-color: rgba(249,115,22,0.2); }
.mobile-nav-link i { width: 20px; text-align: center; flex-shrink: 0; }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 12px 0; }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.mobile-nav-actions .btn { justify-content: center; width: 100%; padding: 14px; font-size: 0.9375rem; }

/* App sidebar drawer for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 898;
  backdrop-filter: blur(4px);
}
.sidebar-overlay.visible { display: block; }

/* ============================================================
   BOTTOM NAV — app pages only, mobile
   ============================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: rgba(10,10,10,0.97);
  border-top: 1px solid var(--border);
  z-index: 990;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color 0.15s;
  min-width: 52px;
  text-align: center;
  position: relative;
}
.bottom-nav-item i { font-size: 1.1rem; }
.bottom-nav-item.active { color: var(--orange); }
.bottom-nav-item .bn-badge {
  position: absolute;
  top: 4px; right: 8px;
  background: var(--orange);
  color: #000;
  font-size: 0.5rem;
  font-weight: 800;
  width: 14px; height: 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   TABLET BREAKPOINT  ≤ 1100px
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .workspace { grid-template-columns: 260px 1fr; }
  .workspace .workspace-col:last-child { display: none; }
  .container { padding: 0 20px; }
  .container-lg { padding: 0 28px; }
}

/* ============================================================
   MOBILE BREAKPOINT  ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* --- Base typography scaling --- */
  body { font-size: 15px; line-height: 1.65; }
  h1 { font-size: clamp(1.75rem, 8vw, 2.5rem); letter-spacing: -0.025em; }
  h2 { font-size: clamp(1.4rem, 6vw, 2rem); }
  h3 { font-size: clamp(1.15rem, 5vw, 1.5rem); }
  h4 { font-size: 1.05rem; }

  /* --- Container padding --- */
  .container, .container-sm, .container-lg { padding: 0 20px; }

  /* --- Sections --- */
  .section { padding: 56px 0; }
  .section-sm { padding: 40px 0; }
  .section-header { margin-bottom: 32px; text-align: center; }
  .section-header .section-label { justify-content: center; }
  .section-header .section-body { margin-left: auto; margin-right: auto; text-align: center; }
  .section-body { font-size: 0.9375rem; line-height: 1.7; text-align: center; }
  .page-header { padding: 20px 0; margin-bottom: 24px; text-align: center; }
  .page-header h1 { font-size: 1.5rem; }

  /* --- Nav --- */
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }
  .nav-inner { padding: 0 20px; }

  /* --- Hero --- */
  .hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 52px;
    text-align: center;
  }
  .hero h1 { margin-bottom: 16px; }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 28px;
    max-width: 100%;
    line-height: 1.65;
  }
  .hero-label { font-size: 0.75rem; margin-bottom: 20px; }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.9375rem;
  }
  .hero-stats {
    gap: 0;
    flex-wrap: nowrap;
    justify-content: center;
    margin-top: 40px;
    padding-top: 24px;
  }
  .hero-stat {
    flex: 1;
    text-align: center;
    padding: 0 8px;
    border-right: 1px solid var(--border);
  }
  .hero-stat:last-child { border-right: none; }
  .hero-stat .value { font-size: 1.25rem; }
  .hero-stat .label { font-size: 0.65rem; }

  /* --- Buttons --- */
  .btn-xl { padding: 14px 24px; font-size: 0.9375rem; }
  .btn-lg { padding: 12px 20px; font-size: 0.875rem; }

  /* --- Grids --- */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; }
  .grid-auto { grid-template-columns: 1fr; }

  /* --- Sidebar app layout --- */
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.16,1,.3,1);
    z-index: 1001;
    width: 280px;
    box-shadow: 8px 0 40px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content {
    margin-left: 0;
    padding: 20px 20px 80px; /* bottom padding for bottom nav */
  }

  /* --- Admin layout --- */
  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(.16,1,.3,1);
    z-index: 1001;
    width: 280px;
    box-shadow: 8px 0 40px rgba(0,0,0,0.5);
  }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; padding: 20px 20px 80px; }

  /* --- Bottom nav for app pages --- */
  .bottom-nav { display: flex; }
  /* Add padding so content doesn't hide behind bottom nav */
  .app-layout .main-content { padding-bottom: 84px; }

  /* --- Cards --- */
  .card { padding: 20px; text-align: center; }
  .card-sm { padding: 14px; text-align: center; }
  .pricing-card { padding: 24px 20px; text-align: center; }

  /* --- Opportunity card --- */
  .opp-card { flex-direction: column; gap: 12px; padding: 18px; align-items: center; text-align: center; }
  .opp-logo { width: 40px; height: 40px; }
  .opp-body { text-align: center; }
  .opp-meta { justify-content: center; }

  /* --- Stat card --- */
  .stat-card { padding: 16px 18px; }
  .stat-card .stat-value { font-size: 1.5rem; }

  /* --- Tables --- */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 580px; }

  /* --- Tabs --- */
  .tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 2px; gap: 0; }
  .tab-btn { white-space: nowrap; flex-shrink: 0; padding: 10px 16px; font-size: 0.8125rem; }

  /* --- Filter bar --- */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 8px;
    padding: 10px 16px;
  }
  .filter-bar > * { flex-shrink: 0; }
  .filter-chip { font-size: 0.75rem; padding: 6px 14px; }

  /* --- Footer --- */
  .footer { padding: 48px 0 28px; }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 36px;
  }
  .footer-brand { text-align: center; }
  .footer-brand p { margin: 10px auto 0; max-width: 280px; }
  .newsletter-form { max-width: 340px; margin: 16px auto 0; }
  .footer-col { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .footer-col h5 { margin-bottom: 12px; }
  .footer-col ul li { margin-bottom: 10px; }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding-top: 24px;
  }

  /* --- Workspace --- */
  .workspace { grid-template-columns: 1fr; }
  .workspace .workspace-col:not(:first-child) { display: none; }

  /* --- Callout box --- */
  .callout-box { padding: 32px 24px; }

  /* --- Mission item --- */
  .mission-item { gap: 12px; }
  .mission-reward { padding-left: 0; }

  /* --- Lock badge --- */
  .lock-badge { font-size: 0.8125rem; padding: 9px 18px; }

  /* --- Notifications --- */
  .notif { padding: 14px 16px; gap: 12px; }

  /* --- Page header flex --- */
  .page-header-row {
    flex-direction: column;
    gap: 16px;
    align-items: center !important;
    text-align: center;
  }
  .page-header-row .btn { width: 100%; justify-content: center; }

  /* --- Sponsor strip --- */
  .sponsor-logos { gap: 24px; justify-content: center; }

  /* --- Map stats bar --- */
  .map-stats-bar { gap: 0; padding: 0; }
  .map-stats-bar .ms { flex: 1; padding: 18px 8px; border-right: 1px solid var(--border); }
  .map-stats-bar .ms:last-child { border-right: none; }
  .map-stats-bar .ms .val { font-size: 1.1rem; }
  .map-stats-bar .ms .lbl { font-size: 0.62rem; }

  .builder-header,
  .post-header,
  .notif,
  .startup-meta,
  .builder-badges,
  .companies-row,
  .rank-row,
  .rank-row-left,
  .trust-item,
  .lb-row {
    justify-content: center;
    text-align: center;
  }

  .builder-header,
  .post-header,
  .notif,
  .trust-item,
  .rank-row,
  .lb-row {
    flex-direction: column;
    align-items: center;
  }

  .notif-dot,
  .mission-reward {
    margin-left: 0;
  }

  .trust-item .badge,
  .rank-pts {
    margin-left: 0 !important;
  }
}

/* ============================================================
   SMALL MOBILE  ≤ 480px
   ============================================================ */
@media (max-width: 480px) {
  .container, .container-sm, .container-lg { padding: 0 16px; }
  .section { padding: 48px 0; }
  h1 { font-size: clamp(1.6rem, 9vw, 2.2rem); }
  h2 { font-size: clamp(1.25rem, 7vw, 1.75rem); }
  .card { padding: 18px 16px; }
  .hero-stats { gap: 0; }
  .hero-stat .value { font-size: 1.1rem; }
  .hero-stat .label { font-size: 0.6rem; }
  .stat-card .stat-value { font-size: 1.35rem; }
  .pricing-price { font-size: 2rem; }
  .section-label { font-size: 0.72rem; }
  .btn-xl { padding: 13px 20px; font-size: 0.9rem; }
  .callout-box { padding: 28px 18px; }
  .footer-grid { gap: 28px; }
  /* Bottom nav labels hidden on very small */
  .bottom-nav-item { font-size: 0; gap: 0; padding: 12px 10px; }
  .bottom-nav-item i { font-size: 1.2rem; }
}

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

/* ---- HOVER GLOW ---- */
.hover-glow:hover {
  box-shadow: 0 0 20px var(--orange-glow);
}

/* ---- TOOLTIP ---- */
[data-tip] { position: relative; cursor: help; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--dark-4); border: 1px solid var(--border-light);
  color: var(--text-primary); font-size: 0.75rem; padding: 5px 10px;
  border-radius: var(--radius-sm); white-space: nowrap; z-index: 100;
}

/* ---- SCROLL REVEAL ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s, transform 0.6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   AFRYQA MAP ENGINE — Canvas + Popup styles
   ============================================================ */
.afryqa-map-canvas-wrap {
  position: relative;
  width: 100%;
}
.afryqa-map-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

/* ── MAP POPUP — desktop: fixed tooltip | mobile: bottom sheet ── */
.afryqa-map-popup {
  position: fixed;
  z-index: 9999;
  background: rgba(12, 9, 6, 0.97);
  border: 1px solid rgba(249,115,22,0.3);
  border-radius: 14px;
  padding: 18px;
  width: 264px;
  box-shadow:
    0 12px 48px rgba(0,0,0,0.8),
    0 0 0 1px rgba(249,115,22,0.08),
    0 0 24px rgba(249,115,22,0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: popupIn 0.2s cubic-bezier(.16,1,.3,1);
  pointer-events: all;
  font-family: var(--font-body, 'Inter', sans-serif);
}
@keyframes popupIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* Mobile: slide up from bottom */
.afryqa-map-popup.mobile-sheet {
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  border-radius: 18px 18px 0 0;
  padding: 20px 20px calc(32px + env(safe-area-inset-bottom, 0px));
  animation: sheetUp 0.28s cubic-bezier(.16,1,.3,1);
  border-left: none;
  border-right: none;
  border-bottom: none;
}
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
/* Drag handle on mobile sheet */
.afryqa-map-popup.mobile-sheet::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
  margin: 0 auto 16px;
}

.afryqa-popup-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.afryqa-popup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px #f97316, 0 0 20px rgba(249,115,22,0.45);
  flex-shrink: 0;
  margin-top: 2px;
}
.afryqa-popup-city {
  font-weight: 700;
  font-size: 0.9rem;
  color: #f0f0f0;
  line-height: 1.25;
  word-break: break-word;
}
.afryqa-popup-count {
  font-size: 0.72rem;
  color: #f97316;
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.01em;
}
.afryqa-popup-close {
  margin-left: auto;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #666;
  font-size: 0.72rem;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.afryqa-popup-close:hover {
  background: rgba(255,255,255,0.1);
  color: #f0f0f0;
}
.afryqa-popup-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(249,115,22,0.09);
  border: 1px solid rgba(249,115,22,0.22);
  color: #fb923c;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 99px;
  margin-bottom: 12px;
}
.afryqa-popup-builders {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 12px;
}
.afryqa-popup-builder {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: background 0.15s;
}
.afryqa-popup-builder:hover {
  background: rgba(249,115,22,0.05);
  border-color: rgba(249,115,22,0.12);
}
.afryqa-popup-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(249,115,22,0.18), rgba(180,30,80,0.12));
  border: 1px solid rgba(249,115,22,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #f97316;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.afryqa-popup-info { flex: 1; min-width: 0; }
.afryqa-popup-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ebebeb;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afryqa-popup-startup {
  font-size: 0.66rem;
  color: #4a4a4a;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.afryqa-popup-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: #22c55e;
  flex-shrink: 0;
}
.afryqa-popup-more {
  font-size: 0.68rem;
  color: #555;
  text-align: center;
  margin-bottom: 10px;
  font-style: italic;
}
.afryqa-popup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.77rem;
  font-weight: 600;
  color: #f97316;
  border: 1px solid rgba(249,115,22,0.28);
  border-radius: 8px;
  padding: 9px 12px;
  text-decoration: none;
  transition: all 0.18s;
  background: rgba(249,115,22,0.06);
}
.afryqa-popup-cta:hover {
  background: rgba(249,115,22,0.13);
  color: #fb923c;
  border-color: rgba(249,115,22,0.4);
  transform: translateY(-1px);
}

/* Caption strip */
.map-caption-strip {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8,8,8,0.88);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  padding: 7px 20px;
  font-size: 0.78rem;
  color: #7a7a7a;
  white-space: nowrap;
  pointer-events: none;
  backdrop-filter: blur(8px);
}
.map-caption-strip a {
  color: #f97316;
  pointer-events: all;
  text-decoration: none;
  font-weight: 500;
}
.map-caption-strip a:hover { color: #fb923c; }

/* ── IMAGE-BASED WORLD MAP ── */
.image-map-shell {
  position: relative;
}
.image-map-stage,
.image-map-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.image-map-stage-full {
  position: absolute;
  inset: 0;
}
.image-map-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: brightness(0.94) contrast(1.12) saturate(1.08);
}
.image-map-overlay-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%, rgba(249,115,22,0.12), transparent 28%),
    linear-gradient(180deg, rgba(0,0,0,0.14), rgba(0,0,0,0.04) 24%, rgba(0,0,0,0.16));
}
.image-map-dots-layer {
  position: absolute;
  inset: 0;
}
.image-map-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 3;
}
.image-map-dot::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 999px;
}
.image-map-dot-pulse,
.image-map-dot-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}
.image-map-dot-core {
  background: #fff7ed;
  box-shadow: 0 0 10px rgba(249,115,22,0.95), 0 0 24px rgba(249,115,22,0.6);
}
.image-map-dot-pulse {
  background: radial-gradient(circle, rgba(255,173,92,0.42) 0%, rgba(249,115,22,0.18) 45%, rgba(249,115,22,0) 75%);
  animation: imageMapPulse 2.6s ease-in-out infinite;
}
.image-map-dot.xs .image-map-dot-core { width: 6px; height: 6px; }
.image-map-dot.xs .image-map-dot-pulse { width: 18px; height: 18px; }
.image-map-dot.sm .image-map-dot-core { width: 8px; height: 8px; }
.image-map-dot.sm .image-map-dot-pulse { width: 24px; height: 24px; }
.image-map-dot.md .image-map-dot-core { width: 10px; height: 10px; }
.image-map-dot.md .image-map-dot-pulse { width: 30px; height: 30px; }
.image-map-dot.lg .image-map-dot-core { width: 12px; height: 12px; }
.image-map-dot.lg .image-map-dot-pulse { width: 38px; height: 38px; }
.image-map-dot.active .image-map-dot-core {
  box-shadow: 0 0 14px rgba(255,255,255,0.95), 0 0 34px rgba(249,115,22,0.9), 0 0 56px rgba(249,115,22,0.5);
}
.image-map-dot.active .image-map-dot-pulse {
  width: 46px;
  height: 46px;
}
@keyframes imageMapPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(0.92); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.image-map-hovercard {
  position: fixed;
  z-index: 10000;
  min-width: 170px;
  max-width: 220px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(10, 8, 6, 0.96);
  border: 1px solid rgba(249,115,22,0.28);
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 24px rgba(249,115,22,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.image-map-hovercard.visible {
  opacity: 1;
  transform: translateY(0);
}
.image-map-hovercard-category {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.22);
  color: #fb923c;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.image-map-hovercard-title {
  color: #f5f5f5;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}
.image-map-hovercard-meta {
  margin-top: 4px;
  color: #9a9a9a;
  font-size: 0.72rem;
}

@media (max-width: 768px) {
  .afryqa-map-popup:not(.mobile-sheet) { width: min(240px, calc(100vw - 24px)); padding: 14px; }
  .map-caption-strip { font-size: 0.68rem; padding: 5px 14px; }
  .image-map-dot.xs .image-map-dot-core { width: 7px; height: 7px; }
  .image-map-dot.sm .image-map-dot-core { width: 9px; height: 9px; }
  .image-map-dot.md .image-map-dot-core { width: 11px; height: 11px; }
  .image-map-dot.lg .image-map-dot-core { width: 13px; height: 13px; }
  .image-map-hovercard { display: none; }
}
@media (max-width: 600px) {
  .map-caption-strip { display: none; }
}
