/* ===================================================
   AI Career Hub — Global Stylesheet
   =================================================== */

/* --- Design Tokens --- */
:root {
  --bg: #f8fafc;
  --bg2: #f1f5f9;
  --bg3: #e8f0fe;
  --text: #0f172a;
  --text2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #4338ca;
  --brand2: #7c3aed;
  --blue: #0ea5e9;
  --emerald: #059669;
  --amber: #d97706;
  --rose: #e11d48;
  --card: #ffffff;
  --shadow-xs: 0 1px 3px rgba(15,23,42,.06);
  --shadow-sm: 0 2px 8px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.04);
  --shadow: 0 4px 20px rgba(15,23,42,.08), 0 2px 6px rgba(15,23,42,.04);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.12), 0 8px 20px rgba(15,23,42,.06);
  --shadow-xl: 0 32px 80px rgba(15,23,42,.18);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --grad: linear-gradient(135deg, #4338ca 0%, #7c3aed 55%, #0ea5e9 100%);
  --grad-text: linear-gradient(90deg, #4338ca, #7c3aed, #0ea5e9);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 50%, #e0f2fe 100%);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
main { overflow: hidden; }
img { max-width: 100%; }
button, input, textarea, select { font: inherit; }
h1,h2,h3,h4 { line-height: 1.15; }

/* ===================================================
   NAVIGATION
   =================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  height: 64px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 1px 16px rgba(15,23,42,.04);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
  font-size: 14px;
}
.links a {
  padding: 8px 13px;
  border-radius: 9px;
  color: var(--text2);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.links a:hover { background: var(--bg2); color: var(--text); }
.menu {
  display: none;
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 9px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 16px rgba(67,56,202,.28);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 28px rgba(67,56,202,.38); }
.btn:active { transform: translateY(0); }
.btn.ghost {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-xs);
}
.btn.ghost:hover { background: var(--bg2); border-color: #c7d2fe; box-shadow: var(--shadow-sm); }
.btn.small { padding: 8px 15px; font-size: 13px; }
.btn.large { padding: 14px 30px; font-size: 15px; border-radius: var(--radius); }
.btn.danger { background: linear-gradient(135deg, #e11d48, #be123c); box-shadow: 0 4px 14px rgba(225,29,72,.28); }
.btn.success-btn { background: linear-gradient(135deg, #059669, #047857); box-shadow: 0 4px 14px rgba(5,150,105,.28); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===================================================
   SECTIONS & LAYOUT
   =================================================== */
section { max-width: 1200px; margin: 0 auto; padding: 72px 24px; }
.band {
  max-width: none !important;
  background: var(--grad-soft);
  margin: 0;
  padding: 0;
}
.band > section { max-width: 1200px !important; }

/* ===================================================
   HERO
   =================================================== */
.hero {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 52px;
  align-items: center;
  min-height: 660px;
  padding-top: 88px;
  padding-bottom: 80px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.8vw, 70px);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: var(--text);
  line-height: 1.06;
}
.hero h1 .grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero > div > p {
  font-size: 18px;
  color: var(--text2);
  line-height: 1.72;
  max-width: 500px;
  margin: 0 0 34px;
}
.hero-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-panel::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(14,165,233,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-panel-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.score {
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}
.score-label { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.hero-checks { list-style: none; padding: 0; margin: 0; }
.hero-checks li {
  padding: 7px 0 7px 26px;
  position: relative;
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--bg2);
}
.hero-checks li:last-child { border-bottom: 0; }
.hero-checks li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald); font-weight: 900; font-size: 15px; }

/* ===================================================
   EYEBROW / LABELS
   =================================================== */
.eyebrow {
  display: inline-block;
  background: linear-gradient(135deg, #e0e7ff, #ede9fe);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid #c7d2fe;
  margin-bottom: 12px;
}
.card span, .card > span:first-child {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

/* ===================================================
   SECTION TITLES
   =================================================== */
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 36px;
}
.section-title > div { flex: 1; }
h2, .section-title h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 8px;
  color: var(--text);
}
.section-title p { color: var(--muted); max-width: 500px; margin: 0; font-size: 15px; }

/* ===================================================
   CARDS
   =================================================== */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card, details, .tool-form, .result, .empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-xs);
}
.card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c7d2fe; }
.card h3 { font-size: 16px; font-weight: 700; margin: 10px 0 8px; color: var(--text); }
.card p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.55; }

/* ===================================================
   STATS
   =================================================== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stats div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.stats div::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
}
.stats strong {
  display: block;
  font-size: 34px;
  font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stats span { color: var(--muted); font-weight: 600; font-size: 13px; }
.credit-stats strong { color: var(--brand); background: none; -webkit-background-clip: initial; background-clip: initial; }

/* ===================================================
   STEPS
   =================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(67,56,202,.32);
}
.steps h3 { margin: 0 0 10px; font-size: 18px; font-weight: 700; }
.steps p { color: var(--muted); margin: 0; font-size: 14px; }

/* ===================================================
   PRICING
   =================================================== */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured {
  border-color: transparent;
  background: linear-gradient(#fff, #fff) padding-box,
              var(--grad) border-box;
  box-shadow: 0 8px 32px rgba(67,56,202,.18);
}
.price-card.featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 4px 14px;
  border-radius: 999px;
}
.price-card h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.price {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 14px 0 4px;
}
.price-card > p { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 26px; }
.price-card li {
  padding: 9px 0 9px 26px;
  position: relative;
  color: var(--text2);
  font-size: 14px;
  border-bottom: 1px solid var(--bg2);
}
.price-card li:last-child { border-bottom: 0; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald); font-weight: 900; }

/* ===================================================
   BLOG CARDS
   =================================================== */
.blog-card { overflow: hidden; padding: 0; cursor: pointer; }
.blog-card img { width: 100%; height: 186px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; display: block; }
.blog-card > span, .blog-card h3, .blog-card p { margin-left: 22px; margin-right: 22px; }
.blog-card > span { margin-top: 18px; display: inline-block; }
.blog-card h3 { margin-top: 8px; font-size: 16px; }
.blog-card p { margin-bottom: 22px; font-size: 14px; }
.blog-cards.cards { grid-template-columns: repeat(3, 1fr); }

/* ===================================================
   FEATURE SPLIT
   =================================================== */
.feature-split { display: grid; grid-template-columns: 1fr 480px; gap: 60px; align-items: center; }
.feature-split img { width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.feature-split h2 { font-size: clamp(26px, 3.5vw, 40px); }

/* ===================================================
   REVIEWS
   =================================================== */
.reviews-section { padding-top: 0; }
.review-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.review-stars { font-size: 17px; color: #f59e0b; margin-bottom: 14px; letter-spacing: 2px; }
.review-card h3 { margin: 0 0 10px; font-size: 16px; font-weight: 700; }
.review-card p { color: var(--text2); font-size: 14px; line-height: 1.68; margin: 0 0 16px; }
.review-card strong { font-size: 13px; color: var(--muted); font-weight: 600; }
.admin-review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.admin-review-card > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-admin-list { display: grid; gap: 16px; }
.review-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.review-form { display: grid; gap: 14px; text-align: left; }
.review-form label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; color: var(--text2); }
.review-form input, .review-form select, .review-form textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 13px; background: var(--bg); transition: border-color .15s; }
.review-form input:focus, .review-form select:focus, .review-form textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(67,56,202,.09); }
.review-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 6px 28px rgba(67,56,202,.38);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.review-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(67,56,202,.45); }
.review-popup { width: min(490px, 100%); }

/* ===================================================
   PAGE HEAD
   =================================================== */
.page-head { padding-top: 80px; padding-bottom: 28px; }
.page-head h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 12px 0 16px;
}
.page-head p { font-size: 18px; color: var(--text2); max-width: 620px; line-height: 1.7; }

/* ===================================================
   TOOL PAGES
   =================================================== */
.tool-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
.tool-form label, .auth label {
  display: grid;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  color: var(--text2);
  margin-bottom: 16px;
}
.tool-form input, .tool-form textarea, .tool-form select,
.auth input, .auth textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.tool-form input:focus, .tool-form textarea:focus, .tool-form select:focus,
.auth input:focus, .auth textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(67,56,202,.09);
}
.result { margin-top: 18px; }
.result h2 { margin: 0 0 14px; font-size: 18px; }
.result pre {
  white-space: pre-wrap;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.75;
  margin: 0 0 14px;
}
.result.error pre { background: #450a0a; color: #fecaca; }
.empty { color: var(--muted); text-align: center; padding: 52px 28px; font-size: 15px; border-radius: var(--radius); }
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tool-info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.tool-info-card h3 { margin: 0 0 8px; font-size: 15px; font-weight: 700; }
.tool-info-card p { color: var(--muted); font-size: 14px; margin: 0; }
.ad-slot { margin: 16px 0; text-align: center; background: var(--bg2); border: 1px dashed var(--line); border-radius: 12px; padding: 20px; color: #94a3b8; }
.ad-slot span { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 3px; }

/* ===================================================
   AUTH FORMS
   =================================================== */
.auth {
  max-width: 440px;
  margin: 80px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.auth h1 { text-align: center; margin: 0 0 30px; font-size: 26px; letter-spacing: -0.025em; }
.auth-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; }
.auth-logo img { width: 52px; height: 52px; }
.auth-logo strong { font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 800; text-transform: uppercase; }
.auth-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }
.auth-note a { color: var(--brand); font-weight: 700; }

/* ===================================================
   POPUP / MODAL
   =================================================== */
.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15,23,42,.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.popup-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.brand-popup {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 36px 30px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  animation: popupIn .22s cubic-bezier(.34,1.56,.64,1);
  border-top: 4px solid transparent;
}
.brand-popup.success { border-top-color: #10b981; }
.brand-popup.error   { border-top-color: #ef4444; }
.brand-popup.warning { border-top-color: #f59e0b; }
.brand-popup h2 { margin: 12px 0 8px; font-size: 22px; font-weight: 800; }
.brand-popup p { color: var(--text2); margin: 0 0 26px; font-size: 15px; line-height: 1.65; }
.popup-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--bg2);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
}
.popup-close:hover { background: #e2e8f0; color: var(--text); }
.popup-logo { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 6px; }
.popup-logo img { width: 52px; height: 52px; }
.popup-logo strong { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.popup-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@keyframes popupIn {
  from { transform: scale(.92) translateY(12px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* ===================================================
   TOAST
   =================================================== */
.toast {
  position: fixed;
  top: 78px; right: 20px;
  z-index: 300;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: var(--shadow);
}
.toast.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #0f172a;
  color: #e2e8f0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 48px;
}
.footer-brand .brand { color: #f8fafc; font-size: 18px; }
.footer-brand p { color: #64748b; font-size: 14px; margin: 12px 0 0; max-width: 260px; line-height: 1.6; }
.footer-col h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #475569; margin: 0 0 16px; }
.footer-col a { display: block; color: #64748b; font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer-col a:hover { color: #94a3b8; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 32px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { color: #475569; font-size: 13px; margin: 0; }
.footer-bottom div { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom a { color: #475569; font-size: 13px; transition: color .15s; }
.footer-bottom a:hover { color: #64748b; }
/* Compact footer for inner pages */
.footer.compact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.compact-footer p, .compact-footer span { color: #64748b; font-size: 13px; margin: 0; }
.compact-footer div { display: flex; gap: 16px; flex-wrap: wrap; }
.compact-footer a { color: #475569; font-size: 13px; }
.compact-footer a:hover { color: #64748b; }

/* ===================================================
   ARTICLE / BLOG
   =================================================== */
.article {
  max-width: 800px;
  margin: 60px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 52px;
  box-shadow: var(--shadow);
}
.article-cover { width: 100%; height: 360px; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.article-lead { font-size: 20px; color: var(--text2); line-height: 1.68; margin-bottom: 30px; }
.article h2 { margin-top: 36px; font-size: 22px; }
.article p { color: var(--text2); line-height: 1.78; }
.article-cta {
  margin-top: 44px;
  padding: 30px;
  background: var(--grad-soft);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius);
}
.article-cta h2 { margin-top: 0; font-size: 22px; }
.qa article { padding: 26px 0; border-bottom: 1px solid var(--line); }
.qa article h2 { font-size: 18px; font-weight: 700; }
.qa article p { color: var(--text2); line-height: 1.75; }
.policy-page h2 { font-size: 20px; margin-top: 36px; }
.policy-updated { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.policy-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.policy-links a { color: var(--brand); font-weight: 700; font-size: 14px; }

/* ===================================================
   SUPPORT / TICKETS
   =================================================== */
.support-layout { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.support-filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto auto; gap: 10px; margin-bottom: 20px; }
.support-filters input, .support-filters select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
  font-size: 14px;
}
.ticket-detail { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.ticket-thread { display: grid; gap: 14px; }
.ticket-reply {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.ticket-reply.admin { border-left: 4px solid var(--brand); background: #f8fbff; }
.ticket-reply.user  { border-left: 4px solid var(--emerald); }
.ticket-reply > div { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ticket-reply strong { color: var(--text); font-weight: 700; font-size: 14px; }
.ticket-reply > div > span { color: var(--muted); font-size: 13px; }
.ticket-reply p { margin: 0; color: var(--text2); line-height: 1.68; white-space: pre-wrap; font-size: 14px; }
.ticket-status-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ===================================================
   ADMIN CARD & FORM
   =================================================== */
.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.admin-card > h2:first-child { margin: 0 0 22px; font-size: 20px; font-weight: 800; }
.admin-form label { display: grid; gap: 7px; font-weight: 700; font-size: 14px; color: var(--text2); margin-bottom: 14px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--bg);
  transition: border-color .15s, box-shadow .15s;
}
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(67,56,202,.09);
}
.admin-form .btn { margin-right: 10px; }

/* ===================================================
   TABLES
   =================================================== */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--bg2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
tr:hover td { background: #fafbff; }
.ticket-table { overflow: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.ticket-table table { min-width: 720px; }
.ticket-table a { color: var(--brand); font-weight: 700; }

/* ===================================================
   BADGES
   =================================================== */
.ticket-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.status-open         { background: #dbeafe; color: #1d4ed8; }
.status-waiting-admin { background: #fef3c7; color: #92400e; }
.status-waiting-user  { background: #dcfce7; color: #166534; }
.status-closed       { background: #f1f5f9; color: #475569; }
.status-pending      { background: #fef9c3; color: #854d0e; }
.status-approved     { background: #dcfce7; color: #166534; }
.status-rejected     { background: #fee2e2; color: #991b1b; }
.status-hidden       { background: #f1f5f9; color: #475569; }
.status-debit        { background: #fee2e2; color: #991b1b; }
.status-credit, .status-reset, .status-refund, .status-paid { background: #dcfce7; color: #166534; }
.status-created      { background: #dbeafe; color: #1d4ed8; }
.status-failed       { background: #fee2e2; color: #991b1b; }
.status-refunded     { background: #f1f5f9; color: #475569; }

/* ===================================================
   CREDIT SYSTEM
   =================================================== */
.credit-warning {
  background: linear-gradient(135deg, #fff7ed, #fef3c7);
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.credit-warning h2 { margin: 0 0 8px; color: #92400e; font-size: 18px; }
.credit-warning p { color: #9a3412; margin: 0 0 16px; font-size: 15px; }
.credit-packs { grid-template-columns: repeat(2, 1fr) !important; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 24px 0; }
.analytics-grid h2 { font-size: 17px; font-weight: 800; margin: 0 0 16px; }
.usage-filters { grid-template-columns: repeat(6, 1fr); }

/* ===================================================
   SHARE SECTION
   =================================================== */
.share-section { padding-top: 0; }
.share-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background: var(--grad-soft);
  border: 1px solid #c7d2fe;
  border-radius: var(--radius-xl);
  padding: 36px;
}
.share-box h2 { margin: 8px 0; font-size: 26px; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.code-box {
  white-space: pre-wrap;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  overflow: auto;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.65;
}
.seo-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.seo-list li { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--text2); }

/* ===================================================
   MISC HELPERS
   =================================================== */
.price-admin-block { margin: 14px 0 20px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg2); }
.price-admin-block h3 { margin: 0 0 14px; font-size: 16px; font-weight: 700; }
.payment-policy-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 12px; }
.payment-policy-note a { color: var(--brand); font-weight: 700; }
.payment-links { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; color: var(--text2); }
.payment-links a { color: var(--brand); font-weight: 700; }
.setup-message { margin-top: 14px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.setup-message.success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.setup-message.error { background: #fef2f2; color: #991b1b; border-color: #fecaca; }

/* ===================================================
   RESUME STUDIO
   =================================================== */
.resume-studio section { max-width: 1380px; }
.resume-head { padding-bottom: 18px; }
.resume-builder-grid { display: grid; grid-template-columns: 280px minmax(0,1fr) 260px; gap: 18px; align-items: start; padding-top: 18px; }
.resume-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.resume-panel h2 { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.template-grid { display: grid; gap: 10px; max-height: 600px; overflow: auto; padding-right: 4px; }
.template-card {
  display: grid; gap: 4px; text-align: left;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: all .18s;
}
.template-card:hover, .template-card.active { border-color: var(--brand); box-shadow: 0 4px 18px rgba(67,56,202,.15); }
.template-card span { font-size: 10px; font-weight: 900; color: var(--brand); text-transform: uppercase; letter-spacing: .07em; }
.template-card strong { font-size: 14px; font-weight: 700; }
.template-card small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.style-controls { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.style-controls label, .resume-form-grid label, .input-panel label { display: grid; gap: 6px; font-weight: 700; font-size: 13px; color: var(--text2); }
.style-controls input, .style-controls select, .resume-form-grid input, .input-panel textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px;
  font: inherit; font-size: 13px; background: var(--bg);
}
.resume-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.input-panel textarea { margin-bottom: 12px; }
.resume-actions, .download-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.ats-score { display: flex; align-items: flex-end; gap: 4px; margin: 8px 0 14px; }
.ats-score strong { font-size: 58px; line-height: 1; font-weight: 900; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ats-score span { font-weight: 800; color: var(--muted); margin-bottom: 7px; }
.ats-suggestions { font-size: 13px; color: var(--text2); line-height: 1.6; }
.ats-suggestions ul { padding-left: 16px; }
.ats-suggestions li { margin: 5px 0; }
.download-grid .btn { min-width: 68px; }
.resume-preview-wrap { padding-top: 16px; }
.resume-preview-shell { background: #cbd5e1; padding: 24px; border-radius: var(--radius); overflow: auto; }
.resume-preview {
  --resume-accent: #4f46e5;
  width: min(900px, 100%);
  min-height: 1120px;
  margin: auto;
  background: #fff;
  color: #111827;
  padding: 44px;
  box-shadow: 0 8px 40px rgba(15,23,42,.18);
  outline: none;
}
.resume-top { display: flex; justify-content: space-between; gap: 24px; border-bottom: 3px solid var(--resume-accent); padding-bottom: 18px; margin-bottom: 18px; }
.resume-top h2 { font-size: 34px; line-height: 1; margin: 0; }
.resume-top p { margin: 8px 0 0; color: var(--resume-accent); font-weight: 800; }
.resume-contact { text-align: right; color: #475569; font-size: 13px; }
.resume-body { display: grid; gap: 14px; }
.resume-section { border: 1px dashed transparent; border-radius: 8px; padding: 6px 8px; }
.resume-section:hover { border-color: #cbd5e1; background: #f8fafc; }
.resume-section.dragging { opacity: .55; }
.resume-section h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #111827; border-bottom: 1px solid #e5e7eb; padding-bottom: 4px; margin: 0 0 8px; }
.resume-section p { margin: 0; }
.resume-section ul { margin: 0; padding-left: 16px; }
.resume-section li { margin: 4px 0; }
.skill-line { font-weight: 700; color: #334155; }
.density-compact { padding: 32px; font-size: 13px; }
.density-compact .resume-body { gap: 8px; }
.density-spacious { padding: 52px; font-size: 16px; }
.density-spacious .resume-body { gap: 22px; }
.template-ats-classic { box-shadow: none; border: 1px solid #d1d5db; }
.template-ats-classic .resume-top { display: block; }
.template-ats-classic .resume-contact { text-align: left; margin-top: 8px; }
.template-tech-modern .resume-top { background: #0f172a; color: #fff; border: 0; margin: -44px -44px 22px; padding: 32px 44px; }
.template-tech-modern .resume-top p, .template-tech-modern .resume-contact { color: #dbeafe; }
.template-consulting .resume-section h3 { color: #6d28d9; }
.template-product .resume-top { border-bottom-color: #0ea5e9; }
.template-fresher .resume-top { border-bottom-style: dashed; }
.template-minimal { padding-top: 56px; }
.template-minimal .resume-top { border-bottom: 1px solid #111; }
.template-creative .resume-top { border-left: 10px solid var(--resume-accent); border-bottom: 0; padding-left: 18px; }
.template-finance .resume-top { border-bottom-color: #065f46; }
.template-finance .resume-section h3 { color: #065f46; }
.template-startup .resume-top { border-bottom: 0; background: #fef3c7; border-radius: 14px; padding: 20px; }
.template-startup .resume-section h3 { border-bottom: 2px solid var(--resume-accent); }

/* ===================================================
   ADMIN SIDEBAR LAYOUT
   =================================================== */
.admin-body { overflow-x: hidden; background: #f1f5f9; }
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 248px;
  min-width: 248px;
  background: #0f172a;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 60;
  transition: transform .25s ease;
  scrollbar-width: thin;
  scrollbar-color: #1e293b transparent;
}
.admin-sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.admin-sidebar-brand img { width: 36px; height: 36px; flex-shrink: 0; }
.admin-sidebar-brand strong { display: block; font-size: 15px; font-weight: 900; color: #f8fafc; letter-spacing: -0.01em; }
.admin-sidebar-brand span { display: block; font-size: 10px; font-weight: 700; color: #475569; text-transform: uppercase; letter-spacing: .08em; margin-top: 1px; }
.admin-sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
}
.sidebar-section-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #334155;
  padding: 14px 12px 4px;
  display: block;
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, color .15s;
  margin-bottom: 2px;
  text-decoration: none;
  cursor: pointer;
}
.sidebar-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.sidebar-item.active { background: rgba(99,102,241,.22); color: #a5b4fc; }
.sidebar-icon { width: 18px; text-align: center; flex-shrink: 0; font-style: normal; }
.admin-sidebar-footer {
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.admin-main {
  flex: 1;
  margin-left: 248px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.admin-topbar {
  position: sticky;
  top: 0; z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  height: 60px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(15,23,42,.04);
  flex-shrink: 0;
}
.admin-sidebar-toggle {
  display: none;
  border: 1.5px solid var(--line);
  background: transparent;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}
.admin-topbar-title { flex: 1; font-weight: 800; font-size: 17px; color: var(--text); }
.admin-topbar-actions { display: flex; align-items: center; gap: 10px; }
.admin-topbar-user { font-size: 14px; font-weight: 700; color: var(--text2); }
.admin-topbar-user span { font-size: 12px; color: var(--muted); font-weight: 500; display: block; }
.admin-content {
  padding: 28px;
  flex: 1;
}

/* Admin Dashboard Stat Cards */
.admin-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.admin-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.admin-stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.admin-stat-card.indigo::before { background: linear-gradient(90deg, #6366f1, #4338ca); }
.admin-stat-card.blue::before   { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.admin-stat-card.emerald::before { background: linear-gradient(90deg, #10b981, #059669); }
.admin-stat-card.amber::before  { background: linear-gradient(90deg, #f59e0b, #d97706); }
.admin-stat-card.rose::before   { background: linear-gradient(90deg, #f43f5e, #e11d48); }
.admin-stat-card.violet::before { background: linear-gradient(90deg, #8b5cf6, #7c3aed); }
.admin-stat-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.admin-stat-card.indigo .admin-stat-icon { background: #eef2ff; }
.admin-stat-card.blue .admin-stat-icon   { background: #e0f2fe; }
.admin-stat-card.emerald .admin-stat-icon { background: #d1fae5; }
.admin-stat-card.amber .admin-stat-icon  { background: #fef3c7; }
.admin-stat-card.rose .admin-stat-icon   { background: #ffe4e6; }
.admin-stat-card.violet .admin-stat-icon { background: #ede9fe; }
.admin-stat-info strong { display: block; font-size: 30px; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 4px; }
.admin-stat-info span { font-size: 13px; color: var(--muted); font-weight: 600; }
.admin-stat-info small { display: block; font-size: 12px; color: #94a3b8; margin-top: 2px; }

/* ===================================================
   USER DASHBOARD LAYOUT
   =================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px - 60px);
}
.user-sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 20px 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}
.user-sidebar-inner { padding: 0 10px; }
.user-sidebar .sidebar-item { color: var(--text2); }
.user-sidebar .sidebar-item:hover { background: var(--bg2); color: var(--text); }
.user-sidebar .sidebar-item.active { background: #eef2ff; color: var(--brand); }
.user-sidebar .sidebar-section-label { color: var(--muted); }
.user-content { background: var(--bg2); padding: 32px; min-height: 100%; }
.user-content section { max-width: 1000px; padding: 0; margin: 0 0 24px; }
.user-content .page-head { padding-top: 0; }
.user-content .page-head h1 { font-size: 30px; }
.user-content .page-head p { font-size: 16px; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1200px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 1100px) {
  .resume-builder-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: repeat(2, 1fr); max-height: none; }
  .ats-panel { order: 3; }
  .resume-preview { min-height: 860px; }
  .feature-split { grid-template-columns: 1fr; }
  .feature-split img { height: 280px; }
}

@media (max-width: 980px) {
  .admin-sidebar { transform: translateX(-248px); }
  .admin-sidebar.is-open { transform: translateX(0); box-shadow: var(--shadow-xl); }
  .admin-main { margin-left: 0; }
  .admin-sidebar-toggle { display: flex; }
  .admin-content { padding: 20px 16px; }
  .support-layout, .ticket-detail { grid-template-columns: 1fr; }
  .support-filters { grid-template-columns: 1fr 1fr; }
  .support-filters input { grid-column: 1/-1; }
  .share-box { grid-template-columns: 1fr; }
  .share-actions { justify-content: flex-start; }
  .analytics-grid { grid-template-columns: 1fr; }
  .usage-filters { grid-template-columns: repeat(3, 1fr); }
  .dashboard-layout { grid-template-columns: 1fr; }
  .user-sidebar { position: static; height: auto; }
  .user-sidebar-inner { display: flex; overflow-x: auto; gap: 4px; padding: 0 12px; }
  .user-sidebar .sidebar-item { white-space: nowrap; border-radius: 999px; padding: 7px 14px; }
  .user-sidebar .sidebar-section-label { display: none; }
  .user-content { padding: 20px 16px; }
}

@media (max-width: 900px) {
  .menu { display: flex; }
  .links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px);
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(15,23,42,.1);
    gap: 2px;
    z-index: 99;
  }
  body.open .links { display: flex; }
  .links a { width: 100%; padding: 10px 14px; }
  .hero, .tool-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 52px; padding-bottom: 52px; }
  .hero h1, .page-head h1 { font-size: clamp(32px, 8vw, 46px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; }
  .steps, .stats, .admin-stats-grid { grid-template-columns: 1fr 1fr; }
  .review-cards { grid-template-columns: 1fr 1fr; }
  .blog-cards.cards { grid-template-columns: 1fr; }
  .review-fab { left: 16px; right: 16px; }
  .section-title { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  section { padding: 48px 16px; }
  .nav { padding: 0 16px; }
  .cards, .steps, .stats, .pricing, .admin-stats-grid, .review-cards { grid-template-columns: 1fr; }
  .credit-packs { grid-template-columns: 1fr !important; }
  .article { padding: 28px 20px; margin: 32px auto; }
  .auth { padding: 28px 20px; margin: 40px 16px; }
  .hero-panel { border-radius: var(--radius-lg); }
  .score { font-size: 80px; }
  .resume-preview-shell { padding: 12px; }
  .resume-preview { padding: 24px; min-height: 740px; }
  .resume-top { display: block; }
  .resume-contact { text-align: left; margin-top: 12px; }
  .template-tech-modern .resume-top { margin: -24px -24px 18px; padding: 24px; }
  .usage-filters { grid-template-columns: 1fr 1fr; }
  .grid.two { grid-template-columns: 1fr; }
  .share-box { padding: 24px 20px; }
}

@media print {
  body > *:not(.resume-studio) { display: none !important; }
  .nav, .footer, .resume-builder-grid, .resume-head, .section-title { display: none !important; }
  .resume-studio, .resume-preview-wrap, .resume-preview-shell { display: block !important; margin: 0 !important; padding: 0 !important; background: #fff !important; }
  .resume-preview { width: 100% !important; min-height: auto !important; box-shadow: none !important; margin: 0 !important; }
  .resume-section { break-inside: avoid; }
}
