/* ==========================================================================
   Vortex Eco Systems — core stylesheet
   ========================================================================== */
:root {
  --bg: #0b1220;
  --bg-soft: #0f172a;
  --card: rgba(255, 255, 255, 0.04);
  --card-brd: rgba(255, 255, 255, 0.09);
  --fg: #e2e8f0;
  --fg-dim: #cbd5e1;
  --muted: #94a3b8;
  --gold: #fbbf24;
  --gold-2: #f59e0b;
  --green: #86efac;
  --amber: #fcd34d;
  --red: #fca5a5;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
  --wrap: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 25%, transparent 78%);
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #14100a;
  font-weight: 650;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(251, 191, 36, .25); }
.btn.ghost { background: rgba(255, 255, 255, .04); border-color: var(--card-brd); color: var(--fg); }
.btn.ghost:hover { background: rgba(255, 255, 255, .08); box-shadow: none; }
.btn.lg { padding: .95rem 1.6rem; font-size: 1.02rem; }
.btn.sm { padding: .5rem .85rem; font-size: .86rem; }
.btn.block { width: 100%; justify-content: center; }

.pill {
  display: inline-block;
  padding: .4rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, .3);
  background: rgba(251, 191, 36, .08);
  color: var(--gold);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.badge {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 8px;
  background: rgba(251, 191, 36, .12);
  border: 1px solid rgba(251, 191, 36, .25);
  color: var(--gold);
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge.big { font-size: .82rem; padding: .4rem .75rem; }

.chip {
  display: inline-block;
  padding: .45rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--card-brd);
  background: var(--card);
  font-size: .86rem;
  color: var(--fg-dim);
  transition: .18s;
}
.chip:hover { border-color: rgba(251, 191, 36, .45); color: var(--gold); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 18, 32, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: .25s;
}
.site-header.scrolled { border-color: var(--card-brd); background: rgba(11, 18, 32, .92); }
.site-header.hide { transform: translateY(-100%); }

.header-inner { display: flex; align-items: center; gap: 1rem; height: 72px; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #14100a;
  font-weight: 800;
  font-size: 1.1rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: .98rem; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.main-nav a { padding: .5rem .8rem; border-radius: 10px; font-size: .93rem; color: var(--fg-dim); }
.main-nav a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.main-nav a.active { color: var(--gold); }
.main-nav .nav-cta { margin-left: .4rem; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14100a; font-weight: 650; }

.header-tools { display: flex; align-items: center; gap: .5rem; }
.lang-switch { position: relative; }
.lang-btn {
  padding: .45rem .7rem;
  border-radius: 10px;
  border: 1px solid var(--card-brd);
  background: var(--card);
  color: var(--fg-dim);
  font-size: .82rem;
  cursor: pointer;
}
.lang-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 170px;
  padding: .4rem;
  border-radius: 14px;
  border: 1px solid var(--card-brd);
  background: #101a2e;
  box-shadow: var(--shadow);
  display: none;
  z-index: 70;
}
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: .5rem .7rem; border-radius: 9px; font-size: .88rem; }
.lang-menu a:hover { background: rgba(255, 255, 255, .06); }
.lang-menu a.active { color: var(--gold); }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: .4rem; }
.burger span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; z-index: 1; padding: clamp(3rem, 8vw, 6rem) 0 3rem; }
.hero-inner { max-width: 920px; }
.hero h1 { margin-top: 1rem; }
.hero .lead { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--fg-dim); max-width: 720px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--card-brd); }
.hero-stats strong { display: block; font-size: 1.5rem; color: var(--gold); }
.hero-stats span { font-size: .85rem; color: var(--muted); }
.hero-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }

/* ---------------------------------------------------------------- status strip */
.status-strip { position: relative; z-index: 1; padding: .9rem 0; border-block: 1px solid var(--card-brd); background: rgba(255, 255, 255, .015); }
.status-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.status-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .35rem .7rem; border-radius: 999px; font-size: .8rem;
  border: 1px solid var(--card-brd); background: var(--card); color: var(--fg-dim);
}
.status-pill.big { font-size: .95rem; padding: .5rem .9rem; }
.status-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-pill.s-up i { background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-pill.s-slow i { background: var(--amber); box-shadow: 0 0 10px var(--amber); }
.status-pill.s-down i { background: var(--red); box-shadow: 0 0 10px var(--red); }
.status-more { margin-left: auto; font-size: .85rem; color: var(--gold); }

/* ---------------------------------------------------------------- sections */
.section { position: relative; z-index: 1; padding: clamp(2.4rem, 6vw, 4.2rem) 0; }
.sec-head { max-width: 720px; margin-bottom: 2rem; }
.sec-head p { color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- cards */
.grid { display: grid; gap: 1.2rem; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(298px, 1fr)); }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--card-brd);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  backdrop-filter: blur(6px);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(251, 191, 36, .35); box-shadow: var(--shadow); }
.service-card .badge { position: absolute; top: 1.1rem; right: 1.1rem; }
.card-icon { font-size: 1.7rem; margin-bottom: .5rem; }
.card h3 { font-size: 1.14rem; }
.card-cat { display: inline-block; font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .35rem; }
.card-tagline { color: var(--fg-dim); font-size: .92rem; }
.card-list { display: flex; flex-direction: column; gap: .32rem; margin: .85rem 0; }
.card-list li { position: relative; padding-left: 1.05rem; font-size: .87rem; color: var(--muted); }
.card-list li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); }
.service-card.featured { border-color: rgba(251, 191, 36, .34); background: linear-gradient(180deg, rgba(251, 191, 36, .07), rgba(255, 255, 255, .02)); }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--card-brd); }
.card-foot .price { font-weight: 700; color: var(--gold); font-size: .94rem; }
.card-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

.cat-block { margin-bottom: 3rem; scroll-margin-top: 90px; }
.cat-title { display: flex; align-items: center; gap: .55rem; font-size: 1.3rem; }
.cat-desc { color: var(--muted); max-width: 640px; }

/* ---------------------------------------------------------------- steps / faq */
.grid.steps { grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.step { padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--card-brd); background: var(--card); }
.step-num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(251, 191, 36, .14); color: var(--gold); font-weight: 700; margin-bottom: .8rem; }
.step p { color: var(--muted); margin: 0; }

.faq-item { border: 1px solid var(--card-brd); border-radius: var(--radius-sm); background: var(--card); margin-bottom: .7rem; }
.faq-item summary { cursor: pointer; padding: 1rem; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; float: right; color: var(--gold); }
.faq-item[open] summary::after { content: '–'; }
.faq-item[open] { border-color: rgba(251, 191, 36, .32); }
.faq-item p { padding: 0 1rem 1rem; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- cta band */
.cta-band { position: relative; z-index: 1; max-width: var(--wrap); margin: 1rem auto 3rem; padding: 0 20px; }
.cta-inner { padding: clamp(2rem, 5vw, 3rem); border-radius: 24px; text-align: center; border: 1px solid rgba(251, 191, 36, .26); background: radial-gradient(circle at 20% 0, rgba(251, 191, 36, .13), transparent 60%), #0d1626; }
.cta-inner p { color: var(--fg-dim); }
.cta-inner .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--card-brd); background: #0a101c; padding: 3rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand p { color: var(--muted); font-size: .9rem; margin-top: .8rem; }
.socials { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .85rem; color: var(--gold); }
.foot-col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.foot-col a { display: block; padding: .26rem 0; font-size: .9rem; color: var(--fg-dim); }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--card-brd); color: var(--muted); font-size: .82rem; }

/* ---------------------------------------------------------------- page head */
.page-head { position: relative; z-index: 1; padding: clamp(2.4rem, 6vw, 4rem) 0 1rem; }
.page-head .lead { color: var(--fg-dim); max-width: 720px; }
.crumb { display: inline-block; margin-bottom: .8rem; font-size: .85rem; color: var(--muted); }
.crumb:hover { color: var(--gold); }
.detail-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 .5rem; }

/* ---------------------------------------------------------------- detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 2rem; align-items: start; }
.prose p { color: var(--fg-dim); }
.prose.setup { font-size: .95rem; }
.check-list { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0 2rem; }
.check-list li { position: relative; padding-left: 1.6rem; color: var(--fg-dim); font-size: .95rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.side-card { padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--card-brd); background: var(--card); margin-bottom: 1rem; }
.side-card h4 { margin-bottom: .5rem; }
.side-card p { color: var(--muted); font-size: .9rem; }
.side-card .btn { margin-bottom: .5rem; }

/* ---------------------------------------------------------------- forms */
.form-card { padding: clamp(1.4rem, 3vw, 2rem); border-radius: var(--radius); border: 1px solid var(--card-brd); background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02)); }
.form-card.wide { max-width: 680px; margin-top: 2rem; }
.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .86rem; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: .75rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-brd);
  background: rgba(6, 11, 20, .7);
  color: var(--fg);
  font-size: .95rem;
  font-family: inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: rgba(251, 191, 36, .5); box-shadow: 0 0 0 3px rgba(251, 191, 36, .12); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.ok-msg { padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgba(134, 239, 172, .1); border: 1px solid rgba(134, 239, 172, .3); color: var(--green); font-size: .9rem; }
.err-msg { padding: .8rem 1rem; border-radius: var(--radius-sm); background: rgba(252, 165, 165, .1); border: 1px solid rgba(252, 165, 165, .3); color: var(--red); font-size: .9rem; }

.contact-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.3fr); gap: 2rem; align-items: start; }
.contact-cards { display: grid; gap: .8rem; }
.contact-card {
  display: flex; flex-direction: column; gap: .15rem; text-align: left;
  padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--card-brd);
  background: var(--card); color: var(--fg); cursor: pointer; font-family: inherit; font-size: 1rem;
  transition: .18s;
}
.contact-card:hover { border-color: rgba(251, 191, 36, .4); transform: translateY(-2px); }
.contact-card span { font-size: 1.3rem; }
.contact-card small { color: var(--muted); font-size: .84rem; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--card-brd); border-radius: var(--radius); margin-bottom: 2rem; }
.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--card-brd); vertical-align: top; }
.price-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: rgba(255, 255, 255, .03); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td small { display: block; color: var(--muted); font-size: .82rem; }
.t-title { color: var(--fg); }
.t-title:hover { color: var(--gold); }
.t-price { color: var(--gold); font-weight: 650; white-space: nowrap; }
.bank-box { padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--card-brd); background: rgba(6, 11, 20, .6); color: var(--fg-dim); font-size: .9rem; margin: 0; }

/* ---------------------------------------------------------------- status page */
.status-cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.status-card header { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.status-card h3 { font-size: 1.02rem; margin: 0; }
.spark { display: flex; gap: 2px; align-items: flex-end; height: 26px; margin: .8rem 0; }
.spark .bar { flex: 1; height: 100%; border-radius: 2px; background: var(--muted); opacity: .8; }
.spark .bar.s-up { background: var(--green); }
.spark .bar.s-slow { background: var(--amber); }
.spark .bar.s-down { background: var(--red); }

/* ---------------------------------------------------------------- live chat */
.chat-root { position: fixed; right: 20px; bottom: 20px; z-index: 90; }
.chat-launcher {
  position: relative;
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: #14100a;
  cursor: pointer;
  box-shadow: 0 14px 35px rgba(251, 191, 36, .3);
  transition: transform .18s;
}
.chat-launcher:hover { transform: scale(1.06); }
.chat-dot { position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #ef4444; border: 2px solid var(--bg); }
.chat-panel {
  position: absolute; right: 0; bottom: 68px;
  width: min(360px, calc(100vw - 40px));
  height: min(520px, calc(100vh - 130px));
  display: none; flex-direction: column;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--card-brd);
  background: #0e1729;
  box-shadow: var(--shadow);
}
.chat-panel.open { display: flex; animation: popIn .18s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1rem; border-bottom: 1px solid var(--card-brd); background: rgba(255, 255, 255, .03); }
.chat-head-txt { display: flex; flex-direction: column; line-height: 1.2; }
.chat-head-txt small { color: var(--gold); font-size: .76rem; }
.chat-head button { background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .55rem; }
.chat-msg { display: flex; flex-direction: column; max-width: 82%; }
.chat-msg span { padding: .6rem .85rem; border-radius: 14px; font-size: .9rem; }
.chat-msg time { font-size: .68rem; color: var(--muted); margin-top: .18rem; }
.chat-msg.agent { align-self: flex-start; }
.chat-msg.agent span { background: rgba(255, 255, 255, .07); border-bottom-left-radius: 4px; }
.chat-msg.me { align-self: flex-end; align-items: flex-end; }
.chat-msg.me span { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14100a; border-bottom-right-radius: 4px; }
.chat-form { padding: .7rem; border-top: 1px solid var(--card-brd); display: flex; flex-direction: column; gap: .45rem; }
.chat-form input { padding: .6rem .8rem; border-radius: 10px; border: 1px solid var(--card-brd); background: rgba(6, 11, 20, .75); color: var(--fg); font-size: .88rem; font-family: inherit; }
.chat-form input:focus { outline: none; border-color: rgba(251, 191, 36, .5); }
.chat-row { display: flex; gap: .45rem; }
.chat-row button { border: 0; border-radius: 10px; padding: 0 .9rem; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14100a; font-size: 1rem; cursor: pointer; }
.chat-hint { font-size: .74rem; color: var(--muted); }

/* ---------------------------------------------------------------- animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-inner, .sec-head, .card, .step, .contact-card, .side-card { animation: fadeUp .5s ease both; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .detail-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .burger { display: flex; }
  .main-nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem 20px 1.4rem;
    background: rgba(11, 18, 32, .98);
    border-bottom: 1px solid var(--card-brd);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .7rem .8rem; font-size: 1rem; }
  .main-nav .nav-cta { margin: .5rem 0 0; text-align: center; justify-content: center; }
  .hero-stats { gap: 1.4rem; }
  .form .two { grid-template-columns: 1fr; }
  .grid.cards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-text small { display: none; }
  .cta-band { padding: 0 16px; }
  .chat-root { right: 14px; bottom: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Zoeken (header-zoekveld, suggesties, resultaatpagina)
   ========================================================================== */
.head-search { position: relative; display: flex; align-items: center; }
.head-search input {
  width: 190px;
  padding: .5rem 2.1rem .5rem .8rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--card-brd);
  border-radius: 999px;
  color: var(--fg);
  font-size: .88rem;
  transition: width .18s ease, border-color .18s ease;
}
.head-search input:focus { outline: none; width: 240px; border-color: rgba(251, 191, 36, .5); }
.head-search input::placeholder { color: var(--muted); }
.head-search button {
  position: absolute;
  right: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
}
.head-search button:hover { color: var(--gold); }

.search-sug {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 340px;
  max-height: 70vh;
  overflow-y: auto;
  padding: .4rem;
  background: #0f172a;
  border: 1px solid var(--card-brd);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.search-sug a {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .5rem .6rem;
  border-radius: 10px;
}
.search-sug a:hover, .search-sug a.active { background: rgba(255, 255, 255, .06); }
.search-sug .sug-icon { font-size: 1.1rem; line-height: 1.3; }
.search-sug strong { display: block; font-size: .92rem; font-weight: 600; }
.search-sug small { display: block; color: var(--muted); font-size: .78rem; }
.search-sug .sug-all { border-top: 1px solid var(--card-brd); color: var(--gold); font-weight: 600; justify-content: center; }
.search-sug .sug-empty { padding: .6rem; color: var(--muted); font-size: .86rem; }

.search-hero { display: flex; gap: .6rem; max-width: 620px; margin: 1rem 0 .4rem; }
.search-hero input {
  flex: 1;
  padding: .8rem 1rem;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 999px;
  color: var(--fg);
  font-size: 1rem;
}
.search-hero input:focus { outline: none; border-color: rgba(251, 191, 36, .55); }

.search-group { margin: 1.8rem 0 .8rem; font-size: 1.05rem; }
.search-hits { display: flex; flex-direction: column; gap: .6rem; }
.search-hit {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  padding: .9rem 1rem;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius-sm);
}
.search-hit:hover { border-color: rgba(251, 191, 36, .35); }
.search-hit .sh-icon { font-size: 1.4rem; line-height: 1.2; }
.search-hit .sh-main { flex: 1; min-width: 0; }
.search-hit h4 { margin: 0 0 .2rem; font-size: 1.02rem; }
.search-hit h4 a:hover { color: var(--gold); }
.search-hit .sh-snip { margin: .3rem 0 0; color: var(--fg-dim); font-size: .9rem; }
.search-hit .sh-side { display: flex; flex-direction: column; gap: .4rem; align-items: flex-end; white-space: nowrap; }
.search-none { font-size: 1.05rem; margin: 1rem 0 .3rem; }
mark { background: rgba(251, 191, 36, .28); color: inherit; border-radius: 4px; padding: 0 .15em; }

@media (max-width: 1024px) {
  .head-search input { width: 150px; }
  .head-search input:focus { width: 190px; }
}
@media (max-width: 860px) {
  .head-search input { display: none; }
  .head-search button {
    position: static;
    width: 32px;
    height: 32px;
    border: 1px solid var(--card-brd);
    background: var(--card);
    color: var(--fg-dim);
  }
  .search-sug { width: min(88vw, 340px); top: calc(100% + 10px); }
  .search-hit { flex-wrap: wrap; }
  .search-hit .sh-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; white-space: normal; }
  .search-hero { flex-wrap: wrap; }
}
