:root {
  color-scheme: dark;
  --bg: #020914;
  --panel: rgba(7, 20, 34, 0.92);
  --panel-strong: rgba(9, 28, 46, 0.96);
  --line: rgba(107, 196, 255, 0.22);
  --line-strong: rgba(107, 196, 255, 0.42);
  --text: #f6fbff;
  --muted: #9fb2c3;
  --cyan: #35d8ff;
  --blue: #4f85ff;
  --red: #ff6c5d;
  --red-strong: #ff3f2e;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(1, 5, 12, 0.84), rgba(2, 9, 20, 0.95)),
    url("/assets/media/placeholders/default-wave/default-wave-full-2400.webp") center / cover fixed no-repeat,
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.delete-shell {
  position: relative;
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 13px;
  margin-bottom: 28px;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    url("/assets/coresurfer-logo-dark-bg.png") center / cover no-repeat,
    linear-gradient(135deg, var(--blue), var(--cyan));
}

.brand strong {
  display: block;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1rem;
}

.brand small {
  display: block;
  margin-top: 4px;
  color: var(--cyan);
  font-size: 0.62rem;
  font-weight: 900;
}

.delete-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: 38px;
  align-items: center;
}

.delete-copy {
  max-width: 660px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(2.6rem, 5.8vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.delete-copy p:not(.kicker) {
  max-width: 600px;
  color: #d3e2ef;
  font-size: 1.02rem;
  line-height: 1.7;
}

.impact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.impact-list span {
  min-height: 34px;
  padding: 9px 13px;
  border: 1px solid rgba(107, 196, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 12, 23, 0.72);
  color: rgba(246, 251, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.delete-panel {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, var(--panel-strong), rgba(3, 12, 23, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.session-state,
.delete-form,
.result-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.session-state[hidden],
.delete-form[hidden],
.result-card[hidden] {
  display: none;
}

.session-state h2,
.signed-in-summary h2,
.result-card h2 {
  margin-bottom: 0;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.75rem;
}

.session-state p:not(.kicker),
.signed-in-summary p:not(.kicker),
.result-card p:not(.kicker) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.delete-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(107, 196, 255, 0.18);
  border-radius: 10px;
  background: rgba(1, 8, 16, 0.82);
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  min-height: 46px;
  padding: 0 13px;
}

textarea {
  min-height: 104px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--cyan);
  background: rgba(1, 8, 16, 0.96);
  box-shadow: 0 0 0 3px rgba(53, 216, 255, 0.13);
}

.danger-button,
.home-link,
.signin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid rgba(255, 108, 93, 0.58);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.danger-button {
  background: linear-gradient(135deg, rgba(255, 63, 46, 0.94), rgba(255, 120, 77, 0.78));
}

.danger-button:disabled {
  cursor: wait;
  opacity: 0.6;
  transform: none;
}

.home-link,
.signin-link {
  border-color: rgba(53, 216, 255, 0.48);
  background: linear-gradient(135deg, rgba(35, 92, 255, 0.94), rgba(28, 187, 255, 0.72));
}

.danger-button:not(:disabled):hover,
.home-link:hover,
.signin-link:hover {
  transform: translateY(-1px);
}

.delete-message {
  min-height: 42px;
  margin: 0;
  padding: 0 24px 24px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.delete-message.is-error {
  color: var(--red);
}

.delete-legal-links {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: 22px;
  color: rgba(246, 251, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.delete-legal-links a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

.delete-legal-links a:hover,
.delete-legal-links a:focus-visible {
  color: var(--cyan);
}

@media (max-width: 880px) {
  .delete-surface {
    grid-template-columns: 1fr;
  }

  .delete-copy {
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  .delete-shell {
    width: min(100% - 24px, 1180px);
    align-content: start;
  }

  h1 {
    font-size: clamp(2.2rem, 14vw, 3.8rem);
  }

  .impact-list {
    display: grid;
    grid-template-columns: 1fr;
  }
}
