:root {
  --primary: #F9F9FA;
  --accent: #f53333;
  --text: #1E1E2F;
  --secondary: #2C2C3E;
  --primary-bg: #fefefe;
  --secondary-bg: #ffffff;
  --tertiary-bg: #f8f9fa;
  --card-bg: rgba(255, 255, 255, 0.95);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --accent-primary: #ef4444;
  --accent-secondary: #dc2626;
  --accent-tertiary: #b91c1c;
  --accent-coral: #f97316;
  --accent-pink: #ec4899;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --border-primary: rgba(239, 68, 68, 0.15);
  --border-secondary: rgba(0, 0, 0, 0.06);
  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-coral));
  --gradient-secondary: linear-gradient(135deg, var(--accent-secondary), var(--accent-pink));
  --gradient-bg: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,1), rgba(248,249,250,1));
  --shadow-primary: 0 8px 32px rgba(239, 68, 68, 0.08);
  --shadow-secondary: 0 8px 32px rgba(220, 38, 38, 0.08);
  --shadow-card: 0 16px 40px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(239, 68, 68, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--text);
  color: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
  padding: 0 5rem;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  align-items: center;
  height: 100px;
}

.landing-page-container-codemate-logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.landing-page-container-codemate-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.navbar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: inherit;
}

.nav-link:hover { color: var(--accent); }

.header-profile {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-profile-pic {
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: block;
  border: 2px solid #fff;
  cursor: pointer;
}

.dropdown {
  position: absolute;
  top: 80px;
  right: 5rem;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  width: 220px;
  display: none;
  z-index: 1001;
  padding: 0.8rem 0.5rem;
}

.dropdown.show { display: block; }

.dropdown a {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
  cursor: pointer;
}

.dropdown a:hover { background: #f0f0f0; }
.dropdown a i { margin-right: 10px; color: #666; }
hr { margin: 0.5rem 0.7rem; }

/* ===== HAMBURGER ===== */
.topnav {
  display: none;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-icon {
  width: 28px;
  height: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.menu-icon span {
  background-color: white;
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-icon.active .bar1 { transform: translateY(9px) rotate(45deg); }
.menu-icon.active .bar2 { opacity: 0; transform: scaleX(0); }
.menu-icon.active .bar3 { transform: translateY(-9px) rotate(-45deg); }

#myLinks {
  display: none;
  position: fixed;
  top: 100px;
  left: 0;
  width: 100%;
  background: #1E1E2F;
  z-index: 998;
  flex-direction: column;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

#myLinks.show { display: flex; }

#myLinks a {
  padding: 1rem 2rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.2s;
}

#myLinks a:hover { background: rgba(255,255,255,0.05); }

/* ===== PAGE CONTENT ===== */
.main-content {
  max-width: 1250px;
  margin: 0 auto;
  padding: 0 2rem;
}

.donate-header {
  text-align: center;
  margin: 0 auto;
  margin-bottom: 5rem;
  padding-top: 8rem;
}

.donate-heading {
  font-size: 3.5rem;
  background: var(--text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 2.5rem;
}

.donate-subtitle {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.main-donation-area {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.donation-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-smooth);
}

.donation-card:hover {
  box-shadow: var(--shadow-secondary);
  border-color: var(--accent-coral);
}

.donation-card h2 {
  font-size: 1.5rem;
  margin: 0 0 1.5rem 0;
  color: var(--text-primary);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.amount-btn {
  padding: 1rem;
  border: 2px solid var(--border-secondary);
  background: var(--secondary-bg);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-smooth);
  color: var(--text);
}

.amount-btn:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.amount-btn.active { background: var(--gradient-primary); color: white; border-color: var(--accent-primary); }

.custom-section { margin-bottom: 1.5rem; }

.custom-section label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.custom-input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--border-secondary);
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.custom-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.donate-btn {
  width: 100%;
  padding: 1.2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-primary);
  margin-bottom: 1rem;
}

.donate-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.donate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.benefits-section {
  background: var(--secondary-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-primary);
}

.benefits-section h3 {
  font-size: 1.3rem;
  margin: 0 0 2.5rem 0;
  color: var(--text-primary);
}

.benefit-item { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.benefit-item:last-child { margin-bottom: 0; }

.benefit-icon {
  background: linear-gradient(135deg, #fef2f2, #fecaca);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  flex-shrink: 0;
  font-size: 1.2rem;
}

.benefit-text { flex: 1; padding-bottom: 1rem; }
.benefit-text strong { display: block; color: var(--text-primary); margin-bottom: 0.2rem; }
.benefit-text span { font-size: 0.9rem; color: var(--text-secondary); }

.features-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background: var(--secondary-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-primary);
  transition: var(--transition-smooth);
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-secondary); border-color: var(--accent-coral); }

.feature-card i {
  font-size: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.feature-card h4 { margin: 0 0 0.8rem 0; color: var(--text-primary); }
.feature-card p { margin: 0; font-size: 0.95rem; color: var(--text-secondary); }

.impact-section {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--text) 100%);
  color: white;
  border-radius: 16px;
  padding: 3rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-secondary);
}

.impact-section h2 { font-size: 2rem; margin: 0 0 1rem 0; }
.impact-section p { font-size: 1.1rem; margin: 0 0 1.5rem 0; line-height: 1.7; opacity: 0.9; }

.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.impact-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 1.5rem;
}

.impact-item strong { display: block; font-size: 1.3rem; margin-bottom: 0.5rem; }

.faq-section { margin-bottom: 4rem; }
.faq-section h2 { font-size: 2rem; margin-bottom: 2rem; color: var(--text-primary); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.faq-item {
  background: var(--secondary-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.faq-item:hover { border-color: var(--accent-coral); box-shadow: var(--shadow-primary); }

.faq-item strong {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.faq-item strong i { color: var(--accent-primary); font-size: 1.2rem; }
.faq-item p { margin: 0; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

#paypal-button-container {
  background: #f0f4ff;
  border: 2px solid #c7d7ff;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.trust-section {
  background: var(--secondary-bg);
  border: 1px solid var(--border-secondary);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  margin-bottom: 5.5rem;
  box-shadow: var(--shadow-primary);
}

.trust-section h3 { margin: 0 0 1.5rem 0; color: var(--text-primary); }

.trust-badges { display: flex; justify-content: center; gap: 2rem; flex-wrap: wrap; }

.badge { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.badge i { font-size: 2rem; color: var(--accent-primary); }
.badge span { font-size: 0.85rem; color: var(--text-secondary); font-weight: 500; }

/* ===== CONTRIBUTOR STYLES ===== */
.golden-username {
  background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 3s linear infinite;
  font-weight: 700;
}

@keyframes goldShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.contributor-frame {
  position: relative;
  display: inline-block;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #FFD700, #ef4444, #FFD700);
  background-size: 300% 300%;
  animation: frameRotate 4s linear infinite;
}

.contributor-frame img { display: block; border-radius: 50%; border: 2px solid #fff; }

@keyframes frameRotate {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.donor-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.donor-badge--bronze { background: linear-gradient(135deg, #cd7f32, #b8860b); color: white; }
.donor-badge--silver { background: linear-gradient(135deg, #C0C0C0, #A8A8A8); color: #1f2937; }
.donor-badge--gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1f2937; }
.donor-badge--platinum { background: linear-gradient(135deg, #E5E4E2, #BCC6CC); color: #1f2937; box-shadow: 0 0 12px rgba(229,228,226,0.6); }

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

/* ===== RESPONSIVE ===== */
@media (min-width: 1000px) and (max-width: 1406px) {
  .header { padding: 0 2rem; }
  .navbar { flex-wrap: nowrap; white-space: nowrap; gap: 15px; }
}

@media (max-width: 1000px) {
  .header { padding: 0 1rem; padding-left: 2rem; }
  .navbar { flex-wrap: nowrap; white-space: nowrap; gap: 15px; }
  .landing-page-container-codemate-logo { flex: 0 0 250px; margin-right: 2rem; }
  .landing-page-container-codemate-logo a span { font-size: 1.5rem !important; }
  .landing-page-container-codemate-logo a img { height: 48px !important; width: 48px !important; }
}

@media (max-width: 1024px) {
  .header { padding: 0 2rem; }
  .dropdown { right: 2rem; }
  .landing-page-container-codemate-logo a span { font-size: 1.4rem !important; }
}

@media (max-width: 900px) {
  .landing-page-container-codemate-logo { margin-right: 0.5rem; }
  .main-donation-area { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .header { padding: 0 1.2rem; height: 70px; }
  .landing-page-container-codemate-logo { flex: 1; }
  .navbar { display: none; }
  .header-profile { flex: 0; margin-right: 1rem; }
  .topnav { display: flex; }
  #myLinks { top: 70px; }
  .dropdown { right: 1rem; top: 60px; }

  .donate-heading { font-size: 2.2rem; }
  .donate-subtitle { font-size: 1rem; padding: 0 1rem; }
  .donate-header { padding-top: 5rem; margin-bottom: 3rem; }
  .main-content { padding: 0 1rem; }
  .features-section { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: 1fr; }
  .trust-badges { gap: 1rem; }
  .impact-section { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .header { padding: 0 1rem; }
  .donate-heading { font-size: 1.8rem; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
}