/* ================================================================
   JEBI CAPITAL — Design System
   Theme: x.com dark  (#000 bg / #1d9bf0 accent)
   Fully RTL-aware for Arabic.
================================================================= */

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

:root {
  /* palette */
  --bg:          #000000;
  --bg-elev:    #0a0a0a;
  --bg-card:    #141414;
  --bg-hover:   #1a1a1a;
  --bg-input:   #0d0d0d;
  --border:     #2d2d2d;
  --border-2:   #3a3a3a;
  --accent:     #1d9bf0;
  --accent-h:   #1a8cd8;
  --accent-glow: rgba(29, 155, 240, .15);
  --text:       #e7e9ea;
  --text-2:     #71767b;
  --text-3:     #536471;
  --green:      #00ba7c;
  --red:        #f4212e;
  --yellow:     #ffd400;
  --orange:     #ff7a00;

  /* layout */
  --nav-h:       64px;
  --max-w:       1280px;
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   20px;

  /* type */
  --font: 'Helvetica Neue', 'Segoe UI', system-ui, -apple-system, 'Noto Sans SC', 'Noto Sans Arabic', sans-serif;
  --mono: 'SF Mono', 'Cascadia Code', 'Fira Code', monospace;

  /* transitions */
  --t-fast: .15s ease;
  --t:      .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }

img { max-width: 100%; display: block; }

/* ---------- RTL ---------- */
body.rtl { direction: rtl; }
body.rtl .ltr-fix { direction: ltr; }

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* ================================================================
   NAVBAR — floating, hover dropdowns
================================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--t);
}
.navbar.scrolled { background: rgba(0,0,0,.95); }

.nav-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Logo */
.nav-logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-logo .logo-accent { color: var(--accent); }
.nav-logo .logo-dot {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-inline-start: 4px;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Nav items */
.nav-items {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-item {
  position: relative;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 999px;
  transition: background var(--t-fast), color var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-hover); color: var(--accent); }
.nav-link .chevron {
  width: 12px; height: 12px;
  opacity: .5;
  transition: transform var(--t-fast);
}
.nav-item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  min-width: 220px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--t-fast), transform var(--t-fast), visibility var(--t-fast);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  z-index: 100;
}
.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: background var(--t-fast);
}
.nav-dropdown a:hover { background: var(--bg-hover); color: var(--accent); }

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-search {
  position: relative;
  width: 220px;
}
.nav-search input {
  width: 100%;
  height: 38px;
  padding: 0 36px 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.nav-search input:focus { border-color: var(--accent); background: var(--bg-card); }
.nav-search input::placeholder { color: var(--text-3); }
.nav-search svg {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-3);
}
body.rtl .nav-search input { padding: 0 14px 0 36px; }

/* Language switcher */
.lang-switch {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--t-fast);
}
.lang-btn:hover { border-color: var(--accent); }
.lang-btn .globe {
  width: 16px; height: 16px;
  color: var(--text-2);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-end: 0;
  min-width: 180px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--t-fast);
  box-shadow: 0 12px 40px rgba(0,0,0,.6);
  z-index: 100;
}
.lang-switch:hover .lang-menu,
.lang-switch.open .lang-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  text-align: start;
}
.lang-menu button:hover { background: var(--bg-hover); }
.lang-menu button.active { color: var(--accent); }
.lang-menu button .lang-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  margin-inline-start: auto;
}
.lang-menu button.active .lang-code { color: var(--accent); }

/* Nav buttons */
.nav-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
  white-space: nowrap;
}
.nav-btn-ghost {
  background: transparent;
  color: var(--text);
}
.nav-btn-ghost:hover { background: var(--bg-hover); }
.nav-btn-primary {
  background: var(--accent);
  color: #fff;
}
.nav-btn-primary:hover { background: var(--accent-h); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t-fast);
}

/* ================================================================
   LANGUAGE MODAL
================================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 520px;
  width: 90%;
  text-align: center;
  transform: scale(.95) translateY(20px);
  transition: transform var(--t);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }

.modal-logo {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 8px;
}
.modal-logo .logo-accent { color: var(--accent); }

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.modal-subtitle {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.lang-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: start;
  font-family: var(--font);
  color: var(--text);
}
.lang-option:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-2px);
}
.lang-option.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.lang-option .lang-flag {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.lang-option .lang-flag.en { background: linear-gradient(135deg, #012169, #c8102e); }
.lang-option .lang-flag.zh { background: linear-gradient(135deg, #de2910, #ffde00); color: #de2910; }
.lang-option .lang-flag.ar { background: linear-gradient(135deg, #006c35, #fff); }

.lang-option .lang-info { flex: 1; }
.lang-option .lang-name { font-size: 16px; font-weight: 700; }
.lang-option .lang-native { font-size: 13px; color: var(--text-2); margin-top: 2px; }

.modal-continue {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--t-fast);
}
.modal-continue:hover { background: var(--accent-h); }
.modal-continue:disabled { opacity: .4; cursor: not-allowed; }

.modal-note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 16px;
}

/* ================================================================
   HERO
================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--nav-h) 0 60px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  top: -100px; inset-inline-end: -100px;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,186,124,.08), transparent 70%);
  bottom: -100px; inset-inline-start: -100px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.015) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--accent-glow);
  border: 1px solid rgba(29,155,240,.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
}
.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 24px;
}
.hero-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--t-fast);
  border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); box-shadow: 0 8px 24px var(--accent-glow); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-green {
  background: var(--green);
  color: #000;
}
.btn-green:hover { opacity: .9; }

/* ================================================================
   STATS BAR
================================================================ */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-elev);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-item .stat-label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}

/* ================================================================
   SECTION
================================================================ */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 16px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================================
   CATEGORY GRID
================================================================ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all var(--t);
  cursor: pointer;
}
.cat-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  transform: translateY(-4px);
}
.cat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.cat-name {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}
.cat-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

/* ================================================================
   PROJECT CARDS
================================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--t);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
}
.project-img {
  width: 100%;
  height: 180px;
  background: var(--bg-elev);
  position: relative;
  overflow: hidden;
}
.project-img-gradient {
  position: absolute;
  inset: 0;
  opacity: .9;
}
.project-img .cat-badge {
  position: absolute;
  top: 12px; inset-inline-start: 12px;
  padding: 5px 12px;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.project-img .verified-badge {
  position: absolute;
  top: 12px; inset-inline-end: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(0,186,124,.85);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
}
.project-img .verified-badge.pending {
  background: rgba(255,210,0,.85);
  color: #000;
}
.project-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.project-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.project-progress {
  margin-bottom: 12px;
}
.progress-bar {
  height: 6px;
  background: var(--bg-input);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: 999px;
  transition: width .6s ease;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 6px;
}
.project-meta .raised { font-weight: 700; color: var(--text); }
.project-meta .pct { color: var(--accent); font-weight: 600; }
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.project-footer .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-2);
}
.project-footer .meta-item svg { width: 14px; height: 14px; }
.project-footer .carbon {
  color: var(--green);
  font-weight: 600;
}

/* ================================================================
   DISCOVER PAGE — Filter Sidebar
================================================================ */
.discover-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding-top: var(--nav-h);
  min-height: 100vh;
}
.filter-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}
.filter-group {
  margin-bottom: 28px;
}
.filter-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-2);
  margin-bottom: 12px;
}
.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: color var(--t-fast);
}
.filter-option:hover { color: var(--accent); }
.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px; height: 16px;
}
.filter-option .count {
  margin-inline-start: auto;
  font-size: 12px;
  color: var(--text-3);
}

.discover-main {
  padding-bottom: 60px;
}
.discover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-top: 32px;
}
.discover-header h1 {
  font-size: 28px;
  font-weight: 800;
}
.discover-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-2);
}
.discover-sort select {
  height: 36px;
  padding: 0 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
}
.discover-sort select:focus { border-color: var(--accent); }
.discover-results-count {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 20px;
}

/* ================================================================
   PROJECT DETAIL
================================================================ */
.detail-page {
  padding-top: calc(var(--nav-h) + 32px);
  padding-bottom: 60px;
}
.detail-header {
  margin-bottom: 24px;
}
.detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.detail-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 8px;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: var(--text-2);
}
.detail-meta span { display: flex; align-items: center; gap: 6px; }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
}
.detail-main {}
.detail-hero-img {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.detail-hero-img .gradient-overlay {
  position: absolute;
  inset: 0;
}
.detail-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
}
.detail-stat {
  text-align: center;
  border-inline-end: 1px solid var(--border);
}
.detail-stat:last-child { border: none; }
.detail-stat .num {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.detail-stat .num.accent { color: var(--accent); }
.detail-stat .num.green { color: var(--green); }
.detail-stat .label {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 4px;
}

.detail-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.detail-tab {
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--font);
}
.detail-tab:hover { color: var(--text); }
.detail-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.detail-tab-content { display: none; }
.detail-tab-content.active { display: block; }

.detail-story {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}
.detail-story p { margin-bottom: 16px; }
.detail-story h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; }

.detail-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  align-self: start;
}
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.carbon-card {
  background: linear-gradient(135deg, rgba(0,186,124,.08), rgba(29,155,240,.05));
  border-color: rgba(0,186,124,.3);
}
.carbon-card .carbon-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--green);
}
.carbon-card .carbon-label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}
.carbon-card .carbon-equiv {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.reward-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 14px;
  transition: border-color var(--t-fast);
}
.reward-card:hover { border-color: var(--accent); }
.reward-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
}
.reward-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}
.reward-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 12px;
}
.reward-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
}
.reward-select {
  width: 100%;
  height: 40px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--t-fast);
}
.reward-select:hover { background: var(--accent-h); }

/* ================================================================
   START PROJECT — Form
================================================================ */
.start-page {
  padding-top: calc(var(--nav-h) + 40px);
  padding-bottom: 80px;
}
.start-header {
  text-align: center;
  margin-bottom: 40px;
}
.start-header h1 { font-size: 32px; font-weight: 800; }
.start-header p { font-size: 16px; color: var(--text-2); margin-top: 8px; }

.start-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}
.start-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-3);
}
.start-step .step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid var(--border);
  transition: all var(--t);
}
.start-step.active { color: var(--accent); }
.start-step.active .step-num { border-color: var(--accent); background: var(--accent); color: #fff; }
.start-step.done .step-num { background: var(--green); border-color: var(--green); color: #000; }
.start-step-line {
  width: 48px; height: 2px;
  background: var(--border);
  margin: 0 8px;
}

.start-form {
  max-width: 720px;
  margin: 0 auto;
}
.form-step { display: none; }
.form-step.active { display: block; }
.form-group {
  margin-bottom: 24px;
}
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-label .req { color: var(--red); }
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color var(--t-fast);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus { border-color: var(--accent); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 6px; display: none; }
.form-error.show { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
}

.review-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}
.review-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--accent); }
.review-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.review-row:last-child { border: none; }
.review-row .label { color: var(--text-2); }
.review-row .val { font-weight: 600; text-align: end; }

/* ================================================================
   HOW IT WORKS
================================================================ */
.how-section { padding: 60px 0; }
.how-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.how-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.how-block h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.how-block .sub { font-size: 14px; color: var(--text-2); margin-bottom: 28px; }
.how-steps { display: flex; flex-direction: column; gap: 20px; }
.how-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.how-step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.how-step h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.how-step p { font-size: 14px; color: var(--text-2); line-height: 1.5; }

.fees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.fee-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.fee-card .fee-icon {
  font-size: 28px;
  margin-bottom: 12px;
}
.fee-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.fee-card p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* ================================================================
   FINANCIAL PAGE
================================================================ */
.fin-products {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.fin-product {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 36px;
  align-items: start;
}
.fin-product-info h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.fin-product-info .desc { font-size: 15px; color: var(--text-2); line-height: 1.6; margin-bottom: 20px; }
.fin-how { font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--accent); }
.fin-how-d { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 16px; }
.fin-elig { font-size: 13px; color: var(--text-3); padding: 12px 16px; background: var(--bg-input); border-radius: var(--radius-sm); }

.fin-product-aside {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.fin-product-aside .price-label { font-size: 13px; color: var(--text-2); }
.fin-product-aside .price-val { font-size: 28px; font-weight: 800; color: var(--green); margin: 4px 0 20px; }
.fin-product-aside .btn { width: 100%; height: 44px; font-size: 14px; }

.fin-disclaimer {
  margin-top: 32px;
  padding: 20px;
  background: rgba(244,33,46,.05);
  border: 1px solid rgba(244,33,46,.2);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ================================================================
   ABOUT PAGE
================================================================ */
.about-hero { text-align: center; padding: 40px 0 60px; }
.about-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 12px; }
.about-hero p { font-size: 18px; color: var(--text-2); }

.mission-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.mission-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.mission-card p { font-size: 15px; color: var(--text-2); line-height: 1.7; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.team-member {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.team-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}
.team-member h4 { font-size: 15px; font-weight: 700; }
.team-role { font-size: 13px; color: var(--accent); margin-top: 2px; }
.team-bio { font-size: 12px; color: var(--text-2); margin-top: 8px; line-height: 1.4; }

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  transition: all var(--t-fast);
}
.partner-card:hover { border-color: var(--accent); color: var(--accent); }

.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.method-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.method-step .step-icon { font-size: 24px; margin-bottom: 10px; }
.method-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.method-step p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.impact-card {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elev));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.impact-card .num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.impact-card .label { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* ================================================================
   FOOTER
================================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo { margin-bottom: 16px; font-size: 24px; }
.footer-brand p { font-size: 13px; color: var(--text-2); line-height: 1.6; max-width: 320px; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-2);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text);
  padding: 5px 0;
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--accent); }

.footer-newsletter {
  margin-top: 20px;
}
.footer-newsletter form {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.footer-newsletter input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 13px;
  font-family: var(--font);
  outline: none;
}
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter button {
  height: 40px;
  padding: 0 20px;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: background var(--t-fast);
}
.footer-newsletter button:hover { background: var(--accent-h); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .disclaimer-text { max-width: 600px; line-height: 1.5; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--text-3); }
.footer-legal a:hover { color: var(--accent); }

/* ================================================================
   UTILITY
================================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-32 { margin-bottom: 32px; }

/* ================================================================
   RESPONSIVE
================================================================ */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .methodology-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .fees-grid { grid-template-columns: repeat(2, 1fr); }
  .fin-product { grid-template-columns: 1fr; }
  .how-split { grid-template-columns: 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .discover-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-items, .nav-search { display: none; }
  .nav-toggle { display: flex; }
  .nav-items.mobile-open {
    display: flex;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 0;
    height: auto;
  }
  .nav-items.mobile-open .nav-item { width: 100%; }
  .nav-items.mobile-open .nav-dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg);
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-title { font-size: 36px; }
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .detail-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .detail-stat:nth-child(2) { border: none; }
  .detail-stat:nth-child(1), .detail-stat:nth-child(2) { border-bottom: 1px solid var(--border); padding-bottom: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .mission-block { grid-template-columns: 1fr; }
  .modal-box { padding: 32px 24px; }
  .modal-logo { font-size: 28px; }
}
