html, body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  margin:0; 
  padding:0; 
  box-sizing:border-box; 
  font-family:'Segoe UI',system-ui,sans-serif;
}

.counter {
  display: inline-block;
  min-width: 120px;
}

:root {
  --blue:#1e40af; --blue-dark:#1e3a8a; --gold:#d4af37; --gold-light:#fbbf24;
  --bg:#f8fafc; --bg-card:#fff; --text:#0f172a; --text-muted:#64748b; --border:#e2e8f0;
}
[data-theme="dark"] {
  --bg:#0f172a; --bg-card:#1e293b; --text:#f1f5f9; --text-muted:#94a3b8; --border:#475569;
}
body {background:var(--bg); color:var(--text); transition:0.3s;}

.navbar {
  display:flex; 
  justify-content:space-between; 
  align-items:center;
  padding:1rem 4%; 
  background:var(--bg-card); 
  border-bottom:1px solid var(--border);
  position:sticky; 
  top:0; 
  z-index:1000;
  width: 100%;
  max-width: 100%;
  gap: 1rem;
}
.logo {
  font-size:1.6rem; 
  font-weight:800; 
  color:var(--blue); 
  text-decoration:none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span {color:var(--gold);}
.nav-links {display:flex; gap:2rem; list-style:none;}
.nav-links a {text-decoration:none; color:var(--text); font-weight:500;}
.nav-links a:hover {color:var(--gold);}

.auth-btns {
  display:flex; 
  gap:0.5rem; 
  align-items:center;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.btn {
  padding:0.6rem 1.2rem; 
  border-radius:8px; 
  text-decoration:none; 
  font-weight:600;
  border:none; 
  cursor:pointer; 
  transition:0.3s;
  white-space: nowrap;
}
.btn-gold {background:linear-gradient(135deg,var(--gold),var(--gold-light)); color:#1e293b;}
.btn-outline {background:transparent; border:2px solid var(--blue); color:var(--blue);}
.btn-outline:hover {background:var(--blue); color:#fff;}
.theme-toggle {
  background:none; border:2px solid var(--border); padding:0.6rem; border-radius:8px;
  cursor:pointer; color:var(--text);
  flex-shrink: 0;
}
.hamburger {display:none; font-size:1.8rem; cursor:pointer; color:var(--text); flex-shrink: 0;}

.hero {
  padding:6rem 5%; text-align:center; 
  background:linear-gradient(135deg,var(--blue),var(--blue-dark)); color:#fff;
}
.hero h1 {font-size:3rem; margin-bottom:1rem; font-weight:800;}
.hero p {font-size:1.2rem; max-width:700px; margin:0 auto 2rem; opacity:0.95;}
.hero-btns {display:flex; gap:1rem; justify-content:center; flex-wrap:wrap;}

.stats {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:2rem; padding:4rem 5%; background:var(--bg-card);
}
.stat-card {text-align:center; padding:2rem; background:var(--bg); border-radius:12px;}
.stat-card h3 {font-size:3rem; color:var(--gold); font-weight:800;}
.stat-card p {color:var(--text-muted); font-weight:500;}

.container {max-width:1200px; margin:0 auto; padding:0 5%;}
.section {padding:4rem 0;}
.section-alt {background:var(--bg);}
.section-title {text-align:center; margin-bottom:3rem;}
.section-title h2 {font-size:2.5rem; color:var(--blue); margin-bottom:1rem;}
.underline {width:80px; height:4px; background:var(--gold); margin:1rem auto;}

.card-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:2rem;
}
.card {
  background:var(--bg-card); padding:2rem; border-radius:12px; border:1px solid var(--border);
  transition:0.3s;
}
.card:hover {transform:translateY(-5px); box-shadow:0 10px 30px rgba(0,0,0,0.1);}
.card i {font-size:2.5rem; color:var(--gold); margin-bottom:1rem;}
.card h3 {color:var(--blue); margin-bottom:1rem;}

.feature-list {
  max-width:800px; margin:0 auto; display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:1rem;
}
.feature-list li {
  list-style:none; padding:1rem 1.5rem; background:var(--bg-card);
  border-radius:8px; border-left:4px solid var(--gold);
}
.feature-list li::before {
  content:"✓"; color:var(--gold); margin-right:0.8rem; font-weight:800;
}

.testimonials {background:var(--bg); padding:4rem 5%;}
.testimonial-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:2rem;
}
.testimonial {
  background:var(--bg-card); padding:2rem; border-radius:12px; border-left:4px solid var(--gold);
}
.testimonial p {font-style:italic; color:var(--text-muted); margin-bottom:1rem;}
.testimonial .author {font-weight:700; color:var(--blue);}

.faq {padding:4rem 5%;}
.faq-item {
  background:var(--bg-card); padding:1.5rem; margin-bottom:1rem;
  border-radius:8px; border:1px solid var(--border);
}
.faq-item h4 {color:var(--blue); margin-bottom:0.5rem;}

.cta {
  padding:5rem 5%; text-align:center; 
  background:linear-gradient(135deg,var(--blue),var(--gold)); color:#fff;
}
.cta h2 {font-size:2.5rem; margin-bottom:1rem;}

footer {
  background:var(--blue-dark); color:#fff; padding:3rem 5%; text-align:center;
}
.footer-content {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:2rem; margin-bottom:2rem; text-align:left;
}
.footer-col h3 {color:var(--gold); margin-bottom:1rem;}
.footer-col ul {list-style:none;}
.footer-col ul li {margin-bottom:0.8rem;}
.footer-col ul li a {color:#cbd5e1; text-decoration:none;}
.footer-col ul li a:hover {color:var(--gold);}

@media(max-width:768px){
  .nav-links {
    display:none; 
    position:absolute; 
    top:70px; 
    left:0; 
    right:0;
    width: 100%;
    background:var(--bg-card); 
    flex-direction:column; 
    padding:2rem;
    border-bottom:1px solid var(--border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .nav-links.active {display:flex;}
  
  .hamburger {
    display:block !important;
    font-size:1.8rem; 
    cursor:pointer; 
    color:var(--text);
  }
  
  .hero h1 {font-size:2rem;}
  .stats {grid-template-columns:1fr 1fr;}
  .auth-btns {
    gap: 0.4rem;
  }
  .btn {
    padding: 0.5rem 0.9rem;
    font-size: 0.88rem;
  }
  .logo {
    font-size: 1.4rem;
  }
}
@media(max-width:400px){
  .navbar {
    padding: 0.8rem 3%;
  }
  .logo {
    font-size: 1.2rem;
  }
  .btn {
    padding: 0.45rem 0.7rem;
    font-size: 0.82rem;
  }
  .theme-toggle {
    padding: 0.45rem;
  }
}
@media(max-width:480px){
  .stats {grid-template-columns:1fr;}
  .hero h1 {font-size:1.8rem;}
}
/* Force card grid to work */
.card-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 2rem !important;
  padding: 0 5%;
}

.card {
  background: var(--bg-card) !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  border: 1px solid var(--border) !important;
  text-align: left !important;
}

.card i {
  font-size: 2.5rem !important;
  color: var(--gold) !important;
  margin-bottom: 1rem !important;
  display: block !important;
}

.card h3 {
  color: var(--blue) !important;
  margin-bottom: 1rem !important;
  font-size: 1.5rem !important;
}

.card p {
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
}

/* Mobile fix */
@media(max-width:768px){
  .card-grid {
    grid-template-columns: 1fr !important;
  }
}
input:focus {
  outline:none;
  border-color:var(--gold);
  box-shadow:0 0 0 2px rgba(212,175,55,0.2);
}

label {
  color:var(--text);
}

.activity-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
}

.activity-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(212,175,55,0.15);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-text {
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.activity-text strong {
  color: var(--gold);
}

.activity-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.activity-amount {
  color: #00c851;
  font-weight: 700;
  white-space: nowrap;
}

.activity-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
}

/* Mobile */
@media (max-width: 768px) {
  .activity-card {
    padding: 1rem;
  }
}