[hidden] { display: none !important; }
/* Kelas Excel: wallet di header */
.top .wallet { margin-left: 12px; }
.screen { width: min(1240px, calc(100% - 9vw)); margin: 24px auto; }
.startbar { width: min(1240px, calc(100% - 9vw)); margin: 18px auto 0; }
.locked-card { opacity: .82; }
.locked-card .tag::after { content: " · 🔒"; }
.gatepanel h1 { font-size: 30px; letter-spacing: -1px; margin: 6px 0 16px; }
/* ---------- Academy: dompet, gerbang, akun, pembayaran ---------- */
.wallet {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 13px;
}
.wl-link {
  font-weight: 600;
  text-decoration: none;
}
.chip {
  border: 1px solid #d3ddd1;
  background: #f7f9f5;
  border-radius: 99px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
  color: #294133;
  white-space: nowrap;
}
.chip.on {
  background: #e5f5dc;
  border-color: #b7dca3;
  color: #176746;
}
.chip.off {
  color: #8a5a12;
  background: #fdf6e6;
  border-color: #efdcb0;
}
.chip.go {
  background: #176746;
  border-color: #176746;
  color: #fff;
  cursor: pointer;
  animation: pulse 2.2s ease-in-out infinite;
}
.chip.go:hover {
  background: #0f5236;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 #25865a66; }
  50% { box-shadow: 0 0 0 6px #25865a00; }
}
.startbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: -6px 0 22px;
  padding: 16px 20px;
  background: #e5f5dc;
  border: 1px solid #b7dca3;
  border-left: 5px solid #176746;
  border-radius: 12px;
}
.sb-txt {
  display: grid;
  gap: 2px;
  font-size: 14px;
  color: #2c4434;
  flex: 1 1 320px;
}
.sb-txt b {
  font-size: 16px;
  color: #123d2b;
}
.sb-act {
  display: flex;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
}
.sb-act button {
  border: 1px solid #ced8cf;
  background: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 650;
  color: #26593e;
}
.sb-act .primary,
.dlg .primary {
  background: #176746;
  border: 1px solid #176746;
  color: #fff;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: 650;
  font-size: 15px;
}
.sb-auto {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #42544a;
  cursor: pointer;
}
.dlg.center {
  text-align: center;
  justify-items: center;
}
.dlg .big {
  font-size: 17px !important;
  padding: 14px 22px !important;
}
.dlg .link {
  background: none !important;
  border: 0;
  color: #617166;
  font-size: 14px !important;
  text-decoration: underline;
}
.chip.bal b {
  color: #176746;
}
.usermenu {
  position: relative;
}
.usermenu summary {
  list-style: none;
  cursor: pointer;
  font-weight: 650;
  padding: 5px 8px;
}
.usermenu summary::-webkit-details-marker {
  display: none;
}
.usermenu > div {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 20;
  width: 260px;
  background: #fff;
  border: 1px solid #d7ded6;
  border-radius: 10px;
  box-shadow: 0 10px 30px #0002;
  padding: 10px;
  display: grid;
  gap: 4px;
}
.usermenu small {
  color: #617166;
  padding: 4px 6px;
  overflow-wrap: anywhere;
}
.usermenu button,
.usermenu a {
  text-align: left;
  background: none;
  border: 0;
  padding: 7px 6px;
  border-radius: 6px;
  text-decoration: none;
  color: #193b2c;
  font-size: 13.5px;
}
.usermenu button:hover,
.usermenu a:hover {
  background: #eef5ea;
}
.usermenu .auto {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12.5px;
  padding: 7px 6px;
  color: #42544a;
}
.screen {
  margin-bottom: 28px;
}
.authbox {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #d7ded6;
  border-radius: 14px;
  padding: 28px;
  display: grid;
  gap: 12px;
}
.authbox h2 {
  font:
    normal 28px/1.2 Georgia,
    serif;
}
.authbox form {
  display: grid;
  gap: 10px;
}
.authbox label,
.custom label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #42544a;
}
.authbox input,
.custom input {
  padding: 10px 12px;
  border: 1px solid #ced7cd;
  border-radius: 8px;
  background: #f9fbf8;
  font-weight: 400;
}
.authbox .primary,
.gatebox .primary {
  background: #176746;
  color: #fff;
  border: 1px solid #176746;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 650;
}
.muted {
  color: #617166;
}
.small {
  font-size: 12.5px;
}
.warn {
  background: #fdf1ef;
  color: #7a2c24;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
}
.gateicon {
  font-size: 34px;
}
#gate {
  margin: 4px 0 18px;
}
.gatebox {
  border: 1.5px dashed #b7dca3;
  background: #f6fbf2;
  border-radius: 14px;
  padding: 26px;
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.gatebox p {
  max-width: 560px;
  color: #42544a;
}
.gatebtns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.gatebtns button {
  border: 1px solid #ced8cf;
  background: #fff;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 600;
  color: #26593e;
}
.gatenote {
  font-size: 13px;
}
.lesson.locked {
  color: #7d8c82;
}
dialog#payDialog {
  width: min(560px, 94vw);
  max-height: 88vh;
  overflow: auto;
  padding: 0;
}
.dlg {
  padding: 22px;
  display: grid;
  gap: 10px;
}
.dlghead {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dlghead h3 {
  margin: 0;
  font:
    normal 24px Georgia,
    serif;
}
.dlg h4 {
  margin: 8px 0 0;
}
.pkgs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}
.pkg {
  display: grid;
  gap: 3px;
  text-align: left;
  background: #fbfcfa !important;
  border: 1.5px solid #d3ddd1 !important;
  border-radius: 10px !important;
  padding: 12px !important;
  font-size: 13px !important;
  color: #193b2c;
}
.pkg:hover {
  border-color: #25865a !important;
}
.pkg b {
  font-size: 17px;
}
.pkg em {
  color: #25865a;
  font-style: normal;
  font-weight: 650;
}
.pkg small {
  color: #617166;
}
.custom {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.custom label {
  flex: 1;
}
.custom button {
  background: #176746 !important;
  color: #fff;
  font-size: 14px !important;
  padding: 10px 16px !important;
}
.tw {
  overflow: auto;
}
.dlg table {
  margin: 0;
  width: 100%;
  font: 12.5px "Segoe UI", Arial, sans-serif;
}
.dlg td small {
  color: #617166;
}
.dlg .neg {
  color: #b23b2e;
}
.dlg .pos {
  color: #25865a;
}
.st.paid {
  color: #25865a;
  font-weight: 650;
}
.st.failed {
  color: #b23b2e;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #132820;
  color: #e5f5dc;
  padding: 12px 18px;
  border-radius: 10px;
  max-width: min(520px, 92vw);
  box-shadow: 0 8px 30px #0004;
  z-index: 50;
  font-size: 14px;
}
@media (max-width: 780px) {
  .bar {
    height: auto;
    min-height: 60px;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 8px;
  }
  .wallet .chip {
    font-size: 11.5px;
    padding: 4px 9px;
  }
  .authbox {
    padding: 20px;
  }
}

nav button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}
dialog {
  width: min(450px, 92vw);
  color: #193b2c;
  border: 1px solid #cdd8ce;
  border-radius: 14px;
  padding: 22px;
}
dialog::backdrop {
  background: #10291ec2;
}
dialog .outhead {
  padding: 0;
}
dialog button {
  background: #eef3ed;
  border: 0;
  border-radius: 6px;
  font-size: 20px;
  padding: 2px 10px;
}
dialog ul {
  padding-left: 22px;
}
dialog li {
  padding: 3px;
}
dialog > a {
  font-size: 13px;
}
@media (max-width: 450px) {
  .brand {
    font-size: 19px;
  }
  .bar {
    padding: 0 10px;
  }
  nav {
    gap: 9px;
    font-size: 13px;
  }
  .mark {
    width: 28px;
    height: 28px;
    line-height: 27px;
    margin-right: 2px;
  }
}

.visitor { width: min(1240px, calc(100% - 9vw)); margin: 24px auto 0; }
.visitor .hero { margin: 0; }
