:root {
  color-scheme: dark;
  --bg: #050913;
  --surface: rgba(13, 22, 38, 0.82);
  --surface-strong: rgba(14, 25, 43, 0.96);
  --border: rgba(255, 255, 255, 0.085);
  --text: #f5f7fb;
  --muted: #a9b5c7;
  --gold: #e5c46b;
  --gold-soft: rgba(229, 196, 107, 0.13);
  --cyan: #5dd6df;
  --cyan-soft: rgba(93, 214, 223, 0.12);
  --danger-soft: rgba(243, 125, 125, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(41, 118, 134, 0.18), transparent 32rem),
    radial-gradient(circle at 90% 18%, rgba(119, 92, 42, 0.13), transparent 28rem),
    linear-gradient(180deg, #06101b 0%, #050913 44%, #04070d 100%);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(5, 9, 19, .74);
  border-bottom: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 10px 34px rgba(0,0,0,.12);
}
.header-row { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: .2px; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(229,196,107,.25), rgba(93,214,223,.10));
  border: 1px solid rgba(229,196,107,.30);
  box-shadow: inset 0 1px rgba(255,255,255,.12), 0 10px 28px rgba(0,0,0,.28);
  color: #f1d787; font-size: 13px; letter-spacing: -.4px;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.brand-name { font-size: 19px; }
.lang-switch { display: inline-flex; padding: 4px; gap: 3px; border: 1px solid var(--border); border-radius: 14px; background: rgba(255,255,255,.035); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.lang-button {
  appearance: none; border: 0; color: var(--muted); background: transparent; border-radius: 10px;
  padding: 7px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.lang-button:hover, .lang-button:focus-visible { color: var(--text); outline: none; }
.lang-button[aria-pressed="true"] { color: #081019; background: linear-gradient(135deg, #f4df9a, #d8b758); box-shadow: 0 5px 16px rgba(229,196,107,.16); }

.hero { padding: 72px 0 34px; }
.hero-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 88% 10%, rgba(93,214,223,.08), transparent 28%),
    linear-gradient(145deg, rgba(14,29,48,.97), rgba(8,15,27,.92));
  box-shadow:
    0 28px 84px rgba(0,0,0,.40),
    0 8px 24px rgba(0,0,0,.22),
    inset 0 1px rgba(255,255,255,.085),
    inset 0 -1px rgba(255,255,255,.02);
  transform: translateZ(0);
}
.hero-card > * { position: relative; z-index: 2; }
.hero-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 470px;
  height: 470px;
  border-radius: 50%;
  inset: -278px -126px auto auto;
  background: radial-gradient(circle, rgba(93,214,223,.25), rgba(93,214,223,.055) 44%, transparent 68%);
  filter: blur(2px);
}
body[data-page="delete-account"] .hero-card {
  background:
    radial-gradient(circle at 88% 10%, rgba(229,196,107,.09), transparent 28%),
    linear-gradient(145deg, rgba(27,27,39,.97), rgba(8,15,27,.93));
}
body[data-page="delete-account"] .hero-card::before {
  background: radial-gradient(circle, rgba(229,196,107,.23), rgba(229,196,107,.05) 44%, transparent 68%);
}
.hero-card::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: -35% auto -35% -48%;
  width: 38%;
  pointer-events: none;
  transform: skewX(-14deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.055), transparent);
  animation: hero-sheen 7s ease-in-out infinite;
}
@keyframes hero-sheen {
  0%, 66% { left: -48%; opacity: 0; }
  72% { opacity: .7; }
  88% { left: 116%; opacity: .22; }
  100% { left: 116%; opacity: 0; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 17px; color: var(--cyan); font-size: 12px; font-weight: 800; letter-spacing: 1.25px; text-transform: uppercase; }
body[data-page="delete-account"] .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 18px currentColor; }
h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 6.5vw, 70px);
  line-height: 1.04;
  letter-spacing: -1.8px;
  text-wrap: balance;
  text-shadow: 0 10px 34px rgba(0,0,0,.22);
}
[dir="rtl"] h1 { letter-spacing: 0; }
.hero-copy { max-width: 890px; margin: 22px 0 0; color: #c6d1df; font-size: clamp(16px, 2vw, 19px); }
.meta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 29px; }
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: #bbc7d7;
  background: rgba(255,255,255,.042);
  box-shadow: inset 0 1px rgba(255,255,255,.035);
  font-size: 12px;
  font-weight: 650;
}
.meta-dot { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px rgba(229,196,107,.55); }

.document { padding: 12px 0 80px; }
.lang-panel[hidden], [data-lang-panel][hidden] { display: none !important; }
.section-card {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px;
  margin: 14px 0; padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(14,25,43,.86), rgba(8,14,25,.78));
  box-shadow: 0 14px 44px rgba(0,0,0,.19), inset 0 1px rgba(255,255,255,.038);
}
.section-no {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px;
  border: 1px solid rgba(93,214,223,.23); background: var(--cyan-soft); color: #91e7ec; font-weight: 800;
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.10);
}
.section-card h2 { margin: 1px 0 8px; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.35; letter-spacing: -.2px; }
.section-card p { margin: 0; color: var(--muted); font-size: 15px; }

.notice, .action-card {
  margin: 16px 0;
  padding: clamp(22px, 3vw, 30px);
  border-radius: var(--radius-md);
  border: 1px solid rgba(229,196,107,.20);
  background: linear-gradient(145deg, rgba(34,29,19,.50), rgba(13,20,32,.88));
  box-shadow: 0 16px 48px rgba(0,0,0,.20), inset 0 1px rgba(255,255,255,.028);
}
.notice h2, .action-card h2 { margin: 0 0 8px; font-size: 21px; }
.notice p, .action-card p { margin: 0; color: var(--muted); }
.steps { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: deletion-step; }
.steps li { counter-increment: deletion-step; position: relative; padding: 15px 16px 15px 56px; border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.028); color: #c7d1df; }
[dir="rtl"] .steps li { padding: 15px 56px 15px 16px; }
.steps li::before { content: counter(deletion-step); position: absolute; left: 14px; top: 13px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: var(--gold-soft); border: 1px solid rgba(229,196,107,.22); color: #f0d57e; font-weight: 800; font-size: 13px; }
[dir="rtl"] .steps li::before { left: auto; right: 14px; }
.warning { border-color: rgba(243,125,125,.18); background: linear-gradient(145deg, var(--danger-soft), rgba(13,20,32,.86)); }
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 17px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 14px; border: 1px solid transparent; }
.button-primary { color: #071018; background: linear-gradient(135deg, #f1dc94, #d7b657); box-shadow: 0 12px 28px rgba(229,196,107,.14), inset 0 1px rgba(255,255,255,.20); }
.button-secondary { color: #dbe4ef; border-color: var(--border); background: rgba(255,255,255,.035); }
.button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.small-note { margin-top: 12px !important; font-size: 13px; color: #8f9daf !important; }

.site-footer { border-top: 1px solid rgba(255,255,255,.055); padding: 28px 0 44px; color: #8390a2; font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: #aeb9c9; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 700px) {
  .shell { width: min(100% - 22px, 1180px); }
  .header-row { min-height: 66px; }
  .brand-name { font-size: 17px; }
  .brand-mark { width: 35px; height: 35px; }
  .lang-button { padding: 6px 8px; font-size: 11px; }
  .hero { padding: 38px 0 22px; }
  .hero-card { border-radius: 23px; padding: 28px 22px; }
  h1 { letter-spacing: -1.1px; }
  [dir="rtl"] h1 { letter-spacing: 0; }
  .hero-copy { margin-top: 17px; }
  .meta-row { margin-top: 23px; }
  .document { padding-bottom: 55px; }
  .section-card { grid-template-columns: 42px minmax(0, 1fr); gap: 13px; border-radius: 18px; }
  .section-no { width: 40px; height: 40px; border-radius: 12px; }
  .section-card p { font-size: 14.5px; }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-card::after { animation: none; display: none; }
  .lang-button { transition: none; }
}
