/* ============================================================
   POWERZONE GYM — STYLESHEET
   Tema: energik, gelap, "gym after dark" — terinspirasi papan skor
   digital di gym modern. Aksen volt-green untuk progres & aksi.
   ============================================================ */

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

:root {
  --bg: #0F1115;
  --surface: #171A20;
  --surface-2: #1F232B;
  --border: #2A2F38;
  --text: #F5F6F7;
  --text-muted: #9AA0A8;
  --volt: #C6FF3D;
  --volt-dim: #9FD62E;
  --coral: #FF5A5F;
  --blue: #4EA8FF;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: 84px; /* ruang untuk bottom nav */
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
}

p { margin: 0 0 12px; color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ---------- Top bar (member) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15,17,21,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--volt); }
.topbar-action {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}

/* ---------- Hero (landing) ---------- */
.hero {
  padding: 56px 20px 40px;
  text-align: center;
}
.hero h1 {
  font-size: 34px;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.hero .accent { color: var(--volt); }
.hero p.lead {
  font-size: 16px;
  max-width: 380px;
  margin: 0 auto 28px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--volt);
  margin-bottom: 20px;
  font-weight: 600;
}

.benefits {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.benefit-card .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(198,255,61,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.benefit-card h3 { font-size: 16px; margin-bottom: 4px; }
.benefit-card p { font-size: 14px; margin: 0; }

/* ---------- Cards umum ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 16px;
}
.card-tight { padding: 16px; border-radius: var(--radius-md); }
.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title-row h2 { font-size: 17px; margin: 0; }
.section-label {
  font-size: 13px;
  color: var(--text-muted);
  margin: 28px 0 12px;
  font-weight: 600;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, opacity .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--volt); color: #0F1115; }
.btn-primary:hover { background: var(--volt-dim); }
.btn-secondary { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.btn-whatsapp { background: #25D366; color: #06210f; }
.btn-outline { background: transparent; color: var(--volt); border: 1.5px solid var(--volt); }
.btn-danger { background: rgba(255,90,95,.14); color: var(--coral); border: 1px solid rgba(255,90,95,.3); }
.btn-sm { padding: 10px 16px; font-size: 14px; width: auto; }
.btn-block-row { display: flex; gap: 10px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 16px; }
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-body);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--volt);
  box-shadow: 0 0 0 3px rgba(198,255,61,.18);
}
.helper-text { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; }
.field-error {
  font-size: 12.5px;
  color: var(--coral);
  margin-top: 6px;
  font-weight: 600;
}

/* ---------- Alert / state ---------- */
.alert {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}
.alert-success { background: rgba(198,255,61,.12); color: var(--volt); border: 1px solid rgba(198,255,61,.3); }
.alert-error { background: rgba(255,90,95,.12); color: var(--coral); border: 1px solid rgba(255,90,95,.3); }

.empty-state {
  text-align: center;
  padding: 36px 20px;
  color: var(--text-muted);
}
.empty-state .emoji { font-size: 34px; margin-bottom: 10px; }
.empty-state h3 { color: var(--text); font-size: 16px; margin-bottom: 6px; }
.empty-state p { font-size: 14px; margin-bottom: 18px; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.badge-volt { background: rgba(198,255,61,.15); color: var(--volt); }
.badge-blue { background: rgba(78,168,255,.15); color: var(--blue); }
.badge-coral { background: rgba(255,90,95,.15); color: var(--coral); }
.badge-muted { background: var(--surface-2); color: var(--text-muted); }

/* ---------- List item (trainer/kelas/booking) ---------- */
.list-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.list-item:last-child { border-bottom: none; }
.avatar {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--volt);
  flex-shrink: 0;
  font-size: 16px;
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-body h4 { font-size: 15px; margin: 0 0 2px; }
.list-item-body .meta { font-size: 13px; color: var(--text-muted); }

/* ---------- Stat grid (admin) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}
.stat-card .num { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: var(--volt); }
.stat-card .label { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Bottom nav (member, mobile-first) ---------- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  background: rgba(23,26,32,.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  display: flex;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 0;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.bottom-nav a .icon { font-size: 19px; }
.bottom-nav a.active { color: var(--volt); }

/* ---------- Admin topbar ---------- */
.admin-shell { max-width: 640px; margin: 0 auto; padding: 0 20px 40px; }
.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0 18px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a {
  white-space: nowrap;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.admin-tabs a.active { background: var(--volt); color: #0F1115; border-color: var(--volt); }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th, table.data-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
}
table.data-table th { color: var(--text-muted); font-weight: 600; font-size: 12px; text-transform: none; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); }

/* ---------- Chart canvas ---------- */
.chart-wrap {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 30px 20px 20px;
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ---------- Utility ---------- */
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (min-width: 540px) {
  .container, .topbar-inner { max-width: 520px; }
}
