/* ============================================
   UMROH APP - BLUE THEME (Android Material)
   ============================================ */

:root {
  --green-50:  #E8F1F7;
  --green-100: #DDEBF4;
  --green-200: #B9DBF0;
  --green-300: #90CCF1;
  --green-400: #6BC2F8;
  --green-500: #4FB6F7;
  --green-600: #3DAFF6;
  --green-700: #27A6F5;
  --green-800: #169DF1;
  --green-900: #0D87D3;
  --accent:    #6BC2F8;
  --accent-2:  #DDEBF4;

  --primary:   var(--green-700);
  --primary-dk:var(--green-800);
  --primary-lt:var(--green-500);

  --bg:        #F8FBFD;
  --surface:   #FFFFFF;
  --surface-2: #EAF4FC;
  --border:    #E0E0E0;

  --text-1:    #212121;
  --text-2:    #616161;
  --text-3:    #9E9E9E;
  --text-inv:  #FFFFFF;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow:    0 2px 6px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 12px rgba(0,0,0,.15);

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --nav-h:     64px;
  --top-h:     56px;
}

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

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Roboto', 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  padding-bottom: var(--nav-h);
  line-height: 1.5;
}

body.no-nav { padding-bottom: 0; }

/* ---- TOP BAR ---- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--top-h);
  background: var(--primary);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  box-shadow: var(--shadow);
}
.topbar-title {
  flex: 1;
  color: var(--text-inv);
  font-size: 18px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-inv);
  font-size: 18px;
  font-weight: 700;
}
.topbar-logo img { height: 32px; width: 32px; border-radius: 50%; }
.topbar .btn-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  text-decoration: none;
  position: relative;
}
.topbar .btn-icon:active { background: rgba(255,255,255,.3); }
.badge-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #FF5252;
  border: 2px solid var(--primary);
}
.badge-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  border-radius: 9px;
  background: #FF5252;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ---- BOTTOM NAV ---- */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--primary-dk);
  display: flex;
  align-items: stretch;
  z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,.2);
}
.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: color .2s, background .2s;
  border-radius: 0;
  padding: 6px 0;
  position: relative;
}
.bottom-nav a .nav-icon { font-size: 20px; line-height: 1; }
.bottom-nav a.active {
  color: var(--accent-2);
  background: rgba(255,255,255,.07);
}
.bottom-nav a.active::before {
  content: '';
  position: absolute;
  top: 0; left: 25%; right: 25%;
  height: 3px;
  background: var(--accent-2);
  border-radius: 0 0 4px 4px;
}

/* ---- FAB ---- */
.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  right: 16px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--green-900);
  font-size: 24px;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(107,194,248,.5);
  z-index: 90;
  transition: transform .2s, box-shadow .2s;
}
.fab:active { transform: scale(.93); }

/* ---- PAGE CONTENT ---- */
.page { padding: 16px; max-width: 480px; margin: 0 auto; }
.page-wide { padding: 16px; }

/* ---- CARD ---- */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card + .card { margin-top: 12px; }
.card-body { padding: 16px; }
.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  color: var(--primary-dk);
  display: flex; align-items: center; gap: 8px;
}
.card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}

/* ---- PAKET CARD ---- */
.paket-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.paket-card:hover { box-shadow: var(--shadow-lg); }
.paket-card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-400);
  font-size: 48px;
}
.paket-card-img img { width: 100%; height: 100%; object-fit: cover; }
.paket-card-body { padding: 14px; flex: 1; }
.paket-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.3;
}
.paket-card-meta {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 10px;
}
.paket-card-meta span { display: flex; align-items: center; gap: 6px; }
.paket-card-price {
  font-size: 19px;
  font-weight: 700;
  color: var(--primary-dk);
}
.paket-card-price small { font-size: 12px; font-weight: 400; color: var(--text-2); }
.paket-card-footer {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.badge-kuota {
  font-size: 12px;
  background: var(--green-50);
  color: var(--green-800);
  border: 1px solid var(--green-200);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ---- PAKET GRID ---- */
.paket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .1s, box-shadow .2s;
  line-height: 1;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 6px rgba(39,166,245,.4);
}
.btn-primary:hover { background: var(--primary-dk); }
.btn-accent {
  background: var(--accent);
  color: var(--green-900);
  box-shadow: 0 2px 6px rgba(107,194,248,.4);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--green-50); }
.btn-danger { background: #F44336; color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 6px; }
.btn-full { width: 100%; }
.btn-pill { border-radius: 50px; }
.btn-icon-text { gap: 6px; }

/* ---- FORM ---- */
.form-group { margin-bottom: 16px; position: relative; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  color: var(--text-1);
  background: var(--surface);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(39,166,245,.15);
}
.form-control.is-invalid { border-color: #F44336; }
.form-text { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-error { font-size: 12px; color: #F44336; margin-top: 4px; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

/* Floating label */
.float-group { position: relative; }
.float-group .form-control { padding-top: 20px; padding-bottom: 8px; }
.float-group label {
  position: absolute;
  top: 14px; left: 16px;
  font-size: 16px;
  color: var(--text-3);
  pointer-events: none;
  transition: all .2s;
}
.float-group .form-control:focus ~ label,
.float-group .form-control:not(:placeholder-shown) ~ label {
  top: 6px;
  font-size: 11px;
  color: var(--primary);
}

/* ---- BADGES ---- */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-success  { background: #E8F5E9; color: #2E7D32; }
.badge-warning  { background: #FFF8E1; color: #E65100; }
.badge-info     { background: #E3F2FD; color: #0D47A1; }
.badge-danger   { background: #FFEBEE; color: #B71C1C; }
.badge-secondary{ background: #F5F5F5; color: #616161; }
.badge-primary  { background: var(--green-50); color: var(--green-800); }

/* ---- HERO BANNER ---- */
.hero-banner {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--green-500) 100%);
  padding: 24px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-banner::after {
  content: '🕌';
  position: absolute;
  right: 16px; bottom: -8px;
  font-size: 80px;
  opacity: .15;
}
.hero-greeting { font-size: 14px; opacity: .8; }
.hero-name { font-size: 22px; font-weight: 700; margin-top: 4px; }
.hero-sub { font-size: 13px; opacity: .85; margin-top: 4px; }

/* ---- SEARCH BAR ---- */
.search-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--primary);
  position: sticky;
  top: var(--top-h);
  z-index: 90;
}
.search-input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 24px;
  border: none;
  font-size: 15px;
  background: rgba(255,255,255,.15);
  color: #fff;
  outline: none;
}
.search-input::placeholder { color: rgba(255,255,255,.7); }
.search-input:focus { background: rgba(255,255,255,.25); }
.btn-filter {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.2);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---- FILTER CHIP ---- */
.filter-chips {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.chip.active {
  background: var(--green-50);
  border-color: var(--primary);
  color: var(--primary-dk);
  font-weight: 600;
}

/* ---- INFO ROW ---- */
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-label {
  min-width: 110px;
  font-size: 13px;
  color: var(--text-2);
}
.info-value {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-1);
}

/* ---- STEP INDICATOR ---- */
.step-bar {
  display: flex;
  padding: 16px;
  gap: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(-50% + 14px);
  right: calc(50% + 14px);
  height: 2px;
  background: var(--border);
}
.step:first-child::before { display: none; }
.step-circle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 700;
  z-index: 1;
}
.step.active .step-circle {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(39,166,245,.2);
}
.step.done .step-circle {
  background: var(--green-500);
  color: #fff;
}
.step.done::before { background: var(--green-400); }
.step-label { font-size: 11px; color: var(--text-3); }
.step.active .step-label { color: var(--primary); font-weight: 600; }

/* ---- PRICE SUMMARY ---- */
.price-box {
  background: var(--green-50);
  border: 1.5px solid var(--green-200);
  border-radius: var(--radius);
  padding: 16px;
}
.price-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
}
.price-row.total {
  border-top: 2px solid var(--green-300);
  margin-top: 8px;
  padding-top: 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-dk);
}

/* ---- AVATAR ---- */
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-lg {
  width: 64px; height: 64px;
  font-size: 24px;
}
.avatar-sm {
  width: 32px; height: 32px;
  font-size: 12px;
}

/* ---- LIST ITEM ---- */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text-1);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.list-item:last-child { border-bottom: none; }
.list-item:active, .list-item:hover { background: var(--surface-2); }
.list-item-content { flex: 1; min-width: 0; }
.list-item-title { font-size: 14px; font-weight: 600; }
.list-item-sub   { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.list-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

/* ---- SALDO CARD ---- */
.saldo-card {
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  border-radius: var(--radius-lg);
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.saldo-card::after {
  content: '';
  position: absolute;
  right: -20px; top: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.saldo-label { font-size: 13px; opacity: .85; }
.saldo-amount { font-size: 28px; font-weight: 700; margin-top: 4px; letter-spacing: .5px; }
.saldo-sub { font-size: 12px; opacity: .75; margin-top: 2px; }
.saldo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.saldo-mini {
  background: rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.saldo-mini-label { font-size: 11px; opacity: .8; }
.saldo-mini-val   { font-size: 16px; font-weight: 700; margin-top: 3px; }

/* ---- DOKUMEN STATUS ---- */
.dok-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.dok-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dok-item.verified { border-color: var(--green-400); background: var(--green-50); }
.dok-item.revision { border-color: #FF5252; background: #FFEBEE; }
.dok-item.pending  { border-color: #FFA726; background: #FFF8E1; }
.dok-icon { font-size: 22px; }
.dok-name { font-size: 12px; font-weight: 600; color: var(--text-1); }
.dok-status{ font-size: 11px; color: var(--text-2); }

/* ---- EMPTY STATE ---- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
}
.empty-icon { font-size: 64px; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 600; color: var(--text-1); }
.empty-sub   { font-size: 14px; color: var(--text-2); margin-top: 8px; }

/* ---- SECTION TITLE ---- */
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  padding: 16px 0 10px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title a {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
}

/* ---- ALERT ---- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: #E8F5E9; color: #2E7D32; border-left: 4px solid #4CAF50; }
.alert-error   { background: #FFEBEE; color: #B71C1C; border-left: 4px solid #F44336; }
.alert-warning { background: #FFF8E1; color: #E65100; border-left: 4px solid #FFA726; }
.alert-info    { background: #E3F2FD; color: #0D47A1; border-left: 4px solid #42A5F5; }

/* ---- TABEL ---- */
.table-responsive { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text-2);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr { transition: background .15s; }
.table tr:hover td { background: var(--surface-2); }

/* ---- STAT CARD ---- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .18s, box-shadow .18s;
  min-width: 0;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: var(--surface-2);
  color: var(--primary);
  flex-shrink: 0;
}
.stat-card.orange .stat-icon { background: #FFF3E0; color: #FF9800; }
.stat-card.blue   .stat-icon { background: #E3F2FD; color: #2196F3; }
.stat-card.red    .stat-icon { background: #FFEBEE; color: #F44336; }
.stat-body { min-width: 0; }
.stat-value { font-size: 20px; font-weight: 700; color: var(--text-1); line-height: 1.15; }
.stat-label { font-size: 11px; color: var(--text-2); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card.orange { border-color: #FF9800; }
.stat-card.blue   { border-color: #2196F3; }
.stat-card.red    { border-color: #F44336; }

/* ---- PAGE HEADER (compact) ---- */
.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.page-header-title { font-size: 15px; font-weight: 600; color: var(--text-1); }
.page-header-sub    { font-size: 12px; color: var(--text-2); }

/* ---- QUICK ACTIONS ---- */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-action {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-1);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  box-shadow: var(--shadow-sm);
}
.quick-action:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary-lt);
  background: var(--surface-2);
}
.quick-action-icon { font-size: 15px; }
.quick-action-label { font-size: 13px; font-weight: 600; color: var(--text-1); }

/* ---- STARS ---- */
.star      { color: #FFC107; }
.star-empty{ color: var(--border); }

/* ---- TREE NETWORK ---- */
.tree-tier {
  padding: 12px 16px;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}
.tree-header {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  padding: 8px 0;
}
.tree-header-title { font-weight: 600; flex: 1; }
.tree-chevron { transition: transform .25s; font-size: 14px; color: var(--text-3); }
.tree-body { overflow: hidden; }
.tree-member {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--green-200);
  margin-left: 20px;
  margin-top: 8px;
}

/* ---- KAMAR SELECTOR ---- */
.kamar-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: 10px;
}
.kamar-option.selected {
  border-color: var(--primary);
  background: var(--green-50);
}
.kamar-option input[type=radio] { display: none; }
.kamar-title { font-weight: 600; font-size: 15px; }
.kamar-desc  { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.kamar-price { font-size: 18px; font-weight: 700; color: var(--primary-dk); margin-top: 6px; }

/* ---- BOTTOM SHEET ---- */
.bs-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.bs-overlay.open { opacity: 1; pointer-events: all; }
.bottom-sheet {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 201;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.25,.8,.25,1);
  max-height: 85vh;
  overflow-y: auto;
  padding-bottom: 32px;
}
.bottom-sheet.open { transform: translateY(0); }
.bs-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 12px auto 8px;
}
.bs-title {
  padding: 8px 20px 16px;
  font-size: 17px;
  font-weight: 700;
}
.bs-body { padding: 0 16px; }

/* ---- PAGINATION ---- */
.pagination {
  display: flex; justify-content: center; gap: 6px;
  padding: 16px;
}
.page-btn {
  min-width: 36px; height: 36px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-1);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  font-weight: 700;
}
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ---- DIVIDER ---- */
.divider { height: 1px; background: var(--border); margin: 12px 0; }
.divider-v { width: 1px; background: var(--border); align-self: stretch; }

/* ---- UTIL ---- */
.mt-0  { margin-top: 0; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-8 { gap: 8px; }
.flex  { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm  { font-size: 13px; }
.text-xs  { font-size: 12px; }
.text-muted { color: var(--text-2); }
.text-green { color: var(--primary); }
.text-danger{ color: #F44336; }
.fw-bold { font-weight: 700; }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); }
.overflow-hidden { overflow: hidden; }

/* ---- ADMIN SIDEBAR ---- */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--primary-dk);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width .2s ease;
}
.admin-logo {
  padding: 20px 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.admin-logo span { font-size: 28px; }
.admin-menu { padding: 12px 0; flex: 1; }
.admin-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all .2s;
  white-space: nowrap;
}
.admin-menu a .menu-icon { font-size: 18px; flex-shrink: 0; }
.admin-menu a:hover, .admin-menu a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-right: 3px solid var(--accent-2);
}
.admin-menu .menu-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255,255,255,.4);
  padding: 12px 20px 4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.menu-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
}
.menu-group-arrow { font-size: 10px; transition: transform .2s; }
.menu-group.collapsed .menu-group-arrow { transform: rotate(-90deg); }
.menu-group.collapsed .menu-group-items { display: none; }
html.sidebar-collapsed .menu-group-items { display: block !important; }
.admin-content { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.admin-topbar {
  height: 64px;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-topbar h1 { flex: 1; font-size: 18px; font-weight: 700; color: var(--text-1); letter-spacing: -.2px; }
.admin-main { padding: 24px; flex: 1; background: var(--bg); }

.sidebar-toggle-btn {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text-1);
  padding: 6px 8px;
  border-radius: var(--radius);
}
.sidebar-toggle-btn:hover { background: var(--border); }

/* ---- SIDEBAR COLLAPSED ---- */
html.sidebar-collapsed .admin-sidebar { width: 72px; }
html.sidebar-collapsed .admin-logo { justify-content: center; padding: 20px 8px; }
html.sidebar-collapsed .admin-logo-text,
html.sidebar-collapsed .admin-menu .menu-label,
html.sidebar-collapsed .admin-menu .menu-section { display: none; }
html.sidebar-collapsed .admin-menu a { justify-content: center; padding: 12px 0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .paket-grid { grid-template-columns: 1fr; }
  .stat-grid  { grid-template-columns: repeat(2, 1fr); }
  .dok-grid   { grid-template-columns: 1fr 1fr; }
  .admin-sidebar { display: none; }
  .admin-main { padding: 16px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .paket-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- SKELETON ---- */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* ---- PROGRESS BAR ---- */
.progress { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width .5s;
}
