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

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

:root {
  --navy:    #0F172A;
  --navy2:   #1E293B;
  --white:   #FFFFFF;
  --off:     #F8FAFC;
  --amber:   #C9993A;
  --amber2:  #FDF6E7;
  --green:   #16A34A;
  --green2:  #DCFCE7;
  --red:     #DC2626;
  --red2:    #FEE2E2;
  --yellow:  #D97706;
  --yellow2: #FEF3C7;
  --slate:   #64748B;
  --slate2:  #94A3B8;
  --border:  #E2E8F0;
  --shadow:  0 1px 3px rgba(15,23,42,.07), 0 4px 16px rgba(15,23,42,.05);
  /* alias dipakai beberapa popup/tombol lama */
  --bg:      var(--off);
  --text:    var(--navy);
  --primary: var(--amber);
}

body { font-family: 'Inter', system-ui, sans-serif; background: var(--off); color: var(--navy); -webkit-font-smoothing: antialiased; }

.dash-topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 56px; background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px; gap: 0;
}
.dash-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.dash-logo svg { height: 28px; width: auto; }
.dash-topnav-links { display: flex; align-items: center; gap: 2px; margin-left: 28px; flex: 1; }
.dash-toplink {
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 500; color: var(--slate);
  padding: 6px 12px; border-radius: 7px; transition: background .12s, color .12s; white-space: nowrap;
}
.dash-toplink:hover { background: var(--off); color: var(--navy); }
.dash-toplink.active { background: var(--off); color: var(--navy); font-weight: 600; }
.dash-topnav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }

.dash-user-menu { position: relative; }
.dash-user-btn {
  display: flex; align-items: center; gap: 7px;
  background: var(--off); border: 1px solid var(--border); border-radius: 8px;
  padding: 5px 10px 5px 7px; cursor: pointer; font-family: inherit;
  font-size: 13px; font-weight: 600; color: var(--navy); transition: border-color .15s;
}
.dash-user-btn:hover { border-color: var(--slate2); }
.dash-avatar {
  width: 22px; height: 22px; border-radius: 50%; background: var(--navy);
  color: #fff; font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1;
}
.dash-username { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-user-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: 0 4px 20px rgba(15,23,42,.1);
  min-width: 180px; z-index: 200; opacity: 0; pointer-events: none;
  transform: translateY(-4px); transition: opacity .15s, transform .15s;
}
.dash-user-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dash-dd-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--navy);
  text-decoration: none; cursor: pointer; background: none; border: none;
  font-family: inherit; width: 100%; text-align: left; transition: background .12s;
}
.dash-dd-item:hover { background: var(--off); }
.dash-dd-item:last-child { border-radius: 0 0 9px 9px; }
.dash-dd-logout { color: var(--red); }
.dash-dd-logout:hover { background: var(--red2); }

.dash-layout { display: grid; grid-template-columns: 220px 1fr; padding-top: 56px; min-height: 100vh; }

.dash-sidebar {
  position: fixed; top: 56px; left: 0; bottom: 0; width: 220px;
  background: var(--white); border-right: 1px solid var(--border);
  padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: visible;
}
.dash-sidebar-label {
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--slate2); padding: 8px 12px 6px; margin-top: 4px;
}
.dash-sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--slate);
  cursor: pointer; background: none; border: none;
  font-family: inherit; text-align: left; width: 100%; transition: background .12s, color .12s;
}
.dash-sidebar-item:hover { background: var(--off); color: var(--navy); }
.dash-sidebar-item.active {
  background: var(--off); color: var(--navy); font-weight: 600;
  position: relative;
  border-radius: 10px 0 0 10px;
  margin-right: -12px;
  padding-right: 24px;
  z-index: 1;
}
.dash-sidebar-item.active .dsi-icon { color: var(--amber); }
.dash-sidebar-item.active::before,
.dash-sidebar-item.active::after {
  content: '';
  position: absolute;
  right: 0;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 2;
}
.dash-sidebar-item.active::before {
  top: -14px;
  border-bottom-right-radius: 14px;
  box-shadow: 6px 6px 0 6px var(--off);
  animation: sidebarCurveIn .22s cubic-bezier(.16,1,.3,1);
}
.dash-sidebar-item.active::after {
  bottom: -14px;
  border-top-right-radius: 14px;
  box-shadow: 6px -6px 0 6px var(--off);
  animation: sidebarCurveIn .22s cubic-bezier(.16,1,.3,1);
}
@keyframes sidebarCurveIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.dsi-icon { color: var(--slate2); flex-shrink: 0; display: flex; }
.dash-sidebar-divider { height: 1px; background: var(--border); margin: 10px 0; }
.dash-sidebar-logout {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--slate);
  cursor: pointer; background: none; border: none;
  font-family: inherit; text-align: left; width: 100%;
  transition: background .12s, color .12s; margin-top: auto;
}
.dash-sidebar-logout:hover { background: var(--red2); color: var(--red); }

.dash-main { grid-column: 2; padding: 32px 32px 80px; min-width: 0; }
.dash-page-header { margin-bottom: 26px; }
.dash-page-title { font-size: 22px; font-weight: 800; color: var(--navy); letter-spacing: -.4px; }
.dash-page-sub { font-size: 13px; color: var(--slate); margin-top: 4px; word-break: break-word; overflow-wrap: break-word; }

.dash-mobile-saldo {
  display: none; background: var(--navy); border-radius: 14px;
  padding: 22px 20px; margin-bottom: 18px; color: #fff;
}
.dms-label { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; margin-bottom: 6px; }
.dms-val { font-size: 32px; font-weight: 800; letter-spacing: -1px; margin-bottom: 4px; }
.dms-sub { font-size: 12px; color: rgba(255,255,255,.45); margin-bottom: 18px; }
.dms-btn { background: var(--amber); color: #fff; border: none; border-radius: 9px; padding: 11px 20px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; width: 100%; }

.dash-stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 24px; }
.dash-stat {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 22px; box-shadow: var(--shadow);
}
.ds-label { font-size: 11px; font-weight: 600; color: var(--slate2); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; }
.ds-val { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -.8px; line-height: 1; margin-bottom: 4px; }
.ds-val-sm { font-size: 18px; letter-spacing: -.3px; }
.ds-sub { font-size: 12px; color: var(--slate); }
.dash-stat.highlight { border-color: rgba(201,153,58,.3); background: var(--amber2); }
.dash-stat.highlight .ds-val { color: var(--amber); }
.ds-action {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 5px;
  background: var(--amber); color: #fff; border: none;
  border-radius: 7px; padding: 7px 14px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.ds-action:hover { opacity: .87; }
.ds-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green2); color: var(--green); border-radius: 5px;
  padding: 3px 9px; font-size: 11px; font-weight: 600; margin-top: 8px;
}
.ds-badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.dash-order-banner {
  background: var(--navy); border-radius: 12px; padding: 20px 24px; margin-bottom: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.dob-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.dob-sub { font-size: 12px; color: rgba(255,255,255,.55); }
.dob-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--amber); color: #fff; border: none;
  border-radius: 8px; padding: 10px 20px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit; text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: opacity .15s;
}
.dob-btn:hover { opacity: .88; }

.dash-table-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.dash-table-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.dash-table-title { font-size: 14px; font-weight: 700; color: var(--navy); flex: 1; }
.dash-table-link {
  font-size: 12px; font-weight: 600; color: var(--amber); background: none; border: none;
  cursor: pointer; font-family: inherit; padding: 0; white-space: nowrap;
}
.dash-table-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dash-search-wrap { position: relative; }
.dash-search-input {
  padding: 7px 10px 7px 30px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 12px; font-family: inherit; color: var(--navy); outline: none;
  width: 170px; background: var(--off); transition: border-color .15s;
}
.dash-search-input:focus { border-color: var(--navy); background: var(--white); }
.dash-filter-chips { display: flex; gap: 5px; }
.dash-chip {
  padding: 5px 11px; border-radius: 20px; border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--slate); cursor: pointer;
  background: var(--white); font-family: inherit; transition: all .12s; white-space: nowrap;
}
.dash-chip:hover { border-color: #CBD5E1; color: var(--navy); }
.dash-chip.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

.trx-table { width: 100%; border-collapse: collapse; }
.trx-table th {
  font-size: 10px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--slate2); padding: 10px 16px; text-align: left;
  background: var(--off); border-bottom: 1px solid var(--border);
}
.trx-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--navy); vertical-align: middle; }
.trx-table tr:last-child td { border-bottom: none; }
.trx-table tr:hover td { background: var(--off); }
.trx-date { color: var(--slate); font-size: 12px; }
.trx-type-chip { display: inline-flex; align-items: center; gap: 5px; border-radius: 5px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.trx-type-chip.topup { background: var(--green2); color: var(--green); }
.trx-type-chip.purchase { background: #FEF3C7; color: #92400E; }
.trx-type-chip.refund { background: #DBEAFE; color: #1E40AF; }
.trx-amount { font-weight: 700; font-size: 13px; }
.trx-amount.plus { color: var(--green); }
.trx-amount.minus { color: var(--navy); }
.status-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--green); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.trx-empty { text-align: center; padding: 32px 16px; color: var(--slate2); font-size: 13px; }

.dash-progress-info {
  display: flex; align-items: flex-start; gap: 9px;
  background: #EFF6FF; border: 1px solid #BFDBFE; border-radius: 9px;
  padding: 12px 16px; font-size: 13px; color: #1E40AF; font-weight: 500;
  margin-bottom: 20px; line-height: 1.5; word-break: break-word; overflow-wrap: break-word; min-width: 0;
}
.dash-progress-info svg { flex-shrink: 0; margin-top: 1px; }

.progress-order-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 12px;
  box-shadow: var(--shadow); transition: box-shadow .15s;
}
.progress-order-card:hover { box-shadow: 0 2px 8px rgba(15,23,42,.1); }
.progress-order-card:last-child { margin-bottom: 0; }

.poc-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin-bottom: 6px;
}
.poc-id-file { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.poc-id { font-size: 12px; font-weight: 700; color: var(--slate2); letter-spacing: .3px; }
.poc-file {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 600; color: var(--navy);
  min-width: 0; overflow: hidden;
}
.poc-file svg { flex-shrink: 0; color: var(--slate2); }
/* Nama file truncation -- berlaku di poc-file, por-filename, dpo-card-file */
.poc-fname {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 0; flex: 1;
}
/* Cancel button untuk order antri di server (paid, belum ke Mesosfer) */
.po-actions-queued {
  display: flex; align-items: center; gap: 10px; margin-top: 12px;
}
.po-cancel-hint {
  font-size: 11px; color: var(--slate2); line-height: 1.3;
}
.poc-meta { font-size: 11px; color: var(--slate2); margin-bottom: 12px; }

.poc-status {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 20px; padding: 4px 10px;
  font-size: 11px; font-weight: 700; flex-shrink: 0; white-space: nowrap;
}
.poc-status.done       { background: var(--green2); color: var(--green); }
.poc-status.processing { background: #DBEAFE; color: #1D4ED8; }
.poc-status.queued     { background: var(--yellow2); color: var(--yellow); }
.poc-status.failed     { background: var(--red2); color: var(--red); }
.poc-status.warning   { background: #FEF3C7; color: #B45309; }

.po-result {
  display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap;
  background: var(--off); border-radius: 8px; padding: 10px 14px;
}
.po-result-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.por-label { font-size: 10px; font-weight: 600; color: var(--slate2); text-transform: uppercase; letter-spacing: .5px; }
.por-val { font-size: 18px; font-weight: 800; color: var(--navy); letter-spacing: -.5px; word-break: break-all; overflow-wrap: break-word; }
.por-val.sim-green { color: var(--green); }
.por-val.sim-yellow { color: var(--yellow); }
.por-val.sim-red { color: var(--red); }

.po-pending-hint {
  font-size: 12px; color: var(--slate); font-style: italic;
  background: var(--off); border-radius: 8px; padding: 10px 14px;
}

.progress-empty {
  text-align: center; padding: 52px 24px;
  color: var(--slate2); display: flex; flex-direction: column;
  align-items: center; gap: 10px;
}
.progress-empty svg { color: var(--border); }
.progress-empty div { font-size: 14px; font-weight: 600; color: var(--slate); }
.progress-empty p { font-size: 13px; }

.dash-profil-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 28px 24px; display: flex; align-items: center; gap: 20px;
  box-shadow: var(--shadow); margin-bottom: 16px;
}
.dpc-avatar-wrap { position: relative; flex-shrink: 0; }
.dpc-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy);
  color: #fff; font-size: 24px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  overflow: hidden; border: 2px solid var(--border);
}
.dpc-avatar[data-has-img="1"] { background: none; }
.dpc-avatar-edit {
  position: absolute; bottom: 0; right: -2px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--white);
  color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s;
}
.dpc-avatar-edit:hover { background: #334155; }
.dpc-avatar-msg { font-size: 11px; font-weight: 600; margin-top: 3px; min-height: 16px; }
.dpc-username { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 3px; }
.dpc-email { font-size: 13px; color: var(--slate); margin-bottom: 3px; }
.dpc-joined { font-size: 12px; color: var(--slate2); }

.dash-notice-info {
  display: flex; align-items: flex-start; gap: 9px;
  background: #EFF6FF; border: 1px solid #BFDBFE;
  border-radius: 8px; padding: 11px 14px; margin-bottom: 16px;
  font-size: 12px; color: #1D4ED8; font-weight: 500; line-height: 1.5;
}
.dash-notice-info svg { flex-shrink: 0; margin-top: 1px; }
.dash-profil-fields {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 16px;
}
.dash-pf-row {
  display: flex; align-items: center; padding: 14px 20px;
  border-bottom: 1px solid var(--border); gap: 16px;
}
.dash-pf-row:last-child { border-bottom: none; }
.dash-pf-label { font-size: 12px; font-weight: 600; color: var(--slate); width: 100px; flex-shrink: 0; }
.dash-pf-val { font-size: 13px; color: var(--navy); font-weight: 500; }

.dash-profil-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  overflow: hidden; margin-bottom: 16px;
}
.dps-header {
  padding: 18px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.dps-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.dps-desc { font-size: 12px; color: var(--slate); }
.dps-body { padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }

.dash-form-group { display: flex; flex-direction: column; gap: 6px; }
.dash-form-label { font-size: 12px; font-weight: 600; color: var(--slate); }
.dash-form-input {
  padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; font-family: inherit; color: var(--navy);
  background: var(--off); outline: none; transition: border-color .15s, background .15s;
  max-width: 400px;
}
.dash-form-input:focus { border-color: var(--navy); background: var(--white); }
.dash-form-input:disabled {
  opacity: .5; cursor: not-allowed; background: var(--border);
}
.dash-form-hint { font-size: 11px; color: var(--slate2); }

.dps-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 4px; }

.dash-btn-primary {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--navy); color: #fff; border: none;
  border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: opacity .15s; white-space: nowrap;
}
.dash-btn-primary:hover { opacity: .85; }
.dash-btn-primary.dash-btn-disabled,
.dash-btn-primary:disabled {
  opacity: .4; cursor: not-allowed; pointer-events: none;
}

.dash-form-msg {
  font-size: 12px; font-weight: 600; min-height: 18px;
}
.dash-form-msg.success { color: var(--green); }
.dash-form-msg.error   { color: var(--red); }

.dash-notice-warn {
  display: flex; align-items: flex-start; gap: 9px;
  background: var(--yellow2); border: 1px solid rgba(217,119,6,.2);
  border-radius: 8px; padding: 11px 14px;
  font-size: 12px; color: #92400E; font-weight: 500; line-height: 1.5;
}
.dash-notice-warn svg { flex-shrink: 0; margin-top: 1px; color: var(--yellow); }

.dash-bottomnav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 8px 0 env(safe-area-inset-bottom, 8px);
  align-items: center; justify-content: space-around;
}
.dash-bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 4px 2px; flex: 1 1 0; min-width: 0; color: var(--slate2); transition: color .12s;
  font-size: 10px; font-weight: 600;
}
.dash-bn-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-bn-item.active { color: var(--amber); }

@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
  .dash-main { grid-column: 1; padding: 20px 16px 88px; }
  .dash-topnav-links { display: none; }
  .dash-stat-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-stat { padding: 16px; }
  .ds-val { font-size: 22px; }
  .dash-stat.highlight { display: none; }
  .dash-mobile-saldo { display: block; }
  .dash-bottomnav { display: flex; }
  .dps-body { padding: 16px; }
  .dash-form-input { max-width: 100%; }
  .poc-file { max-width: 180px; }
}
@media (max-width: 560px) {
  .dash-stat-row { grid-template-columns: 1fr; }
  .dash-filter-chips { flex-wrap: wrap; }
  .trx-table th:nth-child(2), .trx-table td:nth-child(2) { display: none; }
  .poc-header { flex-direction: column; gap: 8px; }
  .poc-status { align-self: flex-start; }
}
.dash-sidebar-topup {
  display: flex; align-items: center; gap: 10px;
  width: 100%; border: none; cursor: pointer; font-family: inherit;
  padding: 9px 14px; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--amber);
  border-radius: 8px; margin: 2px 0; transition: opacity .15s;
  letter-spacing: .1px;
}
.dash-sidebar-topup:hover { opacity: .88; }
.dash-sidebar-topup .dsi-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.progress-loading {
  display: flex; align-items: center; gap: 10px;
  padding: 32px 20px; color: var(--slate2); font-size: 13px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.po-progress-wrap {
  height: 5px; background: #e8eaf6; border-radius: 99px; overflow: hidden;
  margin: 8px 0 4px;
}
.po-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #0ea5e9);
  border-radius: 99px; transition: width .5s ease;
}
.po-result-download { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.po-dl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; background: var(--navy); color: #fff;
  border-radius: 8px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: opacity .15s;
}
.po-dl-btn:hover { opacity: .85; }
.po-dl-cover-btn {
  background: transparent !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--border);
}
.po-dl-cover-btn:hover { background: var(--off) !important; opacity: 1; }

.po-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px; flex-wrap: wrap;
}
.po-filters {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.po-filter-btn {
  border: 1px solid var(--border); background: var(--white); color: var(--slate);
  border-radius: 20px; padding: 5px 13px; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: background .13s, color .13s, border-color .13s;
  line-height: 1.4;
}
.po-filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.po-filter-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 600; }
.po-view-toggle { display: flex; gap: 4px; }
.po-view-btn {
  border: 1px solid var(--border); background: var(--white); color: var(--slate2);
  border-radius: 8px; padding: 6px 8px; cursor: pointer;
  display: flex; align-items: center; transition: background .13s, color .13s, border-color .13s;
}
.po-view-btn:hover { border-color: var(--navy); color: var(--navy); }
.po-view-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.po-cards-wrap.po-grid { display: flex; flex-direction: column; gap: 0; }
.po-cards-wrap.po-list { display: flex; flex-direction: column; gap: 6px; }

.progress-order-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 14px;
  transition: box-shadow .13s;
}
.progress-order-row:hover { box-shadow: 0 2px 8px rgba(15,23,42,.08); }
.por-status { flex-shrink: 0; }
.por-info { flex: 1; min-width: 0; }
.por-id-file { display: flex; align-items: center; gap: 8px; min-width: 0; }
.por-filename {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; color: var(--slate);
  overflow: hidden; min-width: 0; max-width: 240px;
}
.por-date { font-size: 11px; color: var(--slate2); margin-top: 2px; }
.por-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.por-sim { font-size: 15px; font-weight: 800; letter-spacing: -.5px; }
.por-sim.sim-green { color: var(--green); }
.por-sim.sim-yellow { color: var(--yellow); }
.por-sim.sim-red { color: var(--red); }
.po-dl-btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; background: var(--navy); color: #fff;
  border-radius: 7px; text-decoration: none; transition: opacity .13s;
}
.po-dl-btn-sm:hover { opacity: .82; }

.po-actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.po-btn-qris {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: #0ea5e9; color: #fff;
  border: none; border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: opacity .13s; line-height: 1;
}
.po-btn-qris:hover { opacity: .85; }
.po-btn-cancel {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: transparent; color: var(--red);
  border: 1px solid var(--red); border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .13s, color .13s;
}
.po-btn-cancel:hover { background: var(--red2); }
.po-btn-qris-sm, .po-btn-cancel-sm {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px;
  border: none; cursor: pointer; transition: opacity .13s;
}
.po-btn-qris-sm { background: #0ea5e9; color: #fff; }
.po-btn-qris-sm:hover { opacity: .82; }
.po-btn-cancel-sm { background: var(--red2); color: var(--red); border: 1px solid #fca5a5; }
.po-btn-cancel-sm:hover { background: #fecaca; }
.po-btn-edit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; background: var(--off); color: var(--navy);
  border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .13s, border-color .13s; line-height: 1;
  font-family: inherit;
}
.po-btn-edit:hover { background: #E2E8F0; border-color: #CBD5E1; }

.po-order-info {
  display: flex; flex-direction: column; gap: 0;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; margin-top: 8px; margin-bottom: 4px;
}
.poi-row {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px; font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.poi-row:last-child { border-bottom: none; }
.poi-icon { display: flex; align-items: center; color: var(--slate2); flex-shrink: 0; }
.poi-label { color: var(--slate); font-weight: 500; flex: 1; min-width: 0; }
.poi-val {
  color: var(--navy); font-weight: 600; text-align: right;
  white-space: normal; word-break: break-word; max-width: 200px;
}
.poi-wa { color: #16a34a; }
.po-order-info-done {
  background: #f8fafb; border-color: #e2e8f0; margin-bottom: 10px;
}
.po-order-info-done .poi-label { color: var(--slate2); }
.po-order-info-done .poi-val   { color: var(--slate); font-weight: 500; }

.dash-edit-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(15,23,42,.52); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dash-edit-modal {
  background: #fff; border-radius: 16px; width: 100%; max-width: 420px;
  box-shadow: 0 20px 60px rgba(15,23,42,.22); overflow: hidden;
}
.dash-edit-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  background: var(--off);
}
.dash-edit-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--navy);
}
.dash-edit-close {
  width: 28px; height: 28px; border-radius: 7px; border: none;
  background: transparent; cursor: pointer; color: var(--slate);
  display: flex; align-items: center; justify-content: center;
  transition: background .13s;
}
.dash-edit-close:hover { background: var(--border); }
.dash-edit-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.dash-edit-order-id {
  font-size: 11px; font-weight: 700; color: var(--slate2);
  letter-spacing: .3px; padding: 4px 10px;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 6px; align-self: flex-start;
}
.dash-edit-field { display: flex; flex-direction: column; gap: 7px; }
.dash-edit-label { font-size: 12px; font-weight: 600; color: var(--slate); }
.dash-edit-opt { font-weight: 400; color: var(--slate2); }
.dash-edit-toggle-row { display: flex; gap: 8px; }
.dash-edit-tog {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; color: var(--slate); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .13s; font-family: inherit; line-height: 1;
}
.dash-edit-tog.active {
  border-color: var(--navy); background: var(--navy); color: #fff;
}
.dash-edit-tog:hover:not(.active) { background: var(--off); border-color: #CBD5E1; }
.dash-edit-filter-row { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-edit-filter-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; color: var(--slate); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .13s; font-family: inherit; line-height: 1;
}
.dash-edit-filter-btn.active {
  border-color: #0ea5e9; background: #e0f2fe; color: #0369a1;
}
.dash-edit-filter-btn:hover:not(.active) { background: var(--off); border-color: #CBD5E1; }
.dash-edit-wa-input {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1.5px solid var(--border); font-size: 13px; font-family: inherit;
  color: var(--navy); outline: none; transition: border-color .13s; box-sizing: border-box;
}
.dash-edit-wa-input:focus { border-color: #0ea5e9; }
.dash-edit-wa-hint { font-size: 11px; color: var(--slate2); }
.dash-edit-actions { display: flex; gap: 8px; }
.dash-edit-save {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; background: var(--navy); color: #fff;
  border: none; border-radius: 9px; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: opacity .13s; font-family: inherit;
}
.dash-edit-save:hover { opacity: .87; }
.dash-edit-save:disabled { opacity: .55; cursor: not-allowed; }
.dash-edit-cancel-btn {
  padding: 10px 16px; background: var(--off); color: var(--slate);
  border: 1px solid var(--border); border-radius: 9px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .13s; font-family: inherit;
}
.dash-edit-cancel-btn:hover { background: #E2E8F0; }
.dash-edit-err {
  font-size: 12px; color: var(--red); background: var(--red2);
  border: 1px solid #fca5a5; border-radius: 7px; padding: 8px 12px;
}

.dash-qris-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(15,23,42,.52); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dash-qris-modal {
  background: var(--white); border-radius: 16px;
  width: 100%; max-width: 320px;
  box-shadow: 0 20px 60px rgba(15,23,42,.22);
  overflow: hidden; animation: qrisIn .18s ease;
}
@keyframes qrisIn { from { opacity:0; transform:scale(.95); } to { opacity:1; transform:scale(1); } }
.dash-qris-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-size: 14px; font-weight: 700; color: var(--navy);
}
.dash-qris-close {
  background: none; border: none; cursor: pointer; color: var(--slate2);
  padding: 2px; border-radius: 6px; display: flex;
  transition: color .13s;
}
.dash-qris-close:hover { color: var(--navy); }
.dash-qris-body {
  padding: 20px 18px 22px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.dash-qris-img {
  border-radius: 10px; border: 1px solid var(--border);
  display: block;
}
.dash-qris-hint { font-size: 12px; color: var(--slate); text-align: center; }
.dash-qris-exp { font-size: 12px; color: var(--yellow); font-weight: 600; }
.dash-qris-id { font-size: 11px; color: var(--slate2); letter-spacing: .3px; }
.dqm-info-block {
  width: 100%; margin-top: 4px;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 10px; padding: 4px 0; overflow: hidden;
}
.dqm-info-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.dqm-info-row:last-child { border-bottom: none; }
.dqm-info-icon {
  display: flex; align-items: center; color: var(--slate2); flex-shrink: 0;
}
.dqm-info-label {
  color: var(--slate); font-weight: 500; flex: 1; min-width: 0;
}
.dqm-info-val {
  color: var(--navy); font-weight: 600; text-align: right;
  white-space: normal; word-break: break-word; max-width: 200px;
}
.dqm-wa { color: #16a34a; }

.zs-toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-12px);
  z-index: 9999; background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 500; padding: 12px 22px;
  border-radius: 10px; box-shadow: 0 8px 24px rgba(15,23,42,.22);
  opacity: 0; transition: opacity .22s, transform .22s;
  pointer-events: none; white-space: nowrap; max-width: 90vw;
}
.zs-toast.zs-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.zs-toast.zs-toast-success { background: #16a34a; }
.zs-toast.zs-toast-error   { background: #DC2626; }
.zs-toast.zs-toast-info    { background: var(--navy); }

.popup-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(15,23,42,.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.popup-overlay.open { opacity: 1; pointer-events: auto; }
.popup-card {
  background: #fff; border-radius: 16px; width: 100%; max-width: 420px;
  padding: 0; box-shadow: 0 24px 48px rgba(15,23,42,.18);
  border: 1px solid var(--border);
  transform: scale(.96) translateY(8px); transition: transform .22s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
.popup-overlay.open .popup-card { transform: scale(1) translateY(0); }
.topup-card { max-width: 400px; width: 94vw; border-radius: 16px; }
.topup-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
}
.topup-title { font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.popup-close {
  background: none; border: none; font-size: 22px;
  color: var(--slate2); cursor: pointer; padding: 2px 6px; line-height: 1; transition: color .12s;
}
.popup-close:hover { color: var(--navy); }
.topup-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.topup-field { display: flex; flex-direction: column; gap: 10px; }
.topup-label { font-size: 12px; font-weight: 700; color: var(--navy); letter-spacing: .2px; }
.topup-presets { display: flex; gap: 7px; flex-wrap: wrap; }
.topup-preset {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 7px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  color: var(--navy); cursor: pointer; font-family: inherit; transition: border-color .12s, background .12s;
}
.topup-preset:hover { border-color: var(--amber); background: #fffbf0; }
.topup-input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 14px; font-family: inherit; color: var(--navy);
  background: #fff; outline: none; transition: border-color .15s;
}
.topup-input:focus { border-color: var(--navy); }
.topup-summary {
  background: var(--off); border: 1px solid var(--border);
  border-radius: 9px; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px;
}
.topup-summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate); }
.topup-summary-total { font-weight: 700; color: var(--navy); font-size: 14px; }
.topup-qr-wrap { text-align: center; background: #f8f9ff; border-radius: 12px; padding: 14px; }
.topup-qr-img { width: 200px; height: 200px; border-radius: 8px; display: block; margin: 0 auto; }
.topup-qr-hint { font-size: 12px; color: var(--slate2); text-align: center; }
.topup-expired { font-size: 11px; color: #ef4444; text-align: center; min-height: 16px; }
.topup-status-text {
  text-align: center; font-size: 13px; font-weight: 600; padding: 8px 12px;
  border-radius: 8px;
}
.topup-check-btn {
  width: 100%; padding: 9px; border: 1.5px solid var(--navy);
  border-radius: 8px; background: #fff; color: var(--navy);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.topup-check-btn:hover { background: var(--navy); color: #fff; }
.topup-error { font-size: 12px; color: #DC2626; min-height: 16px; }
.topup-actions { display: flex; gap: 10px; }
.topup-btn-primary {
  flex: 1; background: var(--navy); color: #fff; border: none;
  border-radius: 8px; padding: 11px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: opacity .15s;
}
.topup-btn-primary:hover { opacity: .85; }
.topup-btn-primary:disabled { opacity: .4; cursor: not-allowed; }
.topup-btn-secondary {
  flex: 1; background: transparent; color: var(--navy);
  border: 1px solid var(--border); border-radius: 8px; padding: 11px 16px;
  font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.topup-btn-secondary:hover { background: var(--off); }

.dash-sidebar-topup {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--amber);
  cursor: pointer; background: var(--amber2); border: none;
  font-family: inherit; text-align: left; width: 100%;
  transition: background .12s, color .12s;
}
.dash-sidebar-topup:hover { background: #FDEBC0; }
.dash-sidebar-topup .dsi-icon { color: var(--amber); }

.dsi-badge-new {
  margin-left: auto;
  font-size: 9px; font-weight: 700;
  background: var(--amber); color: #fff;
  border-radius: 4px; padding: 2px 5px;
  letter-spacing: .3px; flex-shrink: 0;
}

.popup-close {
  background: none; border: none; cursor: pointer;
  color: var(--slate2); display: flex; align-items: center;
  justify-content: center; padding: 4px; border-radius: 6px;
  transition: color .12s, background .12s;
}
.popup-close:hover { color: var(--navy); background: var(--off); }

.dash-reseller-hero {
  display: flex; align-items: flex-start; gap: 20px;
  background: var(--navy); border-radius: 14px;
  padding: 22px 26px; margin-bottom: 24px; color: #fff;
  flex-wrap: wrap;
}
.drh-icon {
  width: 52px; height: 52px; flex-shrink: 0;
  background: rgba(201,153,58,.15); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
}
.drh-body { flex: 1; min-width: 180px; }
.drh-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 5px; letter-spacing: -.3px; }
.drh-sub { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.6; }
.drh-stat-row {
  display: flex; align-items: center; gap: 0;
  background: rgba(255,255,255,.06); border-radius: 10px;
  padding: 12px 18px; flex-shrink: 0; gap: 20px;
}
.drh-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.drh-stat-val { font-size: 18px; font-weight: 800; color: var(--amber); letter-spacing: -.5px; }
.drh-stat-label { font-size: 10px; color: rgba(255,255,255,.45); white-space: nowrap; }
.drh-stat-div { width: 1px; height: 32px; background: rgba(255,255,255,.1); }

.dash-reseller-plans.drp-3col {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 14px;
}
.dash-reseller-plans.drp-2col {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-bottom: 14px;
}
@media (max-width: 640px) {
  .dash-reseller-plans.drp-2col,
  .dash-reseller-plans.drp-3col { grid-template-columns: 1fr; }
}

.rsl-status-banner {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 16px;
}
.rsl-status-icon { font-size: 22px; flex-shrink: 0; }
.rsl-status-body { flex: 1; min-width: 0; }
.rsl-status-tier { font-weight: 700; font-size: 14px; color: var(--navy); }
.rsl-status-exp  { font-size: 12px; color: var(--slate); margin-top: 2px; }
.rsl-status-badge {
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 20px; white-space: nowrap;
}
.rsl-status-badge.active  { background: #d1fae5; color: #065f46; }
.rsl-status-badge.expired { background: #fee2e2; color: #991b1b; }

.drp-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px; padding: 24px 20px;
  display: flex; flex-direction: column;
  position: relative;
}
.drp-card-featured {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 8px 32px rgba(201,153,58,.1);
}
.drp-badge-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .4px;
  padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.drp-tier {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--slate2); margin-bottom: 8px;
}
.drp-card-featured .drp-tier { color: var(--amber); }
.drp-price {
  font-size: 26px; font-weight: 800; color: var(--navy);
  letter-spacing: -1px; line-height: 1; margin-bottom: 3px;
}
.drp-price-period { font-size: 13px; font-weight: 500; color: var(--slate); letter-spacing: 0; }
.drp-price-sub { font-size: 11px; color: var(--slate2); margin-bottom: 0; }
.drp-divider { height: 1px; background: var(--border); margin: 16px 0; }

.drp-quota-box {
  background: var(--off); border-radius: 9px;
  padding: 12px 14px; margin-bottom: 16px;
  display: flex; flex-direction: column; gap: 7px;
}
.drp-quota-box-pro {
  background: rgba(201,153,58,.07);
}
.drp-quota-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
}
.drp-quota-label {
  display: flex; align-items: center; gap: 5px;
  color: var(--navy); font-weight: 500;
}
.drp-quota-label svg { color: var(--slate); flex-shrink: 0; }
.drp-quota-price { font-weight: 700; color: var(--navy); font-size: 12px; }
.drp-quota-over .drp-quota-label { color: var(--slate); font-weight: 400; padding-left: 17px; }
.drp-quota-over .drp-quota-price { color: var(--slate); font-weight: 600; }
.drp-free-tag { color: #16A34A !important; }

.drp-features {
  list-style: none; display: flex; flex-direction: column;
  gap: 10px; flex: 1; margin-bottom: 20px;
}
.drp-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--navy); line-height: 1.45;
}
.drp-features li svg { flex-shrink: 0; margin-top: 1px; }
.drp-feat-off { color: var(--slate2); }

.drp-btn {
  width: 100%; padding: 11px 0; border-radius: 9px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: opacity .15s; border: none;
}
.drp-btn:hover { opacity: .85; }
.drp-btn-primary { background: var(--amber); color: #fff; }
.drp-btn-outline {
  background: none; border: 1.5px solid var(--border); color: var(--navy);
}
.drp-btn-outline:hover { border-color: var(--navy); opacity: 1; }

.drp-note {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--slate); line-height: 1.6;
  background: var(--off); border: 1px solid var(--border);
  border-radius: 9px; padding: 12px 14px; margin-bottom: 24px;
}
.drp-note svg { flex-shrink: 0; margin-top: 1px; color: var(--slate2); }

/* Card basic di-disable oleh owner via resellerDisableBasic */
.drp-card-disabled {
  opacity: 0.45;
  filter: grayscale(0.6);
  pointer-events: none;
  border-color: var(--border) !important;
  box-shadow: none !important;
}
.drp-card-disabled .drp-btn {
  cursor: not-allowed;
  opacity: 0.6;
}

.dash-reseller-faq {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px;
}
.drf-title {
  font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 16px;
}
.drf-item { padding: 13px 0; border-bottom: 1px solid var(--border); }
.drf-item:last-child { border-bottom: none; padding-bottom: 0; }
.drf-q { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.drf-a { font-size: 13px; color: var(--slate); line-height: 1.65; }

@media (max-width: 900px) {
  .dash-reseller-plans.drp-3col { grid-template-columns: 1fr; }
  .dash-reseller-hero { flex-direction: column; gap: 14px; }
  .drh-stat-row { width: 100%; justify-content: center; }
}



#maintenanceOverlay{position:fixed;inset:0;z-index:9999;background:#F8FAFC;overflow-y:auto;display:flex;flex-direction:column;min-height:100vh}
body.mnt-locked{overflow:hidden}
.mnt-inner{max-width:760px;margin:0 auto;padding:56px 24px 40px;flex:1;display:flex;flex-direction:column;gap:28px}
.mnt-illustration{width:100%;max-width:320px;margin:0 auto -8px}
.mnt-illustration svg{width:100%;height:auto}
.mnt-eyebrow{display:block;text-align:center;font-size:11px;font-weight:700;letter-spacing:3px;text-transform:uppercase;color:#C9993A}
.mnt-title{font-size:clamp(28px,4vw,44px);font-weight:800;letter-spacing:-1px;line-height:1.1;color:#0F172A;text-align:center;margin:0}
.mnt-desc{font-size:16px;line-height:1.72;color:#64748B;text-align:center;max-width:560px;margin:0 auto}
.mnt-countdown{text-align:center}
.mnt-cd-label{font-size:13px;color:#94A3B8;margin-bottom:12px}
.mnt-cd-row{display:flex;align-items:center;justify-content:center;gap:8px}
.mnt-cd-unit{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:56px}
.mnt-cd-num{font-size:48px;font-weight:800;color:#0F172A;letter-spacing:-2px;line-height:1;font-variant-numeric:tabular-nums}
.mnt-cd-sub{font-size:11px;color:#94A3B8;font-weight:500;letter-spacing:.5px}
.mnt-cd-sep{font-size:40px;font-weight:700;color:#CBD5E1;line-height:1;margin-bottom:18px}
.mnt-info-card{background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:28px 32px;display:grid;grid-template-columns:1fr 1fr;gap:32px}
.mnt-info-title{font-size:14px;font-weight:700;color:#0F172A;margin-bottom:20px}
.mnt-info-row{display:flex;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid #F1F5F9}
.mnt-info-row:last-child{border-bottom:none}
.mnt-info-icon{color:#94A3B8;flex-shrink:0;display:flex;align-items:center}
.mnt-info-label{font-size:13px;color:#64748B;min-width:130px}
.mnt-info-val{font-size:13px;color:#0F172A;font-weight:500;flex:1;text-align:right}
.mnt-info-badge{background:#FEF3C7;color:#92400E;font-size:11px;font-weight:700;padding:3px 10px;border-radius:6px;letter-spacing:.3px;flex-shrink:0;margin-left:auto}
.mnt-tasks-title{font-size:14px;font-weight:700;color:#0F172A;margin-bottom:16px}
.mnt-tasks{list-style:none;display:flex;flex-direction:column;gap:12px}
.mnt-task{display:flex;align-items:center;gap:10px;font-size:13px;color:#334155}
.mnt-notify-card{background:#0F172A;border-radius:14px;padding:22px 28px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.mnt-notify-icon{width:44px;height:44px;background:rgba(255,255,255,.08);border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.mnt-notify-text{flex:1;min-width:160px}
.mnt-notify-title{font-size:14px;font-weight:700;color:#fff;margin-bottom:3px}
.mnt-notify-sub{font-size:12px;color:rgba(255,255,255,.5)}
.mnt-notify-btns{display:flex;gap:10px;flex-wrap:wrap}
.mnt-btn-discord{display:flex;align-items:center;gap:7px;padding:9px 16px;border-radius:8px;background:#5865F2;color:#fff;font-size:13px;font-weight:600;text-decoration:none;transition:opacity .15s;white-space:nowrap}
.mnt-btn-discord:hover{opacity:.85}
.mnt-btn-wa{display:flex;align-items:center;gap:7px;padding:9px 16px;border-radius:8px;background:#25D366;color:#fff;font-size:13px;font-weight:600;text-decoration:none;transition:opacity .15s;white-space:nowrap}
.mnt-btn-wa:hover{opacity:.85}
.mnt-support-card{background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:20px 28px;display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.mnt-support-icon{width:40px;height:40px;background:#F1F5F9;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.mnt-support-text{flex:1;min-width:160px}
.mnt-support-title{font-size:14px;font-weight:700;color:#0F172A;margin-bottom:3px}
.mnt-support-sub{font-size:12px;color:#64748B}
.mnt-btn-support{padding:9px 18px;border-radius:8px;border:1.5px solid #E2E8F0;font-size:13px;font-weight:600;color:#0F172A;text-decoration:none;white-space:nowrap;transition:border-color .15s}
.mnt-btn-support:hover{border-color:#94A3B8}
.mnt-trust-bar{border-top:1px solid #E2E8F0;padding-top:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.mnt-trust-services{display:flex;align-items:center;gap:14px;flex-wrap:wrap;font-size:12px;color:#334155;font-weight:600}
.mnt-trust-dot{width:7px;height:7px;border-radius:50%;background:#4ADE80;flex-shrink:0;display:inline-block;box-shadow:0 0 6px rgba(74,222,128,.5)}
.mnt-svc{display:flex;align-items:center;gap:5px;color:#64748B;font-weight:400}
.mnt-svc-dot{width:5px;height:5px;border-radius:50%;background:#4ADE80;display:inline-block}
.mnt-trust-stats{display:flex;gap:20px;flex-shrink:0;flex-wrap:wrap}
.mnt-trust-stats span{font-size:12px;color:#64748B}
.mnt-trust-stats strong{color:#0F172A;font-weight:700}
.mnt-footer{border-top:1px solid #E2E8F0;padding:24px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.mnt-footer-copy,.mnt-footer span{font-size:12px;color:#94A3B8}
.mnt-footer-links{display:flex;gap:18px;list-style:none}
.mnt-footer-links a{font-size:12px;color:#94A3B8;text-decoration:none;transition:color .15s}
.mnt-footer-links a:hover{color:#64748B}
@media(max-width:680px){.mnt-info-card{grid-template-columns:1fr}.mnt-info-label{min-width:100px}.mnt-cd-num{font-size:36px}.mnt-notify-card{gap:14px}.mnt-trust-bar{flex-direction:column;align-items:flex-start}.mnt-trust-stats{gap:12px}.mnt-inner{padding:40px 16px 32px}}

.wa-popup-box{background:#fff;border-radius:16px;padding:0;width:340px;max-width:calc(100vw - 32px);box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden}
.wa-popup-header{display:flex;align-items:center;justify-content:space-between;padding:18px 20px 14px;border-bottom:1px solid #F1F5F9}
.wa-popup-title{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#0F172A}
.wa-popup-close{width:28px;height:28px;display:flex;align-items:center;justify-content:center;border:none;background:none;cursor:pointer;color:#94A3B8;border-radius:7px;transition:background .12s,color .12s}
.wa-popup-close:hover{background:#F1F5F9;color:#0F172A}
.wa-popup-sub{font-size:12px;color:#64748B;padding:10px 20px 4px}
.wa-popup-list{padding:8px 12px 14px;display:flex;flex-direction:column;gap:6px}
.wa-popup-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;border:1px solid #E2E8F0;text-decoration:none;color:#0F172A;font-size:13px;font-weight:500;transition:border-color .15s,background .15s}
.wa-popup-item:hover{border-color:#25D366;background:#F0FDF4}
.wa-popup-item span{flex:1}

.dps-otp-notice{display:flex;align-items:flex-start;gap:8px;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:12px 14px;font-size:13px;color:#92400e;margin-bottom:16px;line-height:1.5}
.dps-otp-notice svg{flex-shrink:0;margin-top:1px}
.dash-otp-input{letter-spacing:6px;font-size:18px;font-weight:700;text-align:center;font-family:monospace}
.dash-btn-ghost{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:8px;border:1.5px solid #E2E8F0;background:transparent;font-size:13px;font-weight:600;color:#64748B;cursor:pointer;transition:border-color .15s,color .15s}
.dash-btn-ghost:hover{border-color:#94A3B8;color:#0F172A}

.dash-lang-switcher{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;background:#F1F5F9;border:1px solid #E2E8F0;border-radius:10px;padding:3px;isolation:isolate;flex-shrink:0}
.dash-lang-switcher::before{content:'';position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);background:#0F172A;border-radius:7px;box-shadow:0 1px 3px rgba(15,23,42,.2);transition:transform .22s cubic-bezier(.4,0,.2,1);z-index:-1}
.dash-lang-switcher[data-active="id"]::before{transform:translateX(100%)}
.dash-lang-btn{min-width:38px;height:28px;padding:0 10px;border:none;background:transparent;border-radius:7px;font-family:inherit;font-size:11.5px;font-weight:700;color:#64748B;cursor:pointer;transition:color .15s;letter-spacing:.05em;-webkit-tap-highlight-color:transparent}
.dash-lang-btn:hover{color:#0F172A}
.dash-lang-btn.active,.dash-lang-btn.active:hover{color:#fff}
.dash-lang-btn:focus-visible{outline:2px solid var(--amber);outline-offset:1px}
@media (max-width:640px){.dash-topnav-right{gap:8px}.dash-lang-btn{min-width:36px;height:30px;padding:0 8px}}
@media (prefers-reduced-motion:reduce){.dash-lang-switcher::before{transition:none}}

.dash-pending-section {
  background: var(--white);
  border: 1.5px solid #fde68a;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(217,119,6,.07);
}
.dash-pending-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #fef3c7;
  background: linear-gradient(90deg,#fffbeb 0%,#fff 100%);
}
.dash-pending-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--navy);
}
.dph-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,.22);
  animation: dphPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes dphPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(245,158,11,.22); }
  50%      { box-shadow: 0 0 0 6px rgba(245,158,11,.08); }
}

.dpo-card {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  transition: background .12s;
}
.dpo-card:last-child { border-bottom: none; }
.dpo-card:hover { background: var(--off); }
.dpo-card-left { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.dpo-status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #f59e0b; flex-shrink: 0;
  border: 2px solid #fef3c7;
}
/* Dot biru untuk order antri di server (paid, belum ke Mesosfer) */
.dpo-status-dot-queued {
  background: #0ea5e9; border-color: #e0f2fe;
}
/* Card antri server: subtle border biru */
.dpo-card-queued {
  border-left: 3px solid #0ea5e9;
}
/* Badge inline status antri */
.dpo-status-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 20px; letter-spacing: .2px; flex-shrink: 0;
}
.dpo-status-badge-queued {
  background: #e0f2fe; color: #0369a1;
}
.dpo-card-info { min-width: 0; }
.dpo-card-id {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--navy);
  line-height: 1.3;
}
.dpo-card-id svg { color: var(--slate2); flex-shrink: 0; }
.dpo-card-file {
  font-size: 12px; color: var(--slate); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 280px;
}
.dpo-card-time { font-size: 11px; color: var(--slate2); margin-top: 1px; }
.dpo-card-actions { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.dpo-btn-qris {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; background: #0ea5e9; color: #fff;
  border: none; border-radius: 8px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: opacity .13s; white-space: nowrap;
  font-family: inherit;
}
.dpo-btn-qris:hover { opacity: .85; }
.dpo-btn-cancel {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; background: transparent; color: var(--red);
  border: 1px solid var(--red); border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; transition: background .13s; white-space: nowrap;
  font-family: inherit;
}
.dpo-btn-cancel:hover { background: var(--red2); }

@media (max-width: 640px) {
  .dpo-card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px 16px; }
  .dpo-card-actions { width: 100%; }
  .dpo-btn-qris, .dpo-btn-cancel { flex: 1; justify-content: center; }
  .dpo-card-file { max-width: 200px; }
  .dash-pending-header { padding: 12px 16px 10px; }
}

.dash-confirm-overlay {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(15,23,42,.54); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.dash-confirm-modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 360px;
  box-shadow: 0 20px 60px rgba(15,23,42,.22); overflow: hidden;
  animation: dashModalIn .16s cubic-bezier(.22,1,.36,1);
}
@keyframes dashModalIn {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.dash-confirm-header {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--border);
}
.dash-confirm-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--red2); display: flex; align-items: center; justify-content: center;
  color: var(--red); flex-shrink: 0;
}
.dash-confirm-title {
  font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.3;
}
.dash-confirm-body {
  padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px;
}
.dash-confirm-msg {
  font-size: 13px; color: var(--slate); line-height: 1.55;
}
.dash-confirm-actions {
  display: flex; gap: 8px; justify-content: flex-end;
}
.dash-confirm-no {
  padding: 9px 18px; border-radius: 8px; border: 1.5px solid var(--border);
  background: #fff; color: var(--slate); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .12s;
}
.dash-confirm-no:hover { background: var(--off); }
.dash-confirm-yes {
  padding: 9px 18px; border-radius: 8px; border: none;
  background: var(--red); color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: opacity .12s;
}
.dash-confirm-yes:hover { opacity: .86; }
.dash-edit-esm-inline { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-edit-esm-expand { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dash-edit-esm-hidden { display: none !important; }
.dash-edit-esm-input { width: 68px; padding: 5px 8px; border: 1.5px solid var(--border); border-radius: 7px; background: var(--bg2,#fff); color: var(--navy); font-size: 12px; font-family: inherit; outline: none; transition: border-color .13s; }
.dash-edit-esm-input:focus { border-color: #0ea5e9; }
.dash-edit-esm-unit-row { display: inline-flex; gap: 3px; }
.dash-edit-esm-unit-btn { padding: 5px 9px; border-radius: 7px; border: 1.5px solid var(--border); background: #fff; color: var(--slate); font-size: 11px; font-weight: 600; cursor: pointer; transition: all .13s; font-family: inherit; line-height: 1; }
.dash-edit-esm-unit-btn.active { border-color: #0ea5e9; background: #e0f2fe; color: #0369a1; }
.dash-edit-esm-unit-btn:hover:not(.active) { background: var(--off); border-color: #CBD5E1; }
.dash-edit-esm-unit-fixed { font-size: 11px; font-weight: 600; color: var(--slate); padding: 5px 9px; border-radius: 7px; border: 1.5px solid var(--border); background: var(--off); line-height: 1; }

.po-release-wrap { display:flex; align-items:center; gap:10px; margin-top:8px; margin-bottom:4px; }
.po-btn-release {
  display:inline-flex; align-items:center; gap:6px;
  padding:7px 14px; border-radius:8px; font-size:12px; font-weight:600;
  background:#FEF3C7; color:#92400E; border:1.5px solid #FCD34D; cursor:pointer;
  transition:background .15s; font-family:inherit;
}
.po-btn-release:hover { background:#FDE68A; }
.po-btn-refund {
  background:#DCFCE7; color:#166534; border-color:#86EFAC;
}
.po-btn-refund:hover { background:#BBF7D0; }
.po-btn-refund:disabled { opacity:.6; cursor:default; }
.po-release-hint { font-size:11px; color:var(--slate2); }

.rsl-dashboard-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 8px; border: none;
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 600; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: opacity .13s;
}
.rsl-dashboard-btn:hover { opacity: .82; }

.rsl-si-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.rsl-si-dot--on  { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.rsl-si-dot--off { background: #ef4444; }

.rsd-tabbar {
  display: flex; gap: 0; margin-bottom: 22px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0; overflow-x: auto; scrollbar-width: none;
}
.rsd-tabbar::-webkit-scrollbar { display: none; }
.rsd-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border: none; background: none;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--slate); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .13s, border-color .13s;
}
.rsd-tab svg { flex-shrink: 0; }
.rsd-tab.active { color: var(--amber); border-bottom-color: var(--amber); }
.rsd-tab:hover:not(.active) { color: var(--navy); }

.rsd-plan-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.rsd-plan-card.plan-active  { border-left: 3px solid #22c55e; }
.rsd-plan-card.plan-expired { border-left: 3px solid #ef4444; }
.rsd-plan-icon-wrap {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--off); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rsd-plan-icon {
  display: flex; align-items: center; justify-content: center;
}
.rsd-plan-body { flex: 1; min-width: 0; }
.rsd-plan-name { font-size: 14px; font-weight: 700; color: var(--navy); }
.rsd-plan-exp  { font-size: 12px; color: var(--slate); margin-top: 2px; }
.rsd-plan-badge {
  font-size: 10px; font-weight: 700; padding: 4px 11px;
  border-radius: 20px; letter-spacing: .06em; text-transform: uppercase; flex-shrink: 0;
}
.rsd-plan-badge.active  { background: #dcfce7; color: #15803d; }
.rsd-plan-badge.expired { background: #fee2e2; color: #991b1b; }

.rsd-stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.rsd-stat-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 14px; text-align: center;
  box-shadow: var(--shadow);
}
.rsd-stat-icon {
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px; color: var(--slate2);
}
.rsd-stat-val   { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.5px; }
.rsd-stat-label { font-size: 11px; color: var(--slate); margin-top: 4px; font-weight: 500; }

.rsd-action-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.rsd-action-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 18px 10px 14px; text-align: center;
  cursor: pointer; transition: border-color .15s, box-shadow .15s;
  box-shadow: var(--shadow);
}
.rsd-action-card:hover {
  border-color: var(--amber);
  box-shadow: 0 2px 12px rgba(201,153,58,.12);
}
.rsd-action-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--off); display: flex; align-items: center; justify-content: center;
  color: var(--slate); margin: 0 auto 10px;
  transition: background .15s, color .15s;
}
.rsd-action-card:hover .rsd-action-icon {
  background: var(--amber2); color: var(--amber);
}
.rsd-action-label { font-size: 12px; font-weight: 600; color: var(--navy); }

.rsd-pricing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow); margin-top: 16px;
}
.rsd-pricing-title { font-size: 12px; font-weight: 700; color: var(--slate2); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
.rsd-pricing-row   {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px; color: var(--slate);
  border-bottom: 1px solid var(--border);
}
.rsd-pricing-row:last-child { border-bottom: none; }
.rsd-pricing-val   { font-weight: 700; color: var(--navy); }

.rsd-locked-wrap { display: flex; justify-content: center; padding: 24px 0 8px; }
.rsd-locked-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 32px 28px; text-align: center; max-width: 340px; width: 100%;
  box-shadow: var(--shadow);
}
.rsd-locked-icon {
  width: 60px; height: 60px; border-radius: 14px;
  background: var(--off); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate2); margin: 0 auto 16px;
}
.rsd-locked-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.rsd-locked-desc  { font-size: 13px; color: var(--slate); line-height: 1.6; margin-bottom: 20px; }
.rsd-locked-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 22px; border-radius: 9px; border: none;
  background: var(--amber); color: #fff;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: opacity .13s;
}
.rsd-locked-btn:hover { opacity: .86; }

.rsd-wa-status-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow);
}
.rsd-wa-status-row {
  display: flex; align-items: center; gap: 10px;
}
.rsd-wa-status-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  background: var(--slate2);
}
.rsd-wa-status-dot.connected    {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
  animation: waStatusPulse 2s ease-in-out infinite;
}
@keyframes waStatusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,.07); }
}
.rsd-wa-status-dot.disconnected { background: #ef4444; }
.rsd-wa-status-text { font-size: 13px; font-weight: 600; color: var(--navy); }
.rsd-wa-number      { font-size: 12px; color: var(--slate); margin-top: 6px; padding-left: 20px; font-weight: 500; }
.rsd-wa-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 9px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: opacity .13s;
}
.rsd-wa-btn-primary { background: var(--navy); color: #fff; }
.rsd-wa-btn-danger  { background: #fee2e2; color: #991b1b; border: 1.5px solid #fecaca; }
.rsd-wa-btn:hover { opacity: .84; }

.rsd-cs-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 36px 28px; text-align: center;
  max-width: 380px; margin: 20px auto; box-shadow: var(--shadow);
}
.rsd-cs-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
  color: var(--amber); margin: 0 auto 16px;
}
.rsd-cs-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.rsd-cs-desc  { font-size: 13px; color: var(--slate); line-height: 1.65; margin-bottom: 18px; }
.rsd-cs-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 14px; border-radius: 20px;
  background: var(--amber2); color: var(--amber);
  font-size: 11px; font-weight: 700; border: 1px solid rgba(201,153,58,.25);
  letter-spacing: .03em;
}

@media (max-width: 640px) {
  .rsd-stat-row    { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rsd-action-row  { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .rsd-stat-card   { padding: 12px 8px; }
  .rsd-stat-val    { font-size: 20px; }
  .rsd-action-card { padding: 14px 8px 10px; }
  .rsd-action-icon { width: 36px; height: 36px; border-radius: 8px; }
  .rsd-tab         { padding: 8px 12px; font-size: 12px; }
}
@media (max-width: 400px) {
  .rsd-stat-row   { grid-template-columns: 1fr; }
  .rsd-action-row { grid-template-columns: 1fr; }
  .rsd-action-card { flex-direction: row; text-align: left; align-items: center; gap: 12px; padding: 12px 14px; display: flex; }
  .rsd-action-icon { margin: 0; flex-shrink: 0; }
}

.rsl-maint-fullpage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 48px 24px;
  text-align: center;
}
.rsl-maint-inner {
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.rsl-maint-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 2px solid #FCD34D;
}
.rsl-maint-title {
  font-size: 20px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 12px;
  line-height: 1.3;
}
.rsl-maint-sub {
  font-size: 13.5px;
  color: #78350F;
  line-height: 1.75;
  opacity: .85;
  margin-bottom: 28px;
}
.rsl-maint-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F59E0B;
  color: #1E293B;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.rsl-maint-back-btn:hover {
  background: #D97706;
}

/* ── Add On: kartu rapi (desktop & HP) ───────────────────────────────────── */
.addon-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.addon-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 20px; transition: border-color .15s, box-shadow .15s;
}
.addon-card.is-active { border-color: rgba(22,163,74,.45); box-shadow: 0 0 0 3px rgba(22,163,74,.07); }
.addon-card.is-off { opacity: .85; }
.addon-top { display: flex; align-items: center; gap: 12px; }
.addon-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,153,58,.12); color: var(--amber);
}
.addon-head { flex: 1; min-width: 0; }
.addon-name { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.addon-price { font-size: 13px; font-weight: 700; color: var(--amber); margin-top: 2px; }
.addon-price-per { font-weight: 500; color: var(--slate); font-size: 12px; }
.addon-pill {
  flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
}
.addon-pill.idle { background: #F1F5F9; color: #64748B; border-color: #E2E8F0; }
.addon-pill.on   { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.addon-pill.off  { background: #FEE2E2; color: #B91C1C; border-color: #FECACA; }
.addon-sub { font-size: 12px; color: var(--slate); padding: 8px 12px; background: var(--off); border-radius: 8px; }
.addon-card.is-active .addon-sub { color: #166534; background: #F0FDF4; font-weight: 600; }
.addon-card.is-off .addon-sub { color: #B91C1C; background: #FEF2F2; }
.addon-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.addon-feats li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; color: var(--navy2); }
.addon-feats li svg { flex-shrink: 0; margin-top: 3px; color: var(--green); }
.addon-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 2px; }
.addon-btn {
  width: 100%; padding: 12px 16px; border-radius: 10px; font-family: inherit;
  font-size: 14px; font-weight: 700; cursor: pointer; border: 1px solid transparent;
  transition: opacity .15s, border-color .15s;
}
.addon-btn-primary { background: var(--amber); color: #fff; }
.addon-btn-ghost { background: transparent; color: var(--slate); border-color: var(--border); font-weight: 600; padding: 10px 16px; font-size: 13px; }
.addon-btn:hover:not(:disabled) { opacity: .88; }
.addon-btn-ghost:hover:not(:disabled) { border-color: var(--slate2); opacity: 1; }
.addon-btn.is-locked, .addon-btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 720px) {
  .addon-grid { grid-template-columns: 1fr; gap: 14px; }
  .addon-card { padding: 16px; }
}

