/* ============================================================
   HardCrow — premium design system (v2)
   Dark charcoal · cool-blue accent · spacious · minimal.
   Plain CSS, no build step. One cohesive token-driven system.

   Sections
     1.  Tokens
     2.  Reset & base
     3.  Utilities
     4.  Ambient light & backgrounds
     5.  Surfaces (cards / glass)
     6.  Buttons
     7.  Badges
     8.  Forms
     9.  Header & navigation
     10. Hero & product preview
     11. Sections / features / platform
     12. Product grid & cards
     13. Page scaffolding & product detail
     14. Auth
     15. Dashboard shell
     16. Dashboard widgets
     17. Settings
     18. Tool workspace / success / 404
     19. Footer
     20. Toast & overlays
     21. Animations & skeletons
     22. AI Job Finder workspace
     23. Administration — enterprise control centre
   ============================================================ */

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  /* Surfaces — dark charcoal, faintly cool. Never pure black. */
  --bg: #0a0b0e;
  --bg-soft: #0c0d11;
  --surface: #111319;
  --surface-2: #15171e;
  --surface-3: #1b1d26;
  --elevated: #14161d;

  /* Text */
  --text: #f4f5f7;
  --muted: #9ba0ab;
  --faint: #6a6f7b;

  /* Accent — cool blue, used sparingly */
  --accent: #6f9bf2;
  --accent-strong: #aecafc;
  --accent-dim: #5277cf;
  --accent-soft: rgba(111, 155, 242, 0.12);
  --accent-line: rgba(111, 155, 242, 0.32);

  /* Semantic */
  --danger: #ec7d76;
  --success: #62cd9b;
  --warn: #e3bd7e;

  /* Hairlines */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.18);

  /* Radii */
  --r-xs: 7px;
  --r-sm: 10px;
  --r: 14px;
  --radius: 16px; /* card default */
  --r-lg: 20px;
  --r-xl: 26px;

  /* Shadows — soft, premium, never harsh */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  --ring: 0 0 0 1px var(--accent-line), 0 0 0 4px rgba(111, 155, 242, 0.16);

  /* Spacing scale (reference) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 240ms;
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Soft ambient premium lighting — a single, faint cool glow up top. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(60rem 38rem at 50% -16rem, rgba(111, 155, 242, 0.08), transparent 70%),
    radial-gradient(50rem 40rem at 82% 8%, rgba(111, 155, 242, 0.04), transparent 72%);
}

::selection {
  background: rgba(111, 155, 242, 0.26);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}
svg {
  display: block;
}
img {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}

/* Scrollbar — slim, quiet */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
  background-clip: content-box;
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 10px;
}

/* ============================================================
   3. Utilities
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.muted {
  color: var(--muted);
}
.faint {
  color: var(--faint);
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-feature-settings: "calt" 0;
}
.center {
  text-align: center;
}
.hidden {
  display: none !important;
}
.sm {
  font-size: 0.75rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-strong);
}

.grad {
  background: linear-gradient(180deg, #ffffff 0%, #9aa0ac 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ============================================================
   4. Ambient light & backgrounds
   ============================================================ */
.bg-wrap {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
/* faint masked grid — adds depth, never noise */
.bg-grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.5;
}
/* soft cool glow */
.bg-glow {
  position: absolute;
  top: -18rem;
  left: 50%;
  width: 60rem;
  height: 40rem;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(111, 155, 242, 0.12), transparent 70%);
  filter: blur(8px);
}

/* ============================================================
   5. Surfaces (cards / glass)
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.04),
    var(--shadow);
}

/* ============================================================
   6. Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.35rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 550;
  font-family: inherit;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  background: none;
  color: var(--text);
  transition:
    background var(--t) var(--ease),
    border-color var(--t) var(--ease),
    color var(--t) var(--ease),
    transform 120ms var(--ease),
    box-shadow var(--t) var(--ease);
  white-space: nowrap;
  user-select: none;
}
.btn svg {
  width: 1rem;
  height: 1rem;
  transition: transform var(--t) var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.btn-sm {
  height: 2.25rem;
  padding: 0 0.95rem;
  font-size: 0.82rem;
  border-radius: 10px;
}
.btn-lg {
  height: 3.1rem;
  padding: 0 1.7rem;
  font-size: 0.95rem;
  border-radius: 13px;
}
.btn-block {
  width: 100%;
}

.btn-primary {
  background: #f4f5f7;
  color: #0a0b0e;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.6),
    0 8px 24px -12px rgba(255, 255, 255, 0.3);
}
.btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7),
    0 12px 30px -12px rgba(255, 255, 255, 0.4);
}
.btn-primary:hover svg {
  transform: translateX(2px);
}
.btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.btn-secondary {
  border-color: var(--line-2);
  background: var(--surface-2);
}
.btn-secondary:hover {
  border-color: var(--line-3);
  background: var(--surface-3);
}

.btn-outline {
  border-color: var(--line-2);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.btn-ghost:hover svg {
  transform: translateX(2px);
}

.btn-danger {
  border-color: rgba(236, 125, 118, 0.3);
  background: rgba(236, 125, 118, 0.08);
  color: var(--danger);
}
.btn-danger:hover {
  background: rgba(236, 125, 118, 0.16);
  border-color: rgba(236, 125, 118, 0.45);
}

/* ============================================================
   7. Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.badge svg {
  width: 0.8rem;
  height: 0.8rem;
}
.badge-ai {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.badge-script {
  border-color: rgba(227, 189, 126, 0.28);
  background: rgba(227, 189, 126, 0.1);
  color: var(--warn);
}
.badge-saas,
.badge-success {
  border-color: rgba(98, 205, 155, 0.28);
  background: rgba(98, 205, 155, 0.1);
  color: var(--success);
}
.badge-tool {
  border-color: var(--line-3);
  color: var(--text);
}
.badge-danger {
  border-color: rgba(236, 125, 118, 0.3);
  background: rgba(236, 125, 118, 0.1);
  color: var(--danger);
}

/* ============================================================
   8. Forms
   ============================================================ */
.field {
  margin-bottom: 1.25rem;
}
.label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.78rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.input {
  width: 100%;
  height: 2.85rem;
  padding: 0 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition:
    border-color var(--t) var(--ease),
    background var(--t) var(--ease),
    box-shadow var(--t) var(--ease);
}
.input::placeholder {
  color: var(--faint);
}
.input:hover {
  border-color: var(--line-3);
}
.input:focus {
  outline: none;
  border-color: var(--accent-line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 4px rgba(111, 155, 242, 0.12);
}
.input.invalid {
  border-color: rgba(236, 125, 118, 0.6);
}
.input-wrap {
  position: relative;
}
.input-wrap .toggle {
  position: absolute;
  inset: 0 0 0 auto;
  width: 2.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--faint);
  cursor: pointer;
  background: none;
  border: none;
  transition: color var(--t) var(--ease);
}
.input-wrap .toggle:hover {
  color: var(--text);
}
.help {
  margin-top: 0.55rem;
  font-size: 0.76rem;
  color: var(--faint);
}
.form-error {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(236, 125, 118, 0.3);
  background: rgba(236, 125, 118, 0.1);
  color: var(--danger);
  font-size: 0.84rem;
}
.form-note {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  font-size: 0.76rem;
  color: var(--faint);
  text-align: center;
}

/* ============================================================
   9. Header & navigation
   ============================================================ */
header.site {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
header.site.scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 11, 14, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 0.1rem;
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.nav-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.menu-btn:hover {
  color: var(--text);
  border-color: var(--line-2);
}
@media (min-width: 880px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
}
.mobile-sheet {
  border-top: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.mobile-sheet nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 0 1.5rem;
}
.mobile-sheet a.mlink {
  padding: 0.8rem 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.mobile-sheet a.mlink:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.mobile-sheet .actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

/* ============================================================
   10. Hero & product preview
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 9.5rem;
}
@media (min-width: 880px) {
  .hero {
    padding-top: 11rem;
  }
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-inner {
  max-width: 46rem;
  text-align: left;
}
h1.hero-title {
  font-size: clamp(3rem, 9vw, 5.75rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.hero-sub {
  max-width: 33rem;
  margin: 1.85rem 0 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  line-height: 1.55;
  color: var(--muted);
}
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.6rem;
}
.hero .hero-actions {
  justify-content: flex-start;
}

/* Full-bleed angled product preview */
.hero-stage {
  position: relative;
  margin-top: clamp(3.5rem, 7vw, 6rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
}
.hero-stage::before {
  content: "";
  position: absolute;
  left: 6%;
  top: -2%;
  width: 62%;
  height: 72%;
  background: radial-gradient(closest-side, rgba(111, 155, 242, 0.16), transparent 72%);
  filter: blur(34px);
  z-index: 0;
  pointer-events: none;
}
.hero-stage-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
  perspective: 2400px;
}
@media (min-width: 768px) {
  .hero-stage-inner {
    padding: 0 2rem;
  }
}
.hero-preview {
  position: relative;
  width: 128%;
  max-width: none;
  margin: 0;
  padding-bottom: 2rem;
  transform: rotateX(3deg) rotateY(-14deg) rotateZ(3.5deg);
  transform-origin: left top;
}
@media (max-width: 720px) {
  .hero-preview {
    width: 114%;
    transform: rotateX(2deg) rotateY(-8deg) rotateZ(2deg);
  }
}
.hp-window {
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg), inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.hp-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.hp-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}
.hp-url {
  margin: 0 auto;
  font-size: 0.72rem;
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  padding: 0.25rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.hp-body {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 22rem;
}
@media (min-width: 720px) {
  .hp-body {
    grid-template-columns: 220px 1fr;
    min-height: 24rem;
  }
}
.hp-side {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.1rem 0.85rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
@media (min-width: 720px) {
  .hp-side {
    display: flex;
  }
}
.hp-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 0.35rem 0.5rem 1.1rem;
}
.hp-navwrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.hp-nav {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 9px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
}
.hp-nav svg {
  color: var(--faint);
}
.hp-nav.on {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.hp-nav.on svg {
  color: var(--accent-strong);
}
.hp-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.5rem 0.2rem;
  border-top: 1px solid var(--line);
  margin-top: 0.4rem;
}
.hp-avatar {
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.66rem;
  font-weight: 650;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.hp-un {
  font-size: 0.78rem;
  font-weight: 550;
}
.hp-ue {
  font-size: 0.68rem;
  color: var(--faint);
}
.hp-main {
  padding: 1.4rem 1.5rem;
  min-width: 0;
}
.hp-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.hp-h1 {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.hp-h2 {
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.hp-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.1rem;
  padding: 0 0.85rem;
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 550;
  background: #f4f5f7;
  color: #0a0b0e;
}
.hp-btn svg {
  width: 0.85rem;
  height: 0.85rem;
}
.hp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.hp-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.95rem 1rem;
}
.hp-stat-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hp-stat-h span {
  font-size: 0.74rem;
  color: var(--muted);
}
.hp-stat-h svg {
  color: var(--accent-strong);
  opacity: 0.6;
}
.hp-stat b {
  display: block;
  margin-top: 0.55rem;
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.hp-badge {
  font-size: 0.64rem;
  font-weight: 550;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
}
.hp-badge.ok {
  color: var(--success);
  border-color: rgba(98, 205, 155, 0.3);
  background: rgba(98, 205, 155, 0.1);
}

/* section header */
.hp-sech {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.4rem 0 0.9rem;
}
.hp-sech span:first-child {
  font-size: 0.95rem;
  font-weight: 600;
}
.hp-link {
  font-size: 0.76rem;
  color: var(--muted);
}

/* owned tool card (mirrors ownedCard) */
.hp-tools {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 720px) {
  .hp-tools {
    grid-template-columns: repeat(3, 1fr);
  }
}
.hp-tool {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}
.hp-tool-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hp-aibadge {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.16rem 0.6rem;
}
.hp-ver {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  color: var(--faint);
}
.hp-tool-name {
  margin-top: 0.95rem;
  font-size: 0.98rem;
  font-weight: 650;
}
.hp-tool-tag {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.hp-tool-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.15rem;
}
.hp-tool-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2rem;
  border-radius: 9px;
  font-size: 0.76rem;
  font-weight: 550;
  background: #f4f5f7;
  color: #0a0b0e;
}
.hp-tool-btn svg {
  width: 0.85rem;
  height: 0.85rem;
}
.hp-tool-ext {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  color: var(--muted);
}

/* recent activity row */
.hp-act {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.hp-act-l {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.hp-act-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent-strong);
}
.hp-act-t {
  font-size: 0.82rem;
  font-weight: 550;
}
.hp-act-d {
  font-size: 0.7rem;
  color: var(--faint);
}
.hp-act-r {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 650;
  font-size: 0.85rem;
}

/* ============================================================
   11. Sections / features / platform
   ============================================================ */
section {
  scroll-margin-top: 6rem;
}
.pad {
  padding: 8rem 0;
}
@media (max-width: 640px) {
  .pad {
    padding: 5.5rem 0;
  }
}
.section-head {
  max-width: 44rem;
  margin: 0 auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0.9rem;
}
.section-head p {
  margin-top: 1.15rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Features */
.feature-grid {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}
@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  background: var(--bg-soft);
  padding: 2.25rem;
  transition: background var(--t) var(--ease);
}
.feature:hover {
  background: var(--surface);
}
.feature .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  color: var(--accent-strong);
  margin-bottom: 1.5rem;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.feature:hover .ic {
  border-color: var(--accent-line);
}
.feature h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}

/* Platform / stat band */
.platform {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.platform-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}
@media (min-width: 980px) {
  .platform-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.platform h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-top: 0.9rem;
}
.lead {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}
.checklist {
  margin-top: 2.25rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.check {
  flex: none;
  margin-top: 0.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.stat:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.stat .big {
  font-size: 2.1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.stat .l {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ============================================================
   12. Product grid & cards
   ============================================================ */
.head-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .head-row {
    flex-direction: row;
    align-items: flex-end;
  }
}
.prod-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .prod-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 980px) {
  .prod-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.prod {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  transition:
    transform var(--t) var(--ease),
    border-color var(--t) var(--ease),
    background var(--t) var(--ease);
  cursor: pointer;
}
.prod:hover {
  transform: translateY(-5px);
  border-color: var(--line-3);
  background: var(--surface-2);
}
.prod-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  color: var(--faint);
}
.prod:hover .prod-top > svg {
  color: var(--accent-strong);
  transform: translate(2px, -2px);
  transition: transform var(--t) var(--ease), color var(--t) var(--ease);
}
.prod h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.prod .tag {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.price {
  font-size: 1.2rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.price small {
  margin-left: 0.3rem;
  font-size: 0.7rem;
  color: var(--faint);
  font-weight: 400;
}
.prod .view {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}
.prod:hover .view {
  color: var(--accent-strong);
}

/* ============================================================
   13. Page scaffolding & product detail
   ============================================================ */
.page {
  position: relative;
  padding-top: 5.5rem;
}
.page-pad {
  padding: 4rem 0 6rem;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--faint);
  margin-bottom: 2.5rem;
}
.crumb a {
  transition: color var(--t) var(--ease);
}
.crumb a:hover {
  color: var(--text);
}
.page-title {
  font-size: clamp(2.2rem, 5.2vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .detail {
    grid-template-columns: 1.6fr 1fr;
  }
}
.shots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 560px) {
  .shots {
    grid-template-columns: repeat(2, 1fr);
  }
}
.shot {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--faint);
  font-size: 0.78rem;
  flex-direction: column;
  gap: 0.6rem;
}
.hr {
  height: 1px;
  background: var(--line);
  margin: 3rem 0;
}
.feat-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
@media (min-width: 560px) {
  .feat-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
.feat-list li {
  list-style: none;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
}
.buy-aside {
  align-self: start;
}
@media (min-width: 900px) {
  .buy-aside {
    position: sticky;
    top: 6.5rem;
  }
}
.buy-card {
  padding: 1.75rem;
}
.buy-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.buy-price .p {
  font-size: 2.1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.buy-meta {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.buy-meta div {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.buy-meta svg {
  color: var(--accent-strong);
}

/* ============================================================
   14. Auth
   ============================================================ */
.auth-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}
.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem 5rem;
}
.auth-box {
  width: 100%;
  max-width: 27rem;
}
.auth-box h1 {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
}
.auth-box .sub {
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}
.auth-card {
  margin-top: 2rem;
  padding: 2rem;
}
.auth-alt {
  margin-top: 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}
.auth-alt a {
  color: var(--accent-strong);
  font-weight: 550;
  transition: color var(--t) var(--ease);
}
.auth-alt a:hover {
  color: #fff;
}

/* ============================================================
   15. Dashboard shell
   ============================================================ */
.dash {
  min-height: 100vh;
}
@media (min-width: 1024px) {
  .dash {
    display: grid;
    grid-template-columns: 272px 1fr;
  }
}
.side {
  position: sticky;
  top: 0;
  height: 100vh;
  display: none;
  flex-direction: column;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
@media (min-width: 1024px) {
  .side {
    display: flex;
  }
}
.side .brand {
  padding: 0.5rem 0.5rem 1.75rem;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.side-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.side-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.side-nav a.on {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.side-nav a.on::before {
  content: "";
  position: absolute;
  left: -1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.4rem;
  border-radius: 999px;
  background: var(--accent);
}
.side-nav a svg {
  color: var(--faint);
  transition: color var(--t) var(--ease);
}
.side-nav a:hover svg,
.side-nav a.on svg {
  color: var(--accent-strong);
}
.side-user {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}
.side-user .row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  margin-bottom: 0.25rem;
}
.avatar {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 650;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.side-user .meta {
  min-width: 0;
}
.side-user .meta .nm {
  font-size: 0.88rem;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-user .meta .em {
  font-size: 0.74rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logout {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.logout:hover {
  background: rgba(236, 125, 118, 0.1);
  color: var(--danger);
}

.dash-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 14, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
@media (min-width: 1024px) {
  .dash-top {
    display: none;
  }
}
.dash-content {
  min-width: 0;
  padding: 1.75rem;
}
@media (min-width: 640px) {
  .dash-content {
    padding: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .dash-content {
    padding: 3.5rem;
  }
}
.dash-content .inner {
  max-width: 68rem;
  margin: 0 auto;
}
/* The AI Job Finder & Quick Tools workspaces get the full-width layout —
   the rest of the dashboard stays at the comfortable 68rem column. */
.dash-content .inner:has(.jf),
.dash-content .inner:has(.qt-dash) {
  max-width: 96rem;
}
@media (min-width: 1024px) {
  .dash-content:has(.jf),
  .dash-content:has(.qt-dash) {
    padding: 2rem 2.5rem;
  }
}
.dash-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 640px) {
  .dash-head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.dash-head h1 {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.dash-head p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.drawer .scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  animation: fade 0.2s var(--ease);
}
.drawer .panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: 18rem;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  border-right: 1px solid var(--line);
  background: rgba(12, 13, 17, 0.96);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  animation: slideIn 0.28s var(--ease);
}
@keyframes slideIn {
  from {
    transform: translateX(-100%);
  }
}

/* ============================================================
   16. Dashboard widgets
   ============================================================ */
.cards-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.mini {
  padding: 1.5rem;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.mini:hover {
  border-color: var(--line-2);
  transform: translateY(-3px);
}
.mini .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mini .top span {
  font-size: 0.9rem;
  color: var(--muted);
}
.mini .top svg {
  color: var(--accent-strong);
  opacity: 0.7;
}
.mini .v {
  margin-top: 1rem;
  font-size: 2.1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.owned {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.owned:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
}
.owned .top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.owned h3 {
  margin-top: 1.1rem;
  font-size: 1.05rem;
  font-weight: 600;
}
.owned .tag {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
  flex: 1;
}
.owned .actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4.5rem 1.5rem;
  border: 1px dashed var(--line-2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.012);
  margin-top: 2rem;
}
.empty .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--faint);
}
.empty h3 {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.empty p {
  margin-top: 0.6rem;
  max-width: 26rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.list {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.list .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--line);
  transition: background var(--t) var(--ease);
}
.list .row:hover {
  background: rgba(255, 255, 255, 0.02);
}
.list .row:last-child {
  border-bottom: none;
}
.list .row .l {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.list .row .ic {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent-strong);
}

/* ============================================================
   17. Settings
   ============================================================ */
.settings {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.settings .card {
  padding: 1.85rem;
}
.settings h2 {
  font-size: 1.1rem;
  font-weight: 600;
}
.settings .desc {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
@media (min-width: 560px) {
  .kv {
    grid-template-columns: repeat(2, 1fr);
  }
}
.kv .item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.kv .item svg {
  color: var(--accent-strong);
  opacity: 0.7;
}
.kv .item .k {
  font-size: 0.74rem;
  color: var(--faint);
}
.kv .item .val {
  font-size: 0.9rem;
  margin-top: 0.15rem;
}
.inline-ok {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}
.ok {
  color: var(--success);
}
.err {
  color: var(--danger);
}

/* ============================================================
   18. Tool workspace / success / 404
   ============================================================ */
.tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 900px) {
  .tool-grid {
    grid-template-columns: 2fr 1fr;
  }
}
.term {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-bottom: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  color: var(--muted);
}
.term-body {
  padding: 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  line-height: 1.95;
  color: var(--muted);
}
.term-body .a {
  color: var(--accent-strong);
}

.success {
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  padding: 4.5rem 1.5rem;
}
.success .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 18px;
  border: 1px solid rgba(98, 205, 155, 0.3);
  background: rgba(98, 205, 155, 0.1);
  color: var(--success);
}
.success h1 {
  margin-top: 1.75rem;
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.success p {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nf {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

/* ============================================================
   19. Footer
   ============================================================ */
footer.site {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  padding: 5rem 0 3.5rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}
@media (min-width: 720px) {
  .foot-grid {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}
.foot-brand p {
  margin-top: 1.25rem;
  max-width: 22rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--muted);
}
.socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.6rem;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease);
}
.socials a:hover {
  border-color: var(--line-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.foot-col h4 {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.foot-col ul {
  margin-top: 1.25rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.foot-col a {
  font-size: 0.9rem;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}
.foot-col a:hover {
  color: var(--text);
}
.foot-bottom {
  margin-top: 4rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--faint);
}
@media (min-width: 560px) {
  .foot-bottom {
    flex-direction: row;
  }
}

/* ============================================================
   20. Toast & overlays
   ============================================================ */
.toast {
  position: fixed;
  z-index: 80;
  left: 50%;
  bottom: 1.75rem;
  transform: translateX(-50%) translateY(160%);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: rgba(18, 20, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  max-width: calc(100vw - 2rem);
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast.ok-tone {
  border-color: rgba(98, 205, 155, 0.4);
}
.toast.err-tone {
  border-color: rgba(236, 125, 118, 0.4);
}

/* ============================================================
   21. Animations & skeletons
   ============================================================ */
.fade-up {
  animation: fadeUp 0.55s var(--ease) both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.06),
    transparent
  );
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero-preview {
    transform: none !important;
  }
}

/* ============================================================
   22. AI Job Finder workspace
   ============================================================ */
.jf {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.jf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.jf-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--accent-strong);
}
.jf-name {
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--text);
}
.jf-ver {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  color: var(--faint);
}
.jf-top-r {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.jf-shell {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .jf-shell {
    grid-template-columns: 160px 1fr;
  }
}
.jf-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
@media (min-width: 720px) {
  .jf-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    border-bottom: none;
    border-right: 1px solid var(--line);
  }
}
.jf-navlink {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
  text-align: left;
}
.jf-navlink:hover {
  background: var(--surface-2);
  color: var(--text);
}
.jf-navlink.on {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent);
}
.jf-navlink svg {
  flex-shrink: 0;
  color: var(--faint);
}
.jf-navlink:hover svg,
.jf-navlink.on svg {
  color: var(--accent-strong);
}
.jf-main {
  min-width: 0;
  padding: 1.25rem;
}
@media (min-width: 720px) {
  .jf-main {
    padding: 1.5rem;
  }
}
.jf-phead {
  margin-bottom: 1.5rem;
}
.jf-phead h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.jf-phead p {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.jf-muted {
  color: var(--muted);
  font-size: 0.9rem;
}
.jf-muted.sm {
  font-size: 0.75rem;
}
.jf-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
}
.jf-prof-meter {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(79, 140, 255, 0.05);
  padding: 1.1rem 1.35rem;
  margin-bottom: 1.25rem;
}
.jf-prof-meter-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.jf-prof-meter-h b {
  font-weight: 650;
}
.jf-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.jf-card-h h3 {
  font-size: 0.98rem;
  font-weight: 600;
}
.jf-analysis {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, var(--accent-soft), rgba(255, 255, 255, 0.015));
}
.jf-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 720px) {
  .jf-grid2 {
    grid-template-columns: 1fr 1fr;
  }
}
.jf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}
.jf-stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.15rem 1.25rem;
}
.jf-stat .v {
  font-size: 1.85rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.jf-stat .l {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--faint);
}
.jf-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}
.jf-field > span {
  font-size: 0.8rem;
  font-weight: 550;
  color: var(--muted);
}
.jf-field input,
.jf-field textarea,
.jf-cvtext,
.jf-out {
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 0.7rem 0.85rem;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
  resize: vertical;
}
.jf-out {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
}
.jf-cvtext {
  margin: 0.5rem 0;
}
.jf-field input:focus,
.jf-field textarea:focus,
.jf-cvtext:focus,
.jf-out:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(111, 155, 242, 0.12);
}
.jf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.jf-cta {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.jf-uprow {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.jf-file {
  cursor: pointer;
}
.jf-h4 {
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--faint);
  margin: 1.15rem 0 0.6rem;
}
.jf-ul,
.jf-ol {
  margin: 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.88rem;
  color: var(--text);
}
.jf-ol {
  padding-left: 1.3rem;
}
.jf-recs li {
  color: var(--accent-strong);
}
.jf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.jf-picker {
  margin-bottom: 1.25rem;
}
.jf-chip {
  font-family: inherit;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.jf-chip:hover {
  color: var(--text);
  border-color: var(--line-3);
}
.jf-chip.on {
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.jf-tag {
  font-size: 0.75rem;
  border-radius: 8px;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--line-2);
}
.jf-tag.ok {
  color: var(--success);
  border-color: rgba(98, 205, 155, 0.35);
  background: rgba(98, 205, 155, 0.08);
}
.jf-tag.warn {
  color: var(--warn);
  border-color: rgba(227, 189, 126, 0.35);
  background: rgba(227, 189, 126, 0.08);
}
.jf-score-row {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.jf-ring {
  position: relative;
  width: 92px;
  height: 92px;
  flex-shrink: 0;
}
.jf-ring-v {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
}
.jf-ring-v span {
  font-size: 0.7rem;
  font-weight: 500;
  margin-left: 1px;
}
.jf-score-meta {
  min-width: 0;
}
.jf-stars {
  color: var(--warn);
  font-size: 1.1rem;
  letter-spacing: 2px;
}
.jf-stagebar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.jf-stage {
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0.3rem 0.6rem;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.jf-stage:hover {
  color: var(--text);
  border-color: var(--line-3);
}
.jf-stage.on {
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.jf-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.jf-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
}
.jf-pct {
  font-size: 0.95rem;
  font-weight: 650;
}
.jf-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background var(--t) var(--ease);
}
.jf-row:last-child {
  border-bottom: none;
}
.jf-row:hover {
  background: rgba(255, 255, 255, 0.025);
}
.jf-row .t {
  font-size: 0.9rem;
  font-weight: 550;
}
.jf-row-r {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.jf-badge {
  font-size: 0.7rem;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
}
.jf-score-sm {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--accent-strong);
}
.jf-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 1.25rem;
}
@media (min-width: 720px) {
  .jf-quick {
    grid-template-columns: repeat(3, 1fr);
  }
}
.jf-qa {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.jf-qa:hover {
  border-color: var(--line-3);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.jf-qa svg {
  color: var(--accent-strong);
}
.jf-empty {
  border: 1px dashed var(--line-2);
  border-radius: 14px;
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.jf-empty h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
.jf-empty p {
  margin: 0.6rem auto 1.1rem;
  max-width: 26rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.jf-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(155px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
@media (max-width: 860px) {
  .jf-board {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
  }
}
.jf-col {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  min-height: 120px;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.jf-col.over {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.jf-col-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.jf-col-h span {
  font-size: 0.7rem;
  color: var(--faint);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 0.08rem 0.5rem;
}
.jf-col-body {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.jf-col-empty {
  font-size: 0.72rem;
  color: var(--faint);
  text-align: center;
  padding: 1.1rem 0.5rem;
  border: 1px dashed var(--line);
  border-radius: 9px;
}
.jf-kcard {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 0.7rem 0.7rem;
  cursor: grab;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.jf-kcard:hover {
  border-color: var(--line-3);
}
.jf-kcard.dragging {
  opacity: 0.5;
}
.jf-kcard .t {
  font-size: 0.84rem;
  font-weight: 550;
}
.jf-kscore {
  font-size: 0.72rem;
  font-weight: 650;
  margin-top: 0.3rem;
}
.jf-kmove {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.6rem;
}
.jf-mv {
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 7px;
  padding: 0.22rem 0.5rem;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.jf-mv:hover:not([disabled]) {
  color: var(--text);
  border-color: var(--line-3);
}
.jf-mv[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.jf-searchrow {
  display: flex;
  gap: 0.5rem;
}
.jf-searchrow input {
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 0.7rem 0.85rem;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.jf-searchrow input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(111, 155, 242, 0.12);
}
.jf-interpret {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 0.82rem;
  color: var(--muted);
}
.jf-interpret svg {
  color: var(--accent-strong);
}
.jf-interpret b {
  color: var(--text);
}
.jf-fgroup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}
.jf-fgroup > span {
  width: 90px;
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.jf-fbtns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.jf-fbtn {
  font-family: inherit;
  font-size: 0.76rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 0.32rem 0.65rem;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), color var(--t) var(--ease);
}
.jf-fbtn:hover {
  color: var(--text);
  border-color: var(--line-3);
}
.jf-fbtn.on {
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.jf-map {
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.jf-map-fallback {
  font-size: 0.8rem;
  color: var(--faint);
  text-align: center;
  padding: 1rem;
}
.jf-map .leaflet-tile {
  filter: grayscale(0.35) brightness(0.8) contrast(1.05);
}
.jf-map .leaflet-container {
  background: #0c0c0e;
  font-family: inherit;
}
/* Dark, on-brand cluster bubbles (override markercluster defaults) */
.jf-map .marker-cluster {
  background: rgba(79, 140, 255, 0.18);
}
.jf-map .marker-cluster div {
  background: rgba(79, 140, 255, 0.85);
  color: #0c0c0e;
  font-family: inherit;
  font-weight: 650;
}
.jf-map .leaflet-popup-content-wrapper,
.jf-map .leaflet-popup-tip {
  background: #15161a;
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.jf-map .leaflet-popup-content {
  margin: 0.7rem 0.85rem;
}
.jf-map .leaflet-popup-close-button {
  color: var(--muted);
}
.jf-pop {
  font-size: 0.8rem;
  line-height: 1.5;
}
.jf-pop-btn {
  margin-top: 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  color: #0c0c0e;
  background: var(--accent-strong);
  border: none;
  border-radius: 8px;
  padding: 0.32rem 0.65rem;
  cursor: pointer;
}
.jf-pop-meta {
  color: var(--muted);
  font-size: 0.74rem;
}
.jf-pop-score {
  font-weight: 600;
  font-size: 0.76rem;
}
.jf-pop-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.jf-pop-btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-2);
}
/* Map + results inline toolbars (heat / sort segmented controls) */
.jf-map-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.jf-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.jf-segbtn {
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0.32rem 0.6rem;
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.jf-segbtn:hover {
  color: var(--text);
}
.jf-segbtn.on {
  background: var(--accent-strong);
  color: #0c0c0e;
}
/* "Corrected: pyton → Python" line under the AI-search interpretation */
.jf-didyoumean {
  margin-top: 0.4rem;
  font-size: 0.76rem;
  color: var(--muted);
}
.jf-didyoumean b {
  color: var(--accent-strong);
  font-weight: 500;
}
/* Saved searches */
.jf-savedsearches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.jf-savedchip {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.jf-savedchip button {
  font-family: inherit;
  font-size: 0.74rem;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.jf-savedchip button:hover {
  color: var(--text);
}
.jf-savedchip .x {
  padding: 0.3rem 0.55rem;
  border-left: 1px solid var(--line);
  font-size: 0.95rem;
  line-height: 1;
}
.jf-savedchip .x:hover {
  color: var(--danger);
}
/* Load-more pager */
.jf-morewrap {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}
.jf-loadmore {
  min-width: 14rem;
}
.jf-listing {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--t) var(--ease);
}
.jf-listing:hover {
  border-color: var(--line-2);
}
.jf-listing-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.jf-listing-top .t {
  font-size: 0.96rem;
  font-weight: 600;
}
.jf-heart {
  flex-shrink: 0;
  display: inline-flex;
  padding: 0.35rem;
  border: 1px solid var(--line-2);
  border-radius: 9px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  transition: border-color var(--t) var(--ease), color var(--t) var(--ease), background var(--t) var(--ease);
}
.jf-heart:hover {
  color: var(--text);
  border-color: var(--line-3);
}
.jf-heart.on {
  color: var(--danger);
  border-color: rgba(236, 125, 118, 0.4);
  background: rgba(236, 125, 118, 0.08);
}
.jf-heart.on svg {
  fill: var(--danger);
}
.jf-listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}
.jf-pill {
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}
.jf-pill-cat {
  color: var(--accent-strong);
  border-color: rgba(79, 140, 255, 0.3);
  background: rgba(79, 140, 255, 0.08);
}
.jf-comparebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  font-size: 0.82rem;
}
.jf-comparebar span {
  color: var(--text);
}
.jf-ctable {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.jf-ctd {
  padding: 0.75rem 0.85rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.jf-ctd:nth-child(3n) {
  border-right: none;
}
.jf-cth {
  font-weight: 650;
  background: rgba(255, 255, 255, 0.025);
}
.jf-ctl {
  color: var(--muted);
}
.jf-rec {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.1rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
}
.jf-rec svg {
  flex-shrink: 0;
  color: var(--accent-strong);
}
.jf-rec p {
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.jf-flow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}
.jf-flow span {
  color: var(--faint);
}
.jf-flow-b {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
}
.jf-plan {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}
@media (min-width: 720px) {
  .jf-plan {
    grid-template-columns: 1fr 1fr;
  }
}
.jf-week {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.85rem 0.95rem;
}
.jf-week .w {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-strong);
}
.jf-week .s {
  font-size: 0.92rem;
  font-weight: 650;
  margin: 0.2rem 0 0.35rem;
}

/* ============================================================
   23. Coming soon
   ============================================================ */
.badge-soon {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.plan-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
  vertical-align: middle;
}
.plan-tag.is-pro {
  color: var(--accent-strong);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.prod-soon {
  background: var(--bg-soft);
}
.prod-soon:hover {
  border-color: var(--accent-line);
}
.detail.detail-solo {
  display: block;
  max-width: 52rem;
  margin-top: 2.5rem;
}
.soon-banner {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--accent-line);
  border-radius: 16px;
  background: var(--accent-soft);
}
.soon-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  border: 1px solid var(--accent-line);
  background: rgba(111, 155, 242, 0.1);
  color: var(--accent-strong);
}
.soon-body {
  flex: 1;
  min-width: 13rem;
}
.soon-body h2 {
  font-size: 1rem;
  font-weight: 650;
}
.soon-body p {
  margin-top: 0.2rem;
  font-size: 0.875rem;
}

/* ============================================================
   24. Pricing tiers
   ============================================================ */
.pricing-sec {
  margin-top: 5.5rem;
  scroll-margin-top: 6rem;
}
.pricing-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.75rem;
}
.pricing-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
}
.pricing-head p {
  margin-top: 0.9rem;
  color: var(--muted);
}
.plans {
  max-width: 56rem;
  margin: 0 auto;
}
.bill-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.bill-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.bill-track {
  position: relative;
  display: inline-flex;
  padding: 0.3rem;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
.bill-thumb {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  width: 6.6rem;
  height: calc(100% - 0.6rem);
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  transition: transform var(--t) var(--ease);
}
.bill-opt {
  position: relative;
  z-index: 1;
  width: 6.6rem;
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.86rem;
  font-weight: 550;
  color: var(--muted);
  transition: color var(--t) var(--ease);
}
.bill-opt.mo {
  color: var(--text);
}
.bill-check:checked ~ .bill-toggle .bill-thumb {
  transform: translateX(6.6rem);
}
.bill-check:checked ~ .bill-toggle .bill-opt.mo {
  color: var(--muted);
}
.bill-check:checked ~ .bill-toggle .bill-opt.yr {
  color: var(--text);
}
.bill-check:focus-visible ~ .bill-toggle .bill-track {
  box-shadow: var(--ring);
}
.bill-save {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--success);
  border: 1px solid rgba(98, 205, 155, 0.3);
  background: rgba(98, 205, 155, 0.1);
  border-radius: 999px;
  padding: 0.32rem 0.7rem;
}
.bill-save svg {
  width: 0.8rem;
  height: 0.8rem;
}
.plan-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 760px) {
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  padding: 1.85rem;
  box-shadow: var(--shadow);
}
.plan-pro {
  position: relative;
  border-color: var(--accent-line);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow-lg);
}
.plan-flag {
  position: absolute;
  top: -0.7rem;
  right: 1.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #0a0b0e;
  background: var(--accent-strong);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
}
.plan-flag.is-current {
  color: var(--success);
  background: rgba(98, 205, 155, 0.14);
  border: 1px solid rgba(98, 205, 155, 0.4);
  padding: 0.24rem 0.7rem;
}
.plan-h h3 {
  font-size: 1.25rem;
  font-weight: 650;
}
.plan-h p {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.plan-price {
  margin-top: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.plan-price .price-mo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
}
.plan-price .price-yr {
  display: none;
  align-items: baseline;
  gap: 0.3rem;
}
.plan-price b {
  font-size: 2.7rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}
.plan-price span {
  font-size: 0.95rem;
  color: var(--muted);
}
.bill-check:checked ~ .plan-grid .price-mo {
  display: none;
}
.bill-check:checked ~ .plan-grid .price-yr {
  display: inline-flex;
}
.plan-note {
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--faint);
}
.price-yr-note {
  display: none;
}
.bill-check:checked ~ .plan-grid .price-mo-note {
  display: none;
}
.bill-check:checked ~ .plan-grid .price-yr-note {
  display: block;
}
.save-pill {
  color: var(--success);
  font-weight: 600;
}
.plan-feat {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  flex: 1;
}
.plan-feat li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.plan-feat li .check {
  margin-top: 0.05rem;
}
.plan-feat li.lead {
  font-weight: 600;
  color: var(--text);
}
.plan .btn {
  margin-top: auto;
}

/* ============================================================
   25. Checkout — Stripe-style payment sheet
   ============================================================ */
.checkout {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.checkout-scrim {
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.25s var(--ease);
}
.checkout-sheet {
  position: relative;
  width: 100%;
  max-width: 27rem;
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--elevated);
  box-shadow: var(--shadow-lg);
  padding: 1.85rem;
  animation: sheetIn 0.3s var(--ease);
}
@keyframes sheetIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}
.checkout-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: none;
  background: none;
  color: var(--faint);
  cursor: pointer;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
}
.checkout-x:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.co-top {
  text-align: center;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.co-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  font-size: 0.95rem;
}
.co-line {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.co-amount {
  margin-top: 0.45rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
}
.co-amount span {
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -0.04em;
}
.co-amount small {
  font-size: 0.82rem;
  color: var(--muted);
}
.co-note {
  margin-top: 0.5rem;
  font-size: 0.76rem;
  color: var(--faint);
}
.co-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.co-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.co-field > span {
  font-size: 0.76rem;
  font-weight: 550;
  color: var(--muted);
}
.co-input {
  width: 100%;
  height: 2.7rem;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.co-input::placeholder {
  color: var(--faint);
}
.co-input:focus {
  outline: none;
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(111, 155, 242, 0.12);
}
.co-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236a6f7b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}
.co-card {
  border: 1px solid var(--line-2);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.co-card:focus-within {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px rgba(111, 155, 242, 0.12);
}
.co-card-num {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.co-card-num .co-bare {
  padding-right: 6.5rem;
}
.co-card-exp {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.co-card-exp .co-bare:first-child {
  border-right: 1px solid var(--line);
}
.co-bare {
  width: 100%;
  height: 2.7rem;
  padding: 0 0.85rem;
  border: none;
  background: none;
  color: var(--text);
  font-size: 0.88rem;
  font-family: inherit;
}
.co-bare:focus {
  outline: none;
}
.co-bare::placeholder {
  color: var(--faint);
}
.co-brands {
  position: absolute;
  right: 0.85rem;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  font-family: "JetBrains Mono", monospace;
  pointer-events: none;
}
.co-pay {
  margin-top: 0.5rem;
}
.co-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
  font-size: 0.74rem;
  color: var(--faint);
}
.co-secure svg {
  color: var(--success);
}
.co-secure b {
  color: var(--muted);
  font-weight: 600;
}
.co-test {
  width: 100%;
  text-align: center;
  font-size: 0.68rem;
  color: var(--faint);
  opacity: 0.85;
}

/* ============================================================
   26. Subscription / billing page
   ============================================================ */
.bill-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.bill-item {
  padding: 1.6rem 1.75rem;
}
.bill-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.bill-id {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}
.bill-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.025);
  color: var(--accent-strong);
}
.bill-name {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 1.08rem;
  font-weight: 600;
}
.bill-renew {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.bill-right {
  text-align: right;
}
.bill-amt {
  margin-top: 0.5rem;
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.bill-amt small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
}
.bill-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.bill-cancel {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--faint);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: color var(--t) var(--ease);
}
.bill-cancel:hover {
  color: var(--danger);
}
@media (max-width: 520px) {
  .bill-cancel {
    margin-left: 0;
  }
}

/* ============================================================
   27. AI Job Finder — Career Command Center
   ============================================================ */
.cc-greet {
  margin-bottom: 1.6rem;
}
.cc-greet h2 {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.cc-greet p {
  margin-top: 0.35rem;
  font-size: 0.9rem;
}
.cc-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
}
@media (min-width: 920px) {
  .cc-hero {
    grid-template-columns: 1.5fr 1fr;
  }
}
.cc-scorecard {
  padding: 1.6rem;
}
.cc-score-top {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}
.cc-ring {
  position: relative;
  width: 124px;
  height: 124px;
  flex: none;
}
.cc-ring-v {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cc-ring-v b {
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1;
}
.cc-ring-v span {
  font-size: 0.72rem;
  color: var(--faint);
  margin-top: 0.15rem;
}
.cc-score-meta {
  flex: 1;
  min-width: 12rem;
}
.cc-score-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--faint);
  font-weight: 600;
}
.cc-grade {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.92rem;
  font-weight: 650;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
}
.cc-grade.good {
  color: var(--success);
  background: rgba(98, 205, 155, 0.12);
  border: 1px solid rgba(98, 205, 155, 0.3);
}
.cc-grade.mid {
  color: var(--warn);
  background: rgba(227, 189, 126, 0.12);
  border: 1px solid rgba(227, 189, 126, 0.3);
}
.cc-grade.low {
  color: var(--danger);
  background: rgba(236, 125, 118, 0.12);
  border: 1px solid rgba(236, 125, 118, 0.3);
}
.cc-score-sub {
  margin-top: 0.55rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.cc-dims {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.4rem;
  margin-top: 1.5rem;
}
@media (max-width: 520px) {
  .cc-dims {
    grid-template-columns: 1fr;
  }
}
.cc-dim {
  min-width: 0;
}
.cc-dim-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
.cc-dim-h span {
  color: var(--muted);
}
.cc-dim-h b {
  font-weight: 650;
}
.cc-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 520px) {
  .cc-areas {
    grid-template-columns: 1fr;
  }
}
.cc-next {
  display: flex;
  flex-direction: column;
  padding: 1.6rem;
}
.cc-next-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-strong);
}
.cc-next-text {
  margin: 0.9rem 0 1.35rem;
  font-size: 1.02rem;
  line-height: 1.5;
}
.cc-next .btn {
  align-self: flex-start;
}
.cc-goal {
  margin-top: auto;
  padding-top: 1.4rem;
}
.cc-goal-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.45rem;
}
.cc-goal-h span {
  color: var(--muted);
}
.cc-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
@media (min-width: 680px) {
  .cc-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1140px) {
  .cc-tiles {
    grid-template-columns: repeat(6, 1fr);
  }
}
.cc-tile {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem 1.1rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--text);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease), transform var(--t) var(--ease);
}
.cc-tile:hover {
  border-color: var(--line-3);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.cc-tile-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.cc-tile-h span {
  font-size: 0.74rem;
  color: var(--muted);
}
.cc-tile-h svg {
  color: var(--accent-strong);
  opacity: 0.7;
  flex: none;
}
.cc-tile-v {
  margin-top: 0.6rem;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cc-up {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.cc-up:last-child {
  border-bottom: none;
}
.cc-up-ic {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent-strong);
}
.cc-up-b {
  flex: 1;
  min-width: 0;
}
.cc-up-t {
  font-size: 0.88rem;
  font-weight: 550;
}

/* match breakdown (analyzer) */
.jf-grade-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.jf-grade {
  font-size: 1.02rem;
  font-weight: 650;
  color: var(--text);
}
.jf-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.4rem;
  margin: 1.1rem 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
}
@media (max-width: 560px) {
  .jf-breakdown {
    grid-template-columns: 1fr;
  }
}
.jf-bd {
  min-width: 0;
}
.jf-bd-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
}
.jf-bd-h span {
  color: var(--muted);
}
.jf-bd-h b {
  font-weight: 650;
}
.jf-bd-why {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--faint);
}

/* CV optimiser — tones, before/after, changes */
.jf-opt-tones {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.jf-opt-kw {
  margin: 0.5rem 0 0.25rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.jf-changes {
  border-left: 2px solid var(--accent-strong);
  padding-left: 0.9rem;
  margin: 0.5rem 0 0.25rem;
}
.jf-ba {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 760px) {
  .jf-ba {
    grid-template-columns: 1fr 1fr;
  }
}
.jf-ba-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.jf-ba-tag.good {
  color: var(--success);
}
.jf-ba-box {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 0.75rem 0.85rem;
  height: 100%;
}
.jf-ba-after li {
  color: var(--text);
}
.jf-flag {
  font-size: 0.66rem;
  color: var(--warn);
  border: 1px solid rgba(214, 174, 90, 0.35);
  border-radius: 999px;
  padding: 0.05rem 0.4rem;
  margin-left: 0.3rem;
  white-space: nowrap;
}
/* Cover letter paragraphs */
.jf-para {
  margin-bottom: 0.9rem;
}
.jf-para-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
/* Interview Q&A */
.jf-q {
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}
.jf-q.answered {
  border-color: rgba(98, 205, 155, 0.3);
}
.jf-q-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text);
  background: transparent;
  border: none;
  padding: 0.85rem 1rem;
  cursor: pointer;
}
.jf-q-head:hover {
  background: rgba(255, 255, 255, 0.03);
}
.jf-q-score {
  font-weight: 650;
  font-size: 0.82rem;
  flex-shrink: 0;
}
.jf-q-body {
  padding: 0 1rem 1rem;
}
.jf-q-fb {
  margin-top: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.jf-fb-ok::marker {
  color: var(--success);
}
.jf-fb-warn::marker {
  color: var(--warn);
}
.jf-pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  margin: 0.35rem 0 0;
}
/* Company intelligence facts grid */
.jf-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.5rem 0 0.75rem;
}
@media (min-width: 680px) {
  .jf-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.jf-fact {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  background: rgba(0, 0, 0, 0.18);
}
.jf-fact span {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--faint);
  margin-bottom: 0.2rem;
}
.jf-fact b {
  font-size: 0.85rem;
  font-weight: 600;
}

/* career roadmap */
.rm-track {
  display: flex;
  flex-direction: column;
}
.rm-step {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 1.1rem;
}
.rm-step:last-child {
  padding-bottom: 0;
}
.rm-step::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 1.5rem;
  bottom: -0.2rem;
  width: 2px;
  background: var(--line-2);
}
.rm-step:last-child::before {
  display: none;
}
.rm-node {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  margin-top: 0.35rem;
  border: 2px solid var(--line-3);
  background: var(--surface);
  z-index: 1;
}
.rm-step.done .rm-node {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
}
.rm-step.now .rm-node {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.rm-card {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.9rem 1.1rem;
}
.rm-step.now .rm-card {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.rm-step.next .rm-card {
  opacity: 0.8;
}
.rm-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.rm-role {
  font-size: 0.98rem;
  font-weight: 650;
}
.rm-here {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--accent-strong);
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.rm-salary {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--success);
}
.rm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.rm-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.rm-meta svg {
  color: var(--faint);
  flex: none;
}

/* ---- Security: password meter + two-factor ---- */
.pw-meter {
  margin-top: 0.5rem;
}
.pw-meter-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.pw-meter-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.25s ease, background 0.25s ease;
}
.pw-meter-label {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  min-height: 0.9rem;
}
.tfa-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.tfa-status.on {
  color: var(--success);
}
.tfa-secret {
  margin-top: 0.6rem;
  padding: 0.7rem 0.9rem;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
}
.tfa-secret code {
  font-family: "JetBrains Mono", monospace;
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--accent-strong);
  word-break: break-all;
}
.tfa-codes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
}
.tfa-codes code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  letter-spacing: 0.05em;
}
@media (min-width: 560px) {
  .tfa-codes {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================================
   QUICK TOOLS
   ============================================================ */
.qt-searchbar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.75rem 0 1rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.qt-searchbar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}
.qt-searchbar svg {
  color: var(--faint);
  flex: none;
}
.qt-searchbar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 1.02rem;
  color: var(--text);
  padding: 0.95rem 0;
}
.qt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 2rem;
}
.qt-chip {
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.qt-chip:hover {
  color: var(--text);
  border-color: var(--line-2);
}
.qt-chip.on {
  color: #0c0c0e;
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.qt-sec {
  margin-bottom: 2.25rem;
}
.qt-sec-h {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.qt-sec-h svg {
  color: var(--accent-strong);
}
.qt-count {
  color: var(--faint);
  font-weight: 500;
}
.qt-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.qt-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  padding: 1.1rem;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.qt-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.04);
}
.qt-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.qt-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 10px;
  background: rgba(79, 140, 255, 0.1);
  color: var(--accent-strong);
  border: 1px solid rgba(79, 140, 255, 0.18);
}
.qt-ic.lg {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 12px;
  flex: none;
}
.qt-star {
  display: inline-flex;
  padding: 0.3rem;
  border: none;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  border-radius: 8px;
  transition: color var(--t) var(--ease), transform var(--t) var(--ease);
}
.qt-star:hover {
  color: var(--muted);
  transform: scale(1.12);
}
.qt-star.on {
  color: #e0607a;
}
.qt-star.on svg {
  fill: #e0607a;
}
.qt-star.big {
  padding: 0.5rem;
}
.qt-card-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.qt-card-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 0.3rem;
  min-height: 2.3em;
}
.qt-card-cat {
  margin-top: 0.7rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
}
.qt-empty {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--muted);
}
.qt-empty svg {
  color: var(--faint);
}
.qt-empty h3 {
  margin: 0.75rem 0 0.35rem;
  color: var(--text);
}
/* tool view */
.qt-tool-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.qt-tool {
  padding: 1.5rem;
}
.qt-muted {
  color: var(--faint);
}
.qt-muted.sm,
.qt-stat,
.qt-lbl {
  font-size: 0.8rem;
}
.qt-lbl {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.qt-grid2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 720px) {
  .qt-grid2 {
    grid-template-columns: 1fr 1fr;
  }
}
.qt-ta {
  width: 100%;
  min-height: 9rem;
  resize: vertical;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 0.85rem;
  outline: none;
  transition: border-color var(--t) var(--ease);
}
.qt-ta:focus {
  border-color: var(--accent);
}
.qt-ta.tall {
  min-height: 14rem;
}
.qt-ta.mono,
.qt-input.mono {
  font-family: "JetBrains Mono", monospace;
}
.qt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
.qt-stat {
  color: var(--muted);
}
.qt-stat.err {
  color: var(--danger);
}
.qt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}
.qt-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.qt-field > span {
  font-size: 0.78rem;
  color: var(--muted);
}
.qt-input {
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  outline: none;
  transition: border-color var(--t) var(--ease);
}
.qt-input:focus {
  border-color: var(--accent);
}
.qt-input.sm {
  width: 6rem;
}
select.qt-input,
.qt-actions select {
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}
.qt-check,
.qt-checks label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
}
.qt-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.qt-range {
  accent-color: var(--accent-strong);
  width: 100%;
}
.qt-color {
  width: 3rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}
.qt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.qt-stat-box {
  flex: 1;
  min-width: 6rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.8rem 0.9rem;
}
.qt-stat-box.wide {
  min-width: 100%;
  cursor: pointer;
}
.qt-stat-box.wide:hover {
  border-color: var(--line-2);
}
.qt-stat-box b {
  display: block;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--text);
  word-break: break-all;
}
.qt-stat-box span {
  font-size: 0.72rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.qt-out-mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
  color: var(--accent-strong);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 0.85rem;
  word-break: break-all;
  min-height: 1.2rem;
  cursor: pointer;
}
.qt-out-mono.big {
  font-size: 1.15rem;
  text-align: center;
  letter-spacing: 0.04em;
}
.qt-md {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 1rem 1.1rem;
  min-height: 9rem;
  overflow: auto;
}
.qt-md h1, .qt-md h2, .qt-md h3 { margin: 0.6rem 0 0.4rem; line-height: 1.3; }
.qt-md p { margin: 0.5rem 0; }
.qt-md code { font-family: "JetBrains Mono", monospace; font-size: 0.85em; background: rgba(255,255,255,0.07); padding: 0.1rem 0.35rem; border-radius: 5px; }
.qt-md pre { background: rgba(0,0,0,0.35); padding: 0.8rem; border-radius: 9px; overflow: auto; }
.qt-md mark { background: rgba(214, 174, 90, 0.35); color: var(--text); border-radius: 3px; }
.qt-diff {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.qt-dl {
  padding: 0.25rem 0.7rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.qt-dl.same { color: var(--muted); }
.qt-dl.add { background: rgba(98, 205, 155, 0.12); color: #8fe0b8; }
.qt-dl.del { background: rgba(220, 96, 95, 0.12); color: #e89593; }
/* image / drop */
.qt-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
  color: var(--muted);
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.qt-drop:hover,
.qt-drop.over {
  border-color: var(--accent);
  background: rgba(79, 140, 255, 0.06);
}
.qt-drop svg { color: var(--accent-strong); }
.qt-drop-t { color: var(--text); font-weight: 500; }
#qt-work { margin-top: 1.25rem; }
.qt-swatch {
  width: 100%;
  height: 3rem;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  margin-bottom: 0.6rem;
}
.qt-palette {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 0.6rem;
}
.qt-pal {
  height: 5rem;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 0.5rem;
}
.qt-pal span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
}
.qt-gradient {
  height: 8rem;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  margin-top: 1rem;
}
.qt-contrast {
  margin-top: 1rem;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 1.1rem;
  text-align: center;
}
/* timers */
.qt-clock {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0.5rem 0 1rem;
}
.qt-clock.done {
  color: var(--success);
}
.qt-laps {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.qt-lap {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.qt-calc {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.qt-crow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.qt-crow b {
  color: var(--accent-strong);
  font-size: 1.05rem;
  margin-left: auto;
}

/* ============================================================
   23. Administration — enterprise control centre
   Stripe/Vercel/Linear-grade dark control plane. Reuses the
   :root tokens and the dashboard shell (.dash/.side/.dash-top).
   ============================================================ */

/* The "Administration" entry in the user dashboard sidebar */
.ad-navlink {
  position: relative;
}
.ad-nav-badge {
  margin-left: auto;
  font-size: 0.6rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
}

/* ---- shell ---- */
.ad-shell {
  --ad-pad: 2rem;
}
.ad-side {
  padding: 1.1rem 1rem;
  background: rgba(255, 255, 255, 0.012);
}
.ad-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.5rem 1.1rem;
}
.ad-brand-tag {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 0.14rem 0.38rem;
  border-radius: 6px;
}
.ad-nav {
  gap: 1.1rem;
  overflow-y: auto;
  padding-right: 0.2rem;
}
.ad-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ad-nav-label {
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 0.65rem 0.4rem;
}
.ad-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.52rem 0.65rem;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.ad-nav a span:first-of-type {
  flex: 1;
  min-width: 0;
}
.ad-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.ad-nav a.on {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}
.ad-nav a.on::before {
  content: "";
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.2rem;
  border-radius: 999px;
  background: var(--accent);
}
.ad-nav a svg {
  color: var(--faint);
  flex: none;
  transition: color var(--t) var(--ease);
}
.ad-nav a:hover svg,
.ad-nav a.on svg {
  color: var(--accent-strong);
}
.ad-nav-count {
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #0a0b0e;
  background: var(--accent-strong);
}
.ad-side-foot {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}
.ad-back-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 9px;
  font-size: 0.82rem;
  color: var(--muted);
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.ad-back-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}
.ad-side-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.4rem 0.2rem;
}
.ad-side-user .meta {
  flex: 1;
  min-width: 0;
}
.ad-side-user .nm {
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-side-user .em {
  font-size: 0.7rem;
  color: var(--accent-strong);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-icon-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.ad-icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
  color: var(--text);
}
.ad-icon-btn.danger:hover {
  background: rgba(236, 125, 118, 0.12);
  border-color: rgba(236, 125, 118, 0.3);
  color: var(--danger);
}

.ad-content.dash-content {
  padding: 1.75rem var(--ad-pad) 4rem;
}
@media (min-width: 1024px) {
  .ad-content.dash-content {
    padding: 2.25rem 2.5rem 4rem;
  }
}
.ad-inner.inner {
  max-width: 92rem;
}

/* ---- impersonation banner ---- */
.ad-imp-banner {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--r);
  border: 1px solid rgba(227, 189, 126, 0.32);
  background: rgba(227, 189, 126, 0.1);
  color: var(--warn);
  font-size: 0.85rem;
}
.ad-imp-banner b {
  color: var(--text);
}
.ad-imp-banner .btn {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-2);
  color: var(--text);
}

/* ---- head ---- */
.ad-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.4rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .ad-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
.ad-crumb {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  color: var(--faint);
  margin-bottom: 0.5rem;
}
.ad-crumb a {
  color: var(--muted);
}
.ad-crumb a:hover {
  color: var(--text);
}
.ad-crumb svg {
  color: var(--faint);
}
.ad-head-main h1 {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.ad-head-main p {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.ad-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.ad-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---- tabs ---- */
.ad-tabs {
  display: flex;
  gap: 0.2rem;
  margin: 1.25rem 0 0.25rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.ad-tabs.scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.ad-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color var(--t) var(--ease), border-color var(--t) var(--ease);
}
.ad-tab svg {
  color: var(--faint);
}
.ad-tab:hover {
  color: var(--text);
}
.ad-tab.on {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.ad-tab.on svg {
  color: var(--accent-strong);
}

/* ---- grids ---- */
.ad-grid {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.25rem;
  grid-template-columns: repeat(12, 1fr);
}
.ad-grid.stats-6 {
  grid-template-columns: repeat(2, 1fr);
}
.ad-grid.stats-4 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) {
  .ad-grid.stats-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .ad-grid.stats-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .ad-grid.stats-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}
.ad-panel.span-2 { grid-column: span 2; }
.ad-panel.span-3 { grid-column: span 3; }
.ad-panel.span-4 { grid-column: span 4; }
.ad-panel.span-5 { grid-column: span 5; }
.ad-panel.span-6 { grid-column: span 6; }
.ad-panel.span-7 { grid-column: span 7; }
.ad-panel.span-8 { grid-column: span 8; }
.ad-panel.span-12 { grid-column: span 12; }
@media (max-width: 900px) {
  .ad-grid { grid-template-columns: 1fr; }
  .ad-panel[class*="span-"] { grid-column: 1 / -1; }
}

/* ---- stat card ---- */
.ad-stat {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.ad-stat:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}
.ad-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.ad-stat-l {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
}
.ad-stat-ic {
  color: var(--accent-strong);
  opacity: 0.75;
  display: inline-flex;
}
.ad-stat-v {
  font-size: 1.55rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.ad-stat-sub {
  font-size: 0.74rem;
  color: var(--faint);
}
.ad-stat-sub.ok { color: var(--success); }
.ad-stat-sub.warn { color: var(--warn); }
.ad-stat-sub.muted { color: var(--faint); }
.ad-stat.warn { border-color: rgba(227, 189, 126, 0.28); }
.ad-stat.danger { border-color: rgba(236, 125, 118, 0.3); }
.ad-stat.ok { border-color: rgba(98, 205, 155, 0.26); }
.ad-stat-spark { margin-top: 0.15rem; }

/* ---- panel ---- */
.ad-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.ad-grid > .ad-panel { margin: 0; }
section.ad-panel { margin-top: 1.25rem; }
.ad-grid section.ad-panel { margin-top: 0; }
.ad-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.ad-panel-head .l {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.ad-panel-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent-strong);
}
.ad-panel-head h2 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ad-panel-head p {
  font-size: 0.76rem;
  color: var(--faint);
  margin-top: 0.1rem;
}
.ad-panel-head .r {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: none;
}
.ad-panel-body {
  padding: 1.2rem;
}
.ad-panel-body.nopad {
  padding: 0;
}

/* ---- pills / dots / bars / rings ---- */
.ad-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
}
.ad-pill.ok { color: var(--success); border-color: rgba(98, 205, 155, 0.32); background: rgba(98, 205, 155, 0.1); }
.ad-pill.warn { color: var(--warn); border-color: rgba(227, 189, 126, 0.32); background: rgba(227, 189, 126, 0.1); }
.ad-pill.danger { color: var(--danger); border-color: rgba(236, 125, 118, 0.32); background: rgba(236, 125, 118, 0.1); }
.ad-pill.info { color: var(--accent-strong); border-color: var(--accent-line); background: var(--accent-soft); }
.ad-pill.muted { color: var(--faint); }
.ad-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--faint);
  flex: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.ad-dot.ok { background: var(--success); box-shadow: 0 0 0 3px rgba(98, 205, 155, 0.16); }
.ad-dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(227, 189, 126, 0.16); }
.ad-dot.danger { background: var(--danger); box-shadow: 0 0 0 3px rgba(236, 125, 118, 0.16); }
.ad-dot.info { background: var(--accent); box-shadow: 0 0 0 3px rgba(111, 155, 242, 0.16); }
.ad-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.ad-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}
.ad-bar > span.ok { background: var(--success); }
.ad-bar > span.warn { background: var(--warn); }
.ad-bar > span.danger { background: var(--danger); }
.ad-bar > span.muted { background: var(--faint); }
.ad-bar > span.info { background: var(--accent); }
.ad-ring {
  position: relative;
  width: 78px;
  height: 78px;
}
.ad-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ad-ring circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}
.ad-ring circle.bg {
  stroke: rgba(255, 255, 255, 0.07);
}
.ad-ring circle.fg {
  stroke: var(--accent);
  transition: stroke-dashoffset 0.7s var(--ease);
}
.ad-ring.warn circle.fg { stroke: var(--warn); }
.ad-ring.danger circle.fg { stroke: var(--danger); }
.ad-ring.info circle.fg { stroke: var(--accent-strong); }
.ad-ring-c {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ad-ring-v {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.ad-ring-v small {
  font-size: 0.6rem;
  color: var(--faint);
}
.ad-ring-l {
  font-size: 0.62rem;
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ad-spark {
  width: 100%;
  height: 34px;
  display: block;
  overflow: visible;
}
.ad-spark polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.ad-spark polygon.fill {
  fill: rgba(111, 155, 242, 0.1);
  stroke: none;
}
.ad-spark.ok polyline { stroke: var(--success); }
.ad-spark.ok polygon.fill { fill: rgba(98, 205, 155, 0.1); }
.ad-spark.info polyline { stroke: var(--accent-strong); }

/* ---- key/value ---- */
.ad-kv {
  display: flex;
  flex-direction: column;
}
.ad-kv-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
}
.ad-panel-body.nopad .ad-kv-row:last-child,
.ad-kv-row:last-child {
  border-bottom: none;
}
.ad-kv-row .k {
  color: var(--muted);
  flex: none;
}
.ad-kv-row .v {
  text-align: right;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  justify-content: flex-end;
  flex: 1;
  min-width: 0;
}
.ad-kv-row .v .ad-bar {
  width: 7rem;
  flex: none;
}
.ad-kv-num {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* ---- table ---- */
.ad-table-wrap {
  overflow-x: auto;
}
.ad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.ad-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.012);
}
.ad-table td {
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ad-table tbody tr:last-child td {
  border-bottom: none;
}
.ad-table tbody tr {
  transition: background var(--t) var(--ease);
}
.ad-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}
.ad-row-click {
  cursor: pointer;
}
.ad-table-empty {
  text-align: center;
  color: var(--faint);
  padding: 2.25rem 1rem !important;
}
.ad-rowact {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  justify-content: flex-end;
}

/* ---- misc text ---- */
.ad-muted { color: var(--muted); }
.ad-muted.sm,
.sm.ad-muted { font-size: 0.76rem; }
.ad-link {
  font-size: 0.8rem;
  color: var(--accent-strong);
}
.ad-link:hover { text-decoration: underline; }
.ad-chip {
  font-size: 0.62rem;
  font-weight: 650;
  padding: 0.1rem 0.4rem;
  border-radius: 5px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  vertical-align: middle;
}
.ad-foot-note {
  margin-top: 1rem;
  font-size: 0.76rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ad-foot-note .mono { color: var(--muted); }
.ad-actions-col {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---- empty state ---- */
.ad-empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.ad-empty .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.ad-empty h3 {
  font-size: 0.95rem;
  font-weight: 600;
}
.ad-empty p {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ---- status banner ---- */
.ad-banner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  margin-top: 1.25rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface);
}
.ad-banner.ok { border-color: rgba(98, 205, 155, 0.24); background: rgba(98, 205, 155, 0.05); }
.ad-banner.warn { border-color: rgba(227, 189, 126, 0.26); background: rgba(227, 189, 126, 0.05); }
.ad-banner.danger { border-color: rgba(236, 125, 118, 0.28); background: rgba(236, 125, 118, 0.05); }
.ad-banner strong {
  font-size: 0.92rem;
  font-weight: 600;
  display: block;
}
.ad-banner-sub {
  font-size: 0.78rem;
  color: var(--muted);
}
.ad-banner .btn {
  margin-left: auto;
  flex: none;
}

/* ---- integrations ---- */
.ad-integ-list {
  display: flex;
  flex-direction: column;
}
.ad-integ {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.ad-integ:last-child { border-bottom: none; }
.ad-integ-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent-strong);
}
.ad-integ-meta { flex: 1; min-width: 0; }
.ad-integ-name { font-size: 0.85rem; font-weight: 550; }
.ad-integ-sub { font-size: 0.74rem; color: var(--faint); }

/* ---- log list ---- */
.ad-loglist { display: flex; flex-direction: column; }
.ad-logline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.ad-logline:last-child { border-bottom: none; }
.ad-loglist.term { background: rgba(0, 0, 0, 0.18); }
.ad-loglist.term .ad-logline { padding: 0.45rem 1.2rem; }
.ad-log-lvl {
  flex: none;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  min-width: 3.2rem;
  text-align: center;
}
.ad-log-lvl.ok { color: var(--success); background: rgba(98, 205, 155, 0.1); }
.ad-log-lvl.info { color: var(--accent-strong); background: var(--accent-soft); }
.ad-log-lvl.warn { color: var(--warn); background: rgba(227, 189, 126, 0.1); }
.ad-log-lvl.danger { color: var(--danger); background: rgba(236, 125, 118, 0.1); }
.ad-log-lvl.muted { color: var(--faint); background: rgba(255, 255, 255, 0.04); }
.ad-log-msg { flex: 1; min-width: 0; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-loglist.term .ad-log-msg { color: var(--muted); }
.ad-log-ts { flex: none; font-size: 0.72rem; color: var(--faint); }
.ad-logline.sql { align-items: flex-start; flex-direction: column; gap: 0.3rem; }
.ad-logline.sql code { font-size: 0.76rem; color: var(--accent-strong); word-break: break-all; }

.ad-log-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.25rem;
  flex-wrap: wrap;
}
.ad-filters { display: flex; gap: 0.3rem; flex-wrap: wrap; }
.ad-filter {
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: capitalize;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
  transition: all var(--t) var(--ease);
}
.ad-filter:hover { color: var(--text); border-color: var(--line-2); }
.ad-filter.on { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---- search field ---- */
.ad-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.ad-search:focus-within {
  border-color: var(--accent-line);
  box-shadow: var(--ring);
}
.ad-search span { color: var(--faint); display: inline-flex; }
.ad-search input {
  border: none;
  background: none;
  color: var(--text);
  font-family: inherit;
  font-size: 0.83rem;
  padding: 0.5rem 0;
  outline: none;
  width: 100%;
}
.ad-search.sm { min-width: 13rem; }

/* ---- server gauges + processes ---- */
.ad-gauges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 540px) {
  .ad-gauges { grid-template-columns: repeat(2, 1fr); }
}
.ad-gauge {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ad-proc { font-weight: 500; }

/* ---- monitoring chart ---- */
.ad-grid.ad-live .ad-stat-v { font-variant-numeric: tabular-nums; }
.ad-chart { display: flex; flex-direction: column; gap: 0.5rem; }
.ad-chart-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.ad-chart-top .ad-muted { font-size: 0.78rem; }
.ad-chart-now { font-size: 1.4rem; font-weight: 650; letter-spacing: -0.02em; }
.ad-chart-svg {
  width: 100%;
  height: 150px;
  display: block;
}
.ad-chart-svg polyline {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.ad-chart-svg polygon.fill { fill: rgba(111, 155, 242, 0.08); stroke: none; }
.ad-chart-svg.ok polyline { stroke: var(--success); }
.ad-chart-svg.ok polygon.fill { fill: rgba(98, 205, 155, 0.08); }
.ad-chart-svg.info polyline { stroke: var(--accent-strong); }

/* ---- analytics breakdown ---- */
.ad-tw-name { font-weight: 550; }
.ad-break { display: flex; flex-direction: column; gap: 0.85rem; }
.ad-break-row {
  display: grid;
  grid-template-columns: 7rem 1fr 2rem;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.82rem;
}
.ad-break-l { color: var(--muted); }
.ad-break-n { text-align: right; font-variant-numeric: tabular-nums; }
.ad-break-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.ad-break-foot strong { font-size: 1.05rem; font-weight: 650; }

/* ---- user / line cells ---- */
.ad-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.avatar.sm {
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.62rem;
}
.ad-user-nm { font-size: 0.85rem; font-weight: 550; white-space: nowrap; }
.ad-user-em { font-size: 0.72rem; color: var(--faint); white-space: nowrap; }
.ad-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}
.ad-line:last-child { border-bottom: none; }
.ad-line-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent-strong);
}
.ad-line-main { flex: 1; min-width: 0; font-size: 0.85rem; }

/* ---- toggle switch ---- */
.ad-toggle {
  position: relative;
  flex: none;
  width: 2.4rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface-3);
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  padding: 0;
}
.ad-toggle > span {
  position: absolute;
  top: 50%;
  left: 0.18rem;
  transform: translateY(-50%);
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  background: var(--muted);
  transition: transform var(--t) var(--ease), background var(--t) var(--ease);
}
.ad-toggle.on {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.ad-toggle.on > span {
  transform: translateY(-50%) translateX(1.05rem);
  background: var(--accent-strong);
}

/* ---- file manager ---- */
.ad-fm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.25rem 0 0.25rem;
  flex-wrap: wrap;
}
.ad-fm-crumb {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.ad-fm-crumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
}
.ad-fm-crumb a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.ad-fm-crumb svg { color: var(--faint); }
.ad-file {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  min-width: 0;
}
.ad-file:hover { color: var(--accent-strong); }
.ad-file-ic {
  flex: none;
  display: inline-flex;
  color: var(--faint);
}
.ad-file-ic.dir { color: var(--accent-strong); }

/* ---- code editor ---- */
.ad-editor {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.ad-editor-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.ad-editor-name {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.ad-editor-area {
  width: 100%;
  min-height: 26rem;
  border: none;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.7;
  padding: 1.1rem 1.2rem;
  resize: vertical;
  outline: none;
  display: block;
  tab-size: 2;
}

/* ---- SQL console ---- */
.ad-sql-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.85rem;
  flex-wrap: wrap;
}
.ad-sql-result { margin-top: 1.1rem; }
.ad-sql-result-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.ad-sql-out {
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  color: var(--accent-strong);
  white-space: pre-wrap;
  word-break: break-word;
}
#ad-form-sql .ad-editor-area { min-height: 9rem; border-radius: var(--r-sm); border: 1px solid var(--line); }

/* ---- deployments ---- */
.ad-deploy-cur { display: flex; flex-direction: column; }
.ad-deploy-ver {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.ad-deploy-v {
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.ad-deploy-cur .ad-kv-row { padding-left: 0; padding-right: 0; }
.ad-deploy-tag { font-weight: 600; }
.ad-deploy-log {
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--r-sm);
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  line-height: 1.75;
  color: var(--muted);
  white-space: pre-wrap;
  max-height: 22rem;
  overflow: auto;
}

/* ---- AI assistant ---- */
.ad-ai-banner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  font-size: 0.8rem;
  color: var(--muted);
}
.ad-ai-banner svg { color: var(--accent-strong); flex: none; }
.ad-ai-banner strong { color: var(--text); }
.ad-ai-panel { margin-top: 1.1rem; display: flex; flex-direction: column; }
.ad-ai-thread {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.3rem;
  max-height: 30rem;
  overflow-y: auto;
}
.ad-ai-intro {
  text-align: center;
  padding: 2.5rem 1.5rem 1.5rem;
}
.ad-ai-intro > svg { color: var(--accent-strong); }
.ad-ai-intro h3 { font-size: 1.05rem; font-weight: 600; margin-top: 0.6rem; }
.ad-ai-intro p { font-size: 0.85rem; color: var(--muted); max-width: 34rem; margin: 0.4rem auto 0; }
.ad-ai-caps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.6rem;
  margin-top: 1.5rem;
  text-align: left;
}
.ad-ai-cap {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.ad-ai-cap:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.ad-ai-cap-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent-strong);
}
.ad-ai-cap-t { font-size: 0.85rem; font-weight: 600; }
.ad-ai-cap-d { font-size: 0.74rem; color: var(--faint); margin-top: 0.1rem; }
.ad-ai-msg { display: flex; gap: 0.6rem; max-width: 100%; }
.ad-ai-msg.user { justify-content: flex-end; }
.ad-ai-msg.user .ad-ai-bubble {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--text);
  max-width: 80%;
}
.ad-ai-av {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--accent-strong);
}
.ad-ai-bubble {
  padding: 0.8rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.86rem;
  line-height: 1.6;
  max-width: 85%;
}
.ad-ai-bubble p { margin: 0 0 0.5rem; }
.ad-ai-bubble p:last-child { margin-bottom: 0; }
.ad-ai-bubble code {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8em;
  color: var(--accent-strong);
  background: rgba(0, 0, 0, 0.22);
  padding: 0.05rem 0.3rem;
  border-radius: 5px;
}
.ad-ai-bubble pre {
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.75rem 0.9rem;
  font-size: 0.78rem;
  color: var(--accent-strong);
  overflow-x: auto;
  margin: 0.5rem 0;
}
.ad-ai-list { margin: 0.3rem 0 0.5rem; padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.25rem; }
.ad-ai-list li { font-size: 0.83rem; color: var(--muted); }
.ad-ai-list li strong { color: var(--text); }
.ad-ai-proposal {
  margin-top: 0.75rem;
  border: 1px solid rgba(227, 189, 126, 0.3);
  border-radius: var(--r-sm);
  background: rgba(227, 189, 126, 0.06);
  padding: 0.8rem 0.9rem;
}
.ad-ai-prop-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--warn);
}
.ad-ai-proposal p { font-size: 0.82rem; color: var(--muted); margin: 0.45rem 0 0.7rem; }
.ad-ai-prop-actions { display: flex; gap: 0.5rem; }
.ad-ai-input {
  display: flex;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
}
.ad-ai-input input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 0.86rem;
  padding: 0.6rem 0.85rem;
  outline: none;
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.ad-ai-input input:focus { border-color: var(--accent-line); box-shadow: var(--ring); }
.ad-ai-input .btn { flex: none; }

/* ---- security checks ---- */
.ad-checks { display: flex; flex-direction: column; }
.ad-check {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.ad-check:last-child { border-bottom: none; }
.ad-check-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
}
.ad-check-ic.ok { color: var(--success); background: rgba(98, 205, 155, 0.1); }
.ad-check-ic.warn { color: var(--warn); background: rgba(227, 189, 126, 0.1); }
.ad-check-ic.sm { width: 1.4rem; height: 1.4rem; }
.ad-check-main { flex: 1; min-width: 0; }
.ad-check-t { font-size: 0.85rem; font-weight: 550; }
.ad-check-d { font-size: 0.76rem; color: var(--faint); }

/* ---- notifications ---- */
.ad-notif-list { display: flex; flex-direction: column; }
.ad-notif {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.ad-notif:last-child { border-bottom: none; }
.ad-notif.unread { background: rgba(111, 155, 242, 0.035); }
.ad-notif-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.ad-notif-ic.ok { color: var(--success); }
.ad-notif-ic.warn { color: var(--warn); }
.ad-notif-ic.danger { color: var(--danger); }
.ad-notif-ic.info { color: var(--accent-strong); }
.ad-notif-ic.muted { color: var(--faint); }
.ad-notif-main { flex: 1; min-width: 0; }
.ad-notif-t {
  font-size: 0.86rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.ad-notif-new {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}
.ad-notif-b { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.ad-notif-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex: none;
}

/* ---- settings forms ---- */
.ad-form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  max-width: 34rem;
}
.ad-form-row:last-of-type { border-bottom: none; }
.ad-form-row.toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ad-form-row label {
  font-size: 0.83rem;
  font-weight: 550;
  color: var(--text);
}
.ad-form-help { font-size: 0.75rem; color: var(--faint); }
.ad-form-row .input,
.ad-form-row select {
  max-width: 26rem;
}
.ad-form-actions {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.ad-conn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 550;
  color: var(--muted);
}
.ad-conn.ok { color: var(--success); }

/* env vars + flags */
.ad-env-add {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 1rem 1.2rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.ad-env-add .input { flex: 1; min-width: 8rem; max-width: 16rem; }
.ad-env-secret {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.ad-flags { display: flex; flex-direction: column; gap: 0.75rem; }
.ad-flag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface-2);
}
.ad-flag-main { min-width: 0; }
.ad-flag-k { font-size: 0.85rem; font-weight: 600; color: var(--accent-strong); }
.ad-flag-d { font-size: 0.76rem; color: var(--faint); margin-top: 0.1rem; }

/* ---- approval modal ---- */
.ad-modal-wrap {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.ad-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: fade 0.2s var(--ease);
}
.ad-modal {
  position: relative;
  width: 100%;
  max-width: 27rem;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--elevated);
  box-shadow: var(--shadow-lg);
  padding: 1.6rem;
  text-align: center;
  animation: modalIn 0.26s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
}
.ad-modal-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.ad-modal-ic.danger {
  color: var(--danger);
  background: rgba(236, 125, 118, 0.1);
  border-color: rgba(236, 125, 118, 0.3);
}
.ad-modal h3 { font-size: 1.1rem; font-weight: 650; }
.ad-modal p { font-size: 0.86rem; color: var(--muted); margin-top: 0.5rem; }
.ad-modal-note {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 0.9rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--faint);
}
.ad-modal-actions {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1.4rem;
}
.ad-modal-actions .btn { min-width: 8rem; }
.ad-btn-danger {
  background: var(--danger);
  color: #1a0b0a;
  border: 1px solid var(--danger);
  font-weight: 600;
}
.ad-btn-danger:hover { filter: brightness(1.08); }

/* mono helper inside admin */
.ad-inner .mono,
.ad-table .mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* ---- Administration v2: backend-driven additions ---- */
.ad-mode-banner { margin-top: 1.25rem; }
.ad-mode-row { margin-bottom: 0.6rem; }
.ad-mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
}
.ad-mode-chip.live { color: var(--success); border-color: rgba(98, 205, 155, 0.32); background: rgba(98, 205, 155, 0.08); }
.ad-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.ad-loading svg { animation: adspin 0.9s linear infinite; color: var(--accent-strong); }
@keyframes adspin { to { transform: rotate(360deg); } }
.ad-chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 150px;
  color: var(--faint);
  font-size: 0.85rem;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-sm);
}
.ad-locked {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.ad-locked svg { color: var(--faint); }
.ad-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.ad-pager .btn[disabled] { opacity: 0.4; pointer-events: none; }
.ad-img-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--r-sm);
}
.ad-img-preview img { max-width: 100%; max-height: 60vh; border-radius: var(--r-sm); }

/* ---- Repository / sync (Git control centre) ---- */
.ad-sync { display: flex; flex-direction: column; gap: 0.75rem; }
.ad-sync-row { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.ad-sync-row .ad-muted { font-size: 0.78rem; }
.ad-sync-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ad-sync .ad-editor-area { min-height: 6rem; border-radius: var(--r-sm); border: 1px solid var(--line); }
