/* =============================================
   GRANTSPARK AI — Master Stylesheet v3.0
   Import order: variables → reset → layout →
   typography → components → sections → pages →
   utilities → animations → responsive
   ============================================= */

@import './variables.css';

/* =============================================
   1. RESET & BASE
   ============================================= */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--emerald-light); outline-offset: 3px; border-radius: 3px; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }
input, textarea, select { font-family: var(--font-body); }
:focus-visible { outline: 2px solid var(--emerald-light); outline-offset: 2px; }

/* Skip-nav for keyboard accessibility */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--emerald);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  z-index: var(--z-toast);
  transition: top var(--trans-fast);
}
.skip-nav:focus { top: 0; }

/* =============================================
   2. LAYOUT
   ============================================= */
.container { max-width: var(--content-max); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: 5rem 0; }
.section--alt {
  background: rgba(15, 23, 42, 0.5);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* =============================================
   3. TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--white); line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }
p  { color: var(--text-muted); line-height: 1.75; }
strong { color: var(--white); font-weight: 600; }
em { font-style: normal; }

.gradient-text {
  background: linear-gradient(135deg, var(--emerald-light), var(--amber-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.mono { font-family: var(--font-mono); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.75rem; }
.text-center { text-align: center; }

/* =============================================
   4. SECTION HEADERS
   ============================================= */
.section-header { margin-bottom: var(--space-12); }
.section-header--center { text-align: center; }
.section-header--center .section-sub { margin: var(--space-3) auto 0; }

.section-tag {
  display: inline-block;
  background: rgba(5, 150, 105, 0.12);
  color: var(--emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-full);
  padding: 0.3rem 0.875rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin-top: var(--space-3);
  line-height: 1.75;
}

/* =============================================
   5. BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.375rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-base);
  border: none;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--emerald-light); outline-offset: 3px; }
.btn--primary {
  background: linear-gradient(135deg, var(--emerald), #047857);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}
.btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4); }
.btn--outline {
  background: transparent;
  color: var(--emerald-light);
  border: 1.5px solid var(--emerald);
}
.btn--outline:hover:not(:disabled) { background: rgba(5, 150, 105, 0.1); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}
.btn--ghost:hover:not(:disabled) { color: var(--white); border-color: var(--emerald); }
.btn--amber {
  background: linear-gradient(135deg, var(--amber), #d97706);
  color: var(--bg-base);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
}
.btn--amber:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
.btn--danger { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.2); }
.btn--danger:hover:not(:disabled) { background: rgba(239, 68, 68, 0.22); }
.btn--lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn--sm { padding: 0.35rem 0.8rem; font-size: 0.78rem; }
.btn--full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* =============================================
   6. FORM ELEMENTS
   ============================================= */
.form-group { margin-bottom: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.7rem 0.875rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color var(--trans-fast), box-shadow var(--trans-fast);
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #475569; }
.form-input.is-invalid,
.form-textarea.is-invalid { border-color: #f87171; box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15); }
.form-textarea { resize: vertical; line-height: 1.6; min-height: 100px; }
.form-select {
  cursor: pointer;
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
}
.form-select option { background: #1e293b; color: #e2e8f0; }
.form-hint  { font-size: 0.72rem; color: var(--text-dim); margin-top: var(--space-1); }
.form-error { font-size: 0.72rem; color: #f87171; margin-top: var(--space-1); display: none; }
.form-error.is-visible { display: block; }
.form-success-msg {
  color: var(--emerald-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: var(--space-4);
  display: none;
}
.form-success-msg.is-visible { display: block; }

/* =============================================
   7. CARDS
   ============================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  transition: border-color var(--trans-base), transform var(--trans-base), box-shadow var(--trans-base);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow-green); }
.card--flat { background: var(--bg-card-dark); }
.card--featured { border-color: rgba(5, 150, 105, 0.35); background: var(--bg-card-featured); }
.card--padded { padding: 1.75rem; }
.card--sm { padding: var(--space-5); }
.card--no-hover:hover { transform: none; box-shadow: none; border-color: var(--border-soft); }

/* =============================================
   8. TAGS / BADGES
   ============================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.4;
}
.tag--green  { background: rgba(5, 150, 105, 0.15);  color: var(--emerald-light); }
.tag--amber  { background: rgba(245, 158, 11, 0.15);  color: var(--amber-light); }
.tag--blue   { background: rgba(59, 130, 246, 0.15);  color: #93c5fd; }
.tag--red    { background: rgba(239, 68, 68, 0.15);   color: #fca5a5; }
.tag--purple { background: rgba(139, 92, 246, 0.15);  color: #c4b5fd; }
.tag--cs {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--amber-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
}

/* =============================================
   9. NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--trans-base), box-shadow var(--trans-base);
}
#navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: var(--space-4);
}
.logo { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }
.logo__icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.logo__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
}
.logo__text span { color: var(--emerald-light); }
.nav-links { display: flex; align-items: center; gap: 0.125rem; }
.nav-link {
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--trans-fast), background var(--trans-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--white); background: rgba(255, 255, 255, 0.05); }
.nav-link.is-active { color: var(--emerald-light); }
.nav-cta { display: flex; gap: var(--space-2); flex-shrink: 0; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform var(--trans-base), opacity var(--trans-base);
}

/* =============================================
   10. HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -5%, rgba(5, 150, 105, 0.22) 0%, transparent 60%),
    var(--bg-base);
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  will-change: transform;
}
.hero__orb--1 { width: 500px; height: 500px; background: rgba(5, 150, 105, 0.12); top: -100px; right: -100px; }
.hero__orb--2 { width: 350px; height: 350px; background: rgba(245, 158, 11, 0.07); bottom: 50px; left: -80px; }
.hero__inner { position: relative; z-index: var(--z-base); padding: 4rem 0; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(5, 150, 105, 0.1);
  border: 1px solid rgba(5, 150, 105, 0.28);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  color: var(--emerald-light);
  font-weight: 500;
  margin-bottom: 1.75rem;
}
.hero__badge-dot {
  width: 7px; height: 7px;
  background: var(--emerald-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.hero__sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: var(--space-5) 0 var(--space-8);
  line-height: 1.75;
}
.hero__actions { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-8); }
.hero__trust { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.hero__trust-item { font-size: 0.825rem; color: var(--text-dim); font-weight: 500; }

/* =============================================
   11. WHO WE SERVE
   ============================================= */
.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.875rem;
  margin-top: var(--space-8);
}
.serve-chip {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--space-4) 0.875rem;
  text-align: center;
  transition: all var(--trans-base);
  cursor: default;
}
.serve-chip:hover { border-color: var(--emerald); background: var(--emerald-faint); transform: translateY(-2px); }
.serve-chip__icon  { font-size: 1.6rem; margin-bottom: 0.4rem; line-height: 1; }
.serve-chip__label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; line-height: 1.3; }

/* =============================================
   12. SERVICES
   ============================================= */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.service-card { padding: 1.75rem; display: flex; flex-direction: column; gap: var(--space-3); }
.service-card__icon { font-size: 2rem; line-height: 1; }
.service-card__name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--white); }
.service-card__desc { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.service-card__list { display: flex; flex-direction: column; gap: 0.4rem; }
.service-card__list li { font-size: 0.825rem; color: #cbd5e1; display: flex; align-items: flex-start; gap: 0.4rem; }
.service-card__list li::before { content: '→'; color: var(--emerald-light); flex-shrink: 0; }

.honest-box {
  margin-top: var(--space-10);
  background: rgba(5, 150, 105, 0.07);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-6);
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}
.honest-box__icon { font-size: 1.2rem; flex-shrink: 0; padding-top: 2px; }
.honest-box__text { font-size: 0.875rem; color: #a7f3d0; line-height: 1.7; }

/* =============================================
   13. TEMPLATES
   ============================================= */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: var(--space-5); }
.template-card { overflow: hidden; }
.template-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.template-card__thumb { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.template-card__body  { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.template-card__tag   { font-size: 0.7rem; font-weight: 700; color: var(--emerald-light); text-transform: uppercase; letter-spacing: 0.07em; }
.template-card__name  { font-weight: 700; color: var(--white); font-size: 0.95rem; line-height: 1.35; }
.template-card__desc  { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.template-card__footer { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-2); }
.template-card__format { font-size: 0.75rem; color: var(--text-dim); }

/* =============================================
   14. FREE DOWNLOAD
   ============================================= */
.download-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-12);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.download-card h2 { margin-bottom: var(--space-4); }
.download-card > div > p { margin-bottom: var(--space-5); }
.download-features { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: 1.75rem; }
.download-features li { font-size: 0.875rem; color: #cbd5e1; }
.download-note { font-size: 0.775rem; color: var(--text-dim); margin-top: var(--space-3); }

.checklist-preview {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-6);
  font-size: 0.8rem;
}
.checklist-preview__logo  { font-weight: 700; color: var(--emerald-light); margin-bottom: 0.25rem; font-size: 0.9rem; }
.checklist-preview__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: var(--space-5); }
.checklist-section { margin-bottom: var(--space-4); }
.checklist-section__title { font-weight: 700; color: var(--white); font-size: 0.8rem; margin-bottom: var(--space-2); }
.checklist-item { display: flex; align-items: center; gap: var(--space-2); color: #cbd5e1; padding: 0.25rem 0; }
.check--yes     { color: var(--emerald-light); font-weight: 700; }
.check--partial { color: var(--amber-light);   font-weight: 700; }
.check--no      { color: #f87171;               font-weight: 700; }
.checklist-more { color: var(--text-dim); font-size: 0.75rem; text-align: center; padding-top: var(--space-2); }

/* =============================================
   15. PORTFOLIO
   ============================================= */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--space-5); }
.portfolio-card { overflow: hidden; }
.portfolio-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.portfolio-card__thumb { height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; position: relative; }
.portfolio-card__label {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.portfolio-card__body { padding: var(--space-5); }
.portfolio-card__name { font-weight: 700; color: var(--white); font-size: 0.95rem; margin-bottom: 0.4rem; line-height: 1.35; }
.portfolio-card__desc { font-size: 0.825rem; color: var(--text-muted); line-height: 1.6; margin-bottom: var(--space-3); }
.portfolio-card__tags { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.ptag {
  background: rgba(5, 150, 105, 0.12);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--emerald-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-xs);
}

/* =============================================
   16. AI PREVIEW / COMING SOON
   ============================================= */
.coming-soon-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.05));
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem var(--space-5);
  font-size: 0.875rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-8);
  letter-spacing: 0.02em;
}
.preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-5); margin-bottom: var(--space-10); }
.preview-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.preview-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.02) 10px, rgba(0, 0, 0, 0.02) 11px);
  pointer-events: none;
}
.preview-card__icon  { font-size: 2rem; margin-bottom: 0.75rem; line-height: 1; }
.preview-card__title { font-weight: 700; color: rgba(255, 255, 255, 0.55); margin-bottom: var(--space-2); font-size: 0.95rem; }
.preview-card__desc  { font-size: 0.8rem; color: #475569; line-height: 1.55; margin-bottom: var(--space-4); }

/* =============================================
   17. DASHBOARD LAYOUT
   ============================================= */
.dashboard-layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 640px;
}
.sidebar {
  background: rgba(10, 16, 30, 0.96);
  border-right: 1px solid var(--border);
  padding: var(--space-5) 0;
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: rgba(5, 150, 105, 0.3) transparent;
}
.sidebar__section { margin-bottom: var(--space-1); }
.sidebar__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #475569;
  padding: var(--space-3) var(--space-5) var(--space-1);
}
.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  margin: 0 var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--trans-fast), color var(--trans-fast);
  text-decoration: none;
  border: none;
  background: transparent;
  width: calc(100% - 1rem);
  text-align: left;
}
.sidebar__link:hover, .sidebar__link.is-active {
  background: rgba(5, 150, 105, 0.1);
  color: var(--emerald-light);
}
.sidebar__link:focus-visible {
  outline: 2px solid var(--emerald-light);
  outline-offset: -2px;
}
.sidebar__link .icon { width: 18px; text-align: center; flex-shrink: 0; font-size: 1rem; }
.sidebar__tip {
  margin: auto var(--space-2) var(--space-2);
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.sidebar__tip strong { color: var(--emerald-light); }
.sidebar__tip a { color: var(--emerald-light); text-decoration: underline; }

.dash-main { padding: var(--space-8); overflow-y: auto; }
.dash-header { margin-bottom: 1.75rem; }
.dash-header__title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.dash-header__sub   { color: var(--text-muted); font-size: 0.875rem; line-height: 1.55; }

/* =============================================
   18. GRANT FINDER MODULE
   ============================================= */
.finder-layout { display: grid; grid-template-columns: 270px 1fr; gap: var(--space-6); }
.finder-search { display: flex; gap: var(--space-3); margin-bottom: var(--space-6); flex-wrap: wrap; }
.finder-search .form-input { flex: 1; min-width: 200px; }

.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  height: fit-content;
  max-height: calc(100vh - var(--nav-h) - 2rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(5, 150, 105, 0.3) transparent;
}
.filter-panel__title { font-weight: 700; color: var(--white); margin-bottom: var(--space-5); font-size: 0.875rem; }
.filter-group { margin-bottom: var(--space-5); }
.filter-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: var(--space-2); display: block; }
.filter-actions { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.filter-check-item { display: flex; align-items: center; gap: var(--space-2); font-size: 0.8rem; color: var(--text-muted); cursor: pointer; }
.filter-check-item input[type="checkbox"] { accent-color: var(--emerald); width: 14px; height: 14px; cursor: pointer; }
.filter-check-item:hover { color: var(--white); }

.finder-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.finder-count  { font-size: 0.85rem; color: var(--text-muted); }
.finder-notice { font-size: 0.72rem; color: var(--text-dim); }

.grants-list { display: flex; flex-direction: column; gap: var(--space-4); }
.grant-card  { padding: var(--space-6); }
.grant-card:hover { border-color: rgba(5, 150, 105, 0.4); transform: translateY(-2px); }
.grant-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin-bottom: 0.75rem; }
.grant-card__title-block {}
.grant-card__title  { font-weight: 700; color: var(--white); font-size: 1rem; line-height: 1.3; }
.grant-card__org    { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.2rem; }
.grant-card__amount { font-family: var(--font-mono); font-size: 1.05rem; color: var(--emerald-light); font-weight: 700; white-space: nowrap; }
.grant-card__desc   { color: #94a3b8; font-size: 0.85rem; line-height: 1.65; margin-bottom: var(--space-4); }
.grant-card__footer { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: space-between; }
.grant-card__tags   { display: flex; gap: 0.375rem; flex-wrap: wrap; }
.grant-card__actions { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }

.match-bar         { display: flex; align-items: center; gap: var(--space-2); font-size: 0.72rem; }
.match-bar__label  { color: var(--text-muted); }
.match-bar__pct    { font-weight: 700; color: var(--emerald-light); font-family: var(--font-mono); min-width: 2.5ch; }
.match-bar__track  { width: 72px; height: 6px; background: rgba(15, 23, 42, 0.8); border-radius: 3px; overflow: hidden; }
.match-bar__fill   { height: 100%; background: linear-gradient(90deg, var(--emerald), var(--emerald-light)); border-radius: 3px; transition: width var(--trans-slow); }

.no-results { text-align: center; padding: 3rem var(--space-4); }
.no-results__icon { font-size: 3rem; margin-bottom: var(--space-4); line-height: 1; }
.no-results__text { font-size: 0.9rem; color: var(--text-muted); }

/* =============================================
   19. PROPOSAL GENERATOR MODULE
   ============================================= */
.tabs {
  display: flex;
  gap: 0.2rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
  margin-bottom: var(--space-6);
  border: 1px solid var(--border-soft);
}
.tab {
  padding: 0.5rem 1.1rem;
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--trans-fast);
  border: none;
  background: transparent;
}
.tab.is-active {
  background: rgba(5, 150, 105, 0.2);
  color: var(--emerald-light);
  border: 1px solid rgba(5, 150, 105, 0.3);
}
.tab:focus-visible { outline: 2px solid var(--emerald-light); outline-offset: -2px; }

.proposal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.proposal-form { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.75rem; }
.proposal-form__title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: var(--space-5); }

.proposal-preview {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(5, 150, 105, 0.3) transparent;
}
.proposal-preview__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-4);
  color: var(--text-muted);
  min-height: 300px;
}
.proposal-preview__empty-icon { font-size: 3rem; line-height: 1; }
.proposal-preview__header { margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--border-soft); }
.proposal-preview__doc-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--white); margin-bottom: 0.25rem; }
.proposal-preview__meta      { color: var(--text-muted); font-size: 0.78rem; }
.proposal-section { margin-bottom: var(--space-5); }
.proposal-section__heading { font-weight: 700; color: var(--emerald-light); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: var(--space-2); }
.proposal-section__content { color: #cbd5e1; font-size: 0.875rem; line-height: 1.85; }
.proposal-preview__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-5); padding-top: var(--space-5); border-top: 1px solid var(--border-soft); }

/* Template cards */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.tpl-card { padding: var(--space-6); cursor: pointer; }
.tpl-card:hover { border-color: rgba(5, 150, 105, 0.4); transform: translateY(-2px); }
.tpl-card__icon { font-size: 2rem; margin-bottom: 0.75rem; line-height: 1; }
.tpl-card__name { font-weight: 700; color: var(--white); font-size: 0.95rem; margin-bottom: var(--space-2); }
.tpl-card__desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 0.875rem; }
.tpl-card__tags { display: flex; gap: 0.375rem; flex-wrap: wrap; }

/* History table */
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.75rem var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.history-table td { padding: 0.875rem var(--space-4); border-bottom: 1px solid rgba(51, 65, 85, 0.3); font-size: 0.85rem; color: #cbd5e1; }
.history-table tr:hover td { background: rgba(30, 41, 59, 0.3); }

/* Spinner */
.spinner-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.875rem; padding: 3rem; min-height: 200px; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border-soft); border-top-color: var(--emerald); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner-text { font-size: 0.875rem; color: var(--text-muted); text-align: center; }

/* =============================================
   20. BUDGET BUILDER MODULE
   ============================================= */
.budget-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border-soft);
}
.budget-toolbar__title { font-weight: 700; color: var(--white); font-size: 0.95rem; }
.budget-toolbar__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }

.budget-table { width: 100%; border-collapse: collapse; }
.budget-table th {
  background: rgba(5, 150, 105, 0.1);
  color: var(--emerald-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.75rem var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.budget-table th:last-child { width: 40px; }
.budget-table td {
  padding: 0.6rem var(--space-4);
  border-bottom: 1px solid rgba(51, 65, 85, 0.25);
  font-size: 0.85rem;
  color: #cbd5e1;
  vertical-align: middle;
}
.budget-table td:last-child { text-align: right; }
.budget-table tr:hover td { background: rgba(30, 41, 59, 0.4); }
.budget-table tfoot td { background: rgba(5, 150, 105, 0.06); border-top: 1px solid rgba(5, 150, 105, 0.2); }

.budget-input {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  padding: 0.25rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  width: 100%;
  outline: none;
  transition: all var(--trans-fast);
  min-width: 60px;
}
.budget-input:focus {
  border-color: var(--emerald);
  background: rgba(15, 23, 42, 0.5);
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15);
}
.budget-amount { font-family: var(--font-mono); color: var(--emerald-light); font-weight: 600; text-align: right; white-space: nowrap; }
.budget-add-row { padding: 0.875rem var(--space-5); border-top: 1px dashed var(--border-soft); }
.budget-table-wrap { overflow-x: auto; }

.budget-summary {
  background: rgba(5, 150, 105, 0.07);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius);
  padding: var(--space-6);
  margin-top: var(--space-6);
}
.budget-summary__row { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) 0; border-bottom: 1px solid rgba(5, 150, 105, 0.1); }
.budget-summary__row:last-child { border-bottom: none; padding-top: 0.875rem; }
.budget-summary__label { font-size: 0.875rem; color: var(--text-muted); }
.budget-summary__value { font-family: var(--font-mono); font-weight: 600; color: var(--emerald-light); font-size: 0.95rem; }
.budget-summary__total-label { font-weight: 700; color: var(--white); font-size: 1rem; }
.budget-summary__total-value { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; color: var(--emerald-light); }

.budget-chart-section { margin-top: var(--space-4); }
.budget-chart-label { font-size: 0.75rem; color: var(--text-dim); margin-bottom: var(--space-2); }
.budget-chart-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; }
.budget-chart-bar__segment { height: 100%; transition: width var(--trans-slow); }
.budget-chart-legend { display: flex; gap: var(--space-4); flex-wrap: wrap; margin-top: var(--space-2); }
.budget-legend-item { display: flex; align-items: center; gap: var(--space-1); font-size: 0.72rem; color: #cbd5e1; }
.budget-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; }

/* =============================================
   21. IMPACT FRAMEWORK MODULE
   ============================================= */
.impact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.impact-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin: var(--space-8) 0;
  position: relative;
}
.impact-flow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, var(--emerald-dark), var(--emerald-light));
  z-index: 0;
  transform: translateY(-50%);
}
.impact-node {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: var(--space-5);
  text-align: center;
  position: relative;
  z-index: var(--z-base);
  transition: all var(--trans-base);
}
.impact-node:hover { border-color: var(--emerald); transform: translateY(-3px); }
.impact-node__tier   { font-size: 0.62rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.impact-node__metric { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--emerald-light); line-height: 1.1; }
.impact-node__label  { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.3rem; line-height: 1.4; }

.sdg-grid { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.sdg-badge { padding: 0.35rem 0.8rem; border-radius: var(--radius-xs); font-size: 0.75rem; font-weight: 700; color: var(--white); }

.kpi-table { width: 100%; border-collapse: collapse; margin-top: var(--space-4); }
.kpi-table th {
  background: rgba(5, 150, 105, 0.1);
  color: var(--emerald-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.625rem 0.875rem;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.kpi-table td { padding: 0.625rem 0.875rem; border-bottom: 1px solid rgba(51, 65, 85, 0.25); font-size: 0.82rem; color: #cbd5e1; }
.kpi-table tr:hover td { background: rgba(30, 41, 59, 0.3); }

.impact-output { margin-top: var(--space-4); }
.impact-sub-header { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-3); padding-top: var(--space-6); border-top: 1px solid var(--border-soft); margin-top: var(--space-6); }
.impact-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }

/* =============================================
   22. ABOUT
   ============================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-left p + p { margin-top: var(--space-4); }
.credentials { display: flex; flex-direction: column; gap: 0.625rem; margin-top: var(--space-6); }
.credentials__item { display: flex; align-items: center; gap: 0.625rem; font-size: 0.875rem; color: #cbd5e1; }
.credentials__item span { font-size: 1rem; }
.about-links { margin-top: var(--space-6); display: flex; gap: 0.75rem; flex-wrap: wrap; }

.about-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: var(--space-8); text-align: center; }
.about-card__avatar { width: 80px; height: 80px; background: linear-gradient(135deg, var(--emerald-dark), var(--emerald)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--white); margin: 0 auto var(--space-4); }
.about-card__name   { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--white); }
.about-card__title  { font-size: 0.825rem; color: var(--text-muted); margin-top: 0.25rem; }
.about-card__divider { height: 1px; background: var(--border); margin: var(--space-5) 0; }
.about-card__stats  { display: flex; justify-content: center; gap: var(--space-8); margin-bottom: var(--space-5); }
.about-stat__num    { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; color: var(--emerald-light); }
.about-stat__label  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }
.about-card__quote  { font-style: italic; font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; border-top: 1px solid var(--border); padding-top: var(--space-5); }

/* =============================================
   23. CONTACT
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-8); }
.contact-form-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.75rem; }

.contact-info-card { background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.75rem; height: fit-content; }
.contact-info-card__title { font-weight: 700; color: var(--white); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--space-4); }
.contact-info-card__title + .contact-info-card__title { margin-top: var(--space-6); }
.contact-detail { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 1.1rem; }
.contact-detail__icon  { font-size: 1.1rem; padding-top: 2px; flex-shrink: 0; }
.contact-detail__label { font-size: 0.7rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 2px; }
.contact-detail__value { color: var(--emerald-light); font-size: 0.875rem; font-weight: 500; transition: color var(--trans-fast); }
.contact-detail__value:hover { color: var(--white); }
.delivery-list { display: flex; flex-direction: column; }
.delivery-list__item { font-size: 0.825rem; color: #cbd5e1; padding: 0.375rem 0; border-bottom: 1px solid rgba(51, 65, 85, 0.3); }
.delivery-list__item:last-child { border-bottom: none; }

/* =============================================
   24. NOTIFY BOX
   ============================================= */
.notify-box {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.notify-box__text  { color: #cbd5e1; font-size: 0.9rem; flex: 1; min-width: 200px; }
.notify-box__form  { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.notify-input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.6rem var(--space-4);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  width: 220px;
  transition: border-color var(--trans-fast);
}
.notify-input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15); }
.notify-confirm { color: var(--emerald-light); font-size: 0.875rem; font-weight: 600; margin-top: var(--space-2); width: 100%; display: none; }
.notify-confirm.is-visible { display: block; }

/* =============================================
   25. ALERT BOXES
   ============================================= */
.alert { border-radius: var(--radius-sm); padding: 0.875rem 1.125rem; font-size: 0.85rem; margin-bottom: var(--space-4); display: flex; align-items: flex-start; gap: 0.75rem; }
.alert--info    { background: rgba(59, 130, 246, 0.1);  border: 1px solid rgba(59, 130, 246, 0.2);  color: #93c5fd; }
.alert--success { background: rgba(5, 150, 105, 0.1);   border: 1px solid rgba(5, 150, 105, 0.2);   color: var(--emerald-light); }
.alert--warn    { background: rgba(245, 158, 11, 0.1);  border: 1px solid rgba(245, 158, 11, 0.2);  color: var(--amber-light); }

/* =============================================
   26. TOAST NOTIFICATION
   ============================================= */
#gs-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-toast);
  border-radius: 12px;
  padding: 0.875rem 1.25rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 320px;
  min-width: 200px;
  transform: translateY(120px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  line-height: 1.4;
  box-shadow: var(--shadow-card);
}
#gs-toast.is-visible { transform: translateY(0); opacity: 1; }
#gs-toast.type-success { background: rgba(5, 150, 105, 0.96); border: 1px solid var(--emerald); }
#gs-toast.type-error   { background: rgba(220, 38, 38, 0.96);  border: 1px solid #f87171; }
#gs-toast.type-warn    { background: rgba(217, 119, 6, 0.96);  border: 1px solid var(--amber); }
#gs-toast.type-info    { background: rgba(37, 99, 235, 0.96);  border: 1px solid #3b82f6; }

/* =============================================
   27. FOOTER
   ============================================= */
.site-footer { background: rgba(10, 16, 30, 0.98); border-top: 1px solid var(--border); padding: 3.5rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--space-10); padding-bottom: var(--space-10); }
.footer-logo { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.8rem; color: var(--text-dim); line-height: 1.7; max-width: 280px; margin-bottom: 0.875rem; }
.footer-disclaimer { font-size: 0.7rem; color: #374151; line-height: 1.65; border-top: 1px solid rgba(55, 65, 81, 0.3); padding-top: 0.875rem; }
.footer-col-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--emerald-light); margin-bottom: var(--space-4); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-links a { font-size: 0.8rem; color: var(--text-dim); transition: color var(--trans-fast); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(30, 41, 59, 0.8); padding: var(--space-5) 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--space-3); }
.footer-copy { font-size: 0.72rem; color: #374151; }
.footer-pills { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.footer-pill { background: rgba(30, 41, 59, 0.8); border: 1px solid var(--border-soft); font-size: 0.68rem; color: var(--text-dim); padding: 0.25rem 0.625rem; border-radius: var(--radius-full); }

/* =============================================
   28. ANIMATIONS
   ============================================= */
@keyframes pulse  { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes spin   { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.fade-up { opacity: 0; }
.fade-up.is-visible { animation: fadeUp 0.55s ease forwards; }

/* =============================================
   29. UTILITIES
   ============================================= */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hidden { display: none !important; }
.overflow-x-auto { overflow-x: auto; }
.divider { height: 1px; background: var(--border-soft); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.flex  { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* =============================================
   30. RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid  { grid-template-columns: 1fr; gap: var(--space-8); }
  .about-right { max-width: 480px; }
  .impact-flow { grid-template-columns: repeat(3, 1fr); }
  .impact-flow::before { display: none; }
  :root { --sidebar-w: 200px; }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }

  /* Nav */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--space-4);
    gap: 0.25rem;
    z-index: var(--z-sidebar);
  }
  .nav-links.is-open { display: flex; }

  /* Sidebar backdrop overlay */
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: calc(var(--z-sidebar) - 1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: pointer;
  }
  .sidebar-overlay.is-visible { display: block; }
  .nav-link { padding: 0.75rem var(--space-4); width: 100%; }
  .nav-cta  { display: none; }

  /* Hero */
  .hero__inner   { padding: 3rem 0; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__trust   { gap: 0.75rem; }

  /* Dashboard */
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    height: auto;
    z-index: var(--z-sidebar);
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .sidebar.is-open { display: flex; }
  .dash-main { padding: var(--space-5); }

  /* Modules */
  .finder-layout   { grid-template-columns: 1fr; }
  .filter-panel    { position: static; max-height: none; }
  .proposal-layout { grid-template-columns: 1fr; }
  .contact-grid    { grid-template-columns: 1fr; }
  .download-card   { grid-template-columns: 1fr; padding: var(--space-8); gap: var(--space-8); }
  .about-grid      { grid-template-columns: 1fr; }
  .form-row        { grid-template-columns: 1fr; }
  .impact-flow     { grid-template-columns: 1fr 1fr; }
  .impact-form-grid { grid-template-columns: 1fr; }
  .tabs            { overflow-x: auto; max-width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* Cards */
  .services-grid { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .kpi-grid { grid-template-columns: 1fr 1fr; }

  /* Notify */
  .notify-box { flex-direction: column; align-items: flex-start; gap: var(--space-4); }
  .notify-box__form { width: 100%; }
  .notify-input { width: 100%; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .impact-flow { grid-template-columns: 1fr; }
  .preview-grid { grid-template-columns: 1fr; }
  .about-card__stats { gap: var(--space-6); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* =============================================
   31. COMPONENT OVERRIDES (v3.0 cleanup)
   Classes that replace remaining inline styles
   ============================================= */
.select--auto   { width: auto; }
.select--narrow { max-width: 200px; }

/* Budget table cell widths — replaces inline style="" on inputs */
.bb-col-desc  { width: 100%; min-width: 130px; }
.bb-col-unit  { width: 70px; }
.bb-col-qty   { width: 55px; }
.bb-col-cost  { width: 80px; }

/* Card overflow — replaces style="overflow:hidden" in JS-generated HTML */
.card--overflow-hidden { overflow: hidden; }

/* =============================================
   32. GRANT FINDER v4 — UPGRADED CARDS
   ============================================= */
.gf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: var(--space-5);
}
.gf-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  transition: all var(--trans-base);
}
.gf-card--featured { border-color: var(--amber); }
.gf-card__featured-badge {
  position: absolute;
  top: -1px; right: 1rem;
  background: var(--amber);
  color: var(--bg-base);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 0 0 var(--radius-xs) var(--radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.gf-card__header  { display: flex; justify-content: space-between; align-items: flex-start; }
.gf-card__meta    { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.gf-save-btn {
  display: flex; align-items: center; gap: 0.3rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}
.gf-save-btn:hover, .gf-save-btn.is-saved {
  border-color: var(--emerald);
  color: var(--emerald-light);
  background: rgba(5,150,105,0.1);
}
.gf-card__title  { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--white); line-height: 1.3; }
.gf-card__org    { font-size: 0.78rem; color: var(--text-muted); }
.gf-card__amount { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; color: var(--emerald-light); }
.gf-card__desc   { font-size: 0.825rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.gf-card__details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  background: rgba(15,23,42,0.4);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}
.gf-detail-item  { display: flex; flex-direction: column; gap: 2px; }
.gf-detail-label { font-size: 0.65rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.gf-detail-value { font-size: 0.78rem; color: var(--text-primary); font-weight: 500; }
.gf-card__match  { display: flex; flex-direction: column; gap: var(--space-1); }
.gf-match-label  { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-muted); }
.gf-match-pct    { font-family: var(--font-mono); font-weight: 700; }
.gf-match-track  { height: 8px; background: rgba(15,23,42,0.8); border-radius: 4px; overflow: hidden; }
.gf-match-fill   { height: 100%; border-radius: 4px; transition: width var(--trans-slow); }
.gf-card__eligibility { display: flex; align-items: center; gap: var(--space-1); flex-wrap: wrap; font-size: 0.72rem; color: var(--text-dim); }
.gf-elig-label { font-size: 0.68rem; color: var(--text-dim); font-weight: 600; }
.gf-card__tags   { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.gf-card__actions { display: flex; gap: var(--space-2); margin-top: var(--space-1); }
.gf-card__actions .btn { flex: 1; }

/* ── Grant Finder Filters (enhanced) ── */
.gf-filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.gf-amount-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}
.gf-results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-2);
}
.gf-results-count { font-size: 0.875rem; color: var(--text-muted); }
.gf-results-note  { font-size: 0.72rem; color: var(--text-dim); }

/* ── Modal ── */
.gs-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: calc(var(--z-nav) + 10);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  overflow-y: auto;
}
.gs-modal {
  background: var(--bg-mid);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 760px;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.gs-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  padding: 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 1.25rem;
}
.gs-modal__meta    { display: flex; gap: var(--space-1); flex-wrap: wrap; margin-bottom: var(--space-2); }
.gs-modal__title   { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.gs-modal__org     { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.gs-modal__close {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.25rem; cursor: pointer; padding: 0.25rem;
  flex-shrink: 0; line-height: 1;
  transition: color var(--trans-fast);
}
.gs-modal__close:hover { color: var(--white); }
.gs-modal__body    { padding: 1.5rem 1.75rem; flex: 1; overflow-y: auto; }
.gs-modal__amount  { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--emerald-light); margin-bottom: 1.25rem; }
.gs-modal__grid    { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); margin-bottom: var(--space-6); }
.gs-modal__section { margin-bottom: 1.25rem; }
.gs-modal__section-title { font-size: 0.72rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: var(--space-2); }
.gs-modal__desc    { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }
.gs-modal__table   { width: 100%; border-collapse: collapse; font-size: 0.825rem; }
.gs-modal__table td { padding: 0.4rem 0; border-bottom: 1px solid rgba(51,65,85,0.3); color: #cbd5e1; }
.gs-modal__table td:first-child { color: var(--text-muted); width: 45%; }
.gs-modal__tags    { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.gs-modal__list    { display: flex; flex-direction: column; gap: var(--space-1); }
.gs-modal__list li { font-size: 0.825rem; color: #cbd5e1; }
.gs-modal__list li::before { content: '→ '; color: var(--emerald-light); }
.gs-modal__match   { background: rgba(5,150,105,0.06); border: 1px solid rgba(5,150,105,0.15); border-radius: var(--radius-sm); padding: var(--space-4); }
.gs-modal__footer  { padding: 1.25rem 1.75rem; border-top: 1px solid var(--border-soft); display: flex; gap: var(--space-3); justify-content: flex-end; }

/* =============================================
   33. ELIGIBILITY CHECKER v4
   ============================================= */
.ec-progress-bar {
  background: rgba(30,41,59,0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.ec-progress-meta { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-muted); margin-bottom: var(--space-3); }
.ec-progress-track { height: 8px; background: rgba(15,23,42,0.8); border-radius: 4px; overflow: hidden; }
.ec-progress-fill  { height: 100%; background: linear-gradient(90deg, var(--emerald-dark), var(--emerald-light)); border-radius: 4px; transition: width var(--trans-slow); }
.ec-step-dots { display: flex; gap: var(--space-2); margin-top: var(--space-3); }
.ec-step-dot {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(30,41,59,0.8);
  border: 2px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; color: var(--text-dim);
  font-weight: 700; transition: all var(--trans-base);
  cursor: default;
}
.ec-step-dot.is-active  { background: var(--emerald); border-color: var(--emerald); color: var(--white); }
.ec-step-dot.is-complete { background: rgba(5,150,105,0.2); border-color: var(--emerald); color: var(--emerald-light); }
.ec-step-dot.is-complete::after { content: '✓'; }

.ec-step-header { display: flex; align-items: flex-start; gap: var(--space-4); margin-bottom: 1.5rem; }
.ec-step-icon   { font-size: 2.5rem; flex-shrink: 0; line-height: 1; }
.ec-step-title  { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); margin-bottom: var(--space-1); }
.ec-step-desc   { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }
.ec-fields      { display: flex; flex-direction: column; gap: 0.125rem; }

.ec-radio-group { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.ec-radio-item  {
  display: flex; align-items: center; gap: var(--space-3);
  background: rgba(30,41,59,0.5);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: all var(--trans-fast);
}
.ec-radio-item:hover { border-color: var(--emerald); background: rgba(5,150,105,0.08); }
.ec-radio-item input[type="radio"] { accent-color: var(--emerald); width: 16px; height: 16px; cursor: pointer; flex-shrink: 0; }
.ec-radio-item span { font-size: 0.875rem; color: #cbd5e1; }
.ec-radio-item:has(input:checked) { border-color: var(--emerald); background: rgba(5,150,105,0.12); }
.ec-radio-item:has(input:checked) span { color: var(--white); font-weight: 500; }

.ec-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-soft); }

/* Results */
.ec-results__header { display: flex; gap: 2rem; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; }
.ec-score-ring { position: relative; flex-shrink: 0; }
.ec-score-ring svg { transform: rotate(-90deg); }
.ec-score-ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ec-score-pct  { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--white); line-height: 1; }
.ec-score-tier { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.ec-results__summary { flex: 1; }
.ec-results__org     { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: var(--space-3); }
.ec-results__verdict { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: var(--space-4); }
.ec-results__meta    { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.ec-results__grid    { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin-bottom: var(--space-6); }
.ec-results__col     { background: rgba(30,41,59,0.5); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.25rem; }
.ec-results__col-title { font-weight: 700; color: var(--white); font-size: 0.85rem; margin-bottom: var(--space-4); }
.ec-col--strengths .ec-results__col-title { color: var(--emerald-light); }
.ec-col--weaknesses .ec-results__col-title { color: var(--amber-light); }
.ec-strength-item {
  font-size: 0.8rem; color: #a7f3d0; line-height: 1.55;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(5,150,105,0.1);
}
.ec-strength-item:last-child { border-bottom: none; }
.ec-weakness-item {
  font-size: 0.8rem; color: #fde68a; line-height: 1.55;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(245,158,11,0.1);
}
.ec-weakness-item:last-child { border-bottom: none; }
.ec-empty-state { font-size: 0.8rem; color: var(--text-dim); font-style: italic; }
.ec-results__recs {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.ec-rec-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.55;
}
.ec-rec-item:last-child { border-bottom: none; }
.ec-results__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }

/* =============================================
   34. PROPOSAL GENERATOR v4 — MULTI-STEP
   ============================================= */
.pg-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; height: 100%; }
.pg-form-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.pg-step-header { display: flex; align-items: center; gap: var(--space-4); margin-bottom: 1.5rem; }
.pg-step-icon   { font-size: 2rem; line-height: 1; }
.pg-step-title  { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); }
.pg-fields      { flex: 1; overflow-y: auto; }
.pg-textarea    { min-height: 120px; }

.pg-progress { margin-bottom: 1.25rem; }
.pg-progress-track { height: 6px; background: rgba(15,23,42,0.8); border-radius: 3px; overflow: hidden; }
.pg-progress-fill  { height: 100%; background: linear-gradient(90deg, var(--emerald-dark), var(--emerald-light)); border-radius: 3px; transition: width var(--trans-slow); }
.pg-step-meta  { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-3); font-size: 0.75rem; color: var(--text-muted); }
.pg-step-dots  { display: flex; gap: var(--space-2); }
.pg-step-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(30,41,59,0.8);
  border: 2px solid var(--border-soft);
  font-size: 0.6rem;
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  transition: all var(--trans-base);
}
.pg-step-dot.is-active  { background: var(--emerald); border-color: var(--emerald); color: #fff; }
.pg-step-dot.is-complete { background: rgba(5,150,105,0.2); border-color: var(--emerald); color: var(--emerald-light); }

.pg-nav { display: flex; justify-content: space-between; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border-soft); }

/* Live preview panel */
.pg-preview-panel {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pg-preview-panel__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(15,23,42,0.5);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.pg-preview-panel__live-dot {
  width: 7px; height: 7px;
  background: var(--emerald-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
#pg-live-preview {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(5,150,105,0.3) transparent;
}
.pg-preview-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; gap: var(--space-4); text-align: center; color: var(--text-muted); }
.pg-preview-empty-icon { font-size: 3rem; line-height: 1; }

/* Draft preview document */
.pg-preview-doc { }
.pg-preview-doc__header {
  border-bottom: 2px solid var(--emerald);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}
.pg-preview-doc__logo { font-size: 0.65rem; font-weight: 700; color: var(--emerald-light); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.375rem; }
.pg-preview-doc__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--white); line-height: 1.2; }
.pg-preview-doc__meta  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.25rem; }
.pg-preview-section { margin-bottom: 1rem; }
.pg-preview-section__title { font-size: 0.68rem; font-weight: 700; color: var(--emerald-light); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.375rem; }
.pg-preview-section__body  { font-size: 0.8rem; color: #cbd5e1; line-height: 1.65; white-space: pre-line; }
.pg-preview-watermark {
  text-align: center;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.08);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 1.5rem;
  padding-top: 0.875rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Generated full proposal */
.pg-output-panel { padding: 0; }
.pg-output-toolbar {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: 1rem 1.5rem;
  background: rgba(15,23,42,0.8);
  border-bottom: 1px solid var(--border-soft);
}
#pg-output {
  padding: 2rem;
  overflow-y: auto;
  max-height: 75vh;
  scrollbar-width: thin;
  scrollbar-color: rgba(5,150,105,0.3) transparent;
}

/* Proposal document */
.pg-full-proposal { font-family: var(--font-body); max-width: 760px; margin: 0 auto; }
.pg-full-proposal__cover {
  background: linear-gradient(135deg, rgba(5,150,105,0.15), rgba(5,150,105,0.05));
  border: 1px solid rgba(5,150,105,0.25);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}
.pg-full-proposal__badge { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-light); margin-bottom: 0.75rem; }
.pg-full-proposal__title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--white); line-height: 1.15; margin-bottom: 0.75rem; }
.pg-full-proposal__submittedby { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.pg-full-proposal__submittedto { font-size: 0.825rem; color: var(--text-dim); margin-bottom: 1rem; }
.pg-full-proposal__meta-row { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--space-4); font-size: 0.8rem; color: #cbd5e1; }
.pg-full-proposal__footer { text-align: center; font-size: 0.7rem; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }

.pg-section { display: flex; gap: 1.25rem; margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border-soft); }
.pg-section__num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(5,150,105,0.2);
  border: 1px solid rgba(5,150,105,0.35);
  color: var(--emerald-light);
  font-size: 0.75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}
.pg-section__content { flex: 1; }
.pg-section__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: var(--space-3); }
.pg-section__body  { font-size: 0.875rem; color: #cbd5e1; line-height: 1.85; white-space: pre-line; }
.pg-section__list  { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.pg-section__list li { font-size: 0.875rem; color: #cbd5e1; line-height: 1.6; padding-left: 1rem; position: relative; }
.pg-section__list li::before { content: '→'; color: var(--emerald-light); position: absolute; left: 0; }
.pg-budget-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin-top: var(--space-4); }
.pg-budget-table th { background: rgba(5,150,105,0.1); color: var(--emerald-light); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5rem 0.875rem; text-align: left; border-bottom: 1px solid var(--border-soft); }
.pg-budget-table td { padding: 0.5rem 0.875rem; border-bottom: 1px solid rgba(51,65,85,0.25); color: #cbd5e1; }
.pg-budget-table tfoot td { font-weight: 700; color: var(--white); border-top: 1px solid rgba(5,150,105,0.3); border-bottom: none; }

/* =============================================
   35. BUDGET BUILDER v4 — ENHANCED
   ============================================= */
.bb-header-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.bb-project-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-soft);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.25rem 0;
  outline: none;
  flex: 1;
  min-width: 200px;
}
.bb-project-input:focus { border-color: var(--emerald); }
.bb-cat-quick { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: 1rem; }
.bb-cat-quick-btn {
  font-size: 0.72rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border-soft);
  background: rgba(30,41,59,0.5);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--trans-fast);
  white-space: nowrap;
}
.bb-cat-quick-btn:hover { border-color: var(--emerald); color: var(--emerald-light); background: rgba(5,150,105,0.08); }

.bb-narrative {
  background: var(--bg-card-dark);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.bb-narrative-header { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; }
.bb-narrative-intro  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; }
.bb-narrative-section { margin-bottom: 0.875rem; }
.bb-narrative-cat   { font-size: 0.78rem; font-weight: 700; margin-bottom: 0.25rem; }
.bb-narrative-desc  { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.bb-narrative-footer { font-size: 0.72rem; color: var(--text-dim); border-top: 1px solid var(--border-soft); padding-top: 0.75rem; margin-top: 0.875rem; }

/* =============================================
   36. RESPONSIVE — v4 additions
   ============================================= */
@media (max-width: 768px) {
  .gf-grid            { grid-template-columns: 1fr; }
  .gf-filter-row      { grid-template-columns: 1fr 1fr; }
  .gf-card__details   { grid-template-columns: 1fr 1fr; }
  .pg-layout          { grid-template-columns: 1fr; }
  .pg-preview-panel   { display: none; } /* live preview hidden on mobile — full-screen form */
  .ec-results__grid   { grid-template-columns: 1fr; }
  .ec-results__header { flex-direction: column; align-items: center; text-align: center; }
  .gs-modal__grid     { grid-template-columns: 1fr; }
  .gs-modal           { max-height: 100vh; border-radius: 0; }
  .gs-modal-overlay   { padding: 0; align-items: flex-end; }
}
@media (max-width: 480px) {
  .gf-filter-row { grid-template-columns: 1fr; }
  .gf-card__actions .btn { font-size: 0.75rem; padding: 0.3rem 0.6rem; }
  .ec-step-dots  { display: none; }
}
