/* Memory Clone final design system layer. Loaded after legacy CSS so shared UI stays consistent. */
:root {
  --mc-blue-1: #2458ff;
  --mc-blue-2: #23a8ff;
  --mc-warm-1: #ff9d00;
  --mc-warm-2: #ffc15b;
  --mc-mint: #8ef1dd;
  --mc-ink: #070b12;
  --mc-panel: rgba(18, 20, 29, .82);
  --mc-panel-strong: rgba(22, 24, 35, .94);
  --mc-border: rgba(255, 255, 255, .12);
  --mc-border-warm: rgba(255, 193, 91, .28);
  --mc-text: #fffaf0;
  --mc-muted: rgba(255, 250, 240, .68);
  --mc-primary-grad: linear-gradient(135deg, var(--mc-blue-1) 0%, var(--mc-blue-2) 100%);
  --mc-buy-warm-grad: linear-gradient(135deg, var(--mc-warm-1) 0%, var(--mc-warm-2) 47%, var(--mc-mint) 100%);
  --mc-warm-soft-grad: linear-gradient(135deg, rgba(255, 157, 0, .20), rgba(255, 193, 91, .16) 48%, rgba(142, 241, 221, .13));
}

html body .btn,
html body .mc-btn,
html body button,
html body .mc-purchase-cta,
html body .mc-profile-cta,
html body .mc-download-primary,
html body .mc-download-secondary {
  -webkit-text-stroke: 0 transparent !important;
  text-shadow: none !important;
}

html body .btn-blue,
html body .mc-download-primary,
html body .mc-purchase-cta-credits,
html body .mc-profile-cta-blue {
  background: var(--mc-primary-grad) !important;
  color: #fff !important;
  border-color: rgba(91, 177, 255, .35) !important;
  box-shadow: 0 16px 38px -24px rgba(36, 88, 255, .95) !important;
}

html body .btn-warm,
html body .btn-getstarted,
html body a.mc-download-secondary,
html body .mc-download-secondary,
html body .mc-purchase-cta-clone,
html body .mc-profile-cta-primary,
html body .mc-billing-mode button.active,
html body .mc-discount-badge,
html body .mc-download-step-grid article span,
html body .info-dot {
  background: var(--mc-buy-warm-grad) !important;
  color: #080d12 !important;
  border-color: rgba(255, 193, 91, .36) !important;
  box-shadow: 0 18px 40px -24px rgba(255, 157, 0, .90) !important;
}

html body .btn-profile,
html body .btn-cyan {
  background: var(--mc-primary-grad) !important;
  color: #fff !important;
}

html body .btn-ghost,
html body .mc-profile-cta-secondary,
html body .mc-auth-tabs,
html body .mc-billing-mode {
  background: rgba(255, 255, 255, .045) !important;
  border-color: var(--mc-border) !important;
  color: var(--mc-text) !important;
}

html body .mc-purchase-cta,
html body button.btn.mc-purchase-cta,
html body a.btn.mc-purchase-cta,
html body .mc-profile-cta,
html body .mc-download-primary,
html body .mc-download-secondary {
  min-height: 49px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-family: Sora, Manrope, Arial, sans-serif !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  transform: translateY(0) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, border-color .18s ease !important;
}

html body .mc-purchase-cta:hover,
html body .mc-profile-cta:hover,
html body .mc-download-primary:hover,
html body .mc-download-secondary:hover,
html body .mc-purchase-cta:focus-visible,
html body .mc-profile-cta:focus-visible,
html body .mc-download-primary:focus-visible,
html body .mc-download-secondary:focus-visible {
  transform: translateY(-2px) !important;
  filter: saturate(1.08) brightness(1.05) !important;
}

html body .mc-pricing-page .plan-card .mc-purchase-cta,
html body .mc-pricing-page .plan-card button.mc-purchase-cta,
html body .mc-pricing-page .plan-card a.mc-purchase-cta {
  width: 100% !important;
  font-size: .95rem !important;
  font-weight: 650 !important;
  padding: 14px 18px !important;
}

html body .mc-pricing-page .plan-card {
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 193, 91, .10), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .018)),
    var(--mc-panel) !important;
  border-color: rgba(255, 255, 255, .12) !important;
}

html body .mc-pricing-page .plan-card.featured {
  border-color: var(--mc-border-warm) !important;
  box-shadow: 0 24px 70px -48px rgba(255, 157, 0, .75) !important;
}

html body .plan-card > span,
html body .mc-plan-label {
  background: rgba(255, 157, 0, .14) !important;
  color: #ffd79d !important;
  border: 1px solid rgba(255, 193, 91, .24) !important;
  box-shadow: none !important;
}

html body .mc-discount-badge {
  color: #071016 !important;
  font-weight: 800 !important;
}

html body .mc-billing-mode button {
  color: rgba(255, 250, 240, .72) !important;
  font-weight: 700 !important;
}

html body .mc-billing-mode button.active {
  font-weight: 750 !important;
}

html body .mc-download-step-grid article span,
html body .info-dot {
  color: #071016 !important;
}

html body .mc-profile-cta {
  padding: 13px 18px !important;
}

html body .mc-profile-cta-primary,
html body .mc-profile-sidebar .mc-profile-cta-primary,
html body .mc-dashboard-pane .mc-profile-cta-primary {
  color: #080d12 !important;
}

html body .mc-profile-cta-secondary {
  color: var(--mc-text) !important;
}

.mc-auth-modal[hidden],
.mc-auth-modal-form[hidden] {
  display: none !important;
}

.mc-auth-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
}

.mc-auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .70);
  backdrop-filter: blur(14px);
}

.mc-auth-dialog {
  position: relative;
  width: min(460px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 24px;
  background:
    radial-gradient(circle at 20% 0%, rgba(36, 88, 255, .16), transparent 36%),
    radial-gradient(circle at 100% 8%, rgba(255, 157, 0, .13), transparent 30%),
    var(--mc-panel-strong);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .56);
  padding: 30px;
  color: var(--mc-text);
}

.mc-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: var(--mc-text);
  cursor: pointer;
}

.mc-auth-dialog h2 {
  margin: 5px 0 8px;
  font-family: Sora, Manrope, Arial, sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  letter-spacing: 0;
}

.mc-auth-subtitle,
.mc-auth-footnote {
  color: var(--mc-muted);
  line-height: 1.55;
}

.mc-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--mc-border);
  border-radius: 999px;
  margin: 22px 0;
}

.mc-auth-tabs button {
  border: 0;
  border-radius: 999px;
  padding: 11px 12px;
  background: transparent;
  color: var(--mc-muted);
  font-weight: 750;
  cursor: pointer;
}

.mc-auth-tabs button.active {
  background: var(--mc-buy-warm-grad);
  color: #080d12;
}

.mc-auth-modal-form {
  display: none;
  gap: 13px;
}

.mc-auth-modal-form.active {
  display: grid;
}

.mc-auth-modal-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 250, 240, .86);
  font-weight: 650;
  font-size: .92rem;
}

.mc-auth-modal-form .mc-input {
  width: 100%;
  /* iOS only zooms into form controls rendered under 16px. */
  font-size: max(16px, 1rem);
}

.mc-auth-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  color: var(--mc-muted) !important;
  font-size: .86rem !important;
  line-height: 1.45;
}

.mc-auth-check input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

.mc-auth-check span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.mc-auth-check a {
  color: var(--mc-mint);
  text-decoration: underline;
}

.mc-auth-submit {
  width: 100%;
  min-height: 50px;
  border-radius: 999px !important;
  background: var(--mc-primary-grad) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.mc-auth-submit:disabled {
  opacity: .68;
  cursor: wait;
}

.mc-auth-modal-message {
  border-radius: 14px;
  border: 1px solid rgba(255, 128, 128, .28);
  background: rgba(255, 99, 99, .12);
  color: #ffd9d9;
  padding: 11px 13px;
  margin-bottom: 14px;
}

.mc-auth-modal-message[data-kind="ok"] {
  border-color: rgba(142, 241, 221, .28);
  background: rgba(142, 241, 221, .11);
  color: #cffff6;
}

body.mc-auth-modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .mc-auth-modal {
    padding: 12px;
  }

  .mc-auth-dialog {
    padding: 24px 18px;
    border-radius: 20px;
  }
}
