@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Crisp Mountain Sky & Royal Blue Light Theme */
  --bg-root: #f8fafc;        /* Crisp snow-white / cool light blue-gray */
  --bg-primary: #ffffff;     /* Pure clean white */
  --bg-secondary: #f1f5f9;   /* Soft ice blue-slate */
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --glass-border: rgba(148, 163, 184, 0.35);
  --glass-border-bright: rgba(37, 99, 235, 0.6);
  
  /* Blue Palette (Variabel tetap dipertahankan agar kompatibel dengan seluruh komponen HTML/JS) */
  --accent-emerald: #2563eb; /* Vibrant Royal Blue */
  --accent-lime: #0284c7;    /* Sky / Ocean Blue */
  --accent-gradient: linear-gradient(135deg, #1e40af 0%, #38bdf8 100%);
  --accent-gold: #d97706;    /* Warm sunbeam gold / amber */
  --accent-red: #dc2626;     /* Crimson alert red */
  
  --text-main: #0f172a;      /* Deep navy carbon (Kenyamanan membaca kontras tinggi di tema cerah) */
  --text-muted: #475569;     /* Slate medium gray */
  --text-dark: #ffffff;      /* Teks putih pada tombol/elemen gelap */
  
  --shadow-lg: 0 15px 35px -10px rgba(15, 23, 42, 0.08);
  --glow-emerald: 0 10px 25px -5px rgba(37, 99, 235, 0.35); /* Glow Biru Elegan */
  --glow-gold: 0 10px 25px -5px rgba(217, 119, 6, 0.3);
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-root);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: clip;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-main);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

ul, ol {
  list-style-position: inside;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 5px;
  border: 2px solid #f1f5f9;
}
::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* Utility Classes */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.badge-gold {
  background: rgba(217, 119, 6, 0.1);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.25);
}

.badge-red {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.25);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #ffffff;
  box-shadow: var(--glow-emerald);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.5);
  filter: brightness(1.08);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #eff6ff;
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
  transform: translateY(-2px);
}

.btn-cta-giant {
  font-size: 1.25rem;
  padding: 20px 45px;
  border-radius: 16px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 15px 40px -5px rgba(37, 99, 235, 0.45);
  animation: pulse-glow-blue 3s infinite;
}

@keyframes pulse-glow-blue {
  0%, 100% { transform: scale(1); box-shadow: 0 15px 40px -5px rgba(37, 99, 235, 0.45); }
  50% { transform: scale(1.03); box-shadow: 0 20px 50px -5px rgba(56, 189, 248, 0.65); }
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-smooth);
  padding: 16px 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
}

.logo-icon, .logo-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links li a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-smooth);
  position: relative;
}

.nav-links li a:hover, .nav-links li a.active {
  color: #2563eb;
  background: #eff6ff;
}

.nav-links li a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 20%;
  width: 60%;
  height: 2px;
  background: #2563eb;
  border-radius: 2px;
  box-shadow: 0 0 10px #2563eb;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
}

/* Hero Section with Live Mountain Photo Background */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 24px 90px;
  overflow: hidden;
  background: #0f172a;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../img/gunung.png') center/cover no-repeat;
  z-index: 0;
  filter: saturate(1.1) contrast(1.05);
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.1) 50%, var(--bg-root) 100%);
  z-index: 0;
}

.hero-content {
  text-align: center;
  max-width: 950px;
  margin: 0 auto;
  z-index: 1;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  padding: 50px 42px;
  border-radius: 34px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.45), 0 0 40px rgba(59, 130, 246, 0.2);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 24px 0;
  line-height: 1.15;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.stat-card h3 {
  font-size: 2.2rem;
  color: var(--accent-emerald);
  font-weight: 800;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Section Common Styling */
.section {
  padding: 40px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 28px;
}

.section-title {
  font-size: 2.3rem;
  margin-top: 0;
  margin-bottom: 12px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cards & Light Neo-morphism */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.glass-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 32px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
}

.glass-card:hover {
  border-color: #3b82f6;
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
}

/* Alur Daftar Steps */
.step-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.step-number {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid #2563eb;
  color: #2563eb;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.15);
}

.step-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Rules List & Icons */
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  margin-bottom: 16px;
  transition: var(--transition-smooth);
}

.rule-item:hover {
  background: #eff6ff;
  border-color: #3b82f6;
  transform: translateX(6px);
}

.rule-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #93c5fd;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Operational Hours Showcase */
.ops-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
  border: 1px solid rgba(59, 130, 246, 0.4);
  box-shadow: 0 20px 40px -10px rgba(30, 58, 138, 0.3);
  border-radius: 24px;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #ffffff;
}

.ops-banner h2, .ops-banner h3, .ops-banner h4, .ops-banner p {
  color: #ffffff !important;
}

.ops-banner .badge {
  background: rgba(255, 255, 255, 0.15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.4);
}

/* Pricing Cards */
.pricing-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.pricing-card.popular {
  border-color: #2563eb;
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
  transform: scale(1.03);
}

.pricing-card.popular::before {
  content: 'REKOMENDASI';
  position: absolute;
  top: 24px; right: -35px;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 40px;
  transform: rotate(45deg);
}

.price {
  font-size: 3rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: var(--text-main);
  margin: 20px 0 10px;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Forms & Inputs */
.form-card {
  max-width: 800px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* File Upload Box */
.file-upload {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: #f8fafc;
  position: relative;
}

.file-upload:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.file-upload input[type="file"] {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-icon {
  font-size: 2rem;
  color: #2563eb;
  margin-bottom: 8px;
}

/* Quota Live Badge */
.quota-box {
  background: #eff6ff;
  border: 1px solid #2563eb;
  padding: 16px 24px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.quota-box.full {
  background: #fef2f2;
  border-color: #dc2626;
}

/* Dynamic Members Container */
.member-block {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 24px;
  margin-top: 20px;
  position: relative;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* Table styling for Admin */
.admin-table-container {
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th {
  padding: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #475569;
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}

.admin-table td {
  padding: 16px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
  white-space: nowrap;
}

.admin-table tr:hover {
  background: #f1f5f9;
}

/* Modal Overlay */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 24px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: var(--transition-smooth);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.modal.active .modal-content {
  transform: scale(1);
}

/* Footer (Bright Blue Sky Theme - High Contrast) */
.footer {
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  color: #0f172a;
  border-top: 2px solid #3b82f6;
  padding: 60px 0 30px;
  margin-top: 120px;
  text-align: center;
}

.footer .logo {
  color: #0f172a !important;
}

.footer .logo-icon {
  background: var(--accent-gradient);
  color: #ffffff;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #cbd5e1;
  font-size: 0.9rem;
  color: #475569;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ops-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  
  .mobile-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: #1e293b;
    margin-left: 8px;
  }
  
  .navbar .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    flex-direction: column;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-top: 1px solid #e2e8f0;
  }
  
  .navbar .nav-links.show {
    display: flex;
  }
  
  .navbar .nav-links li { width: 100%; }
  .navbar .nav-links li a { display: block; padding: 12px; }
  
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .section { padding: 60px 0; }
  .form-card { padding: 24px; }
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
}
.rule-card {
  display: flex;
  gap: 20px;
  padding: 30px;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.rule-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 5px; height: 100%;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.rule-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.1);
  border-color: #bfdbfe;
}
.rule-card:hover::before {
  opacity: 1;
}
.rule-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 900;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  border: 2px solid #dbeafe;
}
.rule-card:hover .rule-icon {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: rotate(-10deg) scale(1.1);
}

@media (max-width: 768px) {
  .nav-actions { display: flex; align-items: center; gap: 4px; }
  .hero .btn-primary, .hero .btn-secondary { display: block; width: 100%; text-align: center; box-sizing: border-box; margin-bottom: 8px; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem !important; margin: 16px 0 !important; }
  .logo h1 { font-size: 1.25rem !important; }
  .logo img { height: 36px !important; }
  .nav-actions { display: flex; align-items: center; gap: 4px; }
  .nav-actions .btn-primary { padding: 8px 12px !important; font-size: 0.8rem !important; margin: 0 !important; }
  .mobile-toggle { margin-left: 4px !important; }
  .hero-subtitle { font-size: 0.95rem !important; }
  .hero-stats h3 { font-size: 1.8rem !important; }
  .hero .btn-primary, .hero .btn-secondary { display: block; width: 100%; text-align: center; box-sizing: border-box; margin-bottom: 8px; }
}
