:root {
      --bg-base: #060b13;
      --bg-surface: #0c1424;
      --bg-card: rgba(12, 20, 36, 0.78);
      --border-color: rgba(255, 255, 255, 0.08);
      --border-hover: rgba(52, 211, 153, 0.35);
      --primary: #10b981;
      --primary-hover: #059669;
      --primary-glow: rgba(16, 185, 129, 0.28);
      --accent-blue: #38bdf8;
      --accent-amber: #f59e0b;
      --accent-purple: #a855f7;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --success: #10b981;
      --radius: 16px;
      --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
      background-color: var(--bg-base);
      color: var(--text-main);
      min-height: 100vh;
      background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(16, 185, 129, 0.15), transparent),
        radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.08), transparent);
      line-height: 1.6;
    }

    /* Top Navigation */
    .navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2.5rem;
      border-bottom: 1px solid var(--border-color);
      background: rgba(6, 11, 19, 0.88);
      backdrop-filter: blur(16px);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    .brand {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      color: var(--text-main);
    }
    .brand-logo {
      width: 42px;
      height: 42px;
      background: linear-gradient(135deg, #10b981, #0284c7);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      color: #fff;
      box-shadow: 0 0 20px var(--primary-glow);
    }
    .brand-title {
      font-family: 'Outfit', sans-serif;
      font-size: 1.5rem;
      font-weight: 800;
      letter-spacing: -0.02em;
    }
    .brand-title span { color: var(--primary); }
    .brand-badge {
      font-size: 0.7rem;
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.3);
      padding: 2px 8px;
      border-radius: 20px;
      margin-left: 6px;
      font-weight: 700;
    }

    .nav-links {
      display: flex;
      gap: 1.5rem;
      align-items: center;
    }
    .nav-link {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.92rem;
      font-weight: 600;
      transition: var(--transition);
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .nav-link:hover, .nav-link.active {
      color: var(--text-main);
    }
    .nav-link.active {
      color: var(--primary);
    }

    .nav-actions { display: flex; gap: 0.85rem; align-items: center; }
    .btn {
      padding: 0.65rem 1.2rem;
      border-radius: 10px;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: var(--transition);
      border: none;
    }
    .btn-secondary {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-main);
      border: 1px solid var(--border-color);
    }
    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: var(--border-hover);
    }
    .btn-primary {
      background: linear-gradient(135deg, #10b981, #059669);
      color: #032014;
      font-weight: 700;
      box-shadow: 0 4px 14px var(--primary-glow);
    }
    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
      background: linear-gradient(135deg, #34d399, #10b981);
    }
    .btn-giving {
      background: linear-gradient(135deg, #f59e0b, #d97706);
      color: #1f1201;
      font-weight: 700;
    }
    .btn-giving:hover {
      background: linear-gradient(135deg, #fbbf24, #f59e0b);
      transform: translateY(-1px);
    }

    /* Hero Section */
    .hero {
      text-align: center;
      padding: 3.5rem 1.5rem 2.5rem;
      max-width: 960px;
      margin: 0 auto;
    }
    .hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(16, 185, 129, 0.12);
      border: 1px solid rgba(16, 185, 129, 0.3);
      color: #34d399;
      padding: 0.35rem 1rem;
      border-radius: 50px;
      font-size: 0.82rem;
      font-weight: 700;
      margin-bottom: 1.25rem;
    }
    .hero h1 {
      font-family: 'Outfit', sans-serif;
      font-size: clamp(2.3rem, 5vw, 3.8rem);
      font-weight: 800;
      letter-spacing: -0.03em;
      line-height: 1.15;
      margin-bottom: 1.15rem;
    }
    .hero h1 span {
      background: linear-gradient(135deg, #34d399 20%, #38bdf8 80%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .hero p {
      font-size: 1.15rem;
      color: var(--text-muted);
      margin-bottom: 2rem;
      max-width: 780px;
      margin-left: auto;
      margin-right: auto;
    }

    /* Platform Navigation Modes / Main View Tabs */
    .view-switcher {
      display: flex;
      justify-content: center;
      gap: 0.5rem;
      background: rgba(12, 20, 36, 0.9);
      border: 1px solid var(--border-color);
      padding: 6px;
      border-radius: 14px;
      max-width: 760px;
      margin: 0 auto 2.5rem;
      flex-wrap: wrap;
    }
    .view-btn {
      padding: 0.65rem 1.25rem;
      border-radius: 10px;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--text-muted);
      background: transparent;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      transition: var(--transition);
    }
    .view-btn:hover {
      color: #fff;
    }
    .view-btn.active {
      background: rgba(16, 185, 129, 0.18);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.4);
      box-shadow: 0 4px 12px var(--primary-glow);
    }

    /* Search & Filter Controls */
    .controls-wrapper {
      max-width: 1100px;
      margin: 0 auto 2.5rem;
      padding: 0 1.5rem;
    }
    .search-row {
      display: flex;
      gap: 1rem;
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
    }
    .search-container {
      flex: 1;
      min-width: 280px;
      position: relative;
    }
    .search-input {
      width: 100%;
      padding: 1rem 1.25rem 1rem 3.25rem;
      background: rgba(12, 20, 36, 0.9);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      color: #fff;
      font-size: 1rem;
      outline: none;
      transition: var(--transition);
    }
    .search-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-glow);
    }
    .search-icon {
      position: absolute;
      left: 1.2rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
    }
    .city-filter-container {
      position: relative;
      min-width: 220px;
    }
    .city-select {
      width: 100%;
      height: 100%;
      padding: 0.9rem 2.2rem 0.9rem 2.5rem;
      background: rgba(12, 20, 36, 0.9);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      color: #fff;
      font-size: 0.95rem;
      font-weight: 500;
      outline: none;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      background-size: 1rem;
      transition: var(--transition);
    }
    .city-select:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-glow);
    }
    .city-select option {
      background: #0f172a;
      color: #fff;
    }
    .city-icon {
      position: absolute;
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      pointer-events: none;
    }

    /* Filter Pills */
    .filter-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
    }
    .filter-label {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      margin-right: 0.35rem;
    }
    .pill {
      padding: 0.45rem 0.95rem;
      border-radius: 50px;
      font-size: 0.82rem;
      font-weight: 600;
      color: var(--text-muted);
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border-color);
      cursor: pointer;
      transition: var(--transition);
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
    }
    .pill:hover, .pill.active {
      color: #fff;
      background: rgba(16, 185, 129, 0.15);
      border-color: var(--primary);
    }

    /* GeoIP Proximity Banner */
    .location-banner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.25);
      border-radius: 12px;
      padding: 0.65rem 1.15rem;
      margin-bottom: 1.15rem;
      flex-wrap: wrap;
      gap: 0.75rem;
    }
    .location-info {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.88rem;
      color: #e2e8f0;
    }
    .pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #10b981;
      box-shadow: 0 0 0 rgba(16, 185, 129, 0.6);
      animation: pulseAnim 2s infinite;
      display: inline-block;
      flex-shrink: 0;
    }
    @keyframes pulseAnim {
      0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
      70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
      100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    }
    .location-actions {
      display: flex;
      gap: 0.5rem;
      align-items: center;
    }
    .loc-btn {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #cbd5e1;
      border-radius: 8px;
      padding: 0.35rem 0.75rem;
      font-size: 0.78rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: var(--transition);
    }
    .loc-btn:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.12);
      border-color: rgba(255, 255, 255, 0.25);
    }

    /* Content Container */
    .main-container {
      max-width: 1240px;
      margin: 0 auto;
      padding: 0 1.5rem 5rem;
    }

    /* Grid Layout for Organizations */
    .org-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
      gap: 1.75rem;
    }

    /* Organization Card */
    .org-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      backdrop-filter: blur(14px);
      transition: var(--transition);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
    }
    .org-card:hover {
      transform: translateY(-4px);
      border-color: var(--border-hover);
      box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    }
    .org-card-header {
      padding: 1.5rem 1.5rem 1rem;
      display: flex;
      align-items: flex-start;
      gap: 1rem;
    }
    .org-avatar {
      width: 54px;
      height: 54px;
      border-radius: 14px;
      background: rgba(16, 185, 129, 0.15);
      border: 1px solid rgba(16, 185, 129, 0.3);
      color: #34d399;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      flex-shrink: 0;
    }
    .org-title-wrap {
      flex: 1;
    }
    .org-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 0.4rem;
    }
    .type-badge {
      font-size: 0.7rem;
      font-weight: 700;
      text-transform: uppercase;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.12);
      color: var(--accent-blue);
      border: 1px solid rgba(56, 189, 248, 0.25);
    }
    .tradition-badge {
      font-size: 0.7rem;
      font-weight: 600;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-muted);
      border: 1px solid var(--border-color);
    }
    .verified-badge {
      font-size: 0.7rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.35);
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .claimed-badge {
      font-size: 0.7rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.15);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.35);
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .contributed-badge {
      font-size: 0.7rem;
      font-weight: 700;
      padding: 2px 7px;
      border-radius: 6px;
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.35);
      display: inline-flex;
      align-items: center;
      gap: 3px;
    }
    .contributor-tag {
      font-size: 0.75rem;
      color: #94a3b8;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .btn-claim {
      background: rgba(245, 158, 11, 0.12);
      border: 1px solid rgba(245, 158, 11, 0.35);
      color: #fbbf24;
      font-size: 0.78rem;
      font-weight: 600;
      padding: 0.35rem 0.7rem;
      border-radius: 7px;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      transition: var(--transition);
      text-decoration: none;
    }
    .btn-claim:hover {
      background: rgba(245, 158, 11, 0.25);
      color: #fff;
      border-color: #f59e0b;
      transform: translateY(-1px);
    }
    .distance-badge {
      font-size: 0.72rem;
      font-weight: 800;
      padding: 2px 8px;
      border-radius: 6px;
      background: rgba(16, 185, 129, 0.18);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.45);
      display: inline-flex;
      align-items: center;
      gap: 4px;
      letter-spacing: 0.02em;
      box-shadow: 0 2px 8px rgba(16, 185, 129, 0.15);
      text-decoration: none;
      cursor: pointer;
      transition: var(--transition);
    }
    a.distance-badge:hover, .distance-badge:hover {
      background: rgba(16, 185, 129, 0.35);
      border-color: rgba(52, 211, 153, 0.75);
      color: #fff;
      text-decoration: underline;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    }
    .btn-sms {
      background: rgba(56, 189, 248, 0.12);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.35);
    }
    .btn-sms:hover {
      background: rgba(56, 189, 248, 0.25);
      border-color: #38bdf8;
      color: #fff;
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(56, 189, 248, 0.25);
    }

    .org-name {
      font-family: 'Outfit', sans-serif;
      font-size: 1.28rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.25;
      margin-bottom: 0.35rem;
    }
    .org-tagline {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.45;
      margin-bottom: 0.75rem;
    }

    .org-card-body {
      padding: 0 1.5rem 1.25rem;
      flex: 1;
    }
    .org-meta-list {
      display: flex;
      flex-direction: column;
      gap: 0.45rem;
      font-size: 0.82rem;
      color: var(--text-muted);
      margin-bottom: 1rem;
    }
    .org-meta-item {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .org-meta-item i {
      color: var(--primary);
      width: 14px;
      text-align: center;
    }

    /* Tag pills on card */
    .tag-container {
      display: flex;
      flex-wrap: wrap;
      gap: 0.4rem;
      margin-bottom: 1.25rem;
    }
    .tag-pill {
      font-size: 0.72rem;
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid rgba(255, 255, 255, 0.06);
      color: #cbd5e1;
      padding: 3px 8px;
      border-radius: 6px;
    }
    .tag-pill.active-outreach {
      background: rgba(16, 185, 129, 0.2);
      border-color: rgba(16, 185, 129, 0.5);
      color: #34d399;
      font-weight: 700;
      box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    }

    .org-card-footer {
      padding: 1rem 1.5rem;
      background: rgba(0, 0, 0, 0.2);
      border-top: 1px solid var(--border-color);
      display: grid;
      grid-template-columns: 1.4fr 1fr;
      gap: 0.6rem;
    }

    /* Events List View */
    .events-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
      gap: 1.5rem;
    }
    .event-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.5rem;
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }
    .event-card:hover {
      transform: translateY(-3px);
      border-color: rgba(245, 158, 11, 0.4);
    }
    .event-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 0.75rem;
    }
    .event-type-badge {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      padding: 3px 8px;
      border-radius: 6px;
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.3);
    }
    .event-date-badge {
      font-size: 0.8rem;
      font-weight: 700;
      color: #fff;
      background: rgba(255, 255, 255, 0.08);
      padding: 4px 10px;
      border-radius: 8px;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .event-title {
      font-family: 'Outfit', sans-serif;
      font-size: 1.2rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.4rem;
    }
    .event-org-link {
      font-size: 0.82rem;
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
      margin-bottom: 0.75rem;
      display: inline-block;
    }
    .event-desc {
      font-size: 0.85rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 1rem;
      flex: 1;
    }

    /* Practical Services Hub Cards */
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
      gap: 1.5rem;
    }
    .service-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      padding: 1.5rem;
      transition: var(--transition);
      display: flex;
      flex-direction: column;
    }
    .service-card:hover {
      border-color: rgba(56, 189, 248, 0.4);
      transform: translateY(-3px);
    }
    .service-title {
      font-family: 'Outfit', sans-serif;
      font-size: 1.2rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.3rem;
    }
    .service-provider {
      font-size: 0.84rem;
      color: var(--accent-blue);
      font-weight: 600;
      margin-bottom: 0.75rem;
    }
    .service-box {
      background: rgba(0, 0, 0, 0.25);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      padding: 0.75rem 1rem;
      margin-bottom: 0.75rem;
      font-size: 0.8rem;
    }
    .service-box strong { color: #f8fafc; }
    .verified-pill {
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }
    .tier-authoritative {
      background: rgba(16, 185, 129, 0.15);
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.35);
    }
    .tier-org {
      background: rgba(56, 189, 248, 0.15);
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.35);
    }
    .tier-community {
      background: rgba(245, 158, 11, 0.15);
      color: #fbbf24;
      border: 1px solid rgba(245, 158, 11, 0.35);
    }
    .tier-source {
      background: rgba(168, 85, 247, 0.15);
      color: #c084fc;
      border: 1px solid rgba(168, 85, 247, 0.35);
    }
    .tier-unverified {
      background: rgba(148, 163, 184, 0.12);
      color: #94a3b8;
      border: 1px solid rgba(148, 163, 184, 0.25);
    }
    .service-operator-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.76rem;
      background: rgba(56, 189, 248, 0.1);
      border: 1px solid rgba(56, 189, 248, 0.25);
      color: #7dd3fc;
      padding: 3px 8px;
      border-radius: 6px;
      margin-bottom: 0.4rem;
    }
    .service-host-pill {
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.65rem;
    }
    .service-host-pill a {
      color: #cbd5e1;
      text-decoration: underline;
      font-weight: 600;
    }
    .service-host-pill a:hover {
      color: #fff;
    }

    /* Support CommunityNexus Giving Callout */
    .giving-banner {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(56, 189, 248, 0.15));
      border: 1px solid rgba(16, 185, 129, 0.3);
      border-radius: var(--radius);
      padding: 2.5rem 2rem;
      margin: 4rem auto 0;
      max-width: 1000px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 2rem;
      flex-wrap: wrap;
    }
    .giving-content h3 {
      font-family: 'Outfit', sans-serif;
      font-size: 1.6rem;
      font-weight: 800;
      color: #fff;
      margin-bottom: 0.5rem;
    }
    .giving-content p {
      color: var(--text-muted);
      font-size: 0.95rem;
      max-width: 620px;
    }

    /* Modal Styles */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      z-index: 200;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 1.5rem;
    }
    .modal-box {
      background: #0b1322;
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      width: 100%;
      max-width: 580px;
      padding: 2rem;
      position: relative;
      box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    }
    .modal-close {
      position: absolute;
      top: 1.25rem;
      right: 1.25rem;
      background: transparent;
      border: none;
      color: var(--text-muted);
      font-size: 1.2rem;
      cursor: pointer;
    }

    /* Footer */
    footer {
      border-top: 1px solid var(--border-color);
      padding: 3rem 2rem;
      background: rgba(4, 7, 13, 0.95);
      color: var(--text-muted);
      font-size: 0.875rem;
    }
    .footer-inner {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.5rem;
    }

    /* Comprehensive Responsive Design for Tablet, Mobile & Narrow Viewports */
    @media (max-width: 960px) {
      .navbar {
        flex-wrap: wrap;
        padding: 0.85rem 1.25rem;
        gap: 0.85rem;
      }
      .brand-badge {
        display: none;
      }
      .nav-links {
        order: 3;
        width: 100%;
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.4rem;
      }
      .nav-links::-webkit-scrollbar { display: none; }
      .nav-link {
        font-size: 0.82rem;
        padding: 0.45rem 0.85rem;
      }
    }

    @media (max-width: 768px) {
      .hero {
        padding: 2.5rem 1rem 2rem;
      }
      .hero h1 {
        font-size: clamp(1.85rem, 6vw, 2.75rem);
      }
      .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
      }
      .view-switcher {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 6px;
        width: 100%;
        max-width: 100%;
      }
      .view-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.82rem;
        padding: 0.6rem 0.75rem;
        text-align: center;
      }
      .controls-wrapper {
        padding: 0 1rem;
        margin-bottom: 2rem;
      }
      .search-container {
        min-width: 0;
        width: 100%;
      }
      .filter-pills {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
      }
      .filter-pills::-webkit-scrollbar { display: none; }
      .filter-label {
        font-size: 0.75rem;
        flex-shrink: 0;
      }
      .pill {
        flex-shrink: 0;
      }
      .main-container {
        padding: 0 1rem 4rem;
      }
      .org-card-footer {
        grid-template-columns: 1fr;
      }
      .giving-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.25rem;
        gap: 1.25rem;
        margin-top: 2.5rem;
      }
      .giving-content h3 {
        font-size: 1.4rem;
      }
      .giving-banner .btn {
        width: 100%;
        justify-content: center;
      }
      .modal-box {
        max-width: 95vw;
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.5rem 1.25rem;
      }
      .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
      }
    }

    @media (max-width: 480px) {
      .navbar {
        padding: 0.65rem 0.85rem;
      }
      .brand-title {
        font-size: 1.15rem;
      }
      .brand-logo {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
      }
      .nav-actions {
        gap: 0.35rem;
      }
      .nav-actions .btn {
        padding: 0.45rem 0.65rem;
        font-size: 0.78rem;
      }
      .hero-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
      }
      .view-switcher {
        grid-template-columns: 1fr;
      }
      .org-card-header {
        padding: 1.2rem 1.2rem 0.75rem;
      }
      .org-avatar {
        width: 46px;
        height: 46px;
        font-size: 1.25rem;
      }
      .org-name {
        font-size: 1.15rem;
      }
      .org-card-body {
        padding: 0 1.2rem 1rem;
      }
      .org-card-footer {
        padding: 0.85rem 1.2rem;
      }
      .event-card, .service-card {
        padding: 1.25rem 1rem;
      }
      .search-input, select, input, textarea {
        font-size: 16px; /* Prevents auto-zoom on iOS */
      }
    }

    /* Contributors Ticker Bar */
    .contributors-ticker-bar {
      background: rgba(15, 23, 42, 0.9);
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      display: flex;
      align-items: center;
      padding: 0.5rem 1.5rem;
      font-size: 0.82rem;
      overflow: hidden;
      white-space: nowrap;
    }
    .ticker-label {
      font-weight: 700;
      color: #cbd5e1;
      margin-right: 1.25rem;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .ticker-track-wrap {
      overflow: hidden;
      flex: 1;
      position: relative;
    }
    .ticker-track {
      display: inline-flex;
      gap: 2.5rem;
      animation: tickerMarquee 45s linear infinite;
    }
    .ticker-track:hover {
      animation-play-state: paused;
    }
    .ticker-track span {
      color: #94a3b8;
      font-weight: 500;
    }
    @keyframes tickerMarquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    /* Community Sponsors Presentation */
    .sponsors-showcase-wrap {
      max-width: 1140px;
      margin: 0 auto 2.5rem;
      padding: 0 1.5rem;
      width: 100%;
    }
    .sponsors-separator {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1rem;
    }
    .sep-line {
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(55, 65, 81, 0.9), rgba(2, 132, 199, 0.4), transparent);
    }
    .sep-title {
      font-size: 0.82rem;
      font-weight: 800;
      letter-spacing: 0.15em;
      color: #94a3b8;
      text-transform: uppercase;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    .sponsor-card-area {
      position: relative;
      min-height: 140px;
    }
    .sponsor-card {
      background: linear-gradient(135deg, rgba(31, 41, 55, 0.6) 0%, rgba(17, 24, 39, 0.85) 100%);
      border: 1px solid rgba(55, 65, 81, 0.8);
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
      display: grid;
      grid-template-columns: 240px 1fr auto;
      gap: 1.5rem;
      align-items: center;
      padding: 1.25rem 1.75rem;
      transition: all 0.3s ease;
    }
    @media (max-width: 860px) {
      .sponsor-card { grid-template-columns: 1fr; text-align: center; gap: 1rem; }
    }
    .sponsor-banner-wrap {
      border-radius: 10px;
      overflow: hidden;
      height: 120px;
      background: #111827;
      border: 1px solid rgba(255,255,255,0.06);
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .sponsor-banner-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    .sponsor-details h3 {
      font-family: 'Outfit', sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      color: #fff;
      margin-bottom: 0.25rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    @media (max-width: 860px) {
      .sponsor-details h3 { justify-content: center; }
    }
    .sponsor-tagline {
      font-size: 0.88rem;
      color: #38bdf8;
      font-weight: 600;
      margin-bottom: 0.4rem;
    }
    .sponsor-desc {
      font-size: 0.82rem;
      color: var(--text-muted);
      line-height: 1.45;
    }
    .sponsor-action-col {
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      align-items: flex-end;
    }
    @media (max-width: 860px) {
      .sponsor-action-col { align-items: center; }
    }
    .sponsor-badge-pill {
      font-size: 0.72rem;
      font-weight: 800;
      padding: 3px 8px;
      border-radius: 6px;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }
    .sponsors-subfooter {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-top: 1rem;
      font-size: 0.82rem;
      color: #64748b;
    }
    .sep-subline {
      flex: 1;
      height: 1px;
      background: rgba(55, 65, 81, 0.5);
    }
    .sponsor-nav-dots {
      display: flex;
      gap: 6px;
      justify-content: center;
      margin-top: 0.75rem;
    }
    .sponsor-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #4b5563;
      cursor: pointer;
      transition: all 0.2s;
    }
    .sponsor-dot.active {
      background: var(--primary);
      transform: scale(1.2);
    }

    /* 4-Role Network Architecture Section */
    .network-roles-section {
      max-width: 1200px;
      margin: 4.5rem auto 3rem;
      padding: 0 1.5rem;
      width: 100%;
    }
    .roles-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 1.25rem;
    }
    .role-card {
      background: rgba(17, 24, 39, 0.7);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 1.5rem;
      transition: transform 0.2s, border-color 0.2s;
    }
    .role-card:hover {
      transform: translateY(-2px);
      border-color: rgba(2, 132, 199, 0.4);
    }
    .contrib-tab-btn {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      padding: 0.45rem 0.9rem;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }
    .contrib-tab-btn:hover { color: #fff; background: #374151; }
    .contrib-tab-btn.active {
      background: rgba(2, 132, 199, 0.2);
      border-color: var(--primary);
      color: #38bdf8;
    }
    .contrib-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1rem;
    }
    .contrib-card {
      background: rgba(31, 41, 55, 0.45);
      border: 1px solid rgba(255, 255, 255, 0.06);
      border-radius: 10px;
      padding: 1.1rem 1.25rem;
      transition: all 0.2s;
    }
    .contrib-card:hover {
      background: rgba(31, 41, 55, 0.75);
      border-color: rgba(2, 132, 199, 0.3);
    }

    /* ==========================================================================
       Community Pulse (Resource Impact & Needs Radar) Styles
       ========================================================================== */
    .pulse-hero-banner {
      background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 60%),
                  radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.08), transparent 60%),
                  rgba(12, 20, 36, 0.95);
      border: 1px solid var(--border-color);
      border-radius: 18px;
      padding: 2.2rem 2rem 1.8rem;
      margin-bottom: 2rem;
      text-align: center;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    }
    .pulse-hero-badge {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      background: rgba(245, 158, 11, 0.12);
      border: 1px solid rgba(245, 158, 11, 0.35);
      color: #fbbf24;
      padding: 0.35rem 1rem;
      border-radius: 50px;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      margin-bottom: 1rem;
    }
    .pulse-hero-title {
      font-family: 'Outfit', sans-serif;
      font-size: clamp(2rem, 4vw, 2.75rem);
      font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 0.6rem;
      color: #fff;
    }
    .pulse-hero-title span {
      background: linear-gradient(135deg, #f59e0b, #10b981);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .pulse-hero-sub {
      color: var(--text-muted);
      font-size: 1rem;
      max-width: 760px;
      margin: 0 auto 1.75rem;
      line-height: 1.5;
    }
    .pulse-lens-container {
      display: inline-flex;
      background: rgba(0, 0, 0, 0.4);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 5px;
      gap: 0.4rem;
      margin-bottom: 1.25rem;
      flex-wrap: wrap;
      justify-content: center;
    }
    .pulse-lens-btn {
      padding: 0.65rem 1.35rem;
      border-radius: 9px;
      font-size: 0.9rem;
      font-weight: 700;
      color: var(--text-muted);
      background: transparent;
      border: none;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 0.6rem;
      transition: all 0.2s ease;
    }
    .pulse-lens-btn:hover {
      color: #fff;
      background: rgba(255, 255, 255, 0.05);
    }
    .pulse-lens-btn.active {
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(16, 185, 129, 0.2));
      color: #fff;
      border: 1px solid rgba(245, 158, 11, 0.4);
      box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
    }
    .pulse-categories-bar {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: center;
      margin-top: 0.5rem;
    }
    .pulse-cat-pill {
      background: rgba(255, 255, 255, 0.04);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
      padding: 0.45rem 0.95rem;
      border-radius: 8px;
      font-size: 0.82rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
    }
    .pulse-cat-pill:hover {
      color: #fff;
      border-color: rgba(255, 255, 255, 0.2);
      background: rgba(255, 255, 255, 0.08);
    }
    .pulse-cat-pill.active {
      background: rgba(56, 189, 248, 0.16);
      border-color: rgba(56, 189, 248, 0.5);
      color: #38bdf8;
      font-weight: 700;
    }
    .pulse-summary-strip {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 1.5rem;
      padding: 0.6rem 1rem;
      background: rgba(15, 23, 42, 0.6);
      border: 1px solid var(--border-color);
      border-radius: 10px;
      font-size: 0.85rem;
      color: var(--text-muted);
      flex-wrap: wrap;
      gap: 0.75rem;
    }
    .pulse-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
      gap: 1.4rem;
      margin-bottom: 3rem;
    }
    .pulse-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      transition: var(--transition);
      box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    }
    .pulse-card:hover {
      transform: translateY(-3px);
      border-color: var(--border-hover);
      box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    }
    .pulse-card-header {
      padding: 1.25rem 1.4rem 0.75rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }
    .pulse-rank-badge {
      font-family: 'Outfit', sans-serif;
      font-size: 0.82rem;
      font-weight: 800;
      padding: 3px 10px;
      border-radius: 7px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      letter-spacing: 0.02em;
    }
    .pulse-rank-gold {
      background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(217, 119, 6, 0.15));
      border: 1px solid rgba(245, 158, 11, 0.5);
      color: #fbbf24;
      box-shadow: 0 0 12px rgba(245, 158, 11, 0.25);
    }
    .pulse-rank-silver {
      background: linear-gradient(135deg, rgba(203, 213, 225, 0.25), rgba(148, 163, 184, 0.1));
      border: 1px solid rgba(203, 213, 225, 0.4);
      color: #e2e8f0;
    }
    .pulse-rank-bronze {
      background: linear-gradient(135deg, rgba(217, 119, 6, 0.22), rgba(180, 83, 9, 0.1));
      border: 1px solid rgba(217, 119, 6, 0.35);
      color: #fdba74;
    }
    .pulse-rank-standard {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      color: var(--text-muted);
    }
    .pulse-cat-badge {
      font-size: 0.72rem;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.3);
      color: #38bdf8;
    }
    .pulse-card-body {
      padding: 1.1rem 1.4rem 1.25rem;
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    .pulse-res-name {
      font-family: 'Outfit', sans-serif;
      font-size: 1.18rem;
      font-weight: 700;
      color: #fff;
      line-height: 1.3;
      margin-bottom: 0.35rem;
    }
    .pulse-org-link {
      font-size: 0.85rem;
      color: #38bdf8;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      margin-bottom: 0.85rem;
      font-weight: 600;
      transition: color 0.2s;
    }
    .pulse-org-link:hover {
      color: #7dd3fc;
      text-decoration: underline;
    }
    .pulse-meta-line {
      font-size: 0.8rem;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 0.45rem;
      margin-bottom: 0.4rem;
    }
    .pulse-callout-box {
      margin-top: 0.85rem;
      padding: 0.75rem 0.9rem;
      border-radius: 9px;
      font-size: 0.82rem;
      line-height: 1.4;
      flex: 1;
    }
    .pulse-callout-in-use {
      background: rgba(16, 185, 129, 0.08);
      border: 1px solid rgba(16, 185, 129, 0.25);
      color: #a7f3d0;
    }
    .pulse-callout-need {
      background: rgba(239, 68, 68, 0.08);
      border: 1px solid rgba(239, 68, 68, 0.25);
      color: #fca5a5;
    }
    .pulse-card-footer {
      padding: 0.85rem 1.4rem;
      background: rgba(0, 0, 0, 0.2);
      border-top: 1px solid var(--border-color);
      display: flex;
      gap: 0.5rem;
    }