:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.92);
  --panel-2: rgba(30, 41, 59, 0.78);
  --panel-3: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --text: #f8fafc;
  --text-soft: #94a3b8;
  --text-muted: #cbd5e1;
  --primary: #38bdf8;
  --primary-2: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
  --radius: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.08), transparent 24%),
    linear-gradient(180deg, #020617, #0b1120 42%, #111827);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
}

p {
  color: var(--text-soft);
}

pre {
  overflow: auto;
}

/* =========================
   BASIC COMPONENTS
========================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

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

.input,
.textarea,
.status-select {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.96);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 14px;
  outline: none;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: #64748b;
}

.input:focus,
.textarea:focus,
.status-select:focus {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

.textarea {
  min-height: 110px;
  resize: vertical;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label,
label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.btn-bayar,
.admin-update-btn,
.secondary-btn {
  border: 0;
  border-radius: 16px;
  min-height: 48px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}

.btn-bayar,
.admin-update-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.secondary-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.btn-bayar:hover,
.admin-update-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
  opacity: .98;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid transparent;
}

.status-success {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.24);
}

.status-warning {
  color: #fef3c7;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.22);
}

.status-danger {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.22);
}

.status-processing {
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.22);
}

.cek-message {
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid var(--line);
  background: rgba(30, 41, 59, 0.72);
  color: var(--text);
}

.cek-message.success {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
}

.cek-message.error {
  color: #fee2e2;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
}

.payment-note {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.card,
.invoice-card,
.cek-card,
.payment-help-card,
.modern-card,
.summary-card-modern,
.transaction-info-card,
.transaction-help-card,
.catalog-empty-card,
.admin-panel-card,
.admin-transaction-card {
  border-radius: var(--radius);
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.16);
}

.modern-card-head,
.summary-card-head {
  margin-bottom: 14px;
}

.modern-card-head h3,
.summary-card-head h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 20px;
  font-weight: 900;
}

.modern-card-head p,
.summary-card-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

/* =========================
   COMMON PAGE HEADERS
========================= */

.payment-header,
.topup-header,
.transaction-page-head {
  margin-bottom: 22px;
}

.payment-header h2,
.topup-header h2,
.transaction-page-head h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--text);
}

.payment-header p,
.topup-header p,
.transaction-page-head p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.topup-page-badge,
.hero-badge,
.admin-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* =========================
   HOME / FRONTEND MODERN
========================= */

.topup-home,
.topup-detail-page,
.transaction-modern-page {
  padding-top: 24px;
  padding-bottom: 34px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 28px 22px;
  margin-bottom: 24px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.24), transparent 35%),
    radial-gradient(circle at bottom left, rgba(14,165,233,0.18), transparent 35%),
    linear-gradient(135deg, #0f172a, #111827 45%, #1e293b);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
}

.hero-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 760px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hero-stat-card {
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.hero-stat-card span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.hero-stat-card strong {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.catalog-section {
  margin-bottom: 26px;
}

.catalog-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.catalog-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.catalog-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--text);
}

.catalog-desc {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.catalog-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 700;
}

.brand-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.brand-card-modern {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(15,23,42,0.94), rgba(30,41,59,0.94));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.brand-card-modern:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,0.35);
  box-shadow: 0 18px 46px rgba(2, 6, 23, 0.28);
}

.brand-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  overflow: hidden;
}

.brand-logo-modern {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card-arrow {
  color: #93c5fd;
  font-size: 20px;
  font-weight: 900;
}

.brand-card-content h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.brand-card-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.topup-layout-modern {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 18px;
  align-items: start;
}

.topup-main-column,
.topup-side-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.product-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.product-card-modern,
.product-choice-btn {
  text-align: left;
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(30,41,59,0.95), rgba(15,23,42,0.95));
  border-radius: 20px;
  padding: 16px;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  color: inherit;
}

.product-card-modern:hover,
.product-choice-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.28);
}

.product-card-modern.active,
.product-choice-btn.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(56,189,248,0.14);
}

.product-card-modern-image,
.product-choice-image-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.06);
}

.product-card-modern-image img,
.product-choice-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-modern-content h4,
.product-choice-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.product-card-modern-price,
.product-choice-price {
  color: var(--primary);
  font-size: 15px;
  font-weight: 900;
}

.payment-grid-modern,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.payment-card-modern,
.choice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(30,41,59,0.9);
  color: #e2e8f0;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.payment-card-modern:hover,
.choice-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.28);
}

.payment-card-modern.active,
.choice-btn.active {
  border-color: var(--primary);
  background: rgba(14,165,233,0.12);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(56,189,248,0.12);
}

.summary-list-modern {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.summary-item-modern {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(30,41,59,0.7);
}

.summary-item-modern span {
  color: var(--text-soft);
  font-size: 13px;
}

.summary-item-modern strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

.summary-item-modern.total {
  background: linear-gradient(135deg, rgba(14,165,233,0.16), rgba(37,99,235,0.14));
  border: 1px solid rgba(56,189,248,0.18);
}

.summary-item-modern.total strong {
  color: var(--primary);
  font-size: 18px;
}

/* =========================
   TRANSACTION USER MODERN
========================= */

.transaction-modern-layout,
.transaction-check-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.transaction-main-column,
.transaction-side-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.transaction-hero-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-radius: 24px;
  padding: 22px 20px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.18), transparent 30%),
    linear-gradient(135deg, #0f172a, #111827 45%, #1e293b);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.transaction-hero-left h2 {
  margin: 10px 0 8px;
  color: #fff;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  word-break: break-word;
}

.transaction-hero-left p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.7;
}

.transaction-hero-right {
  min-width: 180px;
  text-align: right;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}

.transaction-hero-right span {
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.transaction-hero-right strong {
  display: block;
  color: var(--primary);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.transaction-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.transaction-info-item {
  border-radius: 16px;
  padding: 14px;
  background: rgba(30,41,59,0.72);
  border: 1px solid var(--line-soft);
}

.transaction-info-item.full {
  grid-column: 1 / -1;
}

.transaction-info-item span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  margin-bottom: 6px;
}

.transaction-info-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 800;
  word-break: break-word;
}

.upload-box,
.upload-box-modern {
  border-radius: 18px;
  padding: 16px;
  background: rgba(30,41,59,0.72);
  border: 1px dashed rgba(56,189,248,0.28);
  margin-bottom: 14px;
}

.upload-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.upload-input {
  width: 100%;
  color: var(--text);
}

.file-name-preview {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 13px;
}

.help-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.help-list li {
  margin-bottom: 8px;
}

.help-steps-modern {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-step-modern {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(30,41,59,0.72);
}

.help-step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.help-step-modern strong {
  display: block;
  color: #fff;
  font-size: 14px;
  margin-bottom: 4px;
}

.help-step-modern p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.7;
}

.success-modern-card {
  max-width: 860px;
  margin: 0 auto;
  border-radius: 28px;
  padding: 28px 22px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.18), transparent 30%),
    linear-gradient(135deg, #0f172a, #111827 45%, #1e293b);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.24);
  text-align: center;
}

.success-modern-icon {
  width: 82px;
  height: 82px;
  margin: 0 auto 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(37,99,235,0.28);
}

.success-modern-card h1 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 34px;
  line-height: 1.2;
  font-weight: 900;
}

.success-modern-desc {
  max-width: 680px;
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
}

.success-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
  text-align: left;
}

.success-modern-item {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}

.success-modern-item span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  margin-bottom: 6px;
}

.success-modern-item strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 800;
  word-break: break-word;
}

.success-modern-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================
   ADMIN UI MODERN
========================= */

.admin-page {
  padding-top: 22px;
  padding-bottom: 32px;
}

.admin-header-modern,
.payment-header.admin-header-modern {
  border-radius: 24px;
  padding: 24px 20px;
  margin-bottom: 22px;
  background:
    radial-gradient(circle at top right, rgba(59,130,246,0.18), transparent 30%),
    linear-gradient(135deg, #0f172a, #111827 45%, #1e293b);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.2);
}

.admin-header-modern h2,
.payment-header.admin-header-modern h2 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
}

.admin-header-modern p,
.payment-header.admin-header-modern p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.7;
}

.admin-nav-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.admin-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: #e2e8f0;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  font-size: 14px;
  font-weight: 700;
}

.admin-nav-link:hover {
  transform: translateY(-1px);
  border-color: rgba(56,189,248,0.32);
  background: rgba(56,189,248,0.10);
}

.admin-nav-link.danger:hover {
  border-color: rgba(239,68,68,0.28);
  background: rgba(239,68,68,0.12);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.dashboard-card {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(15,23,42,0.95), rgba(30,41,59,0.92));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 14px 40px rgba(2, 6, 23, 0.14);
}

.dashboard-card span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  margin-bottom: 8px;
}

.dashboard-card strong {
  display: block;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
}

.dashboard-card small {
  font-size: 12px;
  line-height: 1.6;
}

.admin-transaction-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-transaction-top h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.25;
  word-break: break-word;
}

.admin-total {
  min-width: 180px;
  text-align: right;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.admin-total span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  margin-bottom: 6px;
}

.admin-total strong {
  display: block;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
}

.invoice-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(30,41,59,0.72);
  border: 1px solid rgba(255,255,255,0.04);
}

.info-row span {
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}

.info-row strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.admin-recent-item {
  border-radius: 16px;
  padding: 14px;
  background: rgba(30,41,59,0.72);
  border: 1px solid rgba(255,255,255,0.04);
}

.admin-link {
  color: #e2e8f0;
  text-decoration: none;
}

.admin-link:hover {
  color: var(--primary);
}

.admin-sound-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 22px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15,23,42,0.92);
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-sound-status {
  margin: 0;
  color: #cbd5e1;
}

.chart-wrap {
  border-radius: 18px;
  padding: 14px;
  background: rgba(30,41,59,0.55);
  border: 1px solid rgba(255,255,255,0.05);
}

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

.admin-proof-head h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.admin-proof-image {
  width: 100%;
  max-width: 100%;
  border-radius: 18px;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-action-bar {
  margin: 18px 0;
}

.admin-action-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.approve-btn,
.reject-btn {
  border: 0;
  border-radius: 16px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease;
}

.approve-btn {
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.reject-btn {
  color: #fff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.approve-btn:hover,
.reject-btn:hover {
  transform: translateY(-1px);
  opacity: .95;
}

.admin-search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #cbd5e1;
  background: rgba(30,41,59,0.72);
  border: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  font-weight: 700;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  border-color: rgba(56,189,248,0.28);
  background: rgba(56,189,248,0.12);
}

.status-select {
  appearance: none;
}

#notif-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif {
  min-width: 250px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.25);
  transition: all .3s ease;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(15,23,42,0.96);
}

.notif-title {
  font-size: 14px;
  font-weight: 900;
  margin-bottom: 4px;
}

.notif-success {
  border-left: 4px solid var(--success);
}

.notif-danger {
  border-left: 4px solid var(--danger);
}

.notif-warning {
  border-left: 4px solid var(--warning);
}

.notif-info {
  border-left: 4px solid var(--primary);
}

.new-transaction-highlight {
  box-shadow: 0 0 0 2px rgba(56,189,248,0.22), 0 18px 50px rgba(2, 6, 23, 0.16);
  border-color: rgba(56,189,248,0.32) !important;
}

/* =========================
   LEGACY / SUPPORT CLASSES
========================= */

.payment-page,
.cek-page,
.success-page,
.topup-page {
  padding-top: 24px;
  padding-bottom: 32px;
}

.invoice-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.invoice-top h3 {
  margin: 10px 0 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
  color: #fff;
  word-break: break-word;
}

.invoice-total {
  min-width: 170px;
  text-align: right;
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
}

.invoice-total span {
  display: block;
  color: var(--text-soft);
  font-size: 12px;
  margin-bottom: 6px;
}

.invoice-total strong {
  display: block;
  color: var(--primary);
  font-size: 24px;
  font-weight: 900;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
  gap: 12px;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 980px) {
  .topup-layout-modern,
  .transaction-modern-layout,
  .transaction-check-layout {
    grid-template-columns: 1fr;
  }

  .hero-title,
  .payment-header h2,
  .topup-header h2,
  .transaction-page-head h1,
  .success-modern-card h1,
  .admin-header-modern h2,
  .payment-header.admin-header-modern h2 {
    font-size: 28px;
  }
}

@media (max-width: 720px) {
  .admin-transaction-top,
  .invoice-top,
  .transaction-hero-card {
    flex-direction: column;
  }

  .admin-total,
  .invoice-total,
  .transaction-hero-right {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .info-row,
  .summary-item-modern {
    flex-direction: column;
  }

  .info-row strong,
  .summary-item-modern strong {
    text-align: left;
  }

  #notif-container {
    left: 12px;
    right: 12px;
    top: 12px;
  }

  .notif {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-panel {
    padding: 22px 16px;
  }

  .catalog-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .transaction-info-grid,
  .success-modern-grid {
    grid-template-columns: 1fr;
  }

  .brand-grid-modern,
  .product-grid-modern,
  .payment-grid-modern,
  .product-grid,
  .grid,
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .container {
    width: min(100% - 20px, 1180px);
  }

  .brand-grid-modern,
  .product-grid-modern,
  .payment-grid-modern,
  .product-grid,
  .grid,
  .hero-stats,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .btn-bayar,
  .admin-update-btn,
  .secondary-btn {
    width: 100%;
  }
}