:root {
  --m4-bg: #f6f7fb;
  --m4-card: #ffffff;
  --m4-text: #182033;
  --m4-muted: #6b7280;
  --m4-primary: #5b5ff2;
  --m4-primary-dark: #4548c9;
  --m4-border: #e6e8f0;
  --m4-success: #16a34a;
  --m4-warning: #d97706;
  --m4-danger: #dc2626;
  --m4-shadow: 0 18px 45px rgba(30, 41, 59, 0.09);
}

html {
  min-height: 100%;
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: var(--m4-text);
  background:
    radial-gradient(circle at top left, rgba(91, 95, 242, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(13, 202, 240, 0.14), transparent 28rem),
    var(--m4-bg);
}

.site-header {
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.22);
}

.site-header .nav-link,
.site-header .navbar-brand {
  color: #fff;
}

.brand-mark {
  font-weight: 800;
  letter-spacing: .02em;
}

.page-shell {
  flex: 1 0 auto;
  width: 100%;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-card,
.portal-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--m4-border);
  border-radius: 24px;
  box-shadow: var(--m4-shadow);
}

.hero-card {
  padding: 2rem;
}

.portal-card {
  padding: 1.25rem;
}

.muted {
  color: var(--m4-muted);
}

.btn-primary {
  background: var(--m4-primary);
  border-color: var(--m4-primary);
}

.btn-primary:hover {
  background: var(--m4-primary-dark);
  border-color: var(--m4-primary-dark);
}

.btn:focus,
.btn:active:focus,
.nav-link:focus,
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.22rem rgba(91, 95, 242, .22);
}

.status-badge {
  border-radius: 999px;
  padding: .35rem .65rem;
  font-weight: 700;
  background: #eef2ff;
  color: var(--m4-primary-dark);
}

.status-success {
  background: #dcfce7;
  color: var(--m4-success);
}

.status-warning {
  background: #fef3c7;
  color: var(--m4-warning);
}

.status-danger {
  background: #fee2e2;
  color: var(--m4-danger);
}

.code-block {
  max-height: 24rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border-radius: 16px;
  background: #111827;
  color: #d1d5db;
  padding: 1rem;
}

.copyable {
  overflow-wrap: anywhere;
  word-break: break-all;
}

.footer {
  flex-shrink: 0;
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  text-align: center;
  position: static;
  bottom: auto;
  line-height: inherit;
  white-space: normal;
}

@media (max-width: 767.98px) {
  .hero-card {
    padding: 1.25rem;
  }

  .table-responsive-card {
    overflow-x: auto;
  }
}

.admin-recharge-form {
  position: relative;
  z-index: 1;
}

.admin-recharge-actions {
  position: relative;
  z-index: 2;
}