/* ================= DASHBOARD ================= */
:root {
  --radius-lg: 12px;
  --radius-md: 10px;
}

/* --- Background --- */
.dash-body {
  background: var(--bg);
  min-height: 100vh;
}

/* --- Pulse dot (shared) --- */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ee7a8;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ================= LOGIN GATE ================= */
.dash-login[hidden] {
  display: none;
}

.dash-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 2;
}

.dash-login-card {
  width: min(380px, 100%);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: rgba(17, 25, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.dash-login-card h1 {
  margin: 12px 0 4px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}

.dash-login-card > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

#dash-login-form {
  display: grid;
  gap: 14px;
  text-align: left;
}

.dash-login-card .auth-submit {
  width: 100%;
  margin-top: 4px;
}

.demo-hint {
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(122, 168, 255, 0.07);
  border: 1px solid rgba(122, 168, 255, 0.16);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
  text-align: left;
}

.demo-hint code {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.dash-back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 160ms ease;
}
.dash-back:hover { color: var(--text); }

/* ================= APP LAYOUT ================= */
.dash-app[hidden] {
  display: none;
}

/* Aturan global ini harus menang atas aturan .dash-view / .panel / .panel[hidden]
   supaya toggle `hidden` di JS bekerja dengan benar. */
.dash-login[hidden],
.dash-app[hidden],
.dash-view[hidden],
#dash-view-dynamic[hidden],
[hidden] {
  display: none !important;
}

.dash-app {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

/* --- Sidebar --- */
.dash-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px 14px;
  border-right: 1px solid var(--panel-line);
  background: var(--bg-soft);
}

.dash-sidebar::before {
  display: none;
}

.dash-sidebar .brand {
  padding: 2px 8px;
  gap: 8px;
  font-size: 14px;
}

.dash-sidebar .brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: transparent;
  font-size: 13px;
}
.dash-sidebar .brand-mark img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
}

.dash-nav {
  display: grid;
  gap: 6px;
}

.dash-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px;
  margin-bottom: 2px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms ease;
}

.dash-back-link:hover {
  color: var(--text);
}

.dash-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 160ms ease, color 160ms ease;
}

.nav-caret {
  color: var(--muted);
  font-size: 18px;
  opacity: 0.6;
  transition: opacity 160ms ease, transform 160ms ease, color 160ms ease;
}

.dash-nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.dash-nav-link:hover .nav-caret {
  opacity: 1;
  transform: translateX(2px);
  color: var(--text);
}

.dash-nav-link.is-active {
  background: rgba(255, 140, 66, 0.1);
  color: var(--text);
}

/* --- User card in sidebar --- */
.dash-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-user-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: rgba(255, 140, 66, 0.14);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.dash-user-meta {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0;
}

.dash-user-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-user-plan {
  color: var(--muted);
  font-size: 11px;
}

.dash-gear,
.dash-logout {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: background 150ms ease, color 150ms ease;
}

.dash-gear:hover {
  background: rgba(255, 140, 66, 0.14);
  color: var(--accent);
}

.dash-logout:hover {
  background: rgba(255, 90, 90, 0.15);
  color: #ff7a7a;
}

/* --- Main content --- */
.dash-main {
  padding: 24px 28px;
  overflow-x: auto;
  position: relative;
  z-index: 2;
}

.dash-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dash-header h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dash-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.dash-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dash-header-admin {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 140, 66, 0.08);
  border: 1px solid rgba(255, 140, 66, 0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 140ms ease;
  white-space: nowrap;
}
.dash-header-admin:hover {
  background: rgba(255, 140, 66, 0.14);
  border-color: var(--accent);
}
.dash-header-admin[hidden] {
  display: none;
}

/* ================= AKUN INFORMATION ================= */
.acct-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  margin-bottom: 14px;
  border-radius: var(--radius-md);
  background: rgba(17, 25, 40, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.acct-avatar {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 140, 66, 0.12);
  border: 1px solid rgba(255, 140, 66, 0.25);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
}

.acct-id {
  min-width: 0;
}

.acct-id h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.acct-id p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.acct-sep {
  margin: 0 6px;
  opacity: 0.4;
}

.acct-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.acct-box {
  padding: 18px 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(17, 25, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 12px;
}

.acct-box-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.acct-box-value {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.acct-box-value.acct-ok {
  color: #6ee7a8;
}

.acct-box-value.acct-small {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
}

.acct-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.role-badge.role-buyer {
  color: #7aa8ff;
  background: rgba(122, 168, 255, 0.12);
  border-color: rgba(122, 168, 255, 0.3);
}

.role-badge.role-reseller {
  color: #f6c453;
  background: rgba(246, 196, 83, 0.12);
  border-color: rgba(246, 196, 83, 0.3);
}

.role-badge.role-admin {
  color: #ff7a7a;
  background: rgba(255, 90, 90, 0.12);
  border-color: rgba(255, 90, 90, 0.3);
}

/* ================= PANELS ================= */
.dash-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
}

.panel {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(17, 25, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel h3 {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
}

.panel-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.panel-note code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.panel-head h3 {
  margin: 0;
}

/* ================= ACTIVITY LIST ================= */
.activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.activity li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.activity li:hover { color: var(--text); }

.activity li:last-child { border-bottom: 0; }

.dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
}
.dot.ok   { background: #6ee7a8; }
.dot.warn { background: #f6c453; }

/* ================= METER ================= */
.meter {
  height: 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.meter-bar {
  height: 100%;
  border-radius: 4px;
  background: #7aa8ff;
  transition: width 0.8s ease;
}

.meter-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ================= PENGATURAN ================= */
.settings-block {
  margin-bottom: 14px;
}

.settings-block.danger-zone {
  border-color: rgba(255, 90, 90, 0.2);
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.settings-field {
  display: grid;
  gap: 6px;
}

.settings-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.settings-field input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.settings-field input:focus {
  border-color: rgba(122, 168, 255, 0.45);
  background: rgba(122, 168, 255, 0.06);
}

.settings-save {
  margin-top: 4px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-row > span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-msg {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
}

.settings-msg.is-success { color: #6ee7a8; }
.settings-msg.is-error   { color: #ff7a7a; }

.btn-danger {
  padding: 9px 18px;
  border-radius: 10px;
  border: 1px solid rgba(255, 90, 90, 0.35);
  background: rgba(255, 90, 90, 0.1);
  color: #ff7a7a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.18s ease;
}

.btn-danger:hover {
  background: rgba(255, 90, 90, 0.2);
}

/* ================= FLOAT BACK BUTTON (kanan bawah) ================= */
.dash-fab-back {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--panel-line);
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  transition: background 140ms ease;
}

.dash-fab-back .fab-ico {
  font-size: 14px;
  color: var(--accent);
}

.dash-fab-back:hover {
  background: #20283a;
}

@media (max-width: 520px) {
  .dash-fab-back {
    right: 16px;
    bottom: 16px;
    padding: 10px 14px;
  }
}

/* ================= TUTORIAL ================= */
.tut-grid {
  display: grid;
  gap: 14px;
}

.tut-list {
  display: grid;
  gap: 8px;
}

.tut-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tut-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tut-item-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 15px;
  background: rgba(122, 168, 255, 0.1);
  border: 1px solid rgba(122, 168, 255, 0.15);
}

.tut-item-main {
  flex: 1;
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tut-item-main strong {
  font-size: 13px;
}

.tut-item-main span {
  color: var(--muted);
  font-size: 12px;
}

.tut-item.tut-done .tut-item-ico {
  background: linear-gradient(135deg, rgba(110, 231, 168, 0.15), rgba(34, 197, 94, 0.1));
  border-color: rgba(110, 231, 168, 0.25);
}

.tut-item.tut-done .tut-item-main strong {
  opacity: 0.6;
}
.tut-item.tut-done .tut-item-main span {
  opacity: 0.5;
}

.tut-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(110, 231, 168, 0.12);
  color: #6ee7a8;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(110, 231, 168, 0.25);
}

.tut-btn {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(122, 168, 255, 0.1);
  border: 1px solid rgba(122, 168, 255, 0.2);
  color: #7aa8ff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tut-btn:hover {
  background: rgba(122, 168, 255, 0.2);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
  .acct-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .dash-app {
    grid-template-columns: 1fr;
  }

  .dash-sidebar {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--panel-line);
    padding: 10px 12px;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .dash-sidebar::before {
    display: none;
  }

  .dash-sidebar .brand {
    padding: 0;
    flex-shrink: 0;
  }

  .dash-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dash-nav::-webkit-scrollbar {
    display: none;
  }

  .dash-nav-link {
    white-space: nowrap;
    padding: 7px 11px;
    font-size: 14px;
  }

  .dash-user {
    padding: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .dash-user-meta {
    display: none;
  }

  .dash-main {
    padding: 20px 14px;
  }

  .dash-two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .acct-grid {
    grid-template-columns: 1fr;
  }
  .settings-row {
    grid-template-columns: 1fr;
  }
  .dash-fab-back {
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ================= PERANGKAT TERHUBUNG (LOG) ================= */
.dev-logout-all {
  padding: 7px 14px;
  font-size: 12px;
}

.dev-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.dev-log li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease;
}

.dev-log li:hover {
  background: rgba(255, 255, 255, 0.05);
}

.dev-log li.dev-current {
  background: rgba(110, 231, 168, 0.05);
  border-color: rgba(110, 231, 168, 0.15);
}

.dev-ico {
  font-size: 16px;
  text-align: center;
}

.dev-meta {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.dev-meta strong {
  font-size: 13px;
  color: var(--text);
}

.dev-meta span {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.dev-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  flex-shrink: 0;
}

.dev-tag.cur {
  color: #6ee7a8;
  background: rgba(110, 231, 168, 0.1);
  border: 1px solid rgba(110, 231, 168, 0.2);
}

.dev-tag.other {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ================= MODAL KONFIRMASI ================= */
.dev-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.dev-modal[hidden] {
  display: none;
}

.dev-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 18, 0.78);
  backdrop-filter: blur(4px);
  animation: devFade 0.25s ease both;
}

.dev-modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 26px 24px;
  border-radius: 14px;
  background: #151f36;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: devPop 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.3) both;
}

.dev-modal-ico {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 12px;
  animation: devShake 0.55s ease 0.15s both;
}

.dev-modal-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
}

.dev-modal-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.dev-modal-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 90, 90, 0.05);
  border: 1px solid rgba(255, 90, 90, 0.15);
  display: grid;
  gap: 8px;
}

.dev-modal-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}

.dev-modal-list li .dev-ico { font-size: 14px; }
.dev-modal-list li span:last-child {
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.dev-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.dev-modal-actions .btn-ghost {
  padding: 9px 16px;
}

.dev-modal-actions .btn-danger {
  padding: 9px 16px;
  animation: devPulse 1.6s ease-in-out 0.4s infinite;
}

@keyframes devFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes devPop {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes devShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px) rotate(-6deg); }
  40% { transform: translateX(4px) rotate(6deg); }
  60% { transform: translateX(-3px) rotate(-3deg); }
  80% { transform: translateX(3px) rotate(3deg); }
}

@keyframes devPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 90, 0.45); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 90, 90, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dev-modal-overlay, .dev-modal-card, .dev-modal-ico,
  .dev-modal-actions .btn-danger {
    animation: none;
  }
}

/* ================= PRODUK ================= */
.prd-panel { padding: 20px; }

.prd-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.prd-group { margin-bottom: 18px; }

.prd-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.prd-group-head h4 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
}

.prd-cat-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 16px;
  flex-shrink: 0;
}

.prd-ico-hosting { background: rgba(255, 170, 90, 0.12);  border: 1px solid rgba(255, 170, 90, 0.25); }
.prd-ico-license { background: rgba(176, 122, 255, 0.12);  border: 1px solid rgba(176, 122, 255, 0.25); }
.prd-ico-otp     { background: rgba(110, 231, 168, 0.12);  border: 1px solid rgba(110, 231, 168, 0.25); }
.prd-ico-other   { background: rgba(90, 200, 250, 0.12);   border: 1px solid rgba(90, 200, 250, 0.25); }

.prd-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.prd-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(17, 25, 40, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px;
}

.prd-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 170, 90, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.prd-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prd-plan-name {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.prd-plan-price {
  font-size: 14px;
  font-weight: 700;
  color: #6ee7a8;
  white-space: nowrap;
}

.prd-plan-price span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.prd-desc {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.prd-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.prd-list li {
  font-size: 12px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
}

.prd-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #6ee7a8;
  font-size: 11px;
}

.prd-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.prd-status {
  font-size: 11px;
  font-weight: 700;
  color: #6ee7a8;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(110, 231, 168, 0.1);
  border: 1px solid rgba(110, 231, 168, 0.2);
}

.prd-order {
  padding: 6px 14px;
  font-size: 12px;
}

.prd-order.is-done {
  background: rgba(110, 231, 168, 0.14);
  border-color: rgba(110, 231, 168, 0.4);
  color: #6ee7a8;
  cursor: default;
}

/* Ikon list di group head */
.prd-ico-list {
  background: rgba(110, 231, 168, 0.12);
  border: 1px solid rgba(110, 231, 168, 0.25);
}

/* Ikon katalog dinamis */
.prd-ico-dyn {
  background: rgba(255, 170, 90, 0.12);
  border: 1px solid rgba(255, 170, 90, 0.25);
}

/* Badge stok di card dinamis */
.prd-stok {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.prd-stok-in {
  color: #6ee7a8;
  background: rgba(110, 231, 168, 0.12);
  border: 1px solid rgba(110, 231, 168, 0.3);
}
.prd-stok-out {
  color: #ff9090;
  background: rgba(255, 100, 100, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.3);
}

/* Foot card 2 kolom: stok + tombol */
.prd-card-foot-2 {
  justify-content: space-between;
}

/* Tombol Pesan — kondisi disabled / habis */
.prd-order.is-disabled {
  background: rgba(255, 100, 100, 0.08);
  border-color: rgba(255, 100, 100, 0.25);
  color: #ff9090;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Card dinamis — sedikit berbeda agar terasa dari admin */
.prd-card-dyn {
  border-color: rgba(255, 170, 90, 0.12);
}
.prd-card-dyn:hover {
  border-color: rgba(255, 170, 90, 0.35);
}

/* Riwayat order */
.prd-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.prd-orders-empty {
  padding: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  line-height: 1.6;
}

.prd-order-item {
  display: grid;
  grid-template-columns: 24px 1fr auto 28px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease;
}

.prd-order-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.prd-order-ico {
  font-size: 15px;
  text-align: center;
}

.prd-order-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.prd-order-meta strong {
  font-size: 13px;
  font-weight: 600;
}

.prd-order-meta span {
  color: var(--muted);
  font-size: 11px;
}

.prd-order-val {
  color: #6ee7a8;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

/* Catatan untuk admin di riwayat order */
.prd-order-note {
  display: block;
  margin-top: 3px;
  color: #ffaa5a;
  font-size: 11px;
  font-style: italic;
}

/* Tombol detail (ikon mata) di tiap baris riwayat order */
.prd-order-detail {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted, #9aa0b4);
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.prd-order-detail:hover {
  background: rgba(110, 231, 168, 0.12);
  border-color: rgba(110, 231, 168, 0.4);
  color: #6ee7a8;
}

/* ===== Popup detail order (read-only + salin pesan) ===== */
.ord-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.ord-detail-overlay[hidden] { display: none; }

.ord-detail {
  width: 100%;
  max-width: 360px;
  background: #1a1e2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.ord-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ord-detail-head h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
  color: #fff;
}
.ord-detail-close {
  background: none;
  border: none;
  color: var(--muted, #9aa0b4);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.ord-detail-close:hover { color: #fff; }

.ord-detail-body {
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}
.ord-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ord-detail-cell {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.ord-detail-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted, #9aa0b4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ord-detail-value {
  font-size: 13px;
  color: #fff;
  font-weight: 600;
}
.ord-detail-price { color: #6ee7a8; }

.ord-detail-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ord-detail-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.ord-st-pending        { background: rgba(255, 170, 90, 0.15);  color: #ffaa5a; }
.ord-st-deploy         { background: rgba(96, 165, 250, 0.15);  color: #60a5fa; }
.ord-st-deploy_success { background: rgba(110, 231, 168, 0.15); color: #6ee7a8; }
.ord-st-failed         { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.ord-detail-spec {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: grid;
  gap: 3px;
}
.ord-detail-spec li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: #e6e8f0;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.ord-detail-spec li span:first-child {
  color: var(--muted, #9aa0b4);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.ord-detail-mut { color: var(--muted, #9aa0b4); font-size: 12px; }

.ord-detail-copywrap {
  display: grid;
  gap: 4px;
}
.ord-detail-copy {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cfd3e0;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  user-select: text;
}

.ord-detail-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ord-detail-foot .btn-ghost {
  padding: 6px 14px;
  font-size: 12px;
}
.ord-detail-foot .btn-primary {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
  background: #6ee7a8;
  color: #101218;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.ord-detail-foot .btn-primary:hover { background: #8df0ba; }
.ord-detail-foot .btn-primary.is-done { background: #3f4456; color: #cfd3e0; }

/* Mobile: popup tetap muat, ikon mata tak mengganggu tap target */
@media (max-width: 640px) {
  .ord-detail { max-width: 100%; }
  .ord-detail-grid { grid-template-columns: 1fr; }
  .prd-order-detail { width: 32px; height: 32px; }
}

/* Modal order — overlay */
#ord-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#ord-modal-overlay[hidden] { display: none; }

.ord-modal {
  width: 100%;
  max-width: 340px;
  background: #1a1e2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
}

.ord-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ord-modal-head h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}
.ord-modal-price {
  color: #6ee7a8;
  font-weight: 700;
  font-size: 13px;
  margin-left: auto;
  margin-right: 8px;
}
.ord-modal-price span {
  font-weight: 400;
  font-size: 10px;
  color: var(--muted);
}
.ord-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}
.ord-modal-close:hover { color: #fff; }

.ord-modal-body {
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.ord-field {
  display: grid;
  gap: 4px;
}
.ord-field-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ord-field input,
.ord-field textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  padding: 7px 10px;
  box-sizing: border-box;
  font-family: inherit;
}
.ord-field input:focus,
.ord-field textarea:focus {
  outline: none;
  border-color: rgba(110, 231, 168, 0.5);
}
.ord-field textarea {
  resize: vertical;
  min-height: 48px;
}

.ord-modal-hint {
  font-size: 12px;
  color: var(--muted);
}
.ord-modal-hint strong {
  color: #6ee7a8;
}

.ord-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.ord-modal-foot .btn-ghost {
  padding: 6px 14px;
  font-size: 12px;
}
.ord-modal-foot .btn-primary {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 6px;
  background: #6ee7a8;
  color: #101218;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.ord-modal-foot .btn-primary:hover {
  background: #8df0ba;
}

/* Coming soon strip */
.prd-coming {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prd-coming-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.prd-soon {
  opacity: 0.7;
}

.prd-soon .prd-cat-ico {
  filter: grayscale(0.4);
}

.prd-soon-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

/* Mini cards kategori lain */
.prd-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.prd-mini {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.prd-mini strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.prd-mini p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .prd-cards { grid-template-columns: 1fr; }
  .prd-mini-grid { grid-template-columns: 1fr 1fr; }
  .prd-card { padding: 14px; min-height: auto; }
  .prd-plan-name { font-size: 14px; }
  .prd-plan-price { font-size: 13px; }
  .prd-order-item { padding: 10px 12px; gap: 10px; }
}

@media (max-width: 480px) {
  .prd-mini-grid { grid-template-columns: 1fr; }
  .prd-card-foot { flex-direction: column; align-items: flex-start; gap: 8px; }
  .prd-card-foot .btn-ghost { width: 100%; justify-content: center; }
}

/* ================= ANALITIC ================= */
.ana-panel {
  padding: 20px;
}

.ana-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ana-seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ana-seg-btn {
  padding: 7px 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.15s ease, background 0.15s ease;
}

.ana-seg-btn.is-active {
  background: rgba(122, 168, 255, 0.16);
  color: #bcd3ff;
  box-shadow: inset 0 0 0 1px rgba(122, 168, 255, 0.25);
}

.ana-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 13px;
}

.ana-dl span:last-child {
  color: #bcd3ff;
}

.ana-chart-wrap {
  position: relative;
  padding: 14px;
  border-radius: 10px;
  background: rgba(5, 9, 18, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
  overflow-x: auto;
}

#ana-chart {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
  height: auto;
}

.ana-chart-hint {
  margin: 8px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.ana-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.ana-stat {
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 3px;
}

.ana-stat span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.ana-stat strong {
  font-size: 18px;
  font-family: var(--font-head);
  color: var(--text);
}

.ana-stat.ana-stat-hero strong {
  color: #6ee7a8;
}

.ana-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ana-sub {
  padding: 16px;
}

.ana-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.ana-log li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.ana-log li:hover {
  background: rgba(255, 255, 255, 0.05);
}

.ana-log-empty {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.ana-log .ana-log-ico {
  font-size: 15px;
}

.ana-log-meta {
  flex: 1;
  display: grid;
  gap: 1px;
  min-width: 0;
}

.ana-log-meta strong {
  font-size: 13px;
}

.ana-log-meta span {
  color: var(--muted);
  font-size: 12px;
}

.ana-log-val {
  color: #6ee7a8;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.ana-id-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin-bottom: 14px;
}

.ana-id-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ana-id-value {
  font-size: 13px;
  color: var(--text);
}

.ana-dl-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(122, 168, 255, 0.07);
  border: 1px solid rgba(122, 168, 255, 0.18);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.ana-dl-note strong {
  color: #9cc3ff;
}

/* Tombol "unduh selesai" di tempat yang sama */
.ana-dl.is-done {
  background: rgba(110, 231, 168, 0.14);
  border-color: rgba(110, 231, 168, 0.4);
  color: #6ee7a8;
}

@media (max-width: 680px) {
  .ana-two-col {
    grid-template-columns: 1fr;
  }
}

/* ================= TAMBAH SALDO (top-up gateway) ================= */
.topup-panel {
  margin-top: 14px;
}

/* Dua kolom: form kiri, QR kanan — jadi satu kolom di layar kecil */
.topup-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
  align-items: start;
}

.topup-form {
  display: grid;
  gap: 12px;
}

.topup-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topup-chip {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.topup-chip:hover {
  background: rgba(255, 140, 66, 0.1);
  border-color: rgba(255, 140, 66, 0.4);
  color: var(--text);
}

.topup-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.topup-method-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.topup-method-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.topup-pay {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

.topup-pay[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* Panel QR — kanan */
.topup-qr {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.topup-qr-box {
  width: 100%;
  min-height: 200px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.topup-qr-box img {
  border: 0;
}

.topup-qr-loading,
.topup-qr-fallback {
  color: #111827;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}

.topup-qr-fallback a {
  color: #0a66c2;
  text-decoration: underline;
}

.topup-pay-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: rgba(122, 168, 255, 0.12);
  border: 1px solid rgba(122, 168, 255, 0.35);
  color: #bcd3ff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease;
}

.topup-pay-link:hover {
  background: rgba(122, 168, 255, 0.2);
}

/* Riwayat top-up */
.topup-history {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.topup-history-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.topup-history-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.topup-history-amt {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.topup-history-status {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.topup-history-item.status-settled .topup-history-status {
  color: #6ee7a8;
  background: rgba(110, 231, 168, 0.1);
  border-color: rgba(110, 231, 168, 0.3);
}

.topup-history-item.status-pending .topup-history-status {
  color: #f6c453;
  background: rgba(246, 196, 83, 0.1);
  border-color: rgba(246, 196, 83, 0.3);
}

.topup-history-item.status-expired .topup-history-status,
.topup-history-item.status-failed .topup-history-status {
  color: #ff7a7a;
  background: rgba(255, 90, 90, 0.1);
  border-color: rgba(255, 90, 90, 0.3);
}

.topup-history-date {
  font-size: 11px;
  color: var(--muted);
  min-width: 90px;
  text-align: right;
}

@media (max-width: 860px) {
  .topup-grid {
    grid-template-columns: 1fr;
  }
  .topup-history-item {
    grid-template-columns: 1fr auto;
  }
  .topup-history-date {
    grid-column: 1 / -1;
    text-align: left;
  }
}
