/* ==========================================================================
   TITANX OBS OVERLAY SUITE - PAYMENT & SUPPORT WIDGET (STREAM-READY REDESIGN)
   ========================================================================== */

.payment-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
}

.payment-stage-scaler {
  position: absolute;
  inset: 0;
  transform-origin: center center;
}

.payment-stage {
  position: absolute;
  inset: 0;
}

.payment-position-wrapper {
  position: absolute;
  display: flex;
}

/* 9-Point Stage Positioning */
.payment-position-wrapper.pos-top-left { top: 40px; left: 40px; justify-content: flex-start; align-items: flex-start; }
.payment-position-wrapper.pos-top-center { top: 40px; left: 50%; transform: translateX(-50%); justify-content: center; align-items: flex-start; }
.payment-position-wrapper.pos-top-right { top: 40px; right: 40px; justify-content: flex-end; align-items: flex-start; }
.payment-position-wrapper.pos-middle-left { top: 50%; left: 40px; transform: translateY(-50%); justify-content: flex-start; align-items: center; }
.payment-position-wrapper.pos-middle-center { top: 50%; left: 50%; transform: translate(-50%, -50%); justify-content: center; align-items: center; }
.payment-position-wrapper.pos-middle-right { top: 50%; right: 40px; transform: translateY(-50%); justify-content: flex-end; align-items: center; }
.payment-position-wrapper.pos-bottom-left { bottom: 40px; left: 40px; justify-content: flex-start; align-items: flex-end; }
.payment-position-wrapper.pos-bottom-center { bottom: 40px; left: 50%; transform: translateX(-50%); justify-content: center; align-items: flex-end; }
.payment-position-wrapper.pos-bottom-right { bottom: 40px; right: 40px; justify-content: flex-end; align-items: flex-end; }

.payment-motion-wrapper {
  display: flex;
}

.payment-content-wrapper {
  display: flex;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

/* ==========================================================================
   PRIMARY SHARED FLOATING CARD
   ========================================================================== */

.payment-card-outer {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  padding: 22px 28px;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: all 0.3s ease;
}

/* Layout Proportions */
.payment-card-outer.layout-together-horizontal {
  width: 680px;
  max-width: 92vw;
}

.payment-card-outer.layout-together-vertical {
  width: 390px;
  max-width: 90vw;
}

.payment-card-outer.layout-single,
.payment-card-outer.layout-alternate {
  width: 390px;
  max-width: 90vw;
}

/* ==========================================================================
   SHARED HEADER (NO DUPLICATION)
   ========================================================================== */

.payment-main-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 18px;
}

.payment-main-heading {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.payment-main-subtext {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1.4;
  opacity: 0.8;
}

/* ==========================================================================
   METHODS CONTAINER & ITEMS
   ========================================================================== */

.payment-methods-wrapper {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.layout-together-horizontal .payment-methods-wrapper {
  flex-direction: row;
  gap: 22px;
  align-items: stretch;
  justify-content: center;
}

.layout-together-vertical .payment-methods-wrapper {
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.layout-single .payment-methods-wrapper,
.layout-alternate .payment-methods-wrapper {
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.payment-method-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  box-sizing: border-box;
}

/* Dividers */
.payment-methods-divider-v {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12) 15%, rgba(255, 255, 255, 0.12) 85%, transparent);
  margin: 0 4px;
}

.payment-methods-divider-h {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 15%, rgba(255, 255, 255, 0.12) 85%, transparent);
  margin: 6px 0;
}

/* ==========================================================================
   METHOD IDENTITY (LOGO + NAME)
   ========================================================================== */

.payment-method-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  height: 30px;
}

.payment-brand-logo {
  height: 26px;
  max-width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.payment-brand-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ==========================================================================
   QR CODE CONTAINER & PLACEHOLDER
   ========================================================================== */

.payment-qr-frame {
  width: 154px;
  height: 154px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.payment-qr-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 4px;
}

/* Neutral Placeholder (Logo is never fake QR!) */
.payment-qr-frame.is-placeholder {
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.payment-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.55);
}

.qr-placeholder-icon {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.75;
}

.qr-placeholder-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==========================================================================
   PAYMENT ID / USERNAME PILL
   ========================================================================== */

.payment-id-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  padding: 6px 14px;
  font-family: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  max-width: 100%;
  box-sizing: border-box;
}

.payment-id-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}

/* ==========================================================================
   THEME 1: MINIMAL DARK (DEFAULT)
   ========================================================================== */

.payment-card-outer.theme-minimal-dark {
  background: rgba(13, 17, 23, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #f8fafc;
}

.theme-minimal-dark .payment-main-heading {
  color: #ffffff;
}

.theme-minimal-dark .payment-main-subtext {
  color: #94a3b8;
}

.theme-minimal-dark .payment-id-pill {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #38bdf8;
}

/* ==========================================================================
   THEME 2: MINIMAL LIGHT
   ========================================================================== */

.payment-card-outer.theme-minimal-light {
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #0f172a;
}

.theme-minimal-light .payment-main-heading {
  color: #0f172a;
}

.theme-minimal-light .payment-main-subtext {
  color: #475569;
}

.theme-minimal-light .payment-methods-divider-v {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.1) 15%, rgba(15, 23, 42, 0.1) 85%, transparent);
}

.theme-minimal-light .payment-methods-divider-h {
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.1) 15%, rgba(15, 23, 42, 0.1) 85%, transparent);
}

.theme-minimal-light .payment-qr-frame {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.theme-minimal-light .payment-qr-frame.is-placeholder {
  background: rgba(15, 23, 42, 0.03);
  border: 1.5px dashed rgba(15, 23, 42, 0.2);
}

.theme-minimal-light .payment-qr-placeholder {
  color: #64748b;
}

.theme-minimal-light .payment-id-pill {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: #0284c7;
}

/* ==========================================================================
   THEME 3: GAMING NEON
   ========================================================================== */

.payment-card-outer.theme-gaming-neon {
  background: rgba(10, 10, 18, 0.92);
  border: 1.5px solid #00f0ff;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.22), 0 20px 40px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #ffffff;
}

.theme-gaming-neon .payment-main-heading {
  color: #00f0ff;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.theme-gaming-neon .payment-main-subtext {
  color: #a5f3fc;
}

.theme-gaming-neon .payment-brand-name {
  color: #00f0ff;
}

.theme-gaming-neon .payment-methods-divider-v {
  background: linear-gradient(180deg, transparent, rgba(0, 240, 255, 0.25) 15%, rgba(0, 240, 255, 0.25) 85%, transparent);
}

.theme-gaming-neon .payment-methods-divider-h {
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.25) 15%, rgba(0, 240, 255, 0.25) 85%, transparent);
}

.theme-gaming-neon .payment-qr-frame {
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.2), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.theme-gaming-neon .payment-qr-frame.is-placeholder {
  background: rgba(0, 240, 255, 0.04);
  border: 1.5px dashed rgba(0, 240, 255, 0.35);
}

.theme-gaming-neon .payment-qr-placeholder {
  color: #00f0ff;
}

.theme-gaming-neon .payment-id-pill {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.4);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* ==========================================================================
   THEME 4: GLASS PILL
   ========================================================================== */

.payment-card-outer.theme-glass {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  color: #ffffff;
}

.theme-glass .payment-main-heading {
  color: #ffffff;
}

.theme-glass .payment-main-subtext {
  color: rgba(255, 255, 255, 0.75);
}

.theme-glass .payment-id-pill {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* ==========================================================================
   THEME 5: GOLDEN LUXE
   ========================================================================== */

.payment-card-outer.theme-gold {
  background: linear-gradient(145deg, rgba(28, 22, 10, 0.95), rgba(15, 12, 5, 0.95));
  border: 1.5px solid #eab308;
  box-shadow: 0 0 22px rgba(234, 179, 8, 0.22), 0 20px 40px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #ffffff;
}

.theme-gold .payment-main-heading {
  background: linear-gradient(135deg, #fef08a, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme-gold .payment-main-subtext {
  color: #ca8a04;
}

.theme-gold .payment-brand-name {
  color: #fef08a;
}

.theme-gold .payment-methods-divider-v {
  background: linear-gradient(180deg, transparent, rgba(234, 179, 8, 0.25) 15%, rgba(234, 179, 8, 0.25) 85%, transparent);
}

.theme-gold .payment-methods-divider-h {
  background: linear-gradient(90deg, transparent, rgba(234, 179, 8, 0.25) 15%, rgba(234, 179, 8, 0.25) 85%, transparent);
}

.theme-gold .payment-qr-frame {
  box-shadow: 0 0 16px rgba(234, 179, 8, 0.18), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.theme-gold .payment-qr-frame.is-placeholder {
  background: rgba(234, 179, 8, 0.04);
  border: 1.5px dashed rgba(234, 179, 8, 0.35);
}

.theme-gold .payment-qr-placeholder {
  color: #fef08a;
}

.theme-gold .payment-id-pill {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.35);
  color: #fef08a;
}

/* ==========================================================================
   THEME 6: DEVOTIONAL (WARM SAFFRON & GOLD)
   ========================================================================== */

.payment-card-outer.theme-devotional {
  background: linear-gradient(145deg, rgba(30, 15, 8, 0.94), rgba(18, 9, 4, 0.94));
  border: 1.5px solid rgba(249, 115, 22, 0.5);
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.18), 0 20px 40px rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #ffffff;
}

.theme-devotional .payment-main-heading {
  color: #fdba74;
  text-shadow: 0 0 8px rgba(249, 115, 22, 0.3);
}

.theme-devotional .payment-main-subtext {
  color: #fb923c;
}

.theme-devotional .payment-brand-name {
  color: #fdba74;
}

.theme-devotional .payment-methods-divider-v {
  background: linear-gradient(180deg, transparent, rgba(249, 115, 22, 0.25) 15%, rgba(249, 115, 22, 0.25) 85%, transparent);
}

.theme-devotional .payment-methods-divider-h {
  background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.25) 15%, rgba(249, 115, 22, 0.25) 85%, transparent);
}

.theme-devotional .payment-qr-frame {
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.18), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.theme-devotional .payment-qr-frame.is-placeholder {
  background: rgba(249, 115, 22, 0.04);
  border: 1.5px dashed rgba(249, 115, 22, 0.35);
}

.theme-devotional .payment-qr-placeholder {
  color: #fdba74;
}

.theme-devotional .payment-id-pill {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fed7aa;
}
