.credit-mall-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid rgba(103, 232, 249, 0.24);
  border-radius: 12px;
  background: rgba(9, 12, 20, 0.92);
  color: #f8fafc;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
}

.credit-mall-panel[data-collapsed="true"] .credit-mall-body {
  display: none;
}

.credit-mall-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 12px;
}

.credit-mall-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.credit-mall-balance {
  margin-top: 4px;
  color: #67e8f9;
  font-size: 28px;
  font-weight: 750;
  line-height: 1;
}

.credit-mall-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  cursor: pointer;
}

.credit-mall-body {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.credit-mall-status {
  min-height: 20px;
  margin: 0;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.credit-mall-status[data-tone="error"] {
  color: #fca5a5;
}

.credit-mall-status[data-tone="ok"] {
  color: #86efac;
}

.credit-mall-inline-status {
  color: #facc15;
  font-size: 12px;
  line-height: 1.4;
}

.credit-mall-topup {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(103, 232, 249, 0.16);
  border-radius: 8px;
  background: rgba(8, 145, 178, 0.08);
  padding: 10px;
}

.credit-mall-topup p {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

.credit-mall-auth {
  display: grid;
  gap: 6px;
}

.credit-mall-auth span {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 650;
}

.credit-mall-auth input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.84);
  color: #f8fafc;
  padding: 0 12px;
  outline: none;
}

.credit-mall-auth input:focus {
  border-color: rgba(103, 232, 249, 0.72);
}

.credit-mall-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.credit-mall-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.credit-mall-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.credit-mall-button {
  min-height: 42px;
  border: 1px solid rgba(103, 232, 249, 0.3);
  border-radius: 8px;
  background: rgba(103, 232, 249, 0.12);
  color: #cffafe;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}

.credit-mall-button:hover:not(:disabled) {
  background: rgba(103, 232, 249, 0.2);
}

.credit-mall-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.credit-mall-package-list {
  display: grid;
  gap: 8px;
}

.credit-mall-package {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.6);
  color: #f8fafc;
  cursor: pointer;
  padding: 9px 11px;
  text-align: left;
}

.credit-mall-package strong,
.credit-mall-package span {
  display: block;
}

.credit-mall-package strong {
  font-size: 13px;
}

.credit-mall-package span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

.credit-mall-package em {
  color: #67e8f9;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.credit-mall-package:hover:not(:disabled) {
  border-color: rgba(103, 232, 249, 0.54);
  background: rgba(8, 145, 178, 0.14);
}

.credit-mall-package:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.credit-mall-transactions {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 4px;
}

.credit-mall-section-title {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 750;
}

.credit-mall-transaction-list {
  display: grid;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
}

.credit-mall-transaction {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.4);
  padding: 6px 9px;
}

.credit-mall-transaction strong {
  font-size: 12px;
}

.credit-mall-transaction strong[data-tone="positive"] {
  color: #86efac;
}

.credit-mall-transaction strong[data-tone="negative"] {
  color: #fca5a5;
}

@media (max-width: 640px) {
  .credit-mall-panel {
    right: 16px;
    bottom: 16px;
  }

  .credit-mall-inline,
  .credit-mall-actions {
    grid-template-columns: 1fr;
  }
}
