/* ============================================================================
   GLORY CLIENT — FLAT EDGE-TO-EDGE ARCHITECTURAL DESIGN SYSTEM (v4)
   Rich Persian & Latin Typography · Crisp 6-8px Corners · Zero Floating Islands
   ============================================================================ */

@font-face {
  font-family: 'Estedad';
  src: url('/assets/fonts/Estedad-Variable.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Lalezar';
  src: url('/assets/fonts/Lalezar-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('/assets/fonts/Sahel-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sahel';
  src: url('/assets/fonts/Sahel-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/assets/fonts/plus-jakarta-sans-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/sora-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sora';
  src: url('/assets/fonts/sora-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-variable.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-Variable.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08090d;
  --bg-alt: #0c0e15;
  --surface: #10131c;
  --surface-2: #151926;
  --border: rgba(255, 255, 255, 0.08);
  --border-2: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.24);

  --text: #f3f5fa;
  --text-2: #9ba4b8;
  --text-muted: #68738a;

  --accent: #7da6ff;
  --accent-rgb: 125, 166, 255;
  --accent-soft: rgba(125, 166, 255, 0.11);

  --play: #22c56b;
  --play-2: #169850;
  --play-soft: rgba(34, 197, 107, 0.12);

  --danger: #f05a65;
  --danger-soft: rgba(240, 90, 101, 0.12);
  --warn: #eab308;

  /* Expressive Typography Stack */
  --font-hero: 'Lalezar', 'Estedad', 'Vazirmatn', sans-serif;
  --font-display: 'Sora', 'Estedad', 'Sahel', sans-serif;
  --font-sub: 'Sahel', 'Vazirmatn', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Vazirmatn', system-ui, sans-serif;
  --font-num: 'Space Grotesk', 'JetBrains Mono', monospace;

  /* Crisp desktop corners */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono, code { font-family: 'JetBrains Mono', ui-monospace, monospace; direction: ltr; unicode-bidi: embed; }
.num { font-family: var(--font-num); direction: ltr; unicode-bidi: embed; }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.wrap--wide { max-width: 1280px; }
main { flex: 1; }

/* ── Edge-to-Edge Sticky Header (Clean — No Download / Support buttons) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: 64px;
  background: rgba(8, 9, 13, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-header__in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand-link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; }
.brand-link img { width: 28px; height: 28px; border-radius: var(--r-sm); display: block; }
.brand-link__title { font-size: 15.5px; color: var(--text); letter-spacing: 0.01em; }

.nav-links { display: flex; align-items: center; gap: 4px; height: 100%; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  color: var(--text-2);
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 700;
  transition: color 150ms var(--ease);
}
.nav-link:hover { color: var(--text); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px; right: 12px; bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

/* ── Floating Support Tab (Middle-Left Iconic — Exact Wyvern Placement) ── */
#support-float {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  height: 46px;
  padding: 0 13px;
  gap: 0;
  border-radius: 0 10px 10px 0;
  background: rgba(16, 19, 28, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: none;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--font-sub);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: color 240ms var(--ease), border-color 240ms var(--ease), background 240ms var(--ease), padding 240ms var(--ease), gap 240ms var(--ease), box-shadow 240ms var(--ease);
}
#support-float svg { flex-shrink: 0; color: var(--accent); }
#support-float span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transition: max-width 280ms var(--ease), opacity 200ms var(--ease);
}
#support-float:hover {
  padding: 0 16px 0 14px;
  gap: 9px;
  background: rgba(22, 26, 40, 0.96);
  border-color: rgba(var(--accent-rgb), 0.55);
  color: #fff;
  box-shadow: 4px 0 28px rgba(var(--accent-rgb), 0.2);
}
#support-float:hover span { max-width: 140px; opacity: 1; }

/* ── Buttons (Crisp 6-8px Corners) ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font-family: var(--font-sub);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--white, .btn--accent { background: #f3f6ff; color: #090b12; border-color: rgba(255, 255, 255, 0.2); }
.btn--white:hover, .btn--accent:hover { background: #ffffff; }
.btn--play { background: linear-gradient(180deg, var(--play), var(--play-2)); color: #05170c; border-color: rgba(255, 255, 255, 0.14); }
.btn--play:hover { filter: brightness(1.07); }
.btn--soft { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.26); color: #cfe0ff; }
.btn--soft:hover { background: rgba(var(--accent-rgb), 0.18); }
.btn--ghost { background: transparent; border-color: var(--border-2); color: var(--text); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--border-strong); }
.btn--danger { background: var(--danger-soft); border-color: rgba(240, 90, 101, 0.3); color: var(--danger); }
.btn--sm { padding: 6px 12px; font-size: 12.5px; border-radius: var(--r-sm); }
.btn--lg { padding: 12px 24px; font-size: 14.5px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: var(--r-xs);
  font-size: 11.5px; font-weight: 700;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
}
.pill--gold, .pill--accent { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.28); color: #c7d9ff; }
.pill--play { background: var(--play-soft); border-color: rgba(34, 197, 107, 0.28); color: #5ce69a; }
.pill--danger { background: var(--danger-soft); border-color: rgba(240, 90, 101, 0.3); color: #ff8c95; }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--play); }

/* ── Edge-to-Edge Bands ── */
.band { border-bottom: 1px solid var(--border); }
.band--alt { background: var(--bg-alt); }
.band--pad { padding: 80px 0; }

/* ── Full-Bleed Atmospheric Hero (Short Punchy Display Typography) ── */
.hero-stage {
  position: relative;
  overflow: hidden;
  padding: 124px 0 112px;
  border-bottom: 1px solid var(--border);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg__img {
  position: absolute; inset: 0;
  background: url('/assets/img/caves-cliffs-2.jpg') center 26% / cover no-repeat;
  opacity: 0.25;
  filter: saturate(0.75);
}
.hero-bg__fade {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 50% 15%, rgba(125, 166, 255, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(8, 9, 13, 0.36) 0%, rgba(8, 9, 13, 0.72) 60%, var(--bg) 100%);
}
.hero-in { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; text-align: center; }
.hero-ver {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: var(--r-sm);
  background: rgba(16, 19, 28, 0.72); border: 1px solid var(--border-2);
  font-size: 12px; color: var(--text-2);
}
.hero__title {
  margin: 20px 0 12px;
  font-family: var(--font-hero);
  font-size: clamp(46px, 6.8vw, 76px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  background: linear-gradient(180deg, #ffffff 35%, #b9c7e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin: 0 auto 30px;
  max-width: 490px;
  font-family: var(--font-sub);
  color: #aeb8cc;
  font-size: 16px;
  line-height: 1.85;
}
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.hero__meta {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  color: var(--text-muted); font-size: 12.5px;
}

/* ── Flat Hairline Feature Grid ── */
.sec-head { margin-bottom: 34px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.sec-kicker { display: block; font-family: var(--font-num); font-size: 11px; letter-spacing: 0.16em; color: var(--accent); margin-bottom: 6px; text-transform: uppercase; font-weight: 700; }
.sec-title { margin: 0; font-family: var(--font-display); font-size: clamp(24px, 3vw, 33px); font-weight: 800; letter-spacing: -0.015em; }
.sec-sub { margin: 5px 0 0; font-family: var(--font-sub); color: var(--text-2); font-size: 14.5px; }

.hairline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.hairline-cell {
  background: var(--bg);
  padding: 28px 26px;
  transition: background 160ms var(--ease);
}
.band--alt .hairline-cell { background: var(--bg-alt); }
.hairline-cell:hover { background: var(--surface); }
.hairline-ic { color: var(--accent); margin-bottom: 14px; display: inline-flex; }
.hairline-cell h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 16px; font-weight: 800; color: #fff; }
.hairline-cell p { margin: 0; color: var(--text-2); font-size: 13.8px; line-height: 1.85; }

/* ── Large, High-Detail Authentic Glory Client Preview (3 Focused Screens) ── */
.glory-mock {
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0d0e14;
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.72);
}
.gm-titlebar {
  height: 40px;
  padding: 0 16px;
  background: #101219;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
}
.gm-tb-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; color: #e5e9f4; }
.gm-tb-brand img { width: 19px; height: 19px; border-radius: 4px; }
.gm-tb-beta { font-family: var(--font-num); font-size: 10px; padding: 1px 6px; border-radius: 4px; background: rgba(244, 190, 73, 0.15); color: #f4be49; border: 1px solid rgba(244, 190, 73, 0.28); }
.gm-tb-win { display: flex; gap: 14px; color: #6f788d; font-size: 14px; user-select: none; }

.gm-shell {
  display: grid;
  grid-template-columns: 208px 1fr;
  min-height: 550px;
}
.gm-sidebar {
  background: #101219;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.gm-nav { display: flex; flex-direction: column; gap: 3px; }
.gm-navbtn {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 12px 18px;
  border: 0; border-right: 2px solid transparent;
  background: transparent;
  color: #8b94a9;
  font-family: var(--font-sub);
  font-size: 13.8px; font-weight: 700;
  cursor: pointer; text-align: right;
  transition: background 140ms, color 140ms;
}
.gm-navbtn:hover { color: #e5e9f4; background: rgba(255, 255, 255, 0.03); }
.gm-navbtn.is-active {
  color: #f4be49;
  border-right-color: #f4be49;
  background: linear-gradient(270deg, rgba(244, 190, 73, 0.14), transparent 88%);
}

.gm-screen { display: none; position: relative; min-height: 550px; background: #13151e; }
.gm-screen.is-active { display: flex; flex-direction: column; }

/* Home Screen: Full-bleed artwork + Interactive Split PLAY + Dropdown + Quick Profiles */
.gm-home-hero {
  position: relative;
  flex: 1;
  min-height: 390px;
  padding: 22px 26px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-position: center;
  background-size: cover;
  transition: background-image 260ms var(--ease);
}
.gm-home-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13, 14, 20, 0.34) 0%, rgba(13, 14, 20, 0.22) 45%, rgba(19, 21, 30, 0.98) 100%);
}
.gm-home-hero > * { position: relative; z-index: 2; }
.gm-overlay-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.gm-chip-glass {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: rgba(13, 14, 20, 0.72); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 12.5px; color: #f3f5fa;
}
.gm-play-wrap { position: relative; display: flex; justify-content: center; margin-top: auto; padding-top: 64px; }
.gm-play-split {
  display: inline-flex;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(34, 197, 107, 0.28);
}
.gm-play-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 230px; padding: 13px 32px;
  background: linear-gradient(180deg, #22c56b, #15944f);
  color: #05190d; font-family: var(--font-display); font-weight: 800; text-decoration: none;
}
.gm-play-main b { font-size: 16px; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 8px; }
.gm-play-main span { font-family: var(--font-num); font-size: 12px; opacity: 0.85; font-weight: 700; }
.gm-play-arr {
  width: 42px; border: 0; border-right: 1px solid rgba(0, 0, 0, 0.18);
  background: #148948; color: #05190d; cursor: pointer;
  display: grid; place-items: center; transition: background 140ms;
}
.gm-play-arr:hover { background: #189c52; }

.gm-picker-pop {
  position: absolute; bottom: 72px; left: 50%; transform: translateX(-50%);
  width: 280px; background: #161925; border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md); padding: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.72);
  display: none; z-index: 20;
}
.gm-picker-pop.is-open { display: block; }
.gm-picker-opt {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 9px 11px; border: 0; border-radius: var(--r-xs);
  background: transparent; color: #e5e9f4; cursor: pointer; text-align: right; font-size: 13px;
}
.gm-picker-opt:hover, .gm-picker-opt.is-sel { background: rgba(244, 190, 73, 0.13); color: #f4be49; }

.gm-quick-strip {
  padding: 18px 26px 22px;
  background: #13151e;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gm-qcard {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-sm);
  background: #181a24; border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer; text-align: right; transition: border-color 150ms, background 150ms;
}
.gm-qcard:hover { background: #1e2130; }
.gm-qcard.is-sel { border-color: rgba(244, 190, 73, 0.45); background: rgba(244, 190, 73, 0.07); }
.gm-qcard__thumb { width: 46px; height: 46px; border-radius: 6px; background-size: cover; background-position: center; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, 0.1); }

/* Versions Screen: Rich Visual Cards */
.gm-inner { padding: 26px; flex: 1; background: #13151e; }
.gm-vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gm-vcard {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--r-md);
  overflow: hidden; background: #181a24; display: flex; flex-direction: column;
}
.gm-vcard__art { height: 132px; background-size: cover; background-position: center; position: relative; }
.gm-vcard__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(24, 26, 36, 0.96) 100%); }
.gm-vcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gm-vcard__meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: auto; }

/* Mods Screen: Modrinth Browser */
.gm-mod-bar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
.gm-mod-tabs { display: flex; gap: 4px; }
.gm-mtab { padding: 7px 12px; border-radius: var(--r-sm); border: 1px solid var(--border); background: #181a24; color: var(--text-2); font-size: 12.5px; font-weight: 700; cursor: pointer; }
.gm-mtab.is-on { border-color: rgba(244, 190, 73, 0.42); color: #f4be49; background: rgba(244, 190, 73, 0.1); }
.gm-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; }
.gm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; background: #181a24; border-bottom: 1px solid var(--border);
}
.gm-row:last-child { border-bottom: 0; }
.gm-mod-btn { padding: 6px 13px; border-radius: var(--r-xs); border: 1px solid var(--border-2); background: rgba(255, 255, 255, 0.04); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.gm-mod-btn.is-inst { background: var(--play-soft); border-color: rgba(34, 197, 107, 0.35); color: #5ce69a; }

/* ── FAQ Accordion ── */
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; cursor: pointer; list-style: none;
  font-family: var(--font-sub); font-size: 15.5px; font-weight: 700; color: #fff;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { color: var(--text-muted); flex-shrink: 0; transition: transform 180ms var(--ease); }
.faq-item[open] summary svg { transform: rotate(180deg); color: var(--accent); }
.faq-body { padding: 0 4px 20px; color: var(--text-2); font-size: 14px; line-height: 1.95; max-width: 78ch; }
.faq-body a { color: var(--accent); text-decoration: underline; }

/* ── Flat Workspace Pages (Dashboard / Wiki / Admin) ── */
.workspace { display: grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 64px); }
.ws-side { background: var(--bg-alt); border-left: 1px solid var(--border); padding: 24px 0; }
.ws-side__head { padding: 0 20px 18px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.ws-nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 20px; border: 0; border-right: 2px solid transparent;
  background: transparent; color: var(--text-2); font-family: var(--font-sub);
  font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: right; transition: background 140ms, color 140ms;
}
.ws-nav-item:hover { background: rgba(255, 255, 255, 0.03); color: #fff; }
.ws-nav-item.is-active { color: #fff; border-right-color: var(--accent); background: linear-gradient(270deg, rgba(var(--accent-rgb), 0.13), transparent 90%); }
.ws-main { padding: 34px 40px 64px; max-width: 980px; width: 100%; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.card--pad { padding: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--r-sm);
  background: #0a0c12; border: 1px solid var(--border-2); color: var(--text); outline: none; transition: border-color 140ms var(--ease);
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); }
.textarea { min-height: 120px; resize: vertical; }

.pw-meter { height: 4px; background: rgba(255, 255, 255, 0.08); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.pw-meter__bar { height: 100%; width: 0; transition: width 180ms, background 180ms; }
.pw-hints { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; font-size: 11.5px; color: var(--text-muted); }
.pw-hints span.ok { color: #5ce69a; }

.alert { padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; border: 1px solid var(--border); background: var(--surface-2); margin-bottom: 14px; }
.alert--gold, .alert--accent { background: var(--accent-soft); border-color: rgba(var(--accent-rgb), 0.3); color: #dce8ff; }
.alert--ok { background: var(--play-soft); border-color: rgba(34, 197, 107, 0.3); color: #9cf5be; }
.alert--bad { background: var(--danger-soft); border-color: rgba(240, 90, 101, 0.3); color: #ffb3b8; }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--border); }
.tbl th { font-size: 12px; color: var(--text-muted); background: var(--bg-alt); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* ── Structured Directory Footer ── */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 54px 0 28px; }
.foot-top { display: grid; grid-template-columns: 1.4fr 2fr; gap: 48px; padding-bottom: 38px; border-bottom: 1px solid var(--border); }
.foot-desc { margin: 12px 0 18px; color: var(--text-2); font-size: 13.5px; max-width: 36ch; line-height: 1.85; }
.foot-socials { display: flex; gap: 8px; }
.foot-soc {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; font-weight: 700;
  transition: border-color 140ms, color 140ms;
}
.foot-soc:hover { border-color: var(--border-strong); color: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-col h4 { margin: 0 0 12px; font-family: var(--font-sub); font-size: 13.5px; font-weight: 700; color: #fff; }
.foot-col a { display: block; padding: 4px 0; font-size: 13px; color: var(--text-2); transition: color 140ms; }
.foot-col a:hover { color: #fff; }
.foot-bar { padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-muted); }

@media (max-width: 960px) {
  .hairline-grid, .gm-vgrid, .gm-quick-strip { grid-template-columns: 1fr; }
  .gm-shell { grid-template-columns: 1fr; }
  .gm-sidebar { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--border); padding: 6px; }
  .gm-nav { flex-direction: row; }
  .workspace { grid-template-columns: 1fr; }
  .ws-side { border-left: 0; border-bottom: 1px solid var(--border); padding: 14px 16px; }
  .ws-main { padding: 24px 20px 48px; }
  .foot-top { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .hero-stage { padding: 78px 0 68px; }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  #support-float span { display: none; }
}
