/**
 * Interim live Stripe overlay compatibility sheet.
 * Geometry and top-up feedback are carried from the former desktop flow;
 * colour tokens come verbatim from shell/legacy-tokens.css.
 */

.cc-stripe-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 14000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.cc-stripe-modal {
  width: min(500px, 94vw);
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--surface-elevated);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  zoom: 0.75;
}

.cc-stripe-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cc-stripe-modal-header h3 {
  margin: 0;
  font-family: Rajdhani, sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cc-stripe-desc {
  margin-bottom: 8px;
  color: var(--muted-text);
  font-size: 12px;
  line-height: 1.4;
}

.cc-stripe-payment-element {
  margin: 10px 0 6px;
}

.cc-stripe-error {
  display: none;
  margin-top: 8px;
  color: var(--danger);
  font-size: 12px;
}

.cc-stripe-status {
  margin-top: 8px;
  color: var(--muted-text);
  font-size: 12px;
}

.cc-stripe-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.cc-stripe-modal .btn {
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--muted);
  color: var(--text);
  cursor: pointer;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
}

.cc-stripe-modal .btn-muted {
  background: var(--card-border);
  color: var(--text);
}

.cc-stripe-modal .btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #000;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.cc-stripe-modal .btn-accent:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(255, 215, 0, 0.3);
}

.cc-stripe-modal .btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cc-topup-shockwave {
  position: fixed;
  z-index: 15000;
  border: 4px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent), inset 0 0 20px var(--accent);
  opacity: 1;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ccTopupShockwaveExpand 0.6s ease-out forwards;
}

@keyframes ccTopupShockwaveExpand {
  0% { border-width: 10px; opacity: 1; transform: translate(-50%, -50%) scale(0); }
  100% { border-width: 0; opacity: 0; transform: translate(-50%, -50%) scale(3); }
}

.cc-topup-sparkle {
  position: fixed;
  z-index: 14999;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  pointer-events: none;
  animation: ccTopupSparkleFade 0.5s linear forwards;
}

@keyframes ccTopupSparkleFade {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0); }
}

.cc-topup-flying-coin,
.cc-topup-flying-tag {
  position: fixed;
  z-index: 15001;
  font-size: 24px;
  pointer-events: none;
}

.cc-topup-flying-coin {
  color: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.cc-topup-flying-tag {
  color: var(--cyan, #39aef2);
  filter: drop-shadow(0 0 10px rgba(var(--cyan-rgb, 57, 174, 242), 0.55));
}

.cc-topup-shockwave--tags {
  border-color: var(--cyan, #39aef2);
  box-shadow:
    0 0 20px rgba(var(--cyan-rgb, 57, 174, 242), 0.7),
    inset 0 0 20px rgba(var(--cyan-rgb, 57, 174, 242), 0.5);
}

.cc-balance-bump {
  display: inline-block;
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
  transform: scale(1.1);
  transition: all 0.05s;
}

.resource--coins.cc-receiving,
.currency-badge.cc-receiving {
  border-color: rgba(255, 215, 0, 0.7);
  box-shadow: 0 0 30px var(--accent-glow);
  transform: scale(1.05);
}

.resource--tags.cc-receiving {
  border-color: rgba(var(--cyan-rgb, 57, 174, 242), 0.7);
  box-shadow: 0 0 30px rgba(var(--cyan-rgb, 57, 174, 242), 0.45);
  transform: scale(1.05);
}
