/* One-Time Card visual — shared component (home page + /one-time-cards). */
.otc-card-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  perspective: 1400px;
}
.otc-card-anim {
  width: 100%;
  max-width: 430px;
  transform-style: preserve-3d;
  will-change: transform;
  touch-action: manipulation;
}
.otc-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 1.58 / 1;
  border-radius: 22px;
  padding: 26px 28px;
  color: rgba(255, 255, 255, 0.93);
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.58),
    0 22px 46px rgba(16, 50, 24, 0.22);
  animation: otc-card-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes otc-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.otc-card-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}
/* Green gradient + gold hairline, matching the app's live one-time card */
.otc-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 76% 22%, rgba(117, 240, 111, 0.32), transparent 42%),
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #10120f 0%, #1b2f21 54%, #040604 100%);
}
.otc-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border: 1px solid rgba(224, 210, 149, 0.16);
  border-radius: inherit;
}
.otc-card-grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.045) 46%, transparent 62%),
    repeating-radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 4px);
  mix-blend-mode: screen;
  opacity: 0.28;
  pointer-events: none;
}
.otc-card-fields {
  position: absolute;
  left: 28px;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 13px;
}
.otc-field-label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.otc-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.otc-field-value {
  color: rgba(255, 255, 255, 0.95);
  font-variant-numeric: tabular-nums;
  font-weight: 720;
  letter-spacing: 0.01em;
  transition: opacity 0.22s ease;
}
.otc-field-value.otc-fade { opacity: 0; }
.otc-field--number .otc-field-value {
  font-size: clamp(19px, 2vw, 23px);
  letter-spacing: 0.06em;
}
.otc-field--compact .otc-field-value {
  font-size: 17px;
}
.otc-icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(224, 210, 149, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(223, 205, 126, 0.82);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}
.otc-icon-btn:hover {
  color: rgba(245, 235, 183, 0.98);
  background: rgba(255, 255, 255, 0.08);
}
.otc-icon-btn.is-copied {
  color: #9df59d;
  border-color: rgba(117, 240, 111, 0.4);
}
.otc-icon-btn svg { width: 16px; height: 16px; }
/* Mastercard mark */
.otc-card-net {
  position: absolute;
  right: 26px;
  bottom: 22px;
  width: 58px;
  height: 37px;
}
.otc-card-net span {
  position: absolute;
  top: 50%;
  width: 63%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 22px rgba(255, 189, 86, 0.16);
}
.otc-card-net span:first-child { left: 0; background: rgba(235, 37, 42, 0.9); }
.otc-card-net span:last-child { right: 0; background: rgba(247, 158, 27, 0.9); mix-blend-mode: screen; }

/* Keep the card number on one line on narrow phones */
@media (max-width: 480px) {
  .otc-card-fields { left: 22px; right: 22px; gap: 11px; }
  .otc-field--number .otc-field-value { font-size: 16px; letter-spacing: 0; }
  .otc-field--compact .otc-field-value { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .otc-card, .otc-card::after { animation: none; }
}
