
:root { --bg:#0b0f14; --card:#111826; --text:#e7eef7; --muted:#9db0c7; --accent:#75a7ff; --border:#213042; }
* { box-sizing:border-box; }
html, body { margin:0; padding:0; background:var(--bg); color:var(--text); font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.container { max-width:960px; margin:0 auto; padding:24px; }
header h1 { margin:0 0 6px 0; font-size:28px; }
.sub { color:var(--muted); margin:0 0 16px 0; }
.card { background:var(--card); border:1px solid var(--border); border-radius:16px; padding:24px; }
.status { padding:12px 16px; background:#0f1624; border:1px solid var(--border); border-radius:12px; margin-bottom:16px; color:var(--muted); }
.auth { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:12px; }
button { padding:10px 14px; border-radius:12px; border:1px solid var(--border); background:var(--accent); color:#09111f; font-weight:600; cursor:pointer; }
button.secondary { background:#121a29; color:var(--text); }
button:disabled { opacity:.5; cursor:not-allowed; }
.grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
label { display:flex; flex-direction:column; gap:8px; margin:8px 0; color:var(--muted); }
input, textarea { padding:12px; border-radius:12px; border:1px solid var(--border); background:#0d1523; color:var(--text); }
.actions { display:flex; gap:12px; align-items:center; margin-top:12px; }
.linklike { padding:10px 14px; border-radius:12px; border:1px solid var(--border); text-decoration:none; color:var(--text); background:#121a29; }
.note { color:var(--muted); font-size:14px; margin-top:12px; }
@media (max-width:700px){ .grid { grid-template-columns:1fr; } }
/* === Layout: Header / Nav === */
.navbar { position: sticky; top: 0; z-index: 50; background:#0e1624; border-bottom:1px solid var(--border); }
.navwrap { display:flex; align-items:center; justify-content:space-between; padding:14px 24px; }
.brand { font-weight:800; color:var(--text); text-decoration:none; }
.menu a { color:var(--muted); text-decoration:none; margin-left:16px; padding:8px 10px; border-radius:10px; }
.menu a:hover { background:#121a29; color:var(--text); }

/* === Footer === */
.site-footer { margin-top:32px; padding:18px 0; background:#0e1624; border-top:1px solid var(--border); color:var(--muted); }
.footwrap { display:flex; align-items:center; justify-content:space-between; }
.footmenu a { color:var(--muted); text-decoration:none; margin-left:12px; }
.footmenu a:hover { color:var(--text); }

@media (max-width:700px){
  .navwrap, .footwrap { flex-direction:column; gap:8px; }
  .menu a { margin-left:0; margin-right:12px; display:inline-block; }
}
/* === Two-line header layout === */
.site-header { width:100%; background:#0e1624; border-bottom:1px solid var(--border); }
.topbar { display:flex; justify-content:space-between; align-items:center; padding:10px 24px; }
.brand { font-size:20px; font-weight:800; color:var(--text); text-decoration:none; letter-spacing:.5px; }
.brand span { color:var(--accent); }

.auth-buttons { display:flex; align-items:center; gap:10px; }
.auth-buttons button { padding:8px 12px; border-radius:10px; border:1px solid var(--border); background:var(--accent); color:#09111f; font-weight:600; cursor:pointer; }
.auth-buttons button.outline { background:transparent; color:var(--text); }
.auth-buttons button.secondary { background:#121a29; color:var(--text); }

.user-badge { display:flex; align-items:center; gap:8px; background:#121a29; border:1px solid var(--border); padding:6px 10px; border-radius:999px; }
.user-badge img { width:22px; height:22px; border-radius:50%; object-fit:cover; background:#0d1523; }

/* Second line menu */
.navbar { display:flex; justify-content:center; gap:32px; background:#121a29; padding:10px 0; }
.navbar a { color:var(--muted); text-decoration:none; font-weight:500; padding:6px 10px; border-radius:8px; }
.navbar a:hover { background:#1a2335; color:var(--text); }

@media (max-width:700px){
  .topbar { flex-direction:column; gap:10px; }
  .navbar { flex-wrap:wrap; gap:16px; }
}
/* Hide empty user badge / image */
.user-badge[hidden]{ display:none !important; }
.user-badge img[src=""], .user-badge img:not([src]){ display:none; }
/* Dropzone */
.dropzone { margin-top:12px; border:2px dashed var(--border); background:#0d1523; border-radius:16px; padding:28px; text-align:center; display:flex; gap:16px; align-items:center; justify-content:center; flex-direction:column; }
.dropzone .dz-icon { font-size:40px; line-height:1; }
.dropzone a { color:var(--accent); text-decoration:none; }
.dropzone.dz-hover { background:#0f1b2e; }

/* Score circle */
.scoreWrap { display:flex; gap:16px; align-items:center; }
.scoreCircle { --pct:0; width:64px; height:64px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-weight:800; background:
  conic-gradient(#75a7ff calc(var(--pct)*1%), #223247 0);
  color:#09111f; border:2px solid var(--border); }
.ats-suggestions {
  margin-top: 10px;
  background: #0f1b2e;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.improve-btn {
  display: block;
  margin: 24px auto 6px;
  padding: 10px 24px;
  background: var(--accent);
  color: #09111f;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.improve-btn:hover { transform: scale(1.03); }
/* ===== Landing (hero) ===== */
.hero { display:grid; grid-template-columns: 1.1fr 1fr; gap:24px; align-items:center; padding:28px 0 10px; }
.hero-left h1 { font-size:38px; line-height:1.15; margin:0 0 8px 0; }
.hero-left .accent { color: var(--accent); }
.hero-sub { color: var(--muted); font-size:16px; margin:0 0 18px 0; max-width:600px; }
.hero-cta { display:flex; gap:12px; margin-bottom:14px; flex-wrap:wrap; }

.btn-lg { display:inline-block; padding:12px 20px; border-radius:12px; font-weight:800; text-decoration:none; }
.btn-lg.primary { background: var(--accent); color:#09111f; }
.btn-lg.ghost   { background:#121a29; color:var(--text); border:1px solid var(--border); }

.trust { display:flex; gap:10px; flex-wrap:wrap; }
.pill { padding:6px 10px; border-radius:999px; border:1px solid var(--border); background:#121a29; color:var(--muted); font-size:12px; }

/* simple mock illustration */
.mock { position:relative; width:100%; aspect-ratio: 4 / 3; background: #0e1523; border:1px solid var(--border); border-radius:18px; display:flex; align-items:center; justify-content:center; overflow:hidden; }
.mock-ring { position:absolute; width:260px; height:260px; border-radius:50%; background:radial-gradient(#4b74ff33, transparent 60%); }
.mock-card { position:relative; background:#fff; color:#223; width:75%; border-radius:14px; box-shadow:0 8px 30px rgba(0,0,0,.25); padding:14px; }
.mock-name { font-weight:800; }
.mock-row { display:flex; gap:8px; margin:8px 0; }
.badge { background:#e9f0ff; color:#274; padding:6px 8px; border-radius:10px; font-size:12px; border:1px solid #cfe; }
.mock-lines { height:120px; background: repeating-linear-gradient(#eef, #eef 8px, #fff 8px, #fff 16px); border-radius:10px; }

/* counter */
.counter { padding: 12px 0 26px; }
.counter-card { background:#0e1624; border:1px solid var(--border); border-radius:16px; padding:16px; text-align:center; }
.counter .count { font-size:28px; font-weight:900; }

/* responsive */
@media (max-width: 900px){
  .hero { grid-template-columns: 1fr; }
  .hero-left h1 { font-size:30px; }
}
/* --- Mobile header --- */
.brand-mob { display:none; font-weight:800; color:var(--text); text-decoration:none; }
.brand-mob span { color:var(--accent); }
.hamburger { display:none; background:#121a29; color:var(--text); border:1px solid var(--border);
  padding:8px 12px; border-radius:10px; font-size:16px; }
.nav-group { display:flex; align-items:center; justify-content:space-between; gap:14px; }

/* collapse on small screens */
@media (max-width:700px){
  /* space bachane ke liye top line hide */
  .topbar { display:none; }

  .navbar { position:sticky; top:0; z-index:60; }
  .brand-mob { display:inline-block; }
  .hamburger { display:inline-block; margin-left:auto; }

  .nav-group { display:none; flex-direction:column; gap:10px; width:100%; padding-top:10px; }
  .nav-group.open { display:flex; }

  .menu { width:100%; justify-content:center; gap:12px; flex-wrap:wrap; }
  .nav-actions { width:100%; justify-content:center; }
}
/* --- Mobile header dropdown --- */
@media (max-width:700px){
  /* hide the top logo line to save space */
  .topbar { display:none; }

  /* anchor for absolute dropdown */
  .navbar.container { position: sticky; top:0; z-index: 100; }
  .navbar { background:#121a29; }

  .brand-mob { display:inline-block; font-weight:800; color:var(--text); text-decoration:none; }
  .brand-mob span { color:var(--accent); }

  .hamburger {
    display:inline-block;
    margin-left:auto;
    background:#121a29;
    color:var(--text);
    border:1px solid var(--border);
    padding:8px 12px; border-radius:10px; font-size:18px;
  }

  /* dropdown panel */
  .nav-group {
    display:none;
    position:absolute;           /* sits under the bar */
    left:0; right:0; top:100%;
    background:#121a29;
    border-bottom:1px solid var(--border);
    padding:12px 16px 16px;
    box-shadow:0 8px 20px rgba(0,0,0,.35);
    gap:12px;
    flex-direction:column;
  }
  .nav-group.open { display:flex; }

  /* vertical menu + centered buttons */
  .menu { display:flex; flex-direction:column; gap:8px; }
  .menu a { padding:10px 12px; border-radius:10px; background:#0e1624; color:var(--text); text-decoration:none; }
  .menu a:hover { background:#1a2335; }

  .nav-actions { display:flex; flex-direction:column; gap:8px; }
  .nav-actions button { width:100%; }
}
/* --- Mobile header dropdown --- */
.brand-mob { display:none; font-weight:800; color:var(--text); text-decoration:none; }
.brand-mob span { color:var(--accent); }
.hamburger { display:none; }

@media (max-width:700px){
  /* top logo line hide on phone */
  .topbar { display:none; }

  .navbar.container { position:sticky; top:0; z-index:100; background:#121a29; padding:10px 12px; }
  .hamburger {
    display:inline-block;
    margin-left:auto;
    background:#121a29; color:var(--text);
    border:1px solid var(--border); border-radius:10px;
    font-size:18px; padding:8px 12px;
  }
  .brand-mob { display:inline-block; }

  /* dropdown panel under the bar */
  .nav-group {
    display:none;
    position:absolute; left:0; right:0; top:100%;
    background:#121a29; border-bottom:1px solid var(--border);
    box-shadow:0 8px 20px rgba(0,0,0,.35);
    padding:12px 16px 16px;
    gap:12px; flex-direction:column;
  }
  .nav-group.open { display:flex; }

  .menu { display:flex; flex-direction:column; gap:8px; }
  .menu a { padding:10px 12px; border-radius:10px; background:#0e1624; color:var(--text); text-decoration:none; text-align:center; }
  .menu a:hover { background:#1a2335; }

  .nav-actions { display:flex; flex-direction:column; gap:8px; }
  .nav-actions button { width:100%; }
}
/* --- Mobile header dropdown (force) --- */
.brand-mob { display:none; font-weight:800; color:var(--text); text-decoration:none; }
.brand-mob span { color:var(--accent); }
.hamburger { display:none; }

@media (max-width:700px){
  .topbar { display:none; } /* save space on phone */

  /* anchor + layer for dropdown */
  .navbar.container { position: relative; z-index: 100; background:#121a29; padding:10px 12px; }

  .brand-mob { display:inline-block; }
  .hamburger {
    display:inline-block; margin-left:auto;
    background:#121a29; color:var(--text);
    border:1px solid var(--border); border-radius:10px;
    font-size:20px; padding:8px 12px;
  }

  /* full-width dropdown under bar */
  .nav-group {
    display:none;
    position:absolute; left:0; right:0; top:100%;
    background:#121a29; border-bottom:1px solid var(--border);
    box-shadow:0 8px 20px rgba(0,0,0,.35);
    padding:12px 16px 16px;
    gap:12px; flex-direction:column;
  }
  .nav-group.open { display:flex; }

  .menu { display:flex; flex-direction:column; gap:8px; }
  .menu a {
    padding:10px 12px; border-radius:10px;
    background:#0e1624; color:var(--text); text-decoration:none; text-align:center;
  }
  .menu a:hover { background:#1a2335; }

  .nav-actions { display:flex; flex-direction:column; gap:8px; }
  .nav-actions button { width:100%; }
}
/* animated headline */
#changingWord {
  transition: opacity 0.4s ease-in-out;
  display:inline-block;
}
/* --- Cover Letter Generator --- */
#coverGenBox textarea, #coverGenBox input, #coverGenBox select {
  width:100%;
}

.output-box {
  background:#0f1624;
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  color:var(--text);
  font-size:15px;
  white-space:pre-wrap;
  line-height:1.6;
  min-height:180px;
}

@media (max-width:700px){
  #coverGenBox form { grid-template-columns:1fr; }
}
/* Dark theme select box fix */
select, 
select option {
  background-color: #0f1624;   /* match dark card background */
  color: #e0e6f0;              /* soft white text */
  border: 1px solid #2a2f3a;   /* subtle border */
  border-radius: 8px;
  padding: 8px;
}

select:focus {
  outline: none;
  border-color: #4b9eff;       /* accent border when active */
  box-shadow: 0 0 0 2px rgba(75,158,255,0.3);
}
/* AI generation status */
.ai-status { margin: 6px 0 4px; }
.ai-row { display:flex; align-items:center; gap:8px; color: var(--muted); }
.spinner {
  width:14px; height:14px; border-radius:50%;
  border:2px solid #2a3750; border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress {
  margin-top:8px; width:100%; height:8px;
  background:#0f1624; border:1px solid var(--border); border-radius:999px; overflow:hidden;
}
.progress .bar { height:100%; background: var(--accent); width:0%; transition: width .45s ease; }
/* ===== Simple Premium ATS ===== */
.ats-card{
  background: rgba(15,22,36,.72);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 10px 28px rgba(0,0,0,.25);
  padding:18px;
  margin:6px 0 24px;
}
.ats-head h1{ margin:0 0 6px; font-size:clamp(26px,4.2vw,36px); }
.ats-head p{ margin:0 0 12px; color:var(--muted); max-width:760px; }

.ats-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.ats-pane{
  background:#0f1624;
  border:1px solid var(--border);
  border-radius:14px;
  padding:14px;
}

.dz-min{
  display:flex; align-items:center; gap:12px;
  border:1.5px dashed var(--border);
  border-radius:12px; padding:14px;
  background:#0f1624;
}
.dz-min.dz-hover{ background:#132036; }
.dz-min-icon{ font-size:26px; line-height:1; }
.dz-min-title{ font-weight:700; }
.dz-min-sub{ color:var(--muted); font-size:14px; }
.ats-meta{ color:var(--muted); margin-top:8px; }

.ats-label{ display:block; margin-top:12px; }
.ats-label textarea{ width:100%; min-height:100px; }

.ats-actions{ display:flex; gap:10px; margin-top:10px; }
.btn-primary{
  background:#75a7ff; color:#08101e; border:none; border-radius:12px;
  padding:10px 18px; font-weight:700; cursor:pointer;
}
.btn-primary:hover{ filter:brightness(1.05); transform:translateY(-1px); }
.btn-ghost{
  background:transparent; border:1px solid var(--border); color:var(--text);
  padding:10px 16px; border-radius:12px; cursor:pointer;
}
.btn-ghost:hover{ background:#121a29; }
.center{ display:block; margin:14px auto 0; }

.ats-error{ color:#ffb3b3; margin-top:8px; }

.score-row{ display:flex; gap:12px; align-items:flex-start; margin-bottom:8px; }
.score-ring{
  --pct:0;
  width:110px; height:110px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:28px; color:#e6edf7;
  background:
    conic-gradient(#75a7ff calc(var(--pct)*1%), #233048 0),
    radial-gradient(circle 48px at 50% 50%, #0f1624 98%, transparent 100%);
  border:1px solid var(--border);
}

.cols-2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.mt{ margin-top:12px; }

.box-slim{
  background:#0f1624; border:1px solid var(--border); border-radius:12px;
  padding:12px; max-height:220px; overflow:auto; color:#e6edf7; white-space:pre-wrap;
}

.ticks{ margin:4px 0 0 18px; line-height:1.5; }
.ats-muted{ color:var(--muted); }

/* Mobile */
@media (max-width:900px){ .ats-grid{ grid-template-columns:1fr; } }
@media (max-width:700px){
  .btn-primary, .btn-ghost{ width:100%; }
  .ats-actions{ flex-direction:column; }
}
/* ===== Premium hero CTAs (v2) ===== */
.hero-ctas.v2{
  display:flex; gap:12px; flex-wrap:wrap;
  margin-top:14px;
}

.hero-ctas.v2 .cta{
  --bg: #0f1624;
  --bd: var(--border, #273041);
  --txt: var(--text, #e6edf7);
  display:inline-flex; align-items:center; gap:10px;
  padding:12px 18px; border-radius:14px;
  border:1px solid var(--bd);
  background: var(--bg);
  color: var(--txt); text-decoration:none; font-weight:700;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
}

.hero-ctas.v2 .cta .cta-icon{ font-size:18px; line-height:1; }

.hero-ctas.v2 .cta:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

/* Primary (Create) — soft gradient */
.hero-ctas.v2 .cta.primary{
  background: linear-gradient(180deg, #85b5ff 0%, #5a95ff 100%);
  color:#08101e; border-color: rgba(133,181,255,.3);
}

/* Neutral (ATS) — glassy pill */
.hero-ctas.v2 .cta.neutral{
  background: rgba(16,26,40,.75);
  backdrop-filter: blur(6px);
}

/* Outline accent (Cover Letter) */
.hero-ctas.v2 .cta.outline-accent{
  border-color:#75a7ff;
  background: rgba(117,167,255,.08);
  color:#d8e6ff;
}
.hero-ctas.v2 .cta.outline-accent:hover{
  background: rgba(117,167,255,.16);
  border-color:#8fb7ff;
}

/* Mobile: stack full width */
@media (max-width: 760px){
  .hero-ctas.v2 { flex-direction:column; }
  .hero-ctas.v2 .cta { width:100%; justify-content:center; }
}
/* Add breathing space below CTA buttons */
.hero-ctas.v2 {
  margin-bottom: 40px; /* increases gap under the buttons */
}

/* Optional: ensure trust line is clearly visible on all screens */
.trust-line, .trustpilot-line {
  margin-top: 10px;
  display: block;
  text-align: center;
  color: #b8c4d9;
  font-size: 0.95rem;
}
/* ====== Premium Animated Changing Text ====== */
#changingText {
  display: inline-block;
  color: #4da8ff;
  font-weight: 700;
  position: relative;
  animation: fadeSlide 2s ease-in-out infinite;
}

/* Keyframe for soft fade-slide animation */
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* Optional glow effect for text */
#changingText.glow {
  text-shadow: 0 0 12px rgba(77, 168, 255, 0.8);
}
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
  }
  85% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
}
/* Center the main landing headline for all screen sizes */
.hero-heading,
.hero h1,
.hero-container h1 {
  text-align: center;
  margin: 0 auto;
  line-height: 1.3;
  max-width: 800px;
}

/* Keep subtext and buttons aligned below the headline */
.hero-subtext,
.hero p {
  text-align: center;
  margin: 0 auto 1.5rem;
  max-width: 700px;
}

/* Make sure on mobile it stays perfect */
@media (max-width: 768px) {
  .hero-heading,
  .hero h1,
  .hero-container h1 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }

  .hero-subtext {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .hero-ctas,
  .hero-ctas.v2 {
    justify-content: center;
    text-align: center;
  }
}
/* AI analyzing status (shared with ATS + Cover Letter) */
.ai-status { margin: 6px 0 4px; }
.ai-row { display:flex; align-items:center; gap:8px; color: var(--muted); }
.spinner {
  width:14px; height:14px; border-radius:50%;
  border:2px solid #2a3750; border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress {
  margin-top:8px; width:100%; height:8px;
  background:#0f1624; border:1px solid var(--border); border-radius:999px; overflow:hidden;
}
.progress .bar { height:100%; background: var(--accent); width:0%; transition: width .45s ease; }
/* ===== Tier-1 Simple Premium for ATS (non-breaking) ===== */

/* Page title + intro */
main .ats-title,
main h1 {
  font-size: clamp(28px, 4.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

main .ats-intro,
main h1 + p {
  color: var(--muted, #9fb0c9);
  margin: 0 0 14px;
  max-width: 800px;
}

/* Left uploader panel */
#dropzone,
.dz,
.dz-min {
  border: 1.5px dashed var(--border, #273041);
  background: #0f1624;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}
#dropzone:hover { background:#142037; }
#dropzone .dz-min-title,
#dropzone strong { font-weight: 700; }
#dropzone .dz-min-sub,
#dropzone small { color: var(--muted, #9fb0c9); }

/* File meta + JD box */
#fileMeta { color: var(--muted, #9fb0c9); margin: 8px 0 0; }
#jdText    { width: 100%; min-height: 110px; }

/* Buttons */
.btn-primary{
  background:#75a7ff; color:#08101e; border:none; border-radius:12px;
  padding:10px 18px; font-weight:700; cursor:pointer;
  transition: transform .15s ease, filter .15s ease;
}
.btn-primary:hover{ transform: translateY(-1px); filter:brightness(1.05); }
.btn-ghost{
  background:transparent; border:1px solid var(--border); color:var(--text);
  padding:10px 16px; border-radius:12px; cursor:pointer;
}
.btn-ghost:hover{ background:#121a29; }

/* Right results panel as a clear card */
#results {
  background: rgba(15,22,36,.72);
  border: 1px solid var(--border, #273041);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  padding: 16px;
}

/* Score donut block */
#results .score-row,
#results .flex {
  display:flex; align-items:flex-start; gap:12px; margin-bottom: 12px;
}
#scoreCircle {
  --pct: 0;
  width: 120px; height: 120px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  font-weight: 900; font-size: 30px; color:#e6edf7;
  background:
    conic-gradient(#75a7ff calc(var(--pct)*1%), #233048 0),
    radial-gradient(circle 52px at 50% 50%, #0f1624 98%, transparent 100%);
  border: 1px solid var(--border, #273041);
}
#scoreSummary { color: var(--muted, #9fb0c9); }

/* Headings & lists */
#results h3 {
  margin: 10px 0 6px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
#results .cols,
#results .cols-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
#results ul { margin: 4px 0 0 18px; line-height: 1.55; }
#results li { color:#d8e2f5; }
#results li::marker { color:#8fb7ff; }

/* Extracted text box */
#rawText,
.box-slim {
  background:#0f1624; border:1px solid var(--border); border-radius:12px;
  padding: 12px; max-height: 220px; overflow:auto; white-space:pre-wrap;
  color: #e6edf7;
}

/* Error + analyzing status */
#atsError { color:#ffb3b3; margin-top:8px; }
.ai-status { margin: 10px 0 8px; }
.ai-row { display:flex; align-items:center; gap:8px; color: var(--muted); }
.spinner { width:14px; height:14px; border-radius:50%;
  border:2px solid #2a3750; border-top-color:#75a7ff; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { margin-top:8px; width:100%; height:8px; background:#0f1624;
  border:1px solid var(--border); border-radius:999px; overflow:hidden; }
.progress .bar { height:100%; background:#75a7ff; width:0%; transition: width .45s ease; }

/* Layout breathing room (desktop) */
@media (min-width: 1000px){
  /* give left & right columns equal visual weight */
  .ats-grid, .ats-wrap, .ats-layout { display:grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
}

/* Mobile-first */
@media (max-width: 900px){
  #results .cols, #results .cols-2 { grid-template-columns: 1fr; }
  .btn-primary, .btn-ghost { width:100%; }
}
<style>
.section-card{background:#0b1220;border:1px solid #1f2937;border-radius:12px;padding:16px 16px}
.section-title{font-weight:600;margin-bottom:12px}
.label{display:block;margin-bottom:6px;color:#cbd5e1}
.req{color:#ef4444}
.input,.select,.textarea{width:100%;background:#0a0f1a;border:1px solid #233046;border-radius:8px;padding:10px 12px;outline:none}
.input:focus,.select:focus,.textarea:focus{border-color:#60a5fa}
.btn-secondary{background:#0a0f1a;border:1px solid #233046;border-radius:8px;padding:8px 12px}
.checkbox{width:16px;height:16px}
.chip{display:inline-flex;gap:6px;align-items:center;border:1px solid #334155;border-radius:999px;padding:4px 10px;margin:4px 6px 0 0}
.chips{display:flex;flex-wrap:wrap}
.bullet-input{display:flex;gap:6px;margin-top:6px}
.remove-btn{font-size:12px;color:#94a3b8}
.remove-btn:hover{color:#f87171}
</style>
/* === Global Header Design === */

/* Wrapper to align content */
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Sticky header */
.ss-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 26, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #1f2937;
}

/* Top row */
.ss-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
}

/* Logo + brand */
.ss-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ss-brand .site-logo {
  height: 70px;
  width: auto;
  display: block;
}

/* Login/Signup */
.ss-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ss-btn {
  border: 1px solid #233046;
  background: #0a0f1a;
  color: #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.ss-btn.primary {
  background: #60a5fa;
  color: #0b1220;
  border-color: #60a5fa;
  font-weight: 600;
}
.ss-btn.small {
  padding: 8px 12px;
  font-size: 14px;
}

/* Second row (menu) */
.ss-header-nav {
  border-top: 1px solid #1f2937;
}
.ss-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
}
.ss-menu a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 10px 6px;
  font-weight: 500;
}
.ss-menu a:hover {
  color: #60a5fa;
}

/* Mobile toggle button */
.ss-nav-toggle {
  display: none;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .ss-header-nav {
    display: none;
  }
  .ss-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #233046;
    background: #0a0f1a;
    color: #e5e7eb;
    cursor: pointer;
  }
  .ss-header.open .ss-header-nav {
    display: block;
  }
  .ss-menu {
    justify-content: flex-start;
    padding: 8px 0;
  }
  .ss-brand .site-logo {
    height: 55px;
  }
}
/* ===== Mobile off-canvas drawer ===== */
body.no-scroll { overflow: hidden; }

@media (max-width: 768px){
  /* hide old second-row menu on mobile */
  .ss-header-nav{ display: none !important; }

  /* Drawer panel that slides from right */
  .ss-drawer{
    position: fixed;
    top: 0;
    right: -86vw;          /* hidden state */
    width: 86vw;
    height: 100vh;
    background: #0b1220;
    border-left: 1px solid #233046;
    box-shadow: -12px 0 30px rgba(0,0,0,.35);
    transition: right .25s ease;
    padding: 72px 16px 16px;   /* top space for status bar */
    z-index: 1001;
  }
  .ss-header.open .ss-drawer{ right: 0; }  /* visible */

  /* Backdrop */
  .ss-backdrop{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 1000;
  }
  .ss-header.open + .ss-backdrop{
    opacity: 1;
    pointer-events: auto;
  }

  /* Vertical menu in drawer */
  .ss-drawer .ss-menu{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ss-drawer .ss-menu a{
    display: block;
    width: 100%;
    padding: 12px 6px;
    border-radius: 8px;
  }
  .ss-drawer .ss-menu a:hover{
    background: #111827;
    color: #60a5fa;
  }
}
@media (max-width:768px){
  .ss-drawer{ z-index:1001; }
  .ss-backdrop{ z-index:1000; }
  .ss-header{ z-index:1002; } /* keep header above backdrop edge */
}
/* ===== Create Resume Modal ===== */
.ss-modal-backdrop{
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  display: none; opacity: 0; transition: opacity .18s ease; z-index: 1400;
}
.ss-modal{
  position: fixed; inset: 0; display: none; place-items: center;
  z-index: 1401;
}
.ss-modal.open, .ss-modal-backdrop.open{ display: grid; }
.ss-modal-backdrop.open{ opacity: 1; }
.ss-modal .panel{
  width: min(560px, 92vw); background:#0b1220; border:1px solid #233046;
  border-radius:14px; padding:18px; box-shadow: 0 14px 50px rgba(0,0,0,.4);
}
.ss-modal .h1{ font-size:20px; font-weight:700; margin:6px 2px 10px; color:#e5e7eb}
.ss-modal .card{
  border:1px solid #233046; border-radius:12px; padding:14px; margin:10px 0; background:#0a0f1a;
}
.ss-modal .card h3{ margin:0 0 6px; font-size:16px; color:#e5e7eb }
.ss-modal .muted{ color:#94a3b8; font-size:13px; }
.ss-modal .btn{ background:#60a5fa; color:#0b1220; font-weight:600; border:0;
  border-radius:10px; padding:9px 12px; cursor:pointer; text-decoration:none; display:inline-block; }
.ss-modal .btn.secondary{ background:#0a0f1a; color:#e5e7eb; border:1px solid #233046 }
.ss-modal .actions{ display:flex; justify-content:flex-end; gap:8px; margin-top:8px }
body.no-scroll{ overflow:hidden; }
/* Root theme (match your landing page colors) */
:root{
  --bg: #0b0f13;           /* page bg (dark) */
  --card: #11161c;         /* header bg blur base */
  --text: #e7eef7;         /* main text */
  --muted: #a0b1c2;        /* secondary text */
  --brand: #6aa6ff;        /* primary brand color */
  --brand-strong:#3b82f6;  /* hover/strong */
  --border: #223041;
  --shadow: 0 10px 30px rgba(0,0,0,.35);

  /* Consistent logo sizing across laptop & mobile (matches landing) */
  --logo-h: clamp(28px, 5vw, 40px);
  --radius: 14px;
}

/* Header shell */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in oklab, var(--card) 70%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 70%, transparent);
}

/* Inner wrap */
.nav-wrap{
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
}

/* Brand */
.brand{
  display: inline-flex; align-items:center; gap:10px;
  text-decoration: none; color: var(--text);
}
.brand__logo{
  height: var(--logo-h); width: auto; display: block; object-fit: contain;
}
.brand__title{
  font-size: clamp(16px, 2.4vw, 20px);
  font-weight: 700; letter-spacing:.2px;
}

/* Desktop nav */
.nav--desktop{
  display: none; gap: 16px; align-items: center;
}
.nav__link{
  text-decoration: none; color: var(--muted);
  font-weight: 500; padding: 8px 10px; border-radius: 10px;
}
.nav__link:hover{ color: var(--text); background: rgba(255,255,255,.04); }
.nav__link--active{ color: var(--text); background: rgba(106,166,255,.12); }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px; border-radius: var(--radius); text-decoration:none;
  font-weight: 600; border: 1px solid transparent;
  box-shadow: none; transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:active{ transform: translateY(1px); }
.btn--ghost{ color: var(--text); border-color: color-mix(in oklab, var(--border) 70%, transparent); background: transparent; }
.btn--ghost:hover{ background: rgba(255,255,255,.04); }
.btn--primary{ background: var(--brand); color: #0b1020; }
.btn--primary:hover{ background: var(--brand-strong); }
.btn--full{ width: 100%; }

/* Hamburger */
.hamburger{
  width: 42px; height: 42px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  border:1px solid color-mix(in oklab, var(--border) 70%, transparent);
  background: rgba(255,255,255,.02); cursor:pointer;
}
.hamburger span{
  width: 20px; height: 2px; background: var(--text); display:block; border-radius: 2px;
}
.hamburger span + span{ margin-top: 4px; }

/* Drawer (mobile menu) */
.drawer{
  position: fixed; inset: 60px 12px auto 12px;
  background: color-mix(in oklab, var(--card) 92%, transparent);
  border:1px solid color-mix(in oklab, var(--border) 80%, transparent);
  box-shadow: var(--shadow); border-radius: 16px; padding: 10px;
  display: none; flex-direction: column; gap: 4px;
}
.drawer__link{
  padding: 12px 10px; border-radius: 12px; color: var(--text); text-decoration:none;
}
.drawer__link:hover{ background: rgba(255,255,255,.04); }
.drawer__link--active{ background: rgba(106,166,255,.12); }
.drawer__actions{ display: flex; flex-direction: column; gap: 8px; padding: 8px; }

/* Responsive */
@media (min-width: 992px){
  .nav-wrap{ grid-template-columns: auto 1fr; }
  .hamburger{ display: none; }
  .nav--desktop{ display: inline-flex; justify-self: end; }
  .drawer{ display: none !important; }
}
/* Header base */
.site-header{position:sticky;top:0;z-index:1000;
  background:rgba(17,22,28,.85);backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid rgba(34,48,65,.7)}
.nav-wrap{max-width:1200px;margin:0 auto;padding:10px 16px;
  display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:12px}

/* Brand */
.brand{display:inline-flex;align-items:center;gap:10px;text-decoration:none;color:#e7eef7}
.brand__logo{height:clamp(28px,5vw,40px)!important;width:auto!important;display:block;object-fit:contain}
.brand__title{font-size:clamp(16px,2.4vw,20px);font-weight:700}

/* Desktop nav */
.nav--desktop{display:none;gap:16px;align-items:center}
.nav__link{color:#a0b1c2;text-decoration:none;font-weight:500;padding:8px 10px;border-radius:10px}
.nav__link:hover{color:#e7eef7;background:rgba(255,255,255,.04)}
.nav__link--active{color:#e7eef7;background:rgba(106,166,255,.12)}

.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;border-radius:14px;
  text-decoration:none;font-weight:600;border:1px solid rgba(34,48,65,.7)}
.btn--ghost{color:#e7eef7}
.btn--ghost:hover{background:rgba(255,255,255,.04)}
.btn--primary{background:#6aa6ff;color:#0b1020}
.btn--primary:hover{background:#3b82f6}

/* Mobile hamburger + drawer */
.hamburger{width:42px;height:42px;border-radius:12px;display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(34,48,65,.7);background:rgba(255,255,255,.02);cursor:pointer}
.hamburger span{width:20px;height:2px;background:#e7eef7;display:block;border-radius:2px}
.hamburger span+span{margin-top:4px}

.drawer{position:fixed;left:12px;right:12px;top:60px;background:rgba(17,22,28,.96);
  border:1px solid rgba(34,48,65,.8);border-radius:16px;padding:10px;display:none;flex-direction:column;gap:4px}
.drawer__link{padding:12px 10px;border-radius:12px;color:#e7eef7;text-decoration:none}
.drawer__link:hover{background:rgba(255,255,255,.04)}
.drawer__link--active{background:rgba(106,166,255,.12)}
.drawer__actions{display:flex;flex-direction:column;gap:8px;padding:8px}

/* Responsive */
@media (min-width:992px){
  .nav-wrap{grid-template-columns:auto 1fr}
  .hamburger{display:none}
  .nav--desktop{display:inline-flex;justify-self:end}
  .drawer{display:none!important}
}
#tplPage .hamburger{ width:44px;height:44px;display:flex;align-items:center;justify-content:center;
  border-radius:12px;border:1px solid rgba(34,48,65,.7);background:rgba(255,255,255,.02);cursor:pointer; }
#tplPage .hamburger svg{ display:block; }
@media (min-width:992px){ #tplPage .hamburger{ display:none; } }
