﻿/**
 * 椋炵綉 FeiWang 鈥?Premium Design System
 * Multi-theme 路 Glassmorphism 路 Electric Tech
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ===== Default: Slate (高级深黑) ===== */
:root,
[data-theme="slate"] {
  --fw-bg: #0A0A0A;
  --fw-bg-2: #111111;
  --fw-surface: rgba(17, 17, 17, 0.92);
  --fw-glass: rgba(255, 255, 255, 0.04);
  --fw-glass-hover: rgba(255, 255, 255, 0.07);
  --fw-border: rgba(255, 255, 255, 0.06);
  --fw-border-hover: rgba(38, 166, 154, 0.35);
  --fw-cyan: #22D3EE;
  --fw-cyan-dim: rgba(34, 211, 238, 0.12);
  --fw-purple: #6366F1;
  --fw-violet: #A855F7;
  --fw-gradient: linear-gradient(135deg, #6366F1 0%, #22D3EE 100%);
  --fw-gradient-btn: linear-gradient(135deg, #22D3EE 0%, #6366F1 55%, #A855F7 100%);
  --fw-text: #F1F5F9;
  --fw-text-muted: #94A3B8;
  --fw-success: #34D399;
  --fw-warning: #FB923C;
  --fw-danger: #F87171;
  --fw-radius: 16px;
  --fw-radius-sm: 10px;
  --fw-blur: blur(20px);
  --fw-shadow: 0 16px 48px rgba(0, 0, 0, 0.58);
  --fw-glow: 0 0 40px rgba(38, 166, 154, 0.08);
  --fw-nav-bg: rgba(10, 10, 10, 0.88);
}

[data-theme="light"] {
  --fw-bg: #F1F5F9;
  --fw-bg-2: #FFFFFF;
  --fw-surface: rgba(255, 255, 255, 0.92);
  --fw-glass: rgba(255, 255, 255, 0.85);
  --fw-glass-hover: rgba(255, 255, 255, 0.95);
  --fw-border: rgba(15, 23, 42, 0.08);
  --fw-border-hover: rgba(59, 130, 246, 0.45);
  --fw-cyan: #0EA5E9;
  --fw-cyan-dim: rgba(14, 165, 233, 0.1);
  --fw-gradient: linear-gradient(135deg, #3B82F6 0%, #0EA5E9 100%);
  --fw-gradient-btn: linear-gradient(135deg, #0EA5E9 0%, #3B82F6 100%);
  --fw-text: #0F172A;
  --fw-text-muted: #64748B;
  --fw-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  --fw-glow: 0 0 40px rgba(59, 130, 246, 0.12);
  --fw-nav-bg: rgba(255, 255, 255, 0.88);
}

[data-theme="purple"] {
  --fw-bg: #0A0A0A;
  --fw-bg-2: #111111;
  --fw-surface: rgba(17, 17, 17, 0.92);
  --fw-glass: rgba(168, 85, 247, 0.05);
  --fw-glass-hover: rgba(168, 85, 247, 0.08);
  --fw-border: rgba(255, 255, 255, 0.06);
  --fw-border-hover: rgba(168, 85, 247, 0.4);
  --fw-cyan: #A855F7;
  --fw-cyan-dim: rgba(168, 85, 247, 0.14);
  --fw-gradient: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --fw-gradient-btn: linear-gradient(135deg, #A855F7 0%, #6366F1 100%);
  --fw-glow: 0 0 40px rgba(168, 85, 247, 0.1);
  --fw-nav-bg: rgba(10, 10, 10, 0.88);
}

[data-theme="cyan"] {
  --fw-bg: #0A0A0A;
  --fw-bg-2: #111111;
  --fw-surface: rgba(17, 17, 17, 0.92);
  --fw-glass: rgba(34, 211, 238, 0.04);
  --fw-glass-hover: rgba(34, 211, 238, 0.07);
  --fw-border: rgba(255, 255, 255, 0.06);
  --fw-border-hover: rgba(34, 211, 238, 0.45);
  --fw-cyan: #22D3EE;
  --fw-cyan-dim: rgba(34, 211, 238, 0.14);
  --fw-gradient: linear-gradient(135deg, #06B6D4 0%, #22D3EE 100%);
  --fw-gradient-btn: linear-gradient(135deg, #22D3EE 0%, #06B6D4 100%);
  --fw-glow: 0 0 40px rgba(34, 211, 238, 0.1);
  --fw-nav-bg: rgba(10, 10, 10, 0.88);
}

/* Legacy dark → slate */
html[data-theme="dark"] {
  --fw-bg: #0A0A0A;
  --fw-bg-2: #111111;
}

/* ===== Global overrides ===== */
html[data-theme="slate"],
html[data-theme="purple"],
html[data-theme="cyan"],
html[data-theme="dark"],
html:not([data-theme="light"]) {
  --bg: var(--fw-bg);
  --card: var(--fw-surface);
  --text: var(--fw-text);
  --text-secondary: var(--fw-text-muted);
  --border: var(--fw-border);
  --primary: var(--fw-cyan);
  --primary-light: var(--fw-cyan-dim);
  --gradient-btn: var(--fw-gradient-btn);
}

html[data-theme="light"] {
  --bg: var(--fw-bg);
  --card: var(--fw-bg-2);
  --text: var(--fw-text);
  --text-secondary: var(--fw-text-muted);
  --border: var(--fw-border);
  --primary: var(--fw-cyan);
  --primary-light: var(--fw-cyan-dim);
  --gradient-btn: var(--fw-gradient-btn);
}

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Alibaba PuHuiTi', sans-serif;
  background: var(--fw-bg);
}

/* ===== Glass utility ===== */
.fw-glass {
  background: var(--fw-glass);
  backdrop-filter: var(--fw-blur);
  -webkit-backdrop-filter: var(--fw-blur);
  border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.fw-glass:hover {
  border-color: var(--fw-border-hover);
  box-shadow: var(--fw-glow);
  background: var(--fw-glass-hover);
}

.fw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--fw-radius-sm); font-weight: 600;
  font-size: 14px; cursor: pointer; transition: all 0.25s; border: none;
}
.fw-btn-primary {
  background: var(--fw-gradient-btn); color: #0F172A;
  box-shadow: 0 4px 20px rgba(34, 211, 238, 0.22);
}
.fw-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(34, 211, 238, 0.32); }
.fw-btn-ghost {
  background: transparent; color: var(--fw-text);
  border: 1px solid var(--fw-border);
}
.fw-btn-ghost:hover { border-color: var(--fw-cyan); color: var(--fw-cyan); }
.fw-btn-sm { padding: 8px 18px; font-size: 13px; }
.fw-btn-block { width: 100%; }

/* ===== Landing ===== */
.fw-landing { background: var(--fw-bg); color: var(--fw-text); min-height: 100vh; overflow-x: hidden; }

.fw-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 300;
  background: var(--fw-nav-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fw-border);
}
.fw-nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 24px;
}
.fw-logo {
  display: flex; align-items: center; gap: 10px; cursor: pointer; flex-shrink: 0;
}
.fw-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--fw-gradient); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14px; color: #fff; overflow: hidden;
}
.fw-logo-mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 2px; }
.fw-logo-text { font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }
.fw-logo-text em { font-style: normal; color: var(--fw-cyan); font-weight: 500; font-size: 12px; margin-left: 6px; }
.fw-nav-links { display: flex; gap: 32px; flex: 1; justify-content: center; }
.fw-nav-links a {
  color: var(--fw-text-muted); font-size: 14px; cursor: pointer;
  transition: color 0.2s; position: relative;
}
.fw-nav-links a:hover { color: var(--fw-text); }
.fw-nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0; height: 1px;
  background: var(--fw-cyan); transform: scaleX(0); transition: transform 0.25s;
}
.fw-nav-links a:hover::after { transform: scaleX(1); }
.fw-nav-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Hero */
.fw-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  justify-content: center; padding: 120px 24px 80px; overflow: hidden;
}
.fw-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.fw-hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}
.fw-hero-glow {
  position: absolute; top: 20%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.15) 0%, rgba(0, 229, 255, 0.08) 40%, transparent 70%);
  animation: fwPulse 6s ease-in-out infinite;
}
.fw-hero-line {
  position: absolute; height: 1px; width: 200px;
  background: linear-gradient(90deg, transparent, var(--fw-cyan), transparent);
  opacity: 0.4; animation: fwLineMove 8s linear infinite;
}
.fw-hero-line:nth-child(1) { top: 30%; left: 10%; animation-delay: 0s; }
.fw-hero-line:nth-child(2) { top: 60%; right: 15%; animation-delay: 2s; width: 150px; }
.fw-hero-line:nth-child(3) { bottom: 25%; left: 30%; animation-delay: 4s; width: 180px; }
@keyframes fwPulse { 0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); } 50% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
@keyframes fwLineMove { 0% { opacity: 0; transform: translateX(-20px); } 50% { opacity: 0.6; } 100% { opacity: 0; transform: translateX(20px); } }

.fw-hero-content { position: relative; z-index: 2; text-align: center; max-width: 820px; }
.fw-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 12px;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--fw-cyan-dim); border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--fw-cyan); margin-bottom: 28px;
}
.fw-hero h1 {
  font-size: clamp(36px, 6vw, 56px); font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 0%, #94A3B8 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fw-hero h1 span { -webkit-text-fill-color: var(--fw-cyan); background: none; }
.fw-hero-sub {
  font-size: clamp(15px, 2vw, 18px); color: var(--fw-text-muted);
  line-height: 1.7; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto;
}
.fw-hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.fw-trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 900px; margin: 0 auto;
}
.fw-trust-card {
  padding: 20px 16px; text-align: center;
  background: var(--fw-glass); border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-sm); backdrop-filter: var(--fw-blur);
}
.fw-trust-card strong {
  display: block; font-size: 24px; font-weight: 800; color: var(--fw-cyan); margin-bottom: 4px;
}
.fw-trust-card span { font-size: 12px; color: var(--fw-text-muted); }

/* Sections */
.fw-section { padding: 100px 24px; max-width: 1200px; margin: 0 auto; }
.fw-section-head { text-align: center; margin-bottom: 56px; }
.fw-section-head h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; }
.fw-section-head p { color: var(--fw-text-muted); font-size: 15px; max-width: 520px; margin: 0 auto; line-height: 1.7; }

.fw-feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.fw-feature-card {
  padding: 28px 22px; background: var(--fw-glass); border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius); backdrop-filter: var(--fw-blur); transition: all 0.25s;
}
.fw-feature-card:hover { border-color: var(--fw-border-hover); box-shadow: var(--fw-glow); transform: translateY(-4px); }
.fw-feature-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  background: var(--fw-cyan-dim); display: flex; align-items: center; justify-content: center;
  font-size: 20px; border: 1px solid rgba(0, 229, 255, 0.2);
}
.fw-feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.fw-feature-card p { font-size: 13px; color: var(--fw-text-muted); line-height: 1.65; }

/* Nodes preview */
.fw-nodes-panel {
  padding: 40px; background: var(--fw-glass); border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius); backdrop-filter: var(--fw-blur);
}
.fw-nodes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fw-node-item {
  padding: 20px; border-radius: var(--fw-radius-sm); border: 1px solid var(--fw-border);
  background: rgba(0,0,0,0.2); display: flex; align-items: center; gap: 14px;
  transition: border-color 0.2s;
}
.fw-node-item:hover { border-color: var(--fw-border-hover); }
.fw-node-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fw-success); box-shadow: 0 0 8px var(--fw-success); flex-shrink: 0; }
.fw-node-item small { display: block; color: var(--fw-text-muted); font-size: 12px; margin-top: 2px; }
.fw-node-latency { margin-left: auto; font-size: 13px; color: var(--fw-cyan); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Plans */
.fw-plans { background: var(--fw-bg-2); max-width: none; }
.fw-plan-toggle {
  display: flex; justify-content: center; gap: 4px; margin-bottom: 40px;
  background: var(--fw-glass); border: 1px solid var(--fw-border); border-radius: 999px;
  padding: 4px; max-width: 360px; margin-left: auto; margin-right: auto;
}
.fw-plan-toggle button {
  flex: 1; padding: 10px 20px; border: none; background: transparent;
  color: var(--fw-text-muted); border-radius: 999px; cursor: pointer; font-size: 14px; transition: all 0.2s;
}
.fw-plan-toggle button.active { background: var(--fw-gradient); color: #0A0F1C; font-weight: 700; }
.fw-plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fw-plan-card {
  padding: 32px 28px; background: var(--fw-glass); border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius); backdrop-filter: var(--fw-blur); display: flex; flex-direction: column;
  transition: all 0.25s;
}
.fw-plan-card:hover { border-color: var(--fw-border-hover); box-shadow: var(--fw-glow); transform: translateY(-4px); }
.fw-plan-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.fw-plan-price strong { font-size: 36px; font-weight: 800; color: var(--fw-cyan); }
.fw-plan-price span { color: var(--fw-text-muted); font-size: 14px; }
.fw-plan-spec { font-size: 13px; color: var(--fw-text-muted); margin: 16px 0; }
.fw-plan-feats { list-style: none; flex: 1; margin-bottom: 24px; }
.fw-plan-feats li { display: flex; gap: 10px; font-size: 13px; color: var(--fw-text-muted); padding: 6px 0; }
.fw-plan-feats li::before { content: '鉁?; color: var(--fw-cyan); font-weight: 700; flex-shrink: 0; }

.fw-support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.fw-support-card { padding: 32px 24px; text-align: center; }
.fw-footer { text-align: center; padding: 40px 24px; color: var(--fw-text-muted); font-size: 13px; border-top: 1px solid var(--fw-border); }

/* ===== Dashboard ===== */
.fw-dash { color: var(--fw-text); }
.qy-dashboard-layout.fw-layout { background: var(--fw-bg); min-height: 100vh; }
.qy-dashboard-layout.fw-layout::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(99,102,241,0.08), transparent),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(0,229,255,0.06), transparent);
}
[data-theme="light"] .qy-dashboard-layout.fw-layout::before {
  background:
    radial-gradient(ellipse 55% 45% at 8% 0%, rgba(59,130,246,0.07), transparent),
    radial-gradient(ellipse 45% 35% at 92% 95%, rgba(14,165,233,0.06), transparent);
}
.qy-dashboard-layout.fw-layout .qy-main { position: relative; z-index: 1; }

.fw-dash-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.fw-dash-main { display: flex; flex-direction: column; gap: 20px; }
.fw-dash-side { display: flex; flex-direction: column; gap: 20px; }

/* User hero card */
.fw-user-hero {
  padding: 32px; position: relative; overflow: hidden;
}
.fw-user-hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,229,255,0.1), transparent 70%); pointer-events: none;
}
.fw-user-top { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; position: relative; }
.fw-user-avatar {
  width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(0,229,255,0.4); flex-shrink: 0;
  background: var(--fw-glass); display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.fw-user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fw-user-meta h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.fw-user-meta p { font-size: 13px; color: var(--fw-text-muted); }
.fw-user-meta .fw-plan-tag {
  display: inline-block; margin-top: 6px; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: var(--fw-cyan-dim); color: var(--fw-cyan);
  border: 1px solid rgba(0,229,255,0.2);
}

.fw-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; position: relative; }
.fw-stat-box {
  padding: 16px 18px; border-radius: var(--fw-radius-sm);
  background: rgba(0,0,0,0.25); border: 1px solid var(--fw-border);
}
.fw-stat-box label { display: block; font-size: 11px; color: var(--fw-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.fw-stat-box strong { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fw-stat-box.highlight strong { color: var(--fw-cyan); }

.fw-user-actions { display: flex; gap: 10px; position: relative; flex-wrap: wrap; }

/* Module row */
.fw-module-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fw-module { padding: 24px; }
.fw-module-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.fw-module-head h3 { font-size: 15px; font-weight: 700; }
.fw-status-list { display: flex; flex-direction: column; gap: 10px; }
.fw-status-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.fw-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--fw-success); box-shadow: 0 0 6px var(--fw-success); }
.fw-status-dot.warn { background: var(--fw-warning); box-shadow: 0 0 6px var(--fw-warning); }
.fw-speed-btn {
  width: 100%; padding: 14px; margin-top: 8px;
  background: var(--fw-cyan-dim); border: 1px solid rgba(0,229,255,0.25);
  border-radius: var(--fw-radius-sm); color: var(--fw-cyan); font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-size: 13px;
}
.fw-speed-btn:hover { background: rgba(0,229,255,0.25); }

/* Clients */
.fw-clients { padding: 24px; }
.fw-clients h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.fw-clients .sub { font-size: 13px; color: var(--fw-text-muted); margin-bottom: 16px; }
.fw-os-tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.fw-os-tabs button {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--fw-border);
  background: transparent; color: var(--fw-text-muted); font-size: 12px; cursor: pointer; transition: all 0.2s;
}
.fw-os-tabs button.active { background: var(--fw-cyan-dim); border-color: rgba(0,229,255,0.3); color: var(--fw-cyan); }
.fw-client-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fw-client-card {
  padding: 16px; border-radius: var(--fw-radius-sm); border: 1px solid var(--fw-border);
  background: rgba(0,0,0,0.2); display: flex; align-items: center; gap: 12px;
  transition: border-color 0.2s;
}
.fw-client-card:hover { border-color: var(--fw-border-hover); }
.fw-client-card img { width: 32px; height: 32px; border-radius: 8px; }
.fw-client-card strong { display: block; font-size: 13px; }
.fw-client-card small { font-size: 11px; color: var(--fw-text-muted); }

/* Subscribe tags */
.fw-subscribe { padding: 24px; }
.fw-subscribe h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.fw-subscribe .sub { font-size: 13px; color: var(--fw-text-muted); margin-bottom: 16px; }
.fw-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fw-sub-tag {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  border-radius: var(--fw-radius-sm); border: 1px solid var(--fw-border);
  background: rgba(0,0,0,0.2); cursor: pointer; transition: all 0.2s;
  font-size: 12px; color: var(--fw-text-muted); min-width: 0;
}
.fw-sub-tag:hover { border-color: var(--fw-cyan); color: var(--fw-text); background: var(--fw-cyan-dim); }
.fw-sub-tag img { width: 20px; height: 20px; border-radius: 4px; flex-shrink: 0; opacity: 0.85; }
.fw-sub-tag span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sidebar */
.fw-notice { padding: 24px; }
.fw-notice-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.fw-notice-head h3 { font-size: 15px; font-weight: 700; }
.fw-notice-item {
  padding: 12px 0; border-bottom: 1px solid var(--fw-border); font-size: 13px;
}
.fw-notice-item:last-child { border: none; }
.fw-notice-item strong { display: block; margin-bottom: 4px; font-size: 13px; }
.fw-notice-item a { font-size: 12px; color: var(--fw-cyan); }

.fw-invite {
  padding: 28px 24px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.1));
  border-color: rgba(168,85,247,0.25);
}
.fw-invite::before {
  content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(168,85,247,0.2), transparent 70%);
}
.fw-invite .badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px;
  background: rgba(168,85,247,0.25); color: #C4B5FD; margin-bottom: 10px; font-weight: 600;
}
.fw-invite h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; line-height: 1.5; }

/* Navbar (dashboard) v3 */
.fw-navbar-v3 {
  background: var(--fw-nav-bg) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid var(--fw-border) !important;
}
.fw-navbar-v3 .qy-navbar-inner {
  display: grid !important;
  grid-template-columns: minmax(140px, 200px) 1fr minmax(140px, 200px);
  align-items: center;
  gap: 12px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
}
.fw-navbar-v3 .qy-brand { background: transparent; border: none; padding: 0; justify-self: start; }
.fw-navbar-v3 .qy-nav {
  justify-self: center;
  flex: unset !important;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.fw-navbar-v3 .qy-nav::-webkit-scrollbar { display: none; }
.fw-navbar-v3 .qy-navbar-actions { justify-self: end; }
.fw-navbar-v3 .fw-brand-mark {
  background: var(--fw-gradient) !important;
  box-shadow: 0 2px 12px rgba(34, 211, 238, 0.18);
}
.fw-navbar-v3 .qy-brand-name { color: var(--fw-text); font-weight: 700; font-size: 15px; }
.fw-nav-pills { gap: 4px !important; flex: 1; justify-content: center !important; }
.fw-nav-pill {
  flex-direction: row !important; gap: 6px !important;
  padding: 8px 12px !important; border-radius: 999px !important;
  border: 1px solid transparent; font-size: 13px !important;
  color: var(--fw-text-muted) !important; transition: all 0.22s;
  min-width: 0;
  align-items: center !important;
}
.fw-nav-pill .qy-nav-icon { font-size: 0 !important; display: inline-flex !important; align-items: center !important; }
.fw-nav-pill .qy-nav-icon svg { width: 16px !important; height: 16px !important; }
.fw-nav-pill .qy-nav-label { font-size: 13px !important; line-height: 1.2; }
.fw-nav-pill:hover {
  color: var(--fw-text) !important;
  background: var(--fw-glass-hover) !important;
  border-color: var(--fw-border) !important;
}
.fw-nav-pill.active {
  background: rgba(34, 197, 94, 0.12) !important;
  color: #22C55E !important;
  border: 1px solid rgba(34, 197, 94, 0.3) !important;
  box-shadow: none !important;
}
[data-theme="light"] .fw-nav-pill.active {
  background: linear-gradient(135deg, #52c41a, #73d13d) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 8px rgba(82,196,26,0.25) !important;
}
.fw-nav-pill.nav-custom {
  border: 1px dashed rgba(168, 85, 247, 0.35) !important;
  background: rgba(168, 85, 247, 0.05) !important;
}
.fw-navbar-actions { gap: 10px !important; }
.fw-action-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--fw-border); background: var(--fw-glass);
  color: var(--fw-text-muted); cursor: pointer; transition: all 0.2s;
}
.fw-action-btn:hover { border-color: var(--fw-border-hover); color: var(--fw-cyan); }
.fw-badge-dot {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: var(--fw-danger); color: #fff; line-height: 16px; text-align: center;
}
.fw-nav-avatar { width: 36px !important; height: 36px !important; }

/* Theme switcher */
.fw-theme-switcher { position: relative; }
.fw-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  transform: none !important;
  box-shadow: none !important;
}
.fw-theme-toggle-btn:hover {
  transform: none !important;
  box-shadow: none !important;
}
.fw-theme-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 10px;
  border: 1px solid var(--fw-border); background: var(--fw-glass);
  cursor: pointer; transition: all 0.2s;
}
.fw-theme-trigger:hover { border-color: var(--fw-border-hover); }
.fw-theme-swatch { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 8px currentColor; }
.fw-theme-icon { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.fw-theme-icon.is-sun { background: linear-gradient(135deg, #FBBF24, #F59E0B); box-shadow: 0 0 8px rgba(251,191,36,0.45); }
.fw-theme-icon.is-moon { background: linear-gradient(135deg, #94A3B8, #64748B); box-shadow: inset -3px -3px 0 rgba(0,0,0,0.12); }
.fw-theme-menu {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 168px;
  padding: 8px; z-index: 500; border-radius: var(--fw-radius-sm);
}
.fw-theme-menu-title { font-size: 11px; color: var(--fw-text-muted); padding: 4px 8px 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.fw-theme-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: none; border-radius: 8px; background: transparent;
  color: var(--fw-text); font-size: 13px; cursor: pointer; transition: background 0.15s;
}
.fw-theme-option:hover { background: var(--fw-glass-hover); }
.fw-theme-option.active { background: var(--fw-cyan-dim); }
.fw-theme-option-name { flex: 1; text-align: left; }
.fw-theme-check { color: var(--fw-cyan); font-size: 12px; font-weight: 700; }

/* Language switcher */
.fw-lang-switcher { position: relative; flex-shrink: 0; }
.fw-lang-switcher:not(.is-open) .fw-lang-menu--ref { display: none !important; }
.fw-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--fw-border);
  background: var(--fw-glass);
  color: var(--fw-text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.fw-lang-trigger:hover {
  border-color: var(--fw-border-hover);
  box-shadow: var(--fw-glow);
  transform: translateY(-1px);
}
.fw-lang-trigger__globe { font-size: 14px; line-height: 1; }
.fw-lang-trigger__label { letter-spacing: 0.04em; }
.fw-lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 156px;
  padding: 8px;
  z-index: 500;
  border-radius: var(--fw-radius-sm);
}
.fw-lang-menu-title {
  font-size: 11px;
  color: var(--fw-text-muted);
  padding: 4px 8px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.fw-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fw-text);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}
.fw-lang-option:hover { background: var(--fw-glass-hover); }
.fw-lang-option.active { background: var(--fw-cyan-dim); }
.fw-lang-option-name { flex: 1; text-align: left; }
.fw-lang-check { color: var(--fw-cyan); font-size: 12px; font-weight: 700; }

/* User dropdown v2 */
.qy-user-dropdown-v2 {
  min-width: 220px;
  background: var(--fw-surface) !important;
  border: 1px solid var(--fw-border) !important;
  border-radius: 14px !important;
  box-shadow: var(--fw-shadow), 0 0 0 1px rgba(255, 255, 255, 0.04) inset !important;
  backdrop-filter: var(--fw-blur);
  -webkit-backdrop-filter: var(--fw-blur);
  overflow: hidden;
}
.qy-user-dropdown-v2 .qy-user-dropdown-head {
  border-bottom-color: var(--fw-border) !important;
}
.qy-user-dropdown-v2 .qy-user-dropdown-head strong {
  color: var(--fw-text);
}
.qy-user-dropdown-v2 .qy-user-dropdown-head span {
  color: var(--fw-text-muted);
}
.qy-user-dropdown-v2 .qy-user-dropdown-item {
  color: var(--fw-text);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.qy-user-dropdown-v2 .qy-user-dropdown-item:hover {
  background: var(--fw-glass-hover) !important;
  color: var(--fw-cyan);
}
.qy-user-dropdown-v2 .qy-user-dropdown-item.danger {
  color: var(--fw-danger);
  border-top: 1px solid var(--fw-border);
  margin-top: 4px;
  padding-top: 14px;
}
.qy-user-dropdown-v2 .qy-user-dropdown-item.danger:hover {
  background: rgba(248, 113, 113, 0.1) !important;
  color: var(--fw-danger);
}
.qy-user-dropdown-item__ico {
  width: 22px;
  text-align: center;
  flex-shrink: 0;
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}
[data-theme="light"] .qy-user-dropdown-v2 {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12) !important;
}

/* Card lift utility */
.fw-card-lift { transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.fw-card-lift:hover { transform: translateY(-2px); border-color: var(--fw-border-hover) !important; box-shadow: var(--fw-glow); }

/* Dashboard v3 */
.fw-dash-v3 .fw-dash-grid { gap: 28px; }
.fw-dash-v3 .fw-dash-main { gap: 28px; }
.fw-dash-v3 .fw-dash-side { gap: 28px; }

.fw-welcome { padding: 0; overflow: hidden; }
.fw-welcome-inner {
  display: flex; align-items: stretch; justify-content: space-between; gap: 32px;
  padding: 36px 40px; position: relative;
}
.fw-welcome-inner::before {
  content: ''; position: absolute; top: -40%; right: -10%; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.08), transparent 70%);
  pointer-events: none;
}
.fw-welcome-left { display: flex; align-items: center; gap: 24px; position: relative; z-index: 1; }
.fw-user-avatar.xl { width: 80px; height: 80px; font-size: 32px; }
.fw-welcome-label { font-size: 12px; color: var(--fw-text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.fw-welcome-title { font-size: 22px; font-weight: 700; margin-bottom: 10px; word-break: break-all; }
.fw-welcome-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-status-pill {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 600; border: 1px solid transparent;
}
.fw-status-pill.online { background: rgba(52, 211, 153, 0.12); color: var(--fw-success); border-color: rgba(52, 211, 153, 0.25); }
.fw-status-pill.offline { background: rgba(251, 146, 60, 0.12); color: var(--fw-warning); border-color: rgba(251, 146, 60, 0.25); }
.fw-status-pill.sm { font-size: 10px; padding: 3px 10px; }
.fw-welcome-stats {
  display: flex; gap: 20px; align-items: stretch; position: relative; z-index: 1; flex-shrink: 0;
}
.fw-welcome-stat {
  min-width: 140px; padding: 18px 22px; border-radius: var(--fw-radius-sm);
  background: rgba(0, 0, 0, 0.18); border: 1px solid var(--fw-border);
}
[data-theme="light"] .fw-welcome-stat { background: rgba(15, 23, 42, 0.04); }
.fw-welcome-stat label { display: block; font-size: 11px; color: var(--fw-text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.fw-welcome-stat strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fw-welcome-stat.highlight { border-color: rgba(34, 211, 238, 0.25); background: var(--fw-cyan-dim); }
.fw-welcome-stat.highlight strong { color: var(--fw-cyan); }
.fw-traffic-bar { height: 4px; border-radius: 999px; background: rgba(255,255,255,0.08); margin-top: 10px; overflow: hidden; }
.fw-traffic-fill { height: 100%; border-radius: 999px; background: var(--fw-gradient); transition: width 0.4s; }

.fw-quick-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fw-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 16px; border-radius: var(--fw-radius-sm); cursor: pointer;
  color: var(--fw-text-muted); font-size: 13px; font-weight: 600; border: 1px solid var(--fw-border);
}
.fw-quick-btn:hover { color: var(--fw-text); border-color: var(--fw-border-hover); }
.fw-quick-btn.primary { border-color: rgba(34, 211, 238, 0.25); background: var(--fw-cyan-dim); color: var(--fw-cyan); }
.fw-quick-icon { font-size: 22px; line-height: 1; }

.fw-module-sub { font-size: 12px; color: var(--fw-text-muted); margin-top: 2px; }
.fw-speed-desc { font-size: 13px; color: var(--fw-text-muted); line-height: 1.65; margin-bottom: 16px; }
.fw-arrow { opacity: 0.7; }
.fw-section-head-inline { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.fw-client-grid.v3 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fw-client-card.v3 { padding: 18px; flex-direction: column; align-items: flex-start; gap: 12px; }
.fw-client-card.v3 .fw-client-info strong { font-size: 14px; }
.fw-app-icon.lg { width: 48px; height: 48px; border-radius: 14px; }
.fw-sub-grid.v3 { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fw-sub-tag.v3 { flex-direction: column; text-align: center; padding: 16px 12px !important; gap: 10px !important; }
.fw-sub-name { font-size: 11px; line-height: 1.3; }
.fw-link-btn {
  margin-top: 18px; background: none; border: none; color: var(--fw-cyan);
  font-size: 13px; font-weight: 600; cursor: pointer; padding: 0;
}
.fw-link-btn:hover { text-decoration: underline; }
.fw-icon-refresh {
  background: none; border: none; color: var(--fw-cyan); cursor: pointer;
  font-size: 18px; padding: 4px; border-radius: 6px; transition: background 0.2s;
}
.fw-icon-refresh:hover { background: var(--fw-cyan-dim); }
.fw-icon-refresh:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 1100px) {
  .fw-welcome-inner { flex-direction: column; padding: 28px; }
  .fw-welcome-stats { width: 100%; flex-wrap: wrap; }
  .fw-welcome-stat { flex: 1; min-width: 120px; }
  .fw-quick-row { grid-template-columns: repeat(2, 1fr); }
  .fw-client-grid.v3 { grid-template-columns: repeat(2, 1fr); }
  .fw-sub-grid.v3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .fw-welcome-left { flex-direction: column; text-align: center; }
  .fw-welcome-tags { justify-content: center; }
  .fw-welcome-stats { flex-direction: column; }
  .fw-quick-row { grid-template-columns: 1fr 1fr; }
  .fw-sub-grid.v3 { grid-template-columns: repeat(2, 1fr); }
  .fw-client-grid.v3 { grid-template-columns: 1fr; }
}

/* Navbar (dashboard) */
.fw-navbar {
  background: var(--fw-nav-bg) !important;
  backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid var(--fw-border) !important;
}
.fw-navbar .qy-brand {
  background: transparent; border: none; padding: 0;
}
.fw-navbar .qy-brand-mark {
  background: var(--fw-gradient) !important;
  box-shadow: 0 2px 12px rgba(0,229,255,0.2);
}
.fw-navbar .qy-brand-name { color: var(--fw-text); }
.fw-navbar .qy-nav-item { color: var(--fw-text-muted); }
.fw-navbar .qy-nav-item:hover { color: var(--fw-text); }
.fw-navbar .qy-nav-item.active {
  background: var(--fw-cyan-dim) !important; color: var(--fw-cyan) !important;
  box-shadow: none; border: 1px solid rgba(0,229,255,0.2);
}
.fw-navbar .qy-avatar { border: 2px solid rgba(0,229,255,0.3); }

/* Modals in dark theme — teleported to body, override umi.css #fff */
.qy-modal-overlay .qy-modal,
.qy-recharge-overlay .qy-modal.qy-recharge-modal-v2,
.qy-gift-overlay .qy-modal.qy-gift-modal-v2 {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 16, 32, 0.99) 100%) !important;
  border: 1px solid rgba(34, 211, 238, 0.2) !important;
  color: var(--fw-text) !important;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .qy-modal-overlay .qy-modal,
[data-theme="light"] .qy-recharge-overlay .qy-modal.qy-recharge-modal-v2,
[data-theme="light"] .qy-gift-overlay .qy-modal.qy-gift-modal-v2 {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(14, 165, 233, 0.22) !important;
  color: var(--fw-text) !important;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12) !important;
}

.qy-modal { background: var(--fw-bg-2) !important; border: 1px solid var(--fw-border); color: var(--fw-text); }
.qy-modal-header h2 { color: var(--fw-text); }
.qy-modal-header p { color: var(--fw-text-muted); }
.sub-link-row input { background: rgba(0,0,0,0.3) !important; border-color: var(--fw-border) !important; color: var(--fw-text) !important; }
.preset-btn, .plan-pick { background: rgba(0,0,0,0.2); border-color: var(--fw-border); color: var(--fw-text); }
.preset-btn.active { border-color: var(--fw-cyan); background: var(--fw-cyan-dim); color: var(--fw-cyan); }
.recharge-balance-bar { background: var(--fw-cyan-dim) !important; border-color: rgba(0,229,255,0.2) !important; }

/* Responsive */
@media (max-width: 1024px) {
  .fw-trust-grid { grid-template-columns: repeat(2, 1fr); }
  .fw-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .fw-plan-grid { grid-template-columns: 1fr; }
  .fw-dash-grid { grid-template-columns: 1fr; }
  .fw-module-row { grid-template-columns: 1fr; }
  .fw-nodes-grid { grid-template-columns: 1fr; }
  .fw-nav-links { display: none; }
}
@media (max-width: 640px) {
  .fw-trust-grid { grid-template-columns: 1fr 1fr; }
  .fw-feature-grid { grid-template-columns: 1fr; }
  .fw-support-grid { grid-template-columns: 1fr; }
  .fw-stats-grid { grid-template-columns: 1fr; }
  .fw-sub-grid { grid-template-columns: repeat(2, 1fr); }
  .fw-client-grid { grid-template-columns: 1fr; }
  .fw-hero-cta { flex-direction: column; align-items: center; }
  .fw-btn { width: 100%; max-width: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .fw-hero-glow, .fw-hero-line { animation: none; }
}

/* ===== Route fade transition ===== */
.fade-enter-active, .fade-leave-active { transition: opacity .2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }

/* ===== Auth Pages ===== */
.fw-auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden; background: var(--fw-bg);
}
.fw-auth-bg { position: absolute; inset: 0; pointer-events: none; }
.fw-auth-bg .fw-hero-grid { mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent); }
.fw-auth-bg .fw-hero-glow { top: 30%; width: 500px; height: 350px; }
.fw-auth-card {
  position: relative; z-index: 2; width: 100%; max-width: 420px; padding: 40px 36px;
}
.fw-auth-card h1 { font-size: 15px; font-weight: 600; text-align: center; margin-bottom: 6px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fw-text-muted); }
.fw-auth-card h2 { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.25; }
.fw-auth-card .subtitle { text-align: center; font-size: 13px; color: var(--fw-text-muted); margin-bottom: 28px; line-height: 1.65; }
.fw-auth-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(160px, 72%);
  max-height: 56px;
  margin: 0 auto 16px;
  padding: 6px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-sizing: border-box;
}
.fw-auth-logo-fallback {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px;
  background: var(--fw-gradient); display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
}
.fw-auth-card form { display: flex; flex-direction: column; gap: 6px; }
.fw-auth-card .field-label { font-size: 12px; font-weight: 600; color: var(--fw-text-muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 0.04em; }
.fw-auth-card input {
  background: rgba(0,0,0,0.35) !important; border: 1px solid var(--fw-border) !important;
  color: var(--fw-text) !important; border-radius: var(--fw-radius-sm) !important; padding: 12px 14px !important;
}
.fw-auth-card input:focus { border-color: var(--fw-cyan) !important; box-shadow: 0 0 0 3px rgba(0,229,255,0.12) !important; }
.fw-auth-card input::placeholder { color: rgba(148,163,184,0.6); }
.fw-auth-links { text-align: right; margin: 4px 0 12px; }
.fw-auth-links a { font-size: 13px; color: var(--fw-cyan); }
.fw-auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--fw-text-muted); }
.fw-auth-footer a { color: var(--fw-cyan); font-weight: 600; }
.fw-auth-theme {
  position: absolute; top: 16px; right: 16px; z-index: 3;
}
.fw-nav-actions .fw-theme-switcher { position: relative; }
.fw-nav-actions .fw-theme-menu { right: 0; }
.fw-auth-card .code-row { display: flex; gap: 8px; }
.fw-auth-card .code-row input { flex: 1; }
.fw-auth-card .code-row .fw-btn { flex-shrink: 0; padding: 10px 16px; }

/* ===== Inner Pages (Dashboard) ===== */
.fw-page { color: var(--fw-text); }
.fw-page-header { margin-bottom: 28px; }
.fw-page-header.center { text-align: center; }
.fw-page-header h1, .fw-page-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.fw-page-header p { color: var(--fw-text-muted); font-size: 14px; }
.fw-page-header.flex { display: flex; justify-content: space-between; align-items: center; }

.fw-layout .qy-card,
.fw-layout .mobile-card {
  background: var(--fw-glass) !important;
  backdrop-filter: var(--fw-blur);
  border: 1px solid var(--fw-border) !important;
  box-shadow: none !important;
  color: var(--fw-text);
}
.fw-layout .qy-card:hover { border-color: var(--fw-border-hover) !important; box-shadow: var(--fw-glow) !important; }
.fw-layout .qy-card h2, .fw-layout .qy-card h3 { color: var(--fw-text); }
.fw-layout .qy-card .sub { color: var(--fw-text-muted); }

.fw-layout input, .fw-layout select, .fw-layout textarea {
  background: rgba(0,0,0,0.3) !important; border-color: var(--fw-border) !important; color: var(--fw-text) !important;
}
.fw-layout input:focus, .fw-layout select:focus, .fw-layout textarea:focus {
  border-color: var(--fw-cyan) !important; box-shadow: 0 0 0 3px rgba(0,229,255,0.1) !important;
}

.fw-layout .filter-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.fw-layout .search-input-wrap {
  flex: 1; min-width: 200px; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--fw-glass); border: 1px solid var(--fw-border); border-radius: var(--fw-radius-sm);
}
.fw-layout .search-input-wrap input { border: none !important; background: transparent !important; padding: 0 !important; }
.fw-layout .filter-group {
  display: flex; gap: 4px; padding: 4px; background: var(--fw-glass); border: 1px solid var(--fw-border); border-radius: 999px;
}
.fw-layout .filter-group button {
  padding: 8px 16px; border: none; background: transparent; color: var(--fw-text-muted);
  border-radius: 999px; cursor: pointer; font-size: 13px; transition: all 0.2s;
}
.fw-layout .filter-group button.active { background: var(--fw-gradient); color: #0A0F1C; font-weight: 600; }

.fw-layout .qy-table-wrap { background: var(--fw-glass); border: 1px solid var(--fw-border); border-radius: var(--fw-radius); overflow: hidden; }
.fw-layout .qy-table { width: 100%; border-collapse: collapse; }
.fw-layout .qy-table th {
  padding: 14px 16px; text-align: left; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--fw-text-muted);
  background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--fw-border);
}
.fw-layout .qy-table td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--fw-border); }
.fw-layout .qy-table tr:last-child td { border-bottom: none; }
.fw-layout .qy-table tr:hover td { background: rgba(0,229,255,0.03); }

.fw-layout .status-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.fw-layout .status-badge.success { background: rgba(52,211,153,0.15); color: var(--fw-success); }
.fw-layout .status-badge.warning { background: rgba(251,146,60,0.15); color: var(--fw-warning); }
.fw-layout .status-badge.danger { background: rgba(248,113,113,0.15); color: var(--fw-danger); }
.fw-layout .status-badge.info { background: var(--fw-cyan-dim); color: var(--fw-cyan); }
.fw-layout .type-tag { padding: 3px 8px; border-radius: 6px; font-size: 11px; background: rgba(99,102,241,0.15); color: #A5B4FC; }
.fw-layout .type-tag.purple { background: rgba(168,85,247,0.15); color: #C4B5FD; }
.type-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
  white-space: nowrap;
}
.type-tag.purple { background: rgba(168, 85, 247, 0.15); color: #c4b5fd; }
[data-theme="light"] .type-tag { background: rgba(99, 102, 241, 0.1); color: #4338ca; }
[data-theme="light"] .type-tag.purple { background: rgba(168, 85, 247, 0.1); color: #7c3aed; }
.fw-layout .online-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--fw-success); box-shadow: 0 0 6px var(--fw-success); margin-right: 6px; }

.fw-layout .notice-banner {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 20px;
  background: var(--fw-cyan-dim); border: 1px solid rgba(0,229,255,0.2); border-radius: var(--fw-radius-sm);
  font-size: 13px; color: var(--fw-text-muted);
}

.fw-layout .plan-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.fw-layout .plan-card {
  padding: 28px; background: var(--fw-glass); border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius); backdrop-filter: var(--fw-blur); transition: all 0.25s;
  display: flex; flex-direction: column;
}
.fw-layout .plan-card:hover { border-color: var(--fw-border-hover); box-shadow: var(--fw-glow); transform: translateY(-4px); }
.fw-layout .plan-card .plan-price .amount { font-size: 32px; font-weight: 800; color: var(--fw-cyan); }
.fw-layout .plan-card .plan-spec { font-size: 13px; color: var(--fw-text-muted); margin: 12px 0; }
.fw-layout .plan-features { list-style: none; flex: 1; margin-bottom: 20px; }
.fw-layout .plan-features li { display: flex; gap: 8px; font-size: 13px; color: var(--fw-text-muted); padding: 5px 0; }

.fw-layout .stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.fw-layout .stat-card {
  padding: 20px; background: var(--fw-glass); border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-sm); text-align: center;
}
.fw-layout .stat-card strong { display: block; font-size: 22px; font-weight: 800; color: var(--fw-cyan); margin-bottom: 4px; }
.fw-layout .stat-card span { font-size: 12px; color: var(--fw-text-muted); }

.fw-layout .profile-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.fw-layout .avatar-lg { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(0,229,255,0.3); object-fit: cover; }
.fw-layout .form-group label { display: block; margin-bottom: 10px; font-size: 14px; color: var(--fw-text-muted); }

.fw-layout .knowledge-hero { padding: 32px !important; margin-bottom: 24px; }
.fw-layout .qy-knowledge-page .article-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px;
}
.fw-layout .qy-knowledge-page .article-card {
  padding: 0; background: var(--fw-glass); border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-sm); cursor: pointer; transition: all 0.2s; overflow: hidden;
}
.fw-layout .qy-knowledge-page .article-card:hover {
  border-color: var(--fw-cyan); transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}
.fw-layout .qy-knowledge-page .article-thumb {
  height: 168px; background: rgba(15, 23, 42, 0.35); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
[data-theme="light"] .fw-layout .qy-knowledge-page .article-thumb { background: #eef2f7; }
.fw-layout .qy-knowledge-page .article-thumb.has-cover { background: #0f172a; }
[data-theme="light"] .fw-layout .qy-knowledge-page .article-thumb.has-cover { background: #e8eef5; }
.fw-layout .qy-knowledge-page .article-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fw-layout .qy-knowledge-page .article-thumb-fallback { font-size: 48px; line-height: 1; opacity: 0.55; }
.fw-layout .qy-knowledge-page .article-card h3 {
  padding: 16px 16px 8px; font-size: 15px; font-weight: 700; line-height: 1.45;
}
.fw-layout .qy-knowledge-page .article-meta {
  padding: 0 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12px; color: var(--fw-text-muted);
}
.fw-layout .qy-knowledge-page .cat-tag { color: var(--fw-cyan); font-weight: 600; }
.fw-layout .article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fw-layout .article-card {
  padding: 20px; background: var(--fw-glass); border: 1px solid var(--fw-border);
  border-radius: var(--fw-radius-sm); cursor: pointer; transition: all 0.2s;
}
.fw-layout .article-card:hover { border-color: var(--fw-cyan); background: var(--fw-cyan-dim); }
.fw-layout .article-detail { padding: 28px; background: var(--fw-glass); border: 1px solid var(--fw-border); border-radius: var(--fw-radius); }

.fw-layout .invite-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.fw-layout .invite-stat {
  padding: 24px; text-align: center; background: var(--fw-glass); border: 1px solid var(--fw-border); border-radius: var(--fw-radius-sm);
}
.fw-layout .invite-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--fw-cyan); }

.fw-layout .map-card { text-align: center; padding: 32px !important; }
.fw-layout .map-globe {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 16px;
  background: radial-gradient(circle at 35% 35%, var(--fw-cyan), rgba(99,102,241,0.5));
  box-shadow: 0 0 40px rgba(0,229,255,0.2);
}

.fw-layout .qy-btn.primary { background: var(--fw-gradient) !important; color: #0A0F1C !important; font-weight: 600; border: none; }
.fw-layout .qy-btn.gradient { background: var(--fw-gradient-btn) !important; color: #0A0F1C !important; }
.fw-layout .qy-btn.ghost { border-color: var(--fw-border) !important; color: var(--fw-text-muted) !important; background: transparent !important; }
.fw-layout .qy-btn.ghost:hover { border-color: var(--fw-cyan) !important; color: var(--fw-cyan) !important; }
.fw-layout .qy-btn.danger { background: rgba(248,113,113,0.2) !important; color: var(--fw-danger) !important; border: 1px solid rgba(248,113,113,0.3); }

.fw-layout .dropdown {
  background: var(--fw-bg-2) !important; border: 1px solid var(--fw-border) !important;
}
.fw-layout .dropdown button { color: var(--fw-text) !important; }
.fw-layout .dropdown button:hover { background: var(--fw-cyan-dim) !important; }

.fw-layout .qy-period-item { border-color: var(--fw-border) !important; background: rgba(0,0,0,0.2); color: var(--fw-text); }
.fw-layout .qy-period-item.active { background: var(--fw-gradient) !important; color: #0A0F1C !important; border-color: transparent !important; }
.fw-layout .pay-method { border-color: var(--fw-border) !important; background: rgba(0,0,0,0.2); color: var(--fw-text); }
.fw-layout .pay-method.active { border-color: var(--fw-cyan) !important; background: var(--fw-cyan-dim) !important; }

.fw-layout .message.staff { background: rgba(0,0,0,0.3) !important; border: 1px solid var(--fw-border); color: var(--fw-text); }
.fw-layout .message.me { background: var(--fw-cyan-dim) !important; border: 1px solid rgba(0,229,255,0.2); color: var(--fw-text); }

@media (max-width: 1024px) {
  .fw-layout .stat-cards, .fw-layout .invite-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .fw-layout .stat-cards, .fw-layout .invite-grid { grid-template-columns: 1fr; }
  .fw-auth-card { padding: 32px 24px; }
}

/* ===== v3.2: Client logos, avatars, custom nav ===== */
.fw-avatar-ring {
  position: relative;
  border: 2px solid transparent !important;
  background: linear-gradient(var(--fw-bg-2, #0A0F1C), var(--fw-bg-2, #0A0F1C)) padding-box,
              var(--fw-gradient) border-box !important;
  box-shadow: 0 0 16px rgba(0,229,255,0.12);
}
.fw-user-avatar.fw-avatar-ring { width: 64px; height: 64px; }
.fw-qq-badge {
  position: absolute; right: -2px; bottom: -2px;
  padding: 1px 5px; border-radius: 6px; font-size: 9px; font-weight: 800;
  background: linear-gradient(135deg, #12B7F5, #0099FF); color: #fff;
  border: 2px solid var(--fw-bg-2, #0A0F1C); line-height: 1.3; letter-spacing: 0.02em;
}
.fw-qq-badge.lg { font-size: 10px; padding: 2px 6px; }
.profile-avatar-wrap { position: relative; flex-shrink: 0; }
.qq-hint { font-size: 12px; color: var(--fw-cyan); margin-top: 4px; }

.qy-brand-mark {
  overflow: hidden; display: flex !important; align-items: center; justify-content: center;
  min-width: 32px; min-height: 32px;
}
.qy-brand-logo { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.qy-brand-fallback { font-size: 14px; font-weight: 800; color: #fff; line-height: 1; }
.fw-navbar .qy-nav-item.nav-custom {
  border: 1px dashed rgba(168,85,247,0.35);
  background: rgba(168,85,247,0.06);
}
.fw-navbar .qy-nav-item.nav-custom:hover { border-color: rgba(168,85,247,0.5); color: #C4B5FD; }

.fw-app-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--fw-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25); overflow: hidden;
}
.fw-app-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.fw-sub-app { padding: 12px 14px !important; gap: 12px !important; }
.fw-sub-app:hover .fw-app-icon { border-color: rgba(0,229,255,0.4); box-shadow: 0 0 12px rgba(0,229,255,0.15); }
.fw-client-card .fw-app-icon { width: 40px; height: 40px; border-radius: 10px; }

.sub-modal-icon.fw-app-icon { width: 48px; height: 48px; border-radius: 14px; }
.sub-modal-head .sub-modal-title { align-items: center; gap: 14px; }
.import-client-btn .import-icon, .import-client-btn img {
  width: 24px; height: 24px; border-radius: 6px; object-fit: cover;
}

.fw-balance-bar {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; margin-bottom: 24px;
  border-radius: var(--fw-radius-sm);
}
.fw-balance-bar span { font-size: 13px; color: var(--fw-text-muted); }
.fw-balance-bar strong { font-size: 20px; font-weight: 800; color: var(--fw-cyan); flex: 1; }

.fw-layout .plan-card { position: relative; overflow: hidden; }
.fw-layout .plan-card.featured {
  border-color: rgba(0,229,255,0.35) !important;
  box-shadow: 0 0 24px rgba(0,229,255,0.08);
}
.fw-layout .plan-badge {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: var(--fw-gradient); color: #0A0F1C;
}
.fw-section-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: var(--fw-cyan-dim); color: var(--fw-cyan); border: 1px solid rgba(0,229,255,0.2);
  margin-bottom: 12px;
}
.knowledge-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; overflow: hidden; position: relative; }
.knowledge-hero-content { flex: 1; position: relative; z-index: 1; }
.knowledge-hero .hero-desc { font-size: 14px; color: var(--fw-text-muted); margin: 8px 0 20px; }
.knowledge-glow {
  width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle, rgba(0,229,255,0.25), rgba(168,85,247,0.1) 60%, transparent 70%);
  box-shadow: 0 0 60px rgba(0,229,255,0.15);
}
.fw-layout .category-nav {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; margin-bottom: 24px;
  border-radius: var(--fw-radius-sm); border: 1px solid var(--fw-border);
}
.fw-layout .category-nav button {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--fw-border);
  background: transparent; color: var(--fw-text-muted); font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.fw-layout .category-nav button.active {
  background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.25); color: #3B82F6; font-weight: 600;
}
.fw-layout .stat-card.green { border-color: rgba(52,211,153,0.25); }
.fw-layout .stat-card.green strong { color: var(--fw-success); }
.fw-layout .stat-card.blue { border-color: rgba(99,102,241,0.3); }
.fw-layout .stat-card.blue strong { color: #A5B4FC; }
.fw-layout .stat-card label { display: block; font-size: 13px; font-weight: 600; margin: 6px 0 4px; }
.fw-layout .stat-card small { font-size: 11px; color: var(--fw-text-muted); }

@media (max-width: 768px) {
  .knowledge-hero { flex-direction: column; text-align: center; }
  .knowledge-glow { width: 80px; height: 80px; }
  .fw-balance-bar { flex-wrap: wrap; }
}

/* ===== Plan Page v4 ===== */
.fw-plan-page-v4 { display: flex; flex-direction: column; gap: 24px; }

.fw-plan-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding: 32px 36px; flex-wrap: wrap;
}
.fw-plan-hero h1 { font-size: 26px; font-weight: 800; margin: 8px 0; }
.fw-plan-hero p { font-size: 14px; color: var(--fw-text-muted); line-height: 1.6; }
.fw-plan-hero-aside { display: flex; gap: 16px; flex-shrink: 0; }
.fw-plan-current, .fw-plan-balance {
  padding: 16px 20px; border-radius: var(--fw-radius-sm);
  background: rgba(0,0,0,0.15); border: 1px solid var(--fw-border); min-width: 160px;
}
[data-theme="light"] .fw-plan-current,
[data-theme="light"] .fw-plan-balance { background: rgba(15,23,42,0.04); }
.fw-plan-current label, .fw-plan-balance label {
  display: block; font-size: 11px; color: var(--fw-text-muted); text-transform: uppercase;
  letter-spacing: 0.06em; margin-bottom: 6px;
}
.fw-plan-current strong, .fw-plan-balance strong {
  display: block; font-size: 18px; font-weight: 800; color: var(--fw-cyan); margin-bottom: 8px;
}
.fw-plan-balance { display: flex; flex-direction: column; align-items: flex-start; }

.fw-plan-filters {
  display: flex; gap: 8px; padding: 8px; border-radius: var(--fw-radius-sm); flex-wrap: wrap;
}
.fw-plan-filters button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--fw-text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.fw-plan-filters button:hover { color: var(--fw-text); background: var(--fw-glass-hover); }
.fw-plan-filters button.active {
  background: var(--fw-cyan-dim); color: var(--fw-cyan);
  border-color: rgba(34, 211, 238, 0.25);
}
.fw-plan-filters .count {
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: var(--fw-text-muted);
}
.fw-plan-filters button.active .count { background: rgba(34,211,238,0.2); color: var(--fw-cyan); }

.fw-plan-grid-v4 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px;
}
.fw-plan-card-v4 {
  position: relative; padding: 28px; display: flex; flex-direction: column; gap: 16px;
  overflow: hidden;
}
.fw-plan-card-v4.featured { border-color: rgba(34, 211, 238, 0.35) !important; }
.fw-plan-card-v4.current { border-color: rgba(52, 211, 153, 0.35) !important; }
.fw-plan-ribbon {
  position: absolute; top: 16px; right: 16px;
  padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 700;
  background: var(--fw-gradient); color: #0F172A;
}
.fw-plan-ribbon.current { background: rgba(52,211,153,0.15); color: var(--fw-success); border: 1px solid rgba(52,211,153,0.3); }

.fw-plan-card-top h3 { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.fw-plan-price-block { display: flex; align-items: baseline; gap: 4px; }
.fw-plan-amount { font-size: 36px; font-weight: 800; color: var(--fw-cyan); line-height: 1; }
.fw-plan-period { font-size: 14px; color: var(--fw-text-muted); }

.fw-plan-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fw-plan-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px;
  background: rgba(0,0,0,0.18); border: 1px solid var(--fw-border); color: var(--fw-text-muted);
}
[data-theme="light"] .fw-plan-chip { background: rgba(15,23,42,0.04); }
.fw-plan-chip i { font-style: normal; font-size: 13px; }

.fw-plan-period-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fw-period-tag {
  padding: 3px 8px; border-radius: 6px; font-size: 11px;
  background: var(--fw-cyan-dim); color: var(--fw-cyan); border: 1px solid rgba(34,211,238,0.15);
}

.fw-plan-feats-v4 {
  list-style: none; flex: 1; display: flex; flex-direction: column; gap: 8px;
  margin: 4px 0 8px; padding: 16px 0; border-top: 1px solid var(--fw-border); border-bottom: 1px solid var(--fw-border);
}
.fw-plan-feats-v4 li {
  font-size: 13px; color: var(--fw-text-muted); padding-left: 18px; position: relative;
}
.fw-plan-feats-v4 li::before {
  content: '鉁?; position: absolute; left: 0; color: var(--fw-cyan); font-weight: 700;
}

.fw-plan-loading, .fw-plan-empty {
  padding: 48px; text-align: center; color: var(--fw-text-muted); font-size: 14px;
}
.fw-plan-empty p { margin-bottom: 16px; }

/* ===== Purchase Modal v3 ===== */
.fw-purchase-overlay { z-index: 1000; }
.fw-purchase-modal-v3 {
  width: min(920px, 96vw) !important; max-width: 920px !important;
  background: var(--fw-bg-2) !important; border: 1px solid var(--fw-border) !important;
  border-radius: var(--fw-radius) !important; overflow: hidden;
  box-shadow: var(--fw-shadow), var(--fw-glow) !important;
}
.fw-purchase-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 28px 32px 20px; border-bottom: 1px solid var(--fw-border);
}
.fw-purchase-head h2 { font-size: 22px; font-weight: 800; margin: 8px 0 4px; color: var(--fw-text); }
.fw-purchase-sub { font-size: 13px; color: var(--fw-text-muted); }

.fw-purchase-body {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  padding: 24px 32px; max-height: min(70vh, 560px); overflow-y: auto;
}
.fw-purchase-label {
  font-size: 12px; font-weight: 700; color: var(--fw-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px;
}

.fw-period-grid { display: flex; flex-direction: column; gap: 10px; }
.fw-period-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 14px 16px; border-radius: var(--fw-radius-sm);
  border: 1px solid var(--fw-border); background: rgba(0,0,0,0.12);
  color: var(--fw-text); cursor: pointer; transition: all 0.2s; text-align: left;
}
[data-theme="light"] .fw-period-card { background: rgba(15,23,42,0.03); }
.fw-period-card:hover { border-color: var(--fw-border-hover); background: var(--fw-glass-hover); }
.fw-period-card.active {
  border-color: rgba(34, 211, 238, 0.45); background: var(--fw-cyan-dim);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.08);
}
.fw-period-radio {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--fw-border); transition: all 0.2s;
}
.fw-period-card.active .fw-period-radio {
  border-color: var(--fw-cyan); background: var(--fw-cyan);
  box-shadow: inset 0 0 0 3px var(--fw-bg-2);
}
.fw-period-info { flex: 1; }
.fw-period-info strong { display: block; font-size: 14px; font-weight: 700; }
.fw-period-price { font-size: 18px; font-weight: 800; color: var(--fw-cyan); font-variant-numeric: tabular-nums; }

.fw-purchase-summary-v3 {
  padding: 20px; border-radius: var(--fw-radius-sm);
  background: rgba(0,0,0,0.15); border: 1px solid var(--fw-border);
}
[data-theme="light"] .fw-purchase-summary-v3 { background: rgba(15,23,42,0.03); }

.fw-purchase-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px;
}
.fw-spec-item {
  padding: 12px; border-radius: var(--fw-radius-sm); text-align: center;
  background: var(--fw-glass); border: 1px solid var(--fw-border);
}
.fw-spec-icon { display: block; font-size: 18px; margin-bottom: 6px; }
.fw-spec-item strong { display: block; font-size: 15px; font-weight: 800; color: var(--fw-text); }
.fw-spec-item small { font-size: 11px; color: var(--fw-text-muted); }

.fw-purchase-feats {
  list-style: none; margin: 0 0 16px; padding: 0 0 16px;
  border-bottom: 1px solid var(--fw-border);
}
.fw-purchase-feats li {
  font-size: 13px; color: var(--fw-text-muted); padding: 5px 0 5px 16px; position: relative;
}
.fw-purchase-feats li::before {
  content: '鉁?; position: absolute; left: 0; color: var(--fw-cyan); font-weight: 700;
}

.fw-coupon-box { display: flex; gap: 8px; margin-bottom: 16px; }
.fw-coupon-box input {
  flex: 1; padding: 10px 14px; border-radius: var(--fw-radius-sm);
  border: 1px solid var(--fw-border); background: rgba(0,0,0,0.2);
  color: var(--fw-text); font-size: 13px;
}
[data-theme="light"] .fw-coupon-box input { background: #fff; }
.fw-coupon-box input:focus { outline: none; border-color: var(--fw-cyan); }

.fw-price-breakdown { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.fw-price-row {
  display: flex; justify-content: space-between; font-size: 13px; color: var(--fw-text-muted);
}
.fw-price-row.discount span:last-child { color: var(--fw-success); }
.fw-price-row.total {
  padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--fw-border);
  font-size: 15px; color: var(--fw-text);
}
.fw-price-row.total strong { font-size: 22px; font-weight: 800; color: var(--fw-cyan); }

.fw-balance-hint {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 14px; border-radius: var(--fw-radius-sm); font-size: 12px;
}
.fw-balance-hint.ok {
  background: rgba(52,211,153,0.1); border: 1px solid rgba(52,211,153,0.25); color: var(--fw-success);
}
.fw-balance-hint.warn {
  background: rgba(251,146,60,0.1); border: 1px solid rgba(251,146,60,0.25); color: var(--fw-warning);
}
.fw-balance-hint span:first-child { font-weight: 700; color: var(--fw-text); }

.fw-purchase-footer {
  display: flex; justify-content: flex-end; gap: 12px;
  padding: 20px 32px; border-top: 1px solid var(--fw-border);
  background: rgba(0,0,0,0.12);
}
[data-theme="light"] .fw-purchase-footer { background: rgba(15,23,42,0.02); }

@media (max-width: 768px) {
  .fw-plan-hero { flex-direction: column; align-items: stretch; padding: 24px; }
  .fw-plan-hero-aside { flex-direction: column; }
  .fw-plan-grid-v4 { grid-template-columns: 1fr; }
  .fw-purchase-body { grid-template-columns: 1fr; padding: 20px; }
  .fw-purchase-head, .fw-purchase-footer { padding-left: 20px; padding-right: 20px; }
  .fw-purchase-specs { grid-template-columns: 1fr; }
}

/* ===== Order Payment Page v5 ===== */
.fw-order-pay-page { display: flex; flex-direction: column; gap: 24px; }

.fw-order-pay-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 32px; flex-wrap: wrap;
}
.fw-order-pay-hero h1 { font-size: 24px; font-weight: 800; margin: 8px 0; }
.fw-order-pay-hero p { font-size: 14px; color: var(--fw-text-muted); line-height: 1.6; }
.fw-back-link {
  display: inline-block; background: none; border: none; padding: 0; margin-bottom: 12px;
  font-size: 13px; color: var(--fw-text-muted); cursor: pointer; transition: color 0.2s;
}
.fw-back-link:hover { color: var(--fw-cyan); }

.fw-order-status-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 22px; border-radius: var(--fw-radius-sm); min-width: 200px;
  border: 1px solid var(--fw-border); background: rgba(0,0,0,0.12);
}
.fw-order-status-banner.warning { border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.1); }
.fw-order-status-banner.success { border-color: rgba(52,211,153,0.35); background: rgba(52,211,153,0.1); }
.fw-order-status-banner.danger { border-color: rgba(248,113,113,0.35); background: rgba(248,113,113,0.1); }
.fw-order-status-banner.info { border-color: rgba(34,211,238,0.35); background: var(--fw-cyan-dim); }
.fw-status-icon { font-size: 28px; line-height: 1; }
.fw-order-status-banner strong { display: block; font-size: 16px; font-weight: 800; }
.fw-order-status-banner small { font-size: 12px; color: var(--fw-text-muted); }

.fw-order-pay-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.fw-order-summary, .fw-order-pay-panel {
  padding: 28px;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.fw-order-trade-no { margin-bottom: 20px; }
.fw-order-trade-no label {
  display: block; font-size: 11px; color: var(--fw-text-muted);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px;
}
.fw-copy-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--fw-radius-sm);
  background: rgba(0,0,0,0.15); border: 1px solid var(--fw-border);
}
[data-theme="light"] .fw-copy-row { background: rgba(15,23,42,0.04); }
.fw-copy-row code {
  flex: 1; font-size: 12px; word-break: break-all; color: var(--fw-text);
  font-family: ui-monospace, monospace;
}
.fw-copy-btn {
  flex-shrink: 0; padding: 4px 10px; border-radius: 6px; font-size: 11px; font-weight: 600;
  border: 1px solid var(--fw-border); background: var(--fw-glass); color: var(--fw-cyan); cursor: pointer;
}
.fw-copy-btn:hover { border-color: var(--fw-cyan); background: var(--fw-cyan-dim); }

.fw-order-info-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.fw-order-info-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--fw-border); font-size: 13px;
}
.fw-order-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.fw-order-info-item span { color: var(--fw-text-muted); }
.fw-order-info-item strong { text-align: right; color: var(--fw-text); font-weight: 600; }

.fw-order-amount-box {
  padding: 20px; border-radius: var(--fw-radius-sm); text-align: center; margin-bottom: 16px;
  background: var(--fw-cyan-dim); border: 1px solid rgba(34,211,238,0.25);
}
.fw-order-amount-box span { display: block; font-size: 12px; color: var(--fw-text-muted); margin-bottom: 6px; }
.fw-order-amount-box strong { font-size: 32px; font-weight: 800; color: var(--fw-cyan); }

.fw-pay-method-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px;
  margin-bottom: 28px;
}
.fw-pay-method-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 20px 16px; border-radius: var(--fw-radius-sm);
  border: 1px solid var(--fw-border); background: rgba(0,0,0,0.12);
  color: var(--fw-text); cursor: pointer; transition: all 0.22s; text-align: center;
}
[data-theme="light"] .fw-pay-method-card { background: rgba(15,23,42,0.03); }
.fw-pay-method-card:hover { border-color: var(--fw-border-hover); transform: translateY(-2px); }
.fw-pay-method-card.active {
  border-color: rgba(34,211,238,0.45); background: var(--fw-cyan-dim);
  box-shadow: 0 0 20px rgba(34,211,238,0.1);
}
.fw-pay-method-card.balance.active { border-color: rgba(52,211,153,0.45); background: rgba(52,211,153,0.1); }
.fw-pay-method-icon { font-size: 28px; line-height: 1; }
.fw-pay-method-name { font-size: 14px; font-weight: 700; }
.fw-pay-method-extra { font-size: 11px; color: var(--fw-text-muted); }
.fw-pay-method-check {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--fw-cyan); color: #0F172A;
  font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center;
}

.fw-order-pay-actions { display: flex; flex-direction: column; gap: 12px; }
.fw-order-empty-methods { color: var(--fw-warning); font-size: 14px; margin-bottom: 20px; text-align: center; padding: 24px; }

.fw-order-done { text-align: center; padding: 32px 16px; }
.fw-order-done-icon { font-size: 48px; margin-bottom: 16px; }
.fw-order-done h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.fw-order-done p { font-size: 14px; color: var(--fw-text-muted); margin-bottom: 24px; }
.fw-order-done-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.fw-order-loading {
  padding: 64px 32px; text-align: center; color: var(--fw-text-muted); font-size: 14px;
}
.fw-order-loading p { margin-bottom: 16px; }

/* Order pay 鈥?mobile: stack vertically, full width, scroll-friendly */
@media (max-width: 768px) {
  .fw-order-pay-page {
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .fw-order-pay-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
    gap: 14px;
  }

  .fw-order-pay-hero h1 { font-size: 20px; }

  .fw-order-status-banner {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .fw-order-pay-grid {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr !important;
    gap: 16px;
    width: 100%;
    min-width: 0;
  }

  .fw-order-summary,
  .fw-order-pay-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 18px 16px;
    overflow: visible;
  }

  .fw-order-summary { order: 1; }
  .fw-order-pay-panel { order: 2; }

  .fw-order-amount-box strong { font-size: 26px; }

  .fw-pay-method-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
  }

  .fw-pay-method-card {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 14px 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .fw-pay-method-icon { font-size: 24px; }

  .fw-order-pay-actions {
    gap: 10px;
    padding-top: 4px;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
  }

  .fw-order-pay-actions .fw-btn {
    min-height: 48px;
    font-size: 15px;
  }

  .fw-order-done { padding: 24px 12px; }
  .fw-order-done-actions { flex-direction: column; }
  .fw-order-done-actions .fw-btn { width: 100%; }
}

@media (max-width: 480px) {
  .fw-pay-method-grid { grid-template-columns: 1fr; }
}

/* ===== Order List Page v6 ===== */
.fw-order-list-page { display: flex; flex-direction: column; gap: 24px; }

.fw-order-list-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 32px;
  padding: 32px 36px; flex-wrap: wrap;
}
.fw-order-list-hero h1 { font-size: 26px; font-weight: 800; margin: 8px 0; }
.fw-order-list-hero p { font-size: 14px; color: var(--fw-text-muted); line-height: 1.6; }

.fw-order-list-stats { display: flex; gap: 16px; flex-shrink: 0; }
.fw-order-stat-item {
  min-width: 100px; padding: 16px 20px; text-align: center;
  border-radius: var(--fw-radius-sm); background: rgba(0,0,0,0.15);
  border: 1px solid var(--fw-border);
}
[data-theme="light"] .fw-order-stat-item { background: rgba(15,23,42,0.04); }
.fw-order-stat-item strong { display: block; font-size: 24px; font-weight: 800; color: var(--fw-text); margin-bottom: 4px; }
.fw-order-stat-item span { font-size: 12px; color: var(--fw-text-muted); }
.fw-order-stat-item.highlight { border-color: rgba(251,146,60,0.35); background: rgba(251,146,60,0.08); }
.fw-order-stat-item.highlight strong { color: var(--fw-warning); }

.fw-order-list-toolbar { display: flex; flex-direction: column; gap: 12px; }
.fw-order-search {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px;
  border-radius: var(--fw-radius-sm); border: 1px solid var(--fw-border);
}
.fw-search-icon { font-size: 16px; opacity: 0.6; flex-shrink: 0; }
.fw-order-search input {
  flex: 1; border: none; background: transparent; color: var(--fw-text);
  font-size: 14px; outline: none;
}
.fw-order-search input::placeholder { color: var(--fw-text-muted); }

.fw-order-filters {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border-radius: var(--fw-radius-sm);
  border: 1px solid var(--fw-border);
}
.fw-order-filters button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid transparent;
  background: transparent; color: var(--fw-text-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.fw-order-filters button:hover { color: var(--fw-text); background: var(--fw-glass-hover); }
.fw-order-filters button.active {
  background: var(--fw-cyan-dim); color: var(--fw-cyan); border-color: rgba(34,211,238,0.25);
}
.fw-order-filters .count {
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: var(--fw-text-muted);
}
.fw-order-filters button.active .count { background: rgba(34,211,238,0.2); color: var(--fw-cyan); }

.fw-order-list { display: flex; flex-direction: column; gap: 14px; }

.fw-order-card {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 26px; flex-wrap: wrap;
}
.fw-order-card.pending { border-color: rgba(251,146,60,0.25) !important; }
.fw-order-card-main { flex: 1; min-width: 240px; }
.fw-order-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.fw-status-pill.warning { background: rgba(251,146,60,0.12); color: var(--fw-warning); border: 1px solid rgba(251,146,60,0.25); }
.fw-status-pill.success { background: rgba(52,211,153,0.12); color: var(--fw-success); border: 1px solid rgba(52,211,153,0.25); }
.fw-status-pill.danger { background: rgba(248,113,113,0.12); color: var(--fw-danger); border: 1px solid rgba(248,113,113,0.25); }
.fw-status-pill.info { background: var(--fw-cyan-dim); color: var(--fw-cyan); border: 1px solid rgba(34,211,238,0.25); }

.fw-order-plan-name { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.fw-order-meta { font-size: 13px; color: var(--fw-text-muted); margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.fw-order-trade-row {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 10px; border-radius: 8px;
  background: rgba(0,0,0,0.12); border: 1px solid var(--fw-border);
}
[data-theme="light"] .fw-order-trade-row { background: rgba(15,23,42,0.04); }
.fw-order-trade-row code { font-size: 12px; font-family: ui-monospace, monospace; color: var(--fw-text-muted); }

.fw-order-card-side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex-shrink: 0;
}
.fw-order-amount { font-size: 24px; font-weight: 800; color: var(--fw-cyan); font-variant-numeric: tabular-nums; }
.fw-order-card-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.fw-btn-danger-text { color: var(--fw-danger) !important; border-color: rgba(248,113,113,0.3) !important; }
.fw-btn-danger-text:hover { background: rgba(248,113,113,0.1) !important; color: var(--fw-danger) !important; }

.fw-order-empty {
  padding: 64px 32px; text-align: center; border-radius: var(--fw-radius);
}
.fw-order-empty-icon { font-size: 48px; margin-bottom: 16px; opacity: 0.6; }
.fw-order-empty p { color: var(--fw-text-muted); font-size: 14px; margin-bottom: 20px; }

@media (max-width: 768px) {
  .fw-order-list-hero { flex-direction: column; align-items: stretch; padding: 24px; }
  .fw-order-list-stats { justify-content: space-between; }
  .fw-order-stat-item { flex: 1; min-width: 0; }
}

/* ===== QieYun Dashboard (PC 鍙傝€冨竷灞€) ===== */
.qy-dash { color: var(--fw-text); }
.qy-dash-pc { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.qy-unpaid-pc-top { margin-bottom: 0; }
.qy-dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 400px);
  gap: 20px;
  align-items: start;
}
.qy-dash-main, .qy-dash-side { display: flex; flex-direction: column; gap: 16px; }
.qy-dash-side { min-width: 0; }

.qy-user-banner {
  position: relative; overflow: hidden; border-radius: 18px;
  background: linear-gradient(135deg, #3B82F6 0%, #06B6D4 55%, #2563EB 100%);
  color: #fff; min-height: 220px; display: flex; align-items: stretch;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.25);
}
.qy-user-banner-pc { min-height: 210px; border-radius: 16px; }
.qy-user-banner-content { flex: 1; padding: 28px 32px; position: relative; z-index: 1; }
.qy-user-banner-pc .qy-user-banner-content { padding: 24px 28px; max-width: calc(100% - 220px); }
.qy-user-banner-art {
  width: 180px; flex-shrink: 0; opacity: 0.15;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.8), transparent 60%);
}
.qy-user-banner-art-pc {
  width: 220px; opacity: 1; background: none;
  display: flex; align-items: center; justify-content: center; padding-right: 20px;
}
.qy-user-banner-art-pc svg { width: 100%; height: auto; max-height: 170px; }
.qy-user-greet { font-size: 14px; opacity: 0.92; margin-bottom: 6px; }
.qy-user-plan { font-size: 24px; font-weight: 800; margin-bottom: 18px; line-height: 1.35; }
.qy-user-stats { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 22px; }
.qy-user-stats-pc { gap: 28px; margin-bottom: 20px; }
.qy-user-stat { display: flex; align-items: center; gap: 10px; min-width: 110px; }
.qy-stat-circle {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.qy-user-stat .stat-icon { font-size: 22px; opacity: 0.95; }
.qy-user-stat label { display: block; font-size: 11px; opacity: 0.85; margin-bottom: 2px; }
.qy-user-stat strong { font-size: 15px; font-weight: 800; }
.qy-user-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.qy-btn-white-pc {
  padding: 8px 20px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.95); color: #2563EB; font-weight: 700; font-size: 13px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.qy-btn-green {
  padding: 10px 28px; border-radius: 999px; border: none; cursor: pointer;
  background: #22C55E; color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 4px 14px rgba(34,197,94,0.35); transition: transform 0.2s;
}
.qy-btn-green:hover { transform: translateY(-1px); }
.qy-btn-white {
  padding: 10px 28px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255,255,255,0.95); color: #2563EB; font-weight: 700; font-size: 14px;
}
.qy-btn-blue {
  padding: 6px 14px; border-radius: 8px; border: none; cursor: pointer;
  background: #3B82F6; color: #fff; font-weight: 600; font-size: 12px;
}
.qy-btn-blue.sm { padding: 5px 12px; font-size: 11px; }
.qy-btn-purple {
  padding: 8px 16px; border-radius: 8px; border: none; cursor: pointer;
  background: linear-gradient(135deg, #8B5CF6, #6366F1); color: #fff; font-weight: 600; font-size: 13px;
}
.qy-btn-purple.sm { padding: 6px 14px; font-size: 12px; }
.qy-btn-outline {
  padding: 8px 16px; border-radius: 8px; cursor: pointer;
  background: transparent; border: 1px solid #3B82F6; color: #3B82F6; font-weight: 600; font-size: 13px;
}

.qy-panel {
  background: var(--fw-bg-2); border: 1px solid var(--fw-border);
  border-radius: 16px; padding: 20px 22px;
  box-shadow: var(--fw-shadow);
}
.qy-client-panel-pc { padding: 22px 24px; }
.qy-panel-head-pc { margin-bottom: 14px; }
.qy-panel-head-pc h3 { font-size: 15px; font-weight: 800; margin-bottom: 2px; }
.qy-panel-head-pc p { font-size: 12px; color: var(--fw-text-muted); }
[data-theme="slate"] .qy-panel,
[data-theme="cyan"] .qy-panel,
[data-theme="purple"] .qy-panel { background: rgba(30,41,59,0.6); }
[data-theme="light"] .qy-panel { background: #fff; }
.qy-panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.qy-panel-head h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.qy-panel-head p { font-size: 12px; color: var(--fw-text-muted); margin: 0; }

.qy-os-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.qy-os-tabs button {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--fw-border);
  background: transparent; color: var(--fw-text-muted); font-size: 13px; cursor: pointer; transition: all 0.2s;
}
.qy-os-tabs button.active {
  background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.35); color: #22C55E; font-weight: 700;
  box-shadow: 0 0 16px rgba(34,197,94,0.12);
}
.qy-os-tabs .os-icon { font-size: 14px; }
.qy-os-tabs-pc {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: unset;
}
.qy-os-tabs-pc button {
  flex-direction: column !important;
  justify-content: center;
  align-items: center;
  gap: 4px !important;
  padding: 12px 8px !important;
  border-radius: 12px !important;
  width: 100%;
  font-size: 13px !important;
}
.qy-os-tabs-pc .os-icon { font-size: 20px !important; }
.qy-os-tabs-pc .os-label { font-size: 13px; font-weight: 600; }
.qy-os-tabs-pc button.active {
  background: rgba(59,130,246,0.1) !important;
  border-color: rgba(59,130,246,0.35) !important;
  color: #2563EB !important;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08) !important;
  font-weight: 700;
}

/* PC client download cards */
.qy-client-cards-pc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.qy-client-card-pc {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 14px 14px; border-radius: 14px;
  border: 1px solid var(--fw-border); background: #F8FAFC;
  min-height: 200px;
}
[data-theme="slate"] .qy-client-card-pc,
[data-theme="purple"] .qy-client-card-pc,
[data-theme="cyan"] .qy-client-card-pc { background: rgba(15,23,42,0.35); }
.qy-client-card-pc:hover { border-color: rgba(59,130,246,0.35); box-shadow: 0 4px 16px rgba(59,130,246,0.08); }
.qy-client-card-pc .qy-client-card-logo {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 10px;
}
.qy-client-card-pc .qy-client-card-logo img { width: 36px; height: 36px; }
.qy-client-card-pc .qy-client-card-info { margin-bottom: auto; padding-bottom: 12px; min-height: auto; }
.qy-client-card-pc .qy-client-card-info strong { font-size: 12px; line-height: 1.45; }
.qy-client-card-pc .qy-client-card-btns { margin-top: auto; width: 100%; }
.qy-client-card-logo {
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(59,130,246,0.25);
}
.qy-client-card-logo img { object-fit: contain; border-radius: 8px; }
.qy-client-card-info strong { display: block; font-weight: 700; margin-bottom: 4px; }
.qy-client-card-info small { font-size: 12px; color: var(--fw-text-muted); }
.qy-client-card-btns { display: flex; gap: 8px; width: 100%; }
.qy-pc-btn-download, .qy-pc-btn-tutorial {
  flex: 1; padding: 8px 6px; border: none; border-radius: 10px;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.qy-pc-btn-download { background: rgba(59,130,246,0.12); color: #2563EB; }
.qy-pc-btn-tutorial { background: rgba(139,92,246,0.12); color: #7C3AED; }
.qy-pc-expand-btn {
  width: 100%; margin-top: 16px; padding: 10px; border: none; border-radius: 999px;
  background: #F1F5F9; color: var(--fw-text-muted); font-size: 13px; cursor: pointer;
}
[data-theme="slate"] .qy-pc-expand-btn,
[data-theme="purple"] .qy-pc-expand-btn,
[data-theme="cyan"] .qy-pc-expand-btn { background: rgba(148,163,184,0.12); }

.qy-client-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.qy-client-side-list { display: flex; flex-direction: column; gap: 12px; }
.qy-client-mini-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: var(--fw-radius-sm); border: 1px solid var(--fw-border); background: rgba(0,0,0,0.08);
}
[data-theme="light"] .qy-client-mini-card { background: #F8FAFC; }
.qy-client-mini-card img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.qy-client-mini-info { flex: 1; min-width: 0; }
.qy-client-mini-info strong { display: block; font-size: 13px; }
.qy-client-mini-info small { font-size: 11px; color: var(--fw-text-muted); }
.qy-client-featured {
  padding: 20px; border-radius: var(--fw-radius-sm);
  border: 1px solid rgba(59,130,246,0.25); background: rgba(59,130,246,0.06);
}
.qy-client-featured-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.qy-client-featured-head img { width: 48px; height: 48px; border-radius: 12px; }
.qy-client-featured-head strong { display: block; font-size: 14px; }
.qy-client-featured-head small { font-size: 12px; color: var(--fw-text-muted); }
.qy-client-featured-btns { display: flex; gap: 10px; flex-wrap: wrap; }

.qy-notice-row {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--fw-border);
}
.qy-notice-row:last-child { border-bottom: none; }
.qy-notice-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.qy-notice-row-pc {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}
.qy-notice-row-pc .qy-notice-icon { margin-top: 0; font-size: 16px; }
.qy-notice-row-pc .qy-notice-text { min-width: 0; }
.qy-notice-row-pc .qy-notice-text strong { margin-bottom: 2px; font-size: 13px; }
.qy-notice-row-pc .qy-notice-date { display: block; font-size: 11px; color: var(--fw-text-muted); margin: 0; }
.qy-notice-link {
  font-size: 12px; color: #3B82F6; cursor: pointer; white-space: nowrap; flex-shrink: 0;
}
.qy-notice-link:hover { text-decoration: underline; }

.qy-subscribe-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.qy-subscribe-grid-pc {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}
.qy-subscribe-btn-pc {
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  padding: 8px 10px !important;
  gap: 8px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  text-align: left;
}
.qy-subscribe-btn-pc img { width: 24px !important; height: 24px !important; flex-shrink: 0; }
.qy-subscribe-btn-pc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qy-subscribe-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 8px; border-radius: var(--fw-radius-sm);
  border: 1px solid var(--fw-border); background: rgba(0,0,0,0.06);
  cursor: pointer; transition: all 0.2s; font-size: 11px; color: var(--fw-text-muted);
}
[data-theme="light"] .qy-subscribe-btn { background: #F8FAFC; }
.qy-subscribe-btn:hover { border-color: var(--fw-cyan); color: var(--fw-text); transform: translateY(-2px); }
.qy-subscribe-btn img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

.qy-invite-banner {
  position: relative; overflow: hidden; padding: 28px 24px; border-radius: 18px;
  background: linear-gradient(135deg, #F97316 0%, #FBBF24 100%);
  color: #fff; cursor: pointer; min-height: 160px;
  box-shadow: 0 12px 32px rgba(249,115,22,0.25);
}
.qy-invite-pc {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 170px; padding: 22px 24px;
}
.qy-invite-pc-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.qy-invite-pc-body h3 { font-size: 16px; font-weight: 800; line-height: 1.4; margin-bottom: 8px; }
.qy-invite-pc-body p { font-size: 12px; opacity: 0.9; margin: 0 0 12px; line-height: 1.5; }
.qy-invite-rate-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.28); margin-bottom: 8px;
}
.qy-invite-pc-art {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.qy-invite-badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.25); margin-bottom: 12px;
}
.qy-invite-banner h3 { font-size: 18px; font-weight: 800; line-height: 1.5; margin-bottom: 16px; }
.qy-invite-btn {
  padding: 10px 24px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(0,0,0,0.25); color: #fff; font-weight: 700; font-size: 13px;
}

/* Server page */
.fw-server-page { display: flex; flex-direction: column; gap: 20px; }
.fw-server-hero {
  display: flex; justify-content: space-between; align-items: center; padding: 28px 32px; flex-wrap: wrap;
}
.fw-server-hero h1 { font-size: 24px; font-weight: 800; margin: 8px 0 4px; }
.fw-server-hero p { font-size: 14px; color: var(--fw-text-muted); }
.fw-server-search {
  display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: var(--fw-radius-sm);
  border: 1px solid var(--fw-border);
}
.fw-server-search input {
  flex: 1; border: none; background: transparent; color: var(--fw-text); font-size: 14px; outline: none;
}
.fw-server-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.fw-server-card { padding: 18px 20px; }
.fw-server-card-top { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.fw-server-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.fw-server-meta { font-size: 12px; color: var(--fw-text-muted); }

.qy-knowledge-page .article-body {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--fw-border);
  font-size: 14px; line-height: 1.75; color: var(--fw-text-muted);
}
.qy-knowledge-page .article-body img { max-width: 100%; border-radius: 8px; }
.qy-knowledge-page .article-card.open { border-color: var(--fw-cyan); }

.qy-knowledge-page .qy-knowledge-fc-grid {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 12px !important;
  width: 100% !important;
  margin-bottom: 24px !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.qy-knowledge-page .qy-knowledge-fc-grid > .qy-dx-fc-card {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  min-height: 206px;
  max-height: 206px;
}

.qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-foot {
  padding: 4px 10px;
  min-height: 26px;
}

.qy-knowledge-page .qy-knowledge-fc-grid .qy-dx-fc-action-ico {
  width: 24px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 10px;
}

.qy-dx-fc-card--all {
  background: linear-gradient(180deg, #ecfeff 0%, #cffafe 32%, #67e8f9 70%, #06b6d4 100%) !important;
}

.qy-dx-fc-card--default {
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 42%, #cbd5e1 74%, #94a3b8 100%);
}

.qy-dx-fc-card--all .qy-dx-fc-os-svg--all { color: #0e7490; }
.qy-dx-fc-card--default .qy-dx-fc-os-svg--default { color: #334155; }

.qy-dx-fc-card--all .qy-dx-fc-title { color: #155e75; }
.qy-dx-fc-card--all .qy-dx-fc-desc { color: rgba(21, 94, 117, 0.72); }

.qy-knowledge-page .section-title { font-size: 20px; font-weight: 800; margin-bottom: 18px; }

@media (max-width: 1024px) {
  .fw-layout .qy-knowledge-page .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .fw-layout .qy-knowledge-page .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 480px) {
  .fw-layout .qy-knowledge-page .article-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1280px) {
  .qy-dash-grid { grid-template-columns: minmax(0, 1.65fr) minmax(300px, 360px); }
  .qy-client-cards-pc { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
  .qy-dash-grid { grid-template-columns: 1fr; }
  .qy-client-cards-pc { grid-template-columns: repeat(3, 1fr); }
  .qy-subscribe-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
  .fw-navbar-v3:not(.qy-pg-navbar) .qy-menu-toggle { display: none !important; }
}
@media (max-width: 640px) {
  .qy-user-stats { flex-direction: column; gap: 12px; }
  .qy-user-banner-art { display: none; }
  .qy-subscribe-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Mobile Dashboard v3.12 — padding 由 qy-bottom-nav.css / qy-mobile.css 统一管理 ===== */
@media (max-width: 768px) {
  .fw-navbar .qy-nav-desktop,
  .fw-navbar .qy-nav.qy-nav-desktop { display: none !important; }
  .qy-pg-navbar .qy-nav-mobile-brand { display: flex !important; }
  .qy-pg-navbar .qy-mobile-menu-btn,
  .qy-pg-navbar .fw-menu-toggle { display: none !important; }
  .qy-pg-navbar .qy-nav-drawer,
  .qy-pg-navbar .qy-nav-backdrop { display: none !important; }
  /* .qy-main padding → qy-mobile.css; .qy-chat-wrap → qy-chat-fab.css */
}

.qy-unpaid-global { margin-bottom: 12px; }

/* ===== 顶部提示条容器（导航栏下方） v3.64.68 ===== */
.qy-top-alerts {
  position: sticky;
  top: var(--qy-nav-height, 64px);
  z-index: 90000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px 0;
  pointer-events: none;
  isolation: isolate;
}

.qy-top-alerts > * {
  pointer-events: auto;
}

/* ===== 套餐到期/续费提醒 v3.64.79 ===== */
.qy-renew-top-bar {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.qy-renew-top-bar__container {
  max-width: 1440px;
  margin: 0 auto;
  pointer-events: auto;
}

.qy-renew-top-bar__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 18px;
  border-radius: 18px;
  cursor: pointer;
  overflow: visible;
  box-sizing: border-box;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.qy-renew-top-bar__fx {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

.qy-renew-top-bar__content {
  position: relative;
  z-index: 20;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.qy-renew-top-bar__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 21;
}

.qy-renew-top-bar__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  position: relative;
  z-index: 21;
}

.qy-renew-top-bar__inner--center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px 20px 16px;
  gap: 0;
}

.qy-renew-top-bar__inner--center .qy-renew-top-bar__head {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qy-renew-top-bar__inner--center .qy-renew-top-bar__pulse {
  left: 50%;
  top: 22px;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.qy-renew-top-bar__inner--center .qy-renew-top-bar__text {
  flex: none;
  width: 100%;
  text-align: center;
}

.qy-renew-top-bar__shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 45%,
    transparent 70%
  );
  background-size: 220% 100%;
  animation: qyRenewShimmer 4.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes qyRenewShimmer {
  0%, 100% { background-position: 120% 0; opacity: 0.35; }
  50% { background-position: -20% 0; opacity: 0.85; }
}

.qy-renew-pop-enter-active,
.qy-renew-pop-leave-active {
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.qy-renew-pop-enter-from,
.qy-renew-pop-leave-to {
  opacity: 0;
  transform: translateY(-10px);
}


.qy-renew-top-bar--expired .qy-renew-top-bar__inner {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(251, 146, 60, 0.16) 42%, rgba(127, 29, 29, 0.14) 100%);
  border: 1px solid rgba(248, 113, 113, 0.42);
  box-shadow:
    0 10px 36px rgba(239, 68, 68, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__inner {
  background:
    linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.14) 45%, rgba(180, 83, 9, 0.12) 100%);
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow:
    0 10px 36px rgba(245, 158, 11, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.qy-renew-top-bar__inner:hover {
  transform: translateY(-1px);
}

.qy-renew-top-bar--expired .qy-renew-top-bar__inner:hover {
  border-color: rgba(252, 165, 165, 0.55);
  box-shadow: 0 14px 44px rgba(239, 68, 68, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__inner:hover {
  border-color: rgba(252, 211, 77, 0.52);
  box-shadow: 0 14px 44px rgba(245, 158, 11, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qy-renew-top-bar__pulse {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 50%;
  pointer-events: none;
  animation: qyRenewPulse 2.4s ease-out infinite;
}

.qy-renew-top-bar--expired .qy-renew-top-bar__pulse {
  background: rgba(239, 68, 68, 0.24);
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__pulse {
  background: rgba(245, 158, 11, 0.22);
}

@keyframes qyRenewPulse {
  0% { transform: translateY(-50%) scale(0.85); opacity: 0.8; }
  70% { transform: translateY(-50%) scale(1.4); opacity: 0; }
  100% { transform: translateY(-50%) scale(1.4); opacity: 0; }
}

.qy-renew-top-bar__icon {
  position: relative;
  z-index: 22;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff7ed;
}

.qy-renew-top-bar--expired .qy-renew-top-bar__icon {
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.45), rgba(239, 68, 68, 0.32));
  border: 1px solid rgba(254, 202, 202, 0.48);
  box-shadow: 0 4px 18px rgba(239, 68, 68, 0.28);
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__icon {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.42), rgba(245, 158, 11, 0.3));
  border: 1px solid rgba(253, 230, 138, 0.45);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.24);
  color: #fffbeb;
}

.qy-renew-top-bar__icon svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
}

.qy-renew-top-bar__inner--center .qy-renew-top-bar__pulse {
  animation-name: qyRenewPulseCenter;
}

@keyframes qyRenewPulseCenter {
  0% { transform: translate(-50%, -50%) scale(0.85); opacity: 0.8; }
  70% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1.4); opacity: 0; }
}

.qy-renew-top-bar__text {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 22;
}

.qy-renew-top-bar__title {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #fff7ed;
  font-family: var(--fw-font-display, inherit);
  position: relative;
  z-index: 23;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__title {
  color: #fffbeb;
}

.qy-renew-top-bar__subtitle {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  color: #fde68a;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 23;
}

.qy-renew-top-bar--expired .qy-renew-top-bar__subtitle {
  color: #fecaca;
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__subtitle {
  color: #fef3c7;
}

.qy-renew-top-bar__tagline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.35;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 24;
  animation: qyRenewTaglinePulse 2.6s ease-in-out infinite;
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__tagline {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.85), rgba(180, 83, 9, 0.9));
  border-color: rgba(253, 230, 138, 0.45);
  color: #fffbeb;
}

.qy-renew-top-bar--expired .qy-renew-top-bar__tagline {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.88), rgba(185, 28, 28, 0.92));
  border-color: rgba(254, 202, 202, 0.4);
}

@keyframes qyRenewTaglinePulse {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
  50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.35); }
}

.qy-renew-top-bar__text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.35;
  color: #fff7ed;
  font-family: var(--fw-font-display, inherit);
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__text strong {
  color: #fffbeb;
}

.qy-renew-top-bar__text span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(254, 226, 226, 0.88);
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__text span {
  color: rgba(254, 243, 199, 0.9);
}

.qy-renew-top-bar__cta {
  flex-shrink: 0;
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.qy-renew-top-bar--expired .qy-renew-top-bar__cta {
  background: linear-gradient(135deg, #fb7185, #ef4444, #dc2626);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.35);
}

.qy-renew-top-bar--expiring .qy-renew-top-bar__cta {
  background: linear-gradient(135deg, #fcd34d, #f59e0b, #d97706);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.32);
  color: #451a03;
}

.qy-renew-top-bar__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.qy-renew-top-bar__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(254, 226, 226, 0.92);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.qy-renew-top-bar__close:hover {
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
}

body.qy-has-renew-bar .qy-dashboard-layout.fw-layout .qy-main,
body.qy-has-unpaid-bar .qy-dashboard-layout.fw-layout .qy-main {
  padding-top: 4px !important;
}

[data-theme="light"] .qy-renew-top-bar--expired .qy-renew-top-bar__inner {
  background: linear-gradient(135deg, rgba(254, 226, 226, 0.92), rgba(255, 237, 213, 0.88));
  border-color: rgba(248, 113, 113, 0.35);
}

[data-theme="light"] .qy-renew-top-bar--expiring .qy-renew-top-bar__inner {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.94), rgba(255, 251, 235, 0.9));
  border-color: rgba(245, 158, 11, 0.32);
}

[data-theme="light"] .qy-renew-top-bar--expired .qy-renew-top-bar__text strong {
  color: #991b1b;
}

[data-theme="light"] .qy-renew-top-bar--expiring .qy-renew-top-bar__text strong {
  color: #92400e;
}

[data-theme="light"] .qy-renew-top-bar--expired .qy-renew-top-bar__text span {
  color: #b45309;
}

[data-theme="light"] .qy-renew-top-bar--expiring .qy-renew-top-bar__text span {
  color: #a16207;
}

[data-theme="light"] .qy-renew-top-bar__subtitle {
  color: #b45309;
}

[data-theme="light"] .qy-renew-top-bar--expiring .qy-renew-top-bar__subtitle {
  color: #92400e;
}

[data-theme="light"] .qy-renew-top-bar__tagline {
  color: #fff;
  background: linear-gradient(135deg, #d97706, #b45309);
  border-color: rgba(253, 230, 138, 0.5);
}

[data-theme="light"] .qy-renew-top-bar--expired .qy-renew-top-bar__tagline {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
}

/* ===== 全站未支付订单提示 v3.62.5 ===== */
.qy-unpaid-global-bar {
  position: relative;
  top: auto;
  z-index: 1;
  padding: 0;
  pointer-events: auto;
  max-height: none;
  overflow: visible;
}

.qy-unpaid-global-bar--float {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  padding: 0;
  pointer-events: auto;
  max-height: none;
}

.qy-unpaid-pop-enter-active,
.qy-unpaid-pop-leave-active {
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.qy-unpaid-pop-enter-from,
.qy-unpaid-pop-leave-to {
  opacity: 0;
  transform: translateY(-12px);
}

.qy-unpaid-global-bar__container {
  max-width: 1440px;
  margin: 0 auto;
  pointer-events: auto;
}

.qy-unpaid-global-bar__inner--center {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px 14px;
  max-height: none;
  gap: 12px;
}

.qy-unpaid-global-bar__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.qy-unpaid-global-bar__inner--center .qy-unpaid-global-bar__pulse {
  left: 50%;
  top: 36px;
  transform: translate(-50%, -50%);
}

.qy-unpaid-global-bar__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.qy-unpaid-global-bar__inner--center .qy-unpaid-global-bar__text {
  flex: none;
  width: 100%;
  text-align: center;
}

.qy-unpaid-global-bar__inner--center .qy-unpaid-global-bar__text strong {
  font-size: 17px;
  text-align: center;
  letter-spacing: 0.01em;
}

.qy-unpaid-global-bar__inner--center .qy-unpaid-global-bar__text span {
  text-align: center;
}

.qy-unpaid-global-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 18px;
  border-radius: 16px;
  cursor: pointer;
  overflow: hidden;
  max-height: 72px;
  box-sizing: border-box;
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.18) 0%, rgba(239, 68, 68, 0.14) 45%, rgba(127, 29, 29, 0.12) 100%);
  border: 1px solid rgba(251, 146, 60, 0.38);
  box-shadow:
    0 8px 32px rgba(239, 68, 68, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.qy-unpaid-global-bar__inner:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 146, 60, 0.52);
  box-shadow:
    0 12px 40px rgba(239, 68, 68, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qy-unpaid-global-bar__pulse {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.22);
  animation: qyUnpaidPulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes qyUnpaidPulse {
  0% { transform: translateY(-50%) scale(0.85); opacity: 0.75; }
  70% { transform: translateY(-50%) scale(1.35); opacity: 0; }
  100% { transform: translateY(-50%) scale(1.35); opacity: 0; }
}

.qy-unpaid-global-bar__icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.35), rgba(239, 68, 68, 0.28));
  border: 1px solid rgba(252, 165, 165, 0.45);
  color: #fecaca;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.25);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
}

.qy-unpaid-global-bar svg {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.qy-unpaid-global-bar__text {
  flex: 1;
  min-width: 0;
}

.qy-unpaid-global-bar__text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #fff7ed;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}

.qy-unpaid-global-bar__text span {
  display: block;
  font-size: 12px;
  color: #fdba74;
  line-height: 1.4;
}

.qy-unpaid-global-bar__pay {
  flex-shrink: 0;
  padding: 10px 20px;
  min-height: 42px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #fb923c 0%, #ef4444 55%, #dc2626 100%);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.38);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.qy-unpaid-global-bar__pay:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 8px 26px rgba(239, 68, 68, 0.45);
}

.qy-unpaid-global-bar__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: #fecaca;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.qy-unpaid-global-bar__close:hover {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.qy-has-unpaid-bar .qy-dashboard-layout.fw-layout .qy-main {
  padding-top: 8px !important;
}

/* ===== 页面加载状态 v3.62.6 ===== */
.qy-page-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 36px 24px;
  margin: 16px 0 20px;
  text-align: center;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.55) 0%, rgba(15, 23, 42, 0.72) 100%);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.qy-page-load__visual {
  position: relative;
  width: 56px;
  height: 56px;
}

.qy-page-load__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(148, 163, 184, 0.15);
  border-top-color: #22d3ee;
  border-right-color: #2dd4bf;
  animation: qyPageLoadSpin 0.85s linear infinite;
}

.qy-page-load__ring--delay {
  inset: 8px;
  border-top-color: #a78bfa;
  border-right-color: #22d3ee;
  animation-duration: 1.1s;
  animation-direction: reverse;
  opacity: 0.75;
}

@keyframes qyPageLoadSpin {
  to { transform: rotate(360deg); }
}

.qy-page-load__text {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #e2e8f0;
}

.qy-page-load__hint {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.qy-page-load--error .qy-page-load__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.qy-page-load__retry {
  margin-top: 4px;
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 100%);
  color: #042f2e;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(34, 211, 238, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qy-page-load__retry:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(34, 211, 238, 0.36);
}

[data-theme="light"] .qy-page-load {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92) 0%, rgba(241, 245, 249, 0.88) 100%);
  border-color: rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .qy-page-load__text {
  color: #0f172a;
}

[data-theme="light"] .qy-page-load__hint {
  color: #64748b;
}

[data-theme="light"] .qy-unpaid-global-bar__inner {
  background:
    linear-gradient(135deg, rgba(251, 146, 60, 0.12) 0%, rgba(254, 226, 226, 0.85) 100%);
  border-color: rgba(251, 146, 60, 0.35);
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.12);
}

[data-theme="light"] .qy-unpaid-global-bar__text strong {
  color: #9a3412;
}

[data-theme="light"] .qy-unpaid-global-bar__text span {
  color: #c2410c;
}

[data-theme="light"] .qy-unpaid-global-bar__icon {
  color: #ea580c;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.22), rgba(254, 202, 202, 0.5));
}

[data-theme="light"] .qy-unpaid-global-bar__close {
  background: rgba(255, 255, 255, 0.65);
  color: #9a3412;
  border-color: rgba(251, 146, 60, 0.25);
}

@media (max-width: 768px) {
  .qy-top-alerts {
    top: var(--qy-nav-height, 56px);
    padding: 6px 12px 0;
    gap: 6px;
    z-index: 90000;
  }

  .qy-renew-top-bar {
    z-index: 2;
  }

  .qy-renew-top-bar__inner {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .qy-renew-top-bar--expired .qy-renew-top-bar__inner {
    background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 55%, #991b1b 100%) !important;
    border-color: rgba(248, 113, 113, 0.55) !important;
  }

  .qy-renew-top-bar--expiring .qy-renew-top-bar__inner {
    background: linear-gradient(135deg, #78350f 0%, #b45309 55%, #92400e 100%) !important;
    border-color: rgba(251, 191, 36, 0.55) !important;
  }

  .qy-renew-top-bar__pulse,
  .qy-renew-top-bar__shine {
    display: none !important;
  }

  .qy-renew-top-bar__content,
  .qy-renew-top-bar__head,
  .qy-renew-top-bar__text,
  .qy-renew-top-bar__actions,
  .qy-renew-top-bar__title,
  .qy-renew-top-bar__subtitle,
  .qy-renew-top-bar__tagline,
  .qy-renew-top-bar__icon {
    position: relative;
    z-index: 20;
  }

  .qy-renew-top-bar__text {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
  }

  .qy-renew-top-bar__title {
    color: #fff !important;
    font-size: 15px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  }

  .qy-renew-top-bar__subtitle {
    color: #fef3c7 !important;
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  }

  .qy-renew-top-bar--expired .qy-renew-top-bar__subtitle {
    color: #fecaca !important;
  }

  .qy-unpaid-global-bar__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 16px;
  }

  .qy-renew-top-bar__inner--center {
    flex-direction: column;
    flex-wrap: nowrap;
    text-align: center;
    padding: 16px 14px 14px;
    gap: 0;
  }

  .qy-renew-top-bar__inner--center .qy-renew-top-bar__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    flex: none;
    width: 100%;
  }

  .qy-renew-top-bar__inner--center .qy-renew-top-bar__pulse {
    display: none !important;
  }

  .qy-renew-top-bar__title {
    font-size: 15px;
  }

  .qy-renew-top-bar__subtitle {
    font-size: 12px;
  }

  .qy-renew-top-bar__tagline {
    font-size: 11px;
    margin-top: 8px;
    max-width: 100%;
  }

  .qy-renew-top-bar__actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .qy-unpaid-global-bar__inner--center {
    padding: 14px 16px 12px;
    gap: 10px;
  }

  .qy-unpaid-global-bar__inner--center .qy-unpaid-global-bar__text strong {
    font-size: 16px;
  }

  .qy-unpaid-global-bar__actions {
    flex-wrap: wrap;
  }

  .qy-unpaid-global-bar__actions .qy-unpaid-global-bar__pay {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .qy-renew-top-bar__text,
  .qy-unpaid-global-bar__text {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  .qy-renew-top-bar__text strong,
  .qy-unpaid-global-bar__text strong {
    font-size: 14px;
  }

  .qy-renew-top-bar__text span,
  .qy-unpaid-global-bar__text span {
    font-size: 11px;
  }

  .qy-renew-top-bar__cta,
  .qy-unpaid-global-bar__pay {
    flex: 1;
    min-width: 0;
    padding: 9px 14px;
    font-size: 12px;
  }

  .qy-renew-top-bar__close,
  .qy-unpaid-global-bar__close {
    order: -1;
    margin-left: auto;
    width: 32px;
    height: 32px;
  }

  .qy-renew-top-bar__icon,
  .qy-unpaid-global-bar__icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
}

/* 待支付订单 — 旧版兼容样式 */
.qy-unpaid-premium,
.qy-dashboard-layout .qy-ref-unpaid.qy-dx-unpaid {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(127, 29, 29, 0.1) 100%);
  border: 1px solid rgba(248, 113, 113, 0.28);
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.12);
}

.qy-unpaid-premium .qy-ref-unpaid-ico,
.qy-dashboard-layout .qy-ref-unpaid.qy-dx-unpaid .qy-ref-unpaid-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 15px;
}

.qy-unpaid-premium .qy-ref-unpaid-text strong,
.qy-dashboard-layout .qy-ref-unpaid.qy-dx-unpaid .qy-ref-unpaid-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fecaca;
  margin-bottom: 2px;
}

.qy-unpaid-premium .qy-ref-unpaid-text span,
.qy-dashboard-layout .qy-ref-unpaid.qy-dx-unpaid .qy-ref-unpaid-text span {
  display: block;
  font-size: 12px;
  color: #fca5a5;
}

.qy-ref-unpaid-btn,
.qy-unpaid-pay,
.qy-m-unpaid-btn {
  flex-shrink: 0;
  padding: 10px 18px;
  min-height: 40px;
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.qy-ref-unpaid-btn:hover,
.qy-unpaid-pay:hover,
.qy-m-unpaid-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

.qy-ref-unpaid-btn:active,
.qy-unpaid-pay:active,
.qy-m-unpaid-btn:active {
  transform: scale(0.98);
}

[data-theme="light"] .qy-unpaid-premium,
[data-theme="light"] .qy-dashboard-layout .qy-ref-unpaid.qy-dx-unpaid {
  background: #fff;
  border: 1px solid #fecaca;
  box-shadow: 0 0 0 3px rgba(254, 202, 202, 0.35);
}

[data-theme="light"] .qy-unpaid-premium .qy-ref-unpaid-text strong,
[data-theme="light"] .qy-dashboard-layout .qy-ref-unpaid.qy-dx-unpaid .qy-ref-unpaid-text strong {
  color: #0f172a;
}

[data-theme="light"] .qy-unpaid-premium .qy-ref-unpaid-text span,
[data-theme="light"] .qy-dashboard-layout .qy-ref-unpaid.qy-dx-unpaid .qy-ref-unpaid-text span {
  color: #64748b;
}

/* ===== Mobile Bottom Nav — see assets/qy-bottom-nav.css (single source of truth) ===== */

.qy-dash-mobile { display: flex; flex-direction: column; gap: 12px; }

.qy-unpaid-alert {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: #fff; border: 1px solid #FECACA; border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(254,202,202,0.35);
}
.qy-unpaid-icon {
  width: 32px; height: 32px; border-radius: 50%; background: #FEE2E2; color: #EF4444;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0;
}
.qy-unpaid-text { flex: 1; min-width: 0; }
.qy-unpaid-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.qy-unpaid-text em { color: #EF4444; font-style: normal; font-weight: 800; }
.qy-unpaid-text span { font-size: 12px; color: var(--fw-text-muted); }
.qy-unpaid-pay {
  flex-shrink: 0; padding: 8px 16px; border: none; border-radius: 999px;
  background: #EF4444; color: #fff; font-weight: 700; font-size: 13px; cursor: pointer;
}

.qy-m-panel {
  background: #fff; border-radius: 16px; padding: 16px;
  border: 1px solid rgba(59,130,246,0.12);
  box-shadow: 0 2px 12px rgba(15,23,42,0.04);
}
[data-theme="slate"] .qy-m-panel,
[data-theme="purple"] .qy-m-panel,
[data-theme="cyan"] .qy-m-panel {
  background: rgba(30,41,59,0.85); border-color: rgba(148,163,184,0.15);
}
.qy-m-panel-head h3 { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.qy-m-panel-head p { font-size: 12px; color: var(--fw-text-muted); margin: 0; }

.qy-m-notice-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--fw-border);
}
.qy-m-notice-row:last-child { border-bottom: none; }
.qy-m-notice-body strong { display: block; font-size: 13px; margin-bottom: 4px; }
.qy-m-notice-date { font-size: 11px; color: var(--fw-text-muted); }
.qy-m-notice-link { font-size: 12px; color: #3B82F6; white-space: nowrap; cursor: pointer; }

.qy-m-subscribe-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px;
}
.qy-m-subscribe-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border-radius: 12px; border: 1px solid var(--fw-border);
  background: #F8FAFC; cursor: pointer; font-size: 11px; color: var(--fw-text-muted);
}
.qy-m-subscribe-btn.primary {
  background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); color: #16A34A;
}
.qy-m-subscribe-btn img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }

.qy-m-expand-btn {
  width: 100%; margin-top: 12px; padding: 10px; border: none; border-radius: 999px;
  background: #F1F5F9; color: var(--fw-text-muted); font-size: 13px; cursor: pointer;
}

.qy-m-user-banner { border-radius: 16px; min-height: auto; }
.qy-m-user-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 16px;
}
.qy-m-plan-badge {
  padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.2);
  font-size: 11px; white-space: nowrap; flex-shrink: 0;
}
.qy-m-user-stats { flex-wrap: wrap; }

.qy-m-os-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0;
}
.qy-m-os-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 10px; border-radius: 14px; border: 1px solid var(--fw-border);
  background: #F8FAFC; cursor: pointer; transition: all 0.2s;
}
.qy-m-os-btn.active {
  background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.35);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.08);
}
.qy-m-os-icon { font-size: 22px; }
.qy-m-os-label { font-size: 14px; font-weight: 700; color: var(--fw-text); }
.qy-m-os-count { font-size: 11px; color: var(--fw-text-muted); }
.qy-m-os-btn.active .qy-m-os-label { color: #3B82F6; }

.qy-m-client-list { display: flex; flex-direction: column; gap: 12px; }
.qy-m-client-row {
  display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto;
  gap: 8px 12px; padding: 14px; border-radius: 14px; background: #F8FAFC;
  border: 1px solid var(--fw-border);
}
.qy-m-client-logo {
  grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 4px 14px rgba(59,130,246,0.25);
}
.qy-m-client-logo img { width: 36px; height: 36px; object-fit: contain; border-radius: 8px; }
.qy-m-client-info strong { display: block; font-size: 14px; font-weight: 700; }
.qy-m-client-info small { font-size: 12px; color: var(--fw-text-muted); }
.qy-m-client-actions {
  grid-column: 2; display: flex; gap: 6px; flex-wrap: wrap;
}
.qy-m-btn-download, .qy-m-btn-import, .qy-m-btn-tutorial {
  flex: 1; min-width: 0; padding: 7px 4px; border: none; border-radius: 10px;
  font-size: 11px; font-weight: 600; cursor: pointer;
}
.qy-m-btn-download { background: rgba(59,130,246,0.12); color: #2563EB; }
.qy-m-btn-import { background: rgba(34,197,94,0.12); color: #16A34A; }
.qy-m-btn-tutorial { background: rgba(139,92,246,0.12); color: #7C3AED; }

.qy-reset-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.qy-reset-btn {
  flex: 1; min-width: calc(50% - 4px); padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--fw-border); background: #F8FAFC; color: var(--fw-text);
  font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.qy-reset-btn.primary { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #2563EB; }
.qy-reset-btn.danger { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); color: #DC2626; }
.qy-reset-btn.full { width: 100%; min-width: 100%; flex: none; }
.qy-reset-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.qy-m-reset-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--fw-border); }
.qy-reset-hint {
  font-size: 12px; color: var(--fw-text-muted); line-height: 1.65; margin: 0;
  padding: 10px 12px; border-radius: 10px; background: rgba(59,130,246,0.05);
  border: 1px solid rgba(59,130,246,0.1);
}
.qy-reset-hint strong { color: var(--fw-text); font-weight: 700; }
.qy-subscribe-reset-pc { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--fw-border); }
.qy-subscribe-reset-pc .qy-reset-actions { margin-bottom: 0; margin-top: 10px; }
.qy-subscribe-reset-pc .qy-reset-btn { min-width: 0; flex: 1; }

.qy-m-invite {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto;
  gap: 8px 12px; align-items: center; padding: 20px; cursor: pointer;
}
.qy-m-invite-text h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.qy-m-invite-text p { font-size: 12px; opacity: 0.85; margin: 0; }
.qy-m-invite-rate {
  grid-row: 1 / span 2; grid-column: 2; padding: 8px 12px; border-radius: 12px;
  background: rgba(255,255,255,0.25); font-weight: 800; font-size: 14px;
}
.qy-m-invite .qy-invite-btn { grid-column: 1 / -1; justify-self: start; }

/* ===== Dashboard v3.18 鈥?Shadcn / Tailwind inspired ===== */
.qy-ref-dash,
.qy-m-dash {
  --qy-primary: #2563eb;
  --qy-primary-light: #3b82f6;
  --qy-primary-soft: rgba(59, 130, 246, 0.08);
  --qy-success: #16a34a;
  --qy-success-soft: rgba(22, 163, 74, 0.1);
  --qy-muted: #64748b;
  --qy-muted-bg: #f8fafc;
  --qy-border: #e2e8f0;
  --qy-ring: 0 0 0 3px rgba(59, 130, 246, 0.12);
  --qy-radius: 16px;
  --qy-radius-sm: 10px;
  --qy-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --qy-shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --qy-shadow-lg: 0 12px 40px rgba(37, 99, 235, 0.18);
}

.qy-ref-dash { color: #0f172a; }
.qy-dashboard-layout.fw-layout .qy-main { padding: 24px 28px 32px; max-width: 1280px; margin: 0 auto; }

/* Unpaid alert */
.qy-ref-unpaid, .qy-m-unpaid {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px;
  background: #fff; border: 1px solid #fecaca; border-radius: var(--qy-radius);
  box-shadow: var(--qy-shadow-sm), 0 0 0 3px rgba(254, 202, 202, 0.35);
}
.qy-ref-unpaid-ico, .qy-m-unpaid-ico {
  width: 32px; height: 32px; border-radius: 50%; background: #fee2e2; color: #ef4444;
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; font-size: 14px;
}
.qy-ref-unpaid-text, .qy-m-unpaid-body { flex: 1; min-width: 0; }
.qy-ref-unpaid-text strong, .qy-m-unpaid-body strong { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
.qy-ref-unpaid-text span, .qy-m-unpaid-body em { font-size: 12px; color: var(--qy-muted); font-style: normal; }
.qy-ref-unpaid-btn, .qy-m-unpaid-btn {
  padding: 10px 18px;
  min-height: 40px;
  border: none !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #fff !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none !important;
  -webkit-appearance: none !important;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.qy-ref-unpaid-btn:hover, .qy-m-unpaid-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45);
}

/* Desktop grid */
.qy-ref-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  align-items: start;
}
.qy-ref-main, .qy-ref-side { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* Hero banner 鈥?desktop */
.qy-ref-banner {
  position: relative; overflow: hidden; border-radius: 20px; min-height: 220px;
  display: flex; align-items: stretch;
  background: linear-gradient(115deg, #0ea5e9 0%, #3b82f6 38%, #2563eb 72%, #1d4ed8 100%);
  box-shadow: var(--qy-shadow-lg);
  color: #fff;
}
.qy-ref-banner-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(255,255,255,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 90%, rgba(255,255,255,0.08) 0%, transparent 50%);
}
.qy-ref-banner-body { flex: 1; padding: 28px 32px; position: relative; z-index: 1; max-width: calc(100% - 220px); }
.qy-ref-banner-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px;
}
.qy-ref-greet { font-size: 14px; opacity: 0.9; margin: 0 0 6px; font-weight: 500; letter-spacing: 0.02em; }
.qy-ref-plan { font-size: 26px; font-weight: 800; line-height: 1.25; margin: 0; letter-spacing: -0.02em; }
.qy-ref-profile-btn {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35);
  color: #fff; font-size: 13px; font-weight: 600;
  backdrop-filter: blur(8px); transition: background 0.15s;
}
.qy-ref-profile-btn:hover { background: rgba(255,255,255,0.28); }
.qy-ref-stats {
  list-style: none; margin: 0 0 24px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px;
}
.qy-ref-stats li {
  display: flex; align-items: center; gap: 12px; min-width: 130px;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(10px);
}
.qy-ref-stat-ico {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.qy-ref-stats em { display: block; font-style: normal; font-size: 11px; opacity: 0.85; margin-bottom: 2px; font-weight: 500; }
.qy-ref-stats strong { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.qy-ref-banner-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.qy-ref-btn-charge, .qy-ref-btn-gift {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border: none; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 14px; transition: transform 0.15s, box-shadow 0.15s;
}
.qy-ref-btn-charge {
  background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}
.qy-ref-btn-charge:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45); }
.qy-ref-btn-gift {
  background: rgba(255,255,255,0.96); color: #2563eb;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.qy-ref-btn-gift:hover { transform: translateY(-2px); background: #fff; }
.qy-ref-banner-art {
  width: 220px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  padding-right: 16px; position: relative; z-index: 1;
}
.qy-ref-art-svg { width: 100%; max-height: 190px; height: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,0.12)); }

/* Cards 鈥?desktop */
.qy-ref-card {
  background: #fff; border-radius: var(--qy-radius); padding: 22px 24px;
  border: 1px solid var(--qy-border);
  box-shadow: var(--qy-shadow-sm);
  transition: box-shadow 0.2s;
}
.qy-ref-card:hover { box-shadow: var(--qy-shadow-md); }
[data-theme="slate"] .qy-ref-card,
[data-theme="purple"] .qy-ref-card,
[data-theme="cyan"] .qy-ref-card {
  background: rgba(30,41,59,0.75); border-color: rgba(148,163,184,0.12);
}
.qy-ref-card-head {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px;
}
.qy-ref-card-head-row { justify-content: space-between; align-items: center; }
.qy-ref-card-head-left { display: flex; align-items: center; gap: 12px; }
.qy-ref-card-icon {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: var(--qy-primary-soft); border: 1px solid rgba(59,130,246,0.15);
}
.qy-ref-card-icon-amber { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.25); }
.qy-ref-card-icon-blue { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.2); }
.qy-ref-card-head h2 { font-size: 16px; font-weight: 700; margin: 0 0 2px; color: inherit; letter-spacing: -0.01em; }
.qy-ref-card-head p { font-size: 13px; color: var(--qy-muted); margin: 0; }
.qy-ref-refresh {
  width: 36px; height: 36px; border: 1px solid var(--qy-border); border-radius: var(--qy-radius-sm);
  background: var(--qy-muted-bg); cursor: pointer; font-size: 16px; color: var(--qy-muted);
  transition: background 0.15s, color 0.15s;
}
.qy-ref-refresh:hover:not(:disabled) { background: #fff; color: var(--qy-primary); box-shadow: var(--qy-ring); }
.qy-ref-empty { text-align: center; color: #94a3b8; font-size: 13px; margin: 16px 0 0; padding: 20px; background: var(--qy-muted-bg); border-radius: var(--qy-radius-sm); }

/* OS tabs 鈥?segmented control */
.qy-ref-os-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px;
  padding: 4px; background: var(--qy-muted-bg); border-radius: 14px; border: 1px solid var(--qy-border);
}
.qy-ref-os-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 8px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--qy-muted); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.qy-ref-os-tab small { font-size: 10px; font-weight: 500; opacity: 0.8; }
.qy-ref-os-tab.active {
  background: #fff; border-color: var(--qy-border); color: var(--qy-primary);
  box-shadow: var(--qy-shadow-sm);
}
.qy-ref-os-ico { font-size: 22px; line-height: 1; }

/* Client download cards */
.qy-ref-client-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.qy-ref-client-item {
  text-align: center; padding: 20px 16px 16px; border-radius: var(--qy-radius);
  border: 1px solid var(--qy-border); background: var(--qy-muted-bg);
  display: flex; flex-direction: column; align-items: center; min-height: 220px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.qy-ref-client-item:hover {
  border-color: rgba(59,130,246,0.35); box-shadow: var(--qy-shadow-md); transform: translateY(-2px);
}
[data-theme="slate"] .qy-ref-client-item,
[data-theme="purple"] .qy-ref-client-item,
[data-theme="cyan"] .qy-ref-client-item { background: rgba(15,23,42,0.35); border-color: rgba(148,163,184,0.15); }
.qy-ref-client-logo {
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 12px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(59,130,246,0.28);
}
.qy-ref-client-logo img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.qy-ref-client-item h3 { font-size: 14px; font-weight: 700; margin: 0 0 4px; line-height: 1.4; color: #0f172a; }
.qy-ref-client-item p { font-size: 12px; color: var(--qy-muted); margin: 0 0 auto; padding-bottom: 14px; }
.qy-ref-client-btns { display: flex; gap: 8px; width: 100%; margin-top: auto; }
.qy-ref-dl, .qy-ref-tut {
  flex: 1; padding: 9px 6px; border: none; border-radius: var(--qy-radius-sm);
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.qy-ref-dl { background: rgba(59,130,246,0.12); color: #2563eb; }
.qy-ref-dl:hover { background: rgba(59,130,246,0.2); }
.qy-ref-tut { background: rgba(139,92,246,0.1); color: #7c3aed; }
.qy-ref-tut:hover { background: rgba(139,92,246,0.18); }
.qy-ref-more {
  width: 100%; margin-top: 16px; padding: 11px; border: 1px solid var(--qy-border); border-radius: 999px;
  background: #fff; color: var(--qy-muted); font-size: 13px; font-weight: 500; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.qy-ref-more:hover { background: var(--qy-muted-bg); color: var(--qy-primary); }

/* Notice list */
.qy-ref-notice-list { list-style: none; margin: 0; padding: 0; }
.qy-ref-notice-list li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid #f1f5f9;
}
.qy-ref-notice-list li:last-child { border-bottom: none; }
.qy-ref-notice-dot { font-size: 14px; }
.qy-ref-notice-body { min-width: 0; }
.qy-ref-notice-body strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; color: #0f172a; }
.qy-ref-notice-body span { font-size: 11px; color: #94a3b8; }
.qy-ref-notice-link {
  font-size: 12px; color: var(--qy-primary); cursor: pointer; white-space: nowrap; flex-shrink: 0;
  padding: 4px 10px; border-radius: 6px; transition: background 0.15s;
}
.qy-ref-notice-link:hover { background: var(--qy-primary-soft); }

/* Subscribe grid */
.qy-ref-sub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.qy-ref-sub-btn {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: var(--qy-radius-sm); border: 1px solid var(--qy-border); background: var(--qy-muted-bg);
  cursor: pointer; font-size: 12px; font-weight: 500; color: #334155; text-align: left;
  transition: all 0.15s;
}
.qy-ref-sub-btn:hover { border-color: rgba(59,130,246,0.4); background: #fff; box-shadow: var(--qy-ring); }
.qy-ref-sub-btn img { width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.qy-ref-sub-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qy-ref-sub-footer { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.qy-ref-reset-tip {
  font-size: 12px; color: var(--qy-muted); line-height: 1.65; margin: 0 0 12px;
  padding: 12px 14px; border-radius: var(--qy-radius-sm);
  background: var(--qy-primary-soft); border: 1px solid rgba(59,130,246,0.12);
}
.qy-ref-reset-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.qy-ref-reset-copy, .qy-ref-reset-go {
  flex: 1; min-width: 120px; padding: 10px 14px; border-radius: var(--qy-radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer; border: 1px solid var(--qy-border);
  transition: all 0.15s;
}
.qy-ref-reset-copy { background: #fff; color: #475569; }
.qy-ref-reset-copy:hover { background: var(--qy-muted-bg); }
.qy-ref-reset-go { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.25); color: #dc2626; }
.qy-ref-reset-go:hover:not(:disabled) { background: rgba(239,68,68,0.12); }
.qy-ref-reset-go:disabled { opacity: 0.6; cursor: not-allowed; }

/* Invite banner */
.qy-ref-invite {
  position: relative; overflow: hidden; border-radius: var(--qy-radius); padding: 24px 26px;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 45%, #fbbf24 100%);
  color: #fff; cursor: pointer; display: flex; align-items: center; gap: 16px;
  box-shadow: 0 12px 32px rgba(249,115,22,0.25); min-height: 168px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.qy-ref-invite:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(249,115,22,0.3); }
.qy-ref-invite-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 90% 10%, rgba(255,255,255,0.2) 0%, transparent 60%);
}
.qy-ref-invite-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.qy-ref-invite-body h3 { font-size: 17px; font-weight: 800; margin: 0 0 8px; line-height: 1.35; letter-spacing: -0.01em; }
.qy-ref-invite-rate {
  display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,0.25); margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.3);
}
.qy-ref-invite-body p { font-size: 12px; opacity: 0.92; margin: 0 0 14px; line-height: 1.55; }
.qy-ref-invite-btn {
  padding: 10px 22px; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(0,0,0,0.25); color: #fff; font-weight: 700; font-size: 13px;
  transition: background 0.15s;
}
.qy-ref-invite-btn:hover { background: rgba(0,0,0,0.35); }
.qy-ref-invite-art {
  flex-shrink: 0; width: 68px; height: 68px; border-radius: 50%; position: relative; z-index: 1;
  background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; font-size: 32px;
  border: 1px solid rgba(255,255,255,0.3);
}

@media (max-width: 1100px) {
  .qy-ref-grid { grid-template-columns: 1fr; }
  .qy-ref-client-grid { grid-template-columns: repeat(2, 1fr); }
  .qy-ref-banner-body { max-width: 100%; }
  .qy-ref-banner-art { display: none; }
}

/* ===== Mobile Dashboard v3.18 ===== */
@media (min-width: 769px) {
  .qy-m-dash.mobile-only { display: none !important; }
}
@media (max-width: 768px) {
  .qy-ref-dash.desktop-only { display: none !important; }
}
.qy-m-dash {
  display: flex; flex-direction: column; gap: 12px;
  padding-bottom: 4px;
}
@media (max-width: 768px) {
  .qy-m-dash.mobile-only { display: flex !important; }
  .qy-dashboard-layout.fw-layout .qy-main { padding: 12px 14px 18px; }
}

/* Mobile hero banner */
.qy-m-hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 18px 18px 16px; color: #fff;
  background: linear-gradient(115deg, #0ea5e9 0%, #3b82f6 40%, #2563eb 75%, #1d4ed8 100%);
  box-shadow: var(--qy-shadow-lg);
}
.qy-m-hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 60% at 100% 0%, rgba(255,255,255,0.15) 0%, transparent 55%);
}
.qy-m-hero-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; position: relative; z-index: 1;
}
.qy-m-greet { font-size: 13px; opacity: 0.92; margin: 0 0 6px; font-weight: 500; word-break: break-all; }
.qy-m-plan-tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.25);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qy-m-profile-btn {
  flex-shrink: 0; padding: 6px 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.3);
  color: #fff; font-size: 11px; font-weight: 600;
}
.qy-m-stats {
  list-style: none; margin: 0 0 16px; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  position: relative; z-index: 1;
}
.qy-m-stats li {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 10px 6px; border-radius: 12px;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
}
.qy-m-stat-ico {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.qy-m-stats em { display: block; font-style: normal; font-size: 10px; opacity: 0.88; font-weight: 500; }
.qy-m-stats strong { font-size: 12px; font-weight: 700; line-height: 1.3; word-break: break-all; }
.qy-m-hero-btns {
  display: flex; gap: 10px; position: relative; z-index: 1;
}
.qy-m-btn-primary, .qy-m-btn-secondary {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 0; border: none; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.qy-m-btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff;
  box-shadow: 0 4px 12px rgba(34,197,94,0.4);
}
.qy-m-btn-primary:active { transform: scale(0.98); }
.qy-m-btn-secondary {
  background: rgba(255,255,255,0.96); color: #2563eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.qy-m-btn-ico { font-size: 15px; }

/* Mobile cards */
.qy-m-card {
  background: #fff; border-radius: var(--qy-radius); padding: 16px;
  border: 1px solid var(--qy-border);
  box-shadow: var(--qy-shadow-sm);
}
.qy-m-card-head {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px;
}
.qy-m-card-icon {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: var(--qy-primary-soft); border: 1px solid rgba(59,130,246,0.12);
}
.qy-m-card-icon-amber { background: rgba(251,191,36,0.12); border-color: rgba(251,191,36,0.2); }
.qy-m-card-icon-blue { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.18); }
.qy-m-card-icon-violet { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.18); }
.qy-m-card-head h3 { font-size: 15px; font-weight: 700; margin: 0 0 2px; color: #0f172a; }
.qy-m-card-head p { font-size: 12px; color: var(--qy-muted); margin: 0; }
.qy-m-empty {
  text-align: center; color: #94a3b8; font-size: 12px; margin: 4px 0 0;
  padding: 16px; background: var(--qy-muted-bg); border-radius: var(--qy-radius-sm);
}
.qy-m-link {
  font-size: 12px; color: var(--qy-primary); white-space: nowrap; cursor: pointer;
  padding: 4px 8px; border-radius: 6px;
}

.qy-m-notice-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.qy-m-notice-item:last-child { border-bottom: none; }
.qy-m-notice-ico { font-size: 14px; }
.qy-m-notice-text { min-width: 0; }
.qy-m-notice-text strong { display: block; font-size: 13px; font-weight: 600; color: #334155; }
.qy-m-notice-text em { display: block; font-style: normal; font-size: 11px; color: #94a3b8; margin-top: 2px; }

.qy-m-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qy-m-sub-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border-radius: 12px; border: 1px solid var(--qy-border);
  background: var(--qy-muted-bg); cursor: pointer; font-size: 11px; font-weight: 500; color: #64748b;
  min-height: 76px; transition: all 0.15s;
}
.qy-m-sub-btn:active { transform: scale(0.97); }
.qy-m-sub-btn.primary {
  background: var(--qy-success-soft); border-color: rgba(34,197,94,0.3); color: #16a34a;
}
.qy-m-sub-btn img { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; }
.qy-m-sub-btn span { text-align: center; line-height: 1.25; word-break: break-all; }

.qy-m-expand {
  width: 100%; margin-top: 10px; padding: 10px; border: 1px solid var(--qy-border); border-radius: 999px;
  background: #fff; color: var(--qy-muted); font-size: 12px; font-weight: 500; cursor: pointer;
}

.qy-m-reset-box { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--qy-border); }
.qy-m-reset-main {
  width: 100%; padding: 12px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #fef2f2, #fee2e2); color: #dc2626;
  border: 1px solid #fecaca; font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 8px rgba(239,68,68,0.12); margin-bottom: 8px;
}
.qy-m-reset-main:disabled { opacity: 0.65; cursor: not-allowed; }
.qy-m-reset-copy {
  width: 100%; padding: 10px; border: 1px solid var(--qy-border); border-radius: var(--qy-radius-sm);
  background: var(--qy-muted-bg); color: #475569; font-size: 13px; font-weight: 600; cursor: pointer;
  margin-bottom: 8px;
}
.qy-m-reset-tip {
  font-size: 11px; color: var(--qy-muted); line-height: 1.6; margin: 0;
  padding: 10px 12px; border-radius: var(--qy-radius-sm);
  background: var(--qy-primary-soft); border: 1px solid rgba(59,130,246,0.1);
}

.qy-m-os-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px;
  padding: 4px; background: var(--qy-muted-bg); border-radius: 14px; border: 1px solid var(--qy-border);
}
.qy-m-os {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 8px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; cursor: pointer; transition: all 0.15s;
}
.qy-m-os.active {
  background: #fff; border-color: var(--qy-border); color: #2563eb;
  box-shadow: var(--qy-shadow-sm);
}
.qy-m-os-ico { font-size: 22px; }
.qy-m-os-name { font-size: 13px; font-weight: 700; color: inherit; }
.qy-m-os-num { font-size: 10px; color: #94a3b8; font-weight: 500; }
.qy-m-os.active .qy-m-os-num { color: #60a5fa; }

.qy-m-client-list { display: flex; flex-direction: column; gap: 10px; }
.qy-m-client {
  display: grid; grid-template-columns: 50px 1fr; grid-template-rows: auto auto;
  gap: 6px 12px; padding: 14px; border-radius: var(--qy-radius-sm);
  background: var(--qy-muted-bg); border: 1px solid var(--qy-border);
  transition: border-color 0.15s;
}
.qy-m-client:active { border-color: rgba(59,130,246,0.35); }
.qy-m-client-logo {
  grid-row: 1 / span 2; width: 50px; height: 50px; border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(59,130,246,0.22);
}
.qy-m-client-logo img { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.qy-m-client-info strong { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
.qy-m-client-info small { font-size: 11px; color: var(--qy-muted); }
.qy-m-client-btns { grid-column: 2; display: flex; gap: 8px; }
.qy-m-dl, .qy-m-tut {
  flex: 1; padding: 8px 6px; border: none; border-radius: 8px;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.qy-m-dl { background: rgba(59,130,246,0.12); color: #2563eb; }
.qy-m-tut { background: rgba(139,92,246,0.1); color: #7c3aed; }

.qy-m-invite {
  display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center;
  padding: 18px; border-radius: var(--qy-radius); cursor: pointer;
  background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
  box-shadow: 0 8px 24px rgba(249,115,22,0.22); color: #fff;
}
.qy-m-invite-body h3 { font-size: 15px; font-weight: 800; margin: 0 0 4px; line-height: 1.35; }
.qy-m-invite-body p { font-size: 11px; opacity: 0.92; margin: 0 0 12px; line-height: 1.5; }
.qy-m-invite-body button {
  padding: 9px 18px; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(0,0,0,0.25); color: #fff; font-size: 12px; font-weight: 700;
}
.qy-m-invite-rate {
  padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,0.25);
  font-weight: 800; font-size: 15px; align-self: start;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Bottom nav — 与 v3.60.8 横滑 TabBar 对齐；客服按钮 → qy-chat-fab.css */

/* ===== Dashboard v3.19 鈥?Premium polish overrides ===== */
.qy-ref-dash,
.qy-m-dash {
  --qy-primary: #1d4ed8;
  --qy-primary-soft: rgba(37, 99, 235, 0.07);
  --qy-primary-ring: rgba(37, 99, 235, 0.14);
  --qy-accent-soft: rgba(13, 148, 136, 0.1);
  --qy-border: #e8edf3;
  --qy-border-subtle: #f1f5f9;
  --qy-text: #0f172a;
  --qy-text-secondary: #475569;
  --qy-radius: 18px;
  --qy-radius-sm: 12px;
  --qy-radius-xs: 8px;
  --qy-shadow-card: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
  --qy-shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.03);
  --qy-shadow-lg: 0 20px 48px rgba(29, 78, 216, 0.14), 0 8px 16px rgba(15, 23, 42, 0.06);
  --qy-ring: 0 0 0 3px var(--qy-primary-ring);
  --qy-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --qy-hero-grad: linear-gradient(128deg, #1e3a8a 0%, #1d4ed8 32%, #2563eb 58%, #1e40af 100%);
}

.qy-ico { width: 18px; height: 18px; display: block; flex-shrink: 0; }
.qy-ref-stat-ico .qy-ico, .qy-m-stat-ico .qy-ico { width: 17px; height: 17px; opacity: 0.95; }
.qy-ref-card-icon .qy-ico, .qy-m-card-icon .qy-ico { width: 18px; height: 18px; }
.qy-ref-card-icon-amber .qy-ico, .qy-m-card-icon-amber .qy-ico { color: #d97706; }
.qy-ref-card-icon-blue .qy-ico, .qy-m-card-icon-blue .qy-ico { color: #2563eb; }
.qy-ref-card-icon-violet .qy-ico, .qy-m-card-icon-violet .qy-ico { color: #6366f1; }
.qy-ref-notice-dot .qy-ico, .qy-m-notice-ico .qy-ico { width: 14px; height: 14px; color: #94a3b8; }
.qy-ref-refresh .qy-ico { width: 16px; height: 16px; }
.qy-btn-ico .qy-ico, .qy-m-btn-ico .qy-ico { width: 16px; height: 16px; }
.qy-greet-label { opacity: 0.78; font-weight: 500; margin-right: 4px; }

.qy-dashboard-layout.fw-layout .qy-main { padding: 28px 32px 40px; max-width: 1240px; }
.qy-ref-grid { grid-template-columns: minmax(0, 1fr) 392px; gap: 28px; }
.qy-ref-main, .qy-ref-side { gap: 28px; }

/* Hero 鈥?refined gradient & depth */
.qy-ref-banner, .qy-m-hero {
  background: var(--qy-hero-grad);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--qy-shadow-lg);
}
.qy-ref-banner { border-radius: 22px; min-height: 232px; }
.qy-ref-banner::after, .qy-m-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}
.qy-ref-banner-shine, .qy-m-hero-shine {
  position: absolute; top: -40%; left: -20%; width: 60%; height: 80%; pointer-events: none;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.06) 50%, transparent 60%);
  transform: rotate(-8deg);
}
.qy-ref-banner-glow, .qy-m-hero-glow {
  background:
    radial-gradient(ellipse 55% 70% at 88% 15%, rgba(255,255,255,0.14) 0%, transparent 58%),
    radial-gradient(ellipse 35% 45% at 5% 95%, rgba(255,255,255,0.06) 0%, transparent 52%);
}
.qy-ref-banner-body { padding: 30px 34px; }
.qy-ref-plan { font-size: 24px; font-weight: 750; letter-spacing: -0.025em; }
.qy-ref-profile-btn, .qy-m-profile-btn {
  backdrop-filter: blur(12px);
  transition: all 0.2s var(--qy-ease);
}
.qy-ref-profile-btn:hover { background: rgba(255,255,255,0.24); transform: translateY(-1px); }

.qy-ref-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px;
}
.qy-ref-stats li {
  padding: 13px 14px; border-radius: 14px;
  transition: background 0.2s var(--qy-ease), transform 0.2s var(--qy-ease);
}
.qy-ref-stats li:hover { background: rgba(255,255,255,0.15); transform: translateY(-1px); }
.qy-ref-stat-ico, .qy-m-stat-ico {
  border: 1px solid rgba(255,255,255,0.12);
}

/* Premium action buttons */
.qy-ref-btn-charge, .qy-m-btn-primary {
  background: linear-gradient(180deg, #34d399 0%, #059669 100%) !important;
  box-shadow: 0 4px 16px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  font-weight: 650; letter-spacing: 0.01em;
  transition: transform 0.2s var(--qy-ease), box-shadow 0.2s var(--qy-ease) !important;
}
.qy-ref-btn-charge:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5, 150, 105, 0.38), inset 0 1px 0 rgba(255,255,255,0.25) !important; }
.qy-ref-btn-gift, .qy-m-btn-secondary {
  background: rgba(255,255,255,0.97) !important; color: #1d4ed8 !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255,255,255,1) !important;
  border: 1px solid rgba(255,255,255,0.6);
}
.qy-ref-btn-gift:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12) !important; }

/* Cards */
.qy-ref-card, .qy-m-card {
  border-radius: var(--qy-radius); border-color: var(--qy-border);
  box-shadow: var(--qy-shadow-card);
  transition: box-shadow 0.25s var(--qy-ease), border-color 0.25s;
}
.qy-ref-card { padding: 24px 26px; }
.qy-ref-card:hover { box-shadow: var(--qy-shadow-md); border-color: #dde4ed; }
.qy-m-card { padding: 18px; }
.qy-ref-card-head { gap: 14px; margin-bottom: 20px; }
.qy-ref-card-icon, .qy-m-card-icon { width: 42px; height: 42px; border-radius: 13px; }
.qy-ref-refresh {
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  transition: all 0.2s var(--qy-ease);
}
.qy-ref-refresh:hover:not(:disabled) { border-color: rgba(37,99,235,0.2); }
.qy-ref-empty, .qy-m-empty { border: 1px dashed var(--qy-border); padding: 28px 20px; }

/* Notice hover rows */
.qy-ref-notice-list li {
  padding: 12px 10px; margin: 0 -10px; border-radius: var(--qy-radius-sm);
  border-bottom-color: var(--qy-border-subtle);
  transition: background 0.2s var(--qy-ease);
}
.qy-ref-notice-list li:hover { background: #f8fafc; }
.qy-ref-notice-link, .qy-m-link {
  padding: 5px 12px; border-radius: 999px; font-weight: 550;
  transition: all 0.2s var(--qy-ease);
}
.qy-ref-notice-link:hover { border: 1px solid rgba(37,99,235,0.12); }
.qy-m-notice-item {
  padding: 11px 8px; margin: 0 -8px; border-radius: var(--qy-radius-xs);
  border-bottom-color: var(--qy-border-subtle); transition: background 0.2s;
}
.qy-m-notice-item:active { background: #f8fafc; }

/* Subscribe 鈥?icon wrapper */
.qy-ref-sub-btn {
  gap: 8px; padding: 5px 14px 5px 5px; font-weight: 600; color: #334155;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}
.qy-ref-sub-btn:hover { transform: translateY(-1px); }
.qy-ref-sub-icon, .qy-m-sub-icon {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; overflow: hidden;
  background: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
}
.qy-ref-sub-icon img, .qy-m-sub-icon img { width: 100%; height: 100%; object-fit: contain; }
.qy-m-sub-btn { min-height: 0; gap: 8px; font-weight: 600; transition: all 0.2s var(--qy-ease); }
.qy-m-sub-btn img { width: 100%; height: 100%; border: none; box-shadow: none; object-fit: contain; }

/* OS segmented control */
.qy-ref-os-tabs, .qy-m-os-grid {
  gap: 6px; padding: 5px; border-radius: 15px; margin-bottom: 22px;
}
.qy-ref-os-tab, .qy-m-os {
  border-radius: 11px; transition: all 0.22s var(--qy-ease);
}
.qy-ref-os-tab:hover:not(.active) { color: var(--qy-text-secondary); background: rgba(255,255,255,0.5); }

/* Client cards */
.qy-ref-client-item {
  border-radius: var(--qy-radius-sm); min-height: 224px;
  transition: all 0.25s var(--qy-ease);
}
.qy-ref-client-item:hover {
  border-color: rgba(37,99,235,0.28); transform: translateY(-3px); background: #fff;
}
.qy-ref-client-logo {
  background: linear-gradient(145deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  transition: transform 0.25s var(--qy-ease);
}
.qy-ref-client-item:hover .qy-ref-client-logo { transform: scale(1.04); }
.qy-ref-dl, .qy-ref-tut, .qy-m-dl, .qy-m-tut {
  border: 1px solid transparent; transition: all 0.2s var(--qy-ease);
}
.qy-ref-dl, .qy-m-dl { background: var(--qy-primary-soft); color: var(--qy-primary); border-color: rgba(37,99,235,0.1); }
.qy-ref-dl:hover, .qy-m-dl:hover { background: rgba(37,99,235,0.12); transform: translateY(-1px); }
.qy-ref-tut, .qy-m-tut { background: rgba(99,102,241,0.08); color: #4f46e5; border-color: rgba(99,102,241,0.1); }
.qy-m-client {
  border-radius: var(--qy-radius-sm);
  transition: border-color 0.2s, background 0.2s;
}
.qy-m-client:active { background: #fff; border-color: rgba(37,99,235,0.22); }
.qy-m-client-logo { background: linear-gradient(145deg, #3b82f6, #1d4ed8); }

/* Invite 鈥?muted warm */
.qy-ref-invite, .qy-m-invite {
  background: linear-gradient(135deg, #c2410c 0%, #ea580c 38%, #f59e0b 100%) !important;
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.2) !important;
  border: 1px solid rgba(255,255,255,0.15);
}
.qy-ref-invite:hover { transform: translateY(-3px); box-shadow: 0 20px 48px rgba(234, 88, 12, 0.26) !important; }

/* Mobile spacing */
.qy-m-dash { gap: 14px; }
@media (max-width: 768px) {
  .qy-m-hero { border-radius: 20px; }
  .qy-m-stats li { padding: 12px 6px; gap: 7px; border: 1px solid rgba(255,255,255,0.13); }
}

@media (max-width: 1100px) {
  .qy-ref-grid { gap: 24px; }
  .qy-ref-stats { grid-template-columns: repeat(3, 1fr); }
}

.qy-ref-art-svg { filter: drop-shadow(0 12px 24px rgba(0,0,0,0.15)); opacity: 0.95; }

/* ===== Dashboard v3.20 鈥?Original design fidelity ===== */
.qy-ref-dash,
.qy-m-dash {
  --qy-hero-grad: linear-gradient(95deg, #5eb3ff 0%, #3d93ef 42%, #2b7de9 72%, #1e6fd4 100%);
  --qy-page-bg: #f4f7fb;
  --qy-surface: #ffffff;
  --qy-border: #e6ebf2;
  --qy-text: #1a2332;
  --qy-muted: #7a8699;
  --qy-teal: #14b8a6;
  --qy-blue: #2b7de9;
  --qy-radius: 16px;
  --qy-radius-sm: 12px;
  --qy-shadow-soft: 0 2px 16px rgba(30, 60, 120, 0.06);
  --qy-shadow-card: 0 1px 3px rgba(30, 60, 120, 0.04), 0 8px 24px rgba(30, 60, 120, 0.05);
  --qy-shadow-hero: 0 12px 40px rgba(43, 125, 233, 0.22);
}

[data-theme="light"] .qy-dashboard-layout.fw-layout {
  background: var(--qy-page-bg) !important;
}
[data-theme="light"] .qy-dashboard-layout.fw-layout::before {
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(94, 179, 255, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(43, 125, 233, 0.05), transparent) !important;
}

.qy-dashboard-layout.fw-layout .qy-main {
  padding: 24px 28px 36px !important;
  max-width: 1180px !important;
}

/* 65 / 35 layout */
.qy-ref-grid {
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 1fr) !important;
  gap: 22px !important;
}
.qy-ref-main, .qy-ref-side { gap: 22px !important; }

/* Hero banner 鈥?original style */
.qy-ref-banner, .qy-m-hero {
  background: var(--qy-hero-grad) !important;
  box-shadow: var(--qy-shadow-hero) !important;
  border: none !important;
  color: #fff;
}
.qy-ref-banner {
  border-radius: 16px !important;
  min-height: 248px !important;
}
.qy-ref-banner::after, .qy-m-hero::after {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25) !important;
}
.qy-ref-banner-glow, .qy-m-hero-glow {
  background:
    radial-gradient(ellipse 50% 70% at 92% 18%, rgba(255,255,255,0.16), transparent 60%),
    radial-gradient(ellipse 30% 40% at 8% 85%, rgba(255,255,255,0.06), transparent 55%) !important;
}
.qy-ref-banner-body {
  padding: 32px 36px !important;
  max-width: calc(100% - 240px) !important;
}
.qy-ref-greet, .qy-m-greet {
  font-size: 14px !important;
  margin: 0 0 10px !important;
  opacity: 0.92 !important;
}
.qy-ref-plan, .qy-m-plan {
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  margin: 0 0 24px !important;
  letter-spacing: -0.02em !important;
}
.qy-m-plan { font-size: 22px !important; margin-bottom: 18px !important; }
.qy-m-hero { border-radius: 16px !important; padding: 20px 18px 18px !important; position: relative; overflow: hidden; }

/* Stats 鈥?vertical stacks like original */
.qy-stats-ref {
  list-style: none; margin: 0 0 26px; padding: 0;
  display: flex !important;
  flex-wrap: wrap; gap: 28px !important;
  grid-template-columns: unset !important;
}
.qy-stats-ref li {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 6px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  min-width: 0;
}
.qy-stats-ref li:hover { transform: none !important; background: none !important; }
.qy-stats-ref .qy-ref-stat-ico,
.qy-stats-ref .qy-m-stat-ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.2) !important;
  border: 1px solid rgba(255,255,255,0.25) !important;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 2px;
}
.qy-stats-ref em {
  display: block; font-style: normal; font-size: 12px; opacity: 0.88; font-weight: 500;
}
.qy-stats-ref strong {
  font-size: 16px !important; font-weight: 700 !important; letter-spacing: -0.01em;
}
.qy-m-stats.qy-stats-ref {
  gap: 0 !important;
  justify-content: space-between;
  margin-bottom: 18px !important;
}
.qy-m-stats.qy-stats-ref li { align-items: center !important; text-align: center; flex: 1; }

/* White action buttons 鈥?original */
.qy-btn-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 28px; border: none; border-radius: 999px; cursor: pointer;
  background: #fff !important; font-size: 14px; font-weight: 650;
  box-shadow: 0 4px 14px rgba(15, 40, 80, 0.12) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qy-btn-white:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(15, 40, 80, 0.16) !important; }
.qy-btn-charge { color: var(--qy-teal) !important; }
.qy-btn-gift { color: var(--qy-blue) !important; }
.qy-ico-teal .qy-ico { color: var(--qy-teal); }
.qy-ico-blue .qy-ico { color: var(--qy-blue); }
.qy-ref-banner-btns, .qy-m-hero-btns { gap: 14px; }

/* Banner illustration */
.qy-ref-banner-art { width: 240px !important; padding-right: 24px !important; }
.qy-ref-art-svg { max-height: 210px !important; opacity: 0.92; }

/* Card headers 鈥?clean */
.qy-card-head-simple {
  display: flex !important; align-items: center !important; gap: 10px !important;
  margin-bottom: 0 !important;
}
.qy-card-head-simple h2, .qy-card-head-simple h3 {
  margin: 0 !important; font-size: 16px !important; font-weight: 700 !important;
  color: var(--qy-text) !important;
}
.qy-card-desc {
  font-size: 13px; color: var(--qy-muted); margin: 6px 0 18px;
  line-height: 1.45;
}
.qy-ref-card, .qy-m-card {
  background: var(--qy-surface) !important;
  border: 1px solid var(--qy-border) !important;
  border-radius: var(--qy-radius) !important;
  box-shadow: var(--qy-shadow-card) !important;
  padding: 22px 24px !important;
}
.qy-ref-card:hover { box-shadow: var(--qy-shadow-soft) !important; border-color: #dce3ed !important; }
.qy-m-card { padding: 18px !important; }

/* OS tabs 鈥?flat horizontal */
.qy-os-tabs-ref {
  display: flex !important; gap: 10px !important;
  padding: 0 !important; background: none !important;
  border: none !important; margin-bottom: 20px !important;
  grid-template-columns: unset !important;
}
.qy-os-tabs-ref .qy-ref-os-tab {
  flex: 1; flex-direction: row !important; gap: 8px !important;
  padding: 12px 16px !important; border-radius: var(--qy-radius-sm) !important;
  border: 1px solid var(--qy-border) !important;
  background: #fafbfd !important;
  color: var(--qy-muted) !important;
  font-size: 14px !important;
}
.qy-os-tabs-ref .qy-ref-os-tab.active {
  background: rgba(43, 125, 233, 0.08) !important;
  border-color: rgba(43, 125, 233, 0.25) !important;
  color: var(--qy-blue) !important;
  box-shadow: none !important;
}
.qy-os-tabs-ref .qy-ref-os-tab small { display: none; }
.qy-os-tabs-ref .qy-ref-os-ico { font-size: 18px; }

/* Client download cards */
.qy-client-grid-ref {
  gap: 16px !important;
}
.qy-client-grid-ref .qy-ref-client-item {
  background: #fafbfd !important;
  border: 1px solid var(--qy-border) !important;
  border-radius: var(--qy-radius-sm) !important;
  min-height: 200px !important;
  padding: 22px 18px 16px !important;
}
.qy-client-grid-ref .qy-ref-client-item:hover {
  transform: translateY(-2px) !important;
  background: #fff !important;
  box-shadow: var(--qy-shadow-soft) !important;
}
.qy-client-grid-ref .qy-ref-client-logo {
  width: 60px; height: 60px; border-radius: 14px;
  background: linear-gradient(145deg, #4da3ff, #2b7de9) !important;
  box-shadow: 0 6px 16px rgba(43, 125, 233, 0.2) !important;
}
.qy-client-grid-ref .qy-ref-client-item h3 {
  font-size: 14px; font-weight: 650; color: var(--qy-text);
  margin: 0 0 4px; line-height: 1.4;
}
.qy-client-ver { font-size: 12px !important; color: var(--qy-muted) !important; padding-bottom: 16px !important; }
.qy-client-grid-ref .qy-ref-dl,
.qy-client-grid-ref .qy-ref-tut {
  background: #eef1f6 !important;
  color: #5a6578 !important;
  border: none !important;
  padding: 10px 8px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}
.qy-client-grid-ref .qy-ref-dl:hover,
.qy-client-grid-ref .qy-ref-tut:hover {
  background: #e4e9f0 !important;
  transform: none !important;
}

/* Subscribe — pill chips with glow (legacy); Premium card uses qy-dx-subscribe grid */
.qy-ref-subscribe:not(.qy-dx-subscribe) .qy-sub-pills.qy-sub-grid-ref,
.qy-ref-subscribe:not(.qy-dx-subscribe) .qy-ref-sub-grid.qy-sub-grid-ref,
.qy-m-sub-grid.qy-sub-grid-ref {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  grid-template-columns: unset !important;
  margin-bottom: 4px;
}

.qy-sub-pill,
.qy-sub-grid-ref .qy-ref-sub-btn,
.qy-sub-grid-ref .qy-m-sub-btn {
  --pill-glow: #3b82f6;
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 5px 14px 5px 5px !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
  max-width: 100%;
  border-radius: 999px !important;
  background: #fff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  cursor: pointer;
  text-align: left !important;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.qy-sub-pill:hover,
.qy-sub-grid-ref .qy-ref-sub-btn:hover,
.qy-sub-grid-ref .qy-m-sub-btn:hover {
  transform: translateY(-1px);
  background: #fff !important;
  border-color: color-mix(in srgb, var(--pill-glow) 45%, #fff) !important;
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--pill-glow) 18%, #fff),
    0 0 12px color-mix(in srgb, var(--pill-glow) 42%, transparent),
    0 0 22px color-mix(in srgb, var(--pill-glow) 24%, transparent),
    0 4px 10px rgba(15, 23, 42, 0.06) !important;
}

.qy-sub-pill:active,
.qy-sub-grid-ref .qy-ref-sub-btn:active,
.qy-sub-grid-ref .qy-m-sub-btn:active {
  transform: translateY(0);
  border-color: color-mix(in srgb, var(--pill-glow) 55%, #fff) !important;
  box-shadow:
    0 0 0 2px color-mix(in srgb, var(--pill-glow) 28%, #fff),
    0 0 16px color-mix(in srgb, var(--pill-glow) 55%, transparent),
    0 0 32px color-mix(in srgb, var(--pill-glow) 32%, transparent) !important;
}

.qy-sub-pill-icon,
.qy-sub-grid-ref .qy-ref-sub-icon,
.qy-sub-grid-ref .qy-m-sub-icon {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  border: none !important;
  box-shadow: 0 0 8px color-mix(in srgb, var(--pill-glow, #3b82f6) 28%, transparent) !important;
}

.qy-sub-pill-icon img,
.qy-sub-grid-ref .qy-ref-sub-icon img,
.qy-sub-grid-ref .qy-m-sub-icon img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  border-radius: 6px !important;
  border: none !important;
  box-shadow: none !important;
}

.qy-sub-pill-name,
.qy-sub-grid-ref .qy-sub-name,
.qy-sub-grid-ref .qy-m-sub-btn > .qy-sub-pill-name {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  word-break: normal !important;
  text-align: left !important;
}

/* Notice list */
.qy-ref-notice-list li { padding: 14px 8px !important; }
.qy-ref-notice-body strong { font-size: 14px !important; color: var(--qy-text) !important; }
.qy-ref-notice-link { color: var(--qy-blue) !important; font-size: 12px !important; }

/* Subscribe footer compact */
.qy-ref-sub-footer { margin-top: 16px !important; padding-top: 16px !important; border-top: 1px solid #eef1f6 !important; }
.qy-ref-reset-tip {
  background: rgba(43, 125, 233, 0.05) !important;
  border-color: rgba(43, 125, 233, 0.1) !important;
  font-size: 12px !important;
}

/* Invite banner v3.64.37 — dashboard card defers to qy-dx-invite-v2 */
.qy-ref-invite:not(.qy-dx-invite-v2), .qy-m-invite {
  background: linear-gradient(120deg, #ff8c42 0%, #ffb347 55%, #ffd166 100%) !important;
  box-shadow: 0 12px 32px rgba(255, 140, 66, 0.25) !important;
  border-radius: var(--qy-radius) !important;
  border: none !important;
}
.qy-ref-invite:not(.qy-dx-invite-v2) { padding: 26px 28px !important; min-height: 168px !important; }
.qy-ref-invite:not(.qy-dx-invite-v2) .qy-ref-invite-body h3 { font-size: 18px !important; font-weight: 800 !important; }
.qy-ref-invite:not(.qy-dx-invite-v2) .qy-ref-invite-rate {
  background: rgba(255,255,255,0.35) !important;
  font-size: 13px !important; padding: 6px 16px !important;
}
.qy-ref-invite:not(.qy-dx-invite-v2) .qy-ref-invite-art {
  width: 88px !important; height: 88px !important;
  background: rgba(255,255,255,0.2) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
  font-size: 0 !important;
}
.qy-invite-art-svg { width: 100%; height: 100%; }

/* Mobile */
.qy-m-dash { gap: 12px !important; }
@media (max-width: 768px) {
  .qy-sub-pill-icon,
  .qy-sub-grid-ref .qy-ref-sub-icon,
  .qy-sub-grid-ref .qy-m-sub-icon {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
  }
  .qy-sub-pill-name,
  .qy-sub-grid-ref .qy-sub-name { font-size: 11px !important; }
  .qy-sub-pills.qy-sub-grid-ref { gap: 8px !important; }
  .qy-m-os-grid {
    display: flex !important; flex-wrap: wrap; gap: 8px !important;
    padding: 0 !important; background: none !important; border: none !important;
  }
  .qy-m-os {
    flex: 1 1 calc(50% - 4px); flex-direction: row !important;
    padding: 12px 14px !important; border: 1px solid var(--qy-border) !important;
    background: #fafbfd !important; border-radius: var(--qy-radius-sm) !important;
  }
  .qy-m-os.active {
    background: rgba(43, 125, 233, 0.08) !important;
    border-color: rgba(43, 125, 233, 0.25) !important;
    color: var(--qy-blue) !important;
  }
  .qy-m-os-num { display: none; }
  .qy-m-client {
    background: #fafbfd !important;
    border-radius: var(--qy-radius-sm) !important;
  }
  .qy-m-dl, .qy-m-tut {
    background: #eef1f6 !important; color: #5a6578 !important; border: none !important;
  }
  .qy-btn-white { flex: 1; padding: 11px 0 !important; font-size: 13px !important; }
}

@media (max-width: 1100px) {
  .qy-ref-grid { grid-template-columns: 1fr !important; }
  .qy-ref-banner-body { max-width: 100% !important; }
  .qy-ref-banner-art { display: none; }
  .qy-client-grid-ref { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (min-width: 1101px) {
  .qy-sub-grid-ref.qy-ref-sub-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* v3.21 鈥?wider dashboard + theme studio + chat auto-popup */
.qy-dashboard-layout.fw-layout .qy-main {
  max-width: 1440px !important;
  padding: 28px 36px 44px !important;
}
.qy-dashboard-layout.fw-layout .qy-navbar-inner {
  max-width: 1440px !important;
}

.qy-chat-wrap.qy-chat-open .qy-chat-bubbles {
  animation: qyChatIn 0.35s ease;
  position: relative;
}
.qy-bubble-auto { border-left: 3px solid var(--fw-accent, #22d3ee); }
.qy-chat-dismiss {
  position: absolute; top: -8px; right: -8px;
  width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgba(15,23,42,0.85); color: #fff;
  cursor: pointer; font-size: 16px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
@keyframes qyChatIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.qy-studio-page { max-width: 1440px; margin: 0 auto; }
.qy-studio-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.qy-studio-header h1 { font-size: 22px; margin: 0 0 6px; }
.qy-studio-header p { margin: 0; color: var(--fw-text-muted); font-size: 13px; }
.qy-studio-tabs {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.qy-studio-tab {
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--fw-border);
  background: var(--fw-bg-2); color: var(--fw-text-muted); cursor: pointer; font-size: 13px;
}
.qy-studio-tab.active {
  background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.45); color: var(--fw-accent);
}
.qy-studio-section { margin-bottom: 28px; }
.qy-studio-section-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
}
.qy-studio-section-head h2 { font-size: 17px; margin: 0; flex: 1; min-width: 160px; }
.qy-studio-scope-tabs { display: flex; gap: 6px; }
.qy-studio-scope-tabs button {
  padding: 6px 12px; border-radius: 8px; border: 1px solid var(--fw-border);
  background: transparent; color: var(--fw-text-muted); cursor: pointer; font-size: 12px;
}
.qy-studio-scope-tabs button.active {
  background: rgba(59,130,246,0.12); border-color: rgba(59,130,246,0.4); color: #60a5fa;
}
.qy-studio-btn {
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--fw-border);
  background: var(--fw-bg-2); color: var(--fw-text); cursor: pointer; font-size: 13px;
}
.qy-studio-btn.primary {
  background: linear-gradient(135deg, #22d3ee, #0891b2); border: none; color: #042f2e; font-weight: 600;
}
.qy-studio-btn.danger { border-color: rgba(248,113,113,0.35); color: #f87171; }
.qy-studio-btn.sm { padding: 4px 10px; font-size: 12px; }
.qy-studio-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.qy-studio-loading { padding: 40px; text-align: center; color: var(--fw-text-muted); }

.qy-studio-nav-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.qy-studio-card {
  background: var(--fw-bg-2); border: 1px solid var(--fw-border);
  border-radius: 14px; padding: 16px 18px;
}
.qy-studio-card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.qy-studio-card-head strong { font-size: 15px; margin-right: 8px; }
.qy-studio-card-head small { display: block; color: var(--fw-text-muted); font-size: 11px; margin-top: 4px; }
.qy-studio-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; margin-left: 6px;
}
.qy-studio-badge.green { background: rgba(34,197,94,0.15); color: #4ade80; }
.qy-studio-badge.blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.qy-studio-badge.teal { background: rgba(34,211,238,0.15); color: #22d3ee; }
.qy-studio-fields {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px;
}
.qy-studio-fields.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qy-studio-fields.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qy-studio-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--fw-text-muted); }
.qy-studio-fields label.span-2 { grid-column: span 2; }
.qy-studio-fields input, .qy-studio-fields select, .qy-studio-fields textarea {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--fw-border);
  background: var(--fw-bg); color: var(--fw-text); font-size: 13px;
}
.qy-studio-fields small { font-size: 11px; color: var(--fw-text-muted); opacity: 0.85; }
.qy-studio-check { flex-direction: row !important; align-items: center; gap: 8px !important; }

.qy-studio-platform-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px;
}
.qy-studio-platform-card {
  min-width: 140px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--fw-border); background: var(--fw-bg-2);
  cursor: pointer; text-align: left;
}
.qy-studio-platform-card.active {
  border-color: rgba(59,130,246,0.55); box-shadow: 0 0 0 1px rgba(59,130,246,0.25);
}
.qy-studio-platform-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.qy-studio-platform-card span.on { color: #4ade80; font-size: 11px; }
.qy-studio-platform-card span.off { color: #f87171; font-size: 11px; }
.qy-studio-platform-card small { display: block; color: var(--fw-text-muted); font-size: 11px; margin-top: 4px; }
.qy-studio-platform-form { margin-bottom: 14px; }

.qy-studio-client-list {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.qy-studio-client-chip {
  position: relative; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--fw-border); background: var(--fw-bg-2);
  cursor: pointer; text-align: left; min-width: 120px;
}
.qy-studio-client-chip.active { border-color: rgba(59,130,246,0.55); }
.qy-studio-client-chip strong { display: block; font-size: 13px; }
.qy-studio-client-chip small { color: var(--fw-text-muted); font-size: 11px; }
.qy-studio-client-chip .del {
  position: absolute; top: 6px; right: 8px; font-size: 11px; color: #f87171;
}
.qy-studio-logo-upload input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 12px;
  color: var(--fw-text-muted);
}
.qy-studio-logo-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 1px solid var(--fw-border);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.qy-studio-logo-preview img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.qy-studio-hint { font-size: 12px; color: var(--fw-text-muted); margin: 0 0 12px; }
.qy-studio-reply-row {
  display: grid; grid-template-columns: 36px 1fr 120px auto; gap: 10px;
  align-items: center; margin-bottom: 10px;
}
.qy-studio-reply-row .idx { color: var(--fw-text-muted); font-size: 12px; }
.qy-studio-reply-row input { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--fw-border); background: var(--fw-bg); color: var(--fw-text); }
.qy-studio-faq-row {
  display: grid; grid-template-columns: 36px 1fr 1.2fr 1fr auto; gap: 10px;
  align-items: start; margin-bottom: 12px;
}
.qy-studio-faq-row .idx { color: var(--fw-text-muted); font-size: 12px; padding-top: 10px; }
.qy-studio-faq-row input,
.qy-studio-faq-row textarea {
  padding: 8px 10px; border-radius: 8px; border: 1px solid var(--fw-border);
  background: var(--fw-bg); color: var(--fw-text); font: inherit;
}

@media (max-width: 900px) {
  .qy-studio-nav-grid, .qy-studio-fields.cols-3, .qy-studio-fields.cols-4 {
    grid-template-columns: 1fr;
  }
  .qy-studio-fields label.span-2 { grid-column: span 1; }
  .qy-studio-reply-row { grid-template-columns: 1fr; }
  .qy-studio-faq-row { grid-template-columns: 1fr; }
  .qy-dashboard-layout.fw-layout .qy-main { padding: 14px 16px 22px !important; }
}

/* v3.22 鈥?dashboard grid dimensions + profile page fix */
:root {
  --qy-dash-max: 1776px;
  --qy-main-w: 1136px;
  --qy-invite-h: 350px;
  --qy-subscribe-h: 400px;
  --qy-dash-min-h: 1388px;
}

.qy-dashboard-layout.fw-layout .qy-main,
.qy-dashboard-layout.fw-layout .qy-navbar-inner {
  max-width: var(--qy-dash-max) !important;
}

.qy-ref-dash.desktop-only {
  min-height: var(--qy-dash-min-h);
}

.qy-ref-grid {
  grid-template-columns: minmax(0, var(--qy-main-w)) minmax(320px, 1fr) !important;
  gap: 24px !important;
  align-items: stretch !important;
}

.qy-ref-main,
.qy-ref-side {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

.qy-ref-banner {
  min-height: 280px !important;
  flex-shrink: 0;
}

.qy-ref-download {
  flex: 1 1 auto;
  min-height: 480px;
  display: flex;
  flex-direction: column;
}

.qy-ref-side .qy-ref-notice {
  flex: 1 1 auto;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.qy-ref-notice-list {
  flex: 1 1 auto;
  overflow-y: auto;
}

.qy-ref-subscribe.qy-ref-card {
  flex: 0 0 var(--qy-subscribe-h) !important;
  min-height: var(--qy-subscribe-h) !important;
  max-height: var(--qy-subscribe-h) !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box;
}

.qy-ref-subscribe .qy-ref-sub-grid {
  flex: 1 1 auto;
  align-content: start;
}

.qy-ref-invite {
  flex: 0 0 var(--qy-invite-h) !important;
  min-height: var(--qy-invite-h) !important;
  height: var(--qy-invite-h) !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center !important;
}

/* Profile page */
.qy-profile-page {
  max-width: 640px !important;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.qy-profile-page .qy-card {
  padding: 24px 28px !important;
  margin-bottom: 0 !important;
}

.qy-profile-page .qy-card h2,
.qy-profile-page .qy-card h3 {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
}

.qy-profile-page .profile-header {
  margin-bottom: 20px !important;
}

.qy-profile-checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.qy-profile-check {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  font-size: 14px !important;
  color: var(--fw-text, #1e293b) !important;
  line-height: 1.4 !important;
}

.qy-profile-check input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #2563eb;
  cursor: pointer;
  flex-shrink: 0;
}

.qy-profile-check span {
  user-select: none;
}

.qy-profile-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.qy-profile-page input[type="password"],
.qy-profile-page input[type="text"],
.qy-profile-page input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--fw-border, #e2e8f0);
  background: var(--fw-bg, #fff);
  color: var(--fw-text, #1e293b);
  font-size: 14px;
  margin-bottom: 0 !important;
}

.qy-profile-desc {
  font-size: 13px;
  color: var(--fw-text-muted);
  margin: 0 0 16px;
  line-height: 1.6;
}

.qy-profile-admin-btn {
  display: inline-flex !important;
  text-decoration: none !important;
}

.qy-profile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.qy-profile-logout {
  border-color: rgba(248, 113, 113, 0.35) !important;
  color: var(--fw-danger, #ef4444) !important;
}

@media (max-width: 1280px) {
  .qy-ref-grid {
    grid-template-columns: 1fr !important;
  }
  .qy-ref-subscribe.qy-ref-card,
  .qy-ref-invite {
    flex: none !important;
    max-height: none !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .qy-ref-invite {
    min-height: var(--qy-invite-h) !important;
  }
  .qy-ref-subscribe.qy-ref-card {
    min-height: var(--qy-subscribe-h) !important;
  }
}

/* v3.23 鈥?fix subscribe overlap + glass panels + animated light strip */
@keyframes qyLightStrip {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes qyGlassShimmer {
  0%, 100% { opacity: 0.35; transform: translate(0, 0) rotate(0deg); }
  50% { opacity: 0.65; transform: translate(2%, 1%) rotate(1deg); }
}

.qy-ref-dash.desktop-only {
  min-height: 0 !important;
}

.qy-ref-grid {
  grid-template-columns: minmax(0, var(--qy-main-w)) minmax(380px, 420px) !important;
  gap: 22px !important;
  align-items: start !important;
}

.qy-ref-main,
.qy-ref-side {
  gap: 22px !important;
  overflow: visible !important;
}

.qy-ref-side .qy-ref-notice {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  max-height: 300px;
}

.qy-ref-subscribe.qy-ref-card {
  flex: 0 0 auto !important;
  min-height: auto !important;
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
}

.qy-ref-subscribe .qy-ref-sub-grid {
  flex: none !important;
  overflow: visible !important;
  margin-bottom: 4px;
}

.qy-ref-sub-footer {
  flex-shrink: 0;
  margin-top: 18px !important;
  padding-top: 18px !important;
  border-top: 1px solid rgba(43, 125, 233, 0.08) !important;
}

.qy-ref-invite {
  flex: 0 0 auto !important;
  min-height: var(--qy-invite-h) !important;
  height: auto !important;
  max-height: none !important;
  margin-top: 0 !important;
  position: relative !important;
  z-index: 1 !important;
  isolation: isolate;
}

.qy-ref-download {
  min-height: 0 !important;
  flex: none !important;
}

/* Glass panel base */
.qy-glass-panel {
  position: relative;
  isolation: isolate;
  border: none !important;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.qy-glass-panel:hover {
  transform: translateY(-2px);
}

/* Light strip ring 鈥?replaces solid border */
.qy-glass-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    120deg,
    rgba(94, 179, 255, 0) 0%,
    rgba(94, 179, 255, 0.9) 18%,
    rgba(34, 211, 238, 0.75) 38%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(43, 125, 233, 0.8) 62%,
    rgba(94, 179, 255, 0.9) 82%,
    rgba(94, 179, 255, 0) 100%
  );
  background-size: 280% 280%;
  animation: qyLightStrip 4.5s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}

/* Inner glass shimmer */
.qy-glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 80% 60% at 10% 0%, rgba(255, 255, 255, 0.5) 0%, transparent 55%);
  animation: qyGlassShimmer 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.qy-glass-panel > * {
  position: relative;
  z-index: 1;
}

/* Card glass surface */
.qy-ref-dash .qy-ref-card.qy-glass-panel {
  background: rgba(255, 255, 255, 0.68) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 8px 32px rgba(43, 125, 233, 0.07),
    0 1px 0 rgba(255, 255, 255, 0.92) inset !important;
}

.qy-ref-dash .qy-ref-card.qy-glass-panel:hover {
  box-shadow:
    0 14px 40px rgba(43, 125, 233, 0.11),
    0 1px 0 rgba(255, 255, 255, 0.95) inset !important;
}

/* Hero banner glass overlay */
.qy-glass-hero::before {
  background:
    radial-gradient(ellipse 70% 80% at 85% 15%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 5% 90%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
  animation: qyGlassShimmer 6s ease-in-out infinite;
}

.qy-glass-hero::after {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.7) 25%,
    rgba(34, 211, 238, 0.5) 50%,
    rgba(255, 255, 255, 0.65) 75%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 300% 300%;
}

/* Invite warm light strip */
.qy-glass-invite::after {
  background: linear-gradient(
    120deg,
    rgba(255, 200, 100, 0) 0%,
    rgba(255, 220, 120, 0.95) 20%,
    rgba(255, 255, 255, 0.7) 45%,
    rgba(255, 160, 60, 0.85) 65%,
    rgba(255, 230, 150, 0.9) 85%,
    rgba(255, 200, 100, 0) 100%
  );
  background-size: 280% 280%;
}

.qy-glass-invite:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(234, 88, 12, 0.28) !important;
}

/* Subscribe pills 鈥?glass panel compatible glow */
.qy-sub-grid-ref .qy-ref-sub-btn,
.qy-sub-grid-ref .qy-m-sub-btn {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: 0 !important;
}

.qy-sub-grid-ref .qy-ref-sub-btn:hover,
.qy-sub-grid-ref .qy-m-sub-btn:hover {
  background: #fff !important;
}

.qy-sub-grid-ref .qy-ref-sub-icon,
.qy-sub-grid-ref .qy-m-sub-icon {
  border: none !important;
}

.qy-ref-reset-tip {
  border: none !important;
  background: rgba(43, 125, 233, 0.06) !important;
  backdrop-filter: blur(6px);
}

/* Card icons 鈥?soft glow, no hard border */
.qy-ref-card-icon {
  border: none !important;
  box-shadow: 0 2px 12px rgba(43, 125, 233, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

[data-theme="slate"] .qy-ref-dash .qy-ref-card.qy-glass-panel,
[data-theme="purple"] .qy-ref-dash .qy-ref-card.qy-glass-panel,
[data-theme="cyan"] .qy-ref-dash .qy-ref-card.qy-glass-panel {
  background: rgba(30, 41, 59, 0.62) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

@media (max-width: 1280px) {
  .qy-ref-grid {
    grid-template-columns: 1fr !important;
  }
}

/* v3.24 鈥?column align, wider sidebar, stretch download, premium glass */
@keyframes qyGlassBgFlow {
  0%, 100% { background-position: 0% 40%; }
  33% { background-position: 100% 60%; }
  66% { background-position: 50% 0%; }
}
@keyframes qyAmbientDrift {
  0%, 100% { opacity: 0.55; transform: translate(0, 0) scale(1); }
  50% { opacity: 0.85; transform: translate(1.5%, -1%) scale(1.03); }
}

:root {
  --qy-dash-max: 1680px;
  --qy-side-w: 540px;
}

.qy-dashboard-layout.fw-layout .qy-main,
.qy-dashboard-layout.fw-layout .qy-navbar-inner {
  max-width: var(--qy-dash-max) !important;
}

.qy-dashboard-layout.fw-layout::before {
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(94, 179, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 48% 42% at 88% 72%, rgba(34, 211, 238, 0.1), transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(43, 125, 233, 0.05), transparent 60%) !important;
  animation: qyAmbientDrift 14s ease-in-out infinite;
}

/* Two-column stretch: left download grows to match right stack (PC only) */
@media (min-width: 1101px) {
  .qy-ref-grid {
    grid-template-columns: minmax(0, 1fr) minmax(480px, var(--qy-side-w)) !important;
    gap: 24px !important;
    align-items: stretch !important;
  }
}

.qy-ref-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
  min-height: 100% !important;
}

.qy-ref-side {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.qy-ref-side .qy-ref-card,
.qy-ref-side .qy-ref-invite {
  width: 100% !important;
  box-sizing: border-box !important;
}

.qy-ref-banner {
  flex: 0 0 auto !important;
  min-height: 268px !important;
}

/* Client download 鈥?stretch to align with right column */
.qy-ref-download.qy-glass-panel {
  flex: 1 1 auto !important;
  min-height: 560px !important;
  display: flex !important;
  flex-direction: column !important;
}

.qy-ref-download .qy-ref-os-tabs {
  flex-shrink: 0;
}

.qy-ref-download .qy-ref-client-grid {
  flex: 1 1 auto !important;
  align-content: stretch !important;
  min-height: 320px;
}

.qy-ref-download .qy-ref-more {
  margin-top: auto !important;
  flex-shrink: 0;
}

.qy-client-grid-ref .qy-ref-client-item {
  min-height: 248px !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 16px rgba(43, 125, 233, 0.05) !important;
}

/* Right column modules 鈥?wider padding */
.qy-ref-side .qy-ref-card.qy-glass-panel {
  padding: 26px 28px !important;
}

.qy-ref-side .qy-ref-notice {
  flex: 0 0 auto !important;
  max-height: none !important;
  min-height: 160px !important;
}

.qy-ref-subscribe.qy-ref-card {
  flex: 0 0 auto !important;
  max-height: none !important;
  height: auto !important;
  min-height: auto !important;
}

.qy-sub-pills.qy-sub-grid-ref {
  gap: 10px !important;
}

.qy-sub-grid-ref .qy-ref-sub-btn,
.qy-sub-grid-ref .qy-m-sub-btn {
  min-height: 0 !important;
  padding: 5px 14px 5px 5px !important;
}

.qy-ref-invite {
  flex: 0 0 auto !important;
  min-height: var(--qy-invite-h) !important;
  padding: 28px 30px !important;
}

/* Premium dynamic transparent backgrounds */
.qy-ref-dash .qy-ref-card.qy-glass-panel {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.48) 38%,
    rgba(232, 244, 255, 0.58) 62%,
    rgba(255, 255, 255, 0.76) 100%
  ) !important;
  background-size: 240% 240% !important;
  animation: qyGlassBgFlow 14s ease infinite !important;
  backdrop-filter: blur(22px) saturate(1.55) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.55) !important;
}

.qy-glass-panel::before {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(255, 255, 255, 0.65) 0%, transparent 52%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(94, 179, 255, 0.12) 0%, transparent 55%) !important;
  animation: qyGlassShimmer 8s ease-in-out infinite !important;
  opacity: 1 !important;
}

.qy-glass-hero {
  background: var(--qy-hero-grad) !important;
}

.qy-glass-hero::before {
  background:
    radial-gradient(ellipse 70% 80% at 88% 12%, rgba(255, 255, 255, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 50% 50% at 8% 88%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    linear-gradient(105deg, rgba(255, 255, 255, 0.06) 0%, transparent 45%, rgba(34, 211, 238, 0.08) 100%) !important;
  animation: qyGlassShimmer 7s ease-in-out infinite, qyGlassBgFlow 16s ease infinite !important;
  background-size: auto, auto, 200% 200% !important;
}

.qy-glass-invite {
  background: linear-gradient(
    125deg,
    rgba(255, 140, 66, 0.92) 0%,
    rgba(255, 179, 71, 0.88) 45%,
    rgba(255, 209, 102, 0.9) 100%
  ) !important;
  background-size: 200% 200% !important;
  animation: qyGlassBgFlow 12s ease infinite !important;
}

.qy-glass-invite::before {
  background:
    radial-gradient(ellipse 80% 60% at 95% 5%, rgba(255, 255, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255, 255, 255, 0.12) 0%, transparent 50%) !important;
}

[data-theme="slate"] .qy-ref-dash .qy-ref-card.qy-glass-panel,
[data-theme="purple"] .qy-ref-dash .qy-ref-card.qy-glass-panel,
[data-theme="cyan"] .qy-ref-dash .qy-ref-card.qy-glass-panel {
  background: linear-gradient(
    145deg,
    rgba(30, 41, 59, 0.72) 0%,
    rgba(30, 41, 59, 0.48) 40%,
    rgba(15, 23, 42, 0.58) 70%,
    rgba(30, 41, 59, 0.68) 100%
  ) !important;
  background-size: 240% 240% !important;
  animation: qyGlassBgFlow 14s ease infinite !important;
}

@media (max-width: 1400px) {
  :root { --qy-side-w: 480px; }
  .qy-ref-download.qy-glass-panel { min-height: 480px !important; }
}

@media (max-width: 1280px) {
  .qy-ref-main { min-height: 0 !important; }
  .qy-ref-download.qy-glass-panel { min-height: 0 !important; flex: none !important; }
}

/* v3.25 鈥?client strip layout, plan card fix, server status, ripple */
@keyframes qyWaterRipple {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.45; }
  70% { opacity: 0.08; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}
@keyframes qyWaterRipple2 {
  0% { transform: translate(-30%, -40%) scale(0.5); opacity: 0.35; }
  100% { transform: translate(-30%, -40%) scale(2.2); opacity: 0; }
}

/* Dashboard client 鈥?horizontal strip cards */
.qy-client-strip-ref {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: stretch;
  flex: 1 1 auto;
  min-height: 0;
}

.qy-client-strip-card {
  flex: 1 1 calc(33.333% - 10px);
  min-width: 160px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 16px 18px !important;
  border-radius: 14px !important;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.52) !important;
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}

.qy-client-strip-card:hover {
  transform: translateY(-3px);
}

.qy-client-strip-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 14px;
  background: linear-gradient(145deg, #4da3ff, #2b7de9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(43, 125, 233, 0.22);
  flex-shrink: 0;
}

.qy-client-strip-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}

.qy-client-strip-name {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--qy-text, #0f172a);
  line-height: 1.35;
}

.qy-client-strip-ver {
  font-size: 12px;
  color: var(--qy-muted, #64748b);
  margin: 0 0 14px;
}

.qy-client-strip-btns {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: auto;
}

.qy-client-strip-dl,
.qy-client-strip-tut {
  flex: 1;
  padding: 10px 8px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.qy-client-strip-dl {
  background: rgba(43, 125, 233, 0.1);
  color: #2563eb;
}

.qy-client-strip-dl:hover {
  background: rgba(43, 125, 233, 0.18);
}

.qy-client-strip-tut {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
}

.qy-client-strip-tut:hover {
  background: rgba(100, 116, 139, 0.16);
}

.qy-ref-download .qy-client-strip-ref {
  margin-top: 4px;
}

@media (max-width: 1100px) {
  .qy-client-strip-card { flex: 1 1 calc(50% - 8px); }
}

@media (max-width: 640px) {
  .qy-client-strip-card { flex: 1 1 100%; }
}

/* Plan cards 鈥?缁撴瀯甯冨眬锛堣瑙夋牱寮忕敱 .fw-plan-page-v4 缁熶竴瀹氫箟锛?*/
.fw-plan-grid-v4 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.fw-plan-card-v4.fw-plan-glass {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  height: 520px !important;
  max-height: 520px !important;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  border: none !important;
  animation: none !important;
}

.fw-plan-card-v4.fw-plan-glass::after {
  padding: 2px;
}

.fw-plan-ripple {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}

.fw-plan-ripple::before,
.fw-plan-ripple::after {
  content: '';
  position: absolute;
  width: 140%;
  height: 140%;
  border-radius: 45%;
  background: radial-gradient(circle, rgba(94, 179, 255, 0.18) 0%, transparent 68%);
  top: 55%;
  left: 50%;
  animation: qyWaterRipple 5s ease-out infinite;
}

.fw-plan-ripple::after {
  top: 65%;
  left: 35%;
  animation: qyWaterRipple2 7s ease-out infinite 1.5s;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14) 0%, transparent 65%);
}

.fw-plan-card-v4.featured .fw-plan-ripple::before {
  background: radial-gradient(circle, rgba(34, 211, 238, 0.22) 0%, transparent 68%);
}

.fw-plan-card-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 24px 24px 12px;
  position: relative;
  z-index: 1;
}

.fw-plan-card-foot {
  flex-shrink: 0;
  padding: 14px 24px 22px;
  position: relative;
  z-index: 2;
}

.fw-plan-feats-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-top: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
}

.fw-plan-feats-scroll::-webkit-scrollbar { width: 4px; }

.fw-plan-feats-v4 {
  flex: none !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  border-bottom: none !important;
}

.fw-plan-card-top h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .fw-plan-card-v4.fw-plan-glass {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
  }
}
.fw-server-card.qy-glass-panel {
  padding: 20px 22px !important;
  border: none !important;
}

.fw-server-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.fw-server-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: qyStatusPulse 2s ease-in-out infinite;
}

.fw-server-status.online {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.fw-server-status.online .fw-server-status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
}

.fw-server-status.offline {
  background: rgba(248, 113, 113, 0.1);
  color: #dc2626;
}

.fw-server-status.offline .fw-server-status-dot {
  background: #ef4444;
  box-shadow: none;
  animation: none;
}

@keyframes qyStatusPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

.fw-server-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
}

.fw-server-meta-item {
  font-size: 12px;
  color: var(--fw-text-muted);
}

.fw-server-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 16px !important;
}

.fw-server-hero.qy-glass-panel,
.fw-server-search.qy-glass-panel {
  border: none !important;
}

/* 套餐页视觉样式已迁移至 assets/qp-plan.css（v3.57.0，最后加载） */

/* ===== 扫码支付弹窗 ===== */
.fw-pay-qr-modal .pay-form-slot {
  min-height: 120px;
}

.fw-pay-qr-modal .fw-pay-qr-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.fw-pay-qr-modal .fw-pay-qr-footer .qy-btn {
  min-width: 96px;
}

.qr-tip-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--qy-blue, #2563eb);
}

.qr-tip-warn {
  color: #d97706;
}

.qr-poll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--qy-blue, #2563eb);
  animation: qrPollPulse 1.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes qrPollPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1); }
}

.qy-pay-qr-overlay--center {
  align-items: center !important;
  justify-content: center !important;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px)) !important;
}

.qy-pay-qr-frame--canvas {
  position: relative;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qy-pay-qr-canvas-host {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  min-height: 0;
  min-width: 0;
}

.qy-pay-qr-canvas-host img,
.qy-pay-qr-canvas-host canvas {
  display: block;
  width: auto;
  height: auto;
  max-width: min(300px, 100%);
  max-height: min(300px, 100%);
}

.qy-pay-qr-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 16px;
  z-index: 2;
}

.qy-pay-qr-skeleton--error {
  background: rgba(127, 29, 29, 0.35);
}

.qy-pay-qr-skeleton__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(94, 234, 212, 0.18);
  border-top-color: #5eead4;
  animation: qyPageLoadSpin 0.85s linear infinite;
}

.qy-pay-qr-skeleton span {
  font-size: 13px;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.45;
}

.qy-pay-qr-fade-enter-active,
.qy-pay-qr-fade-leave-active {
  transition: opacity 0.25s ease;
}

.qy-pay-qr-fade-enter-from,
.qy-pay-qr-fade-leave-to {
  opacity: 0;
}

.qy-unpaid-global-bar__inner.is-navigating {
  opacity: 0.88;
  pointer-events: none;
}

.qy-unpaid-global-bar__pay:disabled {
  opacity: 0.72;
  cursor: wait;
}

@media (max-width: 768px) {
  .fw-pay-qr-overlay.qy-pay-qr-overlay--center,
  .qy-modal-overlay.fw-pay-qr-overlay.qy-pay-qr-overlay--center {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    height: 100% !important;
    max-height: 100dvh !important;
  }

  .qy-pay-qr-overlay--center .qy-pay-qr-premium,
  .qy-pay-qr-overlay--center .fw-pay-qr-modal-v7 {
    width: 100% !important;
    max-width: 100% !important;
    max-height: min(94dvh, 100%) !important;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .qy-pay-qr-premium__body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .qy-pay-qr-frame--canvas,
  .qy-pay-qr-canvas-host {
    min-width: 0 !important;
    min-height: 0 !important;
  }

  .qy-pay-qr-premium__qr-frame {
    padding: 10px !important;
    max-width: min(280px, 72vmin) !important;
    width: fit-content !important;
  }

  .qy-pay-qr-canvas-host img,
  .qy-pay-qr-canvas-host canvas,
  .qy-pay-qr-premium__qr-frame img {
    width: auto !important;
    height: auto !important;
    max-width: min(260px, 68vmin) !important;
    max-height: min(260px, 68vmin) !important;
    touch-action: pan-x pan-y pinch-zoom;
  }

  .qy-pay-qr-premium__body {
    padding: 16px 14px 12px !important;
  }

  .qy-pay-qr-premium__amount {
    font-size: 32px !important;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .fw-pay-qr-overlay.qy-pay-qr-overlay--center,
  .qy-modal-overlay.fw-pay-qr-overlay.qy-pay-qr-overlay--center {
    align-items: center !important;
    padding: 8px !important;
  }

  .qy-pay-qr-canvas-host img,
  .qy-pay-qr-canvas-host canvas,
  .qy-pay-qr-premium__qr-frame img {
    max-width: min(220px, 56vmin) !important;
    max-height: min(220px, 56vmin) !important;
  }
}

.qy-pay-success-overlay {
  z-index: 10004;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 24px max(24px, env(safe-area-inset-bottom, 0px));
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

/* ===== 支付连接中（屏幕居中） ===== */
.qy-pay-connect-overlay {
  position: fixed;
  inset: 0;
  z-index: 10003;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 24px max(24px, env(safe-area-inset-bottom, 0px));
  background: rgba(4, 8, 18, 0.88);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
}

.qy-pay-connect-card {
  position: relative;
  width: min(360px, 100%);
  padding: 36px 28px 32px;
  text-align: center;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(45, 212, 191, 0.12), transparent 55%),
    linear-gradient(168deg, #14161c 0%, #11151f 48%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.72),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: qyPayConnectIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.qy-pay-connect-aurora {
  position: absolute;
  inset: -40% -20%;
  background: conic-gradient(from 200deg at 50% 50%, rgba(34, 211, 238, 0.14), rgba(45, 212, 191, 0.08), rgba(99, 102, 241, 0.1), rgba(34, 211, 238, 0.14));
  filter: blur(40px);
  opacity: 0.75;
  animation: qyPayConnectAurora 4s ease-in-out infinite;
  pointer-events: none;
}

.qy-pay-connect-spinner-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 22px;
}

.qy-pay-connect-spinner {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px solid rgba(94, 234, 212, 0.15);
  border-top-color: #5eead4;
  border-right-color: #22d3ee;
  animation: qyPageLoadSpin 0.85s linear infinite;
}

.qy-pay-connect-spinner-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: rgba(45, 212, 191, 0.35);
  animation: qyPageLoadSpin 1.4s linear infinite reverse;
}

.qy-pay-connect-title {
  position: relative;
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #f8fafc;
}

.qy-pay-connect-sub {
  position: relative;
  margin: 0 0 20px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.72);
}

.qy-pay-connect-bar {
  position: relative;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.qy-pay-connect-bar span {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #5eead4, #22d3ee, transparent);
  animation: qyPayConnectBar 1.6s ease-in-out infinite;
}

.qy-pay-connect-fade-enter-active,
.qy-pay-connect-fade-leave-active {
  transition: opacity 0.28s ease;
}

.qy-pay-connect-fade-enter-from,
.qy-pay-connect-fade-leave-to {
  opacity: 0;
}

.qy-pay-connect-fade-enter-active .qy-pay-connect-card {
  animation: qyPayConnectIn 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes qyPayConnectIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes qyPayConnectAurora {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.65; }
  50% { transform: rotate(12deg) scale(1.05); opacity: 0.85; }
}

@keyframes qyPayConnectBar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.qy-recharge-modal--connecting {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.qy-recharge-overlay--qr-active {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.qy-recharge-qr-overlay {
  z-index: 10002;
}

.qy-recharge-checkout-hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(45, 212, 191, 0.25);
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.85rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.qy-recharge-checkout-hint .qy-pay-qr-skeleton__spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
}

.qy-recharge-modal-v3.is-checkout-loading {
  opacity: 0.92;
}

@media (max-width: 768px) {
  .qy-pay-connect-card {
    padding: 32px 22px 28px;
    border-radius: 22px;
  }

  .qy-pay-connect-title {
    font-size: 17px;
  }

  .qy-pay-success-overlay {
    padding: max(16px, env(safe-area-inset-top, 0px)) 16px max(16px, env(safe-area-inset-bottom, 0px));
    align-items: center;
  }

  .qy-pay-success-page {
    width: min(100%, 380px);
  }

  .qy-pay-success-card {
    padding: 28px 22px 22px;
    border-radius: 20px;
  }

  .qy-pay-success-title {
    font-size: 1.25rem;
  }

  .qy-pay-success-amount {
    font-size: 1.65rem;
  }
}

.qy-pay-success-page {
  width: 100%;
  max-width: 420px;
  animation: qyPaySuccessIn 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.qy-pay-success-card {
  text-align: center;
  padding: 36px 32px 28px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(45, 212, 191, 0.08), transparent 55%),
    linear-gradient(168deg, #14161c 0%, #11151f 48%, #0a0a0a 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    inset 0 -16px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

[data-theme="light"] .qy-pay-success-card {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.qy-pay-success-check-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
}

.qy-pay-success-spinner {
  width: 52px;
  height: 52px;
  margin: 10px auto;
  border-radius: 50%;
  border: 3px solid rgba(94, 234, 212, 0.18);
  border-top-color: #5eead4;
  border-right-color: #22d3ee;
  animation: qyPageLoadSpin 0.85s linear infinite;
}

.qy-pay-success-card.is-confirming {
  min-height: 220px;
}

.qy-pay-success-check {
  width: 72px;
  height: 72px;
  stroke: #34d399;
  stroke-width: 2.5;
}

.qy-pay-success-check-circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: qyCheckCircle 0.5s ease forwards 0.1s;
}

.qy-pay-success-check-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: qyCheckPath 0.35s ease forwards 0.45s;
}

.qy-pay-success-title {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.qy-pay-success-amount {
  margin: 0 0 12px;
  font-size: 2rem;
  font-weight: 900;
  color: #5eead4;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px rgba(45, 212, 191, 0.25);
}

.qy-pay-success-balance,
.qy-pay-success-sub {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.82);
}

.qy-pay-success-balance strong {
  color: #ffffff;
  font-weight: 700;
}

.qy-pay-success-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 10px;
}

.qy-pay-success-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  transition: width 0.04s linear;
}

.qy-pay-success-hint {
  margin: 0 0 20px;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.65);
}

.qy-pay-success-btn {
  min-height: 48px;
  font-weight: 800;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 45%, #14b8a6 100%) !important;
  box-shadow: 0 10px 32px rgba(45, 212, 191, 0.32) !important;
}

.qy-pay-success-btn:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 40px rgba(45, 212, 191, 0.42) !important;
}

.qy-pay-success-fade-enter-active,
.qy-pay-success-fade-leave-active {
  transition: opacity 0.25s ease;
}

.qy-pay-success-fade-enter-from,
.qy-pay-success-fade-leave-to {
  opacity: 0;
}

@keyframes qyPaySuccessIn {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes qyCheckCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes qyCheckPath {
  to { stroke-dashoffset: 0; }
}

/* ===== Order Payment Page v6 鈥?Premium SaaS ===== */
.fw-order-pay-v6 { gap: 20px; }

.fw-order-pay-hero-v6 {
  position: relative;
  overflow: hidden;
  border-radius: var(--fw-radius, 16px);
  border: 1px solid var(--fw-border);
  padding: 0;
}

.fw-order-pay-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(34, 211, 238, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(52, 211, 153, 0.08) 0%, transparent 50%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(10, 15, 28, 0.85) 100%);
  pointer-events: none;
}

[data-theme="light"] .fw-order-pay-hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(34, 211, 238, 0.15) 0%, transparent 55%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.fw-order-pay-hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  flex-wrap: wrap;
}

.fw-pay-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fw-pay-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fw-text-muted);
}

[data-theme="light"] .fw-pay-badge {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.08);
}

.fw-order-status-v6 {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.2);
}

.fw-order-summary-v6 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.fw-order-amount-hero {
  text-align: center;
  padding: 24px 20px;
  margin: -28px -28px 24px;
  border-radius: var(--fw-radius-sm) var(--fw-radius-sm) 0 0;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.12) 0%, transparent 100%);
  border-bottom: 1px solid var(--fw-border);
}

.fw-order-amount-label {
  display: block;
  font-size: 12px;
  color: var(--fw-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.fw-order-amount-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--fw-cyan);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.fw-order-bonus-hint {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #34d399;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
}

.fw-pay-security-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 12px 14px;
  border-radius: var(--fw-radius-sm);
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.15);
  font-size: 12px;
  color: var(--fw-text-muted);
  line-height: 1.5;
}

.fw-pay-security-icon { font-size: 18px; flex-shrink: 0; }

.fw-order-pay-panel-v6 .fw-pay-panel-head {
  margin-bottom: 24px;
}

.fw-order-pay-panel-v6 .fw-pay-panel-head h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 6px;
}

.fw-order-pay-panel-v6 .fw-pay-panel-head p {
  margin: 0;
  font-size: 13px;
  color: var(--fw-text-muted);
}

.fw-pay-method-grid-v6 {
  grid-template-columns: 1fr;
  gap: 10px;
}

.fw-pay-method-card-v6 {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 16px 18px;
  gap: 14px;
}

.fw-pay-method-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fw-border);
  flex-shrink: 0;
}

.fw-pay-method-card-v6.active .fw-pay-method-icon-wrap {
  background: var(--fw-cyan-dim);
  border-color: rgba(34, 211, 238, 0.35);
}

.fw-pay-method-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fw-pay-submit-btn {
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fw-pay-loading-ring {
  width: 40px;
  height: 40px;
  margin: 0 auto 16px;
  border: 3px solid rgba(34, 211, 238, 0.2);
  border-top-color: var(--fw-cyan);
  border-radius: 50%;
  animation: fwSpin 0.8s linear infinite;
}

@keyframes fwSpin {
  to { transform: rotate(360deg); }
}

.fw-pay-qr-modal-v6 {
  position: relative;
  overflow: hidden;
  max-width: 400px;
}

.fw-pay-qr-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.fw-pay-qr-amount {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fw-cyan);
  margin-bottom: 16px;
}

.fw-pay-qr-frame {
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  display: inline-block;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fw-pay-poll-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--fw-cyan);
}

@media (max-width: 768px) {
  .fw-order-pay-hero-inner { padding: 18px 16px; }
  .fw-order-amount-hero {
    margin: -18px -16px 20px;
    padding: 20px 16px;
  }
  .fw-order-amount-value { font-size: 2rem; }
  .qy-pay-success-card { padding: 28px 20px 22px; }
  .qy-pay-success-amount { font-size: 1.65rem; }
}

/* legacy success box 鈥?kept for compat */
.qy-pay-success-box {
  text-align: center;
  padding: 2rem 2.5rem;
  border-radius: 16px;
  max-width: 320px;
  margin: 0 auto;
}

.qy-pay-success-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.qy-pay-success-box h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
}

.qy-pay-success-box p {
  margin: 0;
  color: var(--qy-muted, #64748b);
  font-size: 0.95rem;
}

/* ===== Recharge Modal v2 鈥?Premium SaaS ===== */
.qy-recharge-overlay {
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  padding: 16px;
  align-items: center;
  justify-content: center;
}

.qy-recharge-modal-v2 {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: min(92vh, 720px);
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(34, 211, 238, 0.2);
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.97) 0%, rgba(10, 16, 32, 0.99) 100%);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.qy-recharge-modal-v3 {
  max-width: 540px;
  border-radius: 24px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(45, 212, 191, 0.07), transparent 58%),
    linear-gradient(168deg, #14161c 0%, #0f1117 48%, #0a0a0a 100%);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    inset 0 -16px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

[data-theme="light"] .qy-recharge-modal-v2 {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
}

.qy-recharge-glow {
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.qy-recharge-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(226, 232, 240, 0.9);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.qy-recharge-close:hover {
  background: rgba(248, 113, 113, 0.22);
  border-color: rgba(248, 113, 113, 0.45);
  color: #fecaca;
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(248, 113, 113, 0.22);
}

.qy-recharge-close:active {
  transform: scale(0.96);
}

.qy-recharge-close:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.65);
  outline-offset: 2px;
}

[data-theme="light"] .qy-recharge-close {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 23, 42, 0.12);
  color: #64748b;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .qy-recharge-close:hover {
  background: #fff;
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.14);
}

.qy-recharge-step {
  padding: 28px 24px 24px;
  overflow-y: auto;
  max-height: min(92vh, 720px);
}

.qy-recharge-step-center {
  text-align: center;
  padding: 48px 24px;
}

.qy-recharge-header {
  text-align: center;
  margin-bottom: 20px;
}

.qy-recharge-header.compact {
  margin-bottom: 16px;
}

.qy-recharge-header-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.qy-recharge-header h2 {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fw-text) !important;
}

.qy-recharge-header p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--fw-text-muted);
}

.qy-recharge-pay-amount {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--fw-cyan) !important;
  margin-top: 4px !important;
}

.qy-recharge-balance-card {
  text-align: center;
  padding: 18px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(52, 211, 153, 0.06) 100%);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.qy-recharge-balance-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fw-text-muted);
  margin-bottom: 6px;
}

.qy-recharge-balance-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fw-cyan);
  font-variant-numeric: tabular-nums;
}

.qy-recharge-field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--fw-text-muted);
  margin-bottom: 10px;
}

.qy-recharge-presets {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 18px;
}

.qy-recharge-preset {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  padding: 12px 8px;
  border-radius: 12px;
  border: 1px solid var(--fw-border);
  background: rgba(0, 0, 0, 0.15);
  color: var(--fw-text);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

[data-theme="light"] .qy-recharge-preset {
  background: rgba(15, 23, 42, 0.03);
}

.qy-recharge-preset:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.35);
}

.qy-recharge-preset.active {
  border-color: rgba(34, 211, 238, 0.55);
  background: var(--fw-cyan-dim);
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
}

.qy-recharge-preset-amt {
  font-size: 15px;
  font-weight: 700;
}

.qy-recharge-preset-tag {
  position: absolute;
  top: -6px;
  right: -4px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  color: #0f172a;
}

.qy-recharge-custom-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  border-radius: 12px;
  border: 1px solid var(--fw-border);
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
  transition: border-color 0.2s;
}

.qy-recharge-custom-wrap:focus-within {
  border-color: rgba(34, 211, 238, 0.45);
}

.qy-recharge-custom-prefix {
  padding: 0 14px;
  font-size: 16px;
  font-weight: 700;
  color: var(--fw-text-muted);
  border-right: 1px solid var(--fw-border);
}

.qy-recharge-custom-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--fw-text);
  outline: none;
  min-width: 0;
}

.qy-recharge-summary {
  text-align: center;
  font-size: 13px;
  color: var(--fw-text-muted);
  margin-bottom: 14px;
}

.qy-recharge-summary strong {
  color: var(--fw-cyan);
  font-weight: 700;
}

.qy-recharge-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin-bottom: 20px;
  font-size: 11px;
  color: var(--fw-text-muted);
}

.qy-recharge-footer {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.qy-recharge-footer.compact {
  flex-wrap: wrap;
  justify-content: center;
}

.qy-recharge-footer .qy-btn,
.qy-recharge-footer .qy-recharge-submit {
  flex: 1;
  min-height: 48px;
}

.qy-recharge-submit {
  font-weight: 700;
}

/* ===== Recharge Modal v3 — 图二风格 ===== */
.qy-recharge-modal-v3 svg {
  width: 18px !important;
  height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  flex-shrink: 0 !important;
  display: block !important;
}

.qy-recharge-step-amount {
  padding: 26px 26px 24px;
  overflow-x: hidden;
}

.qy-recharge-v3-head {
  margin-bottom: 18px;
  padding-right: 48px;
}

.qy-recharge-v3-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.qy-recharge-v3-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -8px 20px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.qy-recharge-v3-balance__side {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.qy-recharge-v3-balance__label {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 6px;
}

.qy-recharge-v3-balance__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f1f5f9;
  font-variant-numeric: tabular-nums;
}

.qy-recharge-v3-balance__side.is-after .qy-recharge-v3-balance__value {
  color: #5eead4;
}

.qy-recharge-v3-balance__arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: #5eead4;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
}

.qy-recharge-v3-balance__arrow svg {
  width: 18px !important;
  height: 18px !important;
}

.qy-recharge-v3-selected {
  margin: 0 0 16px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.qy-recharge-v3-selected strong {
  color: #22d3ee;
  font-weight: 800;
  font-size: 15px;
}

.qy-recharge-v3-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 20px;
  width: 100%;
}

.qy-recharge-v3-card {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 78px;
  padding: 16px 10px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  cursor: pointer;
  appearance: none !important;
  -webkit-appearance: none !important;
  font-family: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 16px rgba(0, 0, 0, 0.28);
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s, background 0.22s;
}

.qy-recharge-v3-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 212, 191, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(45, 212, 191, 0.08);
}

.qy-recharge-v3-card.active {
  border-color: rgba(45, 212, 191, 0.55);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.16) 0%, rgba(99, 102, 241, 0.08) 100%);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.22),
    0 12px 36px rgba(45, 212, 191, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.qy-recharge-v3-card__amt {
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.qy-recharge-v3-card__bonus {
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.28);
}

.qy-recharge-v3-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 10px;
}

.qy-recharge-v3-input {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.qy-recharge-v3-input:focus-within {
  border-color: rgba(45, 212, 191, 0.4);
  box-shadow:
    inset 0 2px 8px rgba(0, 0, 0, 0.35),
    0 0 0 3px rgba(45, 212, 191, 0.1);
}

.qy-recharge-v3-input__icon {
  flex-shrink: 0;
  width: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
}

.qy-recharge-v3-input__icon svg {
  width: 18px !important;
  height: 18px !important;
}

.qy-recharge-v3-input__field {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 16px 16px 16px 0;
  font-size: 16px;
  color: #f1f5f9;
  outline: none;
}

.qy-recharge-v3-input__field::placeholder {
  color: #64748b;
}

.qy-recharge-v3-pay-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.qy-recharge-v3-pay-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.qy-recharge-v3-actions {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.qy-recharge-v3-reset {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 96px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}

.qy-recharge-v3-reset__ico {
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
}

.qy-recharge-v3-reset:hover {
  color: #ffffff;
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.qy-recharge-v3-submit {
  flex: 1;
  min-height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #22d3ee 0%, #2dd4bf 45%, #14b8a6 100%);
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow:
    0 10px 32px rgba(45, 212, 191, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, opacity 0.2s;
}

.qy-recharge-v3-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow:
    0 14px 40px rgba(45, 212, 191, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}

.qy-recharge-v3-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

[data-theme="light"] .qy-recharge-modal-v3 {
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%);
}

[data-theme="light"] .qy-recharge-v3-head h2 {
  color: #0f172a;
}

[data-theme="light"] .qy-recharge-v3-balance {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-color: #e2e8f0;
}

[data-theme="light"] .qy-recharge-v3-balance__value {
  color: #0f172a;
}

[data-theme="light"] .qy-recharge-v3-card {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .qy-recharge-v3-input {
  background: #fff;
  border-color: #e2e8f0;
}

[data-theme="light"] .qy-recharge-v3-input__field {
  color: #0f172a;
}

@media (max-width: 520px) {
  .qy-recharge-step-amount {
    padding: 22px 18px 20px;
  }

  .qy-recharge-v3-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qy-recharge-v3-balance__value {
    font-size: 1.15rem;
  }

  .qy-recharge-v3-actions {
    flex-direction: column;
  }

  .qy-recharge-v3-reset,
  .qy-recharge-v3-submit {
    width: 100%;
  }
}

.qy-recharge-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 3px solid rgba(34, 211, 238, 0.2);
  border-top-color: var(--fw-cyan);
  border-radius: 50%;
  animation: fwSpin 0.75s linear infinite;
}

.qy-recharge-qr-body {
  text-align: center;
  margin-bottom: 16px;
}

.qy-recharge-qr-frame {
  display: inline-block;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.qy-recharge-poll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--fw-cyan);
}

.qy-recharge-poll-hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--fw-text-muted);
}

.qy-recharge-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.qy-recharge-method {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--fw-border);
  background: rgba(0, 0, 0, 0.12);
  color: var(--fw-text);
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  width: 100%;
}

.qy-recharge-method:hover {
  border-color: rgba(34, 211, 238, 0.3);
  transform: translateX(2px);
}

.qy-recharge-method.active {
  border-color: rgba(34, 211, 238, 0.5);
  background: var(--fw-cyan-dim);
}

.qy-recharge-method-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--fw-border);
  overflow: hidden;
}

.qy-recharge-method-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.qy-recharge-method-icon.alipay,
.qy-recharge-method-icon.wechat {
  background: transparent;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.qy-recharge-method-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
}

.qy-recharge-method-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--fw-cyan);
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Success step */
.qy-recharge-step-success {
  text-align: center;
  padding: 36px 24px 28px;
  position: relative;
}

.qy-recharge-success-burst {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.25) 0%, transparent 70%);
  animation: qyRechargeBurst 0.6s ease-out;
  pointer-events: none;
}

@keyframes qyRechargeBurst {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.qy-recharge-success-check-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.qy-recharge-success-check {
  width: 72px;
  height: 72px;
  stroke: #34d399;
  stroke-width: 2.5;
}

.qy-recharge-success-circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: qyCheckCircle 0.5s ease forwards 0.05s;
}

.qy-recharge-success-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: qyCheckPath 0.35s ease forwards 0.4s;
}

.qy-recharge-success-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #34d399;
}

.qy-recharge-success-sub {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--fw-text-muted);
}

.qy-recharge-success-amt {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 800;
  color: var(--fw-text);
  font-variant-numeric: tabular-nums;
}

.qy-recharge-success-bal {
  margin: 0 0 20px;
  font-size: 0.9rem;
  color: var(--fw-text-muted);
}

.qy-recharge-success-bal strong {
  color: var(--fw-cyan);
  font-weight: 700;
}

.qy-recharge-success-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.qy-recharge-success-progress-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #34d399, #22d3ee);
  transition: width 0.04s linear;
}

.qy-recharge-success-hint {
  margin: 0 0 18px;
  font-size: 0.8rem;
  color: var(--fw-text-muted);
}

/* Error step */
.qy-recharge-step-error {
  text-align: center;
  padding: 40px 24px 24px;
}

.qy-recharge-error-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.15);
  border: 2px solid rgba(248, 113, 113, 0.4);
  color: #f87171;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qy-recharge-step-error h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.qy-recharge-error-msg {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--fw-text-muted);
  line-height: 1.5;
}

.qy-recharge-fade-enter-active,
.qy-recharge-fade-leave-active {
  transition: opacity 0.25s ease;
}

.qy-recharge-fade-enter-from,
.qy-recharge-fade-leave-to {
  opacity: 0;
}

.qy-recharge-slide-enter-active,
.qy-recharge-slide-leave-active {
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.qy-recharge-slide-enter-from {
  opacity: 0;
  transform: translateX(12px);
}

.qy-recharge-slide-leave-to {
  opacity: 0;
  transform: translateX(-12px);
}

@media (max-width: 480px) {
  .qy-recharge-overlay { padding: 0; align-items: flex-end; }
  .qy-recharge-modal-v2 {
    max-width: 100%;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
  }
  .qy-recharge-checkout-hint {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100% - 32px);
    white-space: nowrap;
  }
  .qy-recharge-close {
    top: max(14px, env(safe-area-inset-top, 0px));
    right: max(14px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    font-size: 26px;
  }
  .qy-recharge-v3-head {
    padding-right: 52px;
  }
  .qy-recharge-presets { grid-template-columns: repeat(2, 1fr); }
  .qy-recharge-step { padding: 24px 18px 20px; padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
  .qy-recharge-footer { flex-direction: column; }
  .qy-recharge-footer .qy-btn { width: 100%; }
}

/* ===== Smart Popup ===== */
.qy-smart-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 11, 24, 0.72);
  backdrop-filter: blur(8px);
}

.qy-smart-popup {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 640px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 16, 32, 0.99) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .qy-smart-popup {
  background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.qy-smart-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--fw-text-muted, #94a3b8);
  font-size: 20px;
  cursor: pointer;
}

.qy-smart-popup-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 12px;
}

.qy-smart-popup-badge.welcome { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.qy-smart-popup-badge.warn { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.qy-smart-popup-badge.danger { background: rgba(248, 113, 113, 0.15); color: #f87171; }
.qy-smart-popup-badge.festival { background: rgba(168, 85, 247, 0.15); color: #c084fc; }

.qy-smart-popup-img {
  width: 100%;
  max-height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.qy-smart-popup-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
}

.qy-smart-popup-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--fw-text-muted, #94a3b8);
  margin-bottom: 16px;
}

.qy-smart-popup-body p { margin: 0 0 8px; }

.qy-smart-popup-coupon {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px dashed rgba(52, 211, 153, 0.35);
  cursor: pointer;
}

.qy-smart-popup-coupon strong {
  font-size: 18px;
  font-weight: 800;
  color: #34d399;
  letter-spacing: 0.05em;
}

.qy-smart-popup-coupon small { margin-left: auto; font-size: 11px; color: var(--fw-text-muted); }

.qy-smart-popup-countdown {
  text-align: center;
  padding: 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.qy-smart-popup-countdown-label {
  display: block;
  font-size: 11px;
  color: var(--fw-text-muted);
  margin-bottom: 4px;
}

.qy-smart-popup-countdown strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: #c084fc;
  font-variant-numeric: tabular-nums;
}

.qy-smart-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qy-smart-popup-actions .qy-btn { min-height: 46px; font-weight: 700; }

.qy-smart-popup-fade-enter-active,
.qy-smart-popup-fade-leave-active { transition: opacity 0.25s ease; }
.qy-smart-popup-fade-enter-from,
.qy-smart-popup-fade-leave-to { opacity: 0; }

@media (max-width: 480px) {
  .qy-smart-popup-overlay { padding: 0; align-items: flex-end; }
  .qy-smart-popup {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .qy-sp-premium {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
  }
  .qy-sp-foot {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===== Premium Smart Popup (楂樼寮圭獥妯℃澘) ===== */
.qy-sp-premium {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.15);
  animation: qy-sp-pop-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes qy-sp-pop-in {
  from { opacity: 0; transform: scale(0.92) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.qy-sp-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(44, 44, 44, 0.08);
  color: #666;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}
.qy-sp-close:hover { background: rgba(44, 44, 44, 0.14); }

.qy-sp-top {
  position: relative;
  z-index: 1;
  padding: 32px 24px 20px;
  background: linear-gradient(180deg, #FFF9F0 0%, #FFF5E6 55%, #FFEFD5 100%);
  text-align: center;
  color: #2C2C2C;
  isolation: isolate;
}

.qy-sp-subtitle-card {
  position: relative;
  z-index: 3;
  margin: 0 auto 14px;
  max-width: 320px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 119, 6, 0.28);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.12);
}

.qy-sp-premium--renewal .qy-sp-subtitle-card {
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.98), rgba(255, 237, 213, 0.95));
  border-color: rgba(217, 119, 6, 0.35);
  animation: qySpSubtitleGlow 2.8s ease-in-out infinite;
}

@keyframes qySpSubtitleGlow {
  0%, 100% { box-shadow: 0 6px 20px rgba(217, 119, 6, 0.12); }
  50% { box-shadow: 0 8px 28px rgba(217, 119, 6, 0.22); }
}

.qy-sp-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
  color: #92400e;
  position: relative;
  z-index: 1;
}
.qy-sp-premium--domain .qy-sp-top {
  background: linear-gradient(180deg, #F0F7FF 0%, #E8F2FF 60%, #DCEBFF 100%);
}
.qy-sp-premium--promo .qy-sp-top {
  background: linear-gradient(180deg, #FFF9F0 0%, #FFF5E6 50%, #FFECD2 100%);
}

.qy-sp-title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #1a1a1a;
}

.qy-sp-premium--renewal .qy-sp-top {
  background: linear-gradient(180deg, #FFF9F0 0%, #FFF0DC 60%, #FFE8C8 100%);
}

.qy-sp-premium--domain .qy-sp-top {
  background: linear-gradient(180deg, #F0F7FF 0%, #E8F2FF 60%, #DCEBFF 100%);
}

.qy-sp-premium--promo .qy-sp-top {
  background: linear-gradient(180deg, #FFF9F0 0%, #FFF5E6 50%, #FFECD2 100%);
}

.qy-sp-illus {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  margin: 0 auto 16px;
}

.qy-sp-illus-svg {
  width: 180px;
  height: auto;
  max-height: 130px;
}

.qy-sp-illus-img {
  max-width: 200px;
  max-height: 130px;
  object-fit: contain;
}

.qy-sp-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 10px;
  max-width: 300px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 218, 185, 0.6);
  box-shadow: 0 4px 16px rgba(255, 180, 100, 0.12);
  cursor: default;
}

.qy-sp-premium--domain .qy-sp-highlight { cursor: pointer; }
.qy-sp-premium--promo .qy-sp-highlight:has(.qy-sp-highlight-val) { cursor: pointer; }

.qy-sp-highlight-val {
  font-size: 1.5rem;
  font-weight: 900;
  color: #E85D04;
  letter-spacing: -0.02em;
  line-height: 1.1;
  word-break: break-all;
}

.qy-sp-premium--domain .qy-sp-highlight-val {
  font-size: 1rem;
  color: #2563EB;
}

.qy-sp-premium--renewal .qy-sp-highlight-val {
  color: #D97706;
}

.qy-sp-highlight-lbl {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #888;
  text-align: right;
  line-height: 1.4;
  max-width: 42%;
}

.qy-sp-urgency {
  margin: 0 0 12px;
  font-size: 12px;
  color: #999;
  line-height: 1.5;
}

.qy-sp-body {
  font-size: 13px;
  line-height: 1.65;
  color: #666;
  text-align: left;
  margin-bottom: 12px;
}
.qy-sp-body p { margin: 0 0 6px; }

.qy-sp-countdown {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  margin-top: 4px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(232, 93, 4, 0.25);
}

.qy-sp-countdown-lbl {
  font-size: 11px;
  color: #999;
  font-weight: 600;
}

.qy-sp-countdown strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: #E85D04;
  font-variant-numeric: tabular-nums;
}

.qy-sp-foot {
  padding: 20px 24px 24px;
  background: #2C2C2C;
  text-align: center;
}

.qy-sp-cta {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(180deg, #FFE8C8 0%, #FFDAB9 100%);
  color: #2C2C2C;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}
.qy-sp-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.qy-sp-cta:active { transform: translateY(0); }

.qy-sp-dismiss {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  cursor: pointer;
}
.qy-sp-dismiss:hover { color: rgba(255, 255, 255, 0.85); }

/* ===================================================================
   QieYun Plan Premium v3.59.0 — embedded in fw-design.css
   Works with OLD dashboard (v3.51.x) + OLD fw-plan-page-v4 HTML
   =================================================================== */

.fw-layout .qy-main:has(.fw-plan-page-v4),
.fw-layout .qy-main:has(.qy-plan-premium),
.fw-layout .qy-main:has(.qp-page),
.qy-dashboard-layout .qy-main:has(.fw-plan-page-v4),
.qy-dashboard-layout .qy-main:has(.qp-page) {
  background: #0a0a0a !important;
}

html:not([data-theme="light"]) .qy-dashboard-layout.fw-layout:has(.qp-page),
html:not([data-theme="light"]) .fw-layout.qy-dashboard-layout:has(.qp-page) {
  background: #0a0a0a !important;
}

html[data-theme="light"] .fw-layout .qy-main:has(.qp-page),
html[data-theme="light"] .qy-dashboard-layout .qy-main:has(.qp-page),
html[data-theme="light"] .fw-layout .qy-main:has(.fw-plan-page-v4),
html[data-theme="light"] .qy-dashboard-layout .qy-main:has(.fw-plan-page-v4) {
  background: var(--fw-bg) !important;
}

.fw-plan-page-v4,
.fw-plan-page-v4.qy-plan-premium {
  background: #0a0a0a !important;
  gap: 24px !important;
  padding-bottom: 48px !important;
}

html[data-theme="light"] .fw-plan-page-v4,
html[data-theme="light"] .fw-plan-page-v4.qy-plan-premium {
  background: var(--fw-bg) !important;
}

.fw-plan-page-v4 .fw-plan-hero.fw-glass,
.fw-plan-page-v4 .fw-plan-filters.fw-glass,
.fw-plan-page-v4 .fw-plan-loading.fw-glass,
.fw-plan-page-v4 .fw-plan-empty.fw-glass {
  background: #121212 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
}

.fw-plan-page-v4 .fw-section-badge {
  color: #26a69a !important;
  border-left: 3px solid #26a69a !important;
  padding-left: 12px !important;
  background: none !important;
}

.fw-plan-page-v4 .fw-plan-hero h1 {
  color: #fff !important;
  font-size: 28px !important;
  font-weight: 700 !important;
}

.fw-plan-page-v4 .fw-plan-current,
.fw-plan-page-v4 .fw-plan-balance {
  background: #0a0a0a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
}

html[data-theme="light"] .fw-plan-page-v4 .fw-plan-current,
html[data-theme="light"] .fw-plan-page-v4 .fw-plan-balance {
  background: var(--fw-bg-2) !important;
  border-color: var(--fw-border) !important;
}

.fw-plan-page-v4 .fw-plan-current strong,
.fw-plan-page-v4 .fw-plan-balance strong {
  color: #26a69a !important;
}

.fw-plan-page-v4 .fw-plan-filters button.active {
  background: #26a69a !important;
  color: #fff !important;
  border-color: #26a69a !important;
  box-shadow: 0 4px 16px rgba(38, 166, 154, 0.35) !important;
}

.fw-plan-page-v4 .fw-plan-card-v4::before,
.fw-plan-page-v4 .fw-plan-card-v4::after,
.fw-plan-page-v4 .fw-plan-card-v4.qy-glass-panel::before,
.fw-plan-page-v4 .fw-plan-card-v4.qy-glass-panel::after,
.fw-plan-page-v4 .qy-glass-panel.fw-plan-card-v4::before,
.fw-plan-page-v4 .qy-glass-panel.fw-plan-card-v4::after,
.fw-plan-page-v4 .fw-plan-ripple,
.qy-plan-premium .fw-plan-card-v4::before,
.qy-plan-premium .fw-plan-card-v4::after {
  display: none !important;
  content: none !important;
  animation: none !important;
}

.fw-plan-page-v4 .fw-plan-card-v4.fw-plan-glass,
.qy-plan-premium .fw-plan-card-v4.fw-plan-glass {
  background: #1a1a1a !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: none !important;
}

.fw-plan-page-v4 .fw-plan-card-v4.featured.fw-plan-glass,
.qy-plan-premium .fw-plan-card-v4.featured {
  background: linear-gradient(165deg, rgba(38, 166, 154, 0.22) 0%, #1a1a1a 45%, #1a1a1a 100%) !important;
  border: 2px solid #26a69a !important;
  box-shadow: 0 0 32px rgba(38, 166, 154, 0.18) !important;
}

.fw-plan-page-v4 .fw-plan-card-v4.current {
  border-color: rgba(74, 222, 128, 0.45) !important;
}

.fw-plan-page-v4 .fw-plan-ribbon {
  background: #26a69a !important;
  color: #042f2e !important;
  border-radius: 6px !important;
}

.fw-plan-page-v4 .fw-plan-ribbon.current {
  background: rgba(74, 222, 128, 0.15) !important;
  color: #4ade80 !important;
  border: 1px solid rgba(74, 222, 128, 0.35) !important;
}

.fw-plan-page-v4 .fw-plan-amount {
  font-size: 46px !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.04em !important;
}

.fw-plan-page-v4 .fw-plan-card-v4.featured .fw-plan-amount {
  text-shadow: 0 0 24px rgba(38, 166, 154, 0.35) !important;
}

.fw-plan-page-v4 .fw-plan-feats-v4 {
  border-top: none !important;
  border-bottom: none !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4px 16px !important;
}

.fw-plan-page-v4 .fw-plan-feats-v4 li {
  color: #a3a3a3 !important;
  padding-left: 26px !important;
}

.fw-plan-page-v4 .fw-plan-feats-v4 li::before {
  content: "✓" !important;
  left: 0 !important;
  top: 6px !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  color: #4ade80 !important;
  background: rgba(74, 222, 128, 0.12) !important;
  border: 1px solid rgba(74, 222, 128, 0.3) !important;
}

.fw-plan-page-v4 .fw-plan-card-foot .fw-btn-primary,
.qy-plan-premium .fw-plan-card-foot .fw-btn-primary {
  background: linear-gradient(180deg, #2ec4b6 0%, #26a69a 100%) !important;
  color: #fff !important;
  border: none !important;
  min-height: 48px !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  box-shadow: 0 4px 20px rgba(38, 166, 154, 0.4) !important;
}

.fw-plan-page-v4 .fw-plan-card-foot .fw-btn-primary:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-2px) !important;
}

.fw-plan-page-v4 .fw-plan-card-foot .fw-btn-ghost {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #a3a3a3 !important;
  min-height: 46px !important;
  border-radius: 12px !important;
}

.fw-plan-page-v4 .fw-period-tag {
  background: rgba(38, 166, 154, 0.14) !important;
  color: #26a69a !important;
  border-color: rgba(38, 166, 154, 0.25) !important;
}

/* qp-plan.css 已独立为 assets/qp-plan.css，由套餐页动态加载，避免污染登录页 v3.60.1 */

/* ===== v3.61.2 — 弹窗 / 节点 / 订单修复 ===== */

.qy-modal-overlay .qy-btn,
.qy-recharge-overlay .qy-btn,
.qy-gift-overlay .qy-btn {
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}

.qy-modal-overlay .qy-btn.ghost,
.qy-recharge-overlay .qy-btn.ghost,
.qy-gift-overlay .qy-btn.ghost {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid var(--fw-border) !important;
  color: var(--fw-text) !important;
}

.qy-modal-overlay .qy-btn.ghost:hover:not(:disabled),
.qy-recharge-overlay .qy-btn.ghost:hover:not(:disabled),
.qy-gift-overlay .qy-btn.ghost:hover:not(:disabled) {
  border-color: var(--fw-cyan) !important;
  color: var(--fw-cyan) !important;
}

[data-theme="light"] .qy-modal-overlay .qy-btn.ghost,
[data-theme="light"] .qy-recharge-overlay .qy-btn.ghost,
[data-theme="light"] .qy-gift-overlay .qy-btn.ghost {
  background: #fff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

.qy-modal-overlay .qy-btn.gradient,
.qy-recharge-overlay .qy-btn.gradient,
.qy-gift-overlay .qy-btn.gradient {
  border: none !important;
  color: #fff !important;
  background: var(--fw-gradient-btn) !important;
}

.qy-gift-modal-v2 .qy-gift-input-wrap {
  display: flex;
  align-items: center;
  border-radius: 12px;
  border: 1px solid var(--fw-border);
  background: rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-bottom: 16px;
}

[data-theme="light"] .qy-gift-modal-v2 .qy-gift-input-wrap {
  background: #fff;
}

.qy-gift-modal-v2 .qy-gift-input {
  flex: 1;
  width: 100%;
  border: none !important;
  background: transparent !important;
  color: var(--fw-text) !important;
  padding: 14px 16px;
  font-size: 15px;
  outline: none;
  box-shadow: none !important;
}

.qy-gift-modal-v2 .qy-gift-input::placeholder {
  color: var(--fw-text-muted);
  opacity: 0.85;
}

.qy-recharge-modal-v2 .qy-recharge-field-label,
.qy-recharge-modal-v2 .qy-recharge-balance-label,
.qy-recharge-modal-v2 .qy-recharge-trust,
.qy-gift-modal-v2 .qy-recharge-header p {
  color: var(--fw-text-muted) !important;
}

.qy-gift-overlay {
  z-index: 10000;
  background: rgba(6, 11, 24, 0.75);
  backdrop-filter: blur(10px);
}

.qy-gift-modal-v2 {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  overflow: hidden;
}

.qy-gift-step {
  padding: 28px 24px 24px;
}

.qy-gift-preview {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.qy-gift-preview strong { color: var(--fw-text); }
.qy-gift-preview .sub { color: var(--fw-text-muted); font-size: 13px; margin-top: 4px; }

.qy-gift-overlay .qy-recharge-footer { flex-wrap: wrap; }
.qy-gift-overlay .qy-recharge-footer .qy-btn { flex: 1; min-width: 0; min-height: 44px; }

.fw-server-search {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.fw-server-search-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
}

.fw-server-notices {
  padding: 14px 16px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fw-server-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.18);
}

.fw-server-notice-ico { flex-shrink: 0; font-size: 14px; line-height: 1.4; }

.fw-server-notice-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fw-text);
  word-break: break-word;
}

.fw-server-page .fw-server-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  width: 100%;
}

.fw-server-page .fw-server-card {
  width: 100%;
  min-width: 0;
  border-radius: 16px;
}

.fw-server-page .fw-server-card h3 {
  color: var(--fw-text);
  line-height: 1.4;
  word-break: break-word;
}

@media (max-width: 768px) {
  .fw-server-page .fw-server-grid { grid-template-columns: 1fr !important; }
  .fw-server-hero { padding: 20px 18px; }
  .qy-gift-overlay .qy-recharge-footer { flex-direction: column; }
  .qy-gift-overlay .qy-recharge-footer .qy-btn { width: 100%; }
}

.fw-order-card-top .fw-status-pill,
.fw-order-card-top .type-tag { flex-shrink: 0; }

/* ===== v3.63.2 Nav utils — 参考图线型图标 + 下拉菜单 ===== */
.fw-navbar-v3 .fw-navbar-actions.fw-nav-utils {
  gap: 14px !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

.fw-navbar-v3 .qy-navbar-inner {
  align-items: center !important;
}

.fw-nav-util-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--fw-text) !important;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}

html:not([data-theme="light"]) .fw-nav-util-btn {
  color: #e2e8f0 !important;
}

html[data-theme="light"] .fw-nav-util-btn {
  color: #475569 !important;
}

.fw-nav-util-btn:hover {
  color: var(--fw-cyan) !important;
  background: var(--fw-glass-hover) !important;
  transform: none !important;
  box-shadow: none !important;
}

.fw-nav-util-btn.fw-lang-trigger {
  min-width: 36px !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}

.fw-nav-util-btn.fw-theme-toggle-btn {
  min-width: 36px !important;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  flex-shrink: 0 !important;
}

.fw-theme-switcher-slot,
.fw-lang-switcher {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  flex: 0 0 36px !important;
  flex-shrink: 0 !important;
}

.fw-nav-util-btn__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  line-height: 0;
  flex-shrink: 0;
}

.fw-nav-util-btn__icon--theme,
.fw-nav-util-btn__icon--theme svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block !important;
}

.fw-nav-util-btn__icon--lang,
.fw-nav-util-btn__icon--lang svg {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  display: block !important;
}

.fw-lang-switcher.is-open .fw-nav-util-btn.fw-lang-trigger {
  color: #5eead4 !important;
  background: rgba(45, 212, 191, 0.14) !important;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.28) !important;
}

html[data-theme="light"] .fw-lang-switcher.is-open .fw-nav-util-btn.fw-lang-trigger {
  color: #0d9488 !important;
  background: rgba(20, 184, 166, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(20, 184, 166, 0.22) !important;
}

.fw-nav-util-btn__icon svg,
.fw-nav-util-btn svg {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  display: block !important;
}

.qy-pg-navbar.fw-navbar-v3 .qy-navbar-inner {
  display: flex !important;
  grid-template-columns: unset !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
}

.fw-nav-user-btn {
  overflow: hidden !important;
  padding: 0 !important;
}

.fw-nav-user-btn__photo {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* 深色顶栏 — 覆盖 qy-penguin 浅色默认值 */
html:not([data-theme="light"]) .qy-pg-navbar.qy-pg-navbar {
  background: var(--fw-nav-bg) !important;
  border-bottom-color: var(--fw-border) !important;
  box-shadow: none !important;
}

html:not([data-theme="light"]) .qy-pg-navbar .qy-brand-name {
  color: var(--fw-text) !important;
}

html:not([data-theme="light"]) .qy-pg-navbar .qy-nav-item.fw-nav-pill {
  color: var(--fw-text-muted) !important;
}

html:not([data-theme="light"]) .qy-pg-navbar .qy-nav-item.fw-nav-pill:hover {
  color: var(--fw-text) !important;
  background: var(--fw-glass-hover) !important;
}

html:not([data-theme="light"]) .qy-pg-navbar .qy-nav-item.fw-nav-pill.active {
  background: rgba(34, 197, 94, 0.14) !important;
  color: #22c55e !important;
  border: 1px solid rgba(34, 197, 94, 0.28) !important;
}

html:not([data-theme="light"]) .qy-pg-navbar .qy-nav-item.fw-nav-pill.active .qy-nav-icon svg {
  stroke: #22c55e !important;
}

/* 导航 pill 垂直居中对齐 */
.qy-pg-navbar .qy-nav-item.fw-nav-pill,
.fw-navbar-v3 .fw-nav-pill {
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  line-height: 1.2 !important;
}

.qy-pg-navbar .qy-nav-item.fw-nav-pill .qy-nav-icon,
.fw-navbar-v3 .fw-nav-pill .qy-nav-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.qy-pg-navbar .qy-nav-item.fw-nav-pill .qy-nav-label,
.fw-navbar-v3 .fw-nav-pill .qy-nav-label {
  line-height: 1.2 !important;
}

.qy-nav-dropdown-ref {
  min-width: 168px;
  padding: 8px 0;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  z-index: 120050;
}

html[data-theme="light"] .qy-nav-dropdown-ref {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.fw-lang-menu--ref {
  display: flex;
  flex-direction: column;
}

.fw-lang-menu--ref .fw-lang-option {
  display: block;
  width: 100%;
  padding: 13px 22px;
  border: none;
  background: transparent;
  color: var(--fw-text);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.fw-lang-menu--ref .fw-lang-option:hover {
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .fw-lang-menu--ref .fw-lang-option:hover {
  background: rgba(15, 23, 42, 0.04);
}

.fw-lang-menu--ref .fw-lang-option.active {
  color: #26a69a;
  font-weight: 600;
  background: transparent;
}

.qy-user-dropdown-ref .qy-user-dropdown-item {
  display: block !important;
  width: 100%;
  padding: 13px 22px !important;
  border: none !important;
  background: transparent !important;
  color: var(--fw-text) !important;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  gap: 0 !important;
}

.qy-user-dropdown-ref .qy-user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--fw-text) !important;
}

html[data-theme="light"] .qy-user-dropdown-ref .qy-user-dropdown-item:hover {
  background: rgba(15, 23, 42, 0.04) !important;
}

.qy-user-dropdown-ref .qy-user-dropdown-item--logout {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  margin-top: 4px;
  padding-top: 14px !important;
  color: var(--fw-text-muted) !important;
}

html[data-theme="light"] .qy-user-dropdown-ref .qy-user-dropdown-item--logout {
  border-top-color: rgba(15, 23, 42, 0.08) !important;
}

.qy-user-dropdown-ref .qy-user-dropdown-item--logout:hover {
  color: var(--fw-danger) !important;
  background: rgba(248, 113, 113, 0.08) !important;
}

.qy-user-menu-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
