/* ====================================================================
   ASNiko Mature Look & Mobile Responsive · Shared CSS
   ====================================================================
   Dipakai di dashboard.html, index.html, modul.html, admin.html.
   Tone: tenang, profesional, untuk user dewasa.
   Hapus dekorasi berlebih, tone down warna kuat, kompak di mobile.
   ==================================================================== */

/* ===== Floating chat bubbles (WA, Telegram) · kalem, kurang menonjol ===== */
.fab-asn {
  width: 42px !important;
  height: 42px !important;
  font-size: 18px !important;
  opacity: 0.78;
  bottom: 14px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18) !important;
  transition: opacity 0.2s;
}
.fab-asn:hover { opacity: 1; }
.fab-asn.tg { right: 64px !important; }
.fab-asn.wa { right: 14px !important; }
.fab-asn svg,
.fab-asn .fa {
  font-size: 18px !important;
  width: 18px !important;
  height: 18px !important;
}

/* ===== FOMO toast popup · hilangkan, terlalu pushy untuk audiens dewasa ===== */
.fomo-toast { display: none !important; }

/* ===== Bundle banner mobile responsive ===== */
@media (max-width: 768px) {
  body { overflow-x: hidden; }

  .bun-big-inner { padding: 14px 14px !important; gap: 11px !important; }
  .bun-big-icon { width: 46px !important; height: 46px !important; font-size: 15px !important; border-radius: 11px !important; }
  .bun-big-title { font-size: 14px !important; line-height: 1.3 !important; }
  .bun-big-desc { font-size: 11.5px !important; }
  .bun-big-price-new { font-size: 14px !important; }
  .bun-big-arrow { display: none !important; }
  .bun-big-ribbon { font-size: 8.5px !important; padding: 3.5px 10px !important; }
  .bun-big-chip { font-size: 9.5px !important; padding: 2px 7px !important; }

  /* Bundle modal · hampir full screen di mobile */
  .bun-overlay { padding: 0 !important; }
  .bun-modal { border-radius: 0 !important; max-width: 100% !important; min-height: 100vh; }
  .bun-modal-header { padding: 22px 18px 16px !important; }
  .bun-modal-icon { width: 50px !important; height: 50px !important; font-size: 16px !important; }
  .bun-modal-title-block h2 { font-size: 16px !important; }
  .bun-modal-body { padding: 18px 18px !important; }
  .bun-modal-features li { font-size: 12.5px !important; }
  .bun-modal-tos { grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)) !important; gap: 5px !important; }
  .bun-modal-to { font-size: 11px !important; padding: 7px 4px !important; }
  .bun-modal-final { font-size: 20px !important; }
  .bun-modal-cta { padding: 11px 22px !important; font-size: 13px !important; }
}

@media (max-width: 480px) {
  /* TO list items super compact */
  .to-list .to-item { padding: 9px 10px !important; gap: 8px !important; min-height: 42px !important; }
  .to-list .to-item .to-icon { width: 32px !important; height: 32px !important; font-size: 16px !important; border-radius: 8px !important; }
  .to-list .to-item .to-info h4 { font-size: 12.5px !important; }
  .to-list .to-item .to-badge { font-size: 8.5px !important; padding: 2.5px 7px !important; }
  .to-price-chip { font-size: 10px !important; padding: 1.5px 7px !important; }

  /* Chip filter kategori (kalau masih dipakai, e.g. di Rekap) */
  .acf-chip { padding: 6px 11px !important; font-size: 11.5px !important; }

  /* Bundle banner ekstrem kecil */
  .bun-big-icon { width: 42px !important; height: 42px !important; font-size: 14px !important; }
  .bun-big-title { font-size: 13px !important; }
  .bun-big-chip { display: none !important; }
  .bun-big-price-new { font-size: 13px !important; }
  .bun-big-price-old { font-size: 11px !important; }

  /* Bundle modal lebih kompak */
  .bun-modal-features { gap: 7px !important; }
  .bun-modal-section h3 { font-size: 13px !important; margin-bottom: 9px !important; }
}

/* ===== Kategori Tab Header (Tryout, Rekap, Modul · multi-tab + mobile dropdown) ===== */
.cat-tab-bar { padding: 0 2px; border-bottom: 1.5px solid #e3e6ed; margin-bottom: 16px; }
.cth-desktop { display: flex; align-items: flex-end; gap: 4px; flex-wrap: wrap; }
.cth-mobile { display: none; position: relative; }
.cth-tab {
  background: #fafbfd;
  border: 1.5px solid #e3e6ed;
  border-bottom: 1.5px solid transparent;
  color: #6b7280;
  padding: 10px 18px 9px;
  border-radius: 12px 12px 0 0;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1.5px;
  transition: all .18s ease;
}
.cth-tab:hover {
  background: #fff;
  color: #1f2937;
  border-color: #d1d5db;
  border-bottom-color: transparent;
}
.cth-tab.active {
  background: #fff;
  border-color: #e3e6ed;
  border-bottom: 3px solid var(--cat-color, #0277bd);
  color: var(--cat-color, #0277bd);
  font-weight: 800;
  padding-bottom: 7px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .04);
}
.cth-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.cth-mobile-active {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: #fff;
  border: 1.5px solid #e3e6ed;
  border-bottom: 3px solid var(--cat-color, #0277bd);
  color: var(--cat-color, #0277bd);
  padding: 12px 16px;
  border-radius: 12px 12px 0 0;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, .04);
}
.cth-mobile-active .cth-chev {
  margin-left: auto;
  color: #9ca3af;
  font-size: 12px;
  transition: transform .2s;
}
.cth-mobile-active.open .cth-chev { transform: rotate(180deg); }
.cth-mobile-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1.5px solid #e3e6ed;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
  z-index: 50;
  margin-top: 1.5px;
  padding: 6px;
  flex-direction: column;
  gap: 4px;
}
.cth-mobile-dropdown.open { display: flex; }
.cth-mobile-dropdown .cth-tab {
  border: 1px solid transparent;
  border-radius: 8px;
  width: 100%;
  justify-content: flex-start;
  padding: 10px 14px;
  margin-bottom: 0;
  font-size: 13.5px;
  background: #fafbfd;
  border-bottom: 1px solid transparent;
}
.cth-mobile-dropdown .cth-tab.active {
  background: #fff;
  border-bottom: 1px solid var(--cat-color, #0277bd);
  border-left: 3px solid var(--cat-color, #0277bd);
  padding-left: 11px;
  padding-bottom: 10px;
  box-shadow: none;
}
@media (max-width: 720px) {
  .cth-desktop { display: none; }
  .cth-mobile { display: block; }
  .cat-tab-bar { border-bottom: none; }
}

/* ===== Kategori Picker (kalau dipakai di luar dashboard) ===== */
.cat-picker-wrap {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  margin-bottom: 18px;
}
.cat-picker-head {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-picker-head span { font-size: 12px; font-weight: 500; color: #6b7280; }
.cat-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.cat-pick-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
}
.cat-pick-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cat-color, #0277bd);
  opacity: 0;
  transition: opacity 0.22s;
}
.cat-pick-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  border-color: var(--cat-color, #0277bd);
}
.cat-pick-card:hover::before { opacity: 1; }
.cat-pick-icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}
.cat-pick-title { font-size: 16px; font-weight: 800; margin: 0 0 6px; letter-spacing: 0.2px; line-height: 1.3; }
.cat-pick-desc { font-size: 12px; color: #6b7280; line-height: 1.55; margin: 0; min-height: 34px; }

@media (max-width: 600px) {
  .cat-picker-wrap { padding: 14px 14px; }
  .cat-picker-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-pick-card { padding: 18px 12px; }
  .cat-pick-icon { width: 46px; height: 46px; font-size: 15px; margin-bottom: 10px; }
  .cat-pick-title { font-size: 13.5px; }
  .cat-pick-desc { font-size: 11px; min-height: 0; }
}
@media (max-width: 380px) {
  .cat-picker-grid { grid-template-columns: 1fr; }
}

/* ===== Modul page (standalone modul.html) mature touches ===== */
.catalog-header h1 { letter-spacing: 0.1px; }
@media (max-width: 600px) {
  .catalog-header h1 { font-size: 18px !important; }
  .catalog-header p { font-size: 12.5px !important; }
}

/* ===== Admin page mature: kalem typography + ringan UI ===== */
.sidebar-logo { letter-spacing: 0.3px; }
@media (max-width: 768px) {
  .card-title { font-size: 1.1rem !important; }
  .stats-row { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
}
