/**
 * 飞网 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: #0F172A;
  --fw-bg-2: #1E293B;
  --fw-surface: rgba(30, 41, 59, 0.75);
  --fw-glass: rgba(255, 255, 255, 0.05);
  --fw-glass-hover: rgba(255, 255, 255, 0.08);
  --fw-border: rgba(148, 163, 184, 0.12);
  --fw-border-hover: rgba(34, 211, 238, 0.4);
  --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 8px 32px rgba(0, 0, 0, 0.28);
  --fw-glow: 0 0 40px rgba(34, 211, 238, 0.1);
  --fw-nav-bg: rgba(15, 23, 42, 0.82);
}

[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: #13111C;
  --fw-bg-2: #1E1B2E;
  --fw-surface: rgba(30, 27, 46, 0.78);
  --fw-glass: rgba(168, 85, 247, 0.06);
  --fw-glass-hover: rgba(168, 85, 247, 0.1);
  --fw-border: rgba(168, 85, 247, 0.14);
  --fw-border-hover: rgba(168, 85, 247, 0.45);
  --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.12);
  --fw-nav-bg: rgba(19, 17, 28, 0.88);
}

[data-theme="cyan"] {
  --fw-bg: #0C1929;
  --fw-bg-2: #152238;
  --fw-surface: rgba(21, 34, 56, 0.78);
  --fw-glass: rgba(34, 211, 238, 0.05);
  --fw-glass-hover: rgba(34, 211, 238, 0.09);
  --fw-border: rgba(34, 211, 238, 0.12);
  --fw-border-hover: rgba(34, 211, 238, 0.5);
  --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.14);
  --fw-nav-bg: rgba(12, 25, 41, 0.88);
}

/* Legacy dark → slate */
html[data-theme="dark"] {
  --fw-bg: #0F172A;
  --fw-bg-2: #1E293B;
}

/* ===== 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: column !important; gap: 4px !important;
  padding: 8px 12px !important; border-radius: 12px !important;
  border: 1px solid transparent; font-size: 12px !important;
  color: var(--fw-text-muted) !important; transition: all 0.22s;
  min-width: 64px;
}
.fw-nav-pill .qy-nav-icon { font-size: 18px !important; }
.fw-nav-pill .qy-nav-label { font-size: 11px !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-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: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; }
.fw-theme-icon.is-sun { background: linear-gradient(135deg, #FBBF24, #F59E0B); box-shadow: 0 0 6px rgba(251,191,36,0.5); }
.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; }

/* 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 */
.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; }
}

/* ===== 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: 22px; font-weight: 800; text-align: center; margin-bottom: 4px; letter-spacing: 0.02em; }
.fw-auth-card h2 { font-size: 14px; font-weight: 500; text-align: center; color: var(--fw-text-muted); margin-bottom: 8px; }
.fw-auth-card .subtitle { text-align: center; font-size: 13px; color: var(--fw-text-muted); margin-bottom: 28px; line-height: 1.6; }
.fw-auth-logo { width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 16px; display: block; object-fit: contain; background: #fff; padding: 4px; }
.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; }
.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 .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; }
  .fw-order-pay-grid { grid-template-columns: 1fr; }
  .fw-order-pay-hero { flex-direction: column; }
  .fw-pay-method-grid { grid-template-columns: 1fr 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: 360px 1fr; gap: 24px; align-items: start;
}

.fw-order-summary, .fw-order-pay-panel { padding: 28px; }
.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 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; }
  .fw-order-card { flex-direction: column; align-items: stretch; }
  .fw-order-card-side { align-items: stretch; }
  .fw-order-amount { text-align: left; }
  .fw-order-card-actions { justify-content: flex-start; }
  .fw-order-card-actions .fw-btn { 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); }

@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 ===== */
.has-bottom-nav .qy-main-with-bottom-nav {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 768px) {
  .fw-navbar .qy-nav { display: none !important; }
  .fw-navbar .qy-menu-toggle { display: none !important; }
  .qy-main { padding: 12px !important; }
  .qy-chat-wrap { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

.qy-unpaid-global { margin-bottom: 12px; }

.qy-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  background: #fff; border-top: 1px solid rgba(15,23,42,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 24px rgba(15,23,42,0.06);
}
@media (max-width: 768px) {
  .qy-bottom-nav.mobile-only { display: block !important; }
}
[data-theme="slate"] .qy-bottom-nav,
[data-theme="purple"] .qy-bottom-nav,
[data-theme="cyan"] .qy-bottom-nav {
  background: rgba(15,23,42,0.98); border-color: rgba(148,163,184,0.15);
}
.qy-bottom-nav-scroll {
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
  padding: 6px 4px 8px;
}
.qy-bottom-nav-scroll::-webkit-scrollbar { display: none; }
.qy-bottom-nav-item {
  flex: 0 0 auto; min-width: 72px; display: flex; flex-direction: column;
  align-items: center; gap: 4px; padding: 6px 8px; border: none; background: transparent;
  color: var(--fw-text-muted); font-size: 10px; cursor: pointer;
}
.qy-bottom-nav-item.active { color: #3B82F6; }
.qy-bottom-nav-icon { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; }
.qy-bottom-nav-icon svg { width: 20px; height: 20px; }
.qy-bottom-nav-label { white-space: nowrap; line-height: 1.2; }

.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: 8px 18px; border: none; border-radius: 999px; background: #ef4444; color: #fff;
  font-weight: 600; font-size: 13px; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s, transform 0.15s;
}
.qy-ref-unpaid-btn:hover, .qy-m-unpaid-btn:hover { background: #dc2626; transform: translateY(-1px); }

/* 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,
  .qy-unpaid-global.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 compact */
.qy-bottom-nav-item { min-width: 64px; padding: 5px 6px; }
.qy-bottom-nav-label { font-size: 9px; }
.qy-bottom-nav-emoji { font-size: 18px; line-height: 1; }
.has-bottom-nav .qy-main-with-bottom-nav {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}
.qy-bottom-nav-scroll { padding: 4px 2px 6px; }
@media (max-width: 768px) {
  .qy-chat-wrap { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ===== 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: 11px; padding: 11px 13px; font-weight: 550; color: var(--qy-text-secondary);
  transition: all 0.22s var(--qy-ease);
}
.qy-ref-sub-btn:hover { border-color: rgba(37,99,235,0.3); transform: translateY(-1px); }
.qy-ref-sub-icon, .qy-m-sub-icon {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; overflow: hidden;
  background: #fff; border: 1px solid var(--qy-border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.qy-ref-sub-icon img, .qy-m-sub-icon img { width: 100%; height: 100%; object-fit: cover; }
.qy-m-sub-btn { min-height: 84px; gap: 7px; font-weight: 550; transition: all 0.2s var(--qy-ease); }
.qy-m-sub-btn.primary { background: var(--qy-accent-soft); border-color: rgba(13,148,136,0.25); color: #0d9488; }
.qy-m-sub-btn img { width: auto; height: auto; border: none; box-shadow: none; }

/* 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-dashboard-layout.fw-layout .qy-main { padding: 14px 16px 20px; }
  .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,
.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 — icon grid like original */
.qy-sub-grid-ref {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px !important;
}
.qy-sub-grid-ref .qy-ref-sub-btn,
.qy-sub-grid-ref .qy-m-sub-btn {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  gap: 8px !important;
  padding: 12px 8px !important;
  background: #fafbfd !important;
  border: 1px solid var(--qy-border) !important;
  border-radius: var(--qy-radius-sm) !important;
  min-height: 88px !important;
}
.qy-sub-grid-ref .qy-ref-sub-btn:hover,
.qy-sub-grid-ref .qy-m-sub-btn:active {
  background: #fff !important;
  border-color: rgba(43, 125, 233, 0.25) !important;
  transform: translateY(-1px);
  box-shadow: var(--qy-shadow-soft) !important;
}
.qy-sub-grid-ref .qy-ref-sub-icon,
.qy-sub-grid-ref .qy-m-sub-icon {
  width: 40px !important; height: 40px !important;
  border-radius: 10px !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(30, 60, 120, 0.08) !important;
}
.qy-sub-grid-ref .qy-sub-name,
.qy-sub-grid-ref .qy-m-sub-btn > span:last-child {
  font-size: 11px !important; font-weight: 550 !important;
  color: var(--qy-muted) !important;
  white-space: normal !important;
  line-height: 1.35 !important;
  word-break: break-all;
}

/* 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 — warm gradient */
.qy-ref-invite, .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 { padding: 26px 28px !important; min-height: 168px !important; }
.qy-ref-invite-body h3 { font-size: 18px !important; font-weight: 800 !important; }
.qy-ref-invite-rate {
  background: rgba(255,255,255,0.35) !important;
  font-size: 13px !important; padding: 6px 16px !important;
}
.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-dashboard-layout.fw-layout .qy-main { padding: 12px 14px 18px !important; }
  .qy-sub-grid-ref { grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; }
  .qy-sub-grid-ref .qy-ref-sub-icon,
  .qy-sub-grid-ref .qy-m-sub-icon { width: 36px !important; height: 36px !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-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); }

@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-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 inner buttons — no hard border */
.qy-sub-grid-ref .qy-ref-sub-btn {
  border: none !important;
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(43, 125, 233, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.qy-sub-grid-ref .qy-ref-sub-btn:hover {
  background: rgba(255, 255, 255, 0.85) !important;
  box-shadow: 0 4px 16px rgba(43, 125, 233, 0.12), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.qy-sub-grid-ref .qy-ref-sub-icon {
  border: none !important;
  box-shadow: 0 3px 10px rgba(43, 125, 233, 0.1) !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 */
.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-grid-ref {
  gap: 12px !important;
}

.qy-sub-grid-ref .qy-ref-sub-btn {
  min-height: 92px !important;
  padding: 14px 10px !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 — fixed height, scroll features, sticky buy, ripple + light strip */
.fw-plan-grid-v4 {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 22px !important;
  align-items: start !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;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(240, 248, 255, 0.62) 45%,
    rgba(255, 255, 255, 0.82) 100%
  ) !important;
  background-size: 220% 220% !important;
  animation: qyGlassBgFlow 16s ease infinite !important;
  backdrop-filter: blur(20px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.5) !important;
  box-shadow: 0 10px 36px rgba(43, 125, 233, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.fw-plan-card-v4.fw-plan-glass::after {
  padding: 2px;
  animation: qyLightStrip 4s linear infinite;
}

.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;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.92) 70%, transparent);
  border-top: 1px solid rgba(43, 125, 233, 0.06);
}

.fw-plan-feats-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-top: 4px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(43, 125, 233, 0.25) transparent;
}

.fw-plan-feats-scroll::-webkit-scrollbar { width: 4px; }
.fw-plan-feats-scroll::-webkit-scrollbar-thumb {
  background: rgba(43, 125, 233, 0.25);
  border-radius: 4px;
}

.fw-plan-feats-v4 {
  flex: none !important;
  margin: 0 !important;
  padding: 12px 0 !important;
  border-top: 1px solid rgba(43, 125, 233, 0.08) !important;
  border-bottom: none !important;
}

.fw-plan-card-top h3 {
  font-size: 16px !important;
  line-height: 1.4;
  margin-bottom: 10px !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fw-plan-amount { font-size: 32px !important; }

[data-theme="slate"] .fw-plan-card-v4.fw-plan-glass,
[data-theme="purple"] .fw-plan-card-v4.fw-plan-glass,
[data-theme="cyan"] .fw-plan-card-v4.fw-plan-glass {
  background: linear-gradient(
    155deg,
    rgba(30, 41, 59, 0.78) 0%,
    rgba(15, 23, 42, 0.55) 50%,
    rgba(30, 41, 59, 0.72) 100%
  ) !important;
}

[data-theme="slate"] .fw-plan-card-foot,
[data-theme="purple"] .fw-plan-card-foot,
[data-theme="cyan"] .fw-plan-card-foot {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 70%, transparent);
}

/* Server — unified online status */
.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;
}

@media (max-width: 768px) {
  .fw-plan-card-v4.fw-plan-glass {
    height: auto !important;
    max-height: none !important;
    min-height: 420px;
  }
}
