/* ============================================
   HUBCONNECT - GODMODE FINAL PRODUCTION CSS
   ALL ISSUES FIXED - READY FOR DEPLOYMENT
   Date: April 15, 2026
   ============================================ */

/* ─── FONTS ─── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Syne:wght@700;800&display=swap');


/* ─────────────────────────────────────────
   1. CSS VARIABLES
───────────────────────────────────────── */
:root {
  --navy:         #06081A;
  --card:         #0D1030;
  --sidebar:      #09112A;
  --green:        #5DBE4A;
  --lime:         #C8F04A;
  --white:        #F0F2EC;
  --muted:        #7A8099;
  --border:       rgba(255,255,255,0.07);
  --border-green: rgba(93,190,74,0.25);
  --red:          #ef4444;
  --yellow:       #fcd34d;
  --blue:         #60a5fa;
}


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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(135deg, #06081A 0%, #0a0d28 50%, #06081A 100%);
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.025em;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none !important;
  word-break: keep-all !important;
}

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

::selection        { background: rgba(200,240,74,0.3); color: var(--white); }
::-moz-selection   { background: rgba(200,240,74,0.3); color: var(--white); }


/* ─────────────────────────────────────────
   3. PARTICLES BACKGROUND
───────────────────────────────────────── */
#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0; left: 0;
  z-index: -1;
  background: linear-gradient(180deg, #06081A 0%, #0a0d1f 100%);
}


/* ─────────────────────────────────────────
   4. NAVIGATION (DESKTOP)
───────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 76px;
  background: rgba(6,8,26,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img { 
  height: 80px; 
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--white); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger - ALWAYS WHITE, hidden on desktop */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 12px;
  background: transparent;
  border: none;
  z-index: 1001;
  position: relative;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #FFFFFF !important;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Checkbox hack for pure-CSS hamburger */
#menu-toggle { display: none; }

#menu-toggle:checked ~ .hamburger span:nth-child(1) { 
  transform: rotate(45deg) translate(8px, 8px); 
}
#menu-toggle:checked ~ .hamburger span:nth-child(2) { 
  opacity: 0; 
}
#menu-toggle:checked ~ .hamburger span:nth-child(3) { 
  transform: rotate(-45deg) translate(8px, -8px); 
}


/* ─────────────────────────────────────────
   5. BUTTONS
───────────────────────────────────────── */
.btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 26px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-100%);
  transition: transform 0.55s;
}
.btn:hover::after { transform: translateX(100%); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,0.25); }

.btn-lime {
  background: var(--lime);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(200,240,74,0.3);
}
.btn-lime:hover {
  background: #d6f563;
  box-shadow: 0 8px 32px rgba(200,240,74,0.5);
  transform: translateY(-2px) scale(1.02);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.18);
}
.btn-outline:hover { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.04); }

.btn-lg { padding: 15px 32px !important; font-size: 15px !important; }


/* ─────────────────────────────────────────
   6. SIDEBAR LAYOUT (Dashboard pages)
───────────────────────────────────────── */
.sidebar {
  width: 260px;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 28px 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  top: 0; left: 0;
  overflow-y: auto;
  z-index: 200;
  transition: left 0.3s;
}

.logo {
  padding: 0 24px 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.logo img { width: 140px; }

.nav-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 24px 10px;
}

.nav-list  { list-style: none; padding: 0 12px; margin-bottom: 24px; }
.nav-dot   { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }

.nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}
.nav-item a:hover                { background: rgba(255,255,255,0.04); color: var(--white); }
.nav-item a.active               { background: rgba(93,190,74,0.1);  color: var(--green); }
.nav-item a.active .nav-dot      { background: var(--green); }

/* Main content area */
.main {
  flex: 1;
  margin-left: 260px;
  overflow-y: auto;
  min-width: 0;
  width: calc(100% - 260px);
}

.topbar {
  background: rgba(6,8,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar h1 { 
  font-size: 20px; 
  font-weight: 700;
  hyphens: none !important;
  word-break: keep-all !important;
}

.icon-btn {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.icon-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
}

.content   { padding: 32px; }
.container { max-width: 1160px; margin: 0 auto; padding: 40px; }

/* Mobile overlay for sidebar */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 199;
  opacity: 0;
  transition: opacity 0.3s;
}
.mobile-overlay.active { display: block; opacity: 1; }

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #FFFFFF;
}


/* ─────────────────────────────────────────
   7. CARDS
───────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}

.section-title { 
  font-size: 18px; 
  font-weight: 700; 
  margin-bottom: 16px;
  hyphens: none !important;
  word-break: keep-all !important;
}

/* Glassmorphism cards */
.category-card,
.partner-card,
.story-card,
.stat-card,
.step-card {
  background: rgba(13,16,48,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}

.category-card,
.partner-card,
.story-card {
  transform-style: preserve-3d;
}

.category-card:hover,
.partner-card:hover,
.story-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 24px 48px rgba(93,190,74,0.25);
  border-color: rgba(93,190,74,0.5);
}

/* SUCCESS STORIES - Images centered */
.story-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
}

.story-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 24px;
  text-align: center;
}

.story-card .name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
  text-align: center;
}

.story-card .location {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* Listing cards (dashboard) */
.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.listing-card:hover {
  border-color: rgba(93,190,74,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.listing-header   { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.listing-category { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lime); margin-bottom: 8px; }
.listing-title    { font-size: 16px; font-weight: 700; color: var(--white); margin: 0 0 6px; line-height: 1.3; }
.listing-business { font-size: 13px; color: var(--muted); }
.listing-badge    { background: rgba(93,190,74,0.15); border: 1px solid rgba(93,190,74,0.3); color: var(--green); padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.listing-details  { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border); }
.listing-price    { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--white); }
.listing-slots    { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--white); }
.listing-footer   { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }


/* ─────────────────────────────────────────
   8. FORMS
───────────────────────────────────────── */
.form-group    { margin-bottom: 20px; }
.form-label    { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--muted); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { outline: 2px solid rgba(93,190,74,0.5); outline-offset: 2px; border-color: rgba(93,190,74,0.3); }

.form-select         { background: var(--card); color: var(--white); }
.form-select option  { background: var(--card); color: var(--white); padding: 10px; }
.form-textarea       { min-height: 100px; resize: vertical; }


/* ─────────────────────────────────────────
   9. FILTERS
───────────────────────────────────────── */
.filter-btn,
.mode-filter-btn {
  padding: 8px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.mode-filter-btn:hover          { border-color: rgba(93,190,74,0.3); color: var(--white); }
.filter-btn.active,
.mode-filter-btn.active         { background: rgba(93,190,74,0.12); border-color: rgba(93,190,74,0.22); color: var(--green); font-weight: 600; }


/* ─────────────────────────────────────────
   10. STATS
───────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.stat-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--lime);
}

/* Landing page stats band */
.stats-section {
  background: #0a0d1f;
  padding: 64px 48px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-cell {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  backdrop-filter: blur(20px);
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { transform: translateY(-8px) scale(1.05); box-shadow: 0 16px 40px rgba(93,190,74,0.2); }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #C8F04A 0%, #5DBE4A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }


/* ─────────────────────────────────────────
   11. BADGES
───────────────────────────────────────── */
.status-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
}
.status-completed { background: rgba(93,190,74,0.12);  color: var(--green);  border: 1px solid rgba(93,190,74,0.22); }
.status-pending   { background: rgba(252,211,77,0.12); color: var(--yellow); border: 1px solid rgba(252,211,77,0.25); }
.status-escrow    { background: rgba(96,165,250,0.12); color: var(--blue);   border: 1px solid rgba(96,165,250,0.25); }
.status-refunded  { background: rgba(239,68,68,0.12);  color: var(--red);    border: 1px solid rgba(239,68,68,0.25); }


/* ─────────────────────────────────────────
   12. TABLES
───────────────────────────────────────── */
.table-container {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table { width: 100%; border-collapse: collapse; min-width: 600px; }

.table thead { background: rgba(255,255,255,0.02); }
.table th {
  text-align: left;
  padding: 16px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.table tbody tr:hover         { background: rgba(255,255,255,0.02); cursor: pointer; }
.table tbody tr:last-child td { border-bottom: none; }


/* ─────────────────────────────────────────
   13. TOGGLE SWITCH
───────────────────────────────────────── */
.toggle-switch {
  position: relative;
  width: 50px; height: 26px;
  background: rgba(255,255,255,0.1);
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s;
  border: 1px solid var(--border);
}
.toggle-switch.active { background: var(--lime); border-color: var(--lime); }
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}
.toggle-switch.active::after { transform: translateX(24px); background: var(--navy); }


/* ─────────────────────────────────────────
   14. HERO (Landing page)
───────────────────────────────────────── */
.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 100px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(93,190,74,0.12), transparent),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,240,74,0.08), transparent);
  pointer-events: none;
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--border-green);
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 20px;
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.05em;
  hyphens: none !important;
  word-break: keep-all !important;
}

.hero-title .accent {
  background: linear-gradient(135deg, #C8F04A 0%, #5DBE4A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  hyphens: none !important;
  word-break: keep-all !important;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(93,190,74,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  display: block;
  margin: 0 auto;
  object-fit: contain;
}


/* ─────────────────────────────────────────
   15. LANDING PAGE SECTIONS
───────────────────────────────────────── */

/* Mission band */
.mission-band {
  background: linear-gradient(135deg, rgba(93,190,74,0.07), rgba(200,240,74,0.03));
  border-top: 1px solid rgba(93,190,74,0.14);
  border-bottom: 1px solid rgba(93,190,74,0.14);
  backdrop-filter: blur(10px);
  padding: 64px 48px;
  text-align: center;
}
.mission-quote {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.7;
  color: #c0c4d8;
}

.section-eyebrow  { 
  font-size: 12px; 
  font-weight: 600; 
  letter-spacing: 0.12em; 
  text-transform: uppercase; 
  color: var(--green); 
  margin-bottom: 16px; 
  text-align: center; 
  white-space: nowrap;
}

.section-heading  { 
  font-family: 'Syne', sans-serif; 
  font-weight: 800; 
  line-height: 1.1; 
  color: var(--white); 
  text-align: center; 
  margin-bottom: 16px; 
  font-size: clamp(32px, 4vw, 52px); 
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  hyphens: none !important;
  word-break: keep-all !important;
}

.section-sub      { 
  font-size: 17px; 
  color: var(--muted); 
  text-align: center; 
  max-width: 540px; 
  margin: 0 auto; 
  line-height: 1.65; 
}

/* How It Works */
.how-section  { padding: 100px 48px; }
.how-inner    { max-width: 1400px; margin: 0 auto; }
.how-grid     { display: grid; grid-template-columns: 1fr 0.85fr; gap: 72px; align-items: center; margin-top: 60px; }
.step-cards   { display: flex; flex-direction: column; gap: 16px; }

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  text-align: left;
}
.step-card:hover { border-color: rgba(93,190,74,0.3); transform: translateY(-2px); }
.step-icon { width: 56px; height: 56px; min-width: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.step-card h3 { 
  font-size: 17px; 
  font-weight: 700; 
  margin: 0 0 8px; 
  color: var(--white);
  hyphens: none !important;
  word-break: keep-all !important;
}
.step-card p  { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 0; }

/* Categories */
.categories-section { padding: 100px 48px; background: rgba(10,13,31,0.6); }
.categories-grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1400px; margin: 64px auto 0; }

.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: block;
}
.category-card h3 { 
  font-size: 16px; 
  font-weight: 700; 
  margin: 0 0 8px; 
  color: var(--white);
  hyphens: none !important;
  word-break: keep-all !important;
}
.category-card p  { font-size: 13px; color: var(--muted); margin: 0; }

/* Partners */
.partners-section { padding: 100px 48px; }
.partners-grid    { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1400px; margin: 64px auto 0; }

.partner-card { 
  background: var(--card); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  padding: 36px 24px; 
  text-align: center; 
}
.partner-card h4 { 
  font-size: 15px; 
  font-weight: 700; 
  margin: 0 0 8px; 
  color: var(--white);
  hyphens: none !important;
  word-break: keep-all !important;
}
.partner-card p  { font-size: 12px; color: var(--muted); margin: 0; }

/* Stories */
.stories-section { padding: 100px 48px; background: rgba(10,13,31,0.6); }
.stories-grid    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1400px; margin: 64px auto 0; }

/* CTA section */
.cta-section { padding: 100px 48px; }
.cta-box {
  max-width: 1400px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(93,190,74,0.08), rgba(200,240,74,0.04));
  border: 1px solid rgba(93,190,74,0.2);
  border-radius: 24px;
  padding: 80px 64px;
  text-align: center;
  backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(93,190,74,0.15);
}

.cta-box h2 { 
  font-family: 'Syne', sans-serif; 
  font-size: clamp(30px, 4vw, 48px); 
  font-weight: 800; 
  color: var(--white); 
  margin: 0 0 20px; 
  line-height: 1.1;
  hyphens: none !important;
  word-break: keep-all !important;
}

.cta-box p  { font-size: 17px; color: var(--muted); max-width: 560px; margin: 0 auto 40px; line-height: 1.65; }
.cta-actions { display: flex; align-items: center; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Login / Signup split layout */
.hero-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  position: relative;
  background: linear-gradient(135deg, rgba(6,8,26,0.95), rgba(13,16,48,0.9));
}
.hero-side::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at top left, rgba(93,190,74,0.1), transparent),
              radial-gradient(ellipse at bottom right, rgba(200,240,74,0.08), transparent);
}
.hero-content { position: relative; z-index: 1; }
.hero-content h2 {
  hyphens: none !important;
  word-break: keep-all !important;
}

.form-side    { background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 60px 40px; }


/* ─────────────────────────────────────────
   16. FOOTER
───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: rgba(6,8,26,0.97);
  backdrop-filter: blur(20px);
  padding: 80px 48px 40px;
}
.footer-inner { max-width: 1400px; margin: 0 auto; }
.footer-grid  {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border);
}
.footer-brand p { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 20px 0 28px; max-width: 280px; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--muted); text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-socials a:hover { background: rgba(93,190,74,0.1); border-color: rgba(93,190,74,0.3); color: var(--green); }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin: 0 0 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 13px; }
.footer-col a  { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: 32px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom p, .footer-bottom span { font-size: 13px; color: var(--muted); margin: 0; }
.footer-bottom-right { display: flex; gap: 24px; }


/* ─────────────────────────────────────────
   17. ANIMATIONS
───────────────────────────────────────── */
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(93,190,74,0); }
  50%       { box-shadow: 0 0 0 8px rgba(93,190,74,0.06); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.2); opacity: 0.8; }
}

@keyframes float {
  0%, 100% { transform: rotateY(-12deg) rotateX(3deg) translateY(0px); }
  50%       { transform: rotateY(-12deg) rotateX(3deg) translateY(-18px); }
}

@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

.js-ready .animate-fade,
.js-ready .animate-slide,
.js-ready .animate-scale {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .animate-scale { transform: scale(0.97) translateY(16px); }
.animate-in { opacity: 1 !important; transform: none !important; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.loading {
  background: linear-gradient(90deg, transparent, rgba(93,190,74,0.1), transparent);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

.floating-mockup { animation: float 4s ease-in-out infinite; }


/* ══════════════════════════════════════════
   18. RESPONSIVE — TABLET (≤ 1024px)
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  nav { padding: 0 32px; }
  .nav-links { display: none; }

  .hero-content-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .hero-text { text-align: center; }
  .hero-cta  { justify-content: center; }
  .hero-subtitle { max-width: 100%; }

  .how-grid        { grid-template-columns: 1fr; gap: 48px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .partners-grid   { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stories-grid    { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stats-row       { grid-template-columns: repeat(2, 1fr); }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}


/* ══════════════════════════════════════════
   19. RESPONSIVE — MOBILE (≤ 768px)
   GODMODE FIXES: Perfect positioning, no overflow
══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* CRITICAL: Prevent horizontal scroll + accurate mobile sizing */
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100% !important;
    position: relative;
  }

  * {
    max-width: 100%;
  }

  /* Force proper mobile viewport rendering */
  body {
    min-width: 320px !important;
    max-width: 100vw !important;
  }

  /* ── NAVIGATION GODMODE FIX ── */
  nav {
    padding: 0 16px !important;
    height: auto !important;
    min-height: 70px;
    flex-wrap: wrap;
    position: relative;
    width: 100% !important;
    max-width: 100vw !important;
  }

  /* Show hamburger - ALWAYS WHITE */
  .hamburger { 
    display: flex !important; 
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1002;
  }

  /* Logo - Centered */
  .nav-logo { 
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 60px;
  }

  .nav-logo img { 
    height: 55px !important;
    width: auto;
    max-width: 140px;
  }

  /* Nav links - PROPER DROPDOWN */
  .nav-links {
    display: none !important;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100vw !important;
    flex-direction: column;
    background: rgba(9,17,42,0.98);
    backdrop-filter: blur(20px);
    margin: 0;
    padding: 20px 0;
    gap: 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 1000;
  }
  
  /* Show when toggled */
  #menu-toggle:checked ~ .nav-links { 
    display: flex !important; 
  }

  .nav-links li { 
    width: 100%; 
  }
  
  .nav-links a  { 
    display: block !important; 
    padding: 16px 24px !important; 
    font-size: 15px !important; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    width: 100%;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  /* Nav actions - PROPER DROPDOWN */
  .nav-actions {
    display: none !important;
    position: absolute;
    top: calc(70px + var(--nav-links-height, 0px));
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100vw !important;
    flex-direction: column;
    gap: 12px;
    padding: 20px 16px;
    background: rgba(9,17,42,0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    z-index: 999;
  }
  
  #menu-toggle:checked ~ .nav-actions { 
    display: flex !important; 
  }

  .nav-actions .btn { 
    width: 100% !important; 
    justify-content: center;
  }

  /* ── SIDEBAR (Dashboard) ── */
  .sidebar {
    left: -260px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
  }
  .sidebar.open { 
    left: 0;
  }

  .main {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  .mobile-menu-toggle { display: flex; }

  /* ── TOPBAR ── */
  .topbar { 
    padding: 0 16px;
    height: auto;
    min-height: 60px;
    width: 100%;
    max-width: 100vw;
  }
  .topbar h1 { 
    font-size: 17px;
    hyphens: none !important;
    word-break: keep-all !important;
  }

  /* ── CONTENT ── */
  .content   { 
    padding: 20px 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .container { 
    padding: 20px 16px;
    width: 100%;
    max-width: 100%;
  }

  /* ── CARDS & SECTIONS - Proper mobile constraints ── */
  .section,
  .card,
  .stat-card,
  .listing-card,
  .profile-header-card,
  .earnings-card {
    width: 100%;
    max-width: 100%;
  }

  /* ── HERO ── */
  .hero { 
    padding: 70px 16px 60px;
    min-height: auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  
  .hero-content-wrapper {
    width: 100%;
    max-width: 100%;
  }

  .hero-title { 
    font-size: 32px !important; 
    line-height: 1.1 !important;
    hyphens: none !important;
    word-break: keep-all !important;
  }
  
  .hero-subtitle { 
    font-size: 15px;
    max-width: 100%;
  }
  
  .hero-cta { 
    flex-direction: column; 
    width: 100%; 
  }
  
  .hero-cta .btn { 
    width: 100%; 
  }

  /* Mobile mockup - PROPER SIZING */
  .hero-image {
    max-width: min(280px, 90vw);
    width: 100%;
    margin: 0 auto;
    display: block;
  }

  /* ── SECTIONS ── */
  .how-section,
  .categories-section,
  .partners-section,
  .stories-section,
  .cta-section    { 
    padding: 60px 16px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .stats-section  { 
    padding: 48px 16px;
    width: 100%;
    max-width: 100vw;
  }
  .mission-band   { 
    padding: 48px 16px;
    width: 100%;
    max-width: 100vw;
  }

  .section-heading { 
    font-size: 28px !important;
    hyphens: none !important;
    word-break: keep-all !important;
  }
  
  .mission-quote   { font-size: 15px; }

  /* ── STATS ── */
  .stats-row     { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
    width: 100%;
  }
  .stat-cell     { 
    border-right: none; 
    border-bottom: 1px solid var(--border); 
    padding: 20px;
    width: 100%;
  }
  .stat-cell:last-child { border-bottom: none; }

  /* ── GRIDS ── */
  .categories-grid,
  .partners-grid,
  .stories-grid,
  #listings-grid  { 
    grid-template-columns: 1fr !important; 
    gap: 16px;
    width: 100%;
  }

  /* ── FORMS ── */
  .form-input,
  .form-select,
  .form-textarea { 
    font-size: 16px;
    width: 100%;
  }

  /* ── CTA ── */
  .cta-box    { 
    padding: 40px 20px;
    width: 100%;
    max-width: 100%;
  }
  .cta-box h2 { 
    font-size: 26px !important;
    hyphens: none !important;
    word-break: keep-all !important;
  }
  .cta-box p  { font-size: 15px; }
  .cta-actions { 
    flex-direction: column; 
    width: 100%; 
  }
  .cta-actions .btn { 
    width: 100%; 
  }

  /* ── FOOTER ── */
  .footer-grid   { 
    grid-template-columns: 1fr; 
    gap: 32px;
    width: 100%;
  }
  footer         { 
    padding: 60px 16px 32px;
    width: 100%;
    max-width: 100vw;
  }
  .footer-bottom { 
    flex-direction: column; 
    text-align: center; 
  }

  /* ── BUTTONS - Proper mobile sizing ── */
  .btn, 
  .filter-btn, 
  .mode-filter-btn, 
  .icon-btn, 
  .toggle-switch { 
    min-height: 44px; 
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }

  .btn-lg {
    padding: 14px 24px !important;
    font-size: 15px !important;
  }
  
  /* Hide second mockup */
  .how-grid > div:last-child { display: none; }

  /* ── PROFILE PAGE SPECIFIC ── */
  .profile-actions {
    width: 100%;
    max-width: 100%;
  }

  .profile-info-grid,
  .earnings-grid {
    width: 100%;
    max-width: 100%;
  }
}


/* ══════════════════════════════════════════
   20. RESPONSIVE — SMALL MOBILE (≤ 480px)
══════════════════════════════════════════ */
@media (max-width: 480px) {
  .nav-logo img { 
    height: 50px !important; 
  }

  .hero      { padding: 60px 16px 50px; }
  .hero-title { 
    font-size: 30px !important;
    hyphens: none !important;
    word-break: keep-all !important;
  }

  .section-heading { 
    font-size: 26px !important;
    hyphens: none !important;
    word-break: keep-all !important;
  }

  .hero-image {
    max-width: 240px;
  }

  .content,
  .container,
  .how-section,
  .categories-section,
  .partners-section,
  .stories-section,
  .cta-section {
    padding-left: 16px;
    padding-right: 16px;
  }
}


/* ══════════════════════════════════════════
   21. DESKTOP OVERRIDE - FORCE HAMBURGER HIDDEN
══════════════════════════════════════════ */
@media (min-width: 769px) {
  .hamburger,
  .mobile-menu-toggle {
    display: none !important;
  }
  
  .nav-links {
    display: flex !important;
    position: static !important;
    width: auto !important;
    background: transparent !important;
    flex-direction: row !important;
    border: none !important;
    box-shadow: none !important;
  }

  .nav-actions {
    display: flex !important;
    position: static !important;
    width: auto !important;
    background: transparent !important;
    flex-direction: row !important;
    border: none !important;
    padding: 0 !important;
  }
}


/* ═══════════════════════════════════════════
   22. DASHBOARD PAGE UTILITIES
═══════════════════════════════════════════ */
.page-wrapper { 
  display: flex; 
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

/* Profile */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(93,190,74,0.2), rgba(200,240,74,0.1));
  border: 3px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; font-weight: 800;
  color: var(--lime);
  flex-shrink: 0;
}

/* Profile action buttons - proper spacing */
.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
  width: 100%;
}

.profile-actions .btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
}

/* Profile info grid - proper spacing */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.profile-info-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.profile-info-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.profile-info-value {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--lime);
}

.profile-info-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* Referral earnings cards - proper spacing */
.earnings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.earnings-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.earnings-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.earnings-amount {
  font-family: 'Syne', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: var(--lime);
  margin-bottom: 8px;
}

.earnings-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .profile-header-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 24px;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
    font-size: 40px;
  }

  .profile-actions {
    gap: 12px;
    margin-bottom: 24px;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }

  .earnings-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }
  /* FIX FOR CHALLENGE 1: List Your Business & Hero */
  .section {
    padding: 40px 20px !important; /* Reduces massive desktop margins */
  }

  .hero-title {
    font-size: 32px !important; /* Prevents text from being wider than the phone */
  }

  /* FIX FOR CHALLENGE 2: Dashboard & Earnings */
  .earnings-grid, 
  .stats-grid, 
  .grid-3-col,
  .hero-text > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important; /* Stacks everything vertically */
    gap: 16px !important;
  }

  .profile-header-card {
    flex-direction: column !important;
    text-align: center;
  }

  /* Makes buttons easy to tap with a thumb */
  .profile-actions, .nav-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn {
    width: 100% !important;
    text-align: center;
  }
}


/* ═══════════════════════════════════════════
   23. TEXT NO-BREAK ENFORCEMENT (ALL PAGES)
═══════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6,
.hero-title,
.section-heading,
.cta-box h2,
.hero-content h2,
.section-title,
.topbar h1,
.step-card h3,
.category-card h3,
.partner-card h4,
.listing-title {
  hyphens: none !important;
  word-break: keep-all !important;
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  -ms-hyphens: none !important;
}
