@import url('./theme.css');

:root {
  --page: #f7fffb;
  --page-2: #eefdf6;
  --surface: rgba(255, 255, 255, .82);
  --surface-solid: #ffffff;
  --surface-2: #f0faf6;
  --surface-3: #e0f6ed;
  --ink: #071b16;
  --ink-2: #173a32;
  --muted: #5a756d;
  --faint: #86a69b;
  --ink-soft: #5a756d;
  --ink-mute: #86a69b;
  --line: rgba(8, 82, 67, .13);
  --line-strong: rgba(8, 82, 67, .26);
  --emerald-deep: #047857;
  --emerald: #059669;
  --emerald-2: #047857;
  --emerald-glow: rgba(5, 150, 105, .20);
  --orange: #f97316;
  --orange-2: #ea580c;
  --orange-glow: rgba(249, 115, 22, .20);
  --blue: #0ea5e9;
  --sky: #0ea5e9;
  --blue-2: #0284c7;
  --blue-glow: rgba(14, 165, 233, .22);
  --accent: var(--emerald);
  --accent-hover: var(--emerald-2);
  --accent-soft: #d8f7e9;
  --success: var(--emerald);
  --error: #dc2626;
  --warning: var(--orange);
  --shadow: 0 30px 90px rgba(7, 65, 53, .16);
  --shadow-sm: 0 14px 34px rgba(7, 65, 53, .10);
  --shadow-glow: 0 24px 70px rgba(5, 150, 105, .22), 0 0 0 1px rgba(255,255,255,.78) inset;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 10%, rgba(5,150,105,.16), transparent 32rem),
    radial-gradient(circle at 84% 12%, rgba(14,165,233,.18), transparent 30rem),
    radial-gradient(circle at 70% 72%, rgba(249,115,22,.12), transparent 28rem),
    linear-gradient(180deg, var(--page), #ffffff 46%, var(--page-2));
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  font-optical-sizing: auto;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(5,150,105,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.86), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  width: 48rem;
  height: 48rem;
  right: -18rem;
  top: 18rem;
  z-index: -1;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14,165,233,.16), transparent 68%);
  filter: blur(20px);
  animation: orb-drift 18s ease-in-out infinite;
}

body.admin-body {
  background:
    radial-gradient(circle at 20% 20%, rgba(5,150,105,.28), transparent 28rem),
    radial-gradient(circle at 80% 10%, rgba(14,165,233,.24), transparent 26rem),
    #071b16;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
h1, h2, h3, .brand { font-family: var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
h1, h2, h3, p { margin-top: 0; }
p { color: var(--muted); line-height: 1.68; }
.hidden { display: none !important; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 86px 0; position: relative; scroll-margin-top: 94px; }
.section.tight { padding: 52px 0; }
.eyebrow, .kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.eyebrow::before, .kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--orange);
  box-shadow: 0 0 0 6px rgba(249,115,22,.13);
}
.lead { max-width: 720px; color: var(--ink-2); font-size: 19px; line-height: 1.72; }
.section-title { max-width: 790px; font-size: clamp(34px, 5vw, 60px); line-height: .98; margin-bottom: 18px; scroll-margin-top: 94px; }
.section-title em, h1 em {
  color: transparent;
  font-style: normal;
  background: linear-gradient(135deg, var(--emerald), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(18px, 4vw, 54px);
  background: rgba(255, 255, 255, .76);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
  box-shadow: 0 10px 35px rgba(7,65,53,.06);
}
.brand {
  font-size: 28px;
  font-weight: 800;
  color: transparent;
  background: linear-gradient(135deg, var(--emerald), var(--blue) 62%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: var(--muted);
  font-weight: 700;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.mobile-toggle { display: none; margin-left: auto; }

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  overflow: hidden;
  line-height: 1;
  text-decoration: none;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s, border-color .22s, background .22s;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-120%);
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--emerald), var(--blue));
  box-shadow: 0 16px 34px var(--emerald-glow);
}
.btn.primary:hover { background: linear-gradient(135deg, var(--emerald-2), var(--blue-2)); box-shadow: 0 20px 42px var(--blue-glow); }
.btn.secondary, .btn.ghost {
  background: rgba(255,255,255,.78);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.btn.ghost:hover { border-color: rgba(5,150,105,.35); box-shadow: var(--shadow-sm); }
.btn.destructive { background: var(--error); color: white; }
.btn.full { width: 100%; }
.icon-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.80);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
}

.hero {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  padding-top: 32px;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(48px, 7.8vw, 92px);
  line-height: .93;
  margin: 18px 0 20px;
  max-width: 820px;
}
.hero h1::first-letter { color: var(--emerald); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .btn span { display: contents; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; color: var(--ink-2); font-weight: 800; }
.trust span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
}

.badge, .chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(5,150,105,.12), rgba(14,165,233,.11));
  border: 1px solid rgba(5,150,105,.22);
  color: var(--emerald-2);
  font-size: 12px;
  font-weight: 900;
}

.mock-stage {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
  perspective: 1100px;
}
.hero-preview-stage {
  overflow: hidden;
  border-radius: 32px;
}
.hero-preview-shell {
  width: min(520px, 92vw);
  height: min(620px, 78vh);
  position: relative;
  padding: 18px;
  border: 1px solid rgba(7,27,22,.72);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 8%, rgba(14,165,233,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(238,253,246,.72));
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 58px 110px rgba(7,65,53,.22),
    13px 15px 0 rgba(7,27,22,.92);
  transform-style: preserve-3d;
  transform: rotateY(-7deg) rotateX(4deg);
  touch-action: pan-y;
  user-select: none;
}
.hero-preview-track {
  height: 100%;
  display: flex;
  gap: 18px;
  will-change: transform;
}
.hero-preview-track.is-snapping { transition: transform .46s cubic-bezier(.23,1,.32,1); }
.hero-preview-slide {
  flex: 0 0 min(310px, 64vw);
  height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(7,27,22,.72);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 18px 42px rgba(7,65,53,.14),
    7px 8px 0 rgba(7,27,22,.92);
  transition: transform .32s cubic-bezier(.23,1,.32,1), box-shadow .32s ease;
}
.hero-preview-slide:hover {
  transform: translateY(-8px) rotateY(-3deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,.92) inset,
    0 26px 64px rgba(5,150,105,.22),
    10px 12px 0 rgba(7,27,22,.96);
}
.hero-preview-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  pointer-events: none;
}
.hero-preview-slide span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 900;
}
.hero-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(7,27,22,.72);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    5px 6px 0 rgba(7,27,22,.92);
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  transform: translateY(-50%);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.hero-carousel-btn.prev { left: -16px; }
.hero-carousel-btn.next { right: -16px; }
.hero-carousel-btn:hover {
  background: white;
  transform: translateY(calc(-50% - 2px));
  box-shadow:
    0 1px 0 rgba(255,255,255,.92) inset,
    7px 8px 0 rgba(7,27,22,.96);
}
.hero-carousel-btn:active {
  transform: translateY(-50%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    3px 4px 0 rgba(7,27,22,.92);
}
.mock-resume {
  width: min(420px, 88vw);
  aspect-ratio: 210 / 297;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.95), rgba(238,253,246,.82)),
    radial-gradient(circle at 80% 0%, rgba(14,165,233,.18), transparent 36%);
  box-shadow: 0 58px 110px rgba(7,65,53,.24), 0 0 0 1px rgba(5,150,105,.12);
  transform-style: preserve-3d;
  animation: float-3d 6.5s ease-in-out infinite;
}
.mock-resume::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 28px;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(5,150,105,.12), transparent 42%, rgba(249,115,22,.10));
}
.mock-line { height: 9px; margin: 11px 0; border-radius: 999px; background: rgba(8,82,67,.15); }
.mock-line.dark { height: 30px; width: 68%; background: var(--ink); }
.mock-line.accent { width: 42%; background: linear-gradient(90deg, var(--emerald), var(--blue)); }
.mock-grid { display: grid; grid-template-columns: 34% 1fr; gap: 18px; margin-top: 30px; }
.mock-chip {
  position: absolute;
  border: 1px solid rgba(255,255,255,.84);
  border-radius: 16px;
  padding: 13px 15px;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
  font-weight: 900;
  transform: translateZ(60px);
}
.mock-chip.one { left: 0; top: 14%; color: var(--emerald-2); animation: chip-float-a 4.2s ease-in-out infinite; }
.mock-chip.two { right: 0; bottom: 16%; color: var(--orange-2); animation: chip-float-b 4.8s ease-in-out infinite; }

.band {
  position: relative;
  color: white;
  background:
    radial-gradient(circle at 18% 0%, rgba(14,165,233,.24), transparent 30rem),
    radial-gradient(circle at 80% 80%, rgba(249,115,22,.20), transparent 28rem),
    linear-gradient(135deg, #063b2f, #08251f 58%, #0b3441);
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 58px 58px;
}
.band > * { position: relative; z-index: 1; }
.band p, .band .lead { color: rgba(255,255,255,.76); }
.band .eyebrow { color: #9df5ce; }
.band .section-title { color: white; }

.grid { display: grid; gap: 22px; }
.section-head {
  max-width: 820px;
  margin-bottom: 28px;
}
.section-head.split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .7fr);
  gap: 24px;
  align-items: end;
}
.section-head .lead {
  margin-top: 12px;
}
.section-title.small {
  font-size: clamp(28px, 4vw, 46px);
}
.muted {
  color: var(--muted);
}
.category-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.template-grid { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card, .cat-card, .template-card, .admin-card, .stat, .feature-list li {
  border: 1px solid rgba(7, 27, 22, .72);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.85) inset,
    0 18px 44px rgba(7,65,53,.10),
    8px 10px 0 rgba(7, 27, 22, .92);
}

.cat-card, .template-card, .stat, .feature-list li {
  transform-style: preserve-3d;
  transition: transform .32s cubic-bezier(.23,1,.32,1), box-shadow .32s, border-color .32s, background .32s;
}
.cat-card {
  position: relative;
  min-height: 132px;
  padding: 16px;
  overflow: hidden;
}
.cat-card::before, .template-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 48%),
    radial-gradient(circle at 100% 100%, rgba(249,115,22,.13), transparent 44%);
  transition: opacity .3s ease;
}
.cat-card:hover, .template-card:hover, .stat:hover, .feature-list li:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-1deg);
  border-color: rgba(7, 27, 22, .92);
  box-shadow:
    0 1px 0 rgba(255,255,255,.88) inset,
    0 18px 46px rgba(5,150,105,.16),
    7px 8px 0 rgba(7, 27, 22, .96);
}
.cat-card:hover::before, .template-card:hover::before { opacity: 1; }
.cat-card i {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  transition: transform .3s ease;
}
.cat-card:hover i { transform: translateZ(18px) scale(1.04) rotate(-3deg); }
.cat-card strong { position: relative; z-index: 1; display: block; margin: 12px 0 6px; font-size: 17px; }
.cat-card p { position: relative; z-index: 1; font-size: 12px; line-height: 1.45; margin: 0; transition: color .22s ease; }
.cat-card:hover strong { color: var(--emerald-2); }
.cat-card:hover p { color: var(--ink); }

.template-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: rgba(255,255,255,.88);
}
.template-thumb {
  position: relative;
  aspect-ratio: 210 / 260;
  overflow: hidden;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 8%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 38%),
    linear-gradient(135deg, #ffffff, #eefdf6);
}
.template-preview-img {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: white;
}
.template-thumb::before {
  content: "";
  display: block;
  width: 58%;
  height: 17px;
  margin-bottom: 11px;
  border-radius: 999px;
  background: var(--ink);
}
.template-thumb::after {
  content: "";
  display: block;
  width: 40%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--emerald), var(--blue));
  box-shadow:
    0 30px 0 rgba(8,82,67,.15),
    0 48px 0 rgba(8,82,67,.13),
    0 66px 0 rgba(8,82,67,.12),
    0 106px 0 rgba(249,115,22,.35),
    0 124px 0 rgba(8,82,67,.12),
    0 142px 0 rgba(14,165,233,.24),
    0 186px 0 rgba(8,82,67,.13),
    0 204px 0 rgba(8,82,67,.12),
    0 222px 0 rgba(5,150,105,.22);
}
.card-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin: 16px 16px 8px; }
.stars { color: var(--orange); font-size: 12px; white-space: nowrap; }
.template-card h3 { font-size: 21px; line-height: 1.1; margin: 8px 16px; transition: color .22s ease; }
.template-card p { min-height: 66px; font-size: 14px; line-height: 1.45; margin: 0 16px 14px; transition: color .22s ease; }
.template-card:hover h3 { color: var(--emerald-2); }
.template-card:hover p { color: var(--ink); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 16px 16px; }

.ad {
  display: grid;
  place-items: center;
  min-height: 76px;
  color: var(--muted);
  border: 1px dashed rgba(5,150,105,.32);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.70), rgba(240,250,246,.62)),
    radial-gradient(circle at 90% 0%, var(--blue-glow), transparent 32%);
}
.ad.sidebar { min-height: 250px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { padding: 30px 24px; background: rgba(255,255,255,.92); }
.stat strong {
  display: block;
  color: transparent;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.02em;
  padding: 2px 0 4px;
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(135deg, var(--emerald), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
}
.stat p { color: var(--muted); transition: color .22s ease; word-break: break-word; overflow-wrap: anywhere; }
.stat:hover p { color: var(--ink); }
.band .stat {
  border-color: rgba(7, 27, 22, .92);
  background: rgba(255,255,255,.88);
}
.band .stat p { color: var(--ink-2); }
.band .stat:hover {
  background: linear-gradient(135deg, #ffffff, #e8fff5);
}
.band .stat:hover p { color: var(--emerald-2); }
.band .stat:hover strong {
  background: linear-gradient(135deg, var(--orange), var(--emerald));
  -webkit-background-clip: text;
  background-clip: text;
}

.filter-bar {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: rgba(255,255,255,.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  padding: 10px 0;
}
.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  overflow: visible;
}
.filter-cats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.primary-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.more-filters {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  z-index: 80;
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid rgba(5,150,105,.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(245,252,249,.97));
  box-shadow: 0 24px 60px rgba(6,42,35,.18), 0 4px 12px rgba(6,42,35,.06), inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(1.4);
  transform-origin: top left;
  animation: filter-panel-in .22s cubic-bezier(.16,1,.3,1) both;
}
.more-filters[hidden] { display: none; }
.filter-group {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 10px 8px;
  border-radius: 12px;
  border-top: 1px solid rgba(6,42,35,.06);
  transition: background .2s ease;
}
.filter-group:hover {
  background: rgba(5,150,105,.04);
}
.filter-group:first-child {
  border-top: 0;
}
.filter-group > span {
  color: var(--emerald-2);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding-top: 8px;
}
.filter-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.filter-btn {
  flex: 0 0 auto;
  min-height: 32px;
  min-width: max-content;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.9);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.filter-btn:hover {
  border-color: rgba(5,150,105,.5);
  background: rgba(236,253,245,.95);
  color: var(--emerald-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5,150,105,.14);
}
.filter-btn.active { color: white; background: var(--emerald); border-color: var(--emerald); box-shadow: 0 4px 12px rgba(5,150,105,.3); }
.filter-more-btn {
  flex: 0 0 auto;
  width: max-content;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .12s ease;
}
.filter-more-btn:hover {
  border-color: rgba(5,150,105,.5);
  background: rgba(236,253,245,.95);
  transform: translateY(-1px);
}
.filter-more-btn[aria-expanded="true"] {
  background: var(--emerald);
  border-color: var(--emerald);
  color: white;
}
.sort-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 220px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  box-shadow: none;
  font-weight: 900;
}
.sort-pill span {
  color: var(--emerald-2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.sort-pill select {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  appearance: auto;
}
.sort-pill:hover {
  border-color: rgba(5,150,105,.42);
  background: rgba(255,255,255,.96);
}
.search-input, .admin-input, .field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.84);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
}
.search-input:focus, .admin-input:focus, .field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(5,150,105,.44);
  box-shadow: 0 0 0 4px rgba(5,150,105,.10);
}
.search-input { min-width: 0; }
.filter-search { grid-column: 1 / -1; min-height: 36px; padding: 8px 12px; }
.filter-row select.search-input { width: 100%; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr); gap: 42px; align-items: start; }
.preview-frame { position: sticky; top: 96px; display: grid; gap: 18px; perspective: 1000px; }
.resume-iframe {
  width: 100%;
  aspect-ratio: 210 / 297;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow);
  transform: rotateX(1deg) rotateY(-2deg);
}
.feature-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.feature-list li { padding: 13px 15px; }

.narrow { max-width: 840px; }
/* ═══ BLOG SYSTEM — PREMIUM UNIFIED ═══ */
.blog-hero {
  padding-bottom: 0;
  padding-top: clamp(40px,6vw,64px);
}
.blog-hero .wrap { max-width: 900px; }
.blog-hero h1.section-title {
  max-width: 22ch;
  font-size: clamp(1.9rem,4.2vw,3.2rem);
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-top: 14px;
}
.blog-hero .lead {
  max-width: 68ch;
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 16px;
}
/* Hero cover wrapper */
.blog-cover,
.blog-hero .svg-glass-wrapper,
.blog-hero .hero-svg-wrap,
.blog-hero .resumenest-visual-block {
  width: min(100%, 860px);
  margin: 30px auto 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(7,27,22,.1);
  box-shadow: 0 8px 28px rgba(7,27,22,.07),0 2px 6px rgba(7,27,22,.04);
  background: linear-gradient(148deg,#eef9f4 0%,#e8f4ff 50%,#f3eeff 100%);
  transition: box-shadow .3s ease, transform .3s ease;
}
.blog-hero .svg-glass-wrapper:hover,
.blog-hero .resumenest-visual-block:hover {
  box-shadow: 0 16px 40px rgba(7,27,22,.11),0 4px 12px rgba(7,27,22,.06);
  transform: translateY(-2px);
}
.blog-hero .resumenest-inline-svg,
.blog-hero .svg-glass-wrapper svg,
.blog-cover {
  width: 100%; height: auto; display: block;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 24px;
  align-items: stretch;
}
.blog-featured-section { padding-top: 52px; }
.category-blog-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}
.category-blog-card img {
  background: #eef8f3;
}
.category-blog-card .chip {
  font-size: 11px;
}
.blog-card {
  position: relative;
  border: 1px solid rgba(7, 27, 22, .26);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: 8px 9px 0 rgba(7,27,22,.92), var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
  height: 575px;
  display: flex;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.blog-card:hover {
  transform: translateY(-5px) rotate(-.2deg);
  border-color: rgba(5,150,105,.54);
  box-shadow: 11px 12px 0 rgba(7,27,22,.92), var(--shadow);
}
.blog-card a {
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  padding-bottom: 20px;
  min-width: 0;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.blog-card img {
  width: 100%;
  object-fit: contain;
  display: block;
  background: transparent;
}
.blog-card-media {
  width: 100%;
  height: 225px;
  min-height: 225px;
  max-height: 225px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(224,246,237,.92), rgba(239,250,246,.9) 48%, rgba(230,245,255,.84));
  border-bottom: 1px solid rgba(7,27,22,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.blog-card-media svg,
.blog-card-media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: 0;
}
.blog-card-media svg {
  object-fit: fill;
  filter: drop-shadow(0 12px 22px rgba(7,27,22,.10));
}
.blog-card-media svg.blog-card-wide-svg {
  width: 100%;
  height: 100%;
}
.blog-card-media img { object-fit: fill; }
.blog-card .chip {
  margin: 0 18px;
  justify-self: start;
  max-width: calc(100% - 36px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.blog-card h2 {
  margin: 0 18px;
  max-width: calc(100% - 36px);
  font-size: 21px;
  line-height: 1.16;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card p {
  margin: 0 18px;
  max-width: calc(100% - 36px);
  font-size: 15px;
  line-height: 1.56;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
}
.pagination a,
.pagination-current {
  min-width: 42px;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(7,27,22,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(7,27,22,.06);
  transition: all .22s cubic-bezier(.2,.8,.2,1);
}
.pagination a:hover {
  transform: translateY(-2px);
  border-color: rgba(16,185,129,.4);
  box-shadow: 0 6px 18px rgba(16,185,129,.18);
}
.pagination-current {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

/* ── Blog article body ── */
.blog-article {
  padding-top: 40px;
  padding-bottom: clamp(48px,7vw,80px);
}
.blog-article .wrap.narrow {
  position: relative;
  max-width: 860px;
  padding: clamp(28px,4vw,48px) clamp(22px,4vw,52px);
  border: 1px solid rgba(7,27,22,.1);
  border-radius: 24px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 2px 8px rgba(7,27,22,.05),0 12px 36px rgba(7,27,22,.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.blog-article .wrap.narrow::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg,var(--emerald,#10b981),var(--sky,#38bdf8),var(--purple,#8b5cf6));
  opacity: .5;
}
.blog-article h2 {
  margin-top: 40px;
  margin-bottom: 14px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: clamp(1.3rem,2.8vw,1.75rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
}
.blog-article h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.blog-article p {
  font-size: 1.04rem;
  line-height: 1.78;
  color: var(--ink-2, #374151);
  margin-bottom: 18px;
}
.blog-article ul, .blog-article ol { padding-left: 1.5em; margin-bottom: 18px; }
.blog-article li { font-size: 1.02rem; line-height: 1.72; margin-bottom: 8px; color: var(--ink-2,#374151); }

/* Inline SVG wrappers in article & hero - No crop, fit perfectly */
.blog-article .svg-glass-wrapper,
.blog-hero .svg-glass-wrapper,
.blog-hero .hero-svg-wrap,
.blog-hero .resumenest-visual-block {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(16,185,129,.06);
  border: 1px solid rgba(16,185,129,.16);
  box-shadow: 0 4px 14px rgba(7,27,22,.05);
  margin: 26px 0;
  padding: 8px;
  box-sizing: border-box;
}
.blog-article .svg-glass-wrapper svg,
.blog-hero .svg-glass-wrapper svg,
.blog-hero .hero-svg-wrap svg,
.blog-hero .resumenest-inline-svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  overflow: visible;
}

/* Key takeaways */
.key-takeaways {
  background: linear-gradient(148deg,rgba(16,185,129,.09),rgba(56,189,248,.06));
  border: 1.5px solid rgba(16,185,129,.2);
  border-radius: 18px;
  padding: 26px 30px;
  margin: 34px 0;
}
.key-takeaways h2 { margin-top: 0 !important; font-size: 1.15rem !important; }
.key-takeaways ul { margin: 0; padding-left: 1.3em; }
.key-takeaways li { margin: 9px 0; line-height: 1.65; }

/* ── Collapsible Accordion FAQ Items (Framed Container) ── */
.faq-block {
  margin-top: 42px;
  margin-bottom: 24px;
  padding: 28px 28px 16px;
  border: 1.5px solid rgba(16,185,129,.22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(244,249,246,.85));
  box-shadow: 0 4px 20px rgba(7,27,22,.04);
}
.faq-block h2 {
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 1.32rem !important;
  font-weight: 700 !important;
  color: var(--ink, #0a1a16) !important;
}

details.faq-item {
  border: 1px solid rgba(10,26,22,.09);
  border-radius: 14px;
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
details.faq-item[open] {
  border-color: rgba(16,185,129,.35);
  box-shadow: 0 6px 20px rgba(16,185,129,.08);
  background: #fbfdfc;
}
summary.faq-summary {
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  font-family: 'Space Grotesk', Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink, #0a1a16);
  transition: color .2s ease;
}
summary.faq-summary::-webkit-details-marker { display: none; }
summary.faq-summary:hover {
  color: var(--emerald-deep, #059669);
}
summary.faq-summary h3 {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 10px;
}
summary.faq-summary h3::before {
  content: "Q";
  display: inline-grid; place-items: center;
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--emerald, #10b981), var(--sky, #38bdf8));
  color: #fff; font-size: .72rem; font-weight: 900;
}
/* Accordion chevron arrow icon */
.faq-chevron {
  width: 22px; height: 22px; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  background: rgba(16,185,129,.1);
  color: var(--emerald-deep, #059669);
  transition: transform .3s cubic-bezier(.22,.85,.26,1), background .3s ease;
}
details.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: var(--emerald, #10b981);
  color: #ffffff;
}
.faq-answer {
  padding: 0 20px 18px 54px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2, #374151);
  animation: faqFadeIn .32s ease;
}
@keyframes faqFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Fallback for classic div.faq-item if JavaScript accordion toggle is used */
div.faq-item {
  border: 1px solid rgba(10,26,22,.09);
  border-radius: 14px;
  margin-bottom: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color .28s ease, box-shadow .28s ease;
}
div.faq-item.is-open {
  border-color: rgba(16,185,129,.35);
  box-shadow: 0 6px 20px rgba(16,185,129,.08);
  background: #fbfdfc;
}
div.faq-item h3 {
  padding: 16px 20px;
  margin: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink,#0a1a16);
}
div.faq-item p {
  padding: 0 20px 18px 54px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-2,#374151);
}

/* CTA block */
.blog-cta {
  margin-top: 44px;
  padding: 28px 32px;
  border: 1.5px solid rgba(16,185,129,.2);
  border-radius: 20px;
  background: linear-gradient(145deg,rgba(16,185,129,.09),rgba(56,189,248,.06) 60%,rgba(139,92,246,.04));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.blog-cta p { margin: 0; font-size: 1.02rem; line-height: 1.66; font-weight: 500; }
.blog-cta a.btn { align-self: flex-start; }

.builder-shell { min-height: 100vh; background: linear-gradient(135deg, var(--page), var(--surface-3)); }

/* ── Hide footer completely on all builder pages ── */
body.builder-page footer,
body.builder-page footer.footer,
.builder-shell ~ footer,
.builder-shell ~ footer.footer,
footer.footer:has(~ script[src*="builder"]),
main.builder-layout ~ footer,
.builder-shell + footer {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 70px;
  z-index: 60;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(7, 27, 22, .92);
  color: white;
  backdrop-filter: blur(18px);
}
.topbar .brand { color: transparent; font-size: 24px; }
.topbar-spacer { flex: 1; }
.builder-layout { height: calc(100vh - 134px); display: grid; grid-template-columns: 360px minmax(420px, 1fr) 300px; }
.builder-panel, .builder-tools { overflow: auto; background: rgba(255,255,255,.80); padding: 18px; border-color: var(--line); backdrop-filter: blur(18px); }
.builder-panel { border-right: 1px solid var(--line); }
.builder-tools { border-left: 1px solid var(--line); }
.builder-preview { overflow: auto; padding: 32px; display: grid; justify-items: center; align-content: start; perspective: 1100px; }
#cv-preview-wrapper { transform-origin: top center; filter: drop-shadow(0 34px 64px rgba(7,65,53,.22)); }
#cv-preview-inner { transform-origin: top left; width: 794px; min-height: 1123px; }
.builder-resume-frame {
  width: 794px;
  min-height: 1123px;
  height: 1123px;
  border: 0;
  display: block;
  background: white;
}
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label, label.field { font-weight: 800; font-size: 13px; }
.field textarea { min-height: 84px; resize: vertical; }
.accordion-title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.66);
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
  margin-top: 12px;
  cursor: pointer;
}
.accordion-body { padding-top: 12px; }
.item-box { border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin: 12px 0; background: rgba(240,250,246,.78); }
.score-ring { width: 118px; height: 118px; border-radius: 999px; display: grid; place-items: center; background: conic-gradient(var(--emerald) calc(var(--score) * 1%), var(--line) 0); margin: 18px auto; }
.score-ring span { width: 88px; height: 88px; border-radius: 999px; background: white; display: grid; place-items: center; font-weight: 900; }
.zoom-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: min(400px, 100%);
  padding: 30px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(0,0,0,.24);
  backdrop-filter: blur(22px);
}
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); background: var(--page); }
.admin-side {
  background: linear-gradient(180deg, #071b16, #0b3a31);
  color: white;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.admin-side .brand { margin-bottom: 18px; }
.admin-main { padding: 30px; overflow: auto; }
.side-btn {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: rgba(255,255,255,.72);
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.side-btn.active, .side-btn:hover { border-left-color: var(--orange); background: rgba(255,255,255,.10); color: white; }
.admin-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.admin-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.84); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th, .admin-table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.admin-table th { background: rgba(224,246,237,.74); color: var(--muted); font-size: 12px; text-transform: uppercase; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(7,27,22,.62); display: grid; place-items: start center; padding: 42px 18px; z-index: 90; overflow: auto; }
.modal-card { background: white; border-radius: 22px; width: min(980px, 100%); box-shadow: var(--shadow); padding: 22px; }
.toast { position: fixed; right: 22px; bottom: 22px; background: linear-gradient(135deg, var(--emerald), var(--blue)); color: white; padding: 12px 16px; border-radius: 999px; font-weight: 800; box-shadow: var(--shadow); }
.drag-list { display: grid; gap: 8px; }
.drag-item { background: rgba(240,250,246,.9); border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: grab; }

.footer {
  background:
    radial-gradient(circle at 80% 0%, rgba(14,165,233,.22), transparent 28rem),
    linear-gradient(135deg, #071b16, #0b3a31);
  color: rgba(255,255,255,.72);
  padding: 58px clamp(18px, 5vw, 72px);
}
.footer-grid { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer strong { color: white; display: block; margin-bottom: 10px; }
.footer a { display: table; width: auto; color: rgba(255,255,255,.72); margin: 8px 0; }
.footer a:hover { color: white; }
.footer .brand { font-size: 28px; }

.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 42px;
}
.page-btn {
  min-width: 44px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(7, 27, 22, .35);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 7px 0 rgba(7, 27, 22, .88);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.page-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 0 rgba(7, 27, 22, .92);
}
.page-btn.active {
  color: white;
  border-color: transparent;
  background: linear-gradient(135deg, var(--emerald), var(--blue));
}
.page-ellipsis {
  display: inline-grid;
  min-width: 34px;
  min-height: 42px;
  place-items: center;
  color: rgba(7, 27, 22, .62);
  font-weight: 900;
  letter-spacing: 0;
}

.legal-content {
  max-width: 920px;
}
.legal-grid {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}
.legal-card {
  border: 1px solid rgba(7, 27, 22, .72);
  border-radius: var(--radius);
  background: rgba(255,255,255,.86);
  padding: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.88) inset,
    0 18px 44px rgba(7,65,53,.10),
    8px 10px 0 rgba(7, 27, 22, .92);
}
.legal-card h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
}
.legal-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}
.legal-card li + li { margin-top: 8px; }

.manager-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
}
.manager-toolbar.compact { margin: 10px 0 0; }
.simple-manager-grid {
  grid-template-columns: minmax(300px, .8fr) minmax(320px, 1fr) minmax(280px, .9fr);
}
.picked-file {
  display: grid;
  gap: 5px;
  min-height: 74px;
  margin: 14px 0 24px;
  padding: 15px;
  border: 1px dashed rgba(5,150,105,.42);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  align-content: center;
}
.picked-file strong {
  color: var(--ink);
  font-size: 18px;
}
.picked-file span {
  font-size: 13px;
}
.simple-label {
  display: grid;
  gap: 8px;
  margin: 0 0 24px;
  color: var(--ink);
  font-weight: 800;
}
.simple-label select {
  width: 100%;
  border: 1px solid rgba(6,42,35,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
}
.manager-status {
  padding: 14px 18px;
  border: 1px solid rgba(5, 150, 105, .24);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: var(--muted);
  box-shadow: 0 12px 0 var(--ink);
}
.manager-grid {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.35fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 28px;
}
.manager-panel {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(6,42,35,.16);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 10px 12px 0 var(--ink), 0 30px 80px rgba(6,42,35,.12);
}
.manager-panel h2 { margin: 0 0 16px; font-size: 18px; }
.manager-list {
  display: grid;
  gap: 10px;
  max-height: 760px;
  overflow: auto;
  padding-right: 6px;
}
.manager-list button {
  border: 1px solid rgba(6,42,35,.14);
  border-radius: 14px;
  background: rgba(248,252,250,.9);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 12px;
  text-align: left;
}
.manager-list button span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.manager-list button.selected,
.manager-list button:hover {
  border-color: rgba(5,150,105,.45);
  box-shadow: 5px 6px 0 var(--ink);
  transform: translateY(-2px);
}
.manager-form { display: grid; gap: 14px; }
.manager-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
  font-size: 13px;
}
.manager-form input,
.manager-form select,
.manager-form textarea {
  width: 100%;
  border: 1px solid rgba(6,42,35,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.88);
  color: var(--ink);
  font: inherit;
  padding: 12px 14px;
  outline: none;
}
.manager-form textarea { min-height: 92px; resize: vertical; }
.manager-form input:focus,
.manager-form select:focus,
.manager-form textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5,150,105,.14);
}
.manager-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.manager-row:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.manager-checks { display: flex; flex-wrap: wrap; gap: 16px; }
.manager-checks label { display: flex; align-items: center; gap: 8px; }
.manager-checks input { width: auto; }
.manager-card { max-width: 100%; }
.json-output {
  max-height: 360px;
  overflow: auto;
  border: 1px solid rgba(6,42,35,.16);
  border-radius: 16px;
  background: #062a23;
  color: #d7fff1;
  padding: 14px;
  font-size: 12px;
  line-height: 1.55;
}
.danger-lite { border-color: rgba(249,115,22,.32); color: #9a3412; }

.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.tilt-card { will-change: transform; }

.flex { display: flex; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.gap-2 { gap: 8px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.w-full { width: 100%; }
.max-w-sm { max-width: 380px; }
.max-w-xs { max-width: 260px; }
.space-y-2 > * + * { margin-top: 8px; }
.text-muted { color: var(--muted); }

.more-filters:not([hidden]) .filter-btn {
  animation: filter-btn-in .3s ease both;
}
.more-filters:not([hidden]) .filter-btn:nth-child(1) { animation-delay: .02s; }
.more-filters:not([hidden]) .filter-btn:nth-child(2) { animation-delay: .04s; }
.more-filters:not([hidden]) .filter-btn:nth-child(3) { animation-delay: .06s; }
.more-filters:not([hidden]) .filter-btn:nth-child(4) { animation-delay: .08s; }
.more-filters:not([hidden]) .filter-btn:nth-child(5) { animation-delay: .10s; }
.more-filters:not([hidden]) .filter-btn:nth-child(6) { animation-delay: .12s; }
.more-filters:not([hidden]) .filter-btn:nth-child(7) { animation-delay: .14s; }
.more-filters:not([hidden]) .filter-btn:nth-child(8) { animation-delay: .16s; }
.more-filters:not([hidden]) .filter-group {
  animation: filter-group-in .35s ease both;
}
.more-filters:not([hidden]) .filter-group:nth-child(1) { animation-delay: 0s; }
.more-filters:not([hidden]) .filter-group:nth-child(2) { animation-delay: .06s; }
.more-filters:not([hidden]) .filter-group:nth-child(3) { animation-delay: .12s; }
.more-filters:not([hidden]) .filter-group:nth-child(4) { animation-delay: .18s; }
.more-filters:not([hidden]) .filter-group:nth-child(5) { animation-delay: .24s; }

@keyframes filter-group-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes filter-btn-in {
  from { opacity: 0; transform: scale(.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float-3d {
  0%, 100% { transform: rotateY(-9deg) rotateX(4deg) translateY(0); }
  50% { transform: rotateY(-4deg) rotateX(2deg) translateY(-18px); }
}
@keyframes chip-float-a {
  0%,100% { transform: translateZ(60px) translateY(0); }
  50% { transform: translateZ(60px) translateY(-10px); }
}
@keyframes chip-float-b {
  0%,100% { transform: translateZ(60px) translateY(0); }
  50% { transform: translateZ(60px) translateY(10px); }
}
@keyframes orb-drift {
  0%,100% { transform: translate3d(0,0,0); }
  33% { transform: translate3d(-38px,22px,0); }
  66% { transform: translate3d(22px,-30px,0); }
}
@keyframes filter-panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .fade-up { opacity: 1; transform: none; }
  .hero-preview-track.is-snapping { transition: none; }
}

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* --- Tablet / Small Desktop ≤ 1180px --- */
@media (max-width: 1180px) {
  .manager-grid { grid-template-columns: 1fr; }
  .simple-manager-grid { grid-template-columns: 1fr; }
  .filter-row { align-items: stretch; }
  .filter-cats { min-width: 0; }
  .primary-filters { width: 100%; }
  .filter-btn { flex: 0 0 auto; }
  .sort-pill { width: 220px; }
  .builder-layout { grid-template-columns: 330px minmax(360px, 1fr); }
  .builder-tools { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }

  /* Hero grid: keep 2-col but relax the minimum */
  .hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: clamp(24px, 4vw, 48px);
  }

  /* Stats strip: go 2-col on smaller desktops */
  .stats-strip { grid-template-columns: repeat(2, 1fr); }

  /* Detail layout: relax min widths */
  .detail-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); gap: 28px; }
}

/* --- Tablet / Mobile ≤ 820px --- */
@media (max-width: 820px) {
  /* Manager rows */
  .manager-row,
  .manager-row:has(> :nth-child(3)) { grid-template-columns: 1fr; }

  /* Header: mobile hamburger menu */
  .site-header { min-height: 58px; }
  .main-nav, .header-actions { display: none; }
  .site-header.menu-open {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 14px;
  }
  .site-header.menu-open .main-nav,
  .site-header.menu-open .header-actions {
    display: grid;
    width: 100%;
  }
  .site-header.menu-open .main-nav {
    order: 3;
    gap: 4px;
  }
  .site-header.menu-open .main-nav a {
    padding: 12px 4px;
    border-top: 1px solid var(--line);
  }
  .site-header.menu-open .header-actions {
    order: 4;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .site-header.menu-open .header-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .mobile-toggle { display: grid; }

  /* Hero: single column */
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 48px 0; }
  .hero h1 {
    max-width: 100%;
    font-size: clamp(32px, 8vw, 48px);
    line-height: 1.05;
  }

  /* Grid layouts: single column */
  .detail-layout,
  .grid-2 { grid-template-columns: 1fr; }
  .section-head.split { grid-template-columns: 1fr; align-items: start; }

  /* Mock stage / hero preview */
  .mock-stage { min-height: 420px; }
  .hero-preview-shell {
    width: min(100%, 430px);
    height: 480px;
    transform: none;
  }
  .hero-carousel-btn.prev { left: 8px; }
  .hero-carousel-btn.next { right: 8px; }
  .hero-preview-slide { flex-basis: min(260px, 68vw); }

  /* Stats strip: single column */
  .stats-strip { grid-template-columns: repeat(2, 1fr); }

  /* Footer grid: stack columns */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  /* Section spacing */
  .section { padding: 52px 0; }
  .section.tight { padding: 36px 0; }

  /* Filter bar */
  .filter-bar { top: 58px; }
  .filter-row { grid-template-columns: 1fr; }
  .sort-pill { width: min(100%, 220px); }
  .more-filters {
    width: 100%;
    max-height: min(70vh, 520px);
    overflow: auto;
  }
  .filter-group { grid-template-columns: 1fr; gap: 6px; }
  .filter-group > span { padding-top: 0; }

  /* Builder & Admin: single column */
  .builder-layout,
  .admin-layout { height: auto; grid-template-columns: 1fr; }
  .builder-panel,
  .builder-tools { border: 0; border-top: 1px solid var(--line); }
  .builder-preview { padding: 18px; }
  #cv-preview-inner { width: 100%; min-height: auto; }
  .builder-resume-frame { width: 100%; height: auto; min-height: 600px; }

  /* Topbar: wrap items */
  .topbar {
    top: 58px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px;
  }
  .topbar .brand { font-size: 18px; }
  .topbar select { max-width: 160px; font-size: 13px; }

  /* Resume iframe */
  .resume-iframe { transform: none; }

  /* Preview frame: unstick */
  .preview-frame { position: static; }

  /* Blog cards: flexible height */
  .blog-card { height: auto; min-height: 0; }
  .blog-card a { grid-template-rows: auto auto auto auto; }

  /* Blog article: reduce padding */
  .blog-article .wrap.narrow { padding: 24px 20px; }

  /* Lead text size */
  .lead { font-size: 16px; line-height: 1.65; }

  /* Category grid: 2 columns minimum */
  .category-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

  /* Template grid: 2 columns */
  .template-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

  /* Admin sidebar: hide & stack */
  .admin-side { padding: 14px; }

  /* Simple manager grid */
  .simple-manager-grid { grid-template-columns: 1fr; }

  /* Hero actions: stack buttons on narrow */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* --- Small Mobile ≤ 640px --- */
@media (max-width: 640px) {
  /* Footer: fully stacked */
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid > div:first-child { grid-column: 1; }

  /* Stats: fully stacked */
  .stats-strip { grid-template-columns: 1fr; }

  /* Hero preview */
  .mock-stage { min-height: 380px; }
  .hero-preview-shell {
    width: 100%;
    height: 440px;
    border-radius: 20px;
  }
  .hero-preview-slide { flex-basis: min(240px, 70vw); }

  /* Category grid: tighter */
  .category-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .cat-card { min-height: 110px; padding: 12px; }
  .cat-card strong { font-size: 15px; margin: 8px 0 4px; }

  /* Template card text */
  .template-card h3 { font-size: 18px; margin: 6px 12px; }
  .template-card p { font-size: 13px; margin: 0 12px 12px; min-height: auto; }
  .card-meta { margin: 12px 12px 6px; }
  .card-actions { margin: 0 12px 12px; }

  /* Section title: smaller */
  .section-title { font-size: clamp(26px, 6vw, 38px); margin-bottom: 14px; }

  /* Topbar: compact */
  .topbar .btn { font-size: 12px; padding: 0 10px; min-height: 36px; }
  .topbar select { max-width: 120px; }

  /* Blog card media: shorter */
  .blog-card-media { height: 180px; min-height: 180px; max-height: 180px; }
  .blog-card h2 { font-size: 18px; }

  /* Blog article */
  .blog-article .wrap.narrow { padding: 18px 14px; border-radius: 14px; }
  .blog-article h2 { font-size: 24px; }
  .blog-article p { font-size: 16px; }

  /* Pagination */
  .pagination a,
  .pagination-current,
  .page-btn { min-width: 38px; min-height: 38px; padding: 0 10px; font-size: 13px; }

  /* Legal cards */
  .legal-card { padding: 18px; }
  .legal-card h2 { font-size: clamp(20px, 5vw, 26px) !important; }

  /* Hero trust chips: wrap nicely */
  .trust { gap: 8px; }
  .trust span, .chip { font-size: 11px; padding: 5px 9px; }

  /* Hero stats strip inline */
  .hero__stats { gap: 20px; }
}

/* --- Very Small Mobile ≤ 480px --- */
@media (max-width: 480px) {
  /* Wrap width: tighter margins */
  .wrap { width: calc(100% - 24px); }

  /* Hero: compact */
  .hero { padding: 32px 0; }
  .hero h1 {
    font-size: clamp(28px, 8vw, 36px);
    line-height: 1.08;
    max-width: 100%;
  }
  .lead { font-size: 15px; }

  /* Mock stage: minimal */
  .mock-stage { min-height: 320px; }
  .hero-preview-shell { height: 380px; border-radius: 16px; padding: 12px; }
  .hero-preview-slide { flex-basis: min(200px, 65vw); }
  .mock-chip { font-size: 12px; padding: 8px 10px; }

  /* Category grid: single column */
  .category-grid { grid-template-columns: 1fr; }
  .template-grid { grid-template-columns: 1fr; }

  /* Section */
  .section { padding: 38px 0; }
  .section.tight { padding: 28px 0; }
  .section-title { font-size: clamp(24px, 7vw, 32px); }
  .eyebrow, .kicker { font-size: 11px; }

  /* Buttons: full width */
  .btn { font-size: 14px; min-height: 40px; }

  /* Header */
  .site-header { padding: 0 12px; min-height: 52px; }
  .site-header .logo__text { font-size: 0.95rem; }

  /* Topbar: very compact */
  .topbar { padding: 6px 10px; gap: 6px; }
  .topbar .brand { font-size: 16px; }
  .topbar select { max-width: 100px; font-size: 12px; }
  .topbar .btn { font-size: 11px; padding: 0 8px; min-height: 32px; }

  /* Footer */
  .footer { padding: 38px clamp(12px, 4vw, 48px) !important; }

  /* Blog grid */
  .blog-grid { grid-template-columns: 1fr; }

  /* Blog card */
  .blog-card-media { height: 160px; min-height: 160px; max-height: 160px; padding: 6px; }
  .blog-card h2 { font-size: 17px; margin: 0 14px; }
  .blog-card p { font-size: 14px; margin: 0 14px; }
  .blog-card .chip { margin: 0 14px; }

  /* Builder preview */
  .builder-preview { padding: 10px; }

  /* Modal */
  .modal-card { width: calc(100% - 20px); padding: 16px; border-radius: 16px; }
  .modal-backdrop { padding: 20px 10px; }

  /* Admin */
  .admin-side { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-main { padding: 16px; }

  /* Login card */
  .login-card { padding: 22px; }

  /* Stats */
  .stat { padding: 18px; }
  .stat strong { font-size: 28px; }

  /* Ads: hide on very small */
  .ad { min-height: 50px; font-size: 12px; }

  /* Hero actions: compact */
  .hero-actions { gap: 8px; }

  /* Badge: compact */

  /* Badge: compact */
  .badge { font-size: 11px; padding: 4px 8px; }
}

/* ═══════════════════════════════════════════════════════════
 * Search Overlay Modal
 * ═══════════════════════════════════════════════════════════ */

/* Search trigger button in header */
.search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(7,27,22,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  color: var(--ink-soft, #555);
  cursor: pointer;
  transition: all .25s ease;
  backdrop-filter: blur(8px);
  margin-left: 8px;
}
.search-trigger:hover {
  background: rgba(16,185,129,.08);
  border-color: rgba(16,185,129,.35);
  color: var(--emerald, #10b981);
  box-shadow: 0 4px 16px rgba(16,185,129,.12);
}
.search-trigger svg { pointer-events: none; }

/* Overlay backdrop + container */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: min(18vh, 140px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7,27,22,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Modal card */
.search-modal {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(7,27,22,.1);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(7,27,22,.18), 0 8px 24px rgba(7,27,22,.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transform: translateY(12px) scale(.97);
  transition: transform .25s cubic-bezier(.22,.85,.26,1);
}
.search-overlay.is-open .search-modal {
  transform: translateY(0) scale(1);
}

/* Search header / input row */
.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(7,27,22,.08);
}
.search-header .search-icon {
  flex-shrink: 0;
  color: var(--emerald, #10b981);
}
.search-header input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink, #0a1a16);
}
.search-header input::placeholder {
  color: var(--ink-mute, #999);
  font-weight: 400;
}
.search-kbd {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid rgba(7,27,22,.15);
  border-radius: 6px;
  background: rgba(7,27,22,.04);
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-mute, #888);
  line-height: 1.4;
}
.search-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft, #555);
  cursor: pointer;
  transition: background .2s;
}
.search-close:hover {
  background: rgba(7,27,22,.06);
}

/* Status */
.search-status {
  padding: 8px 20px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-mute, #888);
}

/* Results list */
.search-results {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px 12px;
}
.search-empty {
  padding: 40px 20px;
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink-mute, #888);
}

/* Individual result item */
.search-result-item {
  display: block;
  padding: 14px 16px;
  margin-bottom: 4px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink, #0a1a16);
  transition: background .18s ease;
}
.search-result-item:hover,
.search-result-item.is-active {
  background: rgba(16,185,129,.06);
}
.search-result-cat {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.search-cat--blog {
  background: rgba(16,185,129,.1);
  color: #047857;
}
.search-cat--page {
  background: rgba(59,130,246,.1);
  color: #1d4ed8;
}
.search-result-title {
  margin: 0 0 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}
.search-result-title mark {
  background: rgba(16,185,129,.2);
  color: inherit;
  border-radius: 3px;
  padding: 0 2px;
}
.search-result-excerpt {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-soft, #555);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.search-result-excerpt mark {
  background: rgba(16,185,129,.15);
  color: inherit;
  border-radius: 2px;
  padding: 0 1px;
}

/* Footer hints */
.search-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 20px;
  border-top: 1px solid rgba(7,27,22,.06);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--ink-mute, #999);
}
.search-footer kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 1px 5px;
  border: 1px solid rgba(7,27,22,.12);
  border-radius: 5px;
  background: rgba(7,27,22,.03);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-mute, #888);
  margin: 0 3px;
}

@media (max-width: 768px) {
  .search-modal { width: calc(100vw - 16px); max-height: 80vh; border-radius: 16px; }
  .search-overlay { padding-top: 60px; }
  .search-footer { display: none; }
  .search-kbd { display: none; }
}
