@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --green: #25D366;
  --green-dark: #1aad52;
  --green-light: #e8fdf0;
  --blue: #1a73e8;
  --blue-light: #e8f0fe;
  --orange: #ff6b35;
  --bg: #f8fafc;
  --white: #ffffff;
  --card-bg: #ffffff;
  --text: #1a1a2e;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.4); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #1557b0; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--green-light); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  padding: 0 20px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
}
.nav-logo span { color: var(--green); }
.nav-logo .logo-badge {
  background: var(--green);
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 20px;
}
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--green); background: var(--green-light); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; }

/* HERO */
.hero {
  background: linear-gradient(135deg, #0f4c35 0%, #1a7a4a 50%, #25D366 100%);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
  animation: pulse 6s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
.hero h1 { font-size: clamp(28px,5vw,52px); font-weight: 800; margin-bottom: 12px; }
.hero h1 span { color: #a8ffcf; }
.hero p { font-size: clamp(14px,2vw,18px); opacity: 0.9; margin-bottom: 36px; }
.hero-search {
  display: flex;
  max-width: 680px;
  margin: 0 auto 40px;
  background: #fff;
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: transparent;
}
.hero-search button {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 28px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.hero-search button:hover { background: var(--green-dark); }
.hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.hero-stat h3 { font-size: 28px; font-weight: 800; }
.hero-stat p { font-size: 13px; opacity: 0.8; }

/* MODULE CARDS */
.modules { padding: 70px 20px; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: clamp(22px,3.5vw,36px); font-weight: 700; margin-bottom: 10px; }
.section-header p { color: var(--text-muted); font-size: 15px; }
.section-header h2 span { color: var(--green); }
.modules-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.module-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.module-card:hover::before { transform: scaleX(1); }
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--green-light); }
.module-icon { font-size: 52px; margin-bottom: 16px; }
.module-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.module-card p { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.module-count { font-size: 12px; font-weight: 600; color: var(--green); background: var(--green-light); padding: 4px 12px; border-radius: 20px; display: inline-block; }

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 16px; }
.card-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.card-price { font-size: 18px; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.card-location { font-size: 13px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.badge-green { background: var(--green); color: #fff; }
.badge-orange { background: var(--orange); color: #fff; }
.badge-blue { background: var(--blue); color: #fff; }
.badge-gray { background: #e2e8f0; color: #64748b; }
.badge-top { position: absolute; top: 12px; left: 12px; }

/* GRID LAYOUTS */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 24px; }

/* SECTION */
.section { padding: 70px 20px; }
.section-gray { background: #f1f5f9; }

/* FILTER BAR */
.filter-bar {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-bar input, .filter-bar select {
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--green); }
.filter-bar input { flex: 1; min-width: 180px; }

/* TABS */
.tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 20px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn.active, .tab-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* DASHBOARD */
.dashboard { display: flex; min-height: 100vh; }
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f4c35, #1a7a4a);
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow-y: auto;
  flex-shrink: 0;
}
.sidebar-logo { padding: 10px 20px 24px; font-size: 20px; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-menu { padding: 16px 0; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-left: 3px solid transparent;
}
.sidebar-item:hover { background: rgba(255,255,255,0.1); border-left-color: var(--green); }
.sidebar-item.active { background: rgba(37,211,102,0.2); border-left-color: var(--green); color: #a8ffcf; }
.sidebar-item .icon { font-size: 18px; }
.sidebar-label { font-size: 11px; color: rgba(255,255,255,0.5); padding: 12px 20px 4px; text-transform: uppercase; letter-spacing: 1px; }
.dash-main { flex: 1; padding: 30px; overflow-y: auto; }
.dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.dash-header h1 { font-size: 24px; font-weight: 700; }

/* STAT CARDS */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
}
.stat-icon { font-size: 36px; }
.stat-info h3 { font-size: 24px; font-weight: 700; }
.stat-info p { font-size: 12px; color: var(--text-muted); }

/* TABLE */
.table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg); padding: 14px 16px; font-size: 13px; font-weight: 600; text-align: left; color: var(--text-muted); }
td { padding: 14px 16px; font-size: 14px; border-top: 1px solid var(--border); }
tr:hover td { background: #f8fafc; }

/* FORM */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border 0.2s;
  background: #fff;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* MODAL */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from{transform:translateY(30px);opacity:0;} to{transform:translateY(0);opacity:1;} }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-size: 20px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text-muted); }

/* TESTIMONIALS */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.stars { color: #fbbf24; font-size: 16px; margin-bottom: 10px; }
.testimonial-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.reviewer-name { font-weight: 600; font-size: 14px; }
.reviewer-role { font-size: 12px; color: var(--text-muted); }

/* AUTH */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0f4c35, #25D366);
  padding: 20px;
}
.auth-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.auth-card h2 { font-size: 26px; font-weight: 700; margin-bottom: 6px; }
.auth-card p { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.role-option {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
}
.role-option .role-icon { font-size: 24px; margin-bottom: 6px; }
.role-option:hover, .role-option.selected { border-color: var(--green); background: var(--green-light); color: var(--green); }
.divider { text-align: center; color: var(--text-muted); font-size: 13px; margin: 16px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: 40%; height: 1px; background: var(--border); }
.divider::before { left: 0; }
.divider::after { right: 0; }

/* FOOTER */
footer {
  background: #0f1a14;
  color: #ccc;
  padding: 60px 20px 20px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 40px; margin-bottom: 40px; }
.footer-brand h2 { color: #fff; font-size: 22px; margin-bottom: 10px; }
.footer-brand h2 span { color: var(--green); }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; margin-bottom: 8px; color: #aaa; transition: color 0.2s; }
.footer-col a:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid #2d3748; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--green);
  color: #fff;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 6px 20px rgba(37,211,102,0.5);
  z-index: 999;
  animation: bounce 2s infinite;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-6px);} }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: block; }
  .sidebar { display: none; }
  .sidebar.open { display: block; position: fixed; z-index: 999; height: 100vh; top: 0; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .dash-main { padding: 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
}

/* UTILITY */
.text-green { color: var(--green); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.mt-1{margin-top:8px;} .mt-2{margin-top:16px;} .mt-3{margin-top:24px;} .mt-4{margin-top:32px;}
.mb-1{margin-bottom:8px;} .mb-2{margin-bottom:16px;} .mb-3{margin-bottom:24px;}
.flex{display:flex;} .flex-center{display:flex;align-items:center;justify-content:center;}
.gap-1{gap:8px;} .gap-2{gap:16px;}
.hidden { display: none !important; }
.tag {
  background: var(--green-light);
  color: var(--green);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}
.rating { color: #fbbf24; font-size: 14px; }
.chip {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}
.chip-green { background: #d1fae5; color: #065f46; }
.chip-orange { background: #ffedd5; color: #9a3412; }
.chip-blue { background: var(--blue-light); color: var(--blue); }
.chip-red { background: #fee2e2; color: #991b1b; }
.chip-gray { background: #f1f5f9; color: #475569; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .empty-icon { font-size: 60px; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
