/* VPNCat.blog — Modern Indigo-Tech Portal Framework (Pure CSS, Zero External Frameworks) */
:root {
  --bg-page: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-muted: #f8fafc;
  --bg-ink: #0f172a;
  --bg-accent-soft: #eef2ff;
  --text-main: #334155;
  --text-heading: #0f172a;
  --text-muted: #64748b;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #0ea5e9;
  --accent-amber: #f59e0b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --success-bg: #dcfce7;
  --success-text: #166534;
  --warn-bg: #fef3c7;
  --warn-text: #92400e;
  --neutral-bg: #f1f5f9;
  --neutral-text: #475569;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 28px -6px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 20px 40px -12px rgba(30, 27, 75, 0.22);
  --container-max: 1240px;
  --article-max: 810px;
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-main);
  background-color: #080d1c;
  background-image:
    linear-gradient(rgba(8, 13, 28, 0.52), rgba(8, 13, 28, 0.65)),
    url("../images/bg-network.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; color: var(--primary-hover); }

h1, h2, h3, h4 {
  color: var(--text-heading);
  line-height: 1.32;
  margin-top: 1.4em;
  margin-bottom: 0.55em;
  font-weight: 700;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(1.8rem, 3.1vw, 2.45rem); margin-top: 0; }
h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: #eef2ff;
  padding: 0.15em 0.45em;
  border-radius: 5px;
  color: #3730a3;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Announcement Strip */
.top-strip {
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #0f172a 100%);
  color: #e0e7ff;
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.top-strip a { color: #93c5fd; font-weight: 600; }

/* Glassmorphic Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-heading);
  white-space: nowrap;
}
.brand-logo:hover { text-decoration: none; color: var(--primary); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: var(--text-main);
  font-size: 0.93rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--bg-accent-soft);
  color: var(--primary);
  text-decoration: none;
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-search,
.btn-contact,
.btn-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--text-heading);
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.btn-contact {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}
.btn-contact:hover {
  background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
  color: #ffffff;
}
.btn-search:hover, .btn-menu:hover { border-color: var(--primary); color: var(--primary); }
.btn-menu { display: none; }

@media (max-width: 980px) {
  .btn-menu { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 18px;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; }
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  color: #cbd5e1;
  margin: 18px 0 12px;
}
.breadcrumb a { color: #93c5fd; }
.breadcrumb a:hover { color: #ffffff; }

/* Rich Gradient Tech Hero */
.hero-portal {
  background:
    radial-gradient(circle at 85% 15%, rgba(14, 165, 233, 0.22) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
    rgba(11, 18, 36, 0.42);
  color: #f8fafc;
  padding: 46px 0 64px;
  position: relative;
}

.hero-portal h1 { color: #ffffff; }
.hero-portal .hero-lead { color: #cbd5e1; font-size: 1.05rem; margin-bottom: 22px; }
.hero-portal .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #a5f3fc;
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.hero-portal .hero-note { color: #94a3b8; font-size: 0.84rem; margin: 12px 0 0; }

.hero-split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }

.hero-glass-panel {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.hero-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.kpi-card {
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.kpi-num { font-size: 1.35rem; font-weight: 800; color: #38bdf8; line-height: 1.2; }
.kpi-label { font-size: 0.8rem; color: #cbd5e1; margin-top: 3px; }

.hero-stat-list { list-style: none; padding: 0; margin: 0 0 14px; }
.hero-stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
}
.hero-stat-list li:last-child { border-bottom: none; }
.hero-stat-list a { color: #ffffff; font-weight: 600; }
.hero-stat-list span { color: #a5b4fc; font-size: 0.83rem; }

/* Overlapping Floating Bar */
.floating-bar-wrap { margin-top: -32px; position: relative; z-index: 10; margin-bottom: 16px; }
.floating-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 820px) { .floating-bar { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .floating-bar { grid-template-columns: 1fr; } }

.floating-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  transition: background 0.15s ease;
}
.floating-link:hover { background: var(--bg-accent-soft); text-decoration: none; }
.floating-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.floating-title { font-weight: 700; font-size: 0.94rem; line-height: 1.25; }
.floating-sub { font-size: 0.8rem; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.93rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}
.btn-primary:hover { background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%); color: #fff; }
.btn-secondary { background: var(--bg-surface); color: var(--text-heading); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); color: #ffffff; }
.btn-sm { padding: 6px 12px; font-size: 0.84rem; }

/* Sections */
.section { padding: 38px 0; }
.section-alt {
  background: rgba(10, 16, 34, 0.48);
  backdrop-filter: blur(6px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.section > .container > h1,
.section > .container > h2,
.section > .container > div > h2,
.section-header h2 {
  color: #ffffff;
}
.section > .container > p,
.section > .container > .card-meta,
.section-desc {
  color: #e2e8f0;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.section-header h2 { margin: 0; position: relative; padding-left: 14px; }
.section-header h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #38bdf8 0%, #818cf8 100%);
}
.section-desc { margin: 4px 0 0 14px; font-size: 0.92rem; }

/* Grids & Elevated Cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card,
.portal-brand-card,
.step-bento,
.scenario-card,
.editorial-list,
.floating-bar,
.table-wrap,
.article-main,
.sidebar-box,
.faq-item,
.compare-controls {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #a5b4fc;
}
.card h3 { margin: 0; font-size: 1.08rem; }
.card-meta { font-size: 0.84rem; color: var(--text-muted); }
.card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Rich Portal Brand Card */
.portal-brand-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.portal-brand-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}
.metric-val { font-weight: 800; font-size: 1rem; color: var(--primary); }
.metric-key { font-size: 0.76rem; color: var(--text-muted); }

/* Step Bento Card */
.step-bento {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Scenario Portal Card */
.scenario-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.scenario-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); text-decoration: none; }
.scenario-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5 0%, #0ea5e9 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  flex-shrink: 0;
}

/* Magazine Split (Featured + List) */
.magazine-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 860px) { .magazine-grid { grid-template-columns: 1fr; } }

.editorial-list {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.editorial-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.editorial-item:last-child { border-bottom: none; }
.editorial-item-title { font-weight: 700; color: var(--text-heading); }

/* Badges & Rank Medals */
.badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}
.badge-blue { background: #eef2ff; color: var(--primary); }
.badge-green { background: var(--success-bg); color: var(--success-text); }
.badge-warn { background: var(--warn-bg); color: var(--warn-text); }
.badge-neutral { background: var(--neutral-bg); color: var(--neutral-text); }

.rank-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 26px;
  padding: 0 7px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.84rem;
  background: var(--bg-muted);
  color: var(--text-heading);
}
.rank-1 { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.rank-2 { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.rank-3 { background: #ffedd5; color: #9a3412; border: 1px solid #fdba74; }

/* Callout */
.callout {
  background: var(--bg-accent-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 15px 18px;
  margin: 16px 0;
}
.callout-warn { background: var(--warn-bg); border-left-color: #d97706; }
.callout-title { font-weight: 700; color: var(--text-heading); margin-bottom: 4px; }

/* Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 700px; font-size: 0.91rem; }
th, td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
th {
  background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 100%);
  color: #f8fafc;
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: #f8fafc; }
tbody tr:hover { background: #eef2ff; }
tr:last-child td { border-bottom: none; }

/* Article Layout + Sidebar */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, var(--article-max)) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
  padding: 20px 0 48px;
}
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }

.article-main {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .article-main { padding: 18px; } }

.article-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 82px; }
.sidebar-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.sidebar-box h3 { margin: 0 0 10px; font-size: 0.98rem; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.sidebar-list { list-style: none; padding: 0; margin: 0; font-size: 0.89rem; }
.sidebar-list li { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.sidebar-list li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  font-weight: 700;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.15rem; color: var(--primary); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 8px 0 0; color: var(--text-main); }

/* Prev / Next Article Pager */
.article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
@media (max-width: 640px) { .article-pager { grid-template-columns: 1fr; } }

.pager-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.pager-link:hover {
  background: var(--bg-accent-soft);
  border-color: var(--primary);
  text-decoration: none;
}
.pager-link-next { text-align: right; }
@media (max-width: 640px) { .pager-link-next { text-align: left; } }
.pager-dir { font-size: 0.78rem; font-weight: 700; color: var(--primary); }
.pager-title { font-size: 0.94rem; font-weight: 700; line-height: 1.4; }

/* Compare Tool */
.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.compare-controls select {
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--bg-surface);
}
.compare-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2ff;
  color: var(--primary);
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}
.chip button {
  background: none;
  border: none;
  color: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
  font-size: 1rem;
  line-height: 1;
}

/* Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 72px 16px 24px;
}
.search-modal.open { display: flex; }
.search-dialog {
  width: 100%;
  max-width: 640px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.28);
  overflow: hidden;
  border: 1px solid var(--border);
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.search-input-wrap input { flex: 1; border: none; outline: none; font-size: 1rem; font-family: inherit; }
.search-results { max-height: 380px; overflow-y: auto; padding: 10px 16px 16px; }
.search-result-item { display: block; padding: 10px 12px; border-radius: var(--radius-sm); border-bottom: 1px solid var(--border); }
.search-result-item:hover { background: var(--bg-accent-soft); text-decoration: none; }
.search-result-title { font-weight: 700; color: var(--text-heading); display: block; }
.search-result-desc { font-size: 0.85rem; color: var(--text-muted); }

/* Contact Modal & Cards */
.contact-dialog { padding: 24px; }
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact-card-title { font-weight: 800; color: var(--text-heading); font-size: 0.98rem; }
.contact-card-val { font-family: var(--font-mono); font-size: 0.88rem; color: var(--primary); word-break: break-all; }
.contact-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #090d16 100%);
  color: #cbd5e1;
  padding: 44px 0 28px;
  margin-top: 44px;
  font-size: 0.89rem;
}
.site-footer a { color: #e2e8f0; }
.site-footer a:hover { color: #93c5fd; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 26px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-title { color: #ffffff; font-weight: 700; margin-bottom: 12px; font-size: 0.98rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 7px; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: #94a3b8;
}
