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

:root {
  /* Color Palette - Deep Indigo & Silk Pink */
  --bg-base: #020617;
  --bg-surface: rgba(30, 41, 59, 0.4);
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-glow: rgba(99, 102, 241, 0.3);
  --secondary: #ec4899;
  --accent: #f43f5e;
  
  --text-main: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shine: rgba(255, 255, 255, 0.03);
  
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.2), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 35px 60px -15px rgba(0, 0, 0, 0.5);
  
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  padding-bottom: 100px; /* Space for bottom nav */
}

/* Dynamic Mesh Background */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background-color: var(--bg-base);
  overflow: hidden;
}

.mesh-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  z-index: -1;
  animation: float 20s infinite alternate cubic-bezier(0.45, 0, 0.55, 1);
}

.c1 { width: 500px; height: 500px; background: var(--primary); top: -10%; left: -10%; animation-delay: 0s; }
.c2 { width: 600px; height: 600px; background: var(--secondary); bottom: -20%; right: -10%; animation-delay: -5s; }
.c3 { width: 400px; height: 400px; background: #3b82f6; top: 30%; right: -5%; animation-delay: -10s; }

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(100px, 50px) rotate(30deg); }
}

/* Glassmorphism Core */
.glass {
  background: var(--bg-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-xl);
}

.glass-pill {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
}

/* Layout Utilities */
.container {
  width: 100%;
  padding: 0 24px;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .container { max-width: 1200px; margin: 0 auto; }
}

/* Typography refinement */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Header & Nav */
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0 24px;
}

.header-main h1 {
  font-size: 2rem;
  line-height: 1;
}

.avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-circle i { font-size: 20px; }

/* Desktop Navigation Header */
.nav-desktop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  justify-content: center;
  padding: 0 40px;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; align-items: center; justify-content: space-between; }
  body { padding-top: 100px; padding-bottom: 0px; }
}

.nav-blur-bg {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: -1;
}

.nav-links-desktop {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
}

.nav-links-desktop a {
  text-decoration: none;
  color: var(--text-dim);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-links-desktop a:hover, .nav-links-desktop a.active {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
}

/* Mobile Bottom Nav */
.nav-mobile {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 400px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding: 0 16px;
}

@media (min-width: 1024px) {
  .nav-mobile { display: none; }
}

.nav-item-m {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-item-m i { font-size: 24px; }

.nav-item-m.active { color: var(--primary-light); }
.nav-item-m.active::before {
  content: '';
  position: absolute;
  top: -12px;
  width: 4px; height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-light);
}

/* Search Bar - Refined */
.search-wrapper {
  margin: 12px 0 32px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-field {
  width: 100%;
  padding: 20px 24px 20px 60px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  outline: none;
  font-size: 1rem;
  transition: var(--transition);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.search-field:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

.search-box i {
  position: absolute;
  left: 24px;
  font-size: 24px;
  color: var(--text-dim);
}

/* Category Slider */
.cat-slider {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 4px 0 12px;
  scrollbar-width: none;
}

.cat-slider::-webkit-scrollbar { display: none; }

.cat-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cat-pill:hover, .cat-pill.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--primary-light);
  color: var(--text-main);
  transform: translateY(-2px);
}

/* Bento Grid System */
.bento-section {
  margin-top: 40px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-head h2 { font-size: 1.5rem; }

.grid-umkm {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) { .grid-umkm { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-umkm { grid-template-columns: repeat(3, 1fr); } }

/* UMKM Card Design */
.card-umkm {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: var(--transition);
  height: 100%;
}

.card-umkm:hover {
  transform: translateY(-10px);
  border-color: var(--primary-light);
}

.card-umkm:hover .card-img img { transform: scale(1.1); }

.card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.8s transform cubic-bezier(0.16, 1, 0.3, 1);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-title {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.card-owner {
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-tag {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* Map Style override */
#map {
  width: 100%;
  height: calc(100vh - 200px);
  border-radius: var(--radius-md);
  z-index: 1;
}

/* Specific view styles */
.detail-hero {
  position: relative;
  height: 400px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg-base) 0%, transparent 100%);
}

.btn-back {
  position: absolute;
  top: 32px;
  left: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: white;
  text-decoration: none;
  z-index: 100;
}

.detail-info {
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.info-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .info-grid { grid-template-columns: 380px 1fr; align-items: start; }
}

.product-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.item-product {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.item-product:hover { border-color: var(--primary-light); }

.price-value { font-size: 1.25rem; font-weight: 700; color: var(--secondary); }

.wa-btn {
  width: 50px; height: 50px;
  border-radius: 16px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.3);
  text-decoration: none;
}
/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--bg-surface); border-radius: 10px; border: 2px solid var(--bg-base); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.animate-up {
  opacity: 0;
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Bento Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

.stat-card {
  padding: 24px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
}

.stat-val { font-size: 2rem; font-weight: 700; color: var(--primary-light); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }

/* Horizontal Feature Slider */
.h-slider-wrap {
  margin: 0 -24px 40px;
  padding: 0 24px;
  overflow-x: auto;
  display: flex;
  gap: 24px;
  scrollbar-width: none;
}

.h-slider-wrap::-webkit-scrollbar { display: none; }

/* Featured Product Slider (Swiper) */
.featuredSwiper {
  overflow: visible !important; /* Allow cards to show outside container if needed */
  padding-bottom: 20px;
}

.card-product-slide {
  width: auto;
  height: auto;
}

.f-product-card {
  min-width: 300px;
  max-width: 300px;
  padding: 20px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 240px; /* Fixed height for consistency */
}

.f-img {
  width: 100%;
  height: 140px; /* Adjusted height */
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.f-img img { width: 100%; height: 100%; object-fit: cover; }

/* Grid Modernization */
.product-grid-modern {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) { .product-grid-modern { grid-template-columns: repeat(2, 1fr); } }

.p-card-modern {
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.p-img-modern { height: 200px; width: 100%; position: relative; }
.p-img-modern img { width: 100%; height: 100%; object-fit: cover; }

.p-body-modern { padding: 20px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; }

/* Floating FAB */
.fab-whatsapp {
  position: fixed;
  bottom: 110px;
  right: 24px;
  width: 60px; height: 60px;
  border-radius: 20px;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 30px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
  text-decoration: none;
}

.fab-whatsapp:hover { transform: scale(1.1) rotate(10deg); }

/* Hero Slider System */
.hero-slider-container {
  margin-bottom: 40px;
  border-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.2);
  background: #020617; /* Dark fallback */
  z-index: 1; /* Lower than navs */
}

.mainHeroSwiper { width: 100%; height: 550px; }

@media (max-width: 768px) {
  .mainHeroSwiper { height: 600px; }
  .hero-slider-container { border-radius: 32px; margin-inline: 4px; }
}

.swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center !important; /* Force center */
  text-align: center !important;
  padding: 0 80px;
}

@media (max-width: 768px) {
  .swiper-slide { padding: 0 24px; padding-bottom: 120px; } /* Heavy bottom padding for mobile */
}

.hero-slide-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
  z-index: 0;
}

.swiper-slide-active .hero-slide-bg { transform: scale(1.1); }

.hero-slide-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(2,6,23,0.3) 0%, rgba(2,6,23,0.95) 100%);
  z-index: 1;
}

.hero-slide-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  width: 100%; /* Take full width for centering to work */
  display: flex;
  flex-direction: column;
  align-items: center !important; /* Center items */
  gap: 24px;
}

.slide-badge {
  display: inline-block;
  padding: 8px 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.slide-title {
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 800;
  color: white;
  letter-spacing: -0.05em;
  text-shadow: 0 20px 40px rgba(0,0,0,0.5);
  margin: 0;
}

.slide-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Controls */
.swiper-pagination { 
    bottom: 40px !important; 
    z-index: 20 !important; 
}

@media (max-width: 768px) {
    .swiper-pagination { bottom: 85px !important; } /* Move up to avoid bottom nav */
}

.swiper-pagination-bullet { background: white !important; opacity: 0.2 !important; width: 10px !important; height: 10px !important; transition: 0.4s; }
.swiper-pagination-bullet-active { opacity: 1 !important; width: 36px !important; border-radius: 5px !important; background: var(--primary-light) !important; }

.swiper-button-next, .swiper-button-prev {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50% !important;
  color: white !important;
  background: rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  transition: 0.3s !important;
  z-index: 20 !important;
}

.swiper-button-next:after, .swiper-button-prev:after { font-size: 22px !important; font-weight: 900 !important; }
.swiper-button-next:hover, .swiper-button-prev:hover { background: rgba(255,255,255,0.1) !important; border-color: var(--primary-light) !important; transform: scale(1.1); }

@media (max-width: 1024px) {
  .swiper-button-next, .swiper-button-prev { display: none !important; }
}

/* Mobile Viewport Stabilization */
html, body {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .container { padding: 0 16px; width: 100%; box-sizing: border-box; }
  
  .stats-grid { 
    grid-template-columns: 1fr !important; /* Stack vertically on small screens */
    gap: 16px;
  }
  
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-admin { 
    flex-wrap: wrap; 
    padding: 10px;
    justify-content: center;
  }

  .admin-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 24px 16px;
  }
}

/* Management Tables Data Labels Support */
@media (max-width: 768px) {
  .data-table td {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    text-align: right;
  }

  .data-table td::before {
    content: attr(data-label);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: left;
    flex: 1;
  }

  .data-table .action-group {
    justify-content: center !important;
    margin-top: 10px;
    width: 100%;
  }
}

.data-row {
  transition: var(--transition);
  animation: fadeInDown 0.4s ease forwards;
  opacity: 0;
}

.data-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Staggered Row Animation */
.data-row:nth-child(1) { animation-delay: 0.1s; }
.data-row:nth-child(2) { animation-delay: 0.15s; }
.data-row:nth-child(3) { animation-delay: 0.2s; }
.data-row:nth-child(4) { animation-delay: 0.25s; }
.data-row:nth-child(5) { animation-delay: 0.3s; }

.badge {
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}

.badge-pending { color: var(--accent); background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.2); }
.badge-active { color: #34d399; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.2); }
.badge-rejected { color: #94a3b8; background: rgba(148, 163, 184, 0.1); border-color: rgba(148, 163, 184, 0.2); }

.form-segment {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 32px;
  margin-bottom: 24px;
}

.form-segment-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-light);
}

.img-preview-box {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 16px;
  background: #1e293b;
  border: 2px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 12px;
}

.img-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Data Table Styling */
.data-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 24px;
  overflow: hidden;
}

.data-table th {
  text-align: left;
  padding: 28px 24px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
}

.data-table td {
  padding: 28px 24px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.95rem;
  line-height: 1.6;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Mobile Responsive Table Transformation */
@media (max-width: 768px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  
  .data-table tr {
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 16px;
  }
  
  .data-table td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
  }
  
  .data-table td::before {
    content: attr(data-label);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: left;
  }
  
  .data-table td:last-child { border-bottom: none; }
}

.action-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  cursor: pointer;
}

.action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--primary-light);
  border-color: var(--primary-glow);
  transform: translateY(-2px);
}

/* Third Stat Card (hidden on small screens) */
.stat-third { display: none; }
@media (min-width: 768px) { .stat-third { display: flex; } }

/* Global Form System */
.form-grid { display: grid; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 10px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); }

.input-wrap {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0 16px;
  transition: var(--transition);
}
.input-wrap:focus-within {
  background: rgba(255,255,255,0.06);
  border-color: var(--primary-light);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.input-wrap i { font-size: 20px; color: var(--text-muted); flex-shrink: 0; }
.input-wrap input, .input-wrap textarea, .input-wrap select {
  width: 100%; background: transparent; border: none; outline: none;
  color: white; padding: 16px 0; font-family: inherit; font-size: 0.95rem;
}
.input-wrap textarea { resize: vertical; }
.input-wrap select option { background: #0f172a; color: white; }

/* Global Buttons */
.btn-primary {
  padding: 16px 32px; border-radius: var(--radius-full);
  background: var(--primary); color: white; border: none;
  font-weight: 700; font-family: inherit; font-size: 0.95rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
  box-shadow: 0 10px 20px var(--primary-glow);
  transition: var(--transition);
}
.btn-primary:hover { transform: translateY(-3px); filter: brightness(1.1); }

.btn-secondary {
  padding: 16px 32px; border-radius: var(--radius-full);
  background: transparent; color: var(--text-dim); font-family: inherit;
  border: 1px solid var(--glass-border); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: var(--transition);
}
.btn-secondary:hover { background: rgba(255,255,255,0.05); color: white; }

/* --- AGGRESSIVE MOBILE OVERHAUL --- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
  }

  .container, .admin-container {
    width: 100% !important;
    max-width: 100vw !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    overflow-x: hidden;
  }

  /* Force Stacking on all Grids */
  .grid-umkm, .bento-grid, .stats-grid, .form-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .bento-card, .card-umkm {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
    width: 100% !important;
  }

  /* Admin Navigation Polish */
  .nav-admin {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 12px;
  }
  
  .nav-admin a {
    font-size: 0.75rem;
    padding: 8px 12px;
  }

  .admin-header, .mgmt-header, .section-head, .header-main {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
  }

  .admin-header h1, .admin-header h2 {
    font-size: 1.75rem !important;
  }

  /* Fix Chart Container Blowouts */
  canvas {
    max-width: 100% !important;
    height: auto !important;
  }
}
