:root {
  --bg: #060911;
  --glass: rgba(13, 19, 31, 0.78);
  --glass-strong: rgba(11, 17, 29, 0.92);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(255, 255, 255, 0.16);
  --text: #F8FAFC;
  --muted: #94A3B8;
  --emerald: #10B981;
  --emerald-bright: #34D399;
  --electric-blue: #0E76D8;
  --amber: #F59E0B;
  --crimson: #EF4444;
  --cyan: #06B6D4;
  --radius-lg: 18px;
  --radius-md: 13px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(circle at 18% 10%, rgba(16, 185, 129, 0.08), transparent 40%),
              radial-gradient(circle at 85% 32%, rgba(14, 165, 233, 0.09), transparent 44%),
              var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { position: relative; overflow-x: hidden; }

.ambient-glow {
  position: fixed;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
}
.ambient-1 { top: -150px; left: -120px; background: #10B981; }
.ambient-2 { bottom: -160px; right: -120px; background: #0284C7; }

.hidden { display: none !important; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.text-emerald { color: #34D399; }
.text-cyan { color: #38BDF8; }
.muted-sm { font-size: 0.84rem; color: var(--muted); }
.muted-xs { font-size: 0.74rem; color: var(--muted); }
.mt-6 { margin-top: 6px; }
.mt-12 { margin-top: 12px; }
.flex-1 { flex: 1; }

.glass-card {
  position: relative;
  z-index: 1;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.5);
}

/* ==================== BRAND WORDMARK ==================== */
.brand-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.brand-emerald {
  color: #34D399;
  text-shadow: 0 0 18px rgba(16, 185, 129, 0.35);
}
.brand-white { color: #F8FAFC; }

/* ==================== AUTH SCREEN ==================== */
.auth-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
}
.auth-card { width: 100%; max-width: 420px; padding: 26px 22px; }
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10B981, #0EA5E9);
  color: #031214;
  font-weight: 800;
  font-size: 1.12rem;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.38);
  flex-shrink: 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: 13px;
  margin-bottom: 18px;
}
.auth-tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 9px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-tab-btn.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.38);
}

.stack-form { display: flex; flex-direction: column; gap: 13px; }
.two-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.78rem; font-weight: 600; color: #CBD5E1; }

input, select {
  width: 100%;
  background: rgba(5, 10, 20, 0.86);
  border: 1px solid var(--border-bright);
  border-radius: 11px;
  color: var(--text);
  padding: 11px 13px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input:focus, select:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}
input.emerald-input {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.08);
}

.btn {
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.14s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-xs { padding: 6px 10px; font-size: 0.74rem; border-radius: 9px; }

.btn-neon-emerald {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #10B981, #22C55E);
  color: #02180E;
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.36);
  will-change: transform;
}
.btn-neon-emerald::after,
.voice-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-140%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn-neon-emerald:hover::after,
.voice-btn:hover::after {
  transform: translateX(140%);
}
.btn-neon-emerald:hover { filter: brightness(1.06); }
.btn-neon-emerald:active { transform: scale(0.97); }

.btn-emerald {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #03150E;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-bright);
  color: var(--text);
}
.btn-danger-soft {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.38);
  color: #FCA5A5;
}
.btn-amber-soft {
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FCD34D;
}

.error-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.42);
  color: #FCA5A5;
  font-size: 0.83rem;
}

/* ==================== TOP OBSIDIAN HEADER ==================== */
.portal-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(6, 9, 17, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.header-left-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-width: 0;
}
.voice-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid rgba(16, 185, 129, 0.72);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.12));
  color: #ECFDF5;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.25);
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  will-change: transform;
}
.voice-btn:active { transform: scale(0.96); }
.voice-btn.playing {
  border-color: #38BDF8;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.44);
}
.sound-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.sound-bars i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #34D399;
  animation: soundBar 0.75s ease-in-out infinite;
}
.sound-bars i:nth-child(2) { animation-delay: 0.15s; }
.sound-bars i:nth-child(3) { animation-delay: 0.3s; }
.sound-bars i:nth-child(4) { animation-delay: 0.45s; }

.header-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.profile-square-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1.5px solid rgba(16, 185, 129, 0.65);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(6, 182, 212, 0.12));
  color: #34D399;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.28);
}
.live-corner-dot {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #060911;
}
.live-corner-dot.online {
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
  animation: pulseLive 1.8s infinite;
}
.live-corner-dot.offline { background: #F59E0B; }

.header-user-meta {
  display: flex;
  align-items: center;
  gap: 5px;
}
.header-user-name {
  font-size: 0.72rem;
  font-weight: 600;
  color: #CBD5E1;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-live-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: #34D399;
  letter-spacing: 0.04em;
}

/* ==================== PORTAL CONTAINER ==================== */
.portal-container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 14px 52px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ==================== GLOWING NEON-RED ADMIN NOTICE CARD ==================== */
.notice-glow-card {
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(55, 12, 18, 0.86), rgba(32, 8, 14, 0.92));
  border: 1.5px solid rgba(239, 68, 68, 0.85);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.28), inset 0 0 16px rgba(239, 68, 68, 0.14);
  padding: 11px 14px;
  text-align: center;
}
.notice-glow-inner {
  font-size: 0.84rem;
  line-height: 1.4;
  color: #FEE2E2;
  font-weight: 700;
}
.notice-label {
  color: #F87171;
  font-weight: 800;
  margin-right: 4px;
}

/* ==================== ELECTRIC-BLUE GLASS BALANCE HERO (SCREEN 1) ==================== */
.balance-hero-blue {
  position: relative;
  z-index: 1;
  border-radius: 18px;
  padding: 16px 18px 14px;
  background: linear-gradient(135deg, rgba(13, 22, 38, 0.94) 0%, rgba(12, 50, 92, 0.78) 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.36);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.55), 0 0 26px rgba(14, 165, 233, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.balance-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.bal-top-label { font-size: 0.82rem; font-weight: 600; color: #CBD5E1; }

.live-rate-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #E2E8F0;
  font-size: 0.74rem;
  font-weight: 600;
}
.live-pill-tag {
  background: #10B981;
  color: #031B12;
  font-weight: 800;
  font-size: 0.68rem;
  padding: 2px 7px;
  border-radius: 999px;
}
.live-rate-sep { color: rgba(255, 255, 255, 0.25); }

.bal-stack { display: flex; flex-direction: column; gap: 4px; }
.bal-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.bal-prefix { font-size: 1.15rem; font-weight: 700; color: #E2E8F0; }
.bal-main-usd { font-size: 1.68rem; font-weight: 800; color: #FFFFFF; letter-spacing: -0.02em; }
.bal-mid-label { font-size: 0.8rem; font-weight: 600; color: #CBD5E1; margin-top: 4px; }
.bal-main-bdt { font-size: 1.56rem; font-weight: 800; color: #F8FAFC; letter-spacing: -0.02em; }

.balance-foot-row {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bal-foot-right { display: flex; align-items: center; gap: 8px; }

/* ==================== PAYPAL ACCOUNTS 2-PER-ROW GLASS GRID ==================== */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.section-head h2 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #E2E8F0;
}
.pill-count {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: #6EE7B7;
}
.fnf-mini-rule {
  padding: 8px 11px;
  border-radius: 11px;
  font-size: 0.75rem;
  color: #D1FAE5;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.24);
  margin-bottom: 11px;
}

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

.pp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 13px;
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(16, 40, 36, 0.8), rgba(10, 18, 28, 0.9));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 26px rgba(16, 185, 129, 0.1);
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.pp-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 185, 129, 0.75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 30px rgba(16, 185, 129, 0.22);
}
.pp-card:active {
  transform: scale(0.97);
}
.pp-card.is-limited {
  background: linear-gradient(155deg, rgba(30, 34, 46, 0.82), rgba(17, 20, 30, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 22px rgba(0, 0, 0, 0.35);
  cursor: default;
}
.pp-card.is-limited:hover,
.pp-card.is-limited:active { transform: none; }

.pp-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pp-brand-left {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pp-svg { flex-shrink: 0; }
.pp-wordmark {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 0.96rem;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.pp-card.is-limited .pp-wordmark { color: #94A3B8; }
.pp-card.is-limited .pp-svg { opacity: 0.65; }

.pp-name {
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  color: #F8FAFC;
  word-break: break-word;
}
.pp-card.is-limited .pp-name { color: #CBD5E1; }

.pp-email {
  font-size: 0.7rem;
  color: var(--muted);
  word-break: break-all;
  margin-top: 2px;
}

.pp-status-line {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 800;
}
.pp-status-line.active { color: #34D399; }
.pp-status-line.limited { color: #FBBF24; }
.pp-auto-rem { font-size: 0.68rem; color: #94A3B8; }

.copy-blue-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(56, 189, 248, 0.44);
  background: linear-gradient(180deg, #1676CF, #0B4D91);
  color: #FFFFFF;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(14, 118, 216, 0.28);
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.16s ease;
  will-change: transform;
}
.copy-blue-btn:hover { filter: brightness(1.08); }
.copy-blue-btn:active { transform: scale(0.95); }
.copy-blue-btn.copied {
  background: linear-gradient(180deg, #10B981, #059669);
  border-color: #34D399;
  color: #031B12;
  font-size: 0.7rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.45);
  animation: copyPop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.copy-disabled-btn {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #94A3B8;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: not-allowed;
}

/* ==================== UPLOAD PAYMENT CARD (SCREEN 2) ==================== */
.upload-card { padding: 4px; }
.collapse-head {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}
.collapse-title-upper {
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #F8FAFC;
}
.chevron { font-size: 1.1rem; color: var(--muted); transition: transform 0.2s ease; }
.chevron.open { transform: rotate(180deg); }
.collapse-body { padding: 0 14px 16px; border-top: 1px solid var(--border); }

/* Custom Glassmorphic Active PayPal Trigger */
.pp-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(5, 11, 22, 0.88);
  border: 1.5px solid rgba(56, 189, 248, 0.28);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.pp-picker-trigger:hover {
  border-color: rgba(56, 189, 248, 0.58);
}
.pp-picker-trigger:active {
  transform: scale(0.98);
}
.pp-picker-trigger.has-value {
  border-color: rgba(16, 185, 129, 0.62);
  box-shadow: inset 0 0 14px rgba(16, 185, 129, 0.08), 0 0 18px rgba(16, 185, 129, 0.14);
}
.pp-picker-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.pp-picker-emblem {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pp-picker-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.pp-picker-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-picker-title.placeholder { color: #94A3B8; font-weight: 500; }
.pp-picker-sub {
  font-size: 0.72rem;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-picker-chevron {
  color: #94A3B8;
  display: grid;
  place-items: center;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}
.pp-picker-trigger[aria-expanded="true"] .pp-picker-chevron {
  transform: rotate(180deg);
  color: #34D399;
}

.calc-preview {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.94rem;
  font-weight: 700;
  color: #34D399;
  padding: 4px 2px 0;
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed rgba(16, 185, 129, 0.44);
  border-radius: 14px;
  padding: 18px 12px;
  background: rgba(4, 12, 18, 0.64);
  box-shadow: inset 0 0 18px rgba(16, 185, 129, 0.06);
  cursor: pointer;
  text-align: center;
  transition: transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.drop-zone:hover,
.drop-zone:active,
.drop-zone.dragover {
  border-color: rgba(52, 211, 153, 0.92);
  background: rgba(16, 185, 129, 0.11);
  box-shadow: inset 0 0 22px rgba(16, 185, 129, 0.14), 0 0 20px rgba(16, 185, 129, 0.18);
}
.drop-zone:active { transform: scale(0.985); }
.drop-prompt { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.drop-ico { font-size: 1.4rem; }
.upload-preview {
  animation: previewFadePop 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.preview-thumb-wrap {
  position: relative;
  display: inline-block;
  margin-top: 4px;
}
.preview-thumb-wrap img {
  max-width: 100%;
  max-height: 175px;
  border-radius: 11px;
  border: 1px solid var(--border-bright);
  display: block;
}
.preview-clear-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #060911;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
}

/* ==================== REFERRALS SECTION ==================== */
.referrals-card { padding: 16px; }
.ref-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.ref-stat-box {
  padding: 10px 11px;
  border-radius: 13px;
  background: rgba(4, 8, 16, 0.62);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ref-stat-box strong { font-size: 1.02rem; }
.ref-create-box {
  padding: 13px;
  border-radius: 14px;
  background: rgba(4, 8, 16, 0.56);
  border: 1px solid rgba(16, 185, 129, 0.26);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ref-form-title { font-size: 0.85rem; font-weight: 700; color: #A7F3D0; }
.sub-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.ref-logs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 210px;
  overflow-y: auto;
}
.ref-log-row {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(4, 8, 16, 0.54);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
}

/* ==================== MY HISTORY (SCREEN 4) ==================== */
.history-card { padding: 16px; }
.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.history-head h2 { margin: 0; font-size: 0.94rem; font-weight: 800; letter-spacing: 0.04em; }

.mini-tabs {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(4, 8, 16, 0.76);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 3px;
  gap: 4px;
}
.mini-tabs.single-tab { grid-template-columns: 1fr; }
.mini-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.mini-tab.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
}

.history-list { display: flex; flex-direction: column; gap: 10px; }
.hist-item {
  padding: 13px;
  border-radius: 14px;
  background: rgba(5, 10, 20, 0.65);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hist-item.status-done {
  background: linear-gradient(135deg, rgba(11, 44, 34, 0.74), rgba(7, 16, 22, 0.85));
  border-color: rgba(16, 185, 129, 0.45);
}
.hist-item.status-pending {
  background: linear-gradient(135deg, rgba(46, 36, 12, 0.72), rgba(18, 14, 8, 0.85));
  border-color: rgba(245, 158, 11, 0.48);
}
.hist-item.status-rejected {
  background: linear-gradient(135deg, rgba(54, 14, 20, 0.74), rgba(20, 10, 14, 0.86));
  border-color: rgba(239, 68, 68, 0.5);
}

.hist-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.hist-top-right { display: flex; align-items: center; gap: 7px; }
.hist-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.hist-amt { font-weight: 800; font-size: 0.94rem; }

.status-chip {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-chip.active {
  background: rgba(16, 185, 129, 0.22);
  border: 1px solid rgba(16, 185, 129, 0.52);
  color: #34D399;
}
.status-chip.pending {
  background: rgba(245, 158, 11, 0.22);
  border: 1px solid rgba(245, 158, 11, 0.52);
  color: #FCD34D;
}
.status-chip.limited {
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.52);
  color: #FCA5A5;
}

.reject-reason-box {
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.36);
  color: #FECACA;
  font-size: 0.78rem;
}
.hist-thumbs { display: flex; gap: 6px; align-items: center; }
.thumb-btn {
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
}
.thumb-btn.proof {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.16);
  color: #FDE68A;
}

/* ==================== MODAL, BOTTOM SHEET & LIGHTBOX (GPU SPRING) ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 7, 18, 0.76);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s ease;
  will-change: opacity;
}
.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card,
.sheet-card,
.lightbox-wrap {
  transform: translateY(16px) scale(0.94);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
  will-change: transform, opacity;
}
.modal-backdrop.is-open .modal-card,
.modal-backdrop.is-open .sheet-card,
.modal-backdrop.is-open .lightbox-wrap {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-card { width: 100%; max-width: 440px; padding: 20px; background: var(--glass-strong); }
.sheet-card {
  width: 100%;
  max-width: 440px;
  padding: 18px 18px 20px;
  background: var(--glass-strong);
  max-height: 82dvh;
  display: flex;
  flex-direction: column;
}
.sheet-handle {
  display: none;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  margin: 0 auto 12px;
}
.sheet-head { margin-bottom: 12px; }

.pp-picker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 2px 1px;
}
.pp-option-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 15px;
  background: rgba(8, 15, 28, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.09);
  color: var(--text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.14s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.pp-option-card:hover {
  border-color: rgba(16, 185, 129, 0.45);
}
.pp-option-card:active {
  transform: scale(0.97);
}
.pp-option-card.is-selected {
  background: linear-gradient(135deg, rgba(16, 48, 40, 0.78), rgba(8, 18, 28, 0.92));
  border-color: rgba(16, 185, 129, 0.88);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 22px rgba(16, 185, 129, 0.22);
}
.pp-opt-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  flex: 1;
}
.pp-opt-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pp-opt-info { min-width: 0; flex: 1; }
.pp-opt-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F8FAFC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-opt-email {
  font-size: 0.73rem;
  color: #94A3B8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.pp-opt-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.pp-opt-active {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #34D399;
}
.pp-opt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.75);
  animation: pulseLive 1.8s infinite;
}
.pp-check-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #10B981;
  color: #031B12;
  display: grid;
  place-items: center;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.55);
  animation: copyPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==================== PAYMENT SUCCESS CONFIRMATION MODAL ==================== */
.success-modal-card {
  max-width: 360px;
  text-align: center;
  padding: 24px 20px;
  border: 1.5px solid rgba(16, 185, 129, 0.52);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 34px rgba(16, 185, 129, 0.22);
}
.success-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid rgba(52, 211, 153, 0.5);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.35);
  display: grid;
  place-items: center;
}
.success-circle-bg {
  stroke: rgba(52, 211, 153, 0.28);
  stroke-width: 2.5;
}
.success-check-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
.modal-backdrop.is-open .success-check-path {
  animation: checkDraw 0.45s 0.12s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.success-title {
  margin: 0 0 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.18rem;
  font-weight: 800;
  color: #FFFFFF;
}
.success-amount {
  font-size: 1.24rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.success-meta {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(4, 10, 20, 0.68);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.modal-head h3 { margin: 0; font-size: 1.04rem; }
.modal-close {
  border: 1px solid var(--border-bright);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.14s ease, background 0.16s ease;
}
.modal-close:active { transform: scale(0.92); }
.eyebrow { font-size: 0.76rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.monthly-box {
  padding: 12px;
  border-radius: 13px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border);
}
.monthly-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 6px;
}
.monthly-grid div { display: flex; flex-direction: column; gap: 2px; }
.modal-actions { display: flex; gap: 10px; margin-top: 4px; }

.lightbox-wrap { position: relative; max-width: 92vw; max-height: 90vh; text-align: center; }
.lightbox-wrap img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  border: 1px solid var(--border-bright);
}
.lightbox-x { position: absolute; top: -12px; right: -12px; }
.lightbox-caption { margin-top: 8px; font-size: 0.84rem; color: #E2E8F0; }

/* ==================== FLOATING TOP GLASS PILL TOASTS ==================== */
.toast-stack {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 390px);
  pointer-events: none;
}
.toast-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(10, 17, 30, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(16, 185, 129, 0.52);
  color: #F8FAFC;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(16, 185, 129, 0.22);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  pointer-events: auto;
}
.toast-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #34D399;
}
.toast-item.warn {
  border-color: rgba(245, 158, 11, 0.62);
  color: #FDE68A;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 158, 11, 0.2);
}
.toast-item.warn .toast-icon { color: #FBBF24; }
.toast-item.error {
  border-color: rgba(239, 68, 68, 0.68);
  color: #FCA5A5;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 20px rgba(239, 68, 68, 0.22);
}
.toast-item.error .toast-icon { color: #F87171; }
.toast-item.toast-exit {
  opacity: 0;
  transform: translateY(-14px) scale(0.95);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.empty-box { text-align: center; padding: 24px 12px; color: var(--muted); font-size: 0.85rem; }

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes soundBar {
  0%, 100% { height: 4px; }
  50% { height: 12px; }
}

@keyframes copyPop {
  0% { transform: scale(0.92); }
  55% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes previewFadePop {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(-18px) scale(0.94); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

/* Native Bottom Sheet on Mobile */
@media (max-width: 600px) {
  .sheet-backdrop {
    align-items: flex-end;
    padding: 0;
  }
  .sheet-handle { display: block; }
  .sheet-card {
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    padding: 12px 16px max(20px, env(safe-area-inset-bottom));
    transform: translateY(100%);
    opacity: 1;
    transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sheet-backdrop.is-open .sheet-card {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Keep 2 cards per row cleanly on narrow mobile viewports */
@media (max-width: 520px) {
  .brand-wordmark { font-size: 1rem; }
  .voice-btn { padding: 5px 10px; font-size: 0.7rem; }
  .bal-main-usd { font-size: 1.46rem; }
  .bal-main-bdt { font-size: 1.38rem; }
  .paypal-grid { gap: 9px; }
  .pp-card { padding: 11px; }
  .pp-name { font-size: 0.82rem; }
  .pp-email { font-size: 0.67rem; }
  .copy-blue-btn, .copy-disabled-btn { padding: 7px 8px; font-size: 0.75rem; }
}
