/* ==========================================================================
   1. DESIGN TOKENS / ROOT VARIABLES
   ========================================================================== */
:root {
  /* Color Palette */
  --bg: #0b1220;
  --bg-secondary: #0d1628;
  --card-bg: rgba(255, 255, 255, 0.028);
  --border: rgba(255, 255, 255, 0.07);
  --border-active: rgba(255, 106, 26, 0.4);

  --text: #ffffff;
  --text-muted: #9499a1;
  --text-dim: rgba(255, 255, 255, 0.42);
  --text-lock: rgba(255, 255, 255, 0.28);

  --primary: #ff6a1a;
  --primary-hover: #e65c0f;
  --primary-glow: rgba(255, 106, 26, 0.25);

  --danger: #f87171;
  --success: #6ee7b7;

  /* Typography */
  --font: "Inter", system-ui, -apple-system, sans-serif;

  /* Radius & Shadows & Blur */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --radius-card: 22px;
  --radius-full: 100px;
  --shadow-card: 0 32px 80px rgba(0, 0, 0, 0.5);
  --glass-blur: blur(28px);

  /* Z-Index Structure */
  --z-nav: 200;
  --z-modal: 500;
  --z-scroll: 2000;
  --z-assistant: 99990;
  --z-overlay: 99999;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body:not(.page-dashboard):not(.page-admin) {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Noise texture overlay */
body:not(.page-dashboard):not(.page-admin)::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

p {
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 0.88rem;
}

strong {
  color: var(--text);
}

/* Scroll Offset for Anchor Links */
section[id],
.clause {
  scroll-margin-top: 80px;
}

/* Utility Helpers */
.u-hidden {
  display: none !important;
}
.u-flex {
  display: flex;
}
.u-center {
  text-align: center;
}

/* ==========================================================================
   3. NAVIGATION
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.92) 0%, transparent 100%);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    height 0.3s ease,
    padding 0.3s ease;
}

nav.nav--solid {
  background: var(--bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: none;
  height: 62px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-center a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--text);
}

.nav-r {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid rgba(255, 106, 26, 0.3);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.nav-back:hover {
  background: rgba(255, 106, 26, 0.1);
}

/* ==========================================================================
   4. BUTTONS & FORMS
   ========================================================================== */
.btn-fire,
.c-btn-fire,
.btn-hero-primary {
  background: var(--primary);
  color: #000;
  border: none;
  font-family: var(--font);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.btn-fire {
  padding: 0.52rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
}

.btn-fire:hover,
.c-btn-fire:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-hero-primary {
  padding: 1.1rem 3rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-top: 1.2rem;
}

.btn-hero-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.btn-cta-fire {
  background: var(--primary);
  color: #000;
  border: none;
  padding: 1rem 2.2rem;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-top: 50px;
}

.btn-cta-fire:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-ghost {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--text-dim);
  padding: 0.52rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-ghost:hover {
  border-color: var(--border-active);
  color: var(--text);
  background: rgba(255, 106, 26, 0.1);
}

.btn-dashboard {
  /* Hidden until index.js confirms a logged-in session (see #navDashboard in
     the DOMContentLoaded handler), so a guest never sees a link that just
     bounces them back from /dashboard. */
  display: none;
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(255, 106, 26, 0.35);
  padding: 0.52rem 1.3rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-dashboard:hover {
  background: var(--primary);
  color: #000;
}

/* Forms General */
.form-group {
  margin-bottom: 0.88rem;
  display: flex;
  flex-direction: column;
}

label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.48rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 0.88rem;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-active);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.1);
}

select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  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='%239499A1' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select option {
  background: var(--bg-secondary);
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

#regTermsAccepted {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

#regTermsAccepted:hover {
  border-color: var(--primary);
  background: rgba(255, 106, 26, 0.1);
}

#regTermsAccepted:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

#regTermsAccepted:checked::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

/* ==========================================================================
   5. LANDING HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(
    ellipse at 55% 35%,
    #2a1a3e 0%,
    #0d0f1e 55%,
    var(--bg) 100%
  );
  padding: 64px 0 0;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 4vw;
}

.hero-h1 {
  font-size: clamp(2rem, 5vw, 50px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 1.25em 0 0.25em;
}

.hero-sub {
  font-size: 17px;
  color: var(--text);
  line-height: 1.6;
  max-width: 690px;
  margin: 0 auto;
  opacity: 0.7;
}

.indexheroimg {
  width: 100%;
  margin: 2rem auto 0;
  display: block;
}

/* ==========================================================================
   6. FLOW STEPS (JOURNEY PIPELINE)
   ========================================================================== */
.flow-steps {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
}

.flow-card-wrap {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  width: 100%;
}

.flow-card-wrap.step-left {
  flex-direction: row;
}
.flow-card-wrap.step-right {
  flex-direction: row-reverse;
}

.flow-card {
  width: 320px;
  flex-shrink: 0;
  background: #111723;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow:
    0 0 30px var(--primary-glow),
    inset 0 0 15px rgba(255, 106, 26, 0.15);
  position: relative;
  z-index: 2;
}

.flow-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.flow-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.icon-svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
}

.flow-input-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 140px;
  box-sizing: border-box;
}

.flow-input-box textarea {
  height: 60px;
  background: transparent;
  border: none;
  resize: none;
}

.upload-btn {
  width: 32px;
  height: 32px;
  color: var(--primary);
  cursor: pointer;
}

.flow-btn-primary {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary);
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.flow-btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 0 20px var(--primary-glow);
}

.flow-info {
  padding-top: 1rem;
}

.flow-info h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.flow-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
  padding: 0;
}

.flow-list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.flow-connector-block {
  position: relative;
  width: 100%;
  height: 140px;
  margin: -10px 0;
  z-index: 1;
}

.connector-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.path-core {
  fill: none;
  stroke: rgba(255, 106, 26, 0.25);
  stroke-width: 2px;
}

.path-glow {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3px;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--primary));
  stroke-dasharray: 80 1000;
  stroke-dashoffset: 1080;
  animation: flow-pulse-travel 3.2s linear infinite;
}

@keyframes flow-pulse-travel {
  0% {
    stroke-dashoffset: 1080;
    opacity: 0;
  }
  5%,
  95% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}

.node-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.node-icon {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
}

.node-text {
  display: flex;
  flex-direction: column;
}
.node-text strong {
  font-size: 0.8rem;
  line-height: 1.1;
}
.node-text span {
  font-size: 0.68rem;
  color: var(--text-muted);
}

/* ==========================================================================
   7. PRICING SECTION
   ========================================================================== */
.pricing {
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.p-header {
  margin-bottom: 3rem;
}

.sec-tag {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1.4rem;
}

.sec-h {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 4rem;
}

.price-toggle {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.price-toggle button {
  padding: 0.5rem 1.6rem;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  color: var(--text-muted);
}

.price-toggle button.active {
  background: var(--primary);
  color: #000;
}

.badge-discount {
  color: var(--primary);
  font-size: 0.7rem;
  margin-left: 2px;
}

.price-toggle button.active .badge-discount {
  color: #000;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: stretch;
}

.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2.6rem 2rem;
  text-align: left;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
  opacity: 0;
  transform: translateY(38px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease,
    box-shadow 0.4s;
  display: flex;
  flex-direction: column;
}

.card.on {
  opacity: 1;
  transform: translateY(0);
}

.card:hover,
.card.on:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-5px);
}

.card.featured {
  border-color: rgba(255, 106, 26, 0.35);
  background: rgba(255, 106, 26, 0.03);
}

.card.swept .sweep-beam {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 45%,
    rgba(255, 106, 26, 0.08) 50%,
    transparent 55%
  );
  pointer-events: none;
  transform: rotate(30deg);
  animation: sweep 6s infinite ease-in-out;
}

@keyframes sweep {
  0% {
    transform: translateY(-100%) rotate(30deg);
  }
  20%,
  100% {
    transform: translateY(100%) rotate(30deg);
  }
}

.c-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.95rem;
  border-radius: 0 0 10px 10px;
}

.c-tier {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.c-price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.c-price sup {
  font-size: 1.5rem;
  top: -0.6em;
  font-weight: 700;
}

.c-price em {
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dim);
}

.c-desc {
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0.6rem 0 1.2rem;
  min-height: 38px;
}

.c-div {
  height: 1px;
  background: rgba(255, 255, 255, 0.055);
  margin-bottom: 1.5rem;
}

.c-feats {
  flex-grow: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c-feats li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 0;
}

.c-feats li.lock {
  color: var(--text-lock);
}

.ck {
  color: var(--primary);
  flex-shrink: 0;
  font-size: 0.75rem;
}

.lk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
}

.extra-usage {
  margin-top: 0;
  padding-top: 1.2rem;
  margin-bottom: 1.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.extra-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.5rem;
}

.extra-item {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.c-btn {
  width: 100%;
  padding: 0.88rem;
  border-radius: 12px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s;
  border: none;
  letter-spacing: 0.02em;
  text-align: center;
}

.c-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.c-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.c-btn-amber {
  background: transparent;
  border: 1px solid rgba(255, 106, 26, 0.3);
  color: var(--primary);
}

.c-btn-amber:hover {
  background: rgba(255, 106, 26, 0.1);
  border-color: var(--primary);
}

.plan-note {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 0.8rem;
  text-align: center;
}

.vcta {
  padding: 6rem 2rem 9rem;
  text-align: center;
}

.vcta h2 {
  font-size: clamp(2rem, 5vw, 50px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 1.8rem;
}

/* ==========================================================================
   8. MODAL & AUTHENTICATION
   ========================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(5, 5, 7, 0.88);
  backdrop-filter: blur(18px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.open,
.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 390px;
  position: relative;
  backdrop-filter: blur(40px);
  box-shadow:
    0 0 0 1px rgba(255, 106, 26, 0.1),
    0 50px 100px rgba(0, 0, 0, 0.6);
  animation: m-up 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes m-up {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.22);
  font-size: 1.2rem;
}

.btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.78rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 0.5rem;
}

.btn-google:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.25);
}

.form-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--border);
}

.form-divider::before {
  margin-right: 0.8rem;
}
.form-divider::after {
  margin-left: 0.8rem;
}

.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.2rem 0 1.5rem;
}

.form-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-checkbox-row label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.45;
  margin-bottom: 0;
}

.form-checkbox-row label a {
  color: var(--primary);
  text-decoration: underline;
}

.btn-modal-primary {
  width: 100%;
  padding: 0.88rem;
  background: var(--primary);
  color: #000;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-modal-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-modal-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.4);
}

.form-switch {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.form-switch a {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   9. SHARED SUBPAGES (FAQ, CONTACT, PRIVACY & TERMS)
   ========================================================================== */

/* Layout & Page Wrappers */
.page-wrap,
.page-wrap-faq,
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.page-wrap {
  max-width: 760px;
  padding-top: 8rem;
}

.legal-container {
  padding-top: 3rem;
  padding-bottom: 6rem;
}

/* Hero Sections for Subpages */
.page-hero,
.hero-faq {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-faq {
  background: linear-gradient(
    180deg,
    rgba(255, 106, 26, 0.06) 0%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(255, 106, 26, 0.08);
  padding: 5rem 2rem 2.5rem;
  margin-top: 64px;
}

/* Consolidated from 3 separate blocks (text-align/margin, then
   background/border/padding, then padding/margin overrides) into their
   final computed values — same visual result, easier to edit safely. */
.legal-hero {
  text-align: center;
  background: linear-gradient(
    180deg,
    rgba(255, 106, 26, 0.06) 0%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(255, 106, 26, 0.08);
  padding: 6rem 1.5rem 3rem;
  margin-top: 64px;
  margin-bottom: 0;
}

.page-hero h1,
.hero-faq h1,
.legal-hero h1 {
  font-size: clamp(2rem, 5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-hero p,
.hero-faq p,
.legal-hero p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

.page-badge,
.hero-faq .badge,
.badge {
  display: inline-block;
  background: rgba(255, 106, 26, 0.1);
  border: 1px solid rgba(255, 106, 26, 0.25);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Content Cards & Highlight Boxes */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.highlight-box {
  background: rgba(255, 106, 26, 0.06);
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.highlight-box p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.highlight-box a {
  color: var(--primary);
  text-decoration: underline;
}

.highlight-box--spaced {
  margin-top: 2rem;
}

/* Common Links & Clause Titles */
.clause-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: -0.01em;
}

.clause-title .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.12);
  border: 1px solid rgba(255, 106, 26, 0.3);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
}

.clause p a,
.contact-card a,
.faq-a a,
.link-fire {
  color: var(--primary);
}

.clause p a {
  text-decoration: underline;
}

/* Contact Page Specifics */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  background: var(--primary);
  color: #000;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn-submit:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
}

#submitError {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.75rem;
  text-align: center;
  display: none;
}

#submitError a {
  color: var(--primary);
  text-decoration: underline;
}

#formSuccess {
  display: none;
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.success-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

#formSuccess h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

#formSuccess p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 106, 26, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-card strong {
  color: var(--text);
}

/* FAQ Specifics */
.search-wrap {
  position: relative;
  max-width: 520px;
  margin: 0 auto 2rem;
}

.search-wrap input {
  padding-left: 3rem;
  border-radius: var(--radius-full);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  justify-content: center;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.cat-btn {
  all: unset;
  box-sizing: border-box;
  font-family: var(--font);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.cat-btn:hover,
.cat-btn.active {
  background: rgba(255, 106, 26, 0.1);
  border-color: rgba(255, 106, 26, 0.35);
  color: var(--primary);
}

.faq-section {
  margin-bottom: 2rem;
}

.faq-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q:hover {
  color: var(--primary);
}

.faq-q .faq-icon {
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s;
  width: 16px;
  height: 16px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-a strong {
  color: inherit;
  font-weight: 700;
}

.faq-item.open .faq-a {
  display: block;
}

.section-spaced {
  margin-top: 3rem;
  padding-bottom: 2rem;
}

#noResults {
  display: none;
}

/* Legal & Privacy Specifics (TOC & Clause Lists) */
.toc {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  backdrop-filter: var(--glass-blur);
}

.toc h3 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toc-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc li {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.toc .n {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85rem;
  flex-shrink: 0;
  min-width: 1.4rem;
  text-align: right;
}

.toc a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.toc a:hover {
  color: var(--primary);
}

.clause {
  margin-bottom: 2.8rem;
  padding-bottom: 2.8rem;
  border-bottom: 1px solid var(--border);
}

.clause:last-child {
  border-bottom: none;
}

.clause p {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-list {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.legal-list li {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-list strong {
  color: var(--text);
}

/* ==========================================================================
   10. VIRTUAL ASSISTANT & FOOTER
   ========================================================================== */
#va-btn {
  all: unset;
  box-sizing: border-box;
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: var(--z-assistant);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  color: #111111;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 16px var(--primary-glow);
}

#va-panel {
  display: none;
  position: fixed;
  bottom: 84px;
  right: 28px;
  z-index: var(--z-assistant);
  width: 344px;
  max-width: calc(100vw - 40px);
  background: var(--bg);
  border: 1px solid rgba(255, 106, 26, 0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.65);
  flex-direction: column;
}

#va-panel.va-open {
  display: flex;
}

/* Assistant — panel interior (shared by homepage & dashboard) */
#va-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-assistant) - 1);
  background: transparent;
}

#va-overlay.va-open {
  display: block;
}

#va-btn:hover {
  background: #f0f0f0;
}

#va-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--primary);
}

#va-header svg {
  flex-shrink: 0;
}

#va-header-text {
  flex: 1;
  min-width: 0;
}

#va-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

#va-subtitle {
  font-family: var(--font);
  font-size: 0.73rem;
  color: var(--text);
  opacity: 0.78;
  margin-top: 1px;
}

#va-close {
  all: unset;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  flex-shrink: 0;
}

#va-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

#va-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 340px;
  min-height: 120px;
  background: var(--bg);
}

#va-messages::-webkit-scrollbar {
  width: 3px;
}

#va-messages::-webkit-scrollbar-thumb {
  background: rgba(255, 106, 26, 0.25);
  border-radius: 3px;
}

.va-msg {
  display: flex;
}

.va-bot {
  justify-content: flex-start;
}

.va-user {
  justify-content: flex-end;
}

.va-bubble {
  max-width: 88%;
  padding: 9px 13px;
  border-radius: 14px;
  font-family: var(--font);
  font-size: 0.845rem;
  line-height: 1.55;
}

.va-bot .va-bubble {
  background: #111827;
  border: 1px solid rgba(255, 106, 26, 0.12);
  border-bottom-left-radius: 4px;
  color: #e2e8f0;
}

.va-user .va-bubble {
  background: rgba(255, 106, 26, 0.15);
  border: 1px solid rgba(255, 106, 26, 0.28);
  border-bottom-right-radius: 4px;
  color: #f1f5f9;
}

#va-chips {
  display: block;
}

.va-category {
  margin-bottom: 10px;
}

.va-category-label {
  font-family: var(--font);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 106, 26, 0.6);
  margin-bottom: 5px;
  padding-left: 2px;
}

.va-chip {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  background: #1e293b;
  border: 1px solid rgba(255, 106, 26, 0.15);
  border-radius: 8px;
  color: #94a3b8;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.3;
  margin-bottom: 5px;
  transition: all 0.15s;
}

.va-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(255, 106, 26, 0.06);
}

.va-chip-arrow {
  margin-left: auto;
  opacity: 0.4;
  font-size: 0.75rem;
}

.va-back-btn {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: #111d2e;
  border: 1px solid rgba(255, 106, 26, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 500;
  cursor: pointer;
}

.va-back-btn:hover {
  border-color: var(--primary);
}

#va-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255, 106, 26, 0.1);
  background: var(--bg);
}

#va-input {
  all: unset;
  flex: 1;
  background: #1e293b;
  border: 1px solid rgba(255, 106, 26, 0.18);
  border-radius: 8px;
  padding: 8px 12px;
  color: #f1f5f9;
  font-family: var(--font);
  font-size: 0.84rem;
  box-sizing: border-box;
}

#va-input::placeholder {
  color: #4b5563;
}

#va-input:focus {
  border-color: rgba(255, 106, 26, 0.5);
  outline: none;
}

#va-send {
  all: unset;
  padding: 8px 14px;
  background: var(--primary);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

#va-send:hover {
  background: var(--primary-hover);
}

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  padding: 2.4rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.f-copy,
.f-links a {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.18);
  transition: color 0.3s;
}

.f-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.f-links a:hover {
  color: rgba(255, 255, 255, 0.45);
}

#scrollToTopBtn {
  position: fixed;
  bottom: 28px;
  right: 180px;
  z-index: var(--z-scroll);
  width: 35px;
  height: 35px;
  background: rgba(11, 18, 32, 0.85);
  color: var(--primary);
  border: 1px solid rgba(255, 106, 26, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

#scrollToTopBtn.visible {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   11. RESPONSIVE BREAKPOINTS (STRICT DESCENT ORDER)
   ========================================================================== */
@media (max-width: 900px) {
  nav {
    padding: 0 1.25rem;
  }
  .nav-center {
    display: none;
  }
  .nav-r .btn-ghost {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  .nav-r .btn-fire {
    padding: 0.4rem 0.9rem;
    font-size: 0.75rem;
  }
  .nav-r .btn-dashboard {
    display: none;
  }
  .cards {
    grid-template-columns: 1fr;
    max-width: 100%;
    padding: 0 1rem;
  }
  .flow-card-wrap,
  .flow-card-wrap.step-left,
  .flow-card-wrap.step-right {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
  }
  .flow-card {
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .flow-connector-block {
    display: none;
  }
  footer {
    padding: 2rem 1.25rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .f-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .page-wrap,
  .legal-container {
    padding: 2rem 1rem 4rem;
  }
  .page-hero h1,
  .hero-faq h1,
  .legal-hero h1 {
    font-size: 1.75rem;
  }
  .page-hero p,
  .hero-faq p,
  .legal-hero p {
    font-size: 0.9rem;
  }
  .content-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
  .form-row,
  .toc-cols {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .toc {
    padding: 1.25rem;
  }
  .hero-faq,
  .legal-hero {
    padding: 5rem 1rem 2rem;
  }
  .categories {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 28px;
    line-height: 1.1;
  }
  .hero-sub {
    font-size: 14px;
  }
  .btn-hero-primary {
    width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.85rem;
  }
  .nav-logo-text {
    font-size: 0.9rem;
  }
  #va-btn {
    right: 12px;
    bottom: 12px;
    padding: 9px 14px;
    font-size: 12px;
  }
  #va-panel {
    right: 10px;
    bottom: 65px;
    width: calc(100vw - 20px);
  }
  #scrollToTopBtn {
    right: 120px;
    bottom: 12px;
  }
}

/* ==========================================================================
   12. DASHBOARD SPECIFIC STYLES (Safely Appended & Scoped)
   ========================================================================== */

/* Дашборд-змінні ізольовані через префікс --d- */
:root {
  --d-bg: #1a1c21;
  --d-bg2: #24272e;
  --d-bg3: #1e2128;
  --d-card: #24272e;
  --d-border: #32363f;
  --d-text: #f1f5f9;
  --d-text2: #8b949e;
  --d-accent: #ff6a1a;
  --d-accent2: #e86d00;
  --d-gradient: linear-gradient(135deg, #ff6a1a, #e86d00);
  --d-glow: rgba(255, 106, 26, 0.25);
  --d-success: #6ee7b7;
  --d-warn: #fbbf24;
  --d-danger: #f87171;
  --d-muted-label: #9499a1;
  --d-text-dim: rgba(255, 255, 255, 0.45);
  --d-border-accent: rgba(255, 106, 26, 0.2);
  --d-border-purple: rgba(192, 132, 252, 0.2);
  --d-border-success: rgba(74, 222, 128, 0.2);
  --d-bg-success-tint: rgba(74, 222, 128, 0.03);
  --d-bg-accent-tint: rgba(255, 106, 26, 0.03);
  --d-score-panel: #41414e;
  --d-overlay-dark: rgba(0, 0, 0, 0.75);
  --d-score-denom: rgba(255, 255, 255, 0.35);
  --d-score-bar-track: rgba(255, 255, 255, 0.1);
}

/* SCOPED BASE STYLES */
.page-dashboard {
  font-family: var(--font);
  background: var(--d-bg);
  color: var(--d-text);
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 240px;
  background: var(--d-bg2);
  border-right: 1px solid var(--d-border);
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 50;
  overflow-y: hidden;
}
.sidebar a.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  padding: 0 0.5rem;
  font-family: "General Sans", sans-serif;
  color: var(--d-text);
  text-shadow: 0 0 20px var(--d-glow);
}
.sidebar .logo img {
  height: 28px;
  width: auto;
}
.sidebar .logo__text {
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--d-text);
}
#sideNavHome {
  margin-top: 1.5rem;
}
#sideNavDocs {
  margin-top: 0.25rem;
}
#mobileNavBackHome {
  display: none;
  text-decoration: none;
}
.sidebar-fox-wrap {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: visible;
  flex-shrink: 0;
}
.sidebar-fox {
  width: 160px;
  height: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 0;
}
#billingBtnWrap {
  display: none;
  margin-top: 0.3rem;
}
.btn-billing-manage {
  font-size: 0.65rem;
  padding: 0.18rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  letter-spacing: 0.02em;
  font-family: inherit;
}
.nav-item--logout,
#adminLink {
  margin-top: 0.5rem;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  color: var(--d-text2);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  margin-bottom: 0.05rem;
  position: relative;
}
.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--d-text);
}
.nav-item.active {
  background: rgba(255, 106, 26, 0.1);
  color: #ff6a1a;
  border-left: 3px solid #ff6a1a;
}
.nav-item .icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}
.tier-badge {
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: absolute;
  right: 0.5rem;
}
.tier-free {
  background: rgba(74, 222, 128, 0.15);
  color: var(--d-success);
}
.tier-pro {
  background: rgba(255, 106, 26, 0.15);
  color: #ff6a1a;
}
.tier-premium {
  background: rgba(255, 106, 26, 0.1);
  color: #ff6a1a;
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--d-border);
  padding-top: 0.25rem;
}
.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  font-size: 0.85rem;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--d-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}
.user-plan {
  font-size: 0.7rem;
  color: var(--d-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* MAIN DASHBOARD AREA */
.main {
  margin-left: 240px;
  padding: 2rem;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--d-bg);
  color: var(--d-text);
}
.page-header {
  margin-bottom: 2rem;
  padding-top: 1.25rem;
}
.page-header h1 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}
.page-header p {
  color: var(--d-text2);
  font-size: 0.95rem;
}

/* DASHBOARD CARDS (Ізольовано через .main) */
/* The marketing .card (section 9) is a scroll-reveal card: it starts at
   opacity 0 and is revealed by index.js adding .on. The dashboard never loads
   that script, so its cards must opt out of the reveal and its flex/blur
   presentation. */
/* :where() keeps this at .main's specificity (0,1,0), so the card modifiers
   further down (.optimize-gate-card, .card-translate, .rf-complete-card …)
   still override it by source order, exactly as they did in dashboard.css. */
.main :where(.card),
.dashboard-card {
  position: static;
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: block;
  opacity: 1;
  transform: none;
  transition: none;
  overflow: visible;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.main :where(.card):hover,
.dashboard-card:hover {
  transform: none;
  box-shadow: none;
}
.main :where(.card) h3,
.dashboard-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* DASHBOARD FORMS (Ізольовано через .main та .sidebar) */
/* The assistant panel is deliberately left out: #va-input / #va-send carry
   their own styling in section 10, and an ID selector here would outrank it. */
/* :where() keeps these at .main's own specificity, so the per-field modifier
   classes (.textarea-md, .textarea-job, .textarea-answer …) still win, exactly
   as they did when these were bare element selectors in dashboard.css. */
.main :where(label),
.sidebar :where(label) {
  display: block;
  font-size: 0.85rem;
  color: var(--d-text2);
  margin-bottom: 0.35rem;
  font-weight: 500;
}
.main :where(input, select, textarea),
.sidebar :where(input) {
  width: 100%;
  padding: 0.7rem 1rem;
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 8px;
  color: var(--d-text);
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}
.main :where(input, select, textarea):focus {
  outline: none;
  border-color: #ff6a1a;
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.12);
}
.main :where(textarea) {
  min-height: 120px;
}
.main :where(.form-row) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.main :where(.form-group) {
  margin-bottom: 1rem;
  display: block;
}

/* DASHBOARD BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.btn-primary {
  background: #ff6a1a;
  color: #000;
  font-weight: 700;
  border-radius: 8px;
}
.btn-primary:hover {
  background: #ff8c1a;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn-outline {
  background: transparent;
  color: var(--d-accent);
  border: 1px solid rgba(255, 106, 26, 0.3);
}
.btn-outline:hover {
  background: rgba(255, 106, 26, 0.1);
}
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}
.btn-danger {
  background: rgba(248, 113, 113, 0.1);
  color: var(--d-danger);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.btn-block {
  width: 100%;
  justify-content: center;
}

/* WORKFLOW BAR (5-step, spec-exact) */
/* This is a <nav>, so it must explicitly undo the site header rule in
   section 3 (`nav { position: fixed; height: 68px; … }`), which would
   otherwise clip the step items. */
.step-flow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: 2rem;
  margin-left: -2rem;
  margin-right: -2rem;
  margin-top: -2rem;
  padding: 1rem 2rem;
  background: var(--d-bg2);
  border-bottom: 1px solid var(--d-border);
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  height: auto;
  transition: none;
  z-index: 40;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  position: relative;
  cursor: pointer;
}
.step-item:last-child {
  flex: 0;
}
.step-connector {
  flex: 1;
  height: 2px;
  background: #4a4d54;
  transition: background 0.4s;
}
.step-item.completed + .step-item .step-connector,
.step-connector.lit {
  background: #ff6a1a;
}
.step-node-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 80px;
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s;
  flex-shrink: 0;
  background: #2a2d35;
  border: 1.5px solid #4a4d54;
  color: #fff;
}
.step-item.completed .step-num {
  background: #ff6a1a;
  border: 2px solid #ff6a1a;
  color: #fff;
}
.step-item.active .step-num {
  background: transparent;
  border: 2px solid #ff6a1a;
  color: #ff6a1a;
  box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.2);
}
.step-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9499a1;
  white-space: nowrap;
  text-align: center;
  transition: color 0.3s;
}
.step-item.active .step-label {
  color: #fff;
  font-weight: 700;
}
.step-item.completed .step-label {
  color: #fff;
  font-weight: 700;
}
.step-item.locked {
  cursor: default;
}

/* ATS GAUGE */
.gauge-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gauge-score {
  font-family: "Inter", sans-serif;
  font-size: 3rem;
  font-weight: 800;
}
.gauge-label {
  color: var(--d-text2);
  font-size: 0.85rem;
}

/* TAGS */
.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin: 0.2rem;
  font-weight: 500;
}
.tag-red {
  background: rgba(248, 113, 113, 0.12);
  color: var(--d-danger);
}
.tag-green {
  background: rgba(74, 222, 128, 0.12);
  color: var(--d-success);
}
.tag-blue {
  background: rgba(255, 106, 26, 0.12);
  color: var(--d-accent);
}
.rec-item {
  padding: 0.75rem 1rem;
  background: var(--d-bg);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.rec-item strong {
  color: var(--d-accent);
}

/* VOICE CONTROLS */
.voice-area {
  border: 2px dashed var(--d-border);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  margin: 1rem 0;
  transition: all 0.3s;
}
.voice-area.recording {
  border-color: var(--d-danger);
  background: rgba(248, 113, 113, 0.05);
  animation: pulse 1.5s infinite;
}
.voice-area.done {
  border-color: var(--d-success);
  background: rgba(74, 222, 128, 0.05);
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}
.mic-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mic-btn.idle {
  background: var(--d-card);
  border: 2px solid var(--d-border);
  color: var(--d-text2);
}
.mic-btn.recording {
  background: rgba(248, 113, 113, 0.2);
  border: 2px solid var(--d-danger);
  color: var(--d-danger);
  animation: pulse 1s infinite;
}
.voice-transcript {
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
  text-align: left;
  min-height: 80px;
  color: var(--d-text);
  font-size: 0.9rem;
  line-height: 1.6;
}
.voice-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--d-text2);
}
.voice-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* QUESTION CARD */
.question-card {
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.q-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d-text2);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.q-text {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  color: var(--d-text);
  font-weight: 500;
}
.q-hint {
  font-size: 0.85rem;
  color: var(--d-text2);
  font-style: normal;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--d-bg2);
  border: 1px solid var(--d-border);
  border-radius: 8px;
  line-height: 1.55;
}
.feedback-card {
  background: linear-gradient(
    135deg,
    rgba(11, 18, 32, 0.95),
    rgba(13, 22, 40, 0.98)
  );
  border: 1px solid rgba(255, 106, 26, 0.2);
  border-radius: 16px;
  padding: 0;
  margin-top: 1.25rem;
  overflow: hidden;
  box-shadow:
    0 8px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 106, 26, 0.08);
  position: relative;
}
.feedback-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ff6a1a, transparent);
}
.score-ring-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.score-ring-svg {
  flex-shrink: 0;
}
.score-ring-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9499a1;
  margin-top: 0.2rem;
}
.feedback-section {
  margin-bottom: 1rem;
}
.feedback-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.feedback-section-label::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: currentColor;
}
.feedback-text {
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
}
.feedback-actions {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.2);
}
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0;
}

/* ROLE FINDER */
.rf-role {
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.rf-role:hover {
  border-color: rgba(255, 106, 26, 0.3);
}
.rf-role-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.rf-match-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  position: relative;
}
.rf-match-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--d-border);
}
.rf-match-ring.high {
  background: rgba(74, 222, 128, 0.12);
  color: var(--d-success);
}
.rf-match-ring.high::before {
  border-color: var(--d-success);
}
.rf-match-ring.med {
  background: rgba(255, 106, 26, 0.12);
  color: var(--d-accent);
}
.rf-match-ring.med::before {
  border-color: var(--d-accent);
}
.rf-match-ring.low {
  background: rgba(251, 191, 36, 0.12);
  color: var(--d-warn);
}
.rf-match-ring.low::before {
  border-color: var(--d-warn);
}
.rf-role-title {
  font-size: 1.05rem;
  font-weight: 600;
}
.rf-explanation {
  color: var(--d-text2);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.rf-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.rf-growth-item {
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}
.rf-growth-item .rf-priority {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}
.rf-priority-high {
  background: rgba(248, 113, 113, 0.12);
  color: var(--d-danger);
}
.rf-priority-medium {
  background: rgba(251, 191, 36, 0.12);
  color: var(--d-warn);
}
.rf-priority-low {
  background: rgba(74, 222, 128, 0.12);
  color: var(--d-success);
}
.rf-higher-role {
  background: var(--d-bg);
  border: 1px solid rgba(192, 132, 252, 0.2);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

/* COVER LETTER */
.letter-output {
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 12px;
  padding: 2rem;
  white-space: pre-wrap;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--d-text);
}

/* RESUME PREVIEW */
.resume-preview {
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  color: var(--d-text);
  border-radius: 12px;
  padding: 2rem;
  font-family: "Inter", sans-serif;
  line-height: 1.7;
}
.resume-preview h2 {
  color: var(--d-text);
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  font-family: "Inter", sans-serif;
}
.resume-preview .contact {
  color: var(--d-text2);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.resume-preview .section-head {
  color: var(--d-accent);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--d-accent);
  padding-bottom: 0.25rem;
  margin: 1.5rem 0 0.75rem;
  font-family: "Inter", sans-serif;
}
.resume-preview .exp-title {
  font-weight: 700;
  font-family: "Inter", sans-serif;
  color: var(--d-text);
}
.resume-preview .exp-company {
  color: var(--d-text2);
  font-size: 0.9rem;
}
.resume-preview ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0;
}
.resume-preview li {
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  color: var(--d-text);
}
.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.skill-pill {
  background: #e8f4fd;
  color: #1e6fa1;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: "Inter", sans-serif;
}

/* UPGRADE GATE */
.upgrade-gate {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--d-bg2);
  border: 1px dashed rgba(255, 106, 26, 0.3);
  border-radius: 16px;
  margin: 1rem 0;
}
.upgrade-gate h3 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.upgrade-gate p {
  color: var(--d-text2);
  margin-bottom: 1.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.upgrade-gate .price {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.upgrade-gate .price span {
  font-size: 0.85rem;
  color: var(--d-text2);
  font-family: "Inter", sans-serif;
}

/* LOADING */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
}
.loading-overlay.active {
  display: flex;
}
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--d-accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
.loading-text {
  color: var(--d-text2);
  font-size: 1rem;
}
.loading-fox-video {
  width: 140px;
  height: auto;
  border-radius: 16px;
  pointer-events: none;
}

/* STATS */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: 12px;
  padding: 1.25rem;
}
.stat-card .stat-num {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
}
.stat-card .stat-label {
  color: var(--d-text2);
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* TAB SWITCH */
.input-method {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.input-method button {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--d-text2);
  border: 1px solid var(--d-border);
  transition: all 0.2s;
  font-family: inherit;
}
.input-method button.active {
  background: rgba(255, 106, 26, 0.1);
  color: var(--d-accent);
  border-color: rgba(255, 106, 26, 0.3);
}

/* FILE UPLOAD */
.upload-zone {
  border: 2px dashed var(--d-border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--d-bg);
}
.upload-zone:hover {
  border-color: var(--d-accent);
  background: rgba(255, 106, 26, 0.03);
}
.upload-zone.dragover {
  border-color: var(--d-accent);
  background: rgba(255, 106, 26, 0.06);
  transform: scale(1.01);
}
.upload-zone .upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}
.upload-zone p {
  color: var(--d-text2);
  font-size: 0.9rem;
}
.upload-zone .formats {
  font-size: 0.8rem;
  color: var(--d-text2);
  margin-top: 0.5rem;
  opacity: 0.7;
}
.upload-progress {
  margin-top: 1rem;
  display: none;
}
.upload-progress .progress-bar {
  height: 6px;
  background: var(--d-bg2);
  border-radius: 3px;
  overflow: hidden;
}
.upload-progress .progress-fill {
  height: 100%;
  background: var(--d-gradient);
  border-radius: 3px;
  transition: width 0.3s;
  width: 0%;
}
.upload-progress .progress-text {
  font-size: 0.8rem;
  color: var(--d-text2);
  margin-top: 0.5rem;
}
.parsed-preview {
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.parsed-field {
  margin-bottom: 0.75rem;
}
.parsed-field label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--d-accent);
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.parsed-field .value {
  font-size: 0.9rem;
  color: var(--d-text);
  line-height: 1.5;
}

/* LANG TOGGLE */
.lang-toggle {
  display: flex;
  gap: 2px;
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 8px;
  padding: 2px;
  margin: 0.75rem 0.5rem 0;
}
.lang-toggle button {
  flex: 1;
  padding: 0.35rem;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--d-text2);
  font-family: inherit;
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--d-gradient);
  color: #fff;
}

.hidden {
  display: none !important;
}
.spinner--overlay {
  width: 40px;
  height: 40px;
  border-width: 3px;
}
.spinner--md {
  width: 30px;
  height: 30px;
  margin: 0 auto 1rem;
}
.lead-muted {
  color: var(--d-text2);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.note-muted {
  color: var(--d-text2);
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.text-muted-sm {
  color: var(--d-text2);
  font-size: 0.9rem;
}
.text-muted-xs {
  color: var(--d-text2);
  font-size: 0.8rem;
}
.text-muted-desc {
  color: var(--d-text2);
  font-size: 0.82rem;
  line-height: 1.4;
}
.mb-1 {
  margin-bottom: 1rem;
}
.input-method--lg {
  margin-bottom: 1.5rem;
}
.flex-row-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.flex-col-gap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 0.5rem 1.5rem;
}
.mt-15 {
  margin-top: 1.5rem;
}
.state-loading {
  text-align: center;
  padding: 3rem;
  color: var(--d-text2);
}
.state-empty {
  text-align: center;
  padding: 4rem 2rem;
}
.state-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.state-empty-title {
  margin-bottom: 0.5rem;
}
.state-empty-desc {
  color: var(--d-text2);
  margin-bottom: 1.5rem;
}
.usage-pill {
  display: inline;
  font-size: 0.85rem;
  font-weight: 400;
  margin-left: 0.75rem;
  vertical-align: middle;
  color: var(--d-text2);
}
.usage-pill.green {
  color: #22c55e;
}
.usage-pill.orange {
  color: #f97316;
}
.usage-pill.red {
  color: #ef4444;
}

/* ROLE FINDER SPLIT-PANE */
.rf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.rf-left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rf-role-card {
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.rf-role-card:hover {
  border-color: rgba(255, 106, 26, 0.4);
}
.rf-role-card.selected {
  border-color: #ff6a1a;
  background: rgba(255, 106, 26, 0.06);
}
.rf-role-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #4a4d54;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
}
.rf-role-card.selected .rf-role-radio {
  border-color: #ff6a1a;
  background: #ff6a1a;
}
.rf-role-card.selected .rf-role-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}
.rf-role-name {
  font-weight: 600;
  font-size: 0.95rem;
}
.rf-role-pct {
  font-size: 0.78rem;
  color: #ff6a1a;
  font-weight: 700;
  margin-top: 0.15rem;
}
.rf-right {
  background: #1a1f2e;
  border: 1px solid var(--d-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 80px;
  overflow-y: auto;
  max-height: 600px;
}
/* Scoped to .main so their own padding still beats the responsive
   `.card { padding: … }` overrides further down, as it did in dashboard.css. */
.main .rf-roles-card {
  padding: 1.5rem;
}
.rf-roles-head {
  margin-bottom: 1.25rem;
}
.rf-roles-title {
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.rf-roles-sub {
  font-size: 0.72rem;
  color: var(--d-muted-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.3rem;
}
.rf-gap-section-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--d-accent);
  margin-bottom: 0.75rem;
}
#rfGapRole {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--d-text);
  min-height: 1.5rem;
}
#rfGapMatchPct {
  margin-bottom: 1rem;
}
#rfGapKey {
  color: var(--d-muted-label);
  font-size: 0.88rem;
  line-height: 1.65;
}
#rfGapSkills {
  margin-top: 0.75rem;
}
#rfGapActionsLabel {
  display: none;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--d-accent);
  margin: 0.75rem 0 0.4rem;
}
#rfSummaryText {
  color: var(--d-text2);
  line-height: 1.7;
}
.rf-locked-head {
  text-align: center;
  padding: 1rem 1.5rem 0.5rem;
}
.rf-locked-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.rf-locked-title {
  margin-bottom: 0.5rem;
}
.rf-locked-desc {
  color: var(--d-text2);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}
.rf-locked-foot {
  text-align: center;
  padding: 0 1.5rem 1.5rem;
}
.rf-lock-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--d-bg);
  border: 1px solid var(--d-border-accent);
  border-radius: 10px;
}
.rf-lock-row--purple {
  border-color: var(--d-border-purple);
}
.rf-lock-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.rf-lock-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.rf-comparisons-title {
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
/* Scoped to .main so their own padding still beats the responsive
   `.card { padding: … }` overrides further down, as it did in dashboard.css. */
.main .rf-complete-card {
  background: linear-gradient(
    135deg,
    rgba(11, 18, 32, 0.98),
    rgba(13, 22, 40, 0.98)
  );
  border: 1px solid var(--d-border-accent);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}
.rf-complete-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--d-accent), transparent);
}
.rf-complete-body {
  padding: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.rf-complete-kicker {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--d-accent);
  margin-bottom: 0.3rem;
}
.rf-complete-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.rf-complete-sub {
  font-size: 0.85rem;
  color: var(--d-text-dim);
}
.rf-complete-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.justify-center {
  justify-content: center;
}
/* Scoped to .main so their own padding still beats the responsive
   `.card { padding: … }` overrides further down, as it did in dashboard.css. */
.main .card-padded {
  padding: 1.5rem;
}
.textarea-job {
  min-height: 200px;
  width: 100%;
}
.textarea-resume {
  min-height: 200px;
}
.card-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.card-head-row h3 {
  margin: 0;
}
.toolbar-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ATS PANEL */
.ats-score-panel {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}
.ats-score-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--d-text2);
  margin-bottom: 1.75rem;
}
.ats-ring-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
#atsGlow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 106, 26, 0.15) 0%,
    transparent 70%
  );
  transition: background 0.6s;
}
.ats-ring-svg {
  transform: rotate(-90deg);
}
#atsArc {
  transition:
    stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1),
    stroke 0.4s;
}
.ats-ring-center {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#atsScoreNum {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--d-text);
  letter-spacing: -0.03em;
}
.ats-score-pct {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
  margin-top: 0.1rem;
}
#atsScoreLabel {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--d-accent);
  margin-bottom: 1.25rem;
}
#atsSummary {
  color: var(--d-text2);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 0.9rem;
  text-align: center;
}
.ats-done-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  vertical-align: middle;
}
.ats-done-green {
  background: rgba(34, 197, 94, 0.14);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.ats-done-orange {
  background: rgba(249, 115, 22, 0.14);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
}
.ats-done-red {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.term-matches-note {
  color: var(--d-text2);
  font-size: 0.85rem;
  margin-bottom: 0.9rem;
  line-height: 1.5;
}
.term-match-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  margin-bottom: 8px;
}
.term-your {
  color: var(--d-text2);
  font-size: 0.88rem;
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.5);
}
.term-arrow {
  color: var(--d-accent);
  flex-shrink: 0;
}
.term-posting {
  color: #22c55e;
  font-size: 0.9rem;
  font-weight: 600;
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.card-title-sm {
  font-size: 0.95rem;
}
.optimize-gate-card {
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(255, 106, 26, 0.07),
    rgba(255, 106, 26, 0.03)
  );
  border: 1px solid var(--d-border-accent);
}
.optimize-gate-card h3 {
  justify-content: center;
  margin-bottom: 0.5rem;
}
.optimize-gate-note {
  color: var(--d-text2);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}
.optimize-gate-blocked {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.25);
  border-radius: 10px;
  padding: 14px 16px;
  max-width: 520px;
  margin: 0 auto;
}
.optimize-gate-blocked svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--d-danger);
}
.optimize-gate-blocked-title {
  color: var(--d-danger);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.optimize-gate-blocked-desc {
  color: var(--d-text2);
  font-size: 0.84rem;
  line-height: 1.5;
}
.btn-optimize {
  font-size: 1rem;
  padding: 0.8rem 2rem;
}
.doc-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.doc-card-title {
  margin: 0;
  font-size: 1rem;
}
.doc-card-sub {
  color: var(--d-text2);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}
.doc-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mt-125 {
  margin-top: 1.25rem;
}
.mt-1 {
  margin-top: 1rem;
}
.lang-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* INTERVIEW ELEMENTS */
.int-tier-card--free {
  border: 1px solid var(--d-border-success);
  background: var(--d-bg-success-tint);
}
.int-tier-card--pro {
  border: 1px solid var(--d-border-accent);
  background: var(--d-bg-accent-tint);
}
.int-tier-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.int-tier-icon-lg {
  font-size: 1.3rem;
}
.int-tier-icon-md {
  font-size: 1.2rem;
}
.int-tier-title {
  font-weight: 600;
}
.int-tier-desc {
  color: var(--d-text2);
  font-size: 0.85rem;
}
.int-tier-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.int-tier-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--d-bg);
  border-radius: 8px;
}
.int-tier-row--locked {
  border: 1px dashed var(--d-border-accent);
  opacity: 0.6;
}
.int-tier-row--purple {
  border: 1px dashed var(--d-border-purple);
  opacity: 0.7;
}
.int-fw-600 {
  font-weight: 600;
}
.int-desc-muted {
  color: var(--d-text2);
  font-size: 0.85rem;
}
.card-int-session {
  background: rgba(255, 106, 26, 0.05);
  border-color: rgba(255, 106, 26, 0.15);
}
.int-session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.int-session-label {
  color: var(--d-accent);
  font-weight: 600;
}
.int-progress-hint {
  color: var(--d-text2);
  margin-left: 1rem;
}
.int-back-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.int-meta-xs {
  font-size: 0.75rem;
  color: var(--d-text2);
}
.int-summary-shell {
  background: var(--d-bg2);
  border: 1px solid var(--d-border);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}
.int-summary-body {
  padding: 1.75rem 2rem;
}
.int-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.int-summary-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--d-text2);
  margin-bottom: 0.3rem;
}
.int-summary-title {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.int-summary-score {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--d-score-panel);
  border-radius: 12px;
}
.int-score-col {
  flex-shrink: 0;
  text-align: center;
}
.int-score-display {
  display: inline-flex;
  align-items: baseline;
  gap: 0.1rem;
}
#intAvgScore {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--d-text);
  letter-spacing: -0.04em;
}
.int-score-denom {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--d-score-denom);
}
.int-score-bar {
  width: 100px;
  height: 4px;
  background: var(--d-score-bar-track);
  border-radius: 3px;
  margin-top: 0.5rem;
  overflow: hidden;
}
#intScoreBarFill {
  height: 100%;
  border-radius: 3px;
  background: var(--d-accent);
  width: 0%;
  transition:
    width 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.4s;
}
.int-summary-main {
  flex: 1;
}
.delivery-summary {
  color: var(--d-text2);
  font-size: 0.85rem;
  margin-top: 0.4rem;
}
.int-summary-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hp-loading-page {
  text-align: center;
  padding: 4rem 1rem;
}
.hp-loading-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.hp-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}
.hp-spinner-svg--spin {
  animation: hpSpin 1.6s linear infinite;
}
.hp-spinner-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-icon--pulse {
  animation: hpPulse 1.6s ease-in-out infinite;
}
.hp-loading-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--d-text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.hp-loading-dots {
  font-size: 0.85rem;
  color: var(--d-accent);
  font-weight: 600;
  letter-spacing: 0.15em;
}

/* USAGE MODAL & EXTRAS */
#extraUsageModal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  background: var(--d-overlay-dark);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
#extraUsageModal.is-open {
  display: flex !important;
}
.extra-modal-panel {
  background: var(--d-bg2);
  border: 1px solid var(--d-border);
  border-radius: 20px;
  padding: 2rem;
  max-width: 420px;
  width: 90%;
  position: relative;
}
.extra-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--d-text2);
  font-size: 1.4rem;
  cursor: pointer;
}
.extra-modal-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.extra-modal-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
#extraModalTitle {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.extra-modal-desc {
  color: var(--d-text2);
  font-size: 0.88rem;
}
.extra-pack-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.extra-modal-foot {
  text-align: center;
}
.extra-modal-foot-note {
  color: var(--d-text2);
  font-size: 0.78rem;
}
.extra-modal-dismiss {
  margin-top: 0.75rem;
  background: none;
  border: none;
  color: var(--d-text2);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}
.extra-pack-btn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.2rem;
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  color: var(--d-text);
  cursor: pointer;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
}
.extra-pack-btn:hover {
  border-color: var(--d-accent);
}
.extra-pack-btn-label {
  font-weight: 600;
}
.extra-pack-btn-price {
  color: var(--d-accent);
  font-weight: 700;
}
.pick-empty-box {
  text-align: center;
  padding: 1.5rem;
  background: var(--d-bg);
  border-radius: 12px;
  border: 1px dashed var(--d-border);
}
.pick-empty-box p {
  margin-bottom: 0.75rem;
}
.pick-empty-box p:last-child {
  margin-bottom: 0;
}
.link-accent {
  color: var(--d-accent);
}
.int-job-card,
.past-session-card {
  padding: 1rem 1.25rem;
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.int-job-card:hover,
.past-session-card:hover {
  border-color: rgba(255, 106, 26, 0.3);
}
.int-job-card.selected {
  background: rgba(255, 106, 26, 0.1);
  border-color: var(--d-accent);
}
.int-job-card-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.int-job-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--d-text);
}
.int-job-company {
  color: var(--d-text2);
  font-size: 0.82rem;
  margin-top: 0.15rem;
}
.int-job-date {
  color: var(--d-text2);
  font-size: 0.75rem;
  margin-top: 0.15rem;
}
.int-job-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.int-job-score {
  font-weight: 700;
  font-size: 0.85rem;
}
.int-job-score--high {
  color: var(--d-success);
}
.int-job-score--med {
  color: var(--d-warn);
}
.int-job-score--low {
  color: var(--d-danger);
}
.pick-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--d-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--d-accent);
}
.int-job-card.selected .pick-check {
  border-color: var(--d-accent);
}
.past-session-score-wrap {
  text-align: right;
}
.past-session-score {
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}
.past-session-score-denom {
  font-size: 0.65rem;
  color: var(--d-text2);
  font-weight: 400;
}
.past-session-score--high {
  color: var(--d-success);
}
.past-session-score--med {
  color: var(--d-warn);
}
.past-session-score--low {
  color: var(--d-danger);
}

/* LOCKED PREMIUM TEASER (hiring probability) */
.hp-locked-wrap {
  position: relative;
  min-height: 420px;
}
.hp-locked-blur {
  filter: blur(12px) saturate(0.85);
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  transform: scale(1.02);
}
.terms-reaccept-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.terms-reaccept-card {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.terms-reaccept-card h3 {
  color: var(--d-text);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.terms-reaccept-card p {
  color: var(--d-text2);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.terms-reaccept-links {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.terms-reaccept-links a {
  color: var(--d-accent);
  text-decoration: underline;
}
.terms-reaccept-links span {
  color: var(--d-text2);
  margin: 0 0.4rem;
}
.form-checkbox-row-dark {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
  margin-bottom: 1.25rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--d-text2);
}
.form-checkbox-row-dark input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--d-accent);
  cursor: pointer;
}
.form-checkbox-row-dark label {
  cursor: pointer;
}
.terms-reaccept-logout {
  display: block;
  margin-top: 1rem;
  color: var(--d-text2);
  font-size: 0.8rem;
  text-decoration: underline;
}
.hp-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 0.6rem;
}
.hp-lock-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 106, 26, 0.12);
  border: 1px solid rgba(255, 106, 26, 0.35);
  color: var(--d-accent);
  box-shadow: 0 0 30px rgba(255, 106, 26, 0.25);
  margin-bottom: 0.4rem;
}
.hp-lock-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--d-text);
  margin: 0;
}
.hp-lock-desc {
  color: var(--d-text2);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 0 0.6rem;
}
.step-reset-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}
.past-session-side {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.past-session-main {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.session-delete-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--d-text2);
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.session-delete-btn:hover {
  color: var(--d-danger);
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.25);
}
.premium-gate-card {
  text-align: center;
  padding: 2.5rem;
}
.premium-gate-label {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--d-text2);
}
.premium-gate-desc {
  color: var(--d-text2);
  margin-bottom: 1.5rem;
}
.state-empty-inline {
  color: var(--d-text2);
  text-align: center;
  padding: 1rem;
}
.past-score-card {
  margin-bottom: 1rem;
  text-align: center;
  padding: 2rem 1rem;
}
.past-score-value {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.past-score-value--high {
  color: var(--d-success);
}
.past-score-value--med {
  color: var(--d-warn);
}
.past-score-value--low {
  color: var(--d-danger);
}
.past-score-denom {
  font-size: 1.2rem;
  color: var(--d-text2);
}
.past-score-meta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d-text2);
  margin-bottom: 0.5rem;
}
.past-score-verdict {
  font-weight: 700;
}
.past-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d-text2);
  margin-bottom: 0.6rem;
}
.past-tag-chip {
  font-size: 0.82rem;
  padding: 0.2rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--d-border);
  color: var(--d-text);
  display: inline-block;
  margin: 0.15rem;
}
.past-detail-actions {
  text-align: center;
  margin-top: 1rem;
}
.card-spaced {
  margin-bottom: 1rem;
}
.resume-pick-card,
.rf-resume-pick {
  padding: 1rem;
  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.resume-pick-card:hover,
.rf-resume-pick:hover {
  border-color: rgba(255, 106, 26, 0.3);
}
.resume-pick-card.selected,
.rf-resume-pick.selected {
  background: rgba(255, 106, 26, 0.1);
  border-color: var(--d-accent);
}
.resume-pick-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.resume-pick-icon {
  font-size: 1.3rem;
}
.resume-pick-title {
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.resume-pick-meta {
  color: var(--d-text2);
  font-size: 0.8rem;
}
.tier-badge--static {
  position: static;
  font-size: 0.6rem;
}
.pick-empty-lg {
  text-align: center;
  padding: 2rem;
  background: var(--d-bg);
  border-radius: 12px;
  border: 1px dashed var(--d-border);
}
.pick-empty-lg p {
  margin-bottom: 1rem;
}
.text-danger-sm {
  color: var(--d-danger);
  font-size: 0.9rem;
}
.doc-card-clickable {
  cursor: pointer;
  transition: all 0.2s;
}
.doc-card-clickable:hover {
  border-color: rgba(255, 106, 26, 0.3);
}
.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.doc-row-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  cursor: pointer;
}
.doc-icon {
  font-size: 1.8rem;
}
.doc-title-row {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.doc-subline {
  color: var(--d-text2);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}
.doc-row-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.doc-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
}
.doc-badge--resume {
  background: rgba(74, 222, 128, 0.12);
  color: var(--d-success);
}
.doc-badge--optimized {
  background: rgba(255, 106, 26, 0.12);
  color: var(--d-accent);
}
.doc-badge--cover {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
}
.doc-badge--summary {
  background: rgba(192, 132, 252, 0.12);
  color: #c084fc;
}
.doc-score {
  font-weight: 700;
  font-size: 0.9rem;
}
.doc-delete-btn {
  background: rgba(248, 113, 113, 0.1);
  border: none;
  color: var(--d-danger);
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: background 0.2s;
  font-family: inherit;
}
.doc-delete-btn:hover {
  background: rgba(248, 113, 113, 0.25);
}
.doc-chevron {
  color: var(--d-text2);
  font-size: 1.2rem;
  cursor: pointer;
}
.doc-viewer-gauge-wrap {
  text-align: center;
  margin-bottom: 1.5rem;
}
.gauge-circle--viewer {
  width: 120px;
  height: 120px;
  margin: 0 auto 0;
}
.gauge-score--lg {
  font-size: 2rem;
}
.doc-viewer-score-label {
  color: var(--d-text2);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}
.doc-viewer-section {
  margin-bottom: 1rem;
}
.doc-viewer-section strong.label-danger {
  color: var(--d-danger);
}
.doc-viewer-section strong.label-accent {
  color: var(--d-accent);
}
.doc-viewer-tags {
  margin-top: 0.5rem;
}
.doc-viewer-letter-sep {
  margin-top: 1.5rem;
  border-top: 1px solid var(--d-border);
  padding-top: 1.5rem;
}
.doc-viewer-letter-sep h3 {
  margin-bottom: 0.75rem;
}
.resume-exp-block {
  margin-bottom: 1rem;
}
.text-muted-inline {
  color: var(--d-text2);
}
.voice-status {
  color: var(--d-text2);
  margin-top: 0.75rem;
  font-size: 0.85rem;
}
.voice-divider {
  color: var(--d-text2);
  text-align: center;
  margin: 0.75rem 0;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.textarea-answer {
  min-height: 140px;
  line-height: 1.7;
  padding: 1rem 1.2rem;
}
.actions-row-sm {
  display: flex;
  gap: 1rem;
}
.card-feedback {
  margin-top: 1rem;
}
.feedback-inner {
  padding: 0.25rem 0 1rem;
}
.feedback-body-mt {
  margin-top: 1rem;
}
.upgrade-inline-box {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-bg);
  text-align: center;
}
.upgrade-inline-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.upgrade-inline-desc {
  color: var(--d-text2);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.feedback-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--d-border);
  display: flex;
  justify-content: flex-end;
}
.int-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d-accent);
  margin-bottom: 0.35rem;
}
.feedback-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.feedback-prose {
  font-size: 0.87rem;
  line-height: 1.7;
  color: var(--d-text2);
}
.feedback-block {
  margin-bottom: 1rem;
}
.feedback-tip {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: var(--d-bg);
  border-left: 2px solid var(--d-accent);
  border-radius: 0 8px 8px 0;
  font-size: 0.85rem;
  color: var(--d-text2);
  font-style: italic;
}
.feedback-tip--tight {
  margin-top: 0.5rem;
}
.feedback-tips-box {
  margin-bottom: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-bg);
}
.feedback-list {
  margin: 0;
  padding-left: 1.1rem;
}
.feedback-list li {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--d-text2);
  margin-bottom: 0.3rem;
}
.score-verdict {
  font-size: 1.1rem;
  font-weight: 700;
}
.score-verdict--high {
  color: var(--d-success);
}
.score-verdict--med {
  color: var(--d-warn);
}
.score-verdict--low {
  color: var(--d-danger);
}
.score-ring-arc {
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.summary-verdict {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.summary-verdict--high {
  color: #22c55e;
}
.summary-verdict--med {
  color: #f97316;
}
.summary-verdict--low {
  color: #ef4444;
}
.summary-msg {
  font-size: 0.85rem;
  color: var(--d-text2);
  line-height: 1.6;
}
.gtyes-note--mb {
  margin-bottom: 1rem;
}
.gtyes-note--mt {
  margin-top: 1rem;
}
.hp-hero-card {
  text-align: center;
  padding: 2rem 1rem;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}
.hp-hero-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--d-text2);
  margin-bottom: 1.5rem;
}
.hp-hero-compose {
  position: relative;
  display: inline-block;
  width: 280px;
  margin: 0 auto;
}
.hp-ring-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  margin: 0 auto;
}
.hp-ring-svg {
  position: absolute;
  top: 0;
  left: 0;
}
.hp-arc {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.hp-ring-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 4;
  width: 160px;
}
.hp-pct-num {
  font-family: "Inter", sans-serif;
  font-weight: 900;
  font-size: 3.8rem;
  line-height: 1;
  color: var(--d-text);
  letter-spacing: -0.04em;
}
.hp-pct-suffix {
  font-size: 1.8rem;
}
.hp-verdict-text {
  font-size: 1.1rem;
  font-weight: 800;
  margin-top: 0.2rem;
}
.hp-fox-wrap {
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.hp-fox-img-dynamic {
  width: 300px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  margin-top: -40px;
}
.hp-summary-text {
  color: var(--d-text2);
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  line-height: 1.8;
  text-align: center;
}
.hp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.hp-list {
  margin: 0;
  padding-left: 1.1rem;
}
.hp-list li {
  font-size: 0.85rem;
  color: var(--d-text2);
  margin-bottom: 0.35rem;
  line-height: 1.5;
}
.hp-actions-center {
  text-align: center;
  margin-top: 1rem;
}
.hp-error-title {
  color: var(--d-danger);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.hp-error-desc {
  color: var(--d-text2);
  font-size: 0.85rem;
}
.rf-role-body {
  flex: 1;
}
.rf-role-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}
.rf-rank-badge {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}
.rf-rank-0 {
  border-left: 3px solid #22c55e;
}
.rf-rank-pct-0 {
  color: #22c55e;
}
.rf-rank-badge-0 {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.rf-rank-1 {
  border-left: 3px solid #22c55e;
}
.rf-rank-pct-1 {
  color: #22c55e;
}
.rf-rank-badge-1 {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.35);
}
.rf-rank-2 {
  border-left: 3px solid #eab308;
}
.rf-rank-pct-2 {
  color: #eab308;
}
.rf-rank-badge-2 {
  background: rgba(234, 179, 8, 0.12);
  color: #eab308;
  border: 1px solid rgba(234, 179, 8, 0.35);
}
.rf-rank-3 {
  border-left: 3px solid #f97316;
}
.rf-rank-pct-3 {
  color: #f97316;
}
.rf-rank-badge-3 {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.35);
}
.rf-rank-4 {
  border-left: 3px solid #ef4444;
}
.rf-rank-pct-4 {
  color: #ef4444;
}
.rf-rank-badge-4 {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.rf-comp-block {
  margin-bottom: 1rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--d-border);
}
.rf-comp-head {
  padding: 0.85rem 1.25rem;
  background: var(--d-bg);
  border-bottom: 1px solid var(--d-border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.rf-comp-role {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--d-text);
}
.rf-comp-role--accent {
  color: var(--d-accent);
}
.rf-comp-vs {
  font-size: 0.72rem;
  color: var(--d-text2);
  font-weight: 500;
}
.rf-comp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--d-bg2);
}
.rf-comp-cell {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--d-border);
}
.rf-comp-cell--right {
  border-right: 1px solid var(--d-border);
}
.rf-comp-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--d-text2);
  margin-bottom: 0.4rem;
}
.rf-comp-cell--accent-label .int-section-label {
  margin-bottom: 0.4rem;
}
.rf-comp-body {
  font-size: 0.85rem;
  color: var(--d-text);
  line-height: 1.6;
}
.rf-insight-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-bg);
  margin-bottom: 0.75rem;
}
.rf-insight-text {
  color: var(--d-text2);
  font-size: 0.85rem;
  line-height: 1.55;
}
.rf-insight-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.rf-insight-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--d-text);
}
.rf-insight-sep {
  color: var(--d-text2);
  padding: 0 0.25rem;
}
.rf-insight-item {
  margin-bottom: 0.5rem;
}
.rf-insight-item-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--d-text);
  margin-bottom: 0.2rem;
}
.rf-growth-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--d-border);
  border-radius: 10px;
  background: var(--d-bg);
  margin-bottom: 0.75rem;
}
.rf-growth-action {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--d-text);
}
.rf-gap-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.rf-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--pill-color) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--pill-color) 27%, transparent);
  color: var(--pill-color);
}
.rf-pill--cap {
  text-transform: capitalize;
}
.rf-match-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--pill-color) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--pill-color) 27%, transparent);
  color: var(--pill-color);
}
.rf-gap-analysis {
  font-size: 0.87rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1rem;
}
.rf-gap-upgrade {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}
.rf-gap-section {
  margin-bottom: 0.85rem;
}
.rf-gap-section-label--match {
  color: #22c55e;
}
.rf-gap-section-label--miss {
  color: #ef4444;
}
.rf-gap-section-label--actions {
  color: var(--d-accent);
}
.rf-gap-section--actions {
  margin-top: 0.5rem;
}
.rf-gap-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.rf-gap-dot--match {
  background: #22c55e;
}
.rf-gap-dot--miss {
  background: #ef4444;
}
.rf-gap-dot--actions {
  background: var(--d-accent);
}
.rf-gap-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.rf-skill-chip--match {
  font-size: 0.77rem;
  padding: 0.18rem 0.55rem;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 4px;
  color: #22c55e;
}
.rf-skill-chip--miss {
  font-size: 0.77rem;
  padding: 0.18rem 0.55rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.22);
  border-radius: 4px;
  color: #ef4444;
}
.rf-gap-action-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  line-height: 1.55;
}
.rf-gap-action-arrow {
  color: var(--d-accent);
  flex-shrink: 0;
}

/* AI SPARKLE BADGE */
.ai-sparkle-badge {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: var(--z-nav);
  pointer-events: none;
}

/* DOC VIEWER */
#docViewer {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.9);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
#docViewer.is-open {
  display: flex !important;
}
.doc-viewer-modal {
  background: var(--d-bg2);
  border: 1px solid var(--d-border);
  border-radius: 20px;
  width: 850px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}
.doc-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--d-border);
}
.doc-viewer-title {
  margin: 0;
}
.doc-viewer-toolbar {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.doc-viewer-close {
  background: none;
  border: none;
  color: var(--d-text2);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}
.doc-viewer-body {
  padding: 1.5rem;
}
#fileInput {
  display: none;
}
.textarea-md {
  min-height: 180px;
}
.textarea-lg {
  min-height: 300px;
}
.textarea-xl {
  min-height: 250px;
  white-space: pre-wrap;
  line-height: 1.6;
}
.textarea-sm {
  min-height: 80px;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--d-text2);
  margin-top: 0.35rem;
}
.form-section-label {
  border-bottom: 1px solid var(--d-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: var(--d-accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-section-label--spaced {
  margin: 1.5rem 0 1rem;
}
.card-success {
  text-align: center;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.25);
  margin-top: 1.5rem;
}
.card-success h3 {
  justify-content: center;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
}
.card-success-note {
  color: var(--d-text2);
  margin-bottom: 1rem;
}
.btn-generate-resume {
  font-size: 1rem;
  padding: 0.8rem 2.5rem;
}
.parsed-heading {
  margin-bottom: 0.5rem;
}
.parsed-note {
  color: var(--d-text2);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.actions-row {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Scoped to .main so their own padding still beats the responsive
   `.card { padding: … }` overrides further down, as it did in dashboard.css. */
.main .resume-done-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--d-border-accent);
}
.resume-done-accent {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--d-accent), transparent);
}
.resume-done-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.resume-done-kicker {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--d-accent);
  margin-bottom: 0.2rem;
}
.resume-done-title {
  margin: 0;
  font-size: 1rem;
}
.resume-done-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.resume-preview-wrap {
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.card-translate {
  text-align: center;
  background: rgba(255, 106, 26, 0.05);
  border-color: var(--d-border-accent);
}
.rf-gap-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9499a1;
  margin-bottom: 1rem;
}
.rf-gap-role {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.rf-gap-key {
  font-size: 0.85rem;
  color: var(--d-text2);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.rf-gap-key strong {
  color: var(--d-text);
}
.rf-gap-actions {
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}
.rf-gap-action-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--d-text2);
  padding: 0.4rem 0;
  line-height: 1.5;
}
.rf-gap-action-item::before {
  content: "•";
  color: #ff6a1a;
  flex-shrink: 0;
}
.rf-continue-btn {
  width: 100%;
  margin-top: 1.5rem;
  background: #ff6a1a;
  color: #000;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}
.rf-continue-btn:hover {
  background: #ff8c1a;
}

.nav-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 106, 26, 0.15);
  border: 1px solid rgba(255, 106, 26, 0.3);
  color: #ff6a1a;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-item.active .nav-num {
  background: #ff6a1a;
  color: #000;
  border-color: #ff6a1a;
}
@keyframes foxPop {
  from {
    transform: translateY(20px) scale(0.9);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}
.hp-fox-img {
  animation: foxPop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.nav-item.nav-locked {
  opacity: 0.4;
  cursor: not-allowed;
}
.nav-item.nav-locked:hover {
  background: none;
  color: var(--d-text2);
}
.nav-item.nav-locked .nav-num {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
}

.gtyes-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 1.25rem;
  padding: 10px 14px;
  background: rgba(139, 148, 158, 0.06);
  border: 1px solid rgba(139, 148, 158, 0.12);
  border-radius: 10px;
  color: #8b949e;
  font-size: 0.78rem;
  line-height: 1.5;
}
.gtyes-note svg {
  flex-shrink: 0;
  margin-top: 1px;
  opacity: 0.6;
}

@keyframes hpSpin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes hpPulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}
@keyframes hpDot {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

/* PRINT CSS FOR DASHBOARD ONLY */
@media print {
  .sidebar,
  .nav-item,
  .loading-overlay,
  .step-flow,
  .stats-row,
  .no-print,
  .btn,
  .input-method,
  .upgrade-gate,
  .page-header,
  .main :where(.card) > h3,
  .voice-area,
  .voice-stats,
  .feedback-card,
  .q-hint,
  .tier-badge,
  .user-plan,
  .user-info {
    display: none !important;
  }
  .main {
    padding: 0 !important;
    margin-left: 0 !important;
  }
  .main :where(.card) {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
  }
  .resume-preview {
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
  .resume-preview h2 {
    font-size: 20pt !important;
  }
  .resume-preview .contact {
    font-size: 10pt !important;
  }
  .resume-preview .section-head {
    font-size: 10pt !important;
    color: #2563eb !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .resume-preview .exp-title {
    font-size: 11pt !important;
  }
  .resume-preview li {
    font-size: 10pt !important;
  }
  .skill-pill {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    font-size: 9pt !important;
  }
  .letter-output {
    padding: 0 !important;
    border: none !important;
    font-size: 11pt !important;
    white-space: pre-wrap !important;
  }
  .hidden {
    display: block !important;
  }
  #resumeResult,
  #tailorResults {
    display: block !important;
  }
  #resumePreviewWrap {
    display: block !important;
  }
  @page {
    size: letter;
    margin: 0.7in;
  }
  h1,
  h2,
  h3,
  h4 {
    page-break-after: avoid;
    break-after: avoid;
  }
  .resume-preview > div {
    page-break-inside: avoid;
    break-inside: avoid;
  }
}

/* RESPONSIVE FOR DASHBOARD ONLY */
@media (max-width: 768px) {
  .sidebar {
    width: 100% !important;
    height: 56px;
    flex-direction: row;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0;
    border-right: none;
    border-top: 1px solid var(--d-border);
    z-index: 100;
    overflow: visible;
    align-items: stretch;
  }
  .sidebar .logo,
  .lang-toggle,
  .sidebar-footer,
  .sidebar-fox {
    display: none !important;
  }
  .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.35rem 0.25rem;
    border-left: none !important;
    border-radius: 0;
    font-size: 0.6rem;
    gap: 2px;
    margin: 0;
  }
  .nav-item span {
    display: block !important;
    font-size: 0.58rem;
    text-align: center;
    line-height: 1.2;
  }
  .nav-num {
    display: none;
  }
  #mobileNavBackHome {
    display: flex !important;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.35rem 0.25rem;
    color: var(--d-text2);
    font-size: 0.58rem;
    text-align: center;
    gap: 2px;
    text-decoration: none;
  }
  .main {
    margin-left: 0 !important;
    padding: 1rem 0.85rem 80px 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }
  .main :where(.page-header) {
    padding-top: 0.75rem;
  }
  .main :where(.page-header) h1 {
    font-size: 1.4rem;
  }
  .main :where(.page-header) p {
    font-size: 0.85rem;
  }
  .main :where(.card) {
    padding: 1rem;
    border-radius: 12px;
  }
  .main :where(.form-row) {
    grid-template-columns: 1fr;
  }
  .main input,
  .main select,
  .main textarea {
    font-size: 16px !important;
  }
  .step-flow {
    overflow-x: auto;
    padding: 0.75rem 0.85rem;
    -webkit-overflow-scrolling: touch;
  }
  .step-node-wrap {
    min-width: 60px;
  }
  .step-label {
    font-size: 0.52rem;
  }
  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .rf-split {
    grid-template-columns: 1fr !important;
  }
  .rf-right {
    position: static !important;
    max-height: none !important;
  }
  .hp-grid {
    grid-template-columns: 1fr !important;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .btn {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  .btn + .btn {
    margin-top: 0.5rem;
  }
  .score-ring-wrap {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .voice-stats {
    flex-wrap: wrap;
    justify-content: center;
  }
  .input-method {
    flex-wrap: wrap;
  }
  .hp-fox-img {
    width: 180px !important;
  }
  #extraUsageModal > div {
    width: 92% !important;
    padding: 1.5rem !important;
  }
}

@media (max-width: 400px) {
  .stats-row {
    grid-template-columns: 1fr;
  }
  .main :where(.page-header) h1 {
    font-size: 1.2rem;
  }
  .main :where(.card) {
    padding: 0.85rem;
  }
  .step-label {
    font-size: 0.48rem;
  }
}

/* Assistant sits above the mobile bottom nav bar on the dashboard */
@media (max-width: 768px) {
  .page-dashboard #va-btn {
    bottom: 70px;
  }
  .page-dashboard #va-panel {
    bottom: 130px;
  }
  .page-dashboard .ai-sparkle-badge {
    bottom: 70px;
  }
}
