/* =====================================================================
   xxxyyy · vvpn  —  Official site design system
   Mint-green, light, premium. Shared by index.html & member.html
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand mint scale */
  --mint-50:  #f0fff9;
  --mint-100: #dcfaef;
  --mint-200: #bff3df;
  --mint-300: #8fe8c5;
  --mint-400: #56d8a6;
  --mint-500: #22c08a;   /* primary */
  --mint-600: #12a576;   /* primary strong */
  --mint-700: #0b8460;
  --mint-800: #0a5f47;

  --ink:      #0a1f18;   /* near-black, green tinted */
  --ink-soft: #24352e;
  --muted:    #5d6f68;
  --muted-2:  #82958f;

  --bg:       #ffffff;
  --bg-soft:  #f3fbf7;
  --bg-mint:  #eafaf3;
  --surface:  #ffffff;
  --surface-2:#f7fcfa;

  --line:        rgba(10, 31, 24, 0.10);
  --line-strong: rgba(10, 31, 24, 0.16);

  --danger:  #e5533c;
  --warning: #e0a32e;
  --info:    #2f6df0;

  --grad-mint:  linear-gradient(135deg, #2bd29a 0%, #12a576 100%);
  --grad-soft:  linear-gradient(135deg, #eafaf3 0%, #f3fbf7 100%);
  --grad-ink:   linear-gradient(160deg, #0c1a14 0%, #08130e 100%);

  --shadow-sm: 0 2px 8px rgba(10, 31, 24, 0.06);
  --shadow:    0 16px 40px rgba(10, 50, 36, 0.10);
  --shadow-lg: 0 30px 80px rgba(10, 60, 42, 0.16);
  --shadow-mint: 0 18px 40px rgba(18, 165, 118, 0.28);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --container: 1180px;
  --nav-h: 70px;

  --font-display: "Inter", "PingFang SC", "Noto Sans SC", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "PingFang SC", "Noto Sans SC", "Helvetica Neue", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; font-weight: 750; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid rgba(18,165,118,0.5); outline-offset: 2px; border-radius: 6px; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section--tight { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mint-700);
  background: var(--mint-100);
  padding: 6px 14px; border-radius: var(--radius-pill);
  margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 17px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 26px; border-radius: var(--radius-pill);
  font-weight: 650; font-size: 15px; letter-spacing: 0.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--grad-mint); color: #fff; box-shadow: var(--shadow-mint); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px rgba(18,165,118,0.36); }
.btn--ghost { background: var(--mint-100); color: var(--mint-700); }
.btn--ghost:hover { background: var(--mint-200); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--mint-500); color: var(--mint-700); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #06120d; transform: translateY(-2px); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(10,40,28,0.06); }
.nav__inner { display: flex; align-items: center; gap: 18px; width: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.brand__by { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 14px; }
.nav__links a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-size: 14.5px; font-weight: 550; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav__links a:hover, .nav__links a.active { background: var(--mint-100); color: var(--mint-700); }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__cta-mobile { display: none; }

/* Language switcher */
.lang {
  display: inline-flex; align-items: center;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 3px; gap: 2px;
}
.lang button {
  font-size: 13px; font-weight: 650; color: var(--muted);
  padding: 5px 12px; border-radius: var(--radius-pill); transition: .2s;
}
.lang button.active { background: var(--ink); color: #fff; }
/* native <select> dropdown (12 languages) */
.lang__select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  font: inherit; font-size: 13.5px; font-weight: 650; color: var(--ink);
  background: transparent; border: 0; cursor: pointer;
  padding: 5px 26px 5px 12px; border-radius: var(--radius-pill); line-height: 1.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235d6f68' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center;
}
.lang__select:focus-visible { outline: 2px solid var(--mint-600); outline-offset: 2px; }
.lang__select option { color: #111; }

/* Mobile nav */
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s var(--ease); position: relative;
}
.nav__toggle span::before { position: absolute; top: -6px; }
.nav__toggle span::after { position: absolute; top: 6px; }
body.menu-open .nav__toggle span { background: transparent; }
body.menu-open .nav__toggle span::before { top: 0; transform: rotate(45deg); }
body.menu-open .nav__toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 84px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(43,210,154,0.18), transparent 60%),
    radial-gradient(50% 50% at 12% 30%, rgba(18,165,118,0.12), transparent 60%),
    linear-gradient(180deg, #f4fdf9 0%, #ffffff 60%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(18,165,118,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18,165,118,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  border-radius: var(--radius-pill); padding: 7px 8px 7px 14px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 24px;
}
.hero__badge b { color: var(--mint-700); }
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-500); box-shadow: 0 0 0 4px rgba(34,192,138,0.18); }
.hero h1 { font-size: clamp(34px, 5.2vw, 60px); letter-spacing: -0.03em; }
.hero h1 .accent { background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin-top: 22px; font-size: 18.5px; color: var(--muted); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__trust { margin-top: 30px; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.hero__trust .avatars { display: flex; }
.hero__trust .avatars span { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; margin-left: -8px; background: var(--grad-mint); display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.hero__metrics { margin-top: 40px; display: flex; gap: 34px; flex-wrap: wrap; }
.hero__metrics dt { font-size: 30px; font-weight: 800; font-family: var(--font-display); background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
.hero__metrics dd { margin: 2px 0 0; font-size: 13.5px; color: var(--muted); }

/* Hero orb — 3-stage connection effect (未连接 / 连接中 / 已连接) */
.hero__panel { position: relative; }
.orb-stage { position: relative; display: grid; place-items: center; min-height: 440px; isolation: isolate; }
.orb-halo {
  position: absolute; width: 360px; height: 360px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(34,192,138,0.20), transparent 68%);
  filter: blur(6px); transition: background .7s var(--ease), transform .7s var(--ease);
}
.orb {
  position: relative; z-index: 1; width: 230px; height: 230px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; text-align: center;
  background: radial-gradient(circle at 50% 36%, #34d79f, #12a576 70%);
  box-shadow: 0 24px 50px rgba(18,165,118,0.42), inset 0 -12px 32px rgba(0,0,0,0.12);
  transition: background .7s var(--ease), box-shadow .7s var(--ease);
}
.orb__content { position: relative; z-index: 3; transition: color .4s; }
.orb__content b { font-size: 24px; font-weight: 750; display: block; letter-spacing: -.01em; }
.orb__content small { display: block; font-size: 13px; opacity: .9; margin-top: 5px; }
/* progress ring — only while connecting */
.orb__spinner {
  position: absolute; inset: -7px; border-radius: 50%; z-index: 2; opacity: 0;
  background: conic-gradient(from 0deg, rgba(255,255,255,0) 0 62%, rgba(255,255,255,0.95) 88%, rgba(255,255,255,0) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
  transition: opacity .35s; animation: spin 1s linear infinite;
}
/* ripple waves — only while connected */
.orb-ripple { position: absolute; inset: -6px; border-radius: 50%; z-index: 0; border: 2px solid rgba(34,192,138,0.5); opacity: 0; }
/* status pill */
.orb-status {
  position: absolute; bottom: 24px; z-index: 4; display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 8px 16px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: color .4s;
}
.orb-status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-500); transition: background .4s, box-shadow .4s; }

/* --- state: disconnected --- */
.orb-stage.s-disconnected .orb {
  background: radial-gradient(circle at 50% 36%, #c6d2cd, #8b9d95 72%);
  box-shadow: 0 18px 40px rgba(120,140,132,0.28), inset 0 -12px 30px rgba(0,0,0,0.10);
  animation: orbBreathe 3.6s var(--ease) infinite;
}
.orb-stage.s-disconnected .orb__content { color: #34433d; }
.orb-stage.s-disconnected .orb-halo { background: radial-gradient(circle, rgba(140,156,148,0.16), transparent 68%); transform: scale(.92); }
.orb-stage.s-disconnected .orb-status { color: var(--muted); }
.orb-stage.s-disconnected .orb-status__dot { background: #9aa8a2; }

/* --- state: connecting --- */
.orb-stage.s-connecting .orb {
  background: radial-gradient(circle at 50% 36%, #84dcbb, #2a9f78 72%);
  box-shadow: 0 22px 46px rgba(34,170,120,0.34);
  animation: orbPulse 1.2s var(--ease) infinite;
}
.orb-stage.s-connecting .orb__spinner { opacity: 1; }
.orb-stage.s-connecting .orb-halo { background: radial-gradient(circle, rgba(34,180,128,0.18), transparent 68%); }
.orb-stage.s-connecting .orb-status__dot { background: var(--warning); box-shadow: 0 0 0 4px rgba(224,163,46,0.18); animation: dotBlink 1s ease-in-out infinite; }

/* --- state: connected --- */
.orb-stage.s-connected .orb { animation: orbBreathe 2.8s var(--ease) infinite; }
.orb-stage.s-connected .orb-ripple { animation: ripple 2.8s var(--ease) infinite; }
.orb-stage.s-connected .orb-ripple.r2 { animation-delay: 1.4s; }
.orb-stage.s-connected .orb-status__dot { box-shadow: 0 0 0 4px rgba(34,192,138,0.18); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { 0% { transform: scale(.84); opacity: .85; } 100% { transform: scale(1.42); opacity: 0; } }
@keyframes orbBreathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes orbPulse { 0%,100% { transform: scale(0.99); } 50% { transform: scale(1.02); } }
@keyframes dotBlink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* ---------- Logos / platform strip ---------- */
.platforms { padding: 30px 0 8px; }
.platforms__inner { display: flex; align-items: center; justify-content: center; gap: 38px; flex-wrap: wrap; }
.platforms__label { font-size: 13px; color: var(--muted); font-weight: 600; }
.platform { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-weight: 650; font-size: 15px; opacity: .85; }
.platform svg { width: 22px; height: 22px; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--mint-200); }
.feature__icon { width: 50px; height: 50px; border-radius: 14px; background: var(--mint-100); color: var(--mint-700); display: grid; place-items: center; margin-bottom: 18px; }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; margin-bottom: 9px; }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Protocols (split) ---------- */
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.protocol-list { display: grid; gap: 16px; }
.protocol {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--line); transition: .3s var(--ease);
}
.protocol:hover { border-color: var(--mint-300); box-shadow: var(--shadow); transform: translateX(4px); }
.protocol__badge { flex: none; width: 54px; height: 54px; border-radius: 15px; background: var(--grad-soft); display: grid; place-items: center; color: var(--mint-700); font-weight: 800; font-size: 13px; box-shadow: inset 0 0 0 1px var(--mint-200); }
.protocol h3 { font-size: 18px; margin-bottom: 5px; }
.protocol p { color: var(--muted); font-size: 14.5px; }
.protocol__tags { display: flex; gap: 7px; margin-top: 11px; flex-wrap: wrap; }
.protocol__tags span { font-size: 12px; font-weight: 600; color: var(--mint-700); background: var(--mint-100); padding: 4px 10px; border-radius: var(--radius-pill); }
.split__visual { position: relative; background: var(--grad-ink); border-radius: var(--radius-xl); padding: 40px; color: #eafaf3; overflow: hidden; box-shadow: var(--shadow-lg); }
.split__visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 80% 10%, rgba(43,210,154,0.30), transparent 60%); }
.split__visual h3 { color: #fff; font-size: 24px; position: relative; }
.split__visual p { color: rgba(234,250,243,0.72); margin-top: 12px; position: relative; }
.world-map { position: relative; margin-top: 26px; height: 200px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); overflow: hidden; }
.node-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--mint-400); box-shadow: 0 0 0 0 rgba(86,216,166,0.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(86,216,166,0.55); } 70% { box-shadow: 0 0 0 14px rgba(86,216,166,0); } 100% { box-shadow: 0 0 0 0 rgba(86,216,166,0); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 24px; right: 26px; font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--mint-100); }
.step__ic { width: 48px; height: 48px; border-radius: 13px; background: var(--grad-mint); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: var(--shadow-mint); }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 30px; transition: .3s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.featured { border: 1.5px solid var(--mint-400); box-shadow: var(--shadow-lg); position: relative; }
.plan.featured::after { content: attr(data-badge); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-mint); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 16px; border-radius: var(--radius-pill); box-shadow: var(--shadow-mint); }
.plan__name { font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mint-700); }
.plan__price { margin: 14px 0 4px; font-family: var(--font-display); font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.plan__price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.plan__desc { color: var(--muted); font-size: 14.5px; min-height: 42px; }
.plan__features { margin: 20px 0 26px; display: grid; gap: 11px; }
.plan__features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-soft); }
.plan__features svg { width: 18px; height: 18px; color: var(--mint-600); flex: none; margin-top: 2px; }
.plan .btn { margin-top: auto; }
.pricing-note { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14.5px; }
.pricing-note b { color: var(--mint-700); }

/* ---------- Download ---------- */
.downloads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.download {
  text-align: center; padding: 30px 20px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); transition: .3s var(--ease);
}
.download:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--mint-200); }
.download__ic { width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 16px; background: var(--mint-50); display: grid; place-items: center; color: var(--ink); box-shadow: inset 0 0 0 1px var(--mint-200); }
.download__ic svg { width: 30px; height: 30px; }
.download h3 { font-size: 17px; }
.download p { color: var(--muted); font-size: 13px; margin: 4px 0 16px; }
.download .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; transition: border-color .3s; }
.faq__item.open { border-color: var(--mint-300); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; text-align: left; font-weight: 650; font-size: 16px; color: var(--ink); }
.faq__q .chev { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--mint-100); color: var(--mint-700); display: grid; place-items: center; transition: transform .3s var(--ease); }
.faq__item.open .chev { transform: rotate(180deg); background: var(--mint-500); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a-inner { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--grad-ink); border-radius: var(--radius-xl); padding: 56px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(43,210,154,0.28), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 38px); position: relative; }
.cta-band p { color: rgba(234,250,243,0.78); margin-top: 14px; position: relative; font-size: 17px; }
.cta-band .hero__cta { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 64px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.footer__brand img { height: 36px; margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 280px; }
.footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 6px 0; transition: color .2s; }
.footer__col a:hover { color: var(--mint-700); }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13.5px; }
.footer__bottom .disclaimer { max-width: 640px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .orb, .orb-ripple, .orb__spinner, .orb-status__dot, .node-dot { animation: none !important; } }

/* =====================================================================
   Member area (member.html)
   ===================================================================== */
.member-wrap { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 48px 24px; position: relative; }
.member-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 45% at 50% 0%, rgba(43,210,154,0.14), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-xl); padding: 36px; box-shadow: var(--shadow-lg); }
.auth-card__logo { display: flex; justify-content: center; margin-bottom: 18px; }
.auth-card__logo img { height: 40px; }
.auth-card h1 { text-align: center; font-size: 24px; }
.auth-card .sub { text-align: center; color: var(--muted); margin-top: 8px; font-size: 14.5px; }
.tabs { display: flex; background: var(--surface-2); border-radius: var(--radius-pill); padding: 4px; margin: 24px 0 22px; }
.tabs button { flex: 1; padding: 9px; border-radius: var(--radius-pill); font-weight: 650; font-size: 14.5px; color: var(--muted); transition: .2s; }
.tabs button.active { background: #fff; color: var(--mint-700); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink-soft); }
.field .input-wrap { position: relative; }
.field input {
  width: 100%; padding: 13px 15px; font-size: 15px; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-md); transition: .2s;
}
.field input:focus { outline: none; border-color: var(--mint-400); background: #fff; box-shadow: 0 0 0 4px rgba(34,192,138,0.12); }
.field .toggle-pw { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; font-size: 12.5px; color: var(--mint-700); font-weight: 600; border-radius: 8px; }
.field .toggle-pw:hover { background: var(--mint-100); }
.field .hint { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.form-msg { font-size: 14px; padding: 11px 14px; border-radius: var(--radius-md); margin-bottom: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.err { background: #fdece8; color: var(--danger); border: 1px solid #f6cabf; }
.form-msg.ok { background: var(--mint-100); color: var(--mint-700); border: 1px solid var(--mint-200); }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-foot a { color: var(--mint-700); font-weight: 600; }

/* Member portal */
.portal { width: 100%; max-width: 1200px; margin: 0 auto; }
.portal-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.portal-sidebar { position: sticky; top: calc(var(--nav-h) + 18px); display: grid; gap: 14px; }
.portal-profile-card,
.pcard {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 16px 36px rgba(10, 50, 36, 0.08);
}
.portal-profile-card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.portal__user { display: flex; align-items: center; gap: 12px; }
.portal__avatar { width: 52px; height: 52px; border-radius: 15px; background: var(--grad-mint); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 800; box-shadow: var(--shadow-mint); }
.portal__user h1 { font-size: 21px; }
.portal__user .meta { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.portal-profile-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.portal-logout { padding: 10px 16px; }
.status-chip { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; }
.status-chip.ok { background: var(--mint-100); color: var(--mint-700); }
.status-chip.free { background: #eef2f7; color: #5d6f68; }
.status-chip.off { background: #fdece8; color: var(--danger); }
.portal-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mini-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-width: 0; }
.mini-stat__label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mini-stat b { display: block; font-size: 22px; line-height: 1.05; }
.mini-stat small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.35; word-break: break-word; }
.portal-menu { display: grid; gap: 8px; }
.portal-menu__item,
.portal-mobile-menu__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 16px;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.78);
  transition: .2s;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
}
.portal-menu__item:hover,
.portal-mobile-menu__item:hover { border-color: var(--mint-300); background: #fff; }
.portal-menu__item.active,
.portal-mobile-menu__item.active { background: var(--grad-mint); color: #fff; box-shadow: var(--shadow-mint); }
.portal-menu__icon { width: 18px; height: 18px; display: inline-grid; place-items: center; flex: none; }
.portal-main { min-width: 0; display: grid; gap: 14px; }
.portal-mobile-menu { display: none; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.portal-mobile-menu__item { white-space: nowrap; width: auto; }
.portal-panel { display: none; }
.portal-panel.active { display: grid; gap: 14px; }
.portal-panel__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 4px 2px 2px;
}
.portal-panel__head h2 { font-size: 24px; margin-bottom: 5px; }
.portal-panel__head p { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.portal-quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.overview-grid,
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.invite-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.summary-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243,251,247,0.98));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  min-width: 0;
}
.summary-card__label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.summary-card b { display: block; font-size: 22px; line-height: 1.15; word-break: break-word; }
.summary-card small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; margin-top: 5px; }
.portal-section-card h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.portal-section-card h3 .ic { width: 28px; height: 28px; border-radius: 9px; background: var(--mint-100); color: var(--mint-700); display: grid; place-items: center; }
.compact-rows { display: grid; gap: 2px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; line-height: 1.35; }
.stat-row:last-child { border-bottom: none; }
.stat-row span { color: var(--muted); }
.stat-row b { font-weight: 650; text-align: right; }
.order-tip { color: var(--muted); font-size: 13px; margin-bottom: 12px; line-height: 1.45; }

/* Package list (member) */
.pkg-list { display: grid; gap: 12px; }
.pkg {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; cursor: pointer; transition: .2s;
}
.pkg:hover { border-color: var(--mint-300); }
.pkg.sel { border-color: var(--mint-500); background: var(--mint-50); box-shadow: 0 0 0 3px rgba(34,192,138,0.12); }
.pkg__info b { font-size: 14.5px; }
.pkg__info small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.pkg__price { text-align: right; }
.pkg__price b { font-size: 17px; color: var(--mint-700); }
.pkg__price small { display: block; color: var(--muted); font-size: 12px; }
.pkg__bonus { font-size: 11.5px; font-weight: 700; color: var(--warning); }

/* Support */
.support-box { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.support-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.support-row--stack { align-items: flex-start; }
.support-row .ic { width: 38px; height: 38px; border-radius: 11px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--mint-700); }
.support-row b { font-size: 14px; }
.support-row small { display: block; color: var(--muted); font-size: 12.5px; }
textarea.input { width: 100%; padding: 13px 15px; font-family: inherit; font-size: 15px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--radius-md); resize: vertical; min-height: 90px; }
textarea.input:focus { outline: none; border-color: var(--mint-400); background: #fff; box-shadow: 0 0 0 4px rgba(34,192,138,0.12); }
.commission-list,
.faq-list,
.support-checklist { display: grid; gap: 10px; }
.commission-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}
.commission-item b { display: block; font-size: 14px; margin-bottom: 2px; }
.commission-item small { display: block; color: var(--muted); font-size: 12px; }
.commission-item__reward { color: var(--mint-700); font-size: 15px; font-weight: 750; white-space: nowrap; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.92);
  padding: 0 16px;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 0;
  font-size: 14px;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  padding: 0 0 14px;
}
.support-checklist div {
  padding: 11px 13px;
  border-radius: 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
}

.skeleton { color: var(--muted); font-size: 14px; text-align: center; padding: 24px; }

/* ---------- Utilities ---------- */
.hidden { display: none !important; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
[data-lang-en] { display: none; }
html[lang="en"] [data-lang-zh] { display: none; }
html[lang="en"] [data-lang-en] { display: inline; }
html[lang="en"] [data-lang-en].block { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__panel { max-width: 440px; margin: 0 auto; }
  .feature-grid, .steps, .pricing { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .downloads { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .portal-shell { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; }
  .portal-menu { display: none; }
  .portal-mobile-menu { display: flex; }
  .overview-grid, .support-grid, .invite-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; align-items: stretch; gap: 4px; background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 20px; box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }
  body.menu-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 12px 14px; font-size: 16px; }
  .nav__cta-mobile { display: inline-flex; margin-top: 8px; justify-content: center; }
  .nav__toggle { display: inline-flex; }
  .nav__cta-desktop { display: none; }
  .feature-grid, .steps, .pricing, .downloads, .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .hero__metrics { gap: 24px; }
  .float-card { display: none; }
  .member-wrap { padding: 28px 14px; }
  .auth-card { padding: 28px 22px; }
  .portal-profile-card,
  .pcard { padding: 16px; border-radius: 18px; }
  .portal-profile-card__meta,
  .portal-panel__head { flex-direction: column; align-items: stretch; }
  .portal-mini-stats,
  .overview-grid,
  .support-grid,
  .invite-stats { grid-template-columns: 1fr; }
  .summary-card b { font-size: 19px; }
  .pkg { padding: 13px 14px; }
  .support-row { align-items: flex-start; }
  .commission-item { flex-direction: column; align-items: flex-start; }
}

/* =====================================================================
   Member center — added components (overview · vpn · devices · billing ·
   messages · live chat). Responsive desktop + mobile.
   ===================================================================== */

/* nav home link (member header) */
.nav__home-link { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: var(--radius-pill); font-size: 14.5px; font-weight: 550; color: var(--ink-soft); transition: background .2s, color .2s; }
.nav__home-link:hover { background: var(--mint-100); color: var(--mint-700); }

/* sidebar menu unread badge */
.portal-menu__item, .portal-mobile-menu__item { position: relative; }
.menu-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.portal-menu__item.active .menu-badge { background: #fff; color: var(--danger); }
.portal-mobile-menu__item .menu-badge { margin-left: 6px; min-width: 18px; height: 18px; }

/* connection state */
.conn-state { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 16px; }
.conn-state b { font-weight: 750; }
.conn-dot { width: 12px; height: 12px; border-radius: 50%; background: #9aa8a2; box-shadow: 0 0 0 4px rgba(154,168,162,.18); flex: none; }
.conn-dot.on { background: var(--mint-500); box-shadow: 0 0 0 4px rgba(34,192,138,.2); }
.conn-dot.off { background: #c6d2cd; }

/* data usage bar */
.usage-line { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 8px; }
.usage-line b { font-size: 18px; font-weight: 750; }
.usage-line--muted { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.usage-bar { height: 10px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.usage-bar span { display: block; height: 100%; background: var(--grad-mint); border-radius: var(--radius-pill); transition: width .5s var(--ease); }
.usage-bar span.danger { background: linear-gradient(135deg,#f0a23a,#e5533c); }

/* vpn config download */
.proto-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.proto-btn { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--surface-2); text-align: left; transition: .2s var(--ease); }
.proto-btn b { font-size: 15px; }
.proto-btn small { color: var(--mint-700); font-weight: 650; font-size: 12.5px; }
.proto-btn:hover { border-color: var(--mint-400); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.proto-btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.vpn-profile { margin-top: 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.vpn-profile__title { font-weight: 700; font-size: 13.5px; margin-bottom: 8px; color: var(--mint-700); }

/* devices */
.device-list { display: grid; gap: 12px; }
.device-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.96); }
.device-item__main { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.device-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--mint-100); color: var(--mint-700); display: grid; place-items: center; }
.device-item b { font-size: 14.5px; display: block; }
.device-item small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.device-times { font-size: 11.5px !important; }
.device-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.dev-state { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); }
.dev-state.on { background: var(--mint-100); color: var(--mint-700); }
.dev-state.off { background: #eef2f7; color: var(--muted); }
.dev-action { padding: 8px 14px; font-size: 13px; }
.dev-cur-tag { font-size: 11px; font-weight: 700; color: var(--mint-700); background: var(--mint-100); padding: 2px 8px; border-radius: var(--radius-pill); vertical-align: middle; }

/* payment methods */
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-method { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface-2); text-align: left; transition: .2s; }
.pay-method b { font-size: 14px; }
.pay-method small { color: var(--muted); font-size: 12px; }
.pay-method:hover { border-color: var(--mint-300); }
.pay-method.sel { border-color: var(--mint-500); background: var(--mint-50); box-shadow: 0 0 0 3px rgba(34,192,138,.12); }

/* order panel */
.order-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
#paymentOrderPanel .stat-row b { text-align: right; max-width: 62%; }

/* messages */
.msg-list { display: grid; gap: 10px; }
.msg-item { border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.96); padding: 14px 16px; }
.msg-item.unread { border-color: var(--mint-300); background: var(--mint-50); }
.msg-item__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.msg-item__head b { font-size: 14.5px; }
.msg-item__head small { color: var(--muted); font-size: 12px; flex: none; }
.msg-item p { color: var(--muted); font-size: 13.5px; margin-top: 6px; line-height: 1.5; white-space: pre-wrap; }
.msg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-left: 4px; vertical-align: middle; }

/* live chat */
.chat-card { display: flex; flex-direction: column; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; max-height: 46vh; min-height: 220px; overflow-y: auto; padding: 6px 2px; }
.chat-empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 30px 10px; }
.bubble { max-width: 82%; }
.bubble.me { align-self: flex-end; }
.bubble.agent, .bubble.sys { align-self: flex-start; }
.bubble__meta { font-size: 11px; color: var(--muted-2); margin: 0 4px 3px; }
.bubble.me .bubble__meta { text-align: right; }
.bubble__body { padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-break: break-word; white-space: pre-wrap; }
.bubble.me .bubble__body { background: var(--grad-mint); color: #fff; border-bottom-right-radius: 5px; }
.bubble.agent .bubble__body { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.bubble.sys .bubble__body { background: var(--mint-50); border: 1px dashed var(--mint-200); color: var(--ink-soft); }
.bubble-img { max-width: 200px; border-radius: 10px; display: block; }
.bubble__cap { margin-top: 6px; font-size: 13px; }
.chat-faqs { margin-top: 12px; display: grid; gap: 8px; }
.chat-faqs__title { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.chat-faq { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); padding: 0 12px; }
.chat-faq summary { list-style: none; cursor: pointer; padding: 10px 0; font-size: 13.5px; font-weight: 650; }
.chat-faq summary::-webkit-details-marker { display: none; }
.chat-faq p { color: var(--muted); font-size: 13px; padding: 0 0 10px; line-height: 1.5; }
.chat-input { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.chat-img-btn { width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--mint-700); display: grid; place-items: center; transition: .2s; }
.chat-img-btn:hover { border-color: var(--mint-400); }
.chat-text { flex: 1; min-width: 0; padding: 11px 14px; font-size: 15px; color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px; }
.chat-text:focus { outline: none; border-color: var(--mint-400); background: #fff; box-shadow: 0 0 0 4px rgba(34,192,138,.12); }
.chat-send { padding: 11px 20px; }
.chat-input button[disabled], .chat-text[disabled] { opacity: .55; cursor: not-allowed; }

/* member responsive */
@media (max-width: 720px) {
  .proto-grid { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
  .chat-thread { max-height: 52vh; }
  .bubble { max-width: 88%; }
  .bubble-img { max-width: 70vw; }
  #paymentOrderPanel .stat-row b { max-width: 56vw; }
  .device-item { flex-direction: column; align-items: stretch; }
  .device-item__side { flex-direction: row; align-items: center; justify-content: space-between; }
  .order-actions .btn { flex: 1; }
}
