:root {
  color-scheme: dark;
  --help-bg: #090a16;
  --help-surface: #151529;
  --help-surface-soft: #1c1b36;
  --help-border: #302e55;
  --help-text: #f6f4ff;
  --help-muted: #b7b3cc;
  --help-primary: #7b6cff;
  --help-accent: #08d7b7;
  --help-warning: #f0b44c;
  --help-danger: #ff6685;
  --help-shadow: 0 24px 70px rgba(0, 0, 0, .28);
  --help-radius: 22px;
  --help-width: 980px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --help-bg: #f5f6ff;
  --help-surface: #ffffff;
  --help-surface-soft: #efefff;
  --help-border: #d9d8ec;
  --help-text: #171626;
  --help-muted: #5c5970;
  --help-shadow: 0 24px 70px rgba(55, 48, 115, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--help-text);
  background: var(--help-bg);
  line-height: 1.6;
}
a { color: var(--help-accent); text-underline-offset: 3px; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 50; padding: 10px 14px; border-radius: 10px; color: #090a16; background: var(--help-accent); font-weight: 800; }
.skip-link:focus { top: 12px; }
.topbar { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid color-mix(in srgb, var(--help-text) 9%, transparent); background: color-mix(in srgb, var(--help-bg) 90%, transparent); backdrop-filter: blur(18px); }
.topbar-inner { width: min(var(--help-width), calc(100% - 32px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--help-text); text-decoration: none; font-weight: 850; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 8px 24px rgba(59, 92, 246, .22); }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.languages { display: flex; align-items: center; gap: 4px; }
.languages a, .theme-toggle { min-width: 40px; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 10px; color: var(--help-muted); background: transparent; text-decoration: none; font: inherit; font-size: .88rem; font-weight: 780; cursor: pointer; }
.languages a { display: inline-flex; align-items: center; justify-content: center; }
.languages a[aria-current="page"] { color: var(--help-text); background: var(--help-surface-soft); }
.theme-toggle { border: 1px solid var(--help-border); }
.theme-toggle:hover, .theme-toggle:focus-visible, .languages a:hover, .languages a:focus-visible { color: var(--help-text); outline: 2px solid transparent; background: var(--help-surface-soft); }
.language-selector { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 7px 10px; border: 1px solid var(--help-border); border-radius: 999px; background: color-mix(in srgb, var(--help-surface) 92%, transparent); }
.language-selector:focus-within { border-color: var(--help-primary); outline: 3px solid color-mix(in srgb, var(--help-primary) 22%, transparent); }
.language-selector select { max-width: 105px; border: 0; outline: 0; color: var(--help-text); background: transparent; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; }
.language-selector option { color: var(--help-text); background: var(--help-surface); }
.language-icon { color: var(--help-primary); font-size: 1.12rem; line-height: 1; }
main { width: min(var(--help-width), calc(100% - 32px)); margin: 42px auto 80px; }
.breadcrumbs { margin: 0 0 18px; color: var(--help-muted); font-size: .92rem; }
.breadcrumbs a { color: inherit; }
.hero { padding: clamp(26px, 5vw, 52px); border: 1px solid var(--help-border); border-radius: var(--help-radius); background: var(--help-surface); box-shadow: var(--help-shadow); }
.eyebrow { margin: 0 0 8px; color: var(--help-accent); font-weight: 850; letter-spacing: .07em; text-transform: uppercase; font-size: .78rem; }
h1 { margin: 0; font-size: clamp(2.1rem, 6vw, 3.7rem); line-height: 1.08; letter-spacing: -.045em; }
.lead { max-width: 760px; margin: 18px 0 0; color: var(--help-muted); font-size: 1.08rem; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 12px; color: #090a16; background: var(--help-accent); font-weight: 820; text-decoration: none; }
.button.secondary { color: var(--help-text); border-color: var(--help-border); background: var(--help-surface-soft); }
.button:focus-visible, .card-link:focus-visible, summary:focus-visible { outline: 3px solid color-mix(in srgb, var(--help-accent) 60%, transparent); outline-offset: 3px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.card, .content { border: 1px solid var(--help-border); border-radius: var(--help-radius); background: var(--help-surface); }
.card { padding: 24px; }
.card h2, .card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--help-muted); }
.card-link { color: inherit; text-decoration: none; transition: transform .16s ease, border-color .16s ease; }
.card-link:hover { transform: translateY(-2px); border-color: var(--help-primary); }
.card-link .arrow { display: inline-block; margin-top: 18px; color: var(--help-accent); font-weight: 800; }
.content { margin-top: 24px; padding: clamp(24px, 5vw, 48px); }
.content section + section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--help-border); }
.content h2 { margin: 0 0 12px; font-size: clamp(1.35rem, 3vw, 1.7rem); }
.content h3 { margin: 22px 0 8px; }
.content p { margin: 10px 0; }
.content ul, .content ol { padding-left: 23px; }
.content li + li { margin-top: 7px; }
.notice { padding: 18px 20px; border-left: 4px solid var(--help-primary); border-radius: 10px; background: rgba(123, 108, 255, .14); }
.notice.warning { border-left-color: var(--help-warning); background: color-mix(in srgb, var(--help-warning) 12%, transparent); }
.notice.danger { border-left-color: var(--help-danger); background: color-mix(in srgb, var(--help-danger) 10%, transparent); }
.policy-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.policy-list li { padding: 15px 16px; border: 1px solid var(--help-border); border-radius: 13px; background: var(--help-surface-soft); }
details { border-top: 1px solid var(--help-border); }
details:first-of-type { border-top: 0; }
summary { padding: 18px 0; cursor: pointer; font-weight: 820; }
details p { margin: -4px 0 20px; color: var(--help-muted); }
.contact-box { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.contact-box h2 { margin-bottom: 4px; }
.contact-box p { margin: 0; color: var(--help-muted); }
footer { width: min(var(--help-width), calc(100% - 32px)); margin: 0 auto 34px; color: var(--help-muted); text-align: center; font-size: .88rem; }
.support-form { display: grid; gap: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 800; }
.field small { color: var(--help-muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--help-border); border-radius: 11px; color: var(--help-text); background: var(--help-surface-soft); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--help-primary) 38%, transparent); border-color: var(--help-primary); }
.checkbox-row { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; padding: 16px; border: 1px solid var(--help-border); border-radius: 12px; background: var(--help-surface-soft); }
.checkbox-row input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--help-primary); }
.support-form button { cursor: pointer; }
.support-form button[disabled] { cursor: wait; opacity: .65; }
.form-status { display: none; margin: 0; }
.form-status.visible { display: block; }
.form-status.success { border-left-color: var(--help-accent); background: color-mix(in srgb, var(--help-accent) 11%, transparent); }
.form-status.error { border-left-color: var(--help-danger); background: color-mix(in srgb, var(--help-danger) 10%, transparent); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.security-challenge { min-height: 1px; }

@media (max-width: 720px) {
  .topbar-inner { min-height: 64px; }
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .contact-box { grid-template-columns: 1fr; }
  .contact-box .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .topbar, .quick-actions, footer { display: none; }
  body { color: #000; background: #fff; }
  main { width: 100%; margin: 0; }
  .hero, .card, .content { box-shadow: none; border-color: #bbb; background: #fff; }
  a { color: #000; }
}
