/* ============================================================
   KIKUUK — Design System
   Paleta: Verde + Negro + Blanco
   ============================================================ */

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

/* ---- Variables ---- */
:root {
  --green-950: #0a1a0a;
  --green-900: #0f2b0f;
  --green-800: #1a3a1a;
  --green-700: #1e5c1e;
  --green-600: #2d7a2d;
  --green-500: #3d9c3d;
  --green-400: #4caf50;
  --green-300: #6abf6a;
  --green-200: #81c784;
  --green-100: #c8e6c9;
  --green-50:  #f1f8f1;

  --cream: #f9f6f0;
  --cream-dark: #ede9e0;
  --white: #ffffff;
  --black: #0d0d0d;
  --gray-800: #1f1f1f;
  --gray-600: #444444;
  --gray-400: #888888;
  --gray-200: #d0d0d0;
  --gray-100: #f3f3f3;

  --gold: #f5a623;
  --gold-light: #fdd07a;
  --red: #e53935;
  --orange: #ff7043;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.14);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.22);
  --shadow-green: 0 4px 24px rgba(77,175,74,0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);

  --font-main: 'Inter', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;

  --header-h: 68px;
  --sidebar-w: 380px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-main); cursor: pointer; border: none; outline: none; }
input, textarea, select { font-family: var(--font-main); outline: none; border: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--green-200); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--green-400); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1,h2,h3,h4,h5,h6 { line-height: 1.2; font-weight: 700; }
.display { font-family: var(--font-display); }
.text-xs  { font-size: 0.75rem; }
.text-sm  { font-size: 0.875rem; }
.text-md  { font-size: 1rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-green { color: var(--green-400); }
.text-muted { color: var(--gray-400); }
.text-white { color: var(--white); }
.text-black { color: var(--black); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.grid { display: grid; }
.w-full { width: 100%; }
.h-full { height: 100%; }

/* ============================================================
   HEADER / NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,26,10,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(77,175,74,0.15);
  display: flex;
  align-items: center;
  padding: 0 32px;
  z-index: 1000;
  gap: 24px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.navbar-logo {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--green-400), var(--green-700));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.navbar-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--white);
  font-family: var(--font-display);
}
.navbar-name span { color: var(--green-400); }
.navbar-spacer { flex: 1; }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-link.active { color: var(--green-300); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--green-400);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--green-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-green);
}
.btn-outline {
  background: transparent;
  border-color: var(--green-400);
  color: var(--green-400);
}
.btn-outline:hover {
  background: var(--green-400);
  color: var(--white);
  transform: translateY(-1px);
}
.btn-dark {
  background: var(--green-900);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--green-800);
  transform: translateY(-1px);
}
.btn-white {
  background: var(--white);
  color: var(--green-800);
}
.btn-white:hover {
  background: var(--cream);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-full { width: 100%; }
.btn-icon {
  padding: 9px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.1rem;
}
.btn-icon:hover { background: rgba(255,255,255,0.15); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-body { padding: 20px; }
.card-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
}
.card-dark {
  background: var(--green-900);
  border-radius: var(--radius-lg);
  color: var(--white);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.badge-green { background: rgba(76,175,80,0.15); color: var(--green-500); border: 1px solid rgba(76,175,80,0.3); }
.badge-vip {
  background: linear-gradient(135deg, #f5a623, #f7d174);
  color: #5a3a00;
  box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}
.badge-organic { background: rgba(46,125,50,0.15); color: #2e7d32; border: 1px solid rgba(46,125,50,0.3); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-red { background: rgba(229,57,53,0.1); color: var(--red); border: 1px solid rgba(229,57,53,0.2); }

/* ============================================================
   STAR RATING
   ============================================================ */
.rating-stars {
  display: flex;
  align-items: center;
  gap: 3px;
}
.star {
  color: var(--gold);
  font-size: 0.9rem;
}
.star.empty { color: var(--gray-200); }
.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
}
.rating-bar-label { width: 80px; color: var(--gray-600); }
.rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 99px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green-400), var(--green-300));
  border-radius: 99px;
  transition: width 1s cubic-bezier(0.4,0,0.2,1);
}
.rating-value { width: 28px; font-weight: 600; color: var(--green-600); font-size: 0.8rem; }

/* ============================================================
   TAGS / CHIPS
   ============================================================ */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--green-700);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}
.tag:hover, .tag.active {
  background: var(--green-400);
  border-color: var(--green-400);
  color: var(--white);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
}
.form-input {
  padding: 11px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: var(--transition);
  width: 100%;
}
.form-input:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.12);
}
.form-input::placeholder { color: var(--gray-400); }
.form-select {
  padding: 11px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--white);
  cursor: pointer;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M0 0l6 8 6-8z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: var(--transition);
}
.form-select:focus { border-color: var(--green-400); }
.form-hint { font-size: 0.78rem; color: var(--gray-400); }
.form-error { font-size: 0.78rem; color: var(--red); }

/* ============================================================
   AVATAR
   ============================================================ */
.avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--green-700);
  flex-shrink: 0;
}
.avatar-sm  { width: 32px; height: 32px; font-size: 0.8rem; }
.avatar-md  { width: 48px; height: 48px; font-size: 1rem; }
.avatar-lg  { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-xl  { width: 100px; height: 100px; font-size: 2rem; }

/* ============================================================
   POINTS / COINS
   ============================================================ */
.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #f5a623, #f7d174);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  color: #5a3a00;
  box-shadow: 0 2px 12px rgba(245,166,35,0.3);
}

/* ============================================================
   MAP LAYOUT
   ============================================================ */
.map-layout {
  display: flex;
  height: calc(100dvh - var(--header-h));
  margin-top: var(--header-h);
  overflow: hidden;
}
.map-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 5;
}
.map-sidebar-header {
  padding: 20px 20px 0;
  flex-shrink: 0;
}
.map-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 12px;
}
.map-search {
  position: relative;
  margin-bottom: 14px;
}
.map-search-input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  transition: var(--transition);
  background: var(--gray-100);
}
.map-search-input:focus {
  border-color: var(--green-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(76,175,80,0.1);
}
.map-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 1rem;
}
.map-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 14px;
}
.map-filters::-webkit-scrollbar { display: none; }
.map-producer-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px;
}
.map-producer-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  margin-bottom: 6px;
}
.map-producer-card:hover {
  background: var(--green-50);
  border-color: var(--green-100);
}
.map-producer-card.active {
  background: var(--green-50);
  border-color: var(--green-400);
}
.map-producer-img {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.map-producer-info { flex: 1; min-width: 0; }
.map-producer-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-producer-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0;
}
.map-producer-dist {
  font-size: 0.78rem;
  color: var(--gray-400);
}
.map-producer-products {
  font-size: 0.78rem;
  color: var(--green-600);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#map-container {
  flex: 1;
  position: relative;
}
#map { width: 100%; height: 100%; }

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
  overflow: hidden;
  border: none !important;
}
.leaflet-popup-content { margin: 0 !important; width: auto !important; }
.leaflet-popup-tip-container { display: none; }

.map-popup {
  width: 280px;
  font-family: var(--font-main);
}
.map-popup-img {
  width: 100%; height: 140px;
  object-fit: cover;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.map-popup-body { padding: 14px 16px; }
.map-popup-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}
.map-popup-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.map-popup-tags { margin-bottom: 12px; }
.map-popup-footer {
  display: flex;
  gap: 8px;
}

/* Custom marker */
.custom-marker {
  width: 44px; height: 54px;
  position: relative;
}
.marker-body {
  width: 44px; height: 44px;
  background: var(--green-700);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.marker-body:hover { background: var(--green-400); }
.marker-body-inner {
  transform: rotate(45deg);
  font-size: 1.2rem;
}
.marker-body.vip { background: var(--gold); }
.marker-shadow {
  width: 16px; height: 6px;
  background: rgba(0,0,0,0.2);
  border-radius: 50%;
  margin: 4px auto 0;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--green-950) 0%, var(--green-900) 40%, var(--green-800) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(ellipse at 30% 40%, rgba(76,175,80,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(30,92,30,0.2) 0%, transparent 60%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { transform: translate(0,0) rotate(0deg); }
  to { transform: translate(30px, 20px) rotate(5deg); }
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(76,175,80,0.15);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: var(--radius-full);
  color: var(--green-300);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
}
.hero-title .accent { color: var(--green-300); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 36px;
  position: relative;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  position: relative;
}
.hero-stat { text-align: center; }
.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  font-family: var(--font-display);
}
.hero-stat-num span { color: var(--green-300); }
.hero-stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-top: 4px; }
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 0.78rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-arrow { font-size: 1.2rem; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.section { padding: 80px 0; }
.section-dark { background: var(--green-950); color: var(--white); }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-400);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-family: var(--font-display);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-400);
  max-width: 520px;
  margin-bottom: 48px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}
.step-card:hover {
  background: rgba(76,175,80,0.08);
  border-color: rgba(76,175,80,0.25);
  transform: translateY(-4px);
}
.step-num {
  width: 40px; height: 40px;
  background: var(--green-400);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 16px;
}
.step-icon { font-size: 1.8rem; margin-bottom: 12px; }
.step-title { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.step-desc { font-size: 0.88rem; color: rgba(255,255,255,0.5); line-height: 1.6; }

/* ============================================================
   FEATURES GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.feature-card:hover {
  border-color: var(--green-300);
  box-shadow: var(--shadow-green);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--green-50);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
}
.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-desc { font-size: 0.88rem; color: var(--gray-400); line-height: 1.6; }

/* ============================================================
   PRODUCER PROFILE PAGE
   ============================================================ */
.profile-layout {
  max-width: 960px;
  margin: 0px auto 60px;
  padding: 0 24px;
}
.profile-hero {
  background: linear-gradient(135deg, var(--green-900), var(--green-800));
  border-radius: var(--radius-xl);
  padding: 36px;
  color: var(--white);
  display: flex;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(ellipse, rgba(76,175,80,0.2) 0%, transparent 70%);
}
.profile-photo {
  width: 100px; height: 100px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  background: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.profile-info { flex: 1; }
.profile-name {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 4px;
  font-family: var(--font-display);
}
.profile-location {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.profile-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile-rating-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold);
}
.profile-tabs {
  display: flex;
  gap: 4px;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.profile-tab {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
}
.profile-tab.active {
  background: var(--white);
  color: var(--green-700);
  box-shadow: var(--shadow-sm);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--green-300);
  transform: translateY(-2px);
}
.product-img {
  width: 100%; height: 130px;
  object-fit: cover;
  background: var(--green-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.product-body { padding: 12px; }
.product-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 4px; }
.product-unit { font-size: 0.78rem; color: var(--gray-400); margin-bottom: 8px; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green-700);
}
.product-stock {
  font-size: 0.75rem;
  color: var(--gray-400);
}
.add-to-cart-btn {
  width: 32px; height: 32px;
  background: var(--green-400);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
}
.add-to-cart-btn:hover {
  background: var(--green-300);
  transform: scale(1.1);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-img {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-img:hover { transform: scale(1.02); }

/* ============================================================
   CART PANEL
   ============================================================ */
.cart-panel {
  position: fixed;
  right: -420px;
  top: 0; bottom: 0;
  width: 380px;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  z-index: 2000;
  transition: right var(--transition-slow);
  display: flex;
  flex-direction: column;
}
.cart-panel.open { right: 0; }
.cart-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-title { font-size: 1.1rem; font-weight: 700; }
.cart-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}
.cart-close:hover { background: var(--gray-200); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
}
.cart-item-img {
  width: 50px; height: 50px;
  border-radius: var(--radius-sm);
  background: var(--green-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-meta { font-size: 0.78rem; color: var(--gray-400); }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: var(--transition);
}
.qty-btn:hover { border-color: var(--green-400); color: var(--green-400); }
.qty-num { font-weight: 700; font-size: 0.9rem; min-width: 16px; text-align: center; }
.cart-item-price { font-weight: 700; color: var(--green-700); }
.cart-footer {
  padding: 16px 20px 24px;
  border-top: 1px solid var(--gray-200);
}
.cart-points-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(247,209,116,0.1));
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  border: 1px solid rgba(245,166,35,0.2);
}
.cart-points-label { font-size: 0.82rem; color: #7a5000; }
.cart-points-value { font-weight: 700; color: #7a5000; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.cart-total-label { font-weight: 600; color: var(--gray-600); }
.cart-total-price { font-size: 1.4rem; font-weight: 800; color: var(--black); }
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow);
  backdrop-filter: blur(2px);
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  padding-top: var(--header-h);
}
.dashboard-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--green-950);
  padding: 28px 16px;
  position: fixed;
  top: var(--header-h);
  bottom: 0;
  left: 0;
  overflow-y: auto;
  z-index: 100;
}
.dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 4px;
  text-decoration: none;
}
.dashboard-nav-item:hover { background: rgba(255,255,255,0.07); color: var(--white); }
.dashboard-nav-item.active { background: rgba(76,175,80,0.2); color: var(--green-300); }
.dashboard-nav-icon { font-size: 1.1rem; }
.dashboard-content {
  flex: 1;
  min-width: 0;
  margin-left: 240px;
  padding: 32px;
  min-height: calc(100dvh - var(--header-h));
}
.dashboard-header {
  margin-bottom: 28px;
}
.dashboard-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.dashboard-subtitle { font-size: 0.9rem; color: var(--gray-400); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--gray-200);
}
.stat-card-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.stat-card-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--black);
  font-family: var(--font-display);
}
.stat-card-label { font-size: 0.82rem; color: var(--gray-400); margin-top: 2px; }
.stat-card-trend {
  font-size: 0.78rem;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.trend-up { color: var(--green-500); }
.trend-down { color: var(--red); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: linear-gradient(135deg, var(--green-950), var(--green-800));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  position: relative;
  overflow: hidden;
}
.auth-left::before {
  content: '';
  position: absolute;
  bottom: -30%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(76,175,80,0.15) 0%, transparent 70%);
}
.auth-left-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 16px;
  position: relative;
}
.auth-left-desc {
  color: rgba(255,255,255,0.55);
  text-align: center;
  font-size: 0.95rem;
  max-width: 320px;
  position: relative;
}
.auth-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--white);
}
.auth-card { width: 100%; max-width: 380px; }
.auth-title { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; }
.auth-sub { color: var(--gray-400); font-size: 0.9rem; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-400);
  font-size: 0.82rem;
  margin: 8px 0;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}
.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray-400);
}
.auth-footer a { color: var(--green-600); font-weight: 600; }
.auth-footer a:hover { color: var(--green-400); }

/* ============================================================
   TOASTS / NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: calc(var(--header-h) + 16px);
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--green-400);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideInRight 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
  max-width: 320px;
}
.toast.success { border-left-color: var(--green-400); }
.toast.error { border-left-color: var(--red); }
.toast.info { border-left-color: var(--gold); }
@keyframes slideInRight {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(110%); opacity: 0; }
}
.toast-icon { font-size: 1.2rem; }
.toast-text { font-size: 0.88rem; font-weight: 500; flex: 1; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
}
@keyframes modalIn {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); }
.modal-body { padding: 24px 28px; }
.modal-footer { padding: 16px 28px 24px; display: flex; gap: 12px; justify-content: flex-end; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--green-950);
  color: rgba(255,255,255,0.5);
  padding: 48px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand-name span { color: var(--green-400); }
.footer-desc { font-size: 0.85rem; line-height: 1.7; margin-bottom: 20px; }
.footer-col-title {
  font-weight: 700;
  color: var(--white);
  font-size: 0.85rem;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-link:hover { color: var(--green-300); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sidebar-close-btn { display: block !important; }
  .map-sidebar { display: none; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-sidebar { display: none; }
  .dashboard-content { margin-left: 0; padding: 20px; }
  #map-container { max-height: calc(100vh - var(--header-h)); overflow: hidden; }
}
@media (max-width: 600px) {
  :root { --sidebar-w: 100%; }
  .hero-stats { gap: 20px; }
  .hero-stat-num { font-size: 1.4rem; }
  .profile-hero { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .navbar { padding: 0 16px; }
  .container { padding: 0 16px; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeIn 0.4s cubic-bezier(0.4,0,0.2,1) forwards; }

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse { animation: pulse 2s infinite; }

/* Floating leaves background */
.leaves-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.leaf {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.07;
  animation: floatLeaf linear infinite;
}
@keyframes floatLeaf {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.07; }
  90% { opacity: 0.07; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ============================================================
   HIDROSYSTEMS & SUBSCRIPTION SYSTEM
   ============================================================ */
.hidrosystems-banner {
  background: linear-gradient(135deg, var(--green-950) 0%, var(--green-900) 50%, var(--green-800) 100%);
  border: 1px solid rgba(129, 199, 132, 0.3);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  color: white;
  margin: 16px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  box-shadow: 0 8px 32px rgba(10, 26, 10, 0.4);
  position: relative;
  overflow: hidden;
}
.hidrosystems-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(76,175,80,0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hidrosystems-badge {
  background: var(--gold);
  color: var(--black);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 6px;
}
.subscription-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.sub-badge-vip {
  background: linear-gradient(135deg, #ffd700, #ffa500);
  color: #000;
}
.sub-badge-standard {
  background: var(--green-100);
  color: var(--green-800);
}
.sub-badge-pilot {
  background: #e3f2fd;
  color: #1565c0;
}


/* UI Updates */
.dashboard-sidebar { top: 0 !important; z-index: 1001 !important; padding-top: 24px !important; }
.profile-tab { display: flex !important; flex-direction: column; align-items: center; gap: 4px; padding: 12px !important; }
.profile-tab .tab-icon { font-size: 1.4rem; margin-bottom: 2px; }



/* Mobile Sidebar Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  margin-right: 12px;
  color: white;
  padding: 0;
  line-height: 1;
}
@media (max-width: 900px) {
  .mobile-menu-btn { display: inline-block; }
  .dashboard-sidebar.show {
    display: flex !important;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    background: var(--green-950);
    z-index: 999999;
    box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    flex-direction: column;
  }
}

/* Map marker blinking effect */
@keyframes markerBlink {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.map-marker-blink {
  animation: markerBlink 1.5s infinite;
}
