/* ── FTP SERVER BD — brand stylesheet (red / black / white, light theme) ── */
:root {
  --brand:      #E8202A;   /* primary red */
  --brand-dark: #C2151C;   /* red hover */
  --brand-soft: #FDECEC;   /* light red tint */
  --ink:        #16161D;   /* near-black headings */
  --bg:         #FFFFFF;
  --bg-alt:     #F6F7F9;   /* light gray section */
  --card:       #FFFFFF;
  --border:     #E6E8EC;
  --text:       #20242C;
  --muted:      #6A7282;
  --ok:         #16A34A;   /* working (green) */
  --warn:       #E8A300;
  --fail:       #AEB4BF;   /* down (neutral grey) */
  --footer-bg:  #121317;
  --radius: 14px;
  --maxw: 1400px;
  --shadow-sm: 0 1px 2px rgba(16,18,24,.06), 0 1px 3px rgba(16,18,24,.05);
  --shadow:    0 2px 8px rgba(16,18,24,.06), 0 8px 28px rgba(16,18,24,.07);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* ensure the HTML hidden attribute always wins over display rules */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 5vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); font-weight: 800; }
.muted { color: var(--muted); }

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

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; display: block; }
/* text fallback brand mark (used if no logo image) */
.brand-mark {
  background: var(--brand); color: #fff; font-weight: 800;
  padding: 4px 9px; border-radius: 9px; font-size: .95rem; letter-spacing: .5px;
}
.brand-text { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: .96rem; }
.site-nav a:hover, .site-nav a.active { color: var(--brand); text-decoration: none; }
.btn-nav {
  background: var(--brand); color: #fff !important; padding: 9px 18px; border-radius: 10px;
  box-shadow: 0 4px 12px rgba(232,32,42,.25);
}
.btn-nav:hover { background: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ── Buttons ── */
.btn {
  display: inline-block; font-weight: 700; padding: 12px 22px; border-radius: 12px;
  cursor: pointer; border: 0; font-size: 1rem; transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(232,32,42,.28); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* ── Hero ── */
.hero, .page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 420px at 88% -10%, var(--brand-soft), transparent 70%),
    radial-gradient(640px 360px at 0% 0%, #f2f3f6, transparent 70%);
}
.page-hero { padding: 44px 0 34px; }
.hero h1 { max-width: 18ch; }
.hero h1 .accent, .accent { color: var(--brand); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 42px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.9rem; color: var(--brand); font-weight: 800; }
.hero-stats span { color: var(--muted); font-size: .9rem; }

/* ── Sections ── */
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.section-head h2::after { content: ""; display: block; width: 52px; height: 4px; background: var(--brand); border-radius: 4px; margin-top: 10px; }
.section-intro { color: var(--muted); margin: 0 0 24px; }
.see-all { font-weight: 700; white-space: nowrap; }

/* ── Server grid ── */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.server-card {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 15px 17px; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.server-card:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); }
.server-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-go { color: var(--brand); font-size: .78rem; font-weight: 700; flex-shrink: 0; }

/* ── List toolbar ── */
.list-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
#serverSearch {
  flex: 1; min-width: 220px; background: #fff; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 12px 16px; color: var(--ink); font-size: 1rem;
}
#serverSearch:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.list-count { color: var(--muted); font-size: .9rem; }

/* ── CTA band ── */
.cta-band { background: var(--ink); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band h2::after { display: none; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 44px; padding-bottom: 44px; }
.cta-inner p { color: #c7ccd6; max-width: 60ch; margin: 6px 0 0; }

/* ── Posts ── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.post-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s, box-shadow .15s; }
.post-card:hover { border-color: var(--brand); transform: translateY(-3px); text-decoration: none; box-shadow: var(--shadow); }
.post-card h2, .post-card h3 { font-size: 1.18rem; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.post-meta { color: var(--muted); font-size: .85rem; }

/* ── Article body ── */
.post-body { font-size: 1.06rem; color: var(--text); }
.post-body h2 { margin-top: 1.6em; }
.post-body h3 { margin-top: 1.3em; }
.post-body ul, .post-body ol { padding-left: 1.3em; }
.post-body li { margin: .4em 0; }
.post-body img { border-radius: 12px; margin: 18px 0; height: auto; }
.post-body figure { margin: 18px 0; }
.post-body figure img { margin: 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .98rem; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 10px 13px; text-align: left; vertical-align: top; }
.post-body thead th { background: var(--bg-alt); color: var(--ink); font-weight: 700; }
.post-body tbody tr:nth-child(even) td { background: #fafbfc; }
.post-body figcaption { color: var(--muted); font-size: .9rem; text-align: center; margin-top: 8px; }
.post-body blockquote { border-left: 4px solid var(--brand); margin: 22px 0; padding: 10px 20px; background: var(--bg-alt); border-radius: 0 10px 10px 0; color: var(--ink); }
.post-body blockquote p { margin: .4em 0; }
.post-body pre { background: var(--ink); color: #f1f3f7; padding: 16px 18px; border-radius: 12px; overflow: auto; font-size: .92rem; }
.post-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: .97rem; }
.post-body th, .post-body td { border: 1px solid var(--border); padding: 9px 13px; text-align: left; }
.post-body th { background: var(--bg-alt); }
.post-body a { font-weight: 600; }
.post-cta { margin: 40px 0; padding: 28px; background: var(--brand-soft); border: 1px solid #f6d4d6; border-radius: var(--radius); text-align: center; }
.post-cta h3 { color: var(--ink); }
/* ── Author box (E-E-A-T) ── */
.author-box { display: flex; gap: 16px; align-items: flex-start; margin: 36px 0 8px; padding: 20px 22px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); }
.author-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.25rem; display: grid; place-items: center; }
.author-meta { font-size: .95rem; }
.author-name { margin: 0 0 4px; color: var(--ink); }
.author-bio { margin: 0; color: var(--muted); line-height: 1.55; }
.related { margin-top: 44px; border-top: 1px solid var(--border); padding-top: 30px; }

/* ── Breadcrumb ── */
.breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }

/* ── FAQ ── */
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--brand); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 0 0 16px; }

/* ── Tester ── */
.tester-controls { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.tester-summary { display: flex; gap: 10px; flex-wrap: wrap; }
.pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 15px; font-size: .9rem; color: var(--muted); }
.pill b { color: var(--ink); }
.pill-ok b { color: var(--ok); }
.pill-fail b { color: var(--brand); }
.progress { height: 9px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), #ff5a61); transition: width .2s; }
.tester-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { background: #fff; border: 1.5px solid var(--border); color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; font-weight: 600; }
.chip:hover { border-color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.tester-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.t-item {
  display: flex; align-items: center; gap: 10px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.t-item.is-ok { border-color: rgba(22,163,74,.45); background: #f4fcf6; }
.t-item.is-fail { opacity: .65; }
.t-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; background: var(--fail); }
.t-item.is-ok .t-dot { background: var(--ok); box-shadow: 0 0 8px rgba(22,163,74,.6); }
.t-item.is-fail .t-dot { background: var(--fail); }
.t-item.is-testing .t-dot { background: var(--brand); animation: pulse 1s infinite; }
.t-name { font-weight: 600; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-name a { color: var(--ink); }
.t-name a:hover { color: var(--brand); }
.t-ms { font-size: .72rem; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.t-item.is-ok .t-ms { color: var(--ok); font-weight: 700; }
.t-item.is-fail .t-ms { color: var(--fail); }
.t-tag { font-size: .7rem; color: var(--muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 6px; flex-shrink: 0; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ── Forms (public: contact, write-for-us) ── */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); max-width: 640px; }
.form-card label { display: block; margin-bottom: 16px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form-card input, .form-card textarea {
  display: block; width: 100%; margin-top: 7px;
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 11px 14px; color: var(--ink); font-size: 1rem; font-family: inherit;
}
.form-card input:focus, .form-card textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-card .checkbox { display: block; position: relative; padding-left: 28px; font-weight: 500; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.form-card .checkbox input { position: absolute; left: 0; top: 3px; width: auto; margin: 0; }
.form-card .checkbox a { color: var(--brand); font-weight: 600; white-space: nowrap; }

.alert { border-radius: 10px; padding: 13px 16px; margin-bottom: 18px; font-size: .96rem; border: 1px solid; }
.alert-ok  { background: #f0fbf3; border-color: #b7e6c4; color: #137a39; }
.alert-err { background: var(--brand-soft); border-color: #f3c6c8; color: var(--brand-dark); }
.alert-warn{ background: #fff8e6; border-color: #ffe08a; color: #9a6b00; }

/* ── Legal pages ── */
.legal h2 { margin-top: 1.6em; font-size: 1.35rem; }

/* ── Long-form page content (admin-managed guide blocks) ── */
.page-extra { max-width: 860px; margin: 0 auto; font-size: 1.05rem; color: var(--text); }
.page-extra > :first-child { margin-top: 0; }
.page-extra h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0 0 .55em; color: var(--ink); }
.page-extra h2::after { content: ""; display: block; width: 54px; height: 4px; background: var(--brand); border-radius: 4px; margin-top: 14px; }
.page-extra h3 { font-size: 1.2rem; margin: 1.9em 0 .5em; padding-left: 14px; border-left: 3px solid var(--brand); color: var(--ink); }
.page-extra p { margin: 0 0 1.05em; line-height: 1.75; }
.page-extra ul, .page-extra ol { padding-left: 1.35em; margin: 0 0 1.1em; }
.page-extra li { margin: .45em 0; line-height: 1.6; }
.page-extra li::marker { color: var(--brand); }
.page-extra a { font-weight: 600; }

/* ── Footer ── */
.site-footer { background: var(--footer-bg); color: #c7ccd6; margin-top: 0; padding: 60px 0 26px; border-top: 3px solid var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand-col { max-width: 380px; }
.footer-logo-link { display: inline-block; margin-bottom: 18px; }
.footer-logo-full { height: 50px; width: auto; display: block; }
.footer-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: #fff; margin-bottom: 18px; position: relative; padding-bottom: 9px; }
.footer-col h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 26px; height: 2px; background: var(--brand); border-radius: 2px; }
.footer-col a { display: block; color: #aeb4bf; padding: 5px 0; font-size: .92rem; transition: color .15s, transform .15s; }
.footer-col a:hover { color: #fff; transform: translateX(3px); text-decoration: none; }
.footer-about { color: #9aa0ac; font-size: .92rem; margin: 0 0 18px; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 18px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; color: #9aa0ac; font-size: .9rem; padding: 3px 0; }
.footer-contact a { color: #9aa0ac; }
.footer-contact a:hover { color: var(--brand); }
.fc-ico { width: 18px; text-align: center; flex-shrink: 0; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.07); color: #c7ccd6; transition: background .15s, color .15s, transform .15s; }
.footer-social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 42px; padding-top: 22px; display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; text-align: center; }
.footer-bottom p { color: #8b919d; font-size: .85rem; margin: 0; }
.footer-made .flag { font-size: 1rem; }

/* ── Mobile ── */
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px; display: none; box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .btn-nav { text-align: center; margin-top: 10px; border-bottom: 0 !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; max-width: none; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}

/* ════════════════════════════════════════════════════════════════════
   Modern enhancements
   ════════════════════════════════════════════════════════════════════ */

/* Use the brand font everywhere it's available */
:root { --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }

/* ── Hero two-column + visual ── */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; font-size: .82rem;
  padding: 7px 14px; border-radius: 999px; border: 1px solid #f3c6c8;
}
.hero h1 { max-width: 16ch; }

/* status card visual */
.hero-visual { display: flex; justify-content: center; }
.status-card {
  width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--border);
  border-radius: 18px; box-shadow: var(--shadow); padding: 18px; transform: rotate(1.2deg);
}
.status-card-head { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.status-dotrow { display: inline-flex; gap: 5px; }
.status-dotrow i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); display: block; }
.status-dotrow i:first-child { background: var(--brand); }
.status-title { font-weight: 700; color: var(--ink); font-size: .9rem; }
.status-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-bottom: 1px dashed var(--border); }
.status-row:last-of-type { border-bottom: 0; }
.status-name { font-weight: 600; color: var(--ink); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-pill { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; flex-shrink: 0; }
.status-pill.is-up { background: #e7f7ed; color: var(--ok); }
.status-pill.is-down { background: var(--brand-soft); color: var(--brand); }
.status-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: .82rem; }
.status-spark { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22,163,74,.5); animation: spark 1.6s infinite; }
@keyframes spark { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* ── Feature cards ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #f3c6c8; }
.feature-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); font-size: 1.5rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.feature-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ── Blog cards with cover image ── */
.post-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-card-body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card-body h2, .post-card-body h3 { margin: 0; }
.post-card-body p { margin: 0; }
.post-card-body .post-meta { margin-top: auto; padding-top: 4px; }

/* ── Single-post cover ── */
.post-hero-img { margin: 0 0 28px; border-radius: 16px; overflow: hidden; aspect-ratio: 2 / 1; box-shadow: var(--shadow-sm); }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Hero responsive ── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  /* text first, then a smaller visual below */
  .hero-visual .status-card { transform: none; max-width: 340px; }
  .hero-visual .radar, .hero-visual .media-stack, .hero-visual .tv-set { max-width: 240px; }
  .hero h1 { max-width: none; }
}
@media (max-width: 480px) {
  .hero, .page-hero { padding: 44px 0 36px; }
  .section { padding: 40px 0; }
  .btn-lg { padding: 13px 22px; font-size: 1rem; }
  .hero-cta .btn { flex: 1; text-align: center; }
  .post-hero-img { aspect-ratio: 16 / 10; }
}

/* ════════════════════════════════════════════════════════════════════
   Animations — fast & lightweight (GPU-friendly transform/opacity only)
   ════════════════════════════════════════════════════════════════════ */

/* On-load fade-up for hero (instant, above the fold) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: fadeUp .5s cubic-bezier(.22,.61,.36,1) both; }
.hero-copy > :nth-child(1) { animation-delay: .02s; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .14s; }
.hero-copy > :nth-child(4) { animation-delay: .20s; }
.hero-copy > :nth-child(5) { animation-delay: .26s; }
.hero-visual { animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .15s both; }
@keyframes popIn { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }

/* Scroll reveal (JS adds .reveal then .in) */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.22,.61,.36,1); }

/* Snappy interactions */
.btn:active { transform: translateY(1px) scale(.99); }
.server-card:active { transform: translateY(-1px); }
a, .btn, .chip, .server-card, .post-card, .feature-card { transition: color .15s, background .15s, border-color .15s, transform .15s, box-shadow .2s; }

/* ── BDIX tester animations ── */
/* button pulse while scanning */
#startTest:disabled { position: relative; opacity: 1; cursor: progress; }
#startTest:disabled::after {
  content: ""; position: absolute; inset: -4px; border-radius: 14px;
  border: 2px solid var(--brand); opacity: 0; animation: btnpulse 1.2s ease-out infinite;
}
@keyframes btnpulse { 0% { opacity: .5; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.08); } }

/* progress bar shimmer while scanning */
.progress.scanning { position: relative; }
.progress.scanning::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  animation: shimmer 1.1s linear infinite;
}
@keyframes shimmer { 0% { left: -40%; } 100% { left: 100%; } }
.progress-bar { background-size: 200% 100%; }

/* testing dot → radar ring; result → pop */
.t-item.is-testing .t-dot { animation: radar 1s ease-out infinite; }
@keyframes radar {
  0% { box-shadow: 0 0 0 0 rgba(232,32,42,.5); }
  100% { box-shadow: 0 0 0 10px rgba(232,32,42,0); }
}
.t-item.is-ok { animation: pop .32s cubic-bezier(.22,.61,.36,1); }
@keyframes pop { 0% { transform: scale(.96); } 55% { transform: scale(1.02); } 100% { transform: scale(1); } }
.t-item.is-ok .t-dot { animation: dotpop .32s ease; }
@keyframes dotpop { 0% { transform: scale(.4); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* ── Radar scanner (BDIX tester hero visual) ── */
.radar {
  position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 0 auto;
  border-radius: 50%; background: radial-gradient(circle at 50% 50%, #fff 0%, var(--bg-alt) 100%);
  border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
}
/* concentric rings + crosshair */
.radar-grid { position: absolute; inset: 0; border-radius: 50%;
  background-image:
    repeating-radial-gradient(circle at 50% 50%, transparent 0 17%, rgba(22,22,29,.07) 17% calc(17% + 1px)),
    linear-gradient(rgba(22,22,29,.06), rgba(22,22,29,.06)),
    linear-gradient(90deg, rgba(22,22,29,.06), rgba(22,22,29,.06));
  background-size: 100% 100%, 1px 100%, 100% 1px;
  background-position: center, center, center;
  background-repeat: no-repeat;
}
/* rotating sweep beam */
.radar-sweep { position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(232,32,42,.30), rgba(232,32,42,.06) 36deg, transparent 70deg);
  animation: radar-spin 2.8s linear infinite; transform-origin: 50% 50%;
}
@keyframes radar-spin { to { transform: rotate(360deg); } }
.radar-core { position: absolute; top: 50%; left: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(232,32,42,.18); }
/* server blips */
.radar-blip { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  opacity: 0; animation: blip 2.8s ease-in-out infinite; }
.radar-blip.up   { background: var(--ok); box-shadow: 0 0 10px rgba(22,163,74,.7); }
.radar-blip.down { background: var(--brand); box-shadow: 0 0 10px rgba(232,32,42,.6); }
.radar-blip:nth-child(4){ animation-delay: .2s; }
.radar-blip:nth-child(5){ animation-delay: 1.0s; }
.radar-blip:nth-child(6){ animation-delay: 1.5s; }
.radar-blip:nth-child(7){ animation-delay: .7s; }
.radar-blip:nth-child(8){ animation-delay: 2.1s; }
.radar-blip:nth-child(9){ animation-delay: 2.5s; }
@keyframes blip { 0%, 70% { opacity: 0; transform: scale(.5); } 12% { opacity: 1; transform: scale(1.1); } 40% { opacity: .55; transform: scale(1); } }

/* ── Movie page hero: floating media stack ── */
.media-stack { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1 / .92; margin: 0 auto; }
.ms-card { position: absolute; top: 50%; left: 50%; width: 74%; height: 66%; border-radius: 18px; box-shadow: var(--shadow); }
.ms-back2 { background: var(--bg-alt); border: 1px solid var(--border); transform: translate(-50%, -50%) rotate(9deg) translateX(26px); }
.ms-back1 { background: #fff; border: 1px solid var(--border); transform: translate(-50%, -50%) rotate(-7deg) translateX(-22px); }
.ms-front {
  background: linear-gradient(140deg, var(--brand), var(--brand-dark)); z-index: 3; overflow: hidden;
  transform: translate(-50%, -50%); animation: floaty 4.5s ease-in-out infinite; display: grid; place-items: center;
}
.ms-front::before { content: ""; position: absolute; top: -60%; left: -30%; width: 60%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent); transform: rotate(18deg);
  animation: sheen 3.2s ease-in-out infinite; }
@keyframes sheen { 0% { left: -40%; } 60%, 100% { left: 130%; } }
@keyframes floaty { 0%, 100% { transform: translate(-50%, -52%); } 50% { transform: translate(-50%, -48%); } }
.ms-play { width: 76px; height: 76px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.ms-play::after { content: ""; width: 0; height: 0; border-left: 26px solid var(--brand); border-top: 16px solid transparent; border-bottom: 16px solid transparent; margin-left: 6px; }
.ms-progress { position: absolute; left: 12%; right: 12%; bottom: 16%; height: 7px; border-radius: 999px; background: rgba(255,255,255,.35); overflow: hidden; }
.ms-progress i { position: absolute; inset: 0; width: 0; background: #fff; border-radius: 999px; animation: loadbar 3.2s ease-in-out infinite; }
@keyframes loadbar { 0% { width: 6%; } 70% { width: 92%; } 100% { width: 100%; } }
.ms-bubble { position: absolute; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); font-size: .9rem; color: var(--brand); z-index: 4; opacity: 0; }
.ms-bubble.bub1 { left: 4%;  top: 18%; animation: rise 4s ease-in-out infinite; }
.ms-bubble.bub2 { right: 6%; top: 8%;  animation: rise 4.6s ease-in-out .9s infinite; }
.ms-bubble.bub3 { right: 2%; bottom: 14%; animation: rise 4.2s ease-in-out 1.8s infinite; }
@keyframes rise { 0% { opacity: 0; transform: translateY(14px) scale(.8); } 20%, 70% { opacity: 1; transform: translateY(-6px) scale(1); } 100% { opacity: 0; transform: translateY(-22px) scale(.85); } }

/* ── Live TV page hero: broadcast set ── */
.tv-set { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1 / .95; margin: 0 auto; }
.tv-screen { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: 80%; aspect-ratio: 4 / 3;
  border-radius: 18px; background: radial-gradient(circle at 50% 45%, #23252e, #121317 70%); border: 5px solid #0c0d10;
  box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.tv-ant { position: absolute; top: 6%; left: 50%; width: 3px; height: 20%; background: var(--brand); border-radius: 3px; transform-origin: bottom center; }
.tv-ant-l { transform: translateX(-50%) rotate(-26deg); }
.tv-ant-r { transform: translateX(-50%) rotate(24deg); }
.tv-ant::after { content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--brand); background: #fff; }
.tv-base { position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); width: 36%; height: 6px; background: #0c0d10; border-radius: 6px; }
.tv-base::before { content: ""; position: absolute; left: 50%; top: -16px; transform: translateX(-50%); width: 10px; height: 18px; background: #0c0d10; }
.tv-badge { position: absolute; top: 12px; left: 12px; z-index: 4; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(232,32,42,.16); color: #ff6b73; font-weight: 800; font-size: .68rem; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; }
.tv-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tv-play { width: 60px; height: 60px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; z-index: 3; box-shadow: 0 0 0 0 rgba(232,32,42,.5); animation: tvpulse 2s ease-out infinite; }
.tv-play::after { content: ""; width: 0; height: 0; border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
@keyframes tvpulse { 0% { box-shadow: 0 0 0 0 rgba(232,32,42,.45); } 100% { box-shadow: 0 0 0 26px rgba(232,32,42,0); } }
/* broadcasting signal rings */
.tv-signal, .tv-signal::before, .tv-signal::after { position: absolute; top: 50%; left: 50%; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--brand); transform: translate(-50%, -50%); opacity: 0; }
.tv-signal { animation: bcast 2.4s ease-out infinite; }
.tv-signal::before { content: ""; animation: bcast 2.4s ease-out .8s infinite; }
.tv-signal::after { content: ""; animation: bcast 2.4s ease-out 1.6s infinite; }
@keyframes bcast { 0% { opacity: .6; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } }

/* spinning scan ring beside the testing summary */
.scan-ring { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--brand-soft); border-top-color: var(--brand); animation: spin .7s linear infinite; }
.is-scanning .scan-ring { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Status card: live entrance + scan sweep ── */
.status-card { position: relative; overflow: hidden; }
.status-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; pointer-events: none;
  background: linear-gradient(180deg, rgba(232,32,42,.10), transparent);
  transform: translateY(-110%); animation: cardscan 3.8s ease-in-out 1.3s infinite;
}
@keyframes cardscan { 0% { transform: translateY(-110%); } 55%, 100% { transform: translateY(260%); } }
.status-row { animation: rowIn .45s ease both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.status-pill.is-up { animation: upglow 2.6s ease-in-out infinite; }
@keyframes upglow { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } 50% { box-shadow: 0 0 0 4px rgba(22,163,74,.12); } }
.status-pill.is-down { animation: downblink 1.5s steps(1) infinite; }
@keyframes downblink { 50% { opacity: .55; } }

/* ── Home FAQ two-column ── */
.faq-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 48px; align-items: start; }
.faq-aside { position: sticky; top: 92px; }
.faq-aside h2 { margin-bottom: 14px; }
.faq-aside h2::after { content: ""; display: block; width: 52px; height: 4px; background: var(--brand); border-radius: 4px; margin-top: 12px; }
.faq-aside p { margin: 0 0 22px; }
.faq-aside .btn { margin-bottom: 16px; }
.faq-aside-link { display: inline-block; font-weight: 700; }
@media (max-width: 820px) {
  .faq-layout { grid-template-columns: 1fr; gap: 22px; }
  .faq-aside { position: static; }
}

/* ── Centered content sections (movie / live-tv info) ── */
.section-head.center { display: block; text-align: center; }
.section-head.center h2 { display: inline-block; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-lead { text-align: center; max-width: 64ch; margin: 0 auto 32px; color: var(--muted); font-size: 1.1rem; }
.section-note { text-align: center; max-width: 66ch; margin: 36px auto 0; color: var(--muted); }
.section-note a { font-weight: 700; }

/* numbered steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 780px; margin: 0 auto; }
.step-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; box-shadow: var(--shadow-sm); }
.step-num { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(232,32,42,.28); }
.step-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .95rem; }

/* tester FAQ disclaimer in aside */
.faq-disclaimer { margin: 20px 0 0; font-size: .85rem; color: var(--muted); background: var(--brand-soft); border: 1px solid #f3c6c8; border-radius: 10px; padding: 12px 14px; }

/* ── CTA bands polish ── */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, #121317 0%, #1a1518 100%); }
.cta-band::before { content: ""; position: absolute; right: -90px; top: -90px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,32,42,.38), transparent 70%); pointer-events: none; }
.cta-inner { position: relative; z-index: 1; }
.cta-eyebrow { display: inline-block; color: #ff7a80; font-weight: 800; font-size: .76rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 10px; }

/* ── Generic content helpers ── */
.page-lead { font-size: 1.12rem; color: var(--muted); max-width: 72ch; margin: 0 0 28px; }
.callout { background: var(--brand-soft); border: 1px solid #f3c6c8; border-left: 4px solid var(--brand); border-radius: 12px; padding: 20px 24px; margin: 8px 0 0; }
.callout h3 { margin: 0 0 6px; font-size: 1.1rem; }
.callout p { margin: 0; color: #7c2e32; }

/* ── Contact / two-column form layout ── */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; box-shadow: var(--shadow-sm); }
.ci-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.25rem; flex-shrink: 0; }
.contact-item h3 { margin: 0 0 3px; font-size: 1rem; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); font-size: .94rem; word-break: break-word; }
.contact-item a:hover { color: var(--brand); }
.form-card.full { max-width: none; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── Legal document pages ── */
.legal-meta { display: inline-flex; gap: 8px; align-items: center; background: var(--brand-soft); color: var(--brand-dark);
  border: 1px solid #f3c6c8; border-radius: 999px; padding: 6px 14px; font-size: .82rem; font-weight: 700; }
.legal-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: clamp(24px, 4vw, 52px); box-shadow: var(--shadow-sm); max-width: 920px; margin: 0 auto; }
.legal-card.legal h2 { font-size: 1.3rem; margin-top: 1.9em; padding-left: 15px; border-left: 4px solid var(--brand); }
.legal-card.legal h2:first-child { margin-top: 0; }
.legal-card.legal p, .legal-card.legal li { color: var(--text); }
.legal-card.legal a { font-weight: 600; }

/* ── BDIX tester panel (highlighted tool card) ── */
.tester-panel { background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.tester-panel-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px; background: linear-gradient(120deg, var(--brand-soft), #fff 72%); border-bottom: 1px solid var(--border); }
.tp-ico { flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 1.5rem; box-shadow: 0 8px 20px rgba(232,32,42,.30); }
.tester-panel-head h2 { margin: 0; font-size: 1.3rem; }
.tester-panel-head p { margin: 3px 0 0; color: var(--muted); font-size: .92rem; }
.tester-panel-head p strong { color: var(--ink); }
.tester-panel-body { padding: clamp(20px, 3vw, 30px); }
.tester-empty { grid-column: 1 / -1; text-align: center; padding: 28px 16px; }
.tester-empty-ico { font-size: 2.3rem; display: block; margin-bottom: 10px; opacity: .85; }
.tester-empty p { margin: 0; line-height: 1.7; }

/* ── Accessibility & UX utilities ── */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 700; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid rgba(232,32,42,.55); outline-offset: 2px; border-radius: 5px; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(16,18,24,.08); }

/* honeypot (hidden from humans) */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* server search empty state */
.list-empty { text-align: center; color: var(--muted); padding: 32px 0; font-size: 1.02rem; }

/* back-to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--brand); color: #fff; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 8px 22px rgba(232,32,42,.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .15s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-dark); transform: translateY(-2px); }
@media (max-width: 480px) { .to-top { right: 14px; bottom: 14px; } }

/* ── Built-in live chat ── */
.lc { position: fixed; right: 20px; bottom: 20px; z-index: 70; }
.lc-fab {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: var(--brand); position: relative;
  box-shadow: 0 10px 26px rgba(232,32,42,.4); transition: transform .15s, box-shadow .2s;
}
.lc-fab:hover { transform: translateY(-2px) scale(1.05); }
.lc-fab svg { width: 30px; height: 30px; }
.lc.lc-open .lc-fab { display: none; }
.lc-badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: #16161d; color: #fff; font-size: .72rem; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.lc-panel {
  position: absolute; right: 0; bottom: 0; width: 350px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 90px);
  background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; animation: lcIn .2s ease both;
}
@keyframes lcIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.lc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.lc-title { display: block; font-size: 1.02rem; }
.lc-sub { display: flex; align-items: center; gap: 6px; font-size: .76rem; opacity: .9; margin-top: 1px; }
.lc-online { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: spark 1.8s infinite; }
.lc-close { background: rgba(255,255,255,.18); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 1rem; }
.lc-close:hover { background: rgba(255,255,255,.3); }
.lc-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 10px; }
.lc-msg { display: flex; flex-direction: column; max-width: 82%; }
.lc-msg.lc-in { align-self: flex-start; align-items: flex-start; }
.lc-msg.lc-out { align-self: flex-end; align-items: flex-end; }
.lc-bubble { padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45; word-wrap: break-word; }
.lc-in .lc-bubble { background: #fff; color: var(--ink); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.lc-out .lc-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.lc-time { font-size: .68rem; color: var(--muted); margin-top: 3px; }
.lc-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border); background: #fff; }
.lc-input input { flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px; font-size: .95rem; font-family: inherit; }
.lc-input input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.lc-send { flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; cursor: pointer; font-size: 1rem; }
.lc-send:hover { background: var(--brand-dark); }
/* preset auto-answer chips */
.lc-chips { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin-top: 2px; }
.lc-chips-hint { font-size: .72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.lc-chip { background: #fff; border: 1px solid var(--brand); color: var(--brand); border-radius: 14px; border-bottom-left-radius: 4px;
  padding: 8px 14px; font-size: .88rem; font-weight: 600; cursor: pointer; text-align: left; max-width: 95%; font-family: inherit; line-height: 1.35; }
.lc-chip:hover { background: var(--brand-soft); }
/* typing indicator */
.lc-typing .lc-bubble { display: inline-flex; gap: 4px; padding: 12px 14px; }
.lc-typing .lc-bubble span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: lcdot 1s infinite; }
.lc-typing .lc-bubble span:nth-child(2) { animation-delay: .15s; }
.lc-typing .lc-bubble span:nth-child(3) { animation-delay: .3s; }
@keyframes lcdot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
/* chat sits bottom-right */
@media (max-width: 480px) {
  .lc { right: 14px; bottom: 14px; }
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ════════════════════════════════════════════════════════════════════════
   v2 — Modern SaaS refresh (overrides the base above)
   ════════════════════════════════════════════════════════════════════════ */
:root {
  --brand-grad: linear-gradient(135deg, #FF3B41 0%, #E8202A 55%, #C2151C 100%);
  --bg-alt: #F5F7FA;
  --border: #E9ECF1;
  --muted: #69707E;
  --radius: 16px;
  --radius-lg: 22px;
  --ring: 0 0 0 4px rgba(232,32,42,.16);
  --shadow-sm: 0 1px 2px rgba(16,18,24,.05), 0 2px 6px rgba(16,18,24,.05);
  --shadow:    0 6px 18px rgba(16,18,24,.06), 0 18px 48px rgba(16,18,24,.08);
  --shadow-lg: 0 12px 30px rgba(16,18,24,.10), 0 30px 70px rgba(16,18,24,.12);
  --shadow-brand: 0 10px 26px rgba(232,32,42,.30);
}

/* Header: crisper, elevates on scroll */
.site-header { background: rgba(255,255,255,.78); backdrop-filter: saturate(140%) blur(14px); transition: box-shadow .25s, background .25s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(16,18,24,.08); background: rgba(255,255,255,.92); }
.site-nav a { position: relative; }
.site-nav a:not(.btn-nav)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; background: var(--brand); border-radius: 2px; transition: right .25s ease; }
.site-nav a:not(.btn-nav):hover::after, .site-nav a.active::after { right: 0; }
.btn-nav { border-radius: 11px; background: var(--brand-grad); box-shadow: var(--shadow-brand); }

/* Buttons: gradient, glow, focus ring */
.btn { border-radius: 12px; transition: transform .15s, box-shadow .2s, background .2s, filter .2s; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--brand-grad); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-grad); filter: brightness(1.05); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(232,32,42,.38); }
.btn-ghost { background: #fff; border: 1.5px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }

/* Hero: layered mesh + faint grid */
.hero, .page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(820px 420px at 92% -12%, rgba(232,32,42,.14), transparent 66%),
    radial-gradient(620px 380px at -6% 4%, rgba(80,110,255,.08), transparent 62%),
    linear-gradient(180deg, #fff, #fbfcfe);
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(16,18,24,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(16,18,24,.035) 1px, transparent 1px);
  background-size: 42px 42px; -webkit-mask-image: radial-gradient(circle at 80% 0%, #000, transparent 70%); mask-image: radial-gradient(circle at 80% 0%, #000, transparent 70%);
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); color: var(--ink); font-weight: 700; font-size: .82rem; padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.hero-stats strong { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Section headers: gradient underline */
.section-head h2::after, .section-head.center h2::after { background: var(--brand-grad); height: 4px; border-radius: 4px; }
.section-head.center h2::after { margin-left: auto; margin-right: auto; }

/* Cards: rounder, layered shadow, lift + top accent on hover */
.feature-card, .step-card, .post-card, .status-card, .tester-panel, .form-card, .legal-card, .callout, .contact-item, .author-box, .post-cta {
  border-radius: var(--radius-lg);
}
.feature-card, .post-card, .step-card {
  position: relative; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .25s, border-color .2s; overflow: hidden;
}
.feature-card::before, .post-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--brand-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.feature-card:hover, .post-card:hover, .step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card:hover::before, .post-card:hover::before { transform: scaleX(1); }
.feature-ico { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-soft); font-size: 1.6rem; margin-bottom: 12px; }

/* ── Server lists v2 (cards with actions + sort) ── */
#serverList.server-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
#serverList .server-card { display: flex; align-items: center; flex-wrap: nowrap; gap: 10px; border-radius: 14px; box-shadow: var(--shadow-sm); padding: 12px 14px; }
#serverList .server-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.server-open { display: flex; align-items: center; gap: 9px; flex: 1 1 auto; min-width: 0; overflow: hidden; color: var(--ink); font-weight: 600; }
.server-open:hover { text-decoration: none; color: var(--brand); }
.server-open .server-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-ico { flex-shrink: 0; font-size: 1.05rem; }
.server-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; flex-wrap: nowrap; }
.srv-btn { flex: 0 0 auto; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; font-size: .95rem; line-height: 1; transition: all .15s; text-decoration: none; }
.srv-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); text-decoration: none; transform: translateY(-1px); }
.srv-btn.is-copied { color: var(--ok); border-color: var(--ok); background: #ecfdf3; }
.srv-btn.is-up { color: var(--ok); border-color: var(--ok); background: #ecfdf3; }
.srv-btn.is-down { color: #b42318; border-color: #fda29b; background: #fef3f2; }
.srv-btn.is-testing { color: var(--brand); border-color: var(--brand); }
.srv-btn.is-testing svg, .srv-spin { animation: srvspin .8s linear infinite; }
@keyframes srvspin { to { transform: rotate(360deg); } }

.list-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.list-toolbar #serverSearch { flex: 1; min-width: 200px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; font-size: .95rem; font-family: inherit; background: #fff; box-shadow: var(--shadow-sm); }
.list-toolbar #serverSearch:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.list-sort { border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; font-size: .92rem; font-family: inherit; background: #fff; color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); }
.list-sort:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.list-count { color: var(--muted); font-weight: 600; font-size: .9rem; }

/* Toast for copy feedback */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 200; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Hero trust strip + freshness badge (SXO) */
.trust-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 26px; padding: 0; }
.trust-strip li { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: .9rem; }
.trust-strip li::before { content: "✓"; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #e7f7ed; color: var(--ok); font-size: .72rem; font-weight: 800; }
.list-updated { color: var(--muted); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.list-updated::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

/* ── Header search ── */
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }
.nav-search { position: relative; display: flex; align-items: center; }
.nav-search-ico { position: absolute; left: 11px; display: flex; color: var(--muted); pointer-events: none; }
.nav-search-ico .icon { width: 16px; height: 16px; }
.nav-search input { width: 168px; border: 1px solid var(--border); border-radius: 999px; padding: 9px 14px 9px 34px; font-size: .9rem; font-family: inherit; background: var(--bg-alt); color: var(--ink); transition: width .2s, box-shadow .2s, border-color .2s, background .2s; }
.nav-search input:focus { outline: none; width: 212px; background: #fff; border-color: var(--brand); box-shadow: var(--ring); }

/* Search results page form */
.search-page-form { display: flex; gap: 10px; max-width: 560px; margin-top: 18px; }
.search-page-form input { flex: 1; border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; font-size: 1rem; font-family: inherit; background: #fff; box-shadow: var(--shadow-sm); }
.search-page-form input:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }

@media (max-width: 820px) {
  .nav-search { width: 100%; margin: 10px 0 2px; }
  .nav-search input, .nav-search input:focus { width: 100%; }
}
