* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --primary: #08bfae;
  --primary-dark: #078f84;
  --ink: #172033;
  --muted: #5d687a;
  --soft: #f5fbfa;
  --line: #dbe7e5;
  --card: #ffffff;
}

body {
  margin: 0;
  background: #f7fbfa;
  color: var(--ink);
  font-family: "Cairo", Arial, sans-serif;
  line-height: 1.9;
}

a {
  color: var(--primary-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

[hidden] {
  display: none !important;
}

.page {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 28px 18px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 12px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 1rem;
  font-weight: 900;
}

.brand span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.hero {
  margin-bottom: 18px;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}

.label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(8, 191, 174, 0.11);
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

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

h1 {
  margin-bottom: 8px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 1000;
  line-height: 1.45;
}

.lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 700;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.card h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 950;
}

.card p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.card p:last-child,
.card ul:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0 0 10px;
  padding-inline-start: 22px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

li {
  margin-bottom: 4px;
}

.language-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
  padding: 0 2px;
}

.language-title h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 950;
}

.language-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.notice {
  border-color: rgba(8, 191, 174, 0.28);
  background: #effcf9;
}

.deletion-hero {
  background:
    linear-gradient(135deg, rgba(8, 191, 174, 0.09), rgba(255, 255, 255, 0.96) 42%),
    var(--card);
}

.deletion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 16px;
  align-items: start;
}

.deletion-form-card {
  padding: 18px;
}

.deletion-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.deletion-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f9fcfb;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.deletion-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 50%;
  background: #eef5f4;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
}

.deletion-steps strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deletion-steps li.is-active {
  border-color: rgba(8, 191, 174, 0.38);
  background: rgba(8, 191, 174, 0.1);
  color: var(--ink);
}

.deletion-steps li.is-active span,
.deletion-steps li.is-done span {
  background: var(--primary);
  color: #fff;
}

.deletion-steps li.is-done {
  color: var(--primary-dark);
}

.deletion-form {
  display: grid;
  gap: 13px;
}

.deletion-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

.form-row label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.form-row input,
.form-row textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: #fbfefd;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.form-row textarea {
  min-height: 112px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(8, 191, 174, 0.72);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8, 191, 174, 0.12);
}

.deletion-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(8, 191, 174, 0.2);
  border-radius: 15px;
  background: #f3fbfa;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.8;
}

.deletion-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 5px;
  accent-color: var(--primary);
}

.form-message {
  padding: 10px 12px;
  border-radius: 13px;
  background: #fff3f3;
  color: #a53030;
  font-size: 0.83rem;
  font-weight: 800;
}

.form-message[data-tone="success"] {
  background: #ecfbf5;
  color: #087b5b;
}

.form-message[data-tone="info"] {
  background: #eef7ff;
  color: #1e5d8f;
}

.primary-action,
.secondary-action,
.text-action {
  appearance: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 950;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 15px;
  text-align: center;
}

.primary-action {
  gap: 8px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 26px rgba(8, 191, 174, 0.22);
}

.secondary-action {
  border: 1px solid var(--line);
  background: #f7fbfa;
  color: var(--ink);
}

.text-action {
  justify-self: center;
  padding: 4px 8px;
  background: transparent;
  color: var(--primary-dark);
  font-size: 0.84rem;
}

.deletion-resend-form {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.primary-action:disabled,
.text-action:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.button-loader {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.is-busy .button-loader {
  display: inline-block;
}

.otp-intro {
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7fbfa;
}

.otp-intro strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.otp-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.otp-input {
  letter-spacing: 0.34em;
  text-align: center;
}

.deletion-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.deletion-success {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 24px 12px 10px;
  text-align: center;
}

.success-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: rgba(8, 191, 174, 0.12);
  color: var(--primary-dark);
}

.success-mark svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.deletion-success h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.28rem;
  font-weight: 950;
}

.deletion-success p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.request-reference {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3fbfa;
}

.deletion-home-link {
  margin-top: 4px;
  text-decoration: none;
}

.deletion-info {
  display: grid;
  gap: 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  margin-top: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 700;
}

@media (max-width: 680px) {
  .page {
    padding: 18px 12px 30px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-links {
    width: 100%;
  }

  .top-links a {
    flex: 1;
  }

  .hero,
  .card {
    border-radius: 16px;
    padding: 16px;
  }

  .deletion-layout,
  .deletion-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .deletion-steps {
    gap: 6px;
  }

  .deletion-steps li {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 8px 6px;
    text-align: center;
  }

  .deletion-steps strong {
    max-width: 100%;
    font-size: 0.72rem;
  }

  .deletion-actions-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
