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

:root {
  --green-900: #064e2a;
  --green-800: #0a6e3a;
  --green-700: #0d9148;
  --green-600: #10b956;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --green-100: #dcfce7;
  --green-50: #f0fdf4;

  --blue-700: #1d4ed8;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;

  --purple-700: #6d28d9;
  --purple-500: #8b5cf6;
  --purple-100: #ede9fe;

  --orange-700: #b45309;
  --orange-500: #f59e0b;
  --orange-100: #fef3c7;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: clamp(14px, 1.1vw + 0.5rem, 18px);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: var(--green-800);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(10, 110, 58, 0.3);
}

.btn-primary:hover {
  background: var(--green-700);
  box-shadow: 0 6px 20px rgba(10, 110, 58, 0.4);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: clamp(0.95rem, 1vw + 0.35rem, 1.15rem);
}

.btn-sm {
  padding: 10px 20px;
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ===== NAVIGATION ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: var(--transition);
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
}

.navbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.5px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 800;
  font-size: clamp(1rem, 1.1vw + 0.4rem, 1.25rem);
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.5px;
}

.logo-tagline {
  font-size: clamp(0.55rem, 0.6vw + 0.15rem, 0.7rem);
  opacity: 0.7;
  color: var(--white);
  font-weight: 500;
  line-height: 1.3;
  max-width: 200px;
}

#header.scrolled .logo-name {
  color: var(--gray-900);
}

#header.scrolled .logo-tagline {
  color: var(--gray-600);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-full);
  font-size: clamp(0.8rem, 0.85vw + 0.25rem, 0.92rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
}

#header.scrolled .nav-link {
  color: var(--gray-600);
}

#header.scrolled .nav-link:hover,
#header.scrolled .nav-link.active {
  color: var(--green-800);
  background: var(--green-50);
}

.nav-btn {
  margin-left: 4px;
  padding: 8px 20px;
  background: var(--green-800);
  color: var(--white) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: clamp(0.8rem, 0.85vw + 0.25rem, 0.92rem);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--green-700);
  transform: translateY(-1px);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

#header.scrolled .hamburger span {
  background: var(--gray-800);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #042a18 0%, #0a6e3a 40%, #0d9148 70%, #064e2a 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  color: var(--white);
  font-size: clamp(0.7rem, 0.8vw + 0.25rem, 0.85rem);
  font-weight: 600;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--green-400), #86efac);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.2vw + 0.4rem, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 700px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
}

.stat-number {
  font-size: clamp(2rem, 2.5vw + 0.5rem, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.stat-plus {
  font-size: clamp(1.3rem, 1.4vw + 0.4rem, 1.6rem);
  font-weight: 700;
}

.stat-label {
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  opacity: 0.85;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
}

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  transition: var(--transition);
}

.hero-scroll a:hover {
  color: var(--white);
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid currentColor;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.3; transform: translateY(8px); }
}

/* ===== SECTION COMMON ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: var(--radius-full);
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--gray-600);
  font-size: clamp(0.95rem, 1vw + 0.35rem, 1.15rem);
  max-width: 550px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-content h3 {
  font-size: clamp(1.3rem, 1.5vw + 0.4rem, 1.7rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.3;
}

.about-content p {
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-features {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-feature h4 {
  font-size: clamp(0.9rem, 1vw + 0.35rem, 1.05rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.about-feature p {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.5;
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-100);
}

.mission-icon {
  width: 52px;
  height: 52px;
  background: var(--green-800);
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.mission-card h4 {
  font-size: clamp(1rem, 1.1vw + 0.35rem, 1.15rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.mission-card p {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-600);
  line-height: 1.6;
}

.mission-card.values h4 {
  margin-bottom: 16px;
}

.values-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.values-list span {
  padding: 6px 14px;
  background: var(--green-50);
  color: var(--green-800);
  border-radius: var(--radius-full);
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  font-weight: 600;
  border: 1px solid var(--green-100);
}

/* ===== SERVICES ===== */
.services-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 24px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  color: var(--gray-600);
  font-weight: 600;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.tab-btn:hover {
  border-color: var(--green-800);
  color: var(--green-800);
}

.tab-btn.active {
  background: var(--green-800);
  color: var(--white);
  border-color: var(--green-800);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeInUp 0.5s ease;
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--green-100);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon.green {
  background: var(--green-100);
  color: var(--green-800);
}

.service-icon.blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.service-icon.purple {
  background: var(--purple-100);
  color: var(--purple-700);
}

.service-icon.orange {
  background: var(--orange-100);
  color: var(--orange-700);
}

.service-card h3 {
  font-size: clamp(1rem, 1.1vw + 0.35rem, 1.25rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray-600);
  font-size: clamp(0.9rem, 1vw + 0.35rem, 1.05rem);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-700);
  padding-left: 16px;
  position: relative;
}

.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
}

/* ===== MEMBERSHIP ===== */
.membership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.membership-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.membership-card.highlight-card {
  border-color: var(--green-200, #bbf7d0);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--green-100);
}

.membership-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--gray-100);
}

.membership-header h3 {
  font-size: clamp(1rem, 1.2vw + 0.35rem, 1.3rem);
  font-weight: 700;
  color: var(--gray-900);
}

.membership-list {
  padding: 24px 32px 32px;
}

.membership-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-50, #f9fafb);
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-700);
}

.membership-list li:last-child {
  border-bottom: none;
}

.membership-list li svg {
  min-width: 20px;
  margin-top: 2px;
}

.membership-card:first-child .membership-list li svg {
  color: var(--green-600);
}

.membership-card.highlight-card .membership-list li svg {
  color: var(--green-700);
}

.membership-cta {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--green-800), var(--green-700));
  border-radius: var(--radius-xl);
  color: var(--white);
}

.membership-cta h3 {
  font-size: clamp(1.3rem, 1.4vw + 0.4rem, 1.6rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.membership-cta p {
  opacity: 0.92;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.membership-cta .btn-primary {
  background: var(--white);
  color: var(--green-800);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.membership-cta .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ===== LEADERSHIP ===== */
.leadership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.leader-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.leader-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.leader-avatar {
  margin-bottom: 16px;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 1.2vw + 0.35rem, 1.4rem);
  font-weight: 700;
  margin: 0 auto;
}

.leader-card h4 {
  font-size: clamp(0.9rem, 1vw + 0.35rem, 1.15rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.leader-role {
  display: inline-block;
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  color: var(--green-700);
  font-weight: 600;
  margin-bottom: 10px;
}

.leader-card p {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-600);
  line-height: 1.5;
}

/* ===== NEWS ===== */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
}

.news-image {
  min-height: 180px;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 16px;
}

.news-card.featured .news-image {
  min-height: 240px;
}

.news-date-badge {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  color: var(--white);
  font-size: clamp(0.75rem, 0.8vw + 0.3rem, 0.9rem);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.news-content {
  padding: 24px;
}

.news-category {
  display: inline-block;
  padding: 4px 10px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 0.8vw + 0.3rem, 0.9rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.news-content h3 {
  font-size: clamp(0.95rem, 1.1vw + 0.35rem, 1.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
  line-height: 1.3;
}

.news-card.featured .news-content h3 {
  font-size: clamp(1.1rem, 1.2vw + 0.4rem, 1.4rem);
}

.news-content p {
  font-size: clamp(0.85rem, 1vw + 0.35rem, 1.05rem);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 12px;
}

.news-link {
  display: inline-block;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  font-weight: 600;
  color: var(--green-800);
  transition: var(--transition);
}

.news-link:hover {
  color: var(--green-600);
  transform: translateX(4px);
}

/* ===== CONTACT ===== */
.contact-intro {
  text-align: center;
  color: var(--gray-600);
  font-size: clamp(0.9rem, 1vw + 0.35rem, 1.05rem);
  max-width: 600px;
  margin: -8px auto 40px;
  line-height: 1.7;
}

.contact-detail {
  font-size: clamp(0.75rem, 0.8vw + 0.25rem, 0.85rem);
  color: var(--gray-500);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
  align-items: start;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item h4 {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.contact-item p {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-600);
  line-height: 1.6;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-100);
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-800);
  background: var(--gray-50);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(10, 110, 58, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-about p {
  margin-top: 16px;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  line-height: 1.7;
  color: var(--gray-300);
}

.footer-logo .logo-name,
.footer-logo .logo-tagline {
  color: var(--white);
}

.footer-logo .logo-tagline {
  opacity: 0.7;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-400);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--green-700);
  color: var(--white);
}

.footer-links h4,
.footer-newsletter h4 {
  color: var(--white);
  font-size: clamp(0.95rem, 1vw + 0.35rem, 1.15rem);
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul a {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-300);
  transition: var(--transition);
}

.footer-links ul a:hover {
  color: var(--green-400);
  padding-left: 4px;
}

.footer-newsletter p {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  line-height: 1.6;
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
}

.newsletter-form input::placeholder {
  color: var(--gray-400);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--green-600);
}

.newsletter-form .btn-primary {
  background: var(--green-700);
  border: none;
}

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  color: var(--gray-300);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--green-400);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--green-800);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green-700);
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .membership-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .news-card.featured {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 100px 32px 32px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    gap: 4px;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    color: var(--gray-700);
    width: 100%;
    padding: 12px 16px;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--green-800);
    background: var(--green-50);
  }

  .nav-btn {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
    justify-content: center;
    width: 100%;
    display: flex;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: clamp(1.5rem, 1.8vw + 0.5rem, 2rem);
  }

  .section {
    padding: 60px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .leadership-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* ==================================================================
   PORTAL STYLES
   ================================================================== */

.portal-body {
  background: var(--gray-50);
}

/* Portal Header */
.portal-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.portal-header .navbar {
  height: 70px;
}

.portal-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.portal-nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}

.portal-nav-link:hover,
.portal-nav-link.active {
  color: var(--green-800);
  background: var(--green-50);
}

/* Auth Section */
.portal-auth {
  min-height: 100vh;
  padding-top: 70px;
  display: flex;
  align-items: stretch;
}

.portal-auth-bg {
  position: fixed;
  inset: 0;
  background: var(--gray-50);
  z-index: -1;
}

.portal-auth-container {
  display: flex;
  width: 100%;
  min-height: calc(100vh - 70px);
}

.portal-auth-sidebar {
  width: 380px;
  min-width: 380px;
  background: linear-gradient(135deg, #042a18 0%, #0a6e3a 60%, #0d9148 100%);
  color: var(--white);
  padding: 48px 36px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.portal-auth-sidebar::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
}

.portal-auth-sidebar::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.portal-auth-sidebar-content {
  position: relative;
  z-index: 1;
}

.portal-auth-sidebar-icon {
  width: 72px;
  height: 72px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.portal-auth-sidebar h2 {
  font-size: clamp(1.5rem, 1.8vw + 0.5rem, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.portal-auth-sidebar p {
  opacity: 0.8;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  line-height: 1.6;
  margin-bottom: 32px;
}

.portal-auth-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  opacity: 0.9;
}

.portal-auth-feature svg {
  opacity: 0.7;
}

/* Auth Forms */
.portal-auth-forms {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow-y: auto;
  max-height: calc(100vh - 70px);
}

.auth-form-panel {
  display: none;
  width: 100%;
  max-width: 560px;
}

.auth-form-panel.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.auth-form-header {
  margin-bottom: 32px;
}

.auth-form-header h2 {
  font-size: clamp(1.5rem, 1.8vw + 0.5rem, 2rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.auth-form-header p {
  color: var(--gray-500);
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
}

.auth-form .form-group {
  margin-bottom: 18px;
}

.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 14px;
  color: var(--gray-400);
  pointer-events: none;
}

.input-with-icon input {
  padding-left: 42px !important;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  padding: 4px;
}

.toggle-password:hover {
  color: var(--gray-600);
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  color: var(--gray-600);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--green-800);
}

.form-link {
  color: var(--green-800);
  font-weight: 600;
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
}

.form-link:hover {
  color: var(--green-600);
}

.auth-form-footer {
  margin-top: 24px;
  text-align: center;
}

.auth-form-footer p {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-500);
}

.btn-outline-dark {
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  border: 2px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-outline-dark:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

/* Form Steps */
.form-steps {
  position: relative;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.step-title {
  font-size: clamp(0.95rem, 1.1vw + 0.35rem, 1.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--green-100);
}

.form-step-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-indicators {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: var(--transition);
}

.step-dot.active {
  background: var(--green-800);
  width: 28px;
  border-radius: 5px;
}

.step-dot.completed {
  background: var(--green-500);
}

.step-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.terms-check {
  margin-top: 16px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

/* Password Strength */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
}

.strength-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.strength-text {
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  color: var(--gray-500);
}

/* ===== PAYMENT METHODS ===== */
.payment-summary-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  background: var(--green-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-100);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.payment-summary-item {
  text-align: center;
}

.payment-summary-item .label {
  display: block;
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  color: var(--gray-500);
  margin-bottom: 4px;
}

.payment-summary-item .value {
  font-weight: 700;
  font-size: clamp(0.9rem, 1vw + 0.35rem, 1.1rem);
  color: var(--gray-900);
}

.payment-summary-item.total .value {
  color: var(--green-800);
  font-size: clamp(1rem, 1.2vw + 0.35rem, 1.3rem);
}

.payment-summary-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-300);
}

.payment-methods h4 {
  font-size: clamp(0.9rem, 1vw + 0.35rem, 1.1rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.payment-method-card {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
  background: var(--white);
}

.payment-method-card:hover {
  border-color: var(--gray-300);
}

.payment-method-card.selected {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(10, 110, 58, 0.1);
}

.payment-method-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-method-header:hover {
  background: var(--gray-50);
}

.payment-method-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-icon { background: var(--blue-100); color: var(--blue-700); }
.airtel-icon { background: #fde8e8; color: #dc2626; }
.momo-icon { background: #fef3c7; color: #b45309; }
.visa-icon { background: #ede9fe; color: #6d28d9; }

.payment-method-info {
  flex: 1;
}

.payment-method-info h4 {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.payment-method-info p {
  font-size: clamp(0.75rem, 0.8vw + 0.25rem, 0.9rem);
  color: var(--gray-500);
}

.payment-method-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.payment-method-card.selected .payment-method-radio {
  border-color: var(--green-600);
}

.radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: var(--transition);
}

.payment-method-card.selected .radio-dot {
  background: var(--green-600);
}

.payment-method-details {
  display: none;
  padding: 0 20px 24px;
  border-top: 1px solid var(--gray-100);
}

.payment-method-card.selected .payment-method-details {
  display: block;
  animation: fadeInUp 0.3s ease;
}

/* Bank Details */
.bank-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}

.bank-detail {
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius);
}

.bank-label {
  display: block;
  font-size: clamp(0.65rem, 0.7vw + 0.25rem, 0.8rem);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.bank-value {
  font-weight: 700;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  color: var(--gray-900);
}

.account-number {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.95rem, 1.1vw + 0.35rem, 1.2rem);
  color: var(--blue-700);
}

/* Mobile Money */
.mobile-money-info {
  margin: 16px 0;
}

.mm-number-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mm-label {
  display: block;
  width: 100%;
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  color: var(--gray-500);
  margin-bottom: 4px;
}

.mm-number {
  font-size: clamp(1.2rem, 1.3vw + 0.4rem, 1.5rem);
  font-weight: 800;
  color: var(--gray-900);
  font-family: 'Courier New', monospace;
}

.mm-number.momo-color { color: var(--orange-700); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--green-800);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.copy-btn:hover {
  background: var(--green-700);
}

.copy-btn.copied {
  background: #16a34a;
}

.mm-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mm-detail {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  color: var(--gray-600);
  padding: 4px 0;
}

.mm-detail strong {
  color: var(--green-800);
}

/* Payment Instructions */
.payment-instructions {
  margin: 16px 0;
}

.payment-instructions h5 {
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.payment-instructions ol {
  list-style: none;
  counter-reset: step;
}

.payment-instructions ol li {
  counter-increment: step;
  padding: 8px 0 8px 32px;
  position: relative;
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  color: var(--gray-600);
  line-height: 1.5;
  border-bottom: 1px solid var(--gray-50);
}

.payment-instructions ol li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  background: var(--green-100);
  color: var(--green-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.65rem, 0.7vw + 0.2rem, 0.8rem);
  font-weight: 700;
}

/* MoMo Pay QR */
.momo-pay-option {
  margin-top: 16px;
  padding: 16px;
  background: var(--orange-100);
  border-radius: var(--radius);
  border: 1px solid rgba(180, 83, 9, 0.15);
}

.momo-pay-option p {
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  color: var(--gray-700);
  line-height: 1.5;
}

.qr-placeholder {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.qr-box {
  width: 140px;
  height: 140px;
  background: var(--white);
  border-radius: var(--radius);
  border: 2px dashed var(--gray-300);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.qr-box span {
  font-size: clamp(0.6rem, 0.65vw + 0.2rem, 0.75rem);
  color: var(--gray-500);
  font-weight: 600;
}

/* Upload Proof */
.upload-proof {
  margin-top: 16px;
}

.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.upload-area:hover {
  border-color: var(--green-600);
  background: var(--green-50);
}

.upload-area input {
  display: none;
}

.upload-area svg {
  color: var(--gray-400);
  margin-bottom: 8px;
}

.upload-area span {
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 4px;
}

.upload-area small {
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  color: var(--gray-400);
}

.upload-preview {
  margin-top: 12px;
  padding: 12px;
  background: var(--green-50);
  border-radius: var(--radius);
  border: 1px solid var(--green-100);
}

/* Card Payment */
.card-payment-form {
  padding: 16px 0;
}

.card-brands {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.card-brand {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  font-weight: 800;
  letter-spacing: 1px;
}

.visa-brand { background: #1a1f71; color: white; }
.mastercard-brand { background: #eb001b; color: white; }
.unionpay-brand { background: #003478; color: white; }

.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--green-50);
  border-radius: var(--radius-full);
  font-size: clamp(0.75rem, 0.8vw + 0.25rem, 0.9rem);
  color: var(--green-800);
  font-weight: 600;
  margin-bottom: 20px;
  width: fit-content;
}

.card-note {
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  color: var(--gray-400);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.readonly-input {
  background: var(--gray-100) !important;
  color: var(--gray-600) !important;
  font-weight: 700;
}

/* Payment Confirm */
.payment-confirm-section {
  margin-top: 28px;
  text-align: center;
}

.payment-note {
  font-size: clamp(0.75rem, 0.8vw + 0.25rem, 0.9rem);
  color: var(--gray-500);
  margin-top: 12px;
}

/* ===== DASHBOARD ===== */
.portal-dashboard {
  padding-top: 70px;
  min-height: 100vh;
}

.dashboard-container {
  display: flex;
  min-height: calc(100vh - 70px);
}

.dashboard-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
}

.sidebar-profile {
  text-align: center;
  padding: 24px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.sidebar-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.1rem, 1.2vw + 0.35rem, 1.4rem);
  font-weight: 700;
  margin: 0 auto 12px;
}

.sidebar-profile h4 {
  font-size: clamp(0.9rem, 1vw + 0.35rem, 1.1rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.member-id {
  display: block;
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  color: var(--gray-500);
  font-family: 'Courier New', monospace;
  margin-bottom: 8px;
}

.member-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: clamp(0.65rem, 0.7vw + 0.2rem, 0.8rem);
  font-weight: 600;
}

.active-status {
  background: var(--green-100);
  color: var(--green-800);
}

.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
  font-weight: 500;
  color: var(--gray-600);
  transition: var(--transition);
}

.sidebar-link:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.sidebar-link.active {
  background: var(--green-50);
  color: var(--green-800);
  font-weight: 600;
}

.sidebar-logout {
  margin-top: auto;
  color: #dc2626;
}

.sidebar-logout:hover {
  background: #fef2f2;
}

/* Dashboard Main */
.dashboard-main {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.dash-tab {
  display: none;
}

.dash-tab.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.dash-header {
  margin-bottom: 28px;
}

.dash-header h2 {
  font-size: clamp(1.3rem, 1.5vw + 0.4rem, 1.7rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.dash-header p {
  color: var(--gray-500);
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
}

.dash-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.dash-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: var(--transition);
}

.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.dash-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.green-card .dash-card-icon { background: var(--green-100); color: var(--green-800); }
.blue-card .dash-card-icon { background: var(--blue-100); color: var(--blue-700); }
.purple-card .dash-card-icon { background: var(--purple-100); color: var(--purple-700); }
.orange-card .dash-card-icon { background: var(--orange-100); color: var(--orange-700); }

.dash-card-label {
  display: block;
  font-size: clamp(0.75rem, 0.8vw + 0.25rem, 0.9rem);
  color: var(--gray-500);
  margin-bottom: 6px;
}

.dash-card-value {
  display: block;
  font-size: clamp(1.2rem, 1.3vw + 0.4rem, 1.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.dash-card-change {
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  color: var(--gray-500);
}

.dash-card-change.positive {
  color: #16a34a;
}

.dash-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  padding: 24px;
}

.dash-section h3 {
  font-size: clamp(0.95rem, 1.1vw + 0.35rem, 1.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.dash-table-wrapper {
  overflow-x: auto;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th,
.dash-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: clamp(0.8rem, 0.9vw + 0.3rem, 0.95rem);
  border-bottom: 1px solid var(--gray-100);
}

.dash-table th {
  color: var(--gray-500);
  font-weight: 600;
  font-size: clamp(0.7rem, 0.75vw + 0.25rem, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-table td {
  color: var(--gray-700);
}

.positive-amount { color: #16a34a; font-weight: 600; }
.negative-amount { color: #dc2626; font-weight: 600; }

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: clamp(0.65rem, 0.7vw + 0.2rem, 0.8rem);
  font-weight: 600;
}

.status-badge.completed {
  background: var(--green-100);
  color: var(--green-800);
}

.status-badge.pending {
  background: var(--orange-100);
  color: var(--orange-700);
}

/* Loan Apply Card */
.loan-apply-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.loan-apply-card h3 {
  font-size: clamp(0.95rem, 1.1vw + 0.35rem, 1.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.loan-apply-card p {
  color: var(--gray-500);
  margin-bottom: 20px;
  font-size: clamp(0.85rem, 0.9vw + 0.3rem, 1rem);
}

/* Settings */
.settings-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--gray-100);
}

.settings-card h3 {
  font-size: clamp(0.95rem, 1.1vw + 0.35rem, 1.2rem);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 20px;
}

.settings-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* ===== PORTAL RESPONSIVE ===== */
@media (max-width: 1024px) {
  .portal-auth-sidebar {
    display: none;
  }

  .portal-auth-forms {
    max-width: 100%;
  }

  .dashboard-sidebar {
    width: 240px;
    min-width: 240px;
  }
}

@media (max-width: 768px) {
  .portal-nav-links {
    display: none;
  }

  .portal-auth-container {
    flex-direction: column;
  }

  .portal-auth-forms {
    padding: 24px;
  }

  .auth-form .form-row {
    grid-template-columns: 1fr;
  }

  .dashboard-container {
    flex-direction: column;
  }

  .dashboard-sidebar {
    width: 100%;
    min-width: 100%;
    flex-direction: row;
    overflow-x: auto;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }

  .sidebar-profile {
    display: none;
  }

  .sidebar-nav {
    flex-direction: row;
    padding: 0;
    gap: 4px;
    overflow-x: auto;
    flex: unset;
  }

  .sidebar-link {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: clamp(0.75rem, 0.8vw + 0.25rem, 0.9rem);
  }

  .sidebar-logout {
    margin-top: 0;
    margin-left: auto;
  }

  .dashboard-main {
    padding: 20px;
  }

  .dash-cards {
    grid-template-columns: 1fr;
  }

  .bank-details-grid {
    grid-template-columns: 1fr;
  }

  .payment-summary-bar {
    flex-direction: column;
    gap: 12px;
  }

  .payment-summary-divider {
    width: 60px;
    height: 1px;
  }

  .settings-form .form-row {
    grid-template-columns: 1fr;
  }
}
