:root {
  color-scheme: dark;
  --bg: #070611;
  --bg-deep: #030309;
  --panel: rgba(18, 15, 35, .78);
  --panel-strong: rgba(28, 20, 52, .9);
  --text: #fbf8ff;
  --muted: #c4bed8;
  --line: rgba(255, 255, 255, .16);
  --red: #ff314f;
  --pink: #ff4fd8;
  --blue: #00d4ff;
  --violet: #9b5cff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 0%, rgba(255, 49, 79, .24), transparent 32rem),
    radial-gradient(circle at 84% 8%, rgba(0, 212, 255, .2), transparent 31rem),
    linear-gradient(180deg, #0b0819 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  line-height: 1.65;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 80%);
}
a { color: inherit; }
.topbar, main, footer { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 20px; padding: 18px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 35px; height: 35px; border-radius: 10px; background: conic-gradient(from 140deg, var(--red), var(--pink), var(--blue), var(--violet), var(--red)); box-shadow: 0 0 28px rgba(255, 79, 216, .7); }
.language { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 800; }
.language select { max-width: 190px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.08); color: var(--text); padding: 8px 10px; font: inherit; }
.language option { background: #100d1d; color: white; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: center; min-height: 410px; padding: 35px 0 70px; }
.back { display: inline-block; margin-bottom: 42px; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--blue); }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 850px; margin: 0; font-size: clamp(58px, 12vw, 116px); line-height: .88; letter-spacing: -.045em; text-shadow: 0 0 28px rgba(255, 79, 216, .35); }
.lead { max-width: 760px; margin: 24px 0 0; color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); }
.hero-orb { display: grid; place-items: center; width: 260px; height: 260px; margin: auto; border-radius: 50%; background: conic-gradient(from 120deg, var(--red), var(--pink), var(--violet), var(--blue), var(--red)); box-shadow: 0 0 90px rgba(255, 49, 79, .35), inset 0 0 35px rgba(255,255,255,.3); transform: rotate(-8deg); }
.hero-orb::before { content: ""; position: absolute; width: 178px; height: 178px; border-radius: 50%; background: #100b20; box-shadow: inset 0 0 28px rgba(0,0,0,.65); }
.hero-orb span { position: relative; color: #fff; font-size: 25px; font-weight: 950; line-height: .92; letter-spacing: .08em; text-align: center; transform: rotate(8deg); }
.guide-section { margin: 0 0 22px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035)); box-shadow: 0 16px 44px rgba(0,0,0,.2); }
.guide-section h2 { margin: 0 0 14px; font-size: clamp(25px, 4vw, 38px); line-height: 1.08; }
.guide-section h3 { margin: 26px 0 8px; color: var(--text); font-size: 21px; line-height: 1.2; }
.guide-section p { margin: 12px 0 0; color: var(--muted); }
.guide-section ul, .guide-section ol { margin: 14px 0 0; padding-left: 24px; color: var(--muted); }
.guide-section li + li { margin-top: 8px; }
.notice { border-color: rgba(255, 122, 0, .55); background: linear-gradient(145deg, rgba(255, 122, 0, .14), rgba(255,255,255,.035)); }
.notice h2 { color: #ffb36a; }
.steps { counter-reset: step; list-style: none; padding-left: 0 !important; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--red), var(--pink), var(--blue)); color: #fff; font-weight: 900; }
.status { display: inline-block; margin-top: 16px; padding: 8px 12px; border-left: 3px solid #ff8a00; background: rgba(255, 138, 0, .14); color: #ffd2a2; font-weight: 800; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.two-col .guide-section { margin: 0; }
.data-table { width: 100%; margin-top: 18px; border-collapse: collapse; color: var(--muted); font-size: 15px; }
.data-table th, .data-table td { padding: 12px 14px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.data-table th { color: var(--text); background: rgba(255,255,255,.07); }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 28px 0 50px; color: var(--muted); }
footer a { color: var(--text); font-weight: 800; text-decoration: none; }
html[dir="rtl"] .steps { padding-right: 0 !important; padding-left: 0 !important; }
html[dir="rtl"] .steps li { grid-template-columns: minmax(0, 1fr) 34px; }
html[dir="rtl"] .steps li::before { grid-column: 2; grid-row: 1; }
html[dir="rtl"] .steps li span { grid-column: 1; grid-row: 1; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 28px 0 55px; }
  .hero-orb { order: -1; width: 190px; height: 190px; }
  .hero-orb::before { width: 130px; height: 130px; }
  .hero-orb span { font-size: 18px; }
  .back { margin-bottom: 28px; }
  .two-col { grid-template-columns: 1fr; }
  .two-col .guide-section { margin-bottom: 22px; }
}
@media (max-width: 560px) {
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .language { width: 100%; justify-content: space-between; }
  .language select { flex: 1; max-width: none; }
  .guide-section { padding: 23px 20px; }
  .data-table { display: block; overflow-x: auto; white-space: normal; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }
