.charts {
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    left: 0;
    user-select: none;
    width: 100%;
}
.charts {
    height: 100%;
    position: absolute;
    top: 0;
}

.layout-container {
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    height: 100%;
}
.layout-container {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

.layout-container .chart-item {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
    height: 100%;
    position: relative;
}

.charts.single .chart {
    height: 100%;
    width: 100%;
}
.charts .chart {
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    cursor: default;
    display: block;
    position: absolute;
    user-select: none;
}

.charts .chart .chart-container {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.drop-down-modal-wrap {
    background: transparent;
    bottom: 0;
    content: "";
    cursor: default;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 11;
}

.chart,
.chart-container {
    width: 100%;
    height: 100%;
}

.input-control__hint p {
    margin-top: 0;
}

.overlay {
    opacity: 0.3;
}

/* Sleek Chart blink effect when toggling between Live & Demo */
@keyframes chartBlinkEffect {
  0% {
    opacity: 1;
    filter: brightness(1) blur(0px);
  }
  35% {
    opacity: 0.25;
    filter: brightness(1.4) blur(1.5px);
  }
  100% {
    opacity: 1;
    filter: brightness(1) blur(0px);
  }
}

.chart-blink-active {
  animation: chartBlinkEffect 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

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

/* ============================================================
   WALLET PAGE REDESIGN STYLES — Gain EX Theme Compatible
   ============================================================ */

/* ── Available Balances Card Left-Alignment and Layout ── */
.wallet-balance-card {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 24px 28px !important;
  min-height: 110px !important;
}

.wallet-balance-banner-left {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.wallet-balance-sub {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
}

.wallet-balance-divider {
  width: 1px !important;
  height: 14px !important;
  background-color: var(--border-color) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.wallet-balance-icon-wrap {
  position: absolute !important;
  right: 28px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 60px !important;
  height: 60px !important;
  background-color: var(--primary-light) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--primary) !important;
  flex-shrink: 0 !important;
}

/* ── Form Steps and Vertical Spacing ── */
.wallet-form-layout {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wallet-step-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.wallet-step-label {
  font-weight: 700 !important;
  font-size: 14px !important;
  color: var(--text-primary) !important;
  margin-bottom: 2px !important;
  display: block !important;
}

/* ── Mode Selection Buttons (Dark/Light Responsive) ── */
.wallet-mode-row {
  display: flex !important;
  gap: 14px !important;
  width: 100% !important;
}

.wallet-mode-btn {
  flex: 1 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 12px 18px !important;
  border-radius: var(--radius-sm) !important;
  background-color: rgba(255, 255, 255, 0.03) !important;
  border: 1.5px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: var(--transition) !important;
  font-family: var(--font-family) !important;
  outline: none !important;
}

/* Dark active mode */
.wallet-mode-btn.wallet-mode-btn--active {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  background-color: var(--primary-light) !important;
}

/* Light theme button background overrides */
body.light-theme .wallet-mode-btn {
  background-color: rgba(0, 0, 0, 0.02) !important;
  border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

body.light-theme .wallet-mode-btn.wallet-mode-btn--active {
  background-color: rgba(26, 183, 109, 0.06) !important;
  border-color: var(--primary) !important;
  color: var(--primary) !important;
}

.wallet-mode-btn:hover:not(.wallet-mode-btn--active) {
  border-color: rgba(255, 255, 255, 0.22) !important;
  color: var(--text-primary) !important;
}

body.light-theme .wallet-mode-btn:hover:not(.wallet-mode-btn--active) {
  border-color: rgba(0, 0, 0, 0.18) !important;
  color: #0f172a !important;
}

/* Radio buttons nested inside mode buttons */
.wallet-mode-radio {
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  border: 2px solid var(--text-muted) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  transition: var(--transition) !important;
}

.wallet-mode-radio--active {
  border-color: var(--primary) !important;
}

body.light-theme .wallet-mode-radio {
  border-color: #cbd5e1 !important;
}

body.light-theme .wallet-mode-radio--active {
  border-color: var(--primary) !important;
}

.wallet-mode-radio-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background-color: transparent !important;
  transition: background-color 0.2s !important;
}

.wallet-mode-radio--active .wallet-mode-radio-dot {
  background-color: var(--primary) !important;
}

/* ── Amount Input Suffix ── */
.wallet-amount-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

.wallet-amount-input {
  width: 100% !important;
  padding-right: 56px !important;
}

.wallet-amount-suffix {
  position: absolute !important;
  right: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--text-secondary) !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* ── Info Hint Box ── */
.wallet-info-hint {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  background-color: var(--primary-light) !important;
  border: 1px solid rgba(26, 183, 109, 0.18) !important;
  border-radius: var(--radius-sm) !important;
  padding: 13px 15px !important;
  font-size: 13px !important;
  color: var(--text-secondary) !important;
  line-height: 1.5 !important;
}

body.light-theme .wallet-info-hint {
  background-color: rgba(26, 183, 109, 0.05) !important;
  border-color: rgba(26, 183, 109, 0.15) !important;
  color: #334155 !important;
}

.wallet-info-hint svg {
  flex-shrink: 0 !important;
  margin-top: 1px !important;
  color: var(--primary) !important;
}

/* Hide broken QR Code box on initial invoice render */
#invoice-qr-code[src=""] {
  display: none !important;
}

/* ── Cancel Button Overrides ── */
.wallet-cancel-btn {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: var(--transition) !important;
}

.wallet-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body.light-theme .wallet-cancel-btn {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-theme .wallet-cancel-btn:hover {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

/* ── Centered and Constrained Profile Tabs on Desktop ── */
@media (min-width: 768px) {
  .profile-main-tabs {
    justify-content: center !important;
  }
  
  .profile-tab-pill {
    flex: none !important;
    width: auto !important;
    min-width: 140px !important;
    max-width: 180px !important;
  }
}

/* ── Google Sign-in SDK Centering overrides ── */
#google-signin-btn-login iframe,
#google-signin-btn-signup iframe {
  margin: 0 auto !important;
  display: block !important;
}

/* ── Prevent Mobile Double-Tap Zoom ── */
html, body {
  touch-action: pan-x pan-y !important;
}