/* ═══════════════════════════════════════
   ELAAMART — Game Top-Up Page Styles
═══════════════════════════════════════ */

/* ── Page loading ── */
.page-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  gap: 16px;
  color: var(--text-secondary);
}
.loading-ring {
  width: 52px; height: 52px;
  border: 4px solid var(--glass-border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  color: var(--text-secondary);
}
.error-state h2 { color: var(--text-primary); font-size: 1.75rem; margin-bottom: 8px; }

/* ── Hero Banner ── */
.gp-hero {
  height: 420px;
  position: relative;
  overflow: hidden;
}
.gp-hero-bg {
  position: absolute;
  inset: 0;
}
.gp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.5) 55%,
    rgba(0,0,0,0.1) 100%
  );
  z-index: 1;
}
.gp-hero-deco {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 200px;
  opacity: 0.12;
  z-index: 1;
  filter: blur(3px);
  animation: floatIcon 5s ease-in-out infinite;
  pointer-events: none;
}
.gp-hero-content { max-width: 640px; }

.game-logo-wrap { margin-bottom: 16px; }
.game-svg-logo {
  height: 70px;
  width: auto;
  max-width: 280px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.5));
}

.gp-hero-desc {
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
  max-width: 520px;
}
.gp-hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-tag {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary-light); }
.breadcrumb i { font-size: 0.6rem; }

/* ── Step Flow ── */
.step-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 24px 0 32px;
}
.sf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}
.sf-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}
.sf-step.active { color: var(--text-primary); }
.sf-step.active .sf-num {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
}
.sf-step.done .sf-num {
  background: var(--success);
  border-color: transparent;
  color: #fff;
}
.sf-step.done .sf-num::after { content: '✓'; }
.sf-step.done .sf-num { font-size: 0; }
.sf-step.done .sf-num::after { font-size: 0.9rem; }
.sf-line {
  flex: 1;
  height: 2px;
  background: var(--glass-border);
  max-width: 100px;
  margin: 0 8px;
  margin-bottom: 22px;
}

/* ── Step Content ── */
.gp-step { padding-top: 8px; padding-bottom: 60px; }

/* ── Step 1 layout ── */
.step-card-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
.step-panel { padding: 36px; }
.sp-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.sp-icon { font-size: 2rem; flex-shrink: 0; margin-top: 2px; }
.sp-header h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.sp-hint { font-size: 0.82rem; color: var(--text-secondary); }
.sp-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* UID input group */
.uid-input-group { margin-bottom: 20px; }
.uid-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.uid-row { display: flex; gap: 12px; }
.uid-input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.uid-input:focus {
  border-color: var(--primary);
  background: rgba(124,58,237,0.06);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}
.uid-input::placeholder { color: var(--text-muted); font-size: 0.875rem; }
.verify-btn { border-radius: var(--radius-sm) !important; padding: 12px 20px !important; flex-shrink: 0; }

/* Verifying state */
.verify-state {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(124,58,237,0.08);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.verify-spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(124,58,237,0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

/* Player card */
.player-card {
  margin-top: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.player-card-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: var(--radius-md);
  border-left-width: 4px;
  animation: slideIn 0.3s ease;
}
.pc-avatar {
  width: 50px; height: 50px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.pc-info { flex: 1; }
.pc-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 3px;
}
.pc-uid { font-size: 0.78rem; color: var(--text-secondary); }
.pc-verified {
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.change-uid-btn {
  display: block;
  width: 100%;
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  margin-top: 8px;
  transition: var(--transition);
  border-radius: 6px;
}
.change-uid-btn:hover { color: var(--text-secondary); background: var(--glass-bg); }

/* Verify error */
.verify-error {
  padding: 12px 16px;
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: 0.875rem;
  margin-top: 12px;
}

/* UID info card */
.uid-info-card {
  padding: 28px;
  position: sticky;
  top: 100px;
}
.uid-info-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.uid-guide-content { margin-bottom: 20px; }
.uid-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.ugs-num {
  width: 24px; height: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--primary-light);
  margin-top: 1px;
}
.uid-guide-security {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(16,185,129,0.06);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: rgba(16,185,129,0.9);
  line-height: 1.5;
}

/* ── Step 2: Player summary bar ── */
.player-summary-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
}
.psb-avatar {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.psb-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.psb-name { font-weight: 700; font-size: 0.95rem; }
.psb-uid { font-size: 0.78rem; color: var(--text-muted); }
.psb-change { padding: 7px 14px !important; font-size: 0.8rem !important; }

/* ── Denomination sections ── */
.denom-section { margin-bottom: 40px; }
.ds-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--glass-border);
}
.ds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}

/* Denomination card */
.dc-card {
  position: relative;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  overflow: hidden;
}
.dc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.1), transparent);
  opacity: 0;
  transition: var(--transition);
}
.dc-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}
.dc-card:hover::before { opacity: 1; }
.dc-card.dc-selected {
  border-color: var(--primary);
  background: rgba(124,58,237,0.12);
  box-shadow: 0 0 0 1px var(--primary), 0 8px 30px rgba(124,58,237,0.3);
}
.dc-card.dc-selected::after {
  content: '✓';
  position: absolute;
  top: 8px; right: 10px;
  width: 20px; height: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 20px;
}
.dc-popular { border-color: rgba(245,158,11,0.35); }
.dc-popular-tag {
  position: absolute;
  top: 0; left: 0; right: 0;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-align: center;
  padding: 3px 8px;
  letter-spacing: 0.04em;
}
.dc-top { position: relative; z-index: 1; margin-bottom: 10px; }
.dc-amount {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.dc-main-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.dc-sublabel {
  font-size: 0.72rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.dc-bonus-chip {
  display: inline-block;
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--success);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  margin-top: 4px;
}
.dc-currency {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.dc-price {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Step 2 nav ── */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 16px;
}

/* ── Step 3: Checkout layout ── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  align-items: start;
}

/* Payment options */
.payment-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pay-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}
.pay-opt input[type="radio"] { display: none; }
.pay-opt:hover { background: rgba(124,58,237,0.06); border-color: rgba(124,58,237,0.25); }
.pay-opt.selected {
  border-color: var(--primary);
  background: rgba(124,58,237,0.10);
}
.pay-opt-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
  letter-spacing: 0;
}
.bkash-icon  { background: #fff; }
.nagad-icon  { background: #fff; }
.rocket-icon { background: #fff; }
.visa-icon   { background: #1a1f71; color: #fff; font-size: 0.65rem; letter-spacing: 0.5px; }
.bank-icon   { background: rgba(255,255,255,0.1); color: var(--text-primary); }
/* Real payment logos inside icon boxes */
.pay-opt-icon img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.pay-opt-info { flex: 1; }
.pay-opt-name { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 2px; }
.pay-opt-note { font-size: 0.72rem; color: var(--text-muted); }
.pay-opt-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: transparent;
  transition: var(--transition);
  flex-shrink: 0;
}
.pay-opt.selected .pay-opt-check {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Security row */
.security-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.sec-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.75rem;
  color: rgba(16,185,129,0.9);
  font-weight: 600;
}

/* Order summary card */
.order-summary-card {
  padding: 32px;
  position: sticky;
  top: 100px;
}
.os-game-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.os-game-icon { font-size: 2rem; }
.os-game-name { display: block; font-weight: 700; font-size: 1rem; }
.os-game-pub  { font-size: 0.75rem; color: var(--text-muted); }
.os-divider { height: 1px; background: var(--glass-border); margin: 16px 0; }
.os-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.875rem;
}
.os-label { color: var(--text-secondary); }
.os-value { font-weight: 600; }
.os-mono { font-family: monospace; font-size: 0.85rem; color: var(--text-muted); }
.os-highlight { color: var(--primary-light); }
.os-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 800;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}
.os-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.checkout-btn { font-size: 1.05rem !important; padding: 16px !important; border-radius: 14px !important; }
.checkout-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124,58,237,0.5) !important; }

/* ── Success Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-box {
  width: 100%;
  max-width: 440px;
  padding: 48px 36px;
  text-align: center;
  animation: popIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
}
.success-icon {
  background: linear-gradient(135deg, var(--success), #059669);
  color: #fff;
  box-shadow: 0 8px 30px rgba(16,185,129,0.4);
}
.modal-box h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 10px; }
.modal-box p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }
.modal-order-id {
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 8px;
  padding: 10px;
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 16px;
}
.modal-detail {
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: left;
  margin-bottom: 8px;
}
.md-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}
.md-row:last-child { margin-bottom: 0; }
.md-row span:last-child { font-weight: 600; color: var(--text-primary); }

/* ── Animations ── */
@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
@keyframes slideIn {
  from { transform: translateY(10px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.pop-in { animation: popIn 0.35s cubic-bezier(0.34,1.56,0.64,1); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .step-card-wrap { grid-template-columns: 1fr; }
  .uid-info-card { position: static; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary-card { position: static; }
}
@media (max-width: 768px) {
  .gp-hero { height: 340px; }
  .gp-hero-deco { display: none; }
  .game-svg-logo { height: 54px; }
  .ds-grid { grid-template-columns: repeat(2, 1fr); }
  .step-flow { gap: 0; }
  .sf-line { max-width: 50px; }
}
@media (max-width: 480px) {
  .ds-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dc-amount { font-size: 1.5rem; }
  .uid-row { flex-direction: column; }
  .verify-btn { width: 100%; }
}
