:root {
  --bg: #0b1020;
  --sidebar: #0c0a06;
  --panel: #16140a;
  --panel-2: #1c1a0f;
  --text: #f5f0e6;
  --muted: #9a9076;
  --border: #2a2618;
  --accent: #f59e0b;
  --accent-2: #fbbf24;
  --success: #21c17a;
  --warning: #f0b24a;
  --danger: #ef4444;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #0c0a06 0%, #0b0a06 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
}

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

pre {
  white-space: pre-wrap;
  margin: 0;
  color: var(--text);
  font-family: inherit;
  line-height: 1.55;
}

details summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  transition: 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

textarea {
  resize: vertical;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(10, 9, 4, 0.97);
  border-right: 1px solid var(--border);
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.brand-mark {
  flex-shrink: 0;
}

.brand-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.brand-subtitle {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 2px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  background: rgba(245, 158, 11, 0.08);
  color: var(--accent);
}

.main-content {
  padding: 28px 32px;
  overflow-y: auto;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.page-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.025em;
}

.page-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.panel-header.split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #0c0a06;
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.btn-secondary:hover {
  background: rgba(245, 158, 11, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--panel-2);
  color: var(--text);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #ff8f8f;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.link-btn {
  display: inline-flex;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.metric-label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}

.metric-value {
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.resume-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.resume-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.resume-name {
  font-weight: 700;
}

.resume-label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
}

.status-good {
  background: rgba(33, 193, 122, 0.14);
  color: #6ee7a8;
}

.status-warn {
  background: rgba(245, 158, 11, 0.14);
  color: #fcd34d;
}

.status-bad {
  background: rgba(239, 68, 68, 0.14);
  color: #ff8f8f;
}

.score-badge {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 36px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent);
  font-weight: 800;
}

.action-row,
.action-col,
.filter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.list-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-item {
  padding: 14px 16px;
}

.list-title {
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.cell-title {
  font-weight: 700;
  margin-bottom: 5px;
}

.small {
  font-size: 12px;
  word-break: break-word;
}

.muted {
  color: var(--muted);
}

.alert-box {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--text);
  font-weight: 600;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.soft-panel {
  background: rgba(255, 255, 255, 0.02);
  margin-bottom: 0;
}

.success-box {
  background: rgba(33, 193, 122, 0.12);
  border: 1px solid rgba(33, 193, 122, 0.25);
}

.error-box {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

@media (max-width: 1200px) {
  .stats-grid,
  .two-col,
  .three-col,
  .resume-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }
}

/* ─── Landing page ─────────────────────────────── */

.landing-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(251, 191, 36, 0.08), transparent 25%),
    linear-gradient(180deg, #0c0a06 0%, #0b0a06 100%);
}

.landing-header {
  padding: 24px 32px 0;
}

.landing-nav {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.landing-logo-mark {
  width: 44px;
  height: 44px;
  background: #1c1a0f;
  border: 1px solid #2a2618;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.landing-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.landing-brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.landing-brand-parent {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.landing-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.landing-main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

.hero-clean {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.hero-copy,
.hero-preview {
  background: linear-gradient(180deg, rgba(22, 20, 10, 0.98), rgba(16, 14, 6, 0.98));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 36px;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.hero-title {
  margin: 0 0 16px;
  font-size: 58px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.035em;
  max-width: 720px;
  color: var(--text);
}

.hero-title .highlight {
  color: var(--accent);
}

.hero-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.72;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.preview-shell {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.preview-topbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 100%;
}

.preview-card {
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 22px;
  padding: 20px;
  min-height: 150px;
}

.preview-label {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.preview-value {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
  color: var(--accent);
}

.preview-subtext {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.preview-bar {
  height: 4px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 2px;
  margin-top: 12px;
  overflow: hidden;
}

.preview-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
}

.landing-section {
  margin-top: 32px;
}

.section-head {
  margin-bottom: 18px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: var(--text);
}

.section-head p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.feature-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: linear-gradient(180deg, rgba(22, 20, 10, 0.98), rgba(16, 14, 6, 0.98));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: rgba(245, 158, 11, 0.3);
}

.feature-card h3 {
  margin: 14px 0 10px;
  font-size: 20px;
  color: var(--text);
}

.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent);
  font-size: 20px;
}

.premium-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(180deg, rgba(22, 20, 10, 0.98), rgba(16, 14, 6, 0.98));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.premium-banner h3 {
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--text);
}

.premium-banner p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.landing-footer {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 32px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1200px) {
  .hero-clean,
  .feature-card-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 42px;
  }

  .premium-banner,
  .landing-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ─── Auth pages ────────────────────────────────── */
.auth-shell { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:40px 24px; }
.auth-card { background:linear-gradient(180deg,rgba(22,20,10,.98),rgba(16,14,6,.98)); border:1px solid var(--border); border-radius:28px; box-shadow:var(--shadow); padding:40px; width:100%; max-width:420px; }
.auth-brand { display:flex; align-items:center; gap:12px; margin-bottom:28px; }
.auth-title { font-size:26px; font-weight:900; letter-spacing:-.02em; margin:0 0 6px; }
.auth-sub { color:var(--muted); font-size:14px; margin:0 0 24px; }
.auth-error { background:rgba(239,68,68,.12); border:1px solid rgba(239,68,68,.25); border-radius:12px; padding:12px 16px; font-size:14px; color:#ff8f8f; margin-bottom:20px; }
.auth-form { display:flex; flex-direction:column; gap:14px; }
.auth-field { display:flex; flex-direction:column; gap:6px; }
.auth-submit { width:100%; justify-content:center; padding:13px; font-size:15px; margin-top:4px; }
.auth-switch { text-align:center; font-size:14px; color:var(--muted); margin-top:20px; }
.auth-switch a { color:var(--accent); text-decoration:none; }
.auth-perks { display:flex; flex-direction:column; gap:6px; margin-top:20px; padding-top:20px; border-top:1px solid var(--border); }
.auth-perk { font-size:13px; color:var(--muted); }

/* ─── Sidebar footer ──────────────────────────── */
.sidebar { display:flex; flex-direction:column; }
.sidebar-footer { margin-top:auto; padding-top:20px; border-top:1px solid var(--border); }
.plan-badge { display:inline-block; font-size:10px; font-weight:800; letter-spacing:.12em; padding:4px 10px; border-radius:999px; margin-bottom:8px; }
.plan-free { background:rgba(255,255,255,.06); color:var(--muted); }
.plan-pro { background:rgba(245,158,11,.15); color:var(--accent); }
.plan-career { background:rgba(20,184,166,.15); color:#5eead4; }
.user-info { font-size:12px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ─── Pricing page ───────────────────────────── */
.pricing-shell { max-width:1100px; margin:0 auto; padding:32px 32px 80px; }
.pricing-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:56px; }
.pricing-header { text-align:center; margin-bottom:48px; }
.pricing-grid-outer { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--border); border:1px solid var(--border); border-radius:20px; overflow:hidden; }
.pricing-card { background:linear-gradient(180deg,rgba(22,20,10,.98),rgba(16,14,6,.98)); padding:36px 28px; position:relative; }
.pricing-card.pricing-featured { background:linear-gradient(180deg,rgba(30,26,12,.98),rgba(22,18,8,.98)); }
.pricing-popular { position:absolute; top:-1px; left:50%; transform:translateX(-50%); background:var(--accent); color:#0c0a06; font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; padding:4px 16px; border-radius:0 0 8px 8px; white-space:nowrap; }
.pricing-current-badge { text-align:center; font-size:13px; color:var(--accent); font-weight:700; padding:11px; border:1px solid rgba(245,158,11,.3); border-radius:12px; }
.pricing-tier { font-size:10px; letter-spacing:.15em; text-transform:uppercase; color:var(--muted); margin-bottom:12px; }
.pricing-price { font-size:44px; font-weight:900; letter-spacing:-.03em; line-height:1; margin-bottom:4px; }
.pricing-period { font-size:12px; color:var(--muted); margin-bottom:16px; }
.pricing-desc { font-size:13px; color:var(--muted); line-height:1.7; margin-bottom:22px; padding-bottom:22px; border-bottom:1px solid var(--border); }
.pricing-feats { list-style:none; padding:0; display:flex; flex-direction:column; gap:9px; margin:0 0 24px; }
.pricing-feats li { font-size:13px; color:var(--muted); padding-left:18px; position:relative; }
.pricing-feats li::before { content:'✓'; position:absolute; left:0; color:var(--accent); font-size:11px; }
.pricing-feats li.feat-na { color:#3a3628; }
.pricing-feats li.feat-na::before { content:'–'; color:#3a3628; }
@media(max-width:800px){ .pricing-grid-outer{grid-template-columns:1fr;border-radius:16px;} .pricing-shell{padding:24px 16px 60px;} }

/* ─── Plan limit banner ──────────────────────── */
.plan-limit-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.25);
  border-radius: 14px;
  font-size: 14px;
  flex-wrap: wrap;
}