/* =========================================================
   ATHAR Add Funds — Premium RED + BLACK UI + Animations
   Payment Bd Online / India Pay Online / Binance USD Online
   ========================================================= */

:root {
  --af-red: #ef4444;
  --af-red-deep: #dc2626;
  --af-red-dark: #991b1b;
  --af-red-glow: rgba(239, 68, 68, 0.45);
  --af-black: #050203;
  --af-card: #120607;
  --af-border: rgba(239, 68, 68, 0.35);
  --af-green: #22c55e;
  --af-green-dot: #4ade80;
}

.add-funds-view {
  min-height: 100%;
  background: radial-gradient(ellipse at top, #3b0a0a 0%, #120405 40%, #050203 100%) !important;
  padding: 12px 12px 100px !important;
  color: #fff;
  animation: afFadeIn 0.45s ease-out;
}

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

.af-shell { max-width: 560px; margin: 0 auto; }

.af-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.af-brand { display: flex; align-items: center; gap: 10px; }
.af-logo {
  width: 42px; height: 42px; border-radius: 12px; object-fit: cover;
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.45);
  animation: afPulseGlow 2.8s ease-in-out infinite;
}
@keyframes afPulseGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(239, 68, 68, 0.35); }
  50%      { box-shadow: 0 0 28px rgba(239, 68, 68, 0.65); }
}
.af-title {
  font-size: 18px; font-weight: 900; letter-spacing: 0.3px;
  background: linear-gradient(90deg, #fff, #fca5a5, #ef4444);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.af-sub { font-size: 11px; color: #94a3b8; font-weight: 600; }
.af-header-right { display: flex; align-items: center; gap: 8px; }
.af-secure-pill {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(15, 5, 8, 0.9));
  border: 1px solid rgba(239, 68, 68, 0.45);
  border-radius: 14px; padding: 6px 10px; font-size: 9px; font-weight: 800;
  line-height: 1.25; text-align: right; color: #fecaca;
}
.af-secure-pill span { font-weight: 600; opacity: 0.85; font-size: 8px; }
.af-menu-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 8, 10, 0.7); color: #e2e8f0; cursor: pointer;
  transition: transform 0.15s ease;
}
.af-menu-btn:active { transform: scale(0.92); }

.af-card {
  background: linear-gradient(165deg, rgba(40, 10, 12, 0.95), rgba(12, 4, 6, 0.98));
  border: 1px solid var(--af-border);
  border-radius: 18px; padding: 14px; margin-bottom: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(239, 68, 68, 0.08);
  animation: afCardIn 0.5s ease-out backwards;
}
.af-card:nth-child(2) { animation-delay: 0.05s; }
.af-card:nth-child(3) { animation-delay: 0.1s; }
@keyframes afCardIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.af-card-title {
  font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; color: #f8fafc;
}
.af-card-title i { color: var(--af-red); }
.af-card-sub { font-size: 11px; color: #f87171; opacity: 0.85; margin-top: 3px; }

.af-amount-box, .af-amount-round {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  background: #050203 !important;
  border: 1.5px solid rgba(239, 68, 68, 0.5) !important;
  border-radius: 999px !important;
  padding: 6px 6px 6px 16px !important;
  box-shadow: 0 0 24px rgba(220, 38, 38, 0.2) !important;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.af-amount-round:focus-within {
  border-color: #ef4444 !important;
  box-shadow: 0 0 32px rgba(239, 68, 68, 0.4) !important;
}
.af-amount-round input, #fundsCustomAmount {
  flex: 1; background: transparent !important; border: none !important; outline: none !important;
  color: #fff !important; font-size: 17px !important; font-weight: 700; padding: 12px 8px !important;
}
.af-taka { color: #fca5a5 !important; font-size: 18px; font-weight: 800; }
.af-bdt {
  background: linear-gradient(135deg, #991b1b, #ef4444) !important;
  color: #fff !important; border-radius: 999px !important;
  min-width: 52px; text-align: center; padding: 8px 12px; font-size: 12px; font-weight: 800;
}

.af-gateway-row, .funds-method-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: linear-gradient(165deg, rgba(40, 10, 12, 0.95), rgba(12, 4, 6, 0.98)) !important;
  border: 1px solid var(--af-border) !important;
  border-radius: 16px; padding: 12px 14px; margin-bottom: 12px;
  cursor: pointer; transition: transform 0.15s ease, border-color 0.2s;
  text-align: left; color: inherit;
  animation: afCardIn 0.5s ease-out 0.08s backwards;
}
.af-gateway-row:active, .funds-method-trigger:active { transform: scale(0.98); }
.af-gateway-left { display: flex; align-items: center; gap: 12px; }
.af-gateway-ico {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #b91c1c, #7f1d1d) !important;
  color: #fff; font-size: 16px;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.35);
}
.af-gateway-label { display: block; font-size: 10px; color: #94a3b8; font-weight: 600; }
.af-gateway-name { display: block; font-size: 14px; font-weight: 800; color: #fecaca !important; }
.af-gateway-sub { display: block; font-size: 11px; color: #f87171 !important; opacity: 0.9; }

/* Three method chips with small green online dots */
.af-method-chips {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  margin-bottom: 14px;
  animation: afCardIn 0.5s ease-out 0.12s backwards;
}
.af-chip {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 12px 6px 10px; border-radius: 14px;
  background: linear-gradient(165deg, rgba(40, 12, 14, 0.95), rgba(10, 4, 5, 0.98));
  border: 1.5px solid rgba(239, 68, 68, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s, box-shadow 0.25s;
  color: #e2e8f0; font-size: 11px; font-weight: 700; text-align: center;
  line-height: 1.25; min-height: 82px;
}
.af-chip:hover {
  border-color: rgba(239, 68, 68, 0.55);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25);
}
.af-chip:active { transform: scale(0.96); }
.af-chip.active {
  border-color: #ef4444;
  background: linear-gradient(165deg, rgba(80, 15, 18, 0.98), rgba(30, 6, 8, 0.98));
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.4), 0 8px 24px rgba(220, 38, 38, 0.35);
}
.af-chip-icon {
  width: 28px; height: 28px; border-radius: 8px; object-fit: cover;
  background: #fff; padding: 2px;
}
.af-chip-label { font-size: 10px; font-weight: 800; color: #fecaca; }
.af-chip-sub { font-size: 8px; color: #94a3b8; font-weight: 600; }

/* SMALL green online status dot */
.af-chip-status {
  position: absolute; top: 6px; right: 6px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--af-green-dot);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2), 0 0 6px rgba(34, 197, 94, 0.55);
  animation: afDotPulse 1.8s ease-in-out infinite;
}
@keyframes afDotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.2); opacity: 0.8; }
}
.af-chip-status-text {
  font-size: 8px; color: var(--af-green-dot); font-weight: 700; margin-top: 1px;
}

.af-proceed-btn, .funds-submit-btn.af-proceed-btn, button.funds-submit-btn,
.af-proceed-btn.funds-submit-btn {
  width: 100%;
  background: linear-gradient(90deg, #7f1d1d, #dc2626, #b91c1c) !important;
  color: #fff !important;
  border: 1px solid rgba(252, 165, 165, 0.25) !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  font-size: 15px !important; font-weight: 900 !important; letter-spacing: 0.6px !important;
  box-shadow: 0 12px 32px rgba(185, 28, 28, 0.5) !important;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s;
  animation: afCardIn 0.5s ease-out 0.18s backwards;
  position: relative; overflow: hidden;
}
.af-proceed-btn::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: afShine 3.2s ease-in-out infinite;
}
@keyframes afShine {
  0% { left: -80%; } 40% { left: 120%; } 100% { left: 120%; }
}
.af-proceed-btn:active, .funds-submit-btn:active {
  transform: scale(0.97); filter: brightness(1.08);
}

.af-history-sub { color: #f87171 !important; opacity: 0.85; }
.af-hist-row, .funds-history-item {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(165deg, rgba(40, 10, 12, 0.92), rgba(12, 4, 6, 0.96)) !important;
  border: 1px solid rgba(239, 68, 68, 0.25) !important;
  border-radius: 16px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.af-hist-logo {
  width: 46px; height: 46px; border-radius: 50% !important; object-fit: cover;
  background: #fff; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.35), 0 0 0 2px rgba(239, 68, 68, 0.4) !important;
  padding: 3px;
}
.af-hist-mid { flex: 1; min-width: 0; }
.af-hist-method { font-size: 13px; font-weight: 800; color: #f1f5f9; }
.af-hist-trx { font-size: 11px; color: #94a3b8; margin-top: 2px; word-break: break-all; }
.af-hist-date { font-size: 10px; color: #64748b; margin-top: 3px; }
.af-hist-right { text-align: right; flex-shrink: 0; }
.af-hist-amt { font-size: 15px; font-weight: 900; color: #f8fafc; }
.af-hist-status { font-size: 11px; font-weight: 800; margin-top: 4px; display: inline-block; }
.af-hist-status.paid { color: #4ade80; }
.af-hist-status.unpaid { color: #f87171; }

.funds-method-option[data-method="ind_upi"],
.funds-method-option[data-method="binance"],
.funds-method-option[data-method="nobabpay"],
.funds-method-option[data-method="bd"] { display: flex !important; }
button[data-method="ind_upi"] { display: inline-flex !important; }

.af-auto-verify, .funds-auto-verify, [class*="auto-verify"], .auto-payment-verify {
  display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important;
}
.add-funds-view .funds-card { display: none !important; }

.af-online-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 9px; font-weight: 700; color: var(--af-green-dot); margin-left: 6px;
}
.af-online-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--af-green-dot);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: afDotPulse 1.8s ease-in-out infinite;
}
.add-funds-view * { -webkit-tap-highlight-color: transparent; }
