/* === API Platform — waterfeetbot 风格动态主题 === */
:root {
  --bg: #1a1020;
  --bg-2: #2d1a3a;
  --bg-3: #1f1128;
  --glass-bg: rgba(255,255,255,.035);
  --glass-border: rgba(255,255,255,.06);
  --text: #f5e8f0;
  --text-dim: #9a7c98;
  --text-muted: rgba(245,232,240,.45);
  --brand: #f472b6;
  --brand-light: #f9a8d4;
  --brand-blue: #a78bfa;
  --accent-purple: #c084fc;
  --accent-blue: #93c5fd;
  --accent1: #f472b6;
  --accent2: #a78bfa;
  --accent3: #f9a8d4;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

/* ====== 动态背景层：漂浮光斑 + 上升粒子 ====== */
.bg-deco, .bg-particles {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.deco-shape {
  position: absolute; border-radius: 50%; pointer-events: none; opacity: .08;
  filter: blur(60px);
}
.deco-shape-1 {
  width: 520px; height: 520px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 50%, var(--brand-blue) 100%);
  top: -140px; right: -120px;
  animation: decoFloat 20s ease-in-out infinite;
}
.deco-shape-2 {
  width: 380px; height: 380px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  bottom: -80px; left: -100px;
  animation: decoFloat 25s ease-in-out infinite reverse;
}
@keyframes decoFloat {
  0%,100% { transform: translate(0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.bg-particles .particle {
  position: absolute; bottom: -20px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 50%, var(--brand-blue) 100%);
  opacity: 0;
  animation: particleFloat linear forwards;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translateY(0) translate(0) scale(1); }
  10% { opacity: .15; }
  50% { transform: translateY(-80vh) translate(50px) scale(.8); }
  90% { opacity: .15; }
  100% { opacity: 0; transform: translateY(-100vh) translate(100px) scale(.5); }
}

/* ====== 基础页面 ====== */
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 柔和环境光晕 */
body::before {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(600px circle at 15% 20%, rgba(244,114,182,.06), transparent),
    radial-gradient(500px circle at 85% 60%, rgba(167,139,250,.05), transparent),
    radial-gradient(400px circle at 50% 80%, rgba(192,132,252,.04), transparent),
    radial-gradient(700px circle at 70% 10%, rgba(147,197,253,.03), transparent);
  animation: breathe 8s ease-in-out infinite alternate;
}
@keyframes breathe {
  0% { opacity: .6 }
  100% { opacity: 1 }
}

/* 微光扫描 */
body::after {
  content: '';
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(244,114,182,.015) 45%,
    rgba(244,114,182,.025) 50%,
    rgba(244,114,182,.015) 55%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: shimmer 12s linear infinite;
}
@keyframes shimmer {
  0% { background-position: -200% 0 }
  100% { background-position: 200% 0 }
}

/* ====== Nav ====== */
.site-header, .app-header, nav, header {
  background: rgba(26,16,32,.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(244,114,182,.06) !important;
}
.nav_jsxs { display: flex; align-items: center; justify-content: center; padding: 12px 32px; gap: 6px; flex-wrap: wrap; }
.nav_jsxs a {
  color: rgba(245,232,240,.55) !important; text-decoration: none; padding: 8px 20px;
  border-radius: 100px; font-size: 14px; font-weight: 500; transition: all .25s;
  border: 1px solid transparent;
}
.nav_jsxs a:hover {
  color: #fff !important; background: rgba(244,114,182,.12) !important;
  border-color: rgba(244,114,182,.25) !important;
  box-shadow: 0 0 20px rgba(244,114,182,.12);
}

/* ====== Hero ====== */
.box-text {
  padding: 100px 24px 70px !important; text-align: center; position: relative; z-index: 1;
}
.box-text h1 {
  font-size: clamp(40px, 6vw, 62px); font-weight: 900; letter-spacing: 3px; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #f9a8d4 35%, #a78bfa 70%, #93c5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 300% 300%; animation: titleShine 8s ease infinite;
}
@keyframes titleShine {
  0%,100% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
}
.box-text > p { font-size: 17px; color: var(--text-dim); max-width: 640px; margin: 0 auto 24px; line-height: 1.8; }
.package-amount {
  display: inline-flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,.03); border: 1px solid rgba(244,114,182,.1);
  border-radius: 100px; padding: 10px 28px; margin-top: 16px;
}
.package-amount strong {
  background: linear-gradient(135deg, #f472b6, #f9a8d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-size: 22px; font-weight: 900;
}
.package-amount::before { content: '\26A1'; font-size: 18px; filter: drop-shadow(0 0 6px rgba(244,114,182,.5)); }
.package-amount::after { content: '\23F1\FE0F 低延迟'; font-size: 13px; color: var(--text-dim); }

/* ====== Stats ====== */
.stats-row {
  display: flex; justify-content: center; gap: 16px; margin: 24px auto 0; max-width: 600px;
}
.stat-item {
  background: rgba(45,26,58,.55); backdrop-filter: blur(12px);
  border: 1px solid rgba(244,114,182,.08); border-radius: var(--radius-md);
  padding: 16px 24px; text-align: center; min-width: 130px; transition: all .4s;
  position: relative; overflow: hidden;
}
.stat-item::after {
  content: '';
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(200px circle at var(--mx,50%) var(--my,50%), rgba(244,114,182,.08), transparent);
  transition: opacity .4s;
}
.stat-item:hover { 
  background: rgba(244,114,182,.08); border-color: rgba(244,114,182,.18); transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(244,114,182,.12);
}
.stat-item:hover::after { opacity: 1; }
.stat-num {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, #f472b6, #a78bfa, #93c5fd);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-label { font-size: 11px; color: var(--text-dim); margin-top: 4px; text-transform: uppercase; letter-spacing: 1.5px; }

/* ====== Search ====== */
.search-wraper { max-width: 520px; margin: 24px auto 0; }
.search-wraper .form-control, .form-control, input[type=text], textarea, select {
  background: rgba(255,255,255,.04) !important;
  border: 1px solid rgba(244,114,182,.1) !important;
  color: #fff !important; border-radius: 100px !important;
  padding: 13px 22px !important; font-size: 15px; outline: none !important;
  transition: all .3s;
}
.form-control:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--brand) !important;
  box-shadow: 0 0 0 3px rgba(244,114,182,.1), 0 0 30px rgba(244,114,182,.08) !important;
  background: rgba(255,255,255,.06) !important;
}
.form-control::placeholder, input::placeholder { color: rgba(245,232,240,.25) !important; }

/* ====== API Cards ====== */
.block, .tile, .layui-card, .card {
  background: rgba(45,26,58,.6) !important;
  backdrop-filter: blur(16px) !important; -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(244,114,182,.1) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.04) !important;
  transition: all .5s cubic-bezier(.4,0,.2,1) !important; overflow: hidden;
  position: relative; z-index: 1;
}
.block::after {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(500px circle at 50% 0%, rgba(244,114,182,.08), transparent 60%);
  transition: opacity .5s;
}
.block:hover { 
  transform: translateY(-8px) scale(1.02); 
  border-color: rgba(244,114,182,.25) !important; 
  box-shadow: 0 16px 48px rgba(244,114,182,.12), 0 4px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06) !important; 
}
.block:hover::after { opacity: 1; }

.block-content { padding: 24px !important; position: relative; z-index: 1; }
.block .h4, .block h3, .block h4 { font-size: 17px !important; font-weight: 700 !important; color: var(--text) !important; margin-bottom: 8px; }
.block .text-muted, .block p { color: var(--text-dim) !important; font-size: 13px; line-height: 1.6; }

/* ====== Ribbon / Badge ====== */
.ribbon-modern .ribbon-box {
  font-size: 11px; font-weight: 600; padding: 3px 10px; line-height: 1;
  border-radius: 100px !important; top: 12px !important; right: 12px !important;
  border: 1px solid rgba(244,114,182,.25) !important;
  background: rgba(244,114,182,.12) !important; color: var(--brand-light) !important;
  backdrop-filter: blur(8px) !important; box-shadow: 0 2px 8px rgba(0,0,0,.2) !important;
  left: auto !important; bottom: auto !important; transform: none !important;
  position: absolute !important; text-align: center !important; white-space: nowrap;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
}
.ribbon-success .ribbon-box { background: rgba(244,114,182,.12) !important; color: var(--brand-light) !important; border: 1px solid rgba(244,114,182,.25) !important; }
.ribbon-danger .ribbon-box { background: rgba(239,68,68,.15) !important; color: #fca5a5 !important; border: 1px solid rgba(239,68,68,.25) !important; }
.ribbon-modern::before, .ribbon-modern::after,
.ribbon-modern .ribbon-box:before,
.ribbon-success.ribbon-modern .ribbon-box:before { display: none !important; }
.ribbon { background: transparent !important; }

/* ====== Tables ====== */
.layui-table, .table, .layui-table-box table {
  background: transparent !important; color: var(--text) !important;
  border-collapse: separate; border-spacing: 0;
}
.layui-table th, .table thead th {
  background: rgba(255,255,255,.03) !important; color: var(--text-dim) !important;
  border-bottom: 1px solid rgba(244,114,182,.08) !important;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding: 12px 16px;
}
.layui-table td, .table tbody td, .layui-table-box td {
  color: var(--text) !important; border-bottom: 1px solid rgba(244,114,182,.04) !important; padding: 12px 16px;
}
.layui-table tbody tr:hover, .table tbody tr:hover { background: rgba(244,114,182,.04) !important; }

/* ====== Buttons ====== */
.btn, .layui-btn, button[type=submit], button[type=button], .send_http_request {
  border-radius: 100px !important; font-weight: 600 !important; letter-spacing: .3px !important;
  padding: 10px 28px !important; border: none !important; cursor: pointer !important;
  background: linear-gradient(135deg, var(--accent1), var(--accent2)) !important; color: #fff !important;
  box-shadow: 0 2px 12px rgba(244,114,182,.25) !important;
  transition: all .3s cubic-bezier(.4,0,.2,1) !important;
  position: relative; overflow: hidden;
}
.btn::before, .layui-btn::before, button::before {
  content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
  transition: left .5s;
}
.btn:hover::before, button:hover::before { left: 100%; }
.btn:hover, .layui-btn:hover, button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(244,114,182,.35) !important;
  filter: brightness(1.08);
}
.btn-success { background: linear-gradient(135deg, #10b981, #059669) !important; box-shadow: 0 2px 12px rgba(16,185,129,.25) !important; }
.btn-success:hover { box-shadow: 0 8px 30px rgba(16,185,129,.4) !important; }
.btn-danger, .del_btn { background: linear-gradient(135deg, #ef4444, #dc2626) !important; box-shadow: 0 2px 12px rgba(239,68,68,.25) !important; }

/* Send request button */
.send_http_request {
  background: linear-gradient(135deg, #f472b6, #a78bfa, #93c5fd) !important;
  background-size: 200% 200% !important; animation: btnShift 3s ease infinite !important;
  font-size: 16px !important; padding: 12px 32px !important;
  box-shadow: 0 4px 24px rgba(244,114,182,.35) !important;
}
@keyframes btnShift { 0%,100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
.send_http_request:hover { transform: translateY(-3px) scale(1.03) !important; box-shadow: 0 12px 40px rgba(167,139,250,.45) !important; }

/* ====== Badges ====== */
.layui-badge, .badge, .label { border-radius: 100px !important; padding: 5px 14px !important; font-weight: 600; font-size: 11px; }
.layui-bg-green { background: rgba(16,185,129,.15) !important; color: #6ee7b7 !important; border: 1px solid rgba(16,185,129,.2) !important; }
.layui-bg-blue { background: rgba(147,197,253,.15) !important; color: #93c5fd !important; border: 1px solid rgba(147,197,253,.2) !important; }
.layui-bg-black { background: rgba(255,255,255,.06) !important; color: #e0e7ff !important; border: 1px solid rgba(255,255,255,.08) !important; }

/* ====== Code / Pre ====== */
pre, code, .layui-code, #return_case {
  background: rgba(0,0,0,.3) !important; color: #e2d5e8 !important;
  border: 1px solid rgba(244,114,182,.08) !important; border-radius: var(--radius-md) !important;
  padding: 18px !important; font-family: "SF Mono","Fira Code",Consolas,monospace !important;
  font-size: 13px !important; line-height: 1.7 !important;
}
#return_case { background: rgba(0,0,0,.45) !important; max-height: 500px; overflow-y: auto; }

/* ====== Tabs ====== */
.layui-tab-title { border-bottom: 1px solid rgba(244,114,182,.06) !important; }
.layui-tab-title li { color: var(--text-dim) !important; padding: 0 28px !important; font-size: 14px; transition: .2s; }
.layui-tab-title li:hover { color: rgba(245,232,240,.75) !important; }
.layui-tab-title .layui-this { color: #fff !important; font-weight: 700; }
.layui-tab-title .layui-this:after { border: none !important; height: 2px; background: var(--accent1); border-radius: 1px; }

/* ====== API tester ====== */
.container label, .container code { color: var(--text-dim); }
#http_method { background: rgba(244,114,182,.1) !important; border: 1px solid rgba(244,114,182,.15) !important; color: #fff !important; border-radius: 100px !important; }
#request_url { background: rgba(0,0,0,.2) !important; border: 1px solid rgba(244,114,182,.08) !important; color: #a5b4fc !important; font-family: monospace !important; border-radius: var(--radius-sm) !important; }

/* ====== Blockquote ====== */
.layui-elem-quote, blockquote {
  background: linear-gradient(135deg, rgba(244,114,182,.05), rgba(167,139,250,.03)) !important;
  border-left: 3px solid var(--accent1) !important; color: var(--text) !important;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0 !important; padding: 16px 20px;
}

/* ====== Login ====== */
.login-content .login-box {
  background: rgba(45,26,58,.45) !important;
  backdrop-filter: blur(30px) !important; -webkit-backdrop-filter: blur(30px) !important;
  border: 1px solid rgba(244,114,182,.1) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.4) !important;
}
.login-head, .login-head i { color: var(--text) !important; font-size: 20px; }
.login-content label, .form-group label { color: var(--text-dim) !important; }
.login-content { background: transparent !important; }
.login-head { border-bottom: 1px solid rgba(244,114,182,.08) !important; margin-bottom: 20px !important; padding-bottom: 16px !important; }
.login-form .form-group { margin-bottom: 16px; }

/* ====== Fieldset ====== */
.layui-elem-field legend {
  font-size: 24px; font-weight: 800;
  background: linear-gradient(135deg, #f9a8d4, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.layui-elem-field { padding: 24px !important; }

/* ====== Footer ====== */
footer, .site-footer { background: transparent !important; border-top: 1px solid rgba(244,114,182,.04) !important; color: var(--text-dim) !important; padding: 40px 20px !important; text-align: center; font-size: 12px; }

/* ====== Section ====== */
.linep { color: var(--text) !important; font-weight: 700; font-size: 15px; }
.linep:before { background: var(--accent1); border-radius: 3px; width: 4px; }

/* ====== Scrollbar ====== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(244,114,182,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(244,114,182,.25); }

/* ====== 全局暗色覆盖 ====== */
.layui-layer, .layui-layer-dialog, .layui-layer-msg, .layui-layer-content, .layui-layer-title,
.layui-layer-btn, .layui-layer * { background: #1f1128 !important; color: var(--text) !important; border-color: rgba(244,114,182,.08) !important; }
.layui-layer .layui-layer-title { background: rgba(0,0,0,.2) !important; border-bottom: 1px solid rgba(244,114,182,.08) !important; }
.layui-layer-btn .layui-btn-primary { background: rgba(255,255,255,.06) !important; color: var(--text) !important; border: 1px solid rgba(244,114,182,.12) !important; }

/* ====== Doc Modal skin ====== */
.layer-doc-modal { border-radius: 16px !important; overflow: hidden; box-shadow: 0 24px 80px rgba(0,0,0,.7) !important; }
.layer-doc-modal .layui-layer-title { background: linear-gradient(135deg, #2d1a3a, #1a1020) !important; color: #fff !important; font-size: 15px; font-weight: 700; height: 52px; line-height: 52px; padding: 0 60px 0 24px; border-bottom: 1px solid rgba(244,114,182,.15) !important; }
.layer-doc-modal .layui-layer-setwin { top: 14px; right: 16px; }
.layer-doc-modal .layui-layer-setwin .layui-layer-close1 { background: rgba(255,255,255,.06) !important; color: rgba(255,255,255,.5) !important; border-radius: 50%; width: 28px; height: 28px; line-height: 28px; text-align: center; transition: all .3s; }
.layer-doc-modal .layui-layer-setwin .layui-layer-close1:hover { background: rgba(239,68,68,.2) !important; color: #fff !important; }
.layer-doc-modal .layui-layer-content { background: transparent !important; padding: 0 !important; }
.layer-doc-modal .layui-layer-iframe { background: #0a0a1a !important; }
.layui-form-select dl, .layui-form-select dl dd { background: #1f1128 !important; color: var(--text) !important; border-color: rgba(244,114,182,.08) !important; }
.layui-form-select dl dd:hover { background: rgba(244,114,182,.12) !important; color: #fff !important; }
.layui-laypage a, .layui-laypage span { background: rgba(255,255,255,.04) !important; color: var(--text) !important; border-color: rgba(244,114,182,.06) !important; }
.layui-laypage .layui-laypage-curr .layui-laypage-em { background: var(--brand) !important; }
.layui-form-checkbox i, .layui-form-radio i { background: rgba(255,255,255,.06) !important; border-color: rgba(244,114,182,.12) !important; }
.layui-form-onswitch { background: var(--brand) !important; border-color: var(--brand) !important; }
.layui-textarea { background: rgba(255,255,255,.04) !important; color: var(--text) !important; border-color: rgba(244,114,182,.06) !important; }
body { color: var(--text) !important; }
b, strong { color: #fff !important; }
a { color: #93c5fd !important; }
a:hover { color: #bfdbfe !important; }
label, .control-label { color: rgba(245,232,240,.55) !important; }
small, .help-block { color: var(--text-dim) !important; }
code:not(pre code) { background: rgba(255,255,255,.06) !important; color: #fbbf24 !important; padding: 2px 6px; border-radius: 4px; }
.disabled, [disabled] { color: rgba(245,232,240,.2) !important; }

/* ====== Container ====== */
.layui-container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.content-boxed { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }

/* ====== Animations ====== */
.block, .tile, .layui-card, .card, .stat-item, .widget-small, .btn, .layui-btn, button {
  transition: background-color .4s, border-color .4s, box-shadow .4s, transform .4s cubic-bezier(.4,0,.2,1);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
  /* Hero */
  .box-text { padding: 50px 16px 30px !important; }
  .box-text h1 { font-size: clamp(26px, 7vw, 36px) !important; letter-spacing: 1px; }
  .box-text > p { font-size: 14px; padding: 0 12px; line-height: 1.6; }

  /* Stats row — stack vertically */
  .stats-row { flex-direction: column; align-items: center; gap: 12px; }
  .stat-item { width: 100%; max-width: 280px; min-width: auto; padding: 12px 16px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 10px; }

  /* Package amount */
  .package-amount { display: none !important; }

  /* Search */
  .search-wraper { max-width: 100%; margin: 16px 12px 0; }
  .search-wraper .form-control { padding: 11px 16px !important; font-size: 14px; }

  /* Navigation */
  /* Navigation — responsive & centered on mobile (override oneui.css !important) */
  .nav_jsxs {
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 8px 10px !important;
    text-align: center !important;
    overflow: visible !important;
  }
  .nav_jsxs > span { float: none !important; }
  .nav_jsxs a {
    padding: 6px 12px !important;
    font-size: 12px !important;
    border-radius: 100px !important;
    white-space: nowrap !important;
  }

  /* API cards — full width */
  .block { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
  .block-content { padding: 16px !important; }
  .container { padding: 0 12px; width: 100% !important; }

  /* API doc / detail page */
  .container label { display: block; margin-bottom: 4px; }
  #request_url { font-size: 12px; }

  /* Buttons */
  .btn, .layui-btn, button { padding: 8px 16px !important; font-size: 13px; }

  /* Code blocks */
  pre, code, .layui-code, #return_case { font-size: 11px !important; padding: 10px !important; }

  /* Footer */
  .footer { padding: 30px 16px !important; min-height: 160px !important; font-size: 11px !important; }
  .footer .container { padding: 0 8px; }

  /* Fish canvas — reduce opacity on small screens */
  .fish-water canvas { opacity: 0.7; }

  /* Particles — reduce for performance */
  .bg-particles .particle { opacity: .08; }
}

/* Extra small phones */
@media (max-width: 480px) {
  .box-text { padding: 40px 12px 24px !important; }
  .box-text h1 { font-size: clamp(22px, 8vw, 28px) !important; letter-spacing: 0.5px; }
  .box-text > p { font-size: 13px; }
  .stat-item { max-width: 100%; }
  .stats-row { gap: 8px; }
  .stat-num { font-size: 20px; }
  .footer { min-height: 140px !important; padding: 24px 12px !important; }
  .bg-particles .particle { opacity: .06; }

  /* Navigation — extra small phones */
  .nav_jsxs { gap: 3px !important; padding: 6px 8px !important; }
  .nav_jsxs a { padding: 5px 10px !important; font-size: 11px !important; }
}

/* ====== Footer Fish Tank ====== */
.footer { 
  position: relative !important; background: transparent !important;
  overflow: visible !important;
  min-height: 240px !important;
  padding: 0 !important;
}
.footer-inner {
  position: relative; z-index: 2;
  padding: 30px 20px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
/* Stat badges row */
.footer-stats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.fstat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(45,26,58,.6); backdrop-filter: blur(12px);
  border: 1px solid rgba(244,114,182,.12); border-radius: 100px;
  padding: 8px 18px; transition: all .4s;
  animation: badgeIn .6s ease both;
  position: relative; overflow: hidden;
}
/* Shine sweep across badge */
.fstat-badge::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.06) 50%, transparent 70%);
  animation: badgeShine 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes badgeShine {
  0%,100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.fstat-badge:nth-child(1) { animation-delay: 0s; border-color: rgba(244,114,182,.25); box-shadow: 0 0 12px rgba(244,114,182,.06); }
.fstat-badge:nth-child(2) { animation-delay: .1s; border-color: rgba(167,139,250,.25); box-shadow: 0 0 12px rgba(167,139,250,.06); }
.fstat-badge:nth-child(3) { animation-delay: .2s; border-color: rgba(147,197,253,.25); box-shadow: 0 0 12px rgba(147,197,253,.06); }
.fstat-badge:hover { 
  background: rgba(244,114,182,.1); transform: translateY(-3px) scale(1.03); 
  box-shadow: 0 8px 30px rgba(244,114,182,.15) !important; 
}
.fstat-badge:hover::before { animation: none; }

.fstat-icon { font-size: 16px; filter: drop-shadow(0 0 4px rgba(255,255,255,.3)); animation: iconPulse 2s ease-in-out infinite; }
@keyframes iconPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.fstat-badge:nth-child(2) .fstat-icon { animation-delay: .5s; }
.fstat-badge:nth-child(3) .fstat-icon { animation-delay: 1s; }

.fstat-num {
  font-size: 18px; font-weight: 900;
  background: linear-gradient(135deg, #f472b6 0%, #a78bfa 50%, #93c5fd 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  background-size: 200% 200%; animation: numGradient 3s ease infinite;
  text-shadow: none; filter: drop-shadow(0 0 6px rgba(244,114,182,.3));
}
@keyframes numGradient { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.fstat-label { font-size: 11px; color: var(--text-dim); letter-spacing: 1px; font-weight: 500; }

@keyframes badgeIn {
  from { opacity: 0; transform: translateY(16px) scale(.9); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Content row */
.footer-content {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 30px;
  max-width: 720px; width: 100%;
}
.footer-about {
  flex: 1 1 280px; text-align: left; 
  color: var(--text-dim); font-size: 12px; line-height: 1.8;
  padding: 14px 18px;
  background: rgba(45,26,58,.35); border: 1px solid rgba(244,114,182,.08);
  border-radius: 16px; backdrop-filter: blur(8px);
}
.footer-about p, .footer-about div { margin: 0; }
.footer-tagline { 
  color: rgba(245,232,240,.3); font-size: 11px; margin-top: 8px !important; 
  padding-top: 8px; border-top: 1px solid rgba(244,114,182,.08);
}
.footer-tagline strong { 
  background: linear-gradient(135deg, #f472b6, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-weight: 800; font-size: 14px;
}

/* Link tags */
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; padding-top: 14px; }
.link-tag {
  display: inline-block;
  background: rgba(244,114,182,.08); border: 1px solid rgba(244,114,182,.12);
  border-radius: 100px; padding: 8px 18px; transition: all .35s;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  position: relative; overflow: hidden;
}
.link-tag::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(244,114,182,.2), rgba(167,139,250,.15));
  opacity: 0; transition: opacity .35s;
}
.link-tag:hover { 
  border-color: rgba(244,114,182,.35); transform: translateY(-2px); 
  box-shadow: 0 4px 20px rgba(244,114,182,.2);
}
.link-tag:hover::after { opacity: 1; }
.link-tag a { color: rgba(245,232,240,.5); text-decoration: none; position: relative; z-index: 1; }
.link-tag:hover a { color: rgba(245,232,240,.9); }

/* Bottom */
.footer-bottom { 
  padding-top: 12px; width: 100%; text-align: center;
  position: relative;
}
.footer-bottom::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,114,182,.15), rgba(167,139,250,.1), transparent);
}
.copy-text { font-size: 10px; color: rgba(245,232,240,.15); letter-spacing: 1px; }

/* Responsive */
@media (max-width: 768px) {
  .footer-inner { padding: 24px 14px 16px; gap: 14px; }
  .fstat-badge { padding: 6px 14px; }
  .fstat-num { font-size: 15px; }
  .fstat-label { font-size: 10px; }
  .footer-content { flex-direction: column; gap: 14px; align-items: center; }
  .footer-about { flex: none; text-align: center; max-width: 100%; }
  .footer-links { justify-content: center; padding-top: 0; }
}

/* ====== 404 ====== */
.s-403 h1 { font-size: 100px; background: linear-gradient(135deg, #f472b6, #a78bfa, #93c5fd) !important; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text !important; }
.s-403 p { color: var(--text-dim) !important; }

/* ===== Richer footer (brand + nav + status) ===== */
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start;
  gap: 24px; width: 100%; max-width: 860px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 14px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; letter-spacing: .5px; color: #fff;
  background: linear-gradient(135deg, #f472b6 0%, #a78bfa 50%, #93c5fd 100%);
  box-shadow: 0 6px 20px rgba(167,139,250,.35);
}
.brand-info { text-align: left; }
.brand-name {
  font-size: 20px; font-weight: 800; letter-spacing: .5px; line-height: 1.2;
  background: linear-gradient(135deg, #f9a8d4, #a78bfa);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.brand-desc { font-size: 11px; color: var(--text-dim); letter-spacing: .5px; margin-top: 3px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 38px; }
.footer-col { min-width: 78px; text-align: left; }
.footer-col h5 {
  margin: 0 0 12px; font-size: 13px; font-weight: 700;
  color: rgba(245,232,240,.72); letter-spacing: 1px;
}
.footer-col a {
  display: block; color: rgba(245,232,240,.45) !important; text-decoration: none !important;
  font-size: 12px; line-height: 2.1; transition: all .3s;
}
.footer-col a:hover { color: #f9a8d4 !important; padding-left: 4px; }

/* Status */
.status-line { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(245,232,240,.7); line-height: 2; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.6);
  animation: statusPulse 2s ease-out infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
  70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}
.status-sub { font-size: 11px; color: rgba(245,232,240,.35); line-height: 1.9; }

/* Bottom row: ICP + crafted note */
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 8px; padding-top: 14px; width: 100%; text-align: left;
}
.footer-bottom::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,114,182,.15), rgba(167,139,250,.1), transparent);
}
.footer-made { font-size: 10px; color: rgba(245,232,240,.18); letter-spacing: 1px; }

/* 4th stat badge variant */
.fstat-badge:nth-child(4) { animation-delay: .3s; border-color: rgba(147,197,253,.25); box-shadow: 0 0 12px rgba(147,197,253,.06); }
.fstat-badge:nth-child(4) .fstat-icon { animation-delay: 1.5s; }

/* Responsive */
@media (max-width: 768px) {
  .footer-top { flex-direction: column; gap: 18px; align-items: center; text-align: center; }
  .footer-brand { justify-content: center; }
  .brand-info { text-align: center; }
  .footer-nav { justify-content: center; gap: 28px; }
  .footer-col { text-align: center; }
  .footer-col a { text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-made { margin-top: 4px; }
}

/* === Compact footer (override) === */
.footer { min-height: auto !important; }
.footer-inner { padding: 16px 20px 12px !important; gap: 12px !important; }

.footer-main {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 22px; width: 100%; max-width: 1000px;
}
.footer-brand { gap: 10px; }
.brand-logo { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; box-shadow: 0 4px 14px rgba(167,139,250,.3); }
.brand-name { font-size: 15px; }
.brand-desc { font-size: 10px; margin-top: 1px; letter-spacing: .3px; }

.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a {
  color: rgba(245,232,240,.5) !important; text-decoration: none !important; font-size: 12px;
  transition: color .3s;
}
.footer-nav a:hover { color: #f9a8d4 !important; }

.footer-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.fstat-badge { padding: 4px 13px; border-radius: 100px; }
.fstat-icon { font-size: 13px; }
.fstat-num { font-size: 14px; }
.fstat-label { font-size: 10px; letter-spacing: .5px; }

.footer-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(245,232,240,.55); }
.footer-status .status-sep { color: rgba(245,232,240,.25); }
.status-dot { width: 7px; height: 7px; }

.footer-bottom { padding-top: 10px !important; }
.copy-text { font-size: 11px; }
.footer-made { font-size: 10px; }

@media (max-width: 768px) {
  .footer-main { flex-direction: column; gap: 10px; text-align: center; }
  .footer-brand { justify-content: center; }
  .footer-nav { justify-content: center; }
  .footer-status { justify-content: center; }
}

/* === Avg latency display in footer status === */
#avg-latency { color: #f9a8d4 !important; font-variant-numeric: tabular-nums; font-weight: 600; }
