/* ==========================================================================
   SANSAD SHOWDOWN - MODERN GAMING SUPPORT POPUP & POST-GAME PAYMENT FLOW
   ========================================================================== */

/* Overlay backdrop */
.mosmo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.mosmo-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Card */
.mosmo-modal-card {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: linear-gradient(145deg, #191a22 0%, #0f1015 100%);
  border: 1px solid rgba(255, 140, 0, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 122, 0, 0.18);
  padding: 24px 28px;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-sizing: border-box;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 94vh;
  overflow-y: auto;
}

.mosmo-modal-overlay.active .mosmo-modal-card {
  transform: scale(1);
}

/* Close X Icon */
.mosmo-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: #d1d5db;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.mosmo-close-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  transform: rotate(90deg);
}

/* Header Area */
.mosmo-header {
  margin-bottom: 20px;
  padding-right: 36px;
}

/* Strict single line heading */
.mosmo-title {
  margin: 0 0 6px 0;
  font-family: 'Teko', 'Bebas Neue', Impact, sans-serif;
  font-size: clamp(17px, 3.4vw, 27px);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap !important;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, #ffffff 40%, #ffb347 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mosmo-title-icon {
  -webkit-text-fill-color: initial;
  display: inline-block;
  font-size: 1.1em;
}

.mosmo-subtitle {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.4;
}

/* 2-Column Grid */
.mosmo-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

/* Left Section: Amounts & Actions */
.mosmo-left {
  display: flex;
  flex-col;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.mosmo-amounts-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  font-weight: 600;
  margin-bottom: 8px;
}

.mosmo-amounts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mosmo-amount-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
}

.mosmo-amount-card:hover {
  background: rgba(255, 122, 0, 0.08);
  border-color: rgba(255, 122, 0, 0.4);
  transform: translateY(-1px);
}

.mosmo-amount-card.selected {
  background: linear-gradient(90deg, rgba(255, 122, 0, 0.18) 0%, rgba(255, 153, 0, 0.08) 100%);
  border-color: #ff7a00;
  box-shadow: 0 0 18px rgba(255, 122, 0, 0.35);
}

.mosmo-amount-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mosmo-amount-val {
  font-size: 20px;
  font-weight: 800;
  color: #ffb833;
  letter-spacing: 0.5px;
}

.mosmo-amount-label {
  font-size: 13px;
  color: #e2e8f0;
  font-weight: 500;
}

.mosmo-badge {
  font-size: 10px;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  background: #ff7a00;
  color: #000;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Action Buttons Stack */
.mosmo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.mosmo-btn-pay {
  height: 48px;
  background: linear-gradient(90deg, #ff7a00 0%, #ff5500 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(255, 122, 0, 0.45);
  transition: all 0.2s ease;
}

.mosmo-btn-pay:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 122, 0, 0.55);
}

.mosmo-btn-pay:active {
  transform: translateY(1px);
}

.mosmo-btn-green {
  height: 42px;
  background: linear-gradient(90deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.mosmo-btn-green:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.mosmo-status-msg {
  font-size: 12px;
  text-align: center;
  color: #38bdf8;
  min-height: 16px;
}

/* Right Section: QR Holder */
.mosmo-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
}

.mosmo-qr-wrap {
  position: relative;
  width: 176px;
  height: 176px;
  background: #ffffff;
  border-radius: 12px;
  padding: 8px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  margin-bottom: 12px;
}

.mosmo-qr-wrap canvas,
.mosmo-qr-wrap img {
  width: 160px !important;
  height: 160px !important;
  display: block;
}

.mosmo-qr-loader {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #111;
  font-weight: 600;
  border-radius: 12px;
}

.mosmo-btn-download {
  width: 100%;
  max-width: 176px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.mosmo-btn-download:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.mosmo-upi-icons {
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.3px;
  line-height: 1.3;
}

/* Success State Screen */
.mosmo-success-view {
  text-align: center;
  padding: 30px 10px;
}

.mosmo-success-icon {
  font-size: 56px;
  margin-bottom: 14px;
  animation: bounce 0.8s ease infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.mosmo-success-title {
  font-size: 24px;
  font-weight: 800;
  color: #10b981;
  margin-bottom: 8px;
}

.mosmo-success-sub {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 22px;
}

/* ==========================================================================
   POST-GAME ₹5 SUPPORT INTERSTITIAL
   ========================================================================== */
.mosmo-postgame-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: rgba(5, 5, 8, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mosmo-postgame-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mosmo-postgame-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(145deg, #1b1c24 0%, #111218 100%);
  border: 1.5px solid rgba(255, 122, 0, 0.45);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 122, 0, 0.25);
  text-align: center;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mosmo-postgame-overlay.active .mosmo-postgame-card {
  transform: translateY(0) scale(1);
}

.mosmo-postgame-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.mosmo-postgame-desc {
  margin: 0 0 20px 0;
  font-size: 13.5px;
  color: #94a3b8;
  line-height: 1.45;
}

.mosmo-postgame-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  background: rgba(255, 122, 0, 0.15);
  border: 1px solid #ff7a00;
  border-radius: 30px;
  font-size: 20px;
  font-weight: 800;
  color: #ff9d24;
  margin-bottom: 20px;
}

.mosmo-postgame-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mosmo-postgame-btn-pay {
  height: 46px;
  background: linear-gradient(90deg, #ff7a00 0%, #ff5500 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 122, 0, 0.4);
  transition: all 0.2s ease;
}

.mosmo-postgame-btn-pay:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.mosmo-postgame-btn-cancel {
  height: 38px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mosmo-postgame-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 660px) {
  .mosmo-modal-card {
    padding: 20px 16px;
    max-height: 92vh;
  }

  .mosmo-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mosmo-right {
    padding: 14px 10px;
    order: -1; /* Display QR above or below cleanly */
    background: rgba(0, 0, 0, 0.25);
  }

  .mosmo-qr-wrap {
    width: 148px;
    height: 148px;
    margin-bottom: 8px;
  }

  .mosmo-qr-wrap canvas,
  .mosmo-qr-wrap img {
    width: 132px !important;
    height: 132px !important;
  }

  .mosmo-btn-download {
    max-width: 148px;
    height: 32px;
    font-size: 11.5px;
  }

  .mosmo-title {
    font-size: clamp(15px, 4.3vw, 21px);
  }

  .mosmo-amount-val {
    font-size: 18px;
  }

  .mosmo-amount-label {
    font-size: 12.5px;
  }
}


/* Adjust existing support button to fit text cleanly */
#support-btn {
  max-width: calc(100vw - 28px) !important;
  white-space: nowrap !important;
}

#support-btn span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
