/* Recovery and utility pages use the same surfaces as the public website. */
.df-header-auth { padding-top: 0; }
.df-header-auth .df-header-inner { min-height: var(--df-header-height); height: var(--df-header-height); }
.df-auth-text-button { border: 0; padding: 0; min-height: 44px; background: none; color: var(--df-accent-2); cursor: pointer; text-align: start; }
.df-auth-text-button:hover { text-decoration: underline; }
.df-auth-text-button:disabled { color: var(--df-muted); cursor: not-allowed; }
body.df-404-page .df-page-main {
  min-height: 0;
  flex: 1 0 auto;
  display: grid;
  align-content: center;
  padding-block: clamp(2rem, 5vh, 4rem);
}
.df-404-shell {
  max-width: 1080px;
  padding: clamp(1.25rem, 3vw, 3rem);
  border: 1px solid var(--df-line);
  border-radius: 28px;
  background: linear-gradient(135deg, #142b36, #101f2c 65%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.15);
}
.df-404-hero {
  display: grid;
  grid-template-columns: minmax(200px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4rem);
  max-width: none;
  padding: 0;
  text-align: start;
}
.df-error-visual {
  display: grid;
  place-content: center;
  min-height: 260px;
  border: 1px solid rgba(163, 228, 207, 0.18);
  border-radius: 20px;
  background: radial-gradient(ellipse at center, rgba(163, 228, 207, 0.12), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(163, 228, 207, 0.04) 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(163, 228, 207, 0.04) 31px 32px);
  text-align: center;
}
.df-404-code {
  margin: 0;
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.065em;
  background: none;
  color: var(--df-accent-1);
  -webkit-text-fill-color: currentColor;
  direction: ltr;
}
.df-error-label, .df-error-eyebrow {
  margin: 1rem 0 0;
  color: var(--df-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.df-error-eyebrow { margin: 0 0 1rem; color: var(--df-accent-1); }
.df-404-text {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.df-404-subtext { margin: 1rem 0 0; color: var(--df-muted); line-height: 1.75; }
.df-404-actions { justify-content: flex-start; gap: 0.75rem; margin-top: 1.6rem; }
.df-error-next { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--df-line); }
.df-error-next h2 { margin: 0 0 1rem; font-size: 0.9rem; color: var(--df-muted); font-weight: 500; }
.df-error-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.df-error-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.3rem 1rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--df-line);
  border-radius: 12px;
  color: var(--df-text);
  text-decoration: none;
  background: rgba(8, 19, 29, 0.35);
}
.df-error-link strong { font-size: 0.95rem; font-weight: 600; }
.df-error-link span { grid-column: 1; color: var(--df-muted); font-size: 0.8rem; line-height: 1.6; }
.df-error-link svg { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 20px; height: 20px; color: var(--df-accent-1); }
.df-error-link:hover { border-color: #75969f; background: #1a2e3b; }
[dir="rtl"] .df-error-link svg { transform: scaleX(-1); }

body.df-download-shell {
  background: radial-gradient(ellipse at 0 0, #12303d, transparent 55%), var(--df-bg);
  color: var(--df-text);
}
body.df-download-shell::before, body.df-download-shell::after { display: none; }
body.df-download-shell { padding-top: 0 !important; }
body.df-download-shell .df-header.df-header-download {
  position: sticky !important;
  background: rgba(8, 19, 29, 0.96);
}
.df-download-main { background: transparent; box-shadow: none; padding-block: clamp(2rem, 5vh, 4rem); }
.df-download-card { background: var(--df-surface); border-color: var(--df-line); border-radius: 22px; box-shadow: none; }
.df-download-card::before, .df-download-card::after { display: none; }
.df-download-card h1 { color: var(--df-text); background: none; -webkit-text-fill-color: currentColor; letter-spacing: -0.035em; }
.df-download-header-actions { flex-wrap: wrap; }
.df-download-layout > * { min-width: 0; }
.df-download-security, .df-download-status { overflow-wrap: anywhere; }

body.df-reset-page { background: radial-gradient(ellipse at 0 0, #12303d, transparent 55%), var(--df-bg); }
body.df-reset-page::before, body.df-reset-page::after { display: none; }
body.df-reset-page .df-reset-shell { min-height: 0; flex: 1 0 auto; padding: clamp(2rem, 6vh, 4rem) 1rem; }
body.df-reset-page .df-reset-wrapper {
  width: min(100%, 620px);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--df-surface);
  border: 1px solid var(--df-line);
  border-radius: 22px;
  box-shadow: none;
}
body.df-reset-page .df-reset-wrapper::before, body.df-reset-page .df-reset-wrapper::after { display: none; }
body.df-reset-page .df-reset-header h1 { color: var(--df-text); background: none; -webkit-text-fill-color: currentColor; }
body.df-reset-page .df-reset-header p { color: var(--df-muted); }
body.df-reset-page .df-btn { border-radius: 10px; min-height: 46px; box-shadow: none; }
body.df-reset-page .df-btn-primary { background: var(--df-accent-1); color: #0a2630; }
.df-checkout-success-card { border: 1px solid var(--df-line); border-radius: 22px; }
.df-checkout-success-header::after, .df-page-header-block::after { display: none; }
.df-legal-shell { overflow-wrap: anywhere; }
.df-legal-shell :is(p, li, h1, h2, h3, span, strong, a) {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}
body.df-account-page .df-btn { white-space: normal; overflow-wrap: anywhere; hyphens: auto; }

@media (max-width: 760px) {
  .df-404-shell { border-radius: 20px; }
  .df-404-hero { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .df-error-visual { min-height: 145px; }
  .df-404-code { font-size: 5rem; }
  .df-error-label { margin-top: 0.5rem; }
  .df-error-links { grid-template-columns: minmax(0, 1fr); }
  .df-download-header-actions .df-btn { padding-inline: 0.7rem; font-size: 0.75rem; }
}
@media (forced-colors: active) {
  .df-404-code { color: CanvasText; }
}
