@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&display=swap");

:root {
  color-scheme: dark;

  --bg: #111214;
  --bg-stage: #0d0e10;
  --bg-elevated: #17181b;
  --header-bg: rgba(17, 18, 20, 0.88);
  --surface-subtle: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.05);
  --surface-active: rgba(255, 255, 255, 0.08);

  --dash: rgba(255, 255, 255, 0.13);
  --dash-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);

  --ink: #f4f4f2;
  --ink-inv: #111214;
  --ink-inv-muted: #52565e;
  --ink-2: #b8bcc4;
  --muted: #848891;
  --faint: #5e626b;
  --btn-hover: #ffffff;

  --dot-color: rgba(255, 255, 255, 0.14);
  --dot-glow: rgba(255, 255, 255, 0.14);
  --ruler-tick: rgba(255, 255, 255, 0.16);
  --ring-track: rgba(255, 255, 255, 0.12);
  --connector-line: rgba(255, 255, 255, 0.35);

  --glass-pill: rgba(25, 27, 31, 0.86);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-border-strong: rgba(255, 255, 255, 0.2);
  --glass-card: linear-gradient(145deg, rgba(44, 46, 52, 0.68) 0%, rgba(22, 23, 27, 0.88) 100%);
  --glass-cta: linear-gradient(135deg, rgba(64, 67, 75, 0.82) 0%, rgba(28, 30, 35, 0.92) 100%);
  --glass-hub: linear-gradient(145deg, rgba(52, 55, 62, 0.78) 0%, rgba(22, 23, 27, 0.92) 100%);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-cta: 0 20px 48px rgba(0, 0, 0, 0.6);

  --node-bg: rgba(34, 36, 41, 0.78);
  --node-hover: rgba(46, 49, 56, 0.85);
  --node-lit: rgba(62, 65, 74, 0.9);
  --node-lit-border: rgba(255, 255, 255, 0.5);

  /* Liquid Glass Button Tokens (Dark) */
  --lg-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.04) 100%);
  --lg-surface-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  --lg-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.28),
    0 6px 20px rgba(0, 0, 0, 0.34);
  --lg-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22),
    0 10px 26px rgba(0, 0, 0, 0.44);
  --lg-primary-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(226, 228, 232, 0.86) 100%);
  --lg-primary-hover: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(238, 240, 244, 0.94) 100%);
  --lg-primary-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.42);

  --scrollbar-track: #111214;
  --scrollbar-thumb: #2b2d33;

  accent-color: var(--ink);
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

:root[data-theme="light"] {
  color-scheme: light;

  --bg: #ecebe6;
  --bg-stage: #e3e2dc;
  --bg-elevated: #f4f3ef;
  --header-bg: rgba(236, 235, 230, 0.76);
  --surface-subtle: rgba(28, 30, 34, 0.03);
  --surface-hover: rgba(28, 30, 34, 0.055);
  --surface-active: rgba(28, 30, 34, 0.085);

  --dash: rgba(28, 30, 34, 0.13);
  --dash-soft: rgba(28, 30, 34, 0.08);
  --line: rgba(28, 30, 34, 0.11);
  --line-strong: rgba(28, 30, 34, 0.24);

  --ink: #1e2024;
  --ink-inv: #f4f3ef;
  --ink-inv-muted: #b8bcc4;
  --ink-2: #3d4149;
  --muted: #5c606a;
  --faint: #848892;
  --btn-hover: #2d3037;

  --dot-color: rgba(17, 18, 20, 0.18);
  --dot-glow: rgba(17, 18, 20, 0.06);
  --ruler-tick: rgba(17, 18, 20, 0.22);
  --ring-track: rgba(17, 18, 20, 0.12);
  --connector-line: rgba(17, 18, 20, 0.35);

  --glass-pill: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(17, 18, 20, 0.14);
  --glass-border-strong: rgba(17, 18, 20, 0.22);
  --glass-card: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(242, 242, 239, 0.96) 100%);
  --glass-cta: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(235, 236, 233, 0.96) 100%);
  --glass-hub: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(238, 239, 236, 0.96) 100%);
  --shadow-card: 0 20px 50px rgba(17, 18, 20, 0.1);
  --shadow-cta: 0 16px 40px rgba(17, 18, 20, 0.14);

  --node-bg: rgba(255, 255, 255, 0.86);
  --node-hover: rgba(255, 255, 255, 0.98);
  --node-lit: #ffffff;
  --node-lit-border: rgba(17, 18, 20, 0.55);

  /* Liquid Glass Button Tokens (Light) */
  --lg-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(236, 237, 240, 0.56) 100%);
  --lg-surface-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(228, 230, 235, 0.72) 100%);
  --lg-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(17, 18, 20, 0.08),
    0 4px 16px rgba(17, 18, 20, 0.08);
  --lg-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    inset 0 -1px 0 rgba(17, 18, 20, 0.1),
    0 8px 22px rgba(17, 18, 20, 0.13);
  --lg-primary-bg: linear-gradient(180deg, rgba(44, 46, 52, 0.92) 0%, rgba(17, 18, 20, 0.96) 100%);
  --lg-primary-hover: linear-gradient(180deg, rgba(58, 61, 68, 0.95) 0%, rgba(24, 25, 29, 0.98) 100%);
  --lg-primary-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 8px 22px rgba(17, 18, 20, 0.22);

  --scrollbar-track: #fafaf9;
  --scrollbar-thumb: #c8cbd1;
}

@supports not (scrollbar-color: auto) {
  html,
  body {
    scrollbar-width: auto;
  }

  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  ::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
  }

  ::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 999px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: clip;
}

a {
  color: inherit;
}

.serif {
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
}

/* ── Outer Architectural Dashed Frame (Reign Signature Vertical Rails) ──── */
.frame {
  width: min(1220px, 100% - 48px);
  min-height: calc(100vh - 144px);
  margin-inline: auto;
  border-inline: 1px dashed var(--dash);
  position: relative;
}

/* ── Header (Exact Reign Monochrome Topbar) ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1220px, 100% - 48px);
  margin-inline: auto;
  height: 66px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--muted);
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.14s ease;
}

.nav-btn:hover {
  color: var(--ink);
  background: var(--lg-surface);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--lg-shadow);
}

.nav-btn.active {
  color: var(--ink);
  font-weight: 500;
  background: var(--lg-surface-hover);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--lg-shadow);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  appearance: none;
  border: none;
  background: var(--lg-surface);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--lg-shadow);
  color: var(--ink-2);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.theme-toggle:hover {
  color: var(--ink);
  background: var(--lg-surface-hover);
  box-shadow: var(--lg-shadow-hover);
  transform: translateY(-1px);
}

.lang-picker {
  position: relative;
}

.lang-toggle {
  appearance: none;
  border: none;
  background: var(--lg-surface);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--lg-shadow);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  height: 34px;
  min-width: 58px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.lang-toggle:hover {
  color: var(--ink);
  background: var(--lg-surface-hover);
  box-shadow: var(--lg-shadow-hover);
  transform: translateY(-1px);
}

.lang-caret {
  font-size: 9px;
  opacity: 0.72;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  padding: 6px;
  border-radius: 14px;
  background: var(--glass-pill);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-cta);
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 90;
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink-2);
  padding: 8px 11px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.lang-option:hover {
  background: var(--surface-hover);
  color: var(--ink);
}

.lang-option.active {
  background: var(--lg-primary-bg);
  color: var(--ink-inv);
  font-weight: 500;
}

.lang-option-code {
  font-size: 10.5px;
  letter-spacing: 0.06em;
  opacity: 0.7;
}

.btn-white {
  appearance: none;
  border: none;
  font-family: inherit;
  background: var(--lg-primary-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--lg-primary-shadow);
  color: var(--ink-inv);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.btn-white:hover {
  background: var(--lg-primary-hover);
  transform: translateY(-1px);
}

.btn-text-muted {
  appearance: none;
  border: none;
  background: var(--lg-surface);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--lg-shadow);
  font-family: inherit;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.btn-text-muted:hover {
  color: var(--ink);
  background: var(--lg-surface-hover);
  box-shadow: var(--lg-shadow-hover);
  transform: translateY(-1px);
}

/* ── Tabs ────────────────────────────────────────────────────────────────── */
.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ── TAB 1: HOME (Reign Split Hero + Halftone Matrix + Dashed Platform Grid) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px dashed var(--dash);
  min-height: 540px;
}

.hero-left {
  padding: 72px 52px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reign-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 28px;
}

.reign-badge-box {
  width: 16px;
  height: 16px;
  background: var(--ink);
  color: #111214;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.hero-title {
  margin: 0 0 24px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(2.6rem, 4.6vw, 3.9rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.hero-title .muted-line {
  display: block;
  color: var(--muted);
}

.hero-sub {
  margin: 0 0 32px 0;
  max-width: 420px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Right Halftone Dot-Matrix Glass Stage (Exact Reign Visual!) */
.hero-right {
  position: relative;
  border-left: 1px dashed var(--dash);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-stage);
  background-image:
    radial-gradient(var(--dot-color) 1px, transparent 1px),
    radial-gradient(ellipse 70% 55% at 75% 85%, var(--dot-glow), transparent 70%);
  background-size: 8px 8px, 100% 100%;
}

.reign-glass-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--glass-pill);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  font-size: 12px;
  color: var(--ink-2);
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.reign-glass-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.reign-preview-card {
  width: 100%;
  max-width: 390px;
  background: var(--glass-card);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--glass-border);
  padding: 24px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-card);
}

.reign-metric-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.reign-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 6px solid var(--ring-track);
  border-top-color: var(--ink);
  border-right-color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reign-ring-val {
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.reign-ring-lbl {
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 3px;
}

.reign-meta-kicker {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.reign-meta-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  color: var(--ink);
  margin: 2px 0 4px;
}

.reign-meta-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.reign-floating-cta {
  margin-top: -12px;
  margin-left: 28px;
  width: calc(100% - 28px);
  max-width: 360px;
  background: var(--glass-cta);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border-strong);
  padding: 18px 20px;
  position: relative;
  z-index: 3;
  box-shadow: var(--shadow-cta);
}

.reign-floating-kicker {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.reign-floating-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.reign-floating-sub {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0 0 14px 0;
}

.reign-floating-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-ghost-box {
  appearance: none;
  border: none;
  background: var(--lg-surface);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--lg-shadow);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.btn-ghost-box:hover {
  color: var(--ink);
  background: var(--lg-surface-hover);
  box-shadow: var(--lg-shadow-hover);
  transform: translateY(-1px);
}

/* Signature Reign Dashed Platform Strip */
.trusted-band {
  border-bottom: 1px dashed var(--dash);
}

.trusted-label {
  text-align: center;
  padding: 20px 16px;
  font-size: 13px;
  color: var(--muted);
  border-bottom: 1px dashed var(--dash);
}

.company-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.company-card {
  appearance: none;
  border: none;
  border-right: 1px dashed var(--dash);
  background: transparent;
  font-family: inherit;
  padding: 34px 26px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  transition: background-color 0.16s ease;
}

.company-card:last-child {
  border-right: none;
}

.company-card:hover {
  background: var(--surface-subtle);
}

.company-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.company-card-title {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.company-card-count {
  font-size: 11.5px;
  color: var(--muted);
}

.company-card-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.company-card-cta {
  font-size: 12.5px;
  color: var(--ink-2);
}

.company-card:hover .company-card-cta {
  color: var(--ink);
}

/* Signature Reign Section 2: Interactive 01-04 Flow with Left Ruler Ticks */
.reign-flow-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  border-bottom: 1px dashed var(--dash);
  position: relative;
}

.reign-flow-left {
  padding: 52px 48px 52px 56px;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--ruler-tick) 0px,
    var(--ruler-tick) 1px,
    transparent 1px,
    transparent 12px
  );
  background-size: 10px 100%;
  background-repeat: no-repeat;
  background-position: left top;
}

.flow-step-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
  display: block;
  border-bottom: 1px dashed var(--dash-soft);
}

.flow-step-btn:last-child {
  border-bottom: none;
}

.flow-step-num {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.15s ease;
}

.flow-step-btn.active .flow-step-num {
  color: var(--ink-2);
}

.flow-step-detail {
  display: none;
  margin-top: 10px;
  min-height: 116px;
}

.flow-step-btn.active .flow-step-detail {
  display: block;
}

.flow-step-detail h3 {
  margin: 0 0 8px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 24px;
  font-weight: 400;
  color: var(--ink);
}

.flow-step-detail p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

.reign-flow-right {
  padding: 48px;
  min-height: 460px;
  border-left: 1px dashed var(--dash);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-stage);
  background-image:
    radial-gradient(var(--dot-color) 1px, transparent 1px),
    radial-gradient(ellipse 65% 50% at 55% 88%, var(--dot-glow), transparent 70%);
  background-size: 8px 8px, 100% 100%;
}

.diagram-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1.05fr;
  align-items: center;
  gap: 18px;
}

.diagram-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.diagram-node {
  appearance: none;
  border: none;
  font-family: inherit;
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--lg-surface);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--lg-shadow);
  font-size: 13px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.14s ease;
}

.diagram-node:hover {
  background: var(--lg-surface-hover);
  box-shadow: var(--lg-shadow-hover);
  color: var(--ink);
  transform: translateY(-1px);
}

.diagram-node.lit {
  background: var(--lg-primary-bg);
  box-shadow: var(--lg-primary-shadow);
  color: var(--ink-inv);
  font-weight: 500;
}

.diagram-connector {
  width: 28px;
  height: 1px;
  border-top: 1px dashed var(--connector-line);
  position: relative;
}

.diagram-connector::after {
  content: "";
  position: absolute;
  right: -3px;
  top: -3.5px;
  width: 6px;
  height: 6px;
  background: var(--ink);
}

.diagram-hub {
  padding: 22px 20px;
  min-height: 138px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--glass-hub);
  border: 1px solid var(--glass-border-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.diagram-hub-title {
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 6px 0;
}

.diagram-hub-sub {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
}

/* ── TAB 2: LISTINGS (Reign Monochrome Dashed Directory) ────────────────── */
.listings-toolbar {
  display: flex;
  justify-content: center;
  padding: 20px 28px;
  border-bottom: 1px dashed var(--dash);
}

.company-bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  background: var(--lg-surface);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--lg-shadow);
  border: none;
  border-radius: 999px;
  overflow-x: auto;
  max-width: 100%;
}

.company-tab {
  appearance: none;
  border: none;
  background: transparent;
  font-family: "Newsreader", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.16s ease;
}

.company-tab:hover {
  color: var(--ink);
  background: var(--lg-surface-hover);
}

.company-tab.active {
  background: var(--lg-primary-bg);
  box-shadow: var(--lg-primary-shadow);
  color: var(--ink-inv);
}

.company-count {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
}

.company-tab.active .company-count {
  color: var(--ink-inv-muted);
}

.directory-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 540px;
}

.cat-rail {
  border-right: 1px dashed var(--dash);
  padding: 24px 20px;
}

.search-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.search-input {
  width: 100%;
  height: 38px;
  padding: 0 12px 0 34px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.search-input:focus {
  border-color: var(--line-strong);
  background: var(--surface-hover);
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  font-size: 12px;
  pointer-events: none;
}

.cat-rail-title {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
  margin: 0 0 10px 10px;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cat-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-family: inherit;
  width: 100%;
  padding: 9px 12px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.cat-btn-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cat-btn-left i {
  width: 15px;
  text-align: center;
  font-size: 12px;
  color: var(--faint);
}

.cat-btn:hover {
  background: var(--lg-surface);
  box-shadow: var(--lg-shadow);
  color: var(--ink);
}

.cat-btn.active {
  background: var(--lg-surface-hover);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--lg-shadow);
  color: var(--ink);
  font-weight: 500;
}

.cat-btn.active .cat-btn-left i {
  color: var(--ink);
}

.cat-count {
  font-size: 11.5px;
  color: var(--faint);
}

.cat-btn.active .cat-count {
  color: var(--ink-2);
}

/* Right Pane — Clean Single-Column Editorial Job Board */
.roles-pane {
  padding: 36px 44px 56px;
}

.company-stage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 4px;
  border-bottom: 1px dashed var(--dash);
}

.company-stage-title {
  margin: 0 0 6px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.company-stage-sub {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.55;
}

/* Crisp Editorial Role Rows (Zero Clutter) */
.role-list {
  display: flex;
  flex-direction: column;
}

.role-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 14px;
  margin-inline: -14px;
  border-bottom: 1px dashed var(--dash);
  border-radius: 3px;
  transition: background-color 0.15s ease;
}

.role-row:hover {
  background: var(--surface-subtle);
}

.role-row-main {
  min-width: 0;
  flex: 1;
}

.role-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.role-title {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

.high-demand-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--lg-primary-bg);
  color: var(--ink-inv);
  font-family: "Inter", sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.role-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.role-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-copy-icon {
  appearance: none;
  border: none;
  background: var(--lg-surface);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow: var(--lg-shadow);
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12.5px;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.btn-copy-icon:hover {
  color: var(--ink);
  background: var(--lg-surface-hover);
  box-shadow: var(--lg-shadow-hover);
  transform: translateY(-1px);
}

.btn-apply-clean {
  text-decoration: none;
  border: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--lg-surface);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--lg-shadow);
  color: var(--ink);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease;
}

.role-row:hover .btn-apply-clean,
.btn-apply-clean:hover {
  background: var(--lg-primary-bg);
  box-shadow: var(--lg-primary-shadow);
  color: var(--ink-inv);
  transform: translateY(-1px);
}

.pane-footnote {
  margin: 22px 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--dash);
}

/* ── TAB 3 & 4: GUIDE & FAQ (Editorial Monochrome) ───────────────────────── */
.editorial-block {
  padding: 52px 56px 64px;
  width: 100%;
}

.editorial-block h1 {
  margin: 0 0 8px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.editorial-sub {
  margin: 0 0 36px 0;
  color: var(--muted);
  font-size: 15px;
}

.guide-timeline {
  border-top: 1px dashed var(--dash);
  margin-bottom: 24px;
}

.guide-card {
  border-bottom: 1px dashed var(--dash);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

.guide-num {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 4px;
}

.guide-card h3 {
  margin: 0 0 6px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--ink);
}

.guide-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

.inline-payout-link {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px dashed var(--line-strong);
  padding-bottom: 1px;
}

.inline-payout-link:hover {
  border-bottom-color: var(--ink);
}

.guide-disclosure {
  font-size: 12.5px;
  color: var(--faint);
  margin: 0;
}

/* Guide Practical Tips Grid */
.tips-section {
  margin-top: 48px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px dashed var(--dash);
  border-left: 1px dashed var(--dash);
}

.tip-card {
  padding: 24px 26px;
  border-right: 1px dashed var(--dash);
  border-bottom: 1px dashed var(--dash);
  background: var(--surface-subtle);
}

.tip-kicker {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 8px;
}

.tip-card h3 {
  margin: 0 0 8px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  color: var(--ink);
}

.tip-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.62;
}

/* Native <details> FAQ */
.accordion {
  border-top: 1px dashed var(--dash);
  margin-bottom: 36px;
}

.accordion details {
  border-bottom: 1px dashed var(--dash);
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 2px;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: "";
  inline-size: 0.85em;
  block-size: 0.85em;
  flex-shrink: 0;
  background-color: var(--muted);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.accordion details[open] > summary::before {
  rotate: 0deg;
  background-color: var(--ink);
}

.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  block-size: 0;
}

.accordion details[open]::details-content {
  block-size: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before {
    transition: rotate 0.2s ease;
  }

  .accordion details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.26s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq-text {
  padding: 0 2px 18px 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Structured 3-Card Legal / Referral / Privacy (KVKK & GDPR) Section */
.legal-section {
  margin-top: 36px;
}

.legal-section-head {
  margin-bottom: 18px;
}

.legal-section-head h2 {
  margin: 0 0 4px 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 23px;
  font-weight: 400;
  color: var(--ink);
}

.legal-section-head p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px dashed var(--dash);
  border-left: 1px dashed var(--dash);
}

.legal-card {
  padding: 22px;
  border-right: 1px dashed var(--dash);
  border-bottom: 1px dashed var(--dash);
  background: var(--surface-subtle);
  position: relative;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.legal-card.is-pulsing {
  z-index: 4;
  animation: legalCardPulse 0.75s ease-in-out 3;
}

@keyframes legalCardPulse {
  0%,
  100% {
    background: var(--surface-subtle);
    transform: scale(1);
    box-shadow: inset 0 0 0 1px transparent;
  }
  50% {
    background: var(--bg-elevated);
    transform: scale(1.018);
    box-shadow:
      inset 0 0 0 2px var(--ink),
      0 0 0 5px var(--surface-active),
      0 14px 36px rgba(0, 0, 0, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-card.is-pulsing {
    animation: none;
    background: var(--bg-elevated);
    box-shadow: inset 0 0 0 2px var(--ink);
  }
}

.legal-card-icon {
  color: var(--ink-2);
  font-size: 15px;
  margin-bottom: 12px;
}

.legal-card h3 {
  margin: 0 0 8px 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.legal-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.legal-closing-note {
  margin: 22px 0 0 0;
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 860px;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px dashed var(--dash);
}

.footer-inner {
  width: min(1220px, 100% - 48px);
  margin-inline: auto;
  border-inline: 1px dashed var(--dash);
  padding: 26px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.footer-brand-wrap {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Newsreader", Georgia, serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.footer-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-sep {
  color: var(--faint);
}

.footer-note {
  font-size: 12.5px;
  color: var(--muted);
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal-links button {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

.footer-legal-links button:hover {
  color: var(--ink);
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero-split,
  .reign-flow-section,
  .directory-grid,
  .role-list,
  .tips-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .company-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-card {
    border-bottom: 1px dashed var(--dash);
  }

  .hero-right,
  .reign-flow-right,
  .cat-rail {
    border-left: none;
    border-right: none;
    border-top: 1px dashed var(--dash);
  }

  .reign-flow-left,
  .reign-flow-right {
    min-height: 360px;
  }

  .cat-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cat-btn {
    width: auto;
    gap: 10px;
    background: var(--lg-surface);
    box-shadow: var(--lg-shadow);
  }

  .hero-left,
  .roles-pane,
  .editorial-block,
  .footer-inner {
    padding-inline: 24px;
  }

  .company-stage-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    width: 100%;
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 10px 8px;
  }

  .brand {
    font-size: 18.5px;
    gap: 8px;
  }

  .header-right {
    gap: 8px;
  }

  .header-right .btn-white {
    display: none;
  }

  .nav-center {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .nav-btn {
    width: 100%;
    height: 34px;
    padding: 0 6px;
    font-size: 12.5px;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .frame {
    width: 100%;
    border-inline: none;
  }

  .hero-left,
  .hero-right,
  .reign-flow-left,
  .reign-flow-right,
  .roles-pane,
  .editorial-block,
  .cat-rail,
  .footer-inner {
    padding: 24px 16px !important;
  }

  .hero-title {
    font-size: clamp(26px, 7.5vw, 34px) !important;
    line-height: 1.16 !important;
  }

  .hero-sub {
    font-size: 14px !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }

  .hero-actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-stats,
  .company-showcase-grid {
    grid-template-columns: 1fr !important;
  }

  .company-card {
    border-right: none !important;
    border-left: none !important;
    padding: 20px 16px !important;
  }

  .reign-flow-left,
  .reign-flow-right {
    min-height: auto !important;
  }

  .reign-floating-cta {
    position: static !important;
    margin: 14px 0 0 !important;
    width: 100%;
    justify-content: center;
  }

  .listings-toolbar,
  .roles-head,
  .platform-group-head {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }

  .search-wrap,
  .search-input {
    width: 100% !important;
    max-width: none !important;
    font-size: 16px !important;
  }

  .directory-grid,
  .directory-grid > *,
  .cat-rail,
  .roles-pane,
  .tab-panel,
  .company-stage-head,
  .role-list,
  .role-row-main {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .company-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
    width: 100% !important;
    overflow: visible !important;
    padding: 12px 16px !important;
  }

  .company-tab {
    width: 100% !important;
    justify-content: space-between !important;
    padding: 9px 12px !important;
    font-size: 12.5px !important;
  }

  .cat-list {
    flex-direction: row;
    flex-wrap: wrap;
    overflow: visible;
    gap: 6px;
    max-width: 100%;
  }

  .cat-btn {
    flex-shrink: 0;
    font-size: 12px;
    padding: 6px 11px;
  }

  .role-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px !important;
  }

  .role-row .btn-white,
  .role-row .role-apply-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .explore-banner {
    flex-direction: column;
    align-items: stretch !important;
    padding: 16px !important;
    gap: 12px;
  }

  .explore-banner .btn-white {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* ── RTL Support (Arabic) — Keeps All Borders & Sizes Identical ──────────── */
html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .hero-right,
html[dir="rtl"] .reign-flow-right {
  border-left: none;
  border-right: 1px dashed var(--dash);
}

html[dir="rtl"] .reign-flow-left {
  padding: 52px 56px 52px 48px;
  background-position: right top;
}

html[dir="rtl"] .flow-step-btn,
html[dir="rtl"] .diagram-node,
html[dir="rtl"] .company-card,
html[dir="rtl"] .cat-btn,
html[dir="rtl"] .lang-option {
  text-align: right;
}

html[dir="rtl"] .company-card {
  border-right: none;
  border-left: 1px dashed var(--dash);
}

html[dir="rtl"] .company-card:last-child {
  border-left: none;
}

html[dir="rtl"] .cat-rail {
  border-right: none;
  border-left: 1px dashed var(--dash);
}

html[dir="rtl"] .search-input {
  padding: 0 34px 0 12px;
}

html[dir="rtl"] .search-icon {
  left: auto;
  right: 11px;
}

html[dir="rtl"] .reign-floating-cta {
  margin-left: 0;
  margin-right: 28px;
}

html { overflow-x: clip; }
.footer-legal-links {
  flex-wrap: wrap;
  row-gap: 10px;
}
@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-legal-links {
    gap: 10px 14px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ORIGINAL REMOTEINDEX EDITORIAL + LIVE ROLE SHOWCASE (v38)
   ═══════════════════════════════════════════════════════════════════════════ */
.ri-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
  padding: 54px 44px 48px;
  border-bottom: 1px solid var(--dash);
}

.ri-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.ri-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--dash);
  background: rgba(255, 255, 255, 0.02);
}
.ri-badge strong { color: var(--ink); font-weight: 600; }
.ri-bdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

.ri-hero-title {
  margin: 0 0 16px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.ri-hero-sub {
  margin: 0 0 26px;
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--muted);
}

.ri-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ri-btn-primary {
  appearance: none;
  border: none;
  background: var(--ink);
  color: var(--ink-inv);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, opacity 0.16s ease;
}
.ri-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.ri-btn-ghost {
  appearance: none;
  background: transparent;
  border: 1px solid var(--dash);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.ri-btn-ghost:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--ink); }
[data-theme="light"] .ri-btn-ghost:hover { background: rgba(0, 0, 0, 0.04); }

.ri-summary-panel {
  border: 1px solid var(--dash);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.018);
}
.ri-summary-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.ri-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ri-stat-tile {
  appearance: none;
  text-align: left;
  border: 1px solid var(--dash);
  border-radius: 12px;
  padding: 14px;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}
.ri-stat-tile:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-1px);
}
.ri-stat-lbl { font-size: 14px; font-weight: 600; color: var(--ink); }
.ri-stat-sub { font-size: 12px; color: var(--muted); }
.ri-summary-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--dash);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.ri-summary-foot a { color: var(--ink); text-decoration: none; font-weight: 500; }
.ri-summary-foot a:hover { text-decoration: underline; }

/* Featured Roles Showcase */
.ri-showcase {
  padding: 44px;
  border-bottom: 1px solid var(--dash);
}
.ri-showcase-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.ri-showcase-title {
  margin: 0 0 6px;
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  color: var(--ink);
}
.ri-showcase-sub { margin: 0; font-size: 14.5px; color: var(--muted); }

.ri-domain-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--dash);
  border-radius: 999px;
  margin-bottom: 24px;
}
.ri-dtab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.ri-dtab:hover { color: var(--ink); }
.ri-dtab.active {
  background: var(--ink);
  color: var(--ink-inv);
}

.ri-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.ri-role-card {
  border: 1px solid var(--dash);
  border-radius: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 215px;
  transition: border-color 0.16s ease, transform 0.15s ease, background 0.16s ease;
}
.ri-role-card:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}
.ri-role-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ri-role-plat {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--dash);
  color: var(--ink);
}
.ri-role-loc { font-size: 11.5px; color: var(--muted); }
.ri-role-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}
.ri-role-desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ri-role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.ri-role-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
[data-theme="light"] .ri-role-tag { background: rgba(0, 0, 0, 0.05); }
.ri-role-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--dash);
}
.ri-role-pay { font-size: 12px; color: var(--muted); font-weight: 500; }
.ri-role-apply {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.ri-role-apply:hover { text-decoration: underline; }

/* Contract Income Simulator */
.ri-calc-section {
  padding: 40px 44px;
  border-bottom: 1px solid var(--dash);
}
.ri-calc-card {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: 28px;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--dash);
  background: rgba(255, 255, 255, 0.015);
}
.ri-calc-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}
.ri-calc-title {
  margin: 0 0 8px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--ink);
}
.ri-calc-sub { margin: 0 0 20px; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.ri-slider-group { margin-bottom: 16px; }
.ri-slider-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--muted);
}
.ri-slider-row strong { color: var(--ink); font-size: 15px; }
.ri-slider-group input[type="range"] { width: 100%; accent-color: var(--ink); cursor: pointer; }
.ri-calc-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--dash);
  background: rgba(255, 255, 255, 0.02);
}
.ri-calc-stat-lbl { font-size: 12px; color: var(--muted); display: block; margin-bottom: 4px; }
.ri-calc-stat-val { font-size: 34px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.ri-calc-stat-sm { font-size: 20px; color: var(--muted); }

@media (max-width: 960px) {
  .ri-hero { grid-template-columns: 1fr; padding: 36px 24px; }
  .ri-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ri-calc-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ri-hero { padding: 28px 16px; }
  .ri-showcase { padding: 28px 16px; }
  .ri-calc-section { padding: 24px 16px; }
  .ri-domain-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 14px; width: 100%; }
  .ri-role-grid { grid-template-columns: 1fr; }
  .ri-calc-card { padding: 18px 16px; }
  .ri-calc-stat-val { font-size: 28px; }
}

/* ── BALANCED MATTE ACCENT PALETTE + UNIFIED FOOTER + POLISHED ROLES (v42) ── */
.ri-badge-moss { background: rgba(46, 122, 88, 0.16); border-color: rgba(82, 168, 128, 0.34); }
.ri-badge-slate { background: rgba(54, 108, 134, 0.16); border-color: rgba(94, 152, 180, 0.34); }
.ri-badge-stone { background: rgba(136, 102, 68, 0.16); border-color: rgba(182, 144, 104, 0.34); }

.ri-tile-teal { background: rgba(44, 108, 118, 0.16); border-color: rgba(88, 156, 168, 0.32); }
.ri-tile-indigo { background: rgba(76, 82, 146, 0.17); border-color: rgba(124, 130, 198, 0.32); }
.ri-tile-moss { background: rgba(48, 114, 84, 0.16); border-color: rgba(92, 164, 130, 0.32); }
.ri-tile-stone { background: rgba(128, 98, 66, 0.16); border-color: rgba(176, 142, 104, 0.32); }

.ri-card-teal { background: linear-gradient(155deg, rgba(44, 104, 116, 0.19), rgba(255, 255, 255, 0.015)); border-color: rgba(92, 154, 168, 0.30); }
.ri-card-indigo { background: linear-gradient(155deg, rgba(76, 80, 142, 0.19), rgba(255, 255, 255, 0.015)); border-color: rgba(126, 132, 196, 0.30); }
.ri-card-stone { background: linear-gradient(155deg, rgba(124, 96, 66, 0.19), rgba(255, 255, 255, 0.015)); border-color: rgba(174, 142, 106, 0.30); }
.ri-card-moss { background: linear-gradient(155deg, rgba(48, 108, 82, 0.19), rgba(255, 255, 255, 0.015)); border-color: rgba(94, 160, 130, 0.30); }

.ri-role-pay { color: #8fd4b8; font-weight: 600; font-size: 13px; }
.ri-calc-right { background: linear-gradient(155deg, rgba(76, 84, 138, 0.18), rgba(44, 106, 98, 0.13)); border-color: rgba(124, 136, 192, 0.30); }

[data-theme="light"] .ri-badge-moss { background: rgba(43, 110, 82, 0.11); border-color: rgba(43, 110, 82, 0.28); }
[data-theme="light"] .ri-badge-slate { background: rgba(38, 96, 124, 0.11); border-color: rgba(38, 96, 124, 0.28); }
[data-theme="light"] .ri-badge-stone { background: rgba(133, 96, 62, 0.11); border-color: rgba(133, 96, 62, 0.28); }
[data-theme="light"] .ri-tile-teal, [data-theme="light"] .ri-card-teal { background: rgba(36, 102, 114, 0.095); border-color: rgba(36, 102, 114, 0.24); }
[data-theme="light"] .ri-tile-indigo, [data-theme="light"] .ri-card-indigo { background: rgba(71, 76, 143, 0.095); border-color: rgba(71, 76, 143, 0.24); }
[data-theme="light"] .ri-tile-moss, [data-theme="light"] .ri-card-moss { background: rgba(43, 110, 82, 0.095); border-color: rgba(43, 110, 82, 0.24); }
[data-theme="light"] .ri-tile-stone, [data-theme="light"] .ri-card-stone { background: rgba(133, 96, 62, 0.095); border-color: rgba(133, 96, 62, 0.24); }
[data-theme="light"] .ri-summary-panel, [data-theme="light"] .ri-calc-card { background: rgba(244, 243, 239, 0.85); }
[data-theme="light"] .ri-role-pay { color: #1f5c45; }
[data-theme="light"] .ri-calc-right { background: rgba(71, 76, 143, 0.085); border-color: rgba(71, 76, 143, 0.24); }

/* Polished Roles Tab Cards (matching subpage card elegance) */
.role-row {
  border: 1px solid var(--dash) !important;
  border-radius: 14px !important;
  padding: 18px 20px !important;
  margin-bottom: 12px !important;
  background: rgba(255, 255, 255, 0.018) !important;
  transition: border-color 0.16s ease, transform 0.14s ease, background 0.16s ease !important;
}
.role-row:hover {
  border-color: var(--ink) !important;
  transform: translateY(-1px);
  background: rgba(68, 108, 118, 0.07) !important;
}
[data-theme="light"] .role-row {
  background: rgba(244, 243, 239, 0.82) !important;
}
[data-theme="light"] .role-row:hover {
  background: rgba(36, 102, 114, 0.07) !important;
}

/* Unified Identical Footer Across All 56 Pages */
.ri-footer-unified {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 14px !important;
  padding-top: 22px !important;
  padding-bottom: 24px !important;
}
.ri-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.ri-footer-hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--dash-soft);
  font-size: 12.5px;
}
.ri-footer-hubs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ri-footer-hubs a:hover { color: var(--ink); }

/* ── STICKY TRANSLUCENT FROSTED HEADER (v42) ──────────────────────────────── */
.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
  backdrop-filter: blur(18px) saturate(165%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(165%) !important;
  background: rgba(17, 18, 20, 0.72) !important;
}
[data-theme="light"] .site-header {
  background: rgba(236, 235, 230, 0.78) !important;
}

/* ── COHESIVE MATTE ACCENTS FOR ROLES, GUIDE & FAQ TABS (v43) ─────────────── */
/* Roles Tab (.role-row & .explore-banner) */
.role-row:nth-child(4n + 1) { background: linear-gradient(155deg, rgba(44, 104, 116, 0.13), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(92, 154, 168, 0.24) !important; }
.role-row:nth-child(4n + 2) { background: linear-gradient(155deg, rgba(76, 80, 142, 0.13), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(126, 132, 196, 0.24) !important; }
.role-row:nth-child(4n + 3) { background: linear-gradient(155deg, rgba(48, 108, 82, 0.13), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(94, 160, 130, 0.24) !important; }
.role-row:nth-child(4n + 4) { background: linear-gradient(155deg, rgba(124, 96, 66, 0.13), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(174, 142, 106, 0.24) !important; }

[data-theme="light"] .role-row:nth-child(4n + 1) { background: rgba(36, 102, 114, 0.075) !important; border-color: rgba(36, 102, 114, 0.20) !important; }
[data-theme="light"] .role-row:nth-child(4n + 2) { background: rgba(71, 76, 143, 0.075) !important; border-color: rgba(71, 76, 143, 0.20) !important; }
[data-theme="light"] .role-row:nth-child(4n + 3) { background: rgba(43, 110, 82, 0.075) !important; border-color: rgba(43, 110, 82, 0.20) !important; }
[data-theme="light"] .role-row:nth-child(4n + 4) { background: rgba(133, 96, 62, 0.075) !important; border-color: rgba(133, 96, 62, 0.20) !important; }

/* Guide Tab (.guide-card & .tip-card) */
.guide-card, .tip-card {
  border-radius: 14px !important;
  transition: border-color 0.16s ease, transform 0.14s ease !important;
}
.guide-card:nth-child(4n + 1), .tip-card:nth-child(4n + 1) { background: linear-gradient(155deg, rgba(44, 104, 116, 0.14), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(92, 154, 168, 0.26) !important; }
.guide-card:nth-child(4n + 2), .tip-card:nth-child(4n + 2) { background: linear-gradient(155deg, rgba(76, 80, 142, 0.14), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(126, 132, 196, 0.26) !important; }
.guide-card:nth-child(4n + 3), .tip-card:nth-child(4n + 3) { background: linear-gradient(155deg, rgba(48, 108, 82, 0.14), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(94, 160, 130, 0.26) !important; }
.guide-card:nth-child(4n + 4), .tip-card:nth-child(4n + 4) { background: linear-gradient(155deg, rgba(124, 96, 66, 0.14), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(174, 142, 106, 0.26) !important; }

[data-theme="light"] .guide-card:nth-child(4n + 1), [data-theme="light"] .tip-card:nth-child(4n + 1) { background: rgba(36, 102, 114, 0.08) !important; border-color: rgba(36, 102, 114, 0.22) !important; }
[data-theme="light"] .guide-card:nth-child(4n + 2), [data-theme="light"] .tip-card:nth-child(4n + 2) { background: rgba(71, 76, 143, 0.08) !important; border-color: rgba(71, 76, 143, 0.22) !important; }
[data-theme="light"] .guide-card:nth-child(4n + 3), [data-theme="light"] .tip-card:nth-child(4n + 3) { background: rgba(43, 110, 82, 0.08) !important; border-color: rgba(43, 110, 82, 0.22) !important; }
[data-theme="light"] .guide-card:nth-child(4n + 4), [data-theme="light"] .tip-card:nth-child(4n + 4) { background: rgba(133, 96, 62, 0.08) !important; border-color: rgba(133, 96, 62, 0.22) !important; }

/* FAQ & Legal Cards (.legal-card & .accordion-item / .faq-item) */
.legal-card { border-radius: 14px !important; }
.legal-card:nth-child(4n + 1) { background: linear-gradient(155deg, rgba(44, 104, 116, 0.14), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(92, 154, 168, 0.26) !important; }
.legal-card:nth-child(4n + 2) { background: linear-gradient(155deg, rgba(76, 80, 142, 0.14), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(126, 132, 196, 0.26) !important; }
.legal-card:nth-child(4n + 3) { background: linear-gradient(155deg, rgba(48, 108, 82, 0.14), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(94, 160, 130, 0.26) !important; }
.legal-card:nth-child(4n + 4) { background: linear-gradient(155deg, rgba(124, 96, 66, 0.14), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(174, 142, 106, 0.26) !important; }

[data-theme="light"] .legal-card:nth-child(4n + 1) { background: rgba(36, 102, 114, 0.08) !important; border-color: rgba(36, 102, 114, 0.22) !important; }
[data-theme="light"] .legal-card:nth-child(4n + 2) { background: rgba(71, 76, 143, 0.08) !important; border-color: rgba(71, 76, 143, 0.22) !important; }
[data-theme="light"] .legal-card:nth-child(4n + 3) { background: rgba(43, 110, 82, 0.08) !important; border-color: rgba(43, 110, 82, 0.22) !important; }
[data-theme="light"] .legal-card:nth-child(4n + 4) { background: rgba(133, 96, 62, 0.08) !important; border-color: rgba(133, 96, 62, 0.22) !important; }

.accordion .acc-item, .accordion details {
  border-radius: 12px;
  border: 1px solid var(--dash);
  padding-inline: 16px;
  margin-bottom: 10px;
  background: rgba(68, 108, 118, 0.055);
}
[data-theme="light"] .accordion .acc-item, [data-theme="light"] .accordion details {
  background: rgba(36, 102, 114, 0.05);
}

/* Home Company Cards subtle matte harmony */
.company-card:nth-child(4n + 1) { background: linear-gradient(155deg, rgba(44, 104, 116, 0.13), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(92, 154, 168, 0.24) !important; }
.company-card:nth-child(4n + 2) { background: linear-gradient(155deg, rgba(76, 80, 142, 0.13), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(126, 132, 196, 0.24) !important; }
.company-card:nth-child(4n + 3) { background: linear-gradient(155deg, rgba(48, 108, 82, 0.13), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(94, 160, 130, 0.24) !important; }
.company-card:nth-child(4n + 4) { background: linear-gradient(155deg, rgba(124, 96, 66, 0.13), rgba(255, 255, 255, 0.01)) !important; border-color: rgba(174, 142, 106, 0.24) !important; }
[data-theme="light"] .company-card:nth-child(4n + 1) { background: rgba(36, 102, 114, 0.075) !important; border-color: rgba(36, 102, 114, 0.20) !important; }
[data-theme="light"] .company-card:nth-child(4n + 2) { background: rgba(71, 76, 143, 0.075) !important; border-color: rgba(71, 76, 143, 0.20) !important; }
[data-theme="light"] .company-card:nth-child(4n + 3) { background: rgba(43, 110, 82, 0.075) !important; border-color: rgba(43, 110, 82, 0.20) !important; }
[data-theme="light"] .company-card:nth-child(4n + 4) { background: rgba(133, 96, 62, 0.075) !important; border-color: rgba(133, 96, 62, 0.20) !important; }

/* ── GUIDE TIMELINE BREATHING ROOM & CRISP CARD ALIGNMENT (v44) ───────────── */
.guide-timeline {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  border-top: none !important;
}
.guide-card {
  padding: 22px 26px !important;
  border: 1px solid var(--dash) !important;
  border-radius: 14px !important;
  margin: 0 !important;
  align-items: flex-start !important;
}
.guide-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--dash);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12.5px !important;
  font-weight: 600;
  color: var(--ink) !important;
  flex-shrink: 0;
}
[data-theme="light"] .guide-num {
  background: rgba(255, 255, 255, 0.55);
}
@media (max-width: 640px) {
  .guide-card { padding: 18px 16px !important; }
}

/* ── VERIFIED USD PAY BADGE ON ROLES CARDS (v45) ──────────────────────────── */
.role-pay-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  background: rgba(46, 138, 96, 0.18);
  border: 1px solid rgba(92, 188, 142, 0.36);
  color: #9be0c0;
}
[data-theme="light"] .role-pay-pill {
  background: rgba(34, 114, 78, 0.12);
  border-color: rgba(34, 114, 78, 0.30);
  color: #19593e;
}

/* ── COMPACT 2-COLUMN RECTANGULAR CARD GRID FOR ROLES TAB (v48) ───────────── */
@property --ri-spin {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}
@keyframes ri-border-spin {
  to { --ri-spin: 360deg; }
}
.role-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
  padding-top: 8px;
  padding-right: 8px;
}
.role-row {
  position: relative;
  overflow: visible !important;
  margin-inline: 0 !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 15px 17px !important;
  border-radius: 14px !important;
  min-height: 122px;
}
.role-row.is-featured::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--ri-spin),
    transparent 0deg,
    transparent 240deg,
    rgba(245, 184, 0, 0.55) 305deg,
    rgba(255, 224, 102, 0.92) 340deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: ri-border-spin 5.5s linear infinite;
  z-index: 1;
}
[data-theme="light"] .role-row.is-featured::before {
  background: conic-gradient(
    from var(--ri-spin),
    transparent 0deg,
    transparent 235deg,
    rgba(218, 152, 0, 0.52) 305deg,
    rgba(245, 184, 0, 0.95) 340deg,
    transparent 360deg
  );
}
.role-row-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1;
}
.role-title-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 2px !important;
}
.role-row.is-featured .role-title-row {
  padding-right: 16px;
}
.role-title {
  font-size: 17.5px !important;
  line-height: 1.28 !important;
  flex: 1;
  min-width: 0;
}
.role-star-box {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #17191e;
  border: 1.5px solid rgba(245, 184, 0, 0.65);
  color: #facc15;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), 0 0 10px rgba(245, 184, 0, 0.22);
  cursor: default;
  z-index: 3;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.role-star-box svg {
  display: block;
  filter: drop-shadow(0 1px 2px rgba(180, 120, 0, 0.35));
}
.role-row:hover .role-star-box {
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 14px rgba(245, 184, 0, 0.36);
}
[data-theme="light"] .role-star-box {
  background: #fbfaf6;
  border-color: rgba(234, 170, 0, 0.72);
  color: #eab308;
  box-shadow: 0 3px 9px rgba(45, 38, 22, 0.12), 0 0 0 2px rgba(245, 184, 0, 0.14);
}
[data-theme="light"] .role-row:hover .role-star-box {
  box-shadow: 0 4px 12px rgba(45, 38, 22, 0.16), 0 0 0 3px rgba(245, 184, 0, 0.22);
}
@media (prefers-reduced-motion: reduce) {
  .role-row.is-featured::before { animation: none; }
}
.role-meta {
  font-size: 12.5px !important;
  line-height: 1.45 !important;
}
.role-actions {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed var(--dash);
  margin-top: auto;
  width: 100%;
}
.role-foot-btns {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.role-actions .btn-apply-clean,
.role-actions .btn-white {
  padding: 6px 14px !important;
  font-size: 12.5px !important;
}
.role-actions .btn-detail-clean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--dash);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.role-actions .btn-detail-clean:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .role-actions .btn-detail-clean {
  border-color: rgba(24, 24, 27, 0.18);
  color: #44444a;
}
[data-theme="light"] .role-actions .btn-detail-clean:hover {
  border-color: #18181b;
  color: #18181b;
  background: rgba(24, 24, 27, 0.06);
}
.role-actions .btn-copy-icon {
  width: 31px !important;
  height: 31px !important;
}
@media (max-width: 760px) {
  .role-list {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .role-row {
    min-height: auto;
    padding: 14px 15px !important;
  }
}

/* ── ALIGNERR-STYLE SIDEBAR ICON BOXES & FUNNEL FILTER POPOVER (v51) ──────── */
@media (min-width: 901px) {
  .cat-rail {
    position: sticky;
    top: 66px;
    align-self: start;
    padding: 24px 20px !important;
  }
}
.cat-rail .search-wrap {
  margin-bottom: 20px !important;
}
.cat-rail .search-input {
  height: 38px !important;
  font-size: 13px !important;
}
.cat-rail .cat-rail-title {
  margin: 0 0 10px 10px !important;
  font-size: 10.5px !important;
}
.cat-rail .cat-list {
  gap: 4px !important;
}
.cat-rail .cat-btn {
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  line-height: 1.3 !important;
}
.cat-rail .cat-btn-left {
  gap: 10px !important;
}
.cat-icon-box {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--dash);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.cat-icon-box svg {
  width: 14px;
  height: 14px;
  display: block;
}
.stage-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.funnel-wrap {
  position: relative;
}
.funnel-trigger {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--dash);
  background: var(--lg-surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.14s ease;
}
.funnel-trigger:hover {
  border-color: var(--ink);
}
.funnel-trigger.has-active {
  border-color: rgba(245, 184, 0, 0.6);
  background: rgba(245, 184, 0, 0.10);
}
[data-theme="light"] .funnel-trigger {
  background: #ffffff;
  border-color: rgba(24, 24, 27, 0.18);
  color: #18181b;
  box-shadow: 0 2px 6px rgba(24, 24, 27, 0.06);
}
[data-theme="light"] .funnel-trigger:hover {
  border-color: rgba(24, 24, 27, 0.45);
}
[data-theme="light"] .funnel-trigger.has-active {
  border-color: rgba(218, 152, 0, 0.65);
  background: rgba(245, 184, 0, 0.12);
}
.funnel-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: #eab308;
  color: #111214;
}
.funnel-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 248px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--dash);
  background: #16181d;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
  z-index: 40;
}
[data-theme="light"] .funnel-popover {
  background: #faf9f5;
  border-color: rgba(24, 24, 27, 0.15);
  box-shadow: 0 16px 38px rgba(24, 24, 27, 0.14);
}
.funnel-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.funnel-pop-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
  margin-bottom: 8px;
}
.funnel-pop-head .funnel-pop-label {
  margin-bottom: 0;
}
.funnel-reset-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #eab308;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 4px;
}
.funnel-reset-btn:hover {
  text-decoration: underline;
}
.cat-btn:hover .cat-icon-box {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ink);
}
.cat-btn.active .cat-icon-box {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
  color: inherit;
}
[data-theme="light"] .cat-icon-box {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(24, 24, 27, 0.14);
  color: #52525b;
}
[data-theme="light"] .cat-btn:hover .cat-icon-box {
  border-color: rgba(24, 24, 27, 0.30);
  color: #18181b;
}
[data-theme="light"] .cat-btn.active .cat-icon-box {
  background: rgba(24, 24, 27, 0.08);
  border-color: rgba(24, 24, 27, 0.24);
  color: #18181b;
}
.quick-filter-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--dash);
}
.qf-section-title {
  margin-top: 10px !important;
  margin-bottom: 6px !important;
}
.qf-section-title:first-child {
  margin-top: 0 !important;
}
.qf-sort-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  border: 1px solid var(--dash);
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .qf-sort-bar {
  background: rgba(24, 24, 27, 0.04);
}
.qf-sort-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 11.8px;
  font-weight: 500;
  padding: 5px 7px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.qf-sort-btn:hover {
  color: var(--ink);
}
.qf-sort-btn.active {
  background: var(--lg-surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .qf-sort-btn.active {
  background: #ffffff;
  color: #18181b;
  box-shadow: 0 1px 4px rgba(24, 24, 27, 0.10);
}
.qf-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.qf-toggle-btn {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid var(--dash);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.qf-toggle-btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--ink);
}
.qf-toggle-btn.active {
  border-color: rgba(245, 184, 0, 0.55);
  background: rgba(245, 184, 0, 0.10);
  color: var(--ink);
  font-weight: 600;
}
[data-theme="light"] .qf-toggle-btn:hover {
  border-color: rgba(24, 24, 27, 0.28);
  color: #18181b;
}
[data-theme="light"] .qf-toggle-btn.active {
  border-color: rgba(218, 152, 0, 0.55);
  background: rgba(245, 184, 0, 0.12);
  color: #18181b;
}
.qf-toggle-left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qf-mini-star,
.qf-mini-usd {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.qf-mini-star {
  background: rgba(245, 184, 0, 0.16);
  color: #eab308;
  border: 1px solid rgba(245, 184, 0, 0.35);
}
.qf-mini-usd {
  background: rgba(46, 138, 96, 0.16);
  color: #34a873;
  border: 1px solid rgba(46, 138, 96, 0.34);
}
[data-theme="light"] .qf-mini-usd {
  color: #19593e;
}

/* ── SIGNATURE HOVER BORDER-BEAM ANIMATION ON KEY INTERACTIVE FRAMES (v54) ── */
.seo-mini-link,
.seo-role-card,
.seo-cta-panel,
.ri-role-card,
.ri-tile,
.ri-btn-ghost,
.funnel-trigger,
.btn-detail-clean {
  position: relative;
}
.seo-mini-link::before,
.seo-role-card::before,
.seo-cta-panel::before,
.ri-role-card::before,
.ri-tile::before,
.ri-btn-ghost::before,
.funnel-trigger::before,
.btn-detail-clean::before,
.role-row:not(.is-featured)::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--ri-spin),
    transparent 0deg,
    transparent 215deg,
    rgba(142, 212, 228, 0.48) 275deg,
    rgba(245, 200, 102, 0.88) 325deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
  z-index: 1;
}
[data-theme="light"] .seo-mini-link::before,
[data-theme="light"] .seo-role-card::before,
[data-theme="light"] .seo-cta-panel::before,
[data-theme="light"] .ri-role-card::before,
[data-theme="light"] .ri-tile::before,
[data-theme="light"] .ri-btn-ghost::before,
[data-theme="light"] .funnel-trigger::before,
[data-theme="light"] .btn-detail-clean::before,
[data-theme="light"] .role-row:not(.is-featured)::before {
  background: conic-gradient(
    from var(--ri-spin),
    transparent 0deg,
    transparent 215deg,
    rgba(36, 102, 114, 0.45) 275deg,
    rgba(202, 138, 4, 0.85) 325deg,
    transparent 360deg
  );
}
.seo-mini-link:hover::before,
.seo-role-card:hover::before,
.seo-cta-panel:hover::before,
.ri-role-card:hover::before,
.ri-tile:hover::before,
.ri-btn-ghost:hover::before,
.funnel-trigger:hover::before,
.btn-detail-clean:hover::before,
.role-row:not(.is-featured):hover::before {
  opacity: 1;
  animation: ri-border-spin 3.8s linear infinite;
}
.seo-mini-link:hover,
.seo-role-card:hover,
.ri-btn-ghost:hover,
.funnel-trigger:hover,
.btn-detail-clean:hover {
  border-color: transparent !important;
}
@media (prefers-reduced-motion: reduce) {
  .seo-mini-link:hover::before,
  .seo-role-card:hover::before,
  .seo-cta-panel:hover::before,
  .ri-role-card:hover::before,
  .ri-tile:hover::before,
  .ri-btn-ghost:hover::before,
  .funnel-trigger:hover::before,
  .btn-detail-clean:hover::before,
  .role-row:not(.is-featured):hover::before {
    animation: none;
  }
}
