/*
 * ArabScape design system (app.css)
 * Dark "desert night" theme, gold accents. RTL-first: logical properties
 * everywhere; directional icons (.icon-dir) mirror in RTL.
 * Component class names are a contract used by every module.
 */

/* ------------------------------------------------------------------
 * 1. Tokens
 * ---------------------------------------------------------------- */
:root {
  --bg: #0e0c09;
  --bg-2: #15110c;
  --surface: #1d1711;
  --surface-2: #261e15;
  --surface-3: #2f251a;
  --border: #3b2f21;
  --border-strong: #574530;
  /* Edges of form controls (WCAG 1.4.11, >= 3:1): 3.37:1 on the field fill, 3.09:1 on --surface. */
  --border-field: #7a6243;
  --border-field-hover: #8a7050;
  --text: #f1e8d8;
  --muted: #b9a98f;
  --subtle: #9a8b73;
  --gold: #d9a441;
  --gold-2: #f3c96b;
  --gold-ink: #1b1308;
  --sand: #caa56b;
  --red: #d0544a;
  --red-text: #f19b92;
  --green: #4fb477;
  --green-text: #8fdcab;
  --blue: #5ea8de;
  --blue-text: #9fcdf0;
  --silver: #c9d1db;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.85), 0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, 0.9), 0 6px 16px rgba(0, 0, 0, 0.4);
  --glow-gold: 0 0 0 1px rgba(217, 164, 65, 0.35), 0 12px 30px -12px rgba(217, 164, 65, 0.45);
  --focus-ring: 0 0 0 3px rgba(243, 201, 107, 0.45);

  --font-body: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  --font-heading: "Cinzel", "Cairo", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  color-scheme: dark;
}

:lang(ar) {
  --font-heading: "Reem Kufi", "Cairo", Tahoma, sans-serif;
}
/* English text inside an Arabic page (fallback content, names) keeps the
   English heading font. */
:lang(en) {
  --font-heading: "Cinzel", "Cairo", Georgia, "Times New Roman", serif;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --header-h: 72px; }
}

/* ------------------------------------------------------------------
 * 2. Base
 * ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Fixed backdrop: dusk gradient + geometric star lattice. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("../img/pattern.svg"),
    radial-gradient(1100px 520px at 50% -140px, rgba(217, 164, 65, 0.20), transparent 70%),
    radial-gradient(700px 420px at 100% 0%, rgba(208, 84, 74, 0.10), transparent 70%),
    radial-gradient(700px 420px at 0% 10%, rgba(94, 168, 222, 0.05), transparent 70%),
    linear-gradient(180deg, #1a130c 0%, var(--bg) 55%);
  background-size: 80px 80px, auto, auto, auto, auto;
  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat;
}

img, svg { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 1.4em 0 0.5em;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  overflow-wrap: break-word;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: 0.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; word-spacing: 0.12em; line-height: 1.45; }

p { margin: 0 0 1em; }
small, .small { font-size: 0.875rem; }

a { color: var(--gold-2); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #ffdc8f; text-decoration: underline; }

strong, b { font-weight: 700; color: #fff4df; }

hr { border: 0; height: 1px; background: var(--border); margin: 2rem 0; }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.9em; }
code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  direction: ltr;
  unicode-bidi: isolate;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: rgba(217, 164, 65, 0.4); color: #fff; }

button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------------------------
 * 3. Layout primitives
 * ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: 760px; }

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.stack { display: flex; flex-direction: column; gap: 14px; }
.stack > * { margin-block: 0; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.split { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

.site-main {
  flex: 1 0 auto;
  padding-bottom: 72px;
}
.site-main:focus { outline: none; }

/* ------------------------------------------------------------------
 * 4. Icons
 * ---------------------------------------------------------------- */
.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  vertical-align: -0.22em;
}
.icon-sm { width: 0.95em; height: 0.95em; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* ------------------------------------------------------------------
 * 5. Header & navigation
 * ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -200px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 700;
}
.skip-link:focus { top: 12px; color: var(--gold-ink); text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 12, 9, 0.88);
  border-bottom: 1px solid rgba(217, 164, 65, 0.55);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 10px 30px -18px rgba(0, 0, 0, 0.9);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(14, 12, 9, 0.72);
    -webkit-backdrop-filter: saturate(150%) blur(12px);
    backdrop-filter: saturate(150%) blur(12px);
  }
}
.site-header::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  opacity: 0.7;
  pointer-events: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-emblem {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px rgba(217, 164, 65, 0.35));
  transition: transform 0.4s var(--ease);
}
.brand:hover .brand-emblem { transform: rotate(-8deg) scale(1.04); }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--gold-2);
  background: linear-gradient(180deg, #fff1c9 0%, var(--gold-2) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
:lang(ar) .brand-name { letter-spacing: 0; font-size: 1.45rem; line-height: 1.3; }

.nav-toggle {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--gold); }
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-open { display: inline-flex; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: inline-flex; }

.nav-panel {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: 12px var(--gutter) 20px;
  background: #110d09;
  border-bottom: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.nav-panel.is-open { display: block; animation: slide-down 0.18s var(--ease); }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.site-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--gold-2); background: rgba(217, 164, 65, 0.1); }
.nav-icon { color: var(--gold); opacity: 0.85; }

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.lang-switch span { font-family: var(--font-body); }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav-panel {
    display: flex;
    position: static;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    animation: none;
  }
  .site-nav { margin-inline-start: 12px; }
  .site-nav ul { flex-direction: row; gap: 2px; }
  .site-nav a { position: relative; padding: 8px 12px; font-size: 0.95rem; }
  .site-nav .nav-icon { display: none; }
  .site-nav a[aria-current="page"] { background: none; }
  .site-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    inset-inline: 12px;
    bottom: -2px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
  }
  .header-actions { margin: 0; padding: 0; border: 0; flex-wrap: nowrap; }
}

/* Dropdown (account menu) built on <details>. */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-caret { transition: transform 0.2s var(--ease); }
.dropdown[open] .dropdown-caret { transform: rotate(180deg); }
.account-name { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 10px);
  z-index: 120;
  min-width: 240px;
  padding: 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
  animation: drop-in 0.16s var(--ease);
}
.dropdown-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.dropdown-menu a,
.dropdown-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text);
  font-weight: 600;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.dropdown-menu a:hover,
.dropdown-menu button:hover { background: rgba(217, 164, 65, 0.12); color: var(--gold-2); text-decoration: none; }
.dropdown-menu .icon { color: var(--gold); }
.dropdown-form { margin: 0; }

@media (max-width: 1099.98px) {
  .header-actions .dropdown { width: 100%; }
  .header-actions .dropdown > summary { width: 100%; justify-content: flex-start; }
  .header-actions .dropdown-caret { margin-inline-start: auto; }
  .header-actions .dropdown-menu { position: static; margin-top: 8px; box-shadow: none; animation: none; }
}

@keyframes slide-down {
  from { transform: translateY(-8px); }
  to { transform: none; }
}

@keyframes drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------------
 * 6. Footer
 * ---------------------------------------------------------------- */
.site-footer {
  flex: none;
  margin-top: auto;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  background:
    url("../img/pattern.svg") repeat,
    linear-gradient(180deg, rgba(21, 17, 12, 0.9), #0a0806);
  background-size: 80px 80px, auto;
  color: var(--muted);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
}
.brand-footer .brand-emblem { width: 36px; height: 36px; }
.footer-tagline { margin: 14px 0 6px; color: var(--sand); font-weight: 600; }
.footer-about { margin: 0; max-width: 46ch; }
.footer-title {
  margin: 4px 0 14px;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.04em;
}
:lang(ar) .footer-title { letter-spacing: 0; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.footer-links a:hover { color: var(--gold-2); }
.footer-bottom {
  margin-top: 40px;
  padding-block: 22px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}
.footer-bottom p { margin: 0; }
.footer-copy { color: var(--text); font-weight: 600; }
.disclaimer { color: var(--subtle); max-width: 90ch; }

/* ------------------------------------------------------------------
 * 7. Page header, hero, section titles
 * ---------------------------------------------------------------- */
.page-header { padding: 40px 0 8px; }
.page-header-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.page-title { margin: 0; }
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
:lang(ar) .page-eyebrow { letter-spacing: 0; font-size: 0.9rem; text-transform: none; }
.page-lead { margin: 10px 0 0; max-width: 70ch; color: var(--muted); font-size: 1.05rem; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.hero {
  position: relative;
  padding: 72px 0 120px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 520px;
  height: 520px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(243, 201, 107, 0.28), rgba(217, 164, 65, 0.06) 45%, transparent 70%);
  z-index: -2;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 160px;
  background: url("../img/dunes.svg") bottom center / 100% 100% no-repeat;
  z-index: -1;
  pointer-events: none;
}
.hero-compact { padding: 48px 0 110px; }
.hero-eyebrow {
  margin: 0 0 12px;
  color: var(--sand);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
:lang(ar) .hero-eyebrow { letter-spacing: 0; font-size: 1rem; }
.hero-title {
  margin: 0 auto 14px;
  max-width: 20ch;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.15;
  color: var(--gold-2);
  background: linear-gradient(180deg, #fff4d8 0%, var(--gold-2) 50%, #d79a35 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 18px rgba(217, 164, 65, 0.25));
}
:lang(ar) .hero-title { line-height: 1.4; }
.hero-subtitle {
  margin: 0 auto;
  max-width: 640px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.hero-status { margin-top: 22px; }

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 48px 0 20px;
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
}
.section-title::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 12px rgba(243, 201, 107, 0.6);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-strong), transparent);
}
[dir="rtl"] .section-title::after { background: linear-gradient(270deg, var(--border-strong), transparent); }

/* ------------------------------------------------------------------
 * 8. Cards & stats
 * ---------------------------------------------------------------- */
.card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(243, 201, 107, 0.55), transparent);
  pointer-events: none;
}
a.card { display: block; color: inherit; text-decoration: none; transition: transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s; }
a.card:hover { transform: translateY(-2px); border-color: rgba(217, 164, 65, 0.55); box-shadow: var(--glow-gold); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.12);
}
.card-header h2, .card-header h3, .card-header h4 { margin: 0; font-size: 1.1rem; }
.card-body { padding: 20px; }
.card-body > :first-child { margin-top: 0; }
.card-body > :last-child { margin-bottom: 0; }
.card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.14);
}

.stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  padding-inline-end: 60px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(160px 80px at 100% 0%, rgba(217, 164, 65, 0.12), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
  overflow: hidden;
}
[dir="rtl"] .stat {
  background:
    radial-gradient(160px 80px at 0% 0%, rgba(217, 164, 65, 0.12), transparent 70%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
}
.stat-value {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.stat-icon { position: absolute; top: 16px; inset-inline-end: 16px; color: rgba(217, 164, 65, 0.45); }
.stat-icon .icon { width: 26px; height: 26px; }

/* ------------------------------------------------------------------
 * 9. Buttons
 * ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.12s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn[disabled],
.btn.is-disabled,
.btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #f8d888 0%, var(--gold-2) 40%, var(--gold) 100%);
  border-color: #b5842f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 20px -10px rgba(217, 164, 65, 0.8);
}
.btn-primary:hover {
  color: var(--gold-ink);
  background: linear-gradient(180deg, #ffe4a3 0%, #f7d27f 40%, #e3b04f 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 10px 26px -10px rgba(243, 201, 107, 0.9);
}

.btn-secondary {
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-3), var(--surface-2));
  border-color: var(--border-strong);
}
.btn-secondary:hover { color: var(--gold-2); border-color: var(--gold); background: var(--surface-3); }

.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #c4524a, #a73c34);
  border-color: #8a3029;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-danger:hover { color: #fff; background: linear-gradient(180deg, #d0605a, #b4443b); }

.btn-ghost { color: var(--text); background: transparent; border-color: transparent; }
.btn-ghost:hover { color: var(--gold-2); background: rgba(255, 255, 255, 0.06); }

.btn-sm { min-height: 36px; padding: 0 12px; font-size: 0.875rem; border-radius: 8px; gap: 6px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn .icon { width: 1.15em; height: 1.15em; }

/* ------------------------------------------------------------------
 * 10. Forms
 * ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form > * { margin: 0; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label,
.form label:not(.checkbox),
.label {
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text);
}
.label-optional { color: var(--subtle); font-weight: 500; font-size: 0.85em; }

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--border-field);
  border-radius: 10px;
  background: rgba(10, 8, 6, 0.65);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.input::placeholder, .textarea::placeholder { color: #8e7f69; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-field-hover); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--focus-ring), inset 0 1px 2px rgba(0, 0, 0, 0.4);
  background: rgba(10, 8, 6, 0.85);
}
.input[disabled], .select[disabled], .textarea[disabled] { opacity: 0.55; cursor: not-allowed; }
.input[dir="ltr"] { text-align: left; }
[dir="rtl"] .input[dir="ltr"]::placeholder { text-align: left; }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a441' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: right 14px center;
}
[dir="rtl"] .select { background-position: left 14px center; }
.select option { background: var(--surface); color: var(--text); }

.textarea { min-height: 140px; resize: vertical; }

.help { margin: 0; font-size: 0.85rem; color: var(--muted); }
.error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red-text);
}
.error .icon { margin-top: 0.2em; }
.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea { border-color: var(--red); }
.field.has-error .input:focus,
.field.has-error .select:focus,
.field.has-error .textarea:focus { box-shadow: 0 0 0 3px rgba(208, 84, 74, 0.35); }

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}
input[type="checkbox"], input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex: none;
}

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.form-row { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.search-bar { display: flex; gap: 8px; }
.search-bar .input { flex: 1; }
.search-bar .btn { flex: none; min-height: 46px; }

fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; }

/* ------------------------------------------------------------------
 * 11. Alerts & flash
 * ---------------------------------------------------------------- */
.flash-area { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-inline-start-width: 4px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: opacity 0.2s, transform 0.2s;
}
.alert.is-leaving { opacity: 0; transform: translateY(-4px); }
.alert-icon { flex: none; display: inline-flex; margin-top: 2px; }
.alert-icon .icon { width: 22px; height: 22px; }
.alert-body { flex: 1; min-width: 0; }
.alert-body > :last-child { margin-bottom: 0; }
.alert-close {
  flex: none;
  display: inline-flex;
  margin-inline-start: auto;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: inherit;
  opacity: 0.7;
  cursor: pointer;
}
.alert-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.08); }

.alert-success { background: rgba(79, 180, 119, 0.1); border-color: rgba(79, 180, 119, 0.4); border-inline-start-color: var(--green); }
.alert-success .alert-icon { color: var(--green-text); }
.alert-error { background: rgba(208, 84, 74, 0.1); border-color: rgba(208, 84, 74, 0.45); border-inline-start-color: var(--red); }
.alert-error .alert-icon { color: var(--red-text); }
.alert-info { background: rgba(94, 168, 222, 0.09); border-color: rgba(94, 168, 222, 0.4); border-inline-start-color: var(--blue); }
.alert-info .alert-icon { color: var(--blue-text); }
.alert-warning { background: rgba(217, 164, 65, 0.1); border-color: rgba(217, 164, 65, 0.45); border-inline-start-color: var(--gold); }
.alert-warning .alert-icon { color: var(--gold-2); }

/* ------------------------------------------------------------------
 * 12. Badges
 * ---------------------------------------------------------------- */
.badge {
  --badge-color: var(--sand);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--badge-color);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  white-space: nowrap;
  vertical-align: middle;
}
:lang(ar) .badge { font-size: 0.8rem; letter-spacing: 0; }
.badge .icon { width: 1.05em; height: 1.05em; }
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .badge {
    background: color-mix(in srgb, var(--badge-color) 14%, transparent);
    border-color: color-mix(in srgb, var(--badge-color) 55%, transparent);
  }
}
.badge-mod { --badge-color: var(--silver); }
.badge-admin { --badge-color: var(--gold-2); }
.badge-owner {
  color: var(--gold-ink);
  border-color: #f6d58a;
  background: linear-gradient(135deg, #e0685c 0%, #e89a4f 45%, var(--gold-2) 100%);
  box-shadow: 0 0 12px -2px rgba(232, 154, 79, 0.6);
}
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .badge-owner {
    border-color: #f6d58a;
    background: linear-gradient(135deg, #e0685c 0%, #e89a4f 45%, var(--gold-2) 100%);
  }
}
.badge-donator { --badge-color: var(--gold); }
.badge-green { --badge-color: var(--green-text); }
.badge-red { --badge-color: var(--red-text); }
.badge-blue { --badge-color: var(--blue-text); }
.badge-muted { --badge-color: var(--muted); }
.badge-gold { --badge-color: var(--gold-2); }

/* ------------------------------------------------------------------
 * 13. Tables
 * ---------------------------------------------------------------- */
.table-wrap {
  position: relative; /* contains .visually-hidden labels inside the scrolling table */
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.table th,
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: middle;
}
.table thead th {
  background: var(--bg-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
:lang(ar) .table thead th { font-size: 0.88rem; letter-spacing: 0; text-transform: none; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color 0.12s; }
.table tbody tr:hover { background: rgba(217, 164, 65, 0.06); }
.table-striped tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.022); }
.table-striped tbody tr:nth-child(even):hover { background: rgba(217, 164, 65, 0.06); }
.table tr.is-highlight { background: rgba(217, 164, 65, 0.12); box-shadow: inset 3px 0 0 var(--gold); }
[dir="rtl"] .table tr.is-highlight { box-shadow: inset -3px 0 0 var(--gold); }
.table .num {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.table a { font-weight: 600; }
.table-wrap .table { min-width: 520px; }
.player-cell { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------
 * 14. Pagination & tabs
 * ---------------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0;
}
.pagination a,
.pagination .page-num,
.pagination .page-prev,
.pagination .page-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background-color 0.15s;
}
.pagination a:hover { border-color: var(--gold); color: var(--gold-2); text-decoration: none; }
.pagination .is-current {
  color: var(--gold-ink);
  border-color: var(--gold);
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
}
.pagination .is-disabled { opacity: 0.4; }
.pagination .page-gap { min-width: 20px; color: var(--subtle); text-align: center; }
.pagination .page-summary { width: 100%; text-align: center; color: var(--subtle); font-size: 0.85rem; }
@media (max-width: 639.98px) {
  .pagination .page-far, .pagination .page-gap { display: none; }
  /* Icon-only arrows on phones: the text stays for screen readers (it is
     the links' accessible name), so hide it visually, never display:none. */
  .pagination .page-prev, .pagination .page-next { position: relative; }
  .pagination .page-prev span, .pagination .page-next span {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
}

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a,
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -1px;
  padding: 11px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.tabs a:hover, .tabs button:hover { color: var(--text); text-decoration: none; }
.tabs .is-active,
.tabs [aria-current="page"],
.tabs [aria-selected="true"] {
  color: var(--gold-2);
  border-bottom-color: var(--gold);
}

/* ------------------------------------------------------------------
 * 15. Status pill, progress, skill icons, empty state
 * ---------------------------------------------------------------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
}
.status-pill::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}
.status-pill .status-players { color: var(--text); font-weight: 600; }
.status-pill .status-players::before { content: "·"; margin-inline-end: 8px; color: var(--subtle); }
.status-pill.online { color: var(--green-text); border-color: rgba(79, 180, 119, 0.5); background: rgba(79, 180, 119, 0.1); }
.status-pill.online::before { background: var(--green); animation: pulse 2s ease-out infinite; }
.status-pill.offline { color: var(--red-text); border-color: rgba(208, 84, 74, 0.5); background: rgba(208, 84, 74, 0.1); }
.status-pill.offline::before { background: var(--red); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 180, 119, 0.65); }
  70% { box-shadow: 0 0 0 9px rgba(79, 180, 119, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 180, 119, 0); }
}
/* Compact pill for tables and lists (world status). */
.status-pill-sm { gap: 6px; padding: 2px 10px; font-size: 0.8rem; white-space: nowrap; }
.status-pill-sm::before { width: 8px; height: 8px; }
:lang(ar) .status-pill-sm { font-size: 0.85rem; }

/* Country flags (public/assets/img/flags, 4:3) for game worlds. */
.flag {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 1px 3px rgba(0, 0, 0, 0.5);
}
.flag-lg { width: 32px; height: 24px; border-radius: 4px; }

.progress {
  display: block;
  width: 100%;
  height: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  -webkit-appearance: none;
  appearance: none;
}
.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  box-shadow: 0 0 12px rgba(243, 201, 107, 0.45);
  transition: width 0.7s var(--ease);
}
[dir="rtl"] .progress-bar { background: linear-gradient(270deg, var(--gold), var(--gold-2)); }
progress.progress { color: var(--gold); }
progress.progress::-webkit-progress-bar { background: rgba(0, 0, 0, 0.35); border-radius: 999px; }
progress.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }
progress.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 999px; }
.progress-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }

.skill-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: none;
  object-fit: contain;
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
  vertical-align: middle;
}
.skill-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.skill-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-weight: 600;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 48px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  text-align: center;
}
.empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  border: 1px solid rgba(217, 164, 65, 0.35);
  background: radial-gradient(circle, rgba(217, 164, 65, 0.16), transparent 70%);
  color: var(--gold);
}
.empty-state-icon .icon { width: 28px; height: 28px; }
.empty-state-title { margin: 0; font-size: 1.15rem; color: var(--text); }
.empty-state-text { margin: 0; max-width: 48ch; }
.empty-state-action { margin-top: 12px; }

/* ------------------------------------------------------------------
 * 16. Prose (Markdown output)
 * ---------------------------------------------------------------- */
.prose { font-size: 1.03rem; line-height: 1.85; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.25rem; }
.prose h4 { margin-top: 1.2em; font-size: 1.08rem; color: var(--sand); }
.prose ul, .prose ol { margin: 0 0 1em; padding-inline-start: 1.5em; }
.prose li { margin: 0.3em 0; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--gold); font-weight: 700; }
.prose a { text-decoration: underline; text-decoration-color: rgba(243, 201, 107, 0.45); }
.prose a:hover { text-decoration-color: currentColor; }
.prose em { color: var(--sand); }
/* Arabic script has no true italics: keep emphasis upright, the colour marks it. */
:lang(ar) .prose em { font-style: normal; }
.prose hr { margin: 1.8em 0; background: linear-gradient(90deg, transparent, var(--border-strong), transparent); }

/* ------------------------------------------------------------------
 * 17. Error pages
 * ---------------------------------------------------------------- */
.error-page {
  max-width: 680px;
  margin-inline: auto;
  padding: 64px var(--gutter) 24px;
  text-align: center;
}
.error-art { position: relative; display: inline-block; margin-bottom: 4px; }
.error-emblem {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 10px 30px rgba(217, 164, 65, 0.35));
}
.error-glyph {
  position: absolute;
  inset-inline-end: -8px;
  bottom: -2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--surface-2);
  color: var(--gold-2);
  box-shadow: var(--shadow);
}
.error-glyph .icon { width: 20px; height: 20px; }
.error-code {
  margin: 8px 0 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--gold-2);
  background: linear-gradient(180deg, #fff1c9 0%, var(--gold-2) 40%, #a8701f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-title { margin: 12px 0 10px; font-size: clamp(1.5rem, 4vw, 2rem); }
.error-message { margin: 0 auto; max-width: 52ch; color: var(--muted); font-size: 1.05rem; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.error-debug {
  margin-top: 32px;
  border: 1px solid rgba(208, 84, 74, 0.6);
  border-radius: var(--radius);
  background: #0a0806;
  text-align: start;
}
.error-debug summary { padding: 12px 16px; cursor: pointer; color: var(--red-text); font-weight: 700; }
.error-debug pre {
  margin: 0;
  max-height: 420px;
  overflow: auto;
  padding: 0 16px 16px;
  color: #e6d9c2;
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}
pre.error-debug { padding: 16px; direction: ltr; text-align: left; white-space: pre-wrap; }

/* ------------------------------------------------------------------
 * 18. Utilities
 * ---------------------------------------------------------------- */
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.text-gold { color: var(--gold-2); }
.text-green { color: var(--green-text); }
.text-red { color: var(--red-text); }
.text-center { text-align: center; }
.text-start { text-align: start; }
.text-end { text-align: end; }
.nowrap { white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.tabular { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 24px !important; }
.mt-4 { margin-top: 40px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 24px !important; }
.w-full { width: 100%; }
.hidden, [hidden] { display: none !important; }

.kbd {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.85em;
  direction: ltr;
  unicode-bidi: isolate;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: var(--gold);
}
.divider::before,
.divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--border-strong)); }
.divider::after { background: linear-gradient(90deg, var(--border-strong), transparent); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Web installer (/install): one centred card, then what the form will do. */
.install-shell { max-width: 640px; margin-inline: auto; }
.install-steps {
  margin: 0 0 20px;
  padding-inline-start: 1.4em;
  color: var(--muted);
  font-size: 0.95rem;
}
.install-steps li + li { margin-top: 6px; }

/* Honeypot fields: off-screen for humans, still in the DOM for bots. */
.honeypot {
  position: absolute !important;
  inset-inline-start: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ------------------------------------------------------------------
 * 19. Motion & print
 * ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  body::before, .site-header, .site-footer, .skip-link, .flash-area { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .table-wrap { box-shadow: none; border-color: #ccc; background: #fff; }
}
