/* RanHex — Gray UI Theme (Login + Member) */
:root {
  --gx-bg: #0c0c0e;
  --gx-bg-elevated: #141416;
  --gx-surface: #1a1a1e;
  --gx-surface-2: #222228;
  --gx-border: rgba(255, 255, 255, 0.08);
  --gx-border-strong: rgba(255, 255, 255, 0.14);
  --gx-text: #f4f4f5;
  --gx-muted: #a1a1aa;
  --gx-soft: #71717a;
  --gx-accent: #a1a1aa;
  --gx-accent-hover: #d4d4d8;
  --gx-highlight: #e4e4e7;
  --gx-success: #4ade80;
  --gx-danger: #f87171;
  --gx-radius: 16px;
  --gx-radius-lg: 22px;
  --gx-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  --gx-font: 'Inter', 'Prompt', system-ui, sans-serif;
  --gx-sidebar-w: 260px;
}

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

/* ─── LOGIN ─── */
body.gx-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--gx-font);
  color: var(--gx-text);
  background: var(--gx-bg);
  overflow-x: hidden;
}

.gx-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(161, 161, 170, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(113, 113, 122, 0.1), transparent 50%),
    linear-gradient(165deg, #0a0a0c 0%, #121214 40%, #0c0c0e 100%);
}

.gx-login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.gx-login-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.gx-login-hero {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 0;
}

.gx-login-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--gx-border);
  font-size: 0.8rem;
  color: var(--gx-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gx-login-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--gx-highlight);
}

.gx-login-hero p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--gx-muted);
  max-width: 420px;
}

.gx-login-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.gx-login-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gx-border);
  font-size: 0.9rem;
  color: var(--gx-muted);
}

.gx-login-feature i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--gx-accent-hover);
}

.gx-login-card {
  background: var(--gx-surface);
  border: 1px solid var(--gx-border-strong);
  border-radius: var(--gx-radius-lg);
  padding: clamp(28px, 4vw, 40px);
  box-shadow: var(--gx-shadow);
}

.gx-login-card-head {
  text-align: center;
  margin-bottom: 28px;
}

.gx-login-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 16px;
  border: 1px solid var(--gx-border-strong);
  background: var(--gx-surface-2);
}

.gx-login-card-head h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gx-highlight);
}

.gx-login-card-head span {
  font-size: 0.9rem;
  color: var(--gx-soft);
}

.gx-field { margin-bottom: 18px; }

.gx-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gx-muted);
}

.gx-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: var(--gx-bg-elevated);
  border: 1px solid var(--gx-border);
  border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gx-input-wrap:focus-within {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

.gx-input-wrap i {
  color: var(--gx-soft);
  font-size: 0.95rem;
}

.gx-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 0;
  font-size: 1rem;
  color: var(--gx-text);
  font-family: inherit;
  outline: none;
}

.gx-input::placeholder { color: var(--gx-soft); }

.gx-toggle-pw {
  border: none;
  background: none;
  color: var(--gx-soft);
  cursor: pointer;
  padding: 8px;
}

.gx-toggle-pw:hover { color: var(--gx-accent-hover); }

.gx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.85rem;
}

.gx-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gx-muted);
  cursor: pointer;
}

.gx-check input { accent-color: #71717a; }

.gx-link {
  color: var(--gx-accent-hover);
  text-decoration: none;
}

.gx-link:hover { color: var(--gx-highlight); }

.gx-btn-primary {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #3f3f46 0%, #27272a 100%);
  color: var(--gx-highlight);
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.gx-btn-primary:hover {
  background: linear-gradient(180deg, #52525b 0%, #3f3f46 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.4);
}

.gx-footnote {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gx-soft);
}

@media (max-width: 900px) {
  .gx-login-wrap {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
  .gx-login-hero { display: none; }
}

/* SweetAlert gray */
.swal2-popup.swal2-magic-popup,
.swal2-popup {
  background: var(--gx-surface) !important;
  color: var(--gx-text) !important;
  border: 1px solid var(--gx-border-strong) !important;
}

.swal2-confirm.swal2-magic-confirm,
.swal2-confirm {
  background: #3f3f46 !important;
  color: var(--gx-highlight) !important;
}

/* ─── MEMBER LAYOUT ─── */
body.member-page.gx-member {
  margin: 0;
  font-family: var(--gx-font);
  color: var(--gx-text);
  background: var(--gx-bg);
  min-height: 100vh;
}

body.member-page.gx-member::before,
body.member-page.gx-member::after { display: none !important; }

.gx-app {
  display: flex;
  min-height: 100vh;
}

.gx-sidebar {
  width: var(--gx-sidebar-w);
  flex-shrink: 0;
  background: var(--gx-bg-elevated);
  border-right: 1px solid var(--gx-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 200;
  padding: 24px 16px;
}

.gx-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 24px;
  text-decoration: none;
  color: var(--gx-text);
  border-bottom: 1px solid var(--gx-border);
  margin-bottom: 20px;
}

.gx-sidebar-brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--gx-border);
}

.gx-sidebar-brand span {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.gx-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.gx-nav .member-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gx-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.gx-nav .member-nav-link i,
.gx-nav .member-nav-link .rhx-nav-item-icon {
  width: 20px;
  text-align: center;
  color: var(--gx-soft);
}

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

.gx-nav .member-nav-link.active {
  background: rgba(255,255,255,0.08);
  color: var(--gx-highlight);
  border-color: var(--gx-border-strong);
}

.gx-nav .member-nav-link.active i { color: var(--gx-accent-hover); }

.gx-sidebar-user {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--gx-border);
}

.gx-user-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
}

.gx-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--gx-highlight);
}

.gx-user-meta {
  font-size: 0.8rem;
  color: var(--gx-soft);
  margin-bottom: 12px;
}

.gx-user-card .member-logout-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--gx-border-strong);
  background: transparent;
  color: var(--gx-muted);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, color 0.2s;
}

.gx-user-card .member-logout-btn:hover {
  background: rgba(248, 113, 113, 0.1);
  color: var(--gx-danger);
  border-color: rgba(248, 113, 113, 0.25);
}

.gx-main {
  flex: 1;
  margin-left: var(--gx-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.gx-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px clamp(20px, 4vw, 40px);
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gx-border);
}

.gx-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--gx-border);
  background: var(--gx-surface);
  color: var(--gx-text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.gx-topbar-title h1 {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gx-topbar-title p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gx-soft);
}

.gx-topbar-stats {
  margin-left: auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gx-stat {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  min-width: 120px;
}

.gx-stat span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gx-soft);
  margin-bottom: 2px;
}

.gx-stat strong {
  font-size: 1rem;
  color: var(--gx-highlight);
}

.gx-content {
  flex: 1;
  padding: clamp(20px, 4vw, 40px);
  max-width: 1100px;
  width: 100%;
}

.gx-panel {
  animation: gxFadeIn 0.35s ease;
}

@keyframes gxFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.gx-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
}

body.gx-sidebar-open .gx-overlay { display: block; }

@media (max-width: 991px) {
  .gx-sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }
  body.gx-sidebar-open .gx-sidebar { transform: translateX(0); }
  .gx-main { margin-left: 0; }
  .gx-menu-btn { display: flex; }
  .gx-topbar-stats { display: none; }
}

/* Hide old nav */
body.gx-member .rhx-nav,
body.gx-member .rhx-nav-overlay { display: none !important; }

/* ─── MEMBER COMPONENTS ─── */
.member-main { padding: 0 !important; }

.member-surface,
.member-content-inner {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border: none !important;
}

.member-topup-shell,
.member-gift-shell,
.member-history-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-topup-header,
.member-gift-header,
.member-history-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-radius: var(--gx-radius);
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
}

.member-topup-title,
.member-gift-title,
.member-history-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.member-topup-title-icon,
.member-gift-icon,
.member-history-heading-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--gx-border);
  display: grid;
  place-items: center;
  color: var(--gx-accent-hover);
  font-size: 1.2rem;
}

.member-topup-title-text h3,
.member-gift-text h3,
.member-history-heading-text h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gx-highlight);
}

.member-topup-title-text p,
.member-gift-text p,
.member-history-heading-text p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gx-soft);
}

.member-topup-meta,
.member-gift-meta,
.member-history-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.member-topup-meta-item,
.member-gift-stat,
.member-history-chip {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--gx-bg-elevated);
  border: 1px solid var(--gx-border);
}

.member-topup-meta-label,
.member-gift-stat .label {
  display: block;
  font-size: 0.72rem;
  color: var(--gx-soft);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-topup-meta-value,
.member-gift-stat .value {
  font-weight: 600;
  color: var(--gx-highlight);
}

.gx-status-ok { color: var(--gx-success) !important; }

.member-topup-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .member-topup-grid { grid-template-columns: 1fr; }
}

.member-magic-card {
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
  border-radius: var(--gx-radius);
  padding: 24px;
  box-shadow: none;
}

.member-magic-card::before { display: none !important; }

.member-form-group { margin-bottom: 18px; }

.member-form-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gx-muted);
}

.member-form-label i { color: var(--gx-soft); }

.member-form-input,
.member-form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--gx-bg-elevated);
  border: 1px solid var(--gx-border);
  border-radius: 12px;
  color: var(--gx-text);
  font-family: inherit;
  font-size: 0.95rem;
}

.member-form-input:focus,
.member-form-select:focus {
  outline: none;
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.05);
}

.member-form-input:read-only { opacity: 0.7; }

.member-pay-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #52525b, #3f3f46);
  color: var(--gx-highlight);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.member-pay-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.member-warning,
.member-note-box,
.member-note-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--gx-border);
  color: var(--gx-muted);
  font-size: 0.88rem;
}

.member-warning i,
.member-note-box i,
.member-note-card i { color: var(--gx-soft); margin-top: 2px; }

.member-topup-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--gx-muted);
  line-height: 1.8;
  font-size: 0.9rem;
}

.member-topup-side-title {
  font-weight: 600;
  color: var(--gx-highlight);
  margin-bottom: 12px;
}

.member-gift-display,
#gift-box,
#gift-box2 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 14px;
  background: var(--gx-bg-elevated) !important;
  border: 1px solid var(--gx-border) !important;
  box-shadow: none !important;
  margin-bottom: 18px;
}

.gift-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  display: grid;
  place-items: center;
  color: var(--gx-accent-hover);
  font-size: 1.4rem;
}

.gift-label { font-size: 0.75rem; color: var(--gx-soft); display: block; }
.gift-value { font-weight: 600; color: var(--gx-highlight); }

.reward-round-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.reward-round-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #06b6d4);
}

.reward-round-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--gx-soft);
  font-size: 0.82rem;
}

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

.reward-card {
  padding: 14px;
  border-radius: 14px;
  background: var(--gx-surface);
  border: 1px solid var(--gx-border);
}

.reward-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.reward-card-tier {
  color: var(--gx-muted);
  font-size: 0.82rem;
}

.reward-card-badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.reward-status-pending {
  color: #facc15;
  background: rgba(250, 204, 21, 0.12);
}

.reward-status-ready {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
}

.reward-status-claimed {
  color: #e5e7eb;
  background: rgba(156, 163, 175, 0.18);
}

.reward-card-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gx-highlight);
}

.reward-card-progress {
  margin-top: 10px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
}

.reward-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
}

.reward-card-text {
  margin-top: 6px;
  color: var(--gx-soft);
  font-size: 0.78rem;
}

.reward-item-box {
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  background: var(--gx-bg-elevated);
  border: 1px solid var(--gx-border);
}

.reward-item-title {
  color: var(--gx-highlight);
  font-size: 0.88rem;
  font-weight: 600;
}

.reward-item-sub {
  color: var(--gx-soft);
  font-size: 0.76rem;
  margin-top: 2px;
}

.reward-claim-btn {
  margin-top: 12px;
}

.reward-claim-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.member-table-wrapper {
  border-radius: 14px;
  border: 1px solid var(--gx-border);
  overflow: hidden;
}

.member-rates-table {
  width: 100%;
  border-collapse: collapse;
}

.member-rates-table thead {
  background: rgba(255,255,255,0.04);
}

.member-rates-table th,
.member-rates-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--gx-border);
  color: var(--gx-muted);
}

.member-rates-table th { color: var(--gx-highlight); font-weight: 600; }

.member-rates-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.member-transaction-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
}

.member-transaction-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--gx-bg-elevated);
  border: 1px solid var(--gx-border);
  border-radius: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.member-transaction-item:hover {
  border-color: var(--gx-border-strong);
  background: var(--gx-surface-2);
}

.member-transaction-item::before { display: none !important; }

.trans-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  color: var(--gx-accent-hover);
  display: grid;
  place-items: center;
}

.trans-icon.gift { color: #a78bfa; }

.trans-title { color: var(--gx-highlight); font-weight: 600; }
.trans-subtitle { color: var(--gx-soft); font-size: 0.85rem; }

.trans-amount { color: var(--gx-highlight); font-weight: 700; }

.status-success {
  background: rgba(74, 222, 128, 0.1);
  color: var(--gx-success);
  border: 1px solid rgba(74, 222, 128, 0.2);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.status-fail {
  background: rgba(248, 113, 113, 0.1);
  color: var(--gx-danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
  padding: 6px 12px;
  border-radius: 8px;
}

.trans-date { color: var(--gx-soft); font-size: 0.85rem; }

.member-transaction-list.is-empty {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.member-empty-state {
  width: 100%;
  min-height: 240px;
  padding: 48px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(20, 22, 30, 0.92);
  border-radius: var(--gx-radius);
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: grid;
  place-items: center;
  color: var(--gx-soft);
}

.empty-icon::after { display: none !important; }

.empty-text h4 { color: var(--gx-highlight); margin: 0 0 8px; font-size: 1.05rem; }
.empty-text p { color: var(--gx-muted); margin: 0; font-size: 0.92rem; }

.member-empty-action {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: var(--gx-highlight);
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s, border-color 0.2s;
}

.member-empty-action:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.member-qr-image {
  border-radius: 12px;
  border: 1px solid var(--gx-border) !important;
  box-shadow: none !important;
}

/* Footer */
.hx-footer {
  margin-top: 32px;
  padding: 0;
  color: var(--gx-muted);
}

.hx-footer-inner {
  background: var(--gx-surface) !important;
  border: 1px solid var(--gx-border) !important;
  box-shadow: none !important;
  border-radius: var(--gx-radius) !important;
}

.hx-footer-logo-text { color: var(--gx-highlight) !important; }
.hx-footer-tagline,
.hx-footer-copy { color: var(--gx-soft) !important; }

.hx-footer-social-link {
  color: var(--gx-muted) !important;
  border: 1px solid var(--gx-border);
  border-radius: 10px;
  padding: 8px 14px;
}

.hx-footer-social-link:hover {
  color: var(--gx-highlight) !important;
  background: rgba(255,255,255,0.05);
}

/* Loading */
.overlay-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 12, 14, 0.92) !important;
  backdrop-filter: blur(8px) !important;
}

.overlay-loading.is-hidden { display: none !important; }

.spanner {
  text-align: center;
}

.text-loader {
  margin-top: 16px;
  color: var(--gx-muted) !important;
  font-size: 0.95rem;
}

.loader {
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--gx-accent-hover);
  border-radius: 50%;
  animation: gxSpin 0.8s linear infinite;
}

@keyframes gxSpin {
  to { transform: rotate(360deg); }
}

.is-hidden { display: none !important; }

.mt-4 { margin-top: 1.5rem; }

@media (max-width: 768px) {
  .member-transaction-item {
    flex-direction: column;
    align-items: flex-start;
  }
  .trans-meta {
    width: 100%;
    flex-wrap: wrap;
    gap: 10px;
  }
  .trans-date {
    width: 100%;
    justify-content: flex-start;
    padding-top: 8px;
    border-top: 1px solid var(--gx-border);
  }
  .member-gift-header {
    flex-direction: column;
  }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gx-bg); }
::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: #52525b; }

html { scrollbar-color: #3f3f46 var(--gx-bg); }

/* Font Awesome fix */
body.gx-member .fas,
body.gx-member .far,
body.gx-login-page .fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

body.gx-member .fab {
  font-family: "Font Awesome 6 Brands" !important;
}

.gx-btn-primary.is-loading {
  opacity: 0.8;
  cursor: wait;
}

.swal2-container.swal2-backdrop-show {
  background: radial-gradient(circle at 50% 20%, rgba(148, 163, 184, 0.12), rgba(3, 7, 18, 0.82)) !important;
  backdrop-filter: blur(5px);
}

.swal2-popup {
  border-radius: 18px !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45) !important;
}

.swal2-title {
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.swal2-html-container,
.swal2-content {
  color: #cbd5e1 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
  background-color: #22c55e !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.animated-section {
  display: none;
  animation-duration: 0.45s;
  animation-fill-mode: both;
}

.member-content-inner {
  min-height: calc(100vh - 190px);
}

.member-magic-card,
.member-topup-header,
.member-gift-header,
.member-history-header {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.member-magic-card:hover,
.member-topup-header:hover,
.member-gift-header:hover,
.member-history-header:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.gx-nav .member-nav-link {
  position: relative;
  overflow: hidden;
}

.gx-nav .member-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #22d3ee, #38bdf8);
  transform: scaleY(0);
  transition: transform 0.22s ease;
}

.gx-nav .member-nav-link.active::after {
  transform: scaleY(1);
}

/* ===== Vibrant Full-page Upgrade ===== */
:root {
  --gx-bg: #090b16;
  --gx-bg-elevated: #12172a;
  --gx-surface: rgba(20, 26, 47, 0.82);
  --gx-surface-2: rgba(26, 33, 58, 0.92);
  --gx-border: rgba(120, 149, 255, 0.28);
  --gx-border-strong: rgba(124, 179, 255, 0.52);
  --gx-text: #ecf2ff;
  --gx-muted: #b4c4f0;
  --gx-soft: #8fa2d6;
  --gx-accent: #7dd3fc;
  --gx-accent-hover: #c4b5fd;
  --gx-highlight: #f8fbff;
  --gx-shadow: 0 24px 60px rgba(7, 11, 30, 0.55);
}

body.gx-login-page {
  background:
    radial-gradient(80vw 80vh at 0% 0%, rgba(56, 189, 248, 0.28), transparent 55%),
    radial-gradient(70vw 70vh at 100% 100%, rgba(167, 139, 250, 0.24), transparent 52%),
    linear-gradient(145deg, #070a16 0%, #0b1023 45%, #070b18 100%);
}

.gx-login-card,
.gx-login-feature {
  background: rgba(16, 22, 42, 0.72);
  border-color: rgba(123, 160, 255, 0.28);
  box-shadow: 0 16px 40px rgba(8, 12, 31, 0.45);
}

.gx-login-card {
  backdrop-filter: blur(12px);
}

.gx-btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 45%, #9333ea 100%);
  box-shadow: 0 10px 28px rgba(79, 70, 229, 0.38);
}

.gx-btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 45%, #a855f7 100%);
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.46);
}

body.member-page.gx-member {
  background:
    radial-gradient(100vw 80vh at 15% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    radial-gradient(90vw 75vh at 95% 10%, rgba(167, 139, 250, 0.2), transparent 62%),
    radial-gradient(80vw 75vh at 50% 120%, rgba(34, 211, 238, 0.12), transparent 65%),
    linear-gradient(150deg, #070a16 0%, #0a1022 55%, #070a16 100%);
  background-attachment: fixed;
}

.gx-sidebar {
  background:
    linear-gradient(180deg, rgba(16, 20, 40, 0.97) 0%, rgba(13, 18, 35, 0.95) 100%);
  border-right: 1px solid rgba(123, 160, 255, 0.26);
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.35);
}

.gx-topbar {
  background: linear-gradient(90deg, rgba(16, 22, 42, 0.82), rgba(14, 20, 37, 0.78));
  border-bottom: 1px solid rgba(123, 160, 255, 0.24);
}

.gx-stat {
  background: rgba(14, 21, 42, 0.76);
  border-color: rgba(122, 167, 255, 0.34);
}

.gx-content {
  width: 100%;
  max-width: none;
  padding: clamp(18px, 3.4vw, 34px);
}

.member-content-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: calc(100vh - 150px);
}

.member-topup-header,
.member-gift-header,
.member-history-header,
.member-magic-card {
  background: linear-gradient(145deg, rgba(18, 24, 44, 0.9), rgba(19, 28, 53, 0.84));
  border: 1px solid rgba(124, 173, 255, 0.3);
  box-shadow: 0 10px 24px rgba(7, 12, 33, 0.34);
}

.member-magic-card:hover,
.member-topup-header:hover,
.member-gift-header:hover,
.member-history-header:hover {
  border-color: rgba(143, 196, 255, 0.6);
  box-shadow: 0 16px 34px rgba(7, 12, 33, 0.52), 0 0 0 1px rgba(76, 201, 240, 0.25) inset;
}

.gx-nav .member-nav-link {
  border: 1px solid transparent;
  transition: all 0.22s ease;
}

.gx-nav .member-nav-link:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.16));
  border-color: rgba(122, 166, 255, 0.38);
}

.gx-nav .member-nav-link.active {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.26), rgba(99, 102, 241, 0.26));
  border-color: rgba(137, 182, 255, 0.62);
  box-shadow: 0 8px 18px rgba(38, 126, 255, 0.24);
}

.gx-nav .member-nav-link.active::after {
  background: linear-gradient(180deg, #38bdf8, #8b5cf6);
}

.member-pay-button {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 46%, #7c3aed 100%);
  box-shadow: 0 12px 24px rgba(49, 94, 241, 0.34);
}

.member-pay-button:hover {
  box-shadow: 0 18px 30px rgba(49, 94, 241, 0.45);
}

.member-form-input,
.member-form-select {
  background: rgba(11, 17, 33, 0.82);
  border-color: rgba(123, 160, 255, 0.3);
}

.member-form-input:focus,
.member-form-select:focus {
  border-color: rgba(144, 186, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18), 0 0 18px rgba(79, 70, 229, 0.25);
}

.reward-card {
  background: linear-gradient(155deg, rgba(18, 25, 48, 0.92), rgba(14, 19, 39, 0.9));
  border-color: rgba(120, 163, 255, 0.35);
  box-shadow: 0 8px 20px rgba(7, 12, 33, 0.28);
  transition: transform 0.2s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.reward-card:hover {
  transform: translateY(-3px);
  border-color: rgba(147, 197, 253, 0.72);
  box-shadow: 0 16px 30px rgba(8, 14, 38, 0.48);
}

.reward-round-bar {
  background: rgba(11, 17, 33, 0.82);
}

.reward-round-bar-fill {
  background: linear-gradient(90deg, #22d3ee 0%, #3b82f6 45%, #8b5cf6 100%);
}

.reward-card-progress-fill {
  background: linear-gradient(90deg, #22d3ee, #60a5fa, #a78bfa);
}

.member-transaction-item {
  background: linear-gradient(145deg, rgba(13, 19, 38, 0.86), rgba(17, 23, 43, 0.84));
  border-color: rgba(121, 162, 255, 0.28);
}

.member-transaction-item:hover {
  border-color: rgba(148, 197, 255, 0.5);
  background: linear-gradient(145deg, rgba(18, 27, 50, 0.9), rgba(20, 30, 56, 0.88));
}

.hx-footer {
  margin-top: auto;
  padding-top: 20px;
}

.hx-footer-inner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, rgba(20, 28, 52, 0.92), rgba(16, 22, 43, 0.9)) !important;
  border: 1px solid rgba(134, 182, 255, 0.4) !important;
  box-shadow: 0 16px 34px rgba(8, 13, 33, 0.45) !important;
}

.hx-footer-inner::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.24), transparent 34%),
    radial-gradient(circle at 80% 70%, rgba(167, 139, 250, 0.24), transparent 38%);
  pointer-events: none;
}

.hx-footer-inner > * {
  position: relative;
  z-index: 1;
}

.hx-footer-logo-text {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.hx-footer-social-link {
  background: rgba(16, 25, 48, 0.78);
  border-color: rgba(139, 184, 255, 0.36);
  transition: all 0.2s ease;
}

.hx-footer-social-link:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.24));
  border-color: rgba(163, 208, 255, 0.64);
  transform: translateY(-1px);
}

.animated-section {
  animation-duration: 0.5s;
}

@media (max-width: 991px) {
  .gx-content {
    padding: 14px;
  }
  .member-content-inner {
    min-height: calc(100vh - 130px);
  }
}

/* ===== Gray Theme Final (accent only on headings) ===== */
body.gx-login-page {
  background:
    radial-gradient(80vw 70vh at 20% 0%, rgba(255, 255, 255, 0.05), transparent 58%),
    radial-gradient(70vw 70vh at 100% 100%, rgba(255, 255, 255, 0.04), transparent 56%),
    linear-gradient(150deg, #0b0c11 0%, #11131a 50%, #0b0c11 100%) !important;
}

body.member-page.gx-member {
  background:
    radial-gradient(90vw 70vh at 0% -10%, rgba(255, 255, 255, 0.05), transparent 60%),
    radial-gradient(80vw 80vh at 100% 100%, rgba(255, 255, 255, 0.04), transparent 62%),
    linear-gradient(150deg, #090a10 0%, #10131b 50%, #0a0c11 100%) !important;
}

.gx-sidebar {
  background: linear-gradient(180deg, rgba(19, 21, 29, 0.97) 0%, rgba(14, 16, 22, 0.96) 100%) !important;
  border-right-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.32) !important;
}

.gx-topbar {
  background: rgba(15, 17, 24, 0.82) !important;
  border-bottom-color: rgba(255, 255, 255, 0.12) !important;
}

.gx-content {
  max-width: none !important;
  width: 100%;
}

.member-topup-header,
.member-gift-header,
.member-history-header,
.member-magic-card,
.gx-stat {
  background: linear-gradient(155deg, rgba(26, 28, 38, 0.92), rgba(20, 22, 30, 0.92)) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
}

.member-magic-card:hover,
.member-topup-header:hover,
.member-gift-header:hover,
.member-history-header:hover {
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.36) !important;
}

.gx-nav .member-nav-link {
  background: rgba(255, 255, 255, 0.01);
  border-color: transparent;
}

.gx-nav .member-nav-link:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
}

.gx-nav .member-nav-link.active {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}

.gx-nav .member-nav-link.active::after {
  background: linear-gradient(180deg, #60a5fa, #a78bfa) !important;
}

.member-form-input,
.member-form-select,
.reward-item-box {
  background: rgba(14, 16, 22, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

.member-form-input:focus,
.member-form-select:focus {
  border-color: rgba(255, 255, 255, 0.32) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
}

.member-pay-button {
  background: linear-gradient(180deg, #4b5563, #374151) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32) !important;
}

.member-pay-button:hover {
  background: linear-gradient(180deg, #6b7280, #4b5563) !important;
}

/* colorful accents only for headings/icons */
.gx-topbar-title h1,
.member-topup-title-text h3,
.member-gift-text h3,
.member-history-heading-text h3 {
  background: linear-gradient(90deg, #f8fafc 0%, #bfdbfe 45%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.member-topup-title-icon,
.member-gift-icon,
.member-history-heading-icon {
  background: linear-gradient(140deg, rgba(96, 165, 250, 0.22), rgba(168, 85, 247, 0.22)) !important;
  border-color: rgba(165, 180, 252, 0.45) !important;
  color: #dbeafe !important;
}

.reward-round-bar-fill,
.reward-card-progress-fill {
  background: linear-gradient(90deg, #93c5fd 0%, #60a5fa 50%, #a78bfa 100%) !important;
}

.reward-card {
  background: linear-gradient(155deg, rgba(22, 25, 35, 0.94), rgba(17, 20, 28, 0.94)) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26) !important;
}

/* remove old footer block from member */
.hx-footer {
  display: none !important;
}

/* Member: gray theme + grid background (like login) */
body.member-page.gx-member {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(161, 161, 170, 0.1), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(113, 113, 122, 0.08), transparent 50%),
    linear-gradient(165deg, #0a0a0c 0%, #121214 40%, #0c0c0e 100%) !important;
}

body.member-page.gx-member::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black 15%, transparent 72%);
}

body.member-page.gx-member .gx-app {
  position: relative;
  z-index: 1;
}

.gx-nav .member-nav-link.active::after {
  background: linear-gradient(180deg, #94a3b8, #cbd5e1) !important;
}

.member-topup-title-icon,
.member-gift-icon,
.member-history-heading-icon {
  background: linear-gradient(140deg, rgba(148, 163, 184, 0.2), rgba(203, 213, 225, 0.18)) !important;
  border-color: rgba(203, 213, 225, 0.34) !important;
  color: #e5e7eb !important;
}

/* Sidebar profile stats */
.gx-user-stats {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.gx-user-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gx-user-stat-label {
  font-size: 0.78rem;
  color: var(--gx-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gx-user-stat strong {
  font-size: 0.88rem;
  color: var(--gx-highlight);
  white-space: nowrap;
}

/* Payment QR checkout */
.pay-checkout-grid {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 16px;
  align-items: start;
}

.pay-qr-panel {
  padding: 20px;
}

.pay-qr-panel-head {
  margin-bottom: 14px;
}

.pay-qr-panel-head h4 {
  margin: 8px 0 0;
  font-size: 1.05rem;
  color: var(--gx-highlight);
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.16);
  border: 1px solid rgba(147, 197, 253, 0.35);
}

.pay-qr-frame {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pay-qr-frame .member-qr-image {
  width: min(100%, 280px);
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.pay-qr-placeholder {
  display: grid;
  place-items: center;
  gap: 10px;
  color: #64748b;
  text-align: center;
}

.pay-qr-placeholder i {
  font-size: 2rem;
}

.pay-qr-note {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--gx-muted);
}

.pay-detail-stack {
  display: grid;
  gap: 14px;
}

.pay-summary-card h4,
.pay-steps-card h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--gx-highlight);
}

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

.pay-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: var(--gx-muted);
}

.pay-summary-row strong {
  color: var(--gx-highlight);
  font-size: 0.95rem;
}

.pay-summary-row.highlight {
  border-color: rgba(147, 197, 253, 0.35);
  background: rgba(96, 165, 250, 0.1);
}

.pay-steps-list {
  margin: 0 0 12px;
  padding-left: 1.15rem;
  color: var(--gx-muted);
  line-height: 1.7;
  font-size: 0.88rem;
}

.pay-wait-box {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  margin-bottom: 12px;
}

.pay-wait-box strong {
  display: block;
  color: var(--gx-highlight);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.pay-wait-box p {
  margin: 0;
  color: var(--gx-soft);
  font-size: 0.82rem;
}

.pay-wait-pulse {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: payPulse 1.6s infinite;
}

@keyframes payPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pay-check-btn {
  margin-bottom: 8px;
}

.pay-back-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--gx-muted);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pay-back-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--gx-highlight);
}

@media (max-width: 991px) {
  .pay-checkout-grid {
    grid-template-columns: 1fr;
  }

  .pay-qr-frame {
    min-height: 260px;
  }
}

@media (max-width: 768px) {
  .gx-topbar-stats {
    display: none;
  }
}
