/* ========================================================================
   Auth UI — login modal, user menu, form elements
   Matches UltraDimension design language: cyan #06B6D4, slate #0F172A
   ======================================================================== */

/* ---------- Overlay ---------- */
.auth-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.auth-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- Modal ---------- */
.auth-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 9999;
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  padding: 40px 32px 32px;
  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.06),
    inset 0 0 30px rgba(255, 255, 255, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.auth-modal.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.auth-modal h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #0F172A;
  letter-spacing: -0.02em;
}
.auth-modal p {
  margin: 0 0 24px;
  font-size: 14px;
  color: #64748B;
  line-height: 1.5;
}
.auth-subtitle {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 8px;
}

/* Close button */
.auth-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 24px; color: #94A3B8;
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  line-height: 1;
}
.auth-close:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.05);
}

/* ---------- Phone Input ---------- */
.auth-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid #E2E8F0;
  border-radius: 14px;
  font-size: 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0F172A;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  transition: all 0.25s;
  box-sizing: border-box;
}
.auth-input::placeholder {
  color: #94A3B8;
}
.auth-input:focus {
  border-color: #06B6D4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1), 0 0 20px rgba(6, 182, 212, 0.08);
  background: rgba(255, 255, 255, 0.95);
}
.auth-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/* ---------- Code Input (6-digit) ---------- */
.auth-code-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-code-input {
  width: 50px;
  height: 60px;
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
  color: #0F172A;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
  transition: all 0.25s;
  box-sizing: border-box;
}
.auth-code-input:focus {
  border-color: #06B6D4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.12);
  background: rgba(255, 255, 255, 0.95);
}
.auth-code-input.filled {
  border-color: #06B6D4;
  background: rgba(6, 182, 212, 0.04);
}
.auth-code-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

/* ---------- Buttons ---------- */
.auth-btn {
  display: block; width: 100%;
  padding: 14px 0;
  background: #0F172A;
  color: #fff;
  font-size: 15px; font-weight: 600;
  border: none; border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative; overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
}
.auth-btn:hover {
  background: #0891b2;
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}
.auth-btn:disabled {
  background: #94A3B8;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.auth-send-code {
  display: block; width: 100%;
  padding: 12px 0;
  background: transparent;
  color: #06B6D4;
  font-size: 14px; font-weight: 500;
  border: 1.5px solid rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-top: 14px;
}
.auth-send-code:hover {
  border-color: #06B6D4;
  background: rgba(6, 182, 212, 0.05);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.1);
}
.auth-send-code:disabled {
  color: #94A3B8;
  border-color: #E2E8F0;
  cursor: not-allowed;
  box-shadow: none;
}
.auth-send-code.counting {
  color: #64748B;
  border-color: #E2E8F0;
  background: #F8FAFC;
}

/* ---------- Error / Success messages ---------- */
.auth-error {
  color: #EF4444;
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 20px;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.25s;
}
.auth-error.visible {
  opacity: 1;
}
.auth-success {
  color: #10B981;
  font-size: 13px;
  margin: 8px 0 0;
  min-height: 20px;
  line-height: 1.4;
}

/* ---------- Spinner ---------- */
.auth-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

.auth-spinner-dark {
  border-color: rgba(6, 182, 212, 0.2);
  border-top-color: #06B6D4;
}

/* ---------- Auth Tabs ---------- */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: #F1F5F9;
  border-radius: 12px;
  padding: 4px;
}
.auth-tab {
  flex: 1;
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.auth-tab:hover { color: #06B6D4; }
.auth-tab.active {
  background: #FFFFFF;
  color: #0F172A;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* ---------- Password Input with Eye Toggle ---------- */
.auth-password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 14px;
}
.auth-password-wrapper .auth-input {
  padding-right: 48px;
  margin-top: 0;
}
.auth-eye-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  cursor: pointer;
  color: #94A3B8;
  border-radius: 10px;
  transition: all 0.2s;
  padding: 0;
}
.auth-eye-btn:hover {
  color: #0F172A;
  background: rgba(0, 0, 0, 0.04);
}
.auth-eye-btn svg { width: 20px; height: 20px; }

/* ---------- Auth Text Links ---------- */
.auth-link-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
}
.auth-link {
  background: none; border: none;
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: color 0.2s;
}
.auth-link:hover { color: #06B6D4; }
.auth-link.primary { color: #06B6D4; }
.auth-link.primary:hover { color: #0891B2; }

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none; border: none;
  color: #64748B;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  margin-bottom: 12px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: color 0.2s;
}
.auth-back-link:hover { color: #06B6D4; }
.auth-back-link svg { width: 14px; height: 14px; }

/* ---------- Updated User Avatar (blue gradient + SVG icon) ---------- */
.user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  user-select: none;
  box-shadow: 0 2px 10px rgba(6, 182, 212, 0.25);
}
.user-avatar:hover {
  background: linear-gradient(135deg, #0891B2, #06B6D4);
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.4);
  transform: scale(1.05);
}


/* ---------- User Menu (dropdown) ---------- */
.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 280px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 16px;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 10000;
}
.user-menu.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu .user-phone {
  font-size: 14px; font-weight: 600;
  color: #0F172A;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F1F5F9;
  letter-spacing: 0.02em;
}

.account-version-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid #CFFAFE;
  border-radius: 14px;
  background: linear-gradient(135deg, #ECFEFF, #F8FAFC);
}
.account-version-label {
  font-size: 11px;
  color: #64748B;
  margin-bottom: 3px;
}
.account-version-value {
  font-size: 14px;
  color: #0F172A;
  font-weight: 800;
}
.account-team-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9999px;
  background: #0F172A;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}
.account-team-link.hidden { display: none; }

.user-menu .balance-display {
  font-size: 13px; color: #64748B;
  margin-bottom: 14px;
  position: relative;
}
.user-menu .balance-display span {
  font-size: 22px; font-weight: 700;
  color: #0F172A;
  margin-left: 6px;
}

.invite-reward-card {
  margin: 0 0 12px;
  padding: 12px 12px;
  border: 1px solid #CFFAFE;
  border-radius: 14px;
  background: linear-gradient(135deg, #ECFEFF, #F8FAFC);
}
.invite-reward-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 5px;
}
.invite-reward-body {
  font-size: 12px;
  line-height: 1.55;
  color: #64748B;
}
.invite-reward-card .reward-amount {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  color: #0891B2;
  margin: 0 2px;
}

.user-menu .logout-btn {
  display: block; width: 100%;
  padding: 8px 0;
  background: transparent;
  color: #94A3B8;
  font-size: 13px; font-weight: 500;
  border: 1px solid #F1F5F9;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.user-menu .logout-btn:hover {
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.04);
}

/* ---------- User Avatar (nav) ---------- */
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06B6D4, #0891b2);
  color: #fff;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
  user-select: none;
}
.user-avatar:hover {
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.35);
  transform: scale(1.05);
}

/* Auth trigger button (login/register in nav) */
.auth-trigger-btn {
  padding: 10px 22px;
  background: transparent;
  color: #0F172A;
  font-size: 13px; font-weight: 600;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.auth-trigger-btn:hover {
  border-color: #06B6D4;
  color: #06B6D4;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.1);
}

/* ---------- User badge (nav bar, logged-in state) ---------- */
.user-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226,232,240,0.8);
  border-radius: 9999px;
  cursor: pointer;
  transition: all .25s;
}
.user-badge:hover {
  border-color: #06B6D4;
  box-shadow: 0 0 20px rgba(6,182,212,0.12);
}
.user-badge-avatar {
  width: 28px; height: 28px; line-height: 28px;
  text-align: center;
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #fff; font-size: 12px; font-weight: 700;
  border-radius: 50%; flex-shrink: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.user-badge-phone {
  font-size: 14px; font-weight: 600; color: #0F172A;
  white-space: nowrap;
}
.user-badge-arrow {
  font-size: 10px; color: #94A3B8; margin-left: -2px;
}

/* ---------- Auth wrapper (relative for menu dropdown) ---------- */
#auth-area {
  position: relative;
}

/* ---------- Toast ---------- */
.auth-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 10001;
  padding: 12px 24px;
  border-radius: 9999px;
  font-size: 14px; font-weight: 500;
  background: #0F172A;
  color: #fff;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.auth-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.auth-toast.error {
  background: #FEF2F2;
  color: #EF4444;
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.15);
}
.auth-toast.success {
  background: #F0FDF4;
  color: #10B981;
  box-shadow: 0 8px 30px rgba(16, 185, 129, 0.15);
}

/* ---------- Recharge Modal ---------- */
.recharge-balance {
  text-align: center;
  color: #475569;
  font-size: 14px;
  margin-bottom: 20px;
  padding: 12px;
  background: #F1F5F9;
  border-radius: 10px;
}
.recharge-balance strong {
  color: #0F172A;
  font-size: 22px;
  font-weight: 700;
}
.recharge-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.recharge-option {
  padding: 10px 8px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  font-size: 15px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.recharge-option:hover {
  border-color: #06B6D4;
  color: #06B6D4;
}
.recharge-option.selected {
  border-color: #06B6D4;
  background: #ECFEFF;
  color: #0891B2;
  box-shadow: 0 0 0 1px #06B6D4;
}
.recharge-custom {
  margin-bottom: 16px;
}
.recharge-custom-row {
  display: flex; align-items: center; gap: 8px;
}
.recharge-custom-input {
  flex: 1;
  box-sizing:border-box; text-align:center; font-size:15px;
  -moz-appearance: textfield;
}
.recharge-custom-input::-webkit-outer-spin-button,
.recharge-custom-input::-webkit-inner-spin-button {
  -webkit-appearance: none; margin: 0;
}
/* Custom amount checkbox */
.recharge-custom-check {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border: 1.5px solid #E2E8F0; border-radius: 12px;
  background: #F8FAFC;
  cursor: pointer; user-select: none;
  transition: all .2s;
  flex-shrink: 0;
}
.recharge-custom-check:hover { border-color: #06B6D4; }
.recharge-custom-check.checked {
  border-color: #06B6D4; background: #ECFEFF;
  box-shadow: 0 0 0 1px #06B6D4;
}
.recharge-custom-check-box {
  width: 18px; height: 18px;
  border: 2px solid #CBD5E1; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s;
  flex-shrink: 0;
}
.recharge-custom-check.checked .recharge-custom-check-box {
  background: #06B6D4; border-color: #06B6D4; color: #fff;
  font-size: 12px; font-weight: 700;
}
.recharge-custom-check-label {
  font-size: 13px; font-weight: 600; color: #64748B;
}
.recharge-custom-check.checked .recharge-custom-check-label {
  color: #0891B2;
}

.recharge-qr {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
}
.recharge-qr p {
  color: #475569;
  font-size: 13px;
  margin-bottom: 12px;
}
.recharge-qr-code {
  width: 180px;
  height: 180px;
  margin: 0 auto 12px;
  background: #F1F5F9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
  font-size: 11px;
}
.recharge-channel-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.recharge-channel-btn {
  flex: 1;
  padding: 8px 6px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.recharge-channel-btn:hover { border-color: #06B6D4; }
.recharge-channel-btn.active {
  border-color: #06B6D4;
  background: #ECFEFF;
  color: #0F172A;
}

.recharge-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
/* Payment success overlay */
.qr-success {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 200px; height: 200px; margin: 0 auto;
}
.qr-success-icon {
  width: 48px; height: 48px; line-height: 48px; text-align: center;
  background: #06B6D4; color: #fff; font-size: 24px; font-weight: 700;
  border-radius: 50%; margin-bottom: 12px;
}
.qr-success-title {
  font-size: 16px; font-weight: 700; color: #0F172A; margin-bottom: 6px;
}
.qr-success-amount {
  font-size: 24px; font-weight: 700; color: #06B6D4; margin-bottom: 4px;
}
.qr-success-balance {
  font-size: 13px; color: #64748B;
}

.recharge-note {
  color: #94A3B8 !important;
  font-size: 11px !important;
}

/* ---------- Recharge button in user menu ---------- */
.recharge-btn {
  width: 100%;
  padding: 9px 0;
  background: linear-gradient(135deg, #06B6D4, #0891B2);
  color: #fff;
  border: none;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-bottom: 6px;
}
.recharge-btn:hover {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  transform: translateY(-1px);
}

/* Redeem code button in user menu */
.redeem-menu-btn {
  width: 100%;
  padding: 8px 0;
  background: transparent;
  color: #64748B;
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .25s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  margin-bottom: 10px;
}
.redeem-menu-btn:hover {
  color: #06B6D4;
  border-color: rgba(6, 182, 212, 0.3);
  background: rgba(6, 182, 212, 0.04);
}

/* ---------- Mobile responsive ---------- */
@media (max-width: 768px) {
  .auth-modal {
    max-width: calc(100vw - 32px);
    border-radius: 20px 20px 0 0;
    top: auto; bottom: 0; left: 0; right: 0;
    transform: translateY(20px) scale(1);
    padding: 32px 24px 40px;
  }
  .auth-modal.visible {
    transform: translateY(0) scale(1);
  }

  .auth-code-group {
    gap: 8px;
  }
  .auth-code-input {
    width: 42px;
    height: 54px;
    font-size: 24px;
    border-radius: 10px;
  }

  .user-menu {
    position: fixed;
    top: auto; bottom: 0; left: 0; right: 0;
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 28px 24px 44px;
    transform: translateY(20px);
  }
  .user-menu.visible {
    transform: translateY(0);
  }

  .auth-trigger-btn {
    padding: 8px 16px;
    font-size: 12px;
  }
}

/* ---------- Balance Pricing Help ---------- */
.balance-pricing-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #E2E8F0; color: #64748B;
  font-size: 10px; font-weight: 700;
  cursor: pointer; border: none;
  transition: all 0.2s;
  vertical-align: middle; flex-shrink: 0;
  margin-left: 6px; padding: 0;
  line-height: 1;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.balance-pricing-help:hover {
  background: #06B6D4; color: #fff;
}
.balance-pricing-popover {
  position: absolute;
  top: calc(100% + 8px); left: 0;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  min-width: 260px; z-index: 10001;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  text-align: left; font-weight: 400;
}
.balance-pricing-popover.visible {
  opacity: 1; pointer-events: auto;
}
.balance-pricing-popover h4 {
  font-size: 13px; font-weight: 700;
  color: #0F172A;
  margin: 0 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid #F1F5F9;
}
.balance-pricing-popover table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 8px;
}
.balance-pricing-popover td {
  font-size: 12px; padding: 3px 0;
  color: #475569;
}
.balance-pricing-popover td + td {
  text-align: right;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 11px;
}
.balance-pricing-popover .fee-row td {
  padding-top: 7px;
  border-top: 1px solid #F1F5F9;
  font-weight: 600; color: #0F172A;
}
.balance-pricing-popover .pricing-note {
  font-size: 11px; color: #64748B;
  padding-top: 6px;
  border-top: 1px solid #F1F5F9;
  line-height: 1.5;
}

/* NOTE: .hidden is provided by Tailwind CDN — do NOT override it.
   Auth JS uses classList.add/remove('hidden') which relies on Tailwind. */
