/* Ideas — design system: Cloudflare density + Stripe polish + Apple patterns, Element Plus themed. */
:root {
  --cf-orange: #f6821f;
  --cf-orange-deep: #d96a0b;
  --stripe: #635bff;
  --green: #12b76a; --green-bg: #ecfdf3;
  --amber: #f79009; --amber-bg: #fffaeb;
  --red: #f04438; --red-bg: #fef3f2;
  --blue: #175cd3; --blue-bg: #eff4ff;
  --bg: #f5f6f8;
  --card: #ffffff;
  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --line: #e8ebf0;
  --nav-blur: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(16, 24, 40, 0.18);
  --shadow-lg: 0 24px 64px -16px rgba(16, 24, 40, 0.28);
  --r: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, sans-serif;
  --chart-grid: rgba(16, 24, 40, 0.07);
  --ring-track: #eaecf0;
  --tabbar-h: 76px;
  /* Element Plus theme */
  --el-color-primary: #f6821f;
  --el-color-primary-light-3: #f9a654;
  --el-color-primary-light-5: #fbc183;
  --el-color-primary-light-7: #fddcb8;
  --el-color-primary-light-8: #fee9d1;
  --el-color-primary-light-9: #fef4e8;
  --el-color-primary-dark-2: #d96a0b;
}
[data-theme="dark"] {
  --bg: #0b0e14;
  --card: #141926;
  --ink: #f2f4f7;
  --ink-2: #d0d5dd;
  --ink-3: #98a2b3;
  --line: #232b3a;
  --nav-blur: rgba(11, 14, 20, 0.78);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.7);
  --chart-grid: rgba(255, 255, 255, 0.08);
  --ring-track: #232b3a;
  --green-bg: rgba(18, 183, 106, 0.14);
  --amber-bg: rgba(247, 144, 9, 0.14);
  --red-bg: rgba(240, 68, 56, 0.14);
  --blue-bg: rgba(23, 92, 211, 0.18);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}
#app { min-height: 100vh; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
.ic { vertical-align: -4px; }
.view-pad { height: calc(var(--tabbar-h) + 28px); }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 200; background: #0b0e14; display: flex; align-items: center; justify-content: center; }
.splash-inner { text-align: center; color: #fff; }
.splash-mark { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 26px;
  background: linear-gradient(135deg, #f6821f, #e04a1a); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 16px 48px rgba(246, 130, 31, 0.45); }
.splash-mark .ic { color: #fff; }
.splash-word { font-size: 40px; font-weight: 800; letter-spacing: -1.5px; }
.splash-sub { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: #98a2b3; margin-top: 6px; }

/* ---------- app shell ---------- */
#app-shell { min-height: 100vh; }
.sidebar { display: none; }
.main-col { min-height: 100vh; }
.view-root { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ---------- tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; align-items: stretch; justify-content: space-around;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  background: var(--nav-blur);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; color: var(--ink-3); font-size: 10px; font-weight: 600; padding-top: 4px; border-radius: 12px; }
.tab.active { color: var(--cf-orange); }
.tab-ic { display: flex; }
.fab {
  position: fixed; right: 18px; bottom: calc(var(--tabbar-h) + 22px); z-index: 61;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #f6821f, #e04a1a); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 32px rgba(246, 130, 31, 0.5);
  animation: fab-pulse 3s ease-in-out infinite;
}
@keyframes fab-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.fab:active { transform: scale(0.92); }

/* ---------- shared bits ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 0 16px; flex-wrap: wrap; }
.page-title { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: -1px; }
.page-sub { margin: 6px 0 0; color: var(--ink-3); font-size: 14px; }
.page-head-right { display: flex; align-items: center; gap: 8px; }
.segmented {
  display: inline-flex; background: var(--line); border-radius: 12px; padding: 3px; gap: 2px;
}
[data-theme="dark"] .segmented { background: #1d2433; }
.segmented button { border: 0; background: none; padding: 7px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--ink-3); transition: all 0.25s; white-space: nowrap; }
.segmented button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented button em { font-style: normal; font-size: 11px; color: var(--green); font-weight: 700; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.icon-btn.danger { color: var(--red); }
.link { color: var(--cf-orange); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }
.pill { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.score-badge { font-weight: 800; font-size: 15px; }
.sample-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: var(--blue-bg); color: var(--blue); text-transform: uppercase; letter-spacing: 0.5px; }
.mini-sample { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; color: var(--blue); background: var(--blue-bg); padding: 2px 7px; border-radius: 999px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 8px; }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -0.2px; }
.card-head p { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }
.section { margin: 26px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #f6821f, #e04a1a); color: #fff; font-weight: 700; font-size: 15px;
  padding: 14px 22px; border-radius: 999px; box-shadow: 0 10px 28px rgba(246, 130, 31, 0.4);
  transition: transform 0.15s;
}
.btn-primary:active { transform: scale(0.96); }
.btn-primary.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-primary:disabled { opacity: 0.45; box-shadow: none; }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: #fff; padding: 14px 10px; }
.demo-note { display: flex; align-items: center; gap: 6px; justify-content: center; color: var(--ink-3); font-size: 12.5px; margin: 18px 0 4px; }

/* ---------- HERO ---------- */
.hero { position: relative; margin: 12px -16px 0; overflow: hidden; border-radius: 0 0 28px 28px; color: #fff; }
.mesh { position: absolute; inset: 0; background: linear-gradient(160deg, #131a2e 0%, #1d1440 45%, #3a1420 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; }
.b1 { width: 340px; height: 340px; left: -90px; top: -70px; background: radial-gradient(circle, #f6821f, transparent 70%); animation: drift1 14s ease-in-out infinite alternate; }
.b2 { width: 300px; height: 300px; right: -80px; top: 30px; background: radial-gradient(circle, #635bff, transparent 70%); animation: drift2 18s ease-in-out infinite alternate; }
.b3 { width: 260px; height: 260px; left: 30%; bottom: -120px; background: radial-gradient(circle, #ee46bc, transparent 70%); opacity: 0.5; animation: drift1 22s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(46px, 34px) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-52px, -30px) scale(1.08); } }
.noise { position: absolute; inset: 0; opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E"); }
.hero-inner { position: relative; padding: 64px 22px 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: 2.5px; color: #ffd9ae; margin-bottom: 18px; }
.eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: #f6821f; box-shadow: 0 0 12px #f6821f; animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.4; } }
.hero-h1 { margin: 0; font-size: clamp(38px, 9.5vw, 64px); font-weight: 800; letter-spacing: -2.5px; line-height: 1.02; }
.hero-h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-h1 .line-inner { display: block; }
.hero-h1 em { font-style: normal; background: linear-gradient(100deg, #ffb25e, #f6821f 60%, #ff5f6d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 18px 0 0; font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.78); max-width: 34ch; }
.hero-ctas { display: flex; align-items: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.hstat-num { font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.hstat-label { font-size: 11px; color: rgba(255, 255, 255, 0.6); margin-top: 2px; }
.hero-sample { margin-top: 18px; }
.hero-sample .sample-badge { background: rgba(255, 255, 255, 0.14); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* marquee */
.marquee { overflow: hidden; padding: 18px 0; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; gap: 0; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-item { font-size: 14px; font-weight: 700; color: var(--ink-3); padding: 0 6px; }
.marquee-item i { font-style: normal; color: var(--cf-orange); padding-left: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* home cards */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 12px; margin: 0 -16px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.idea-card { flex: 0 0 272px; scroll-snap-align: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform 0.2s; }
.idea-card:active { transform: scale(0.97); }
.idea-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.idea-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; letter-spacing: -0.3px; }
.idea-card-desc { margin: 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.idea-card-foot { display: flex; justify-content: space-between; margin-top: 12px; font-size: 12px; color: var(--ink-3); }
.idea-cat { font-weight: 700; color: var(--ink-2); }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow-sm); }
.qa span { font-weight: 700; font-size: 15px; }
.qa small { color: var(--ink-3); font-size: 12.5px; }
.qa-ic { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #fef4e8, #fee9d1); color: var(--cf-orange-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
[data-theme="dark"] .qa-ic { background: rgba(246, 130, 31, 0.15); }
.how-card { background: linear-gradient(150deg, #131a2e, #241335); color: #fff; border-radius: 22px; padding: 24px 20px; position: relative; overflow: hidden; }
.how-card h2 { margin: 0 0 16px; font-size: 21px; font-weight: 800; letter-spacing: -0.5px; }
.how-steps { display: flex; flex-direction: column; gap: 14px; }
.how-step { display: flex; gap: 14px; align-items: flex-start; }
.how-n { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: rgba(246, 130, 31, 0.2); border: 1px solid rgba(246, 130, 31, 0.5); color: #ffb25e; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.how-step b { font-size: 15px; }
.how-step p { margin: 3px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.65); }

/* ---------- DASHBOARD ---------- */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; box-shadow: var(--shadow-sm); }
.stat-top { display: flex; justify-content: space-between; align-items: center; }
.stat-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--line); color: var(--ink-2); display: inline-flex; align-items: center; justify-content: center; }
.delta { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.delta.up { color: var(--green); background: var(--green-bg); }
.delta.down { color: var(--red); background: var(--red-bg); }
.stat-val { font-size: 27px; font-weight: 800; letter-spacing: -1px; margin-top: 8px; }
.stat-val small { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.stat-label { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.stat-spark { margin-top: 6px; height: 36px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--green); text-transform: uppercase; letter-spacing: 1px; }
.live-dot i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; }
.chart-mount { width: 100%; }
.chart-svg { display: block; overflow: visible; }
.chart-svg text { font-family: var(--font); }
.chart-tip { position: absolute; transform: translate(-50%, -100%); background: var(--ink); color: #fff; font-size: 12px; padding: 6px 10px; border-radius: 8px; pointer-events: none; white-space: nowrap; transition: opacity 0.15s; z-index: 5; }
.chart-tip b { font-size: 14px; }
.chart-tip span { display: block; opacity: 0.7; font-size: 11px; }
[data-theme="dark"] .chart-tip { background: #fff; color: #101828; }
.dash-2col { display: grid; gap: 0; grid-template-columns: 1fr; }
.health-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.health-row:first-of-type { border-top: 0; }
.health-row b { font-size: 14px; }
.health-row p { margin: 3px 0 0; font-size: 13px; color: var(--ink-3); }
.status-pill { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.status-pill.green { color: var(--green); background: var(--green-bg); }
.status-pill.amber { color: var(--amber); background: var(--amber-bg); }
.status-pill.red { color: var(--red); background: var(--red-bg); }
.top-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.top-row:first-of-type { border-top: 0; }
.top-title { flex: 1; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.score-cell { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.score-bar { width: 44px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; display: inline-block; }
.score-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f6821f, #e04a1a); border-radius: 3px; }

/* ---------- PIPELINE ---------- */
.pipe-tools { margin-bottom: 14px; }
.kb-wrap { margin: 0 -16px; }
.kb-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 14px; scrollbar-width: none; }
.kb-scroll::-webkit-scrollbar { display: none; }
.kb-col { flex: 0 0 272px; scroll-snap-align: start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; min-height: 200px; transition: box-shadow 0.2s, border-color 0.2s; }
.kb-col.dragover { border-color: var(--cf-orange); box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.2); }
.kb-col-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--ink-2); margin-bottom: 10px; }
.kb-dot { width: 9px; height: 9px; border-radius: 50%; }
.kb-count { margin-left: auto; background: var(--card); border: 1px solid var(--line); border-radius: 999px; font-size: 11px; padding: 2px 8px; color: var(--ink-3); }
.kb-cards { display: flex; flex-direction: column; gap: 10px; }
.kb-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px; cursor: grab; box-shadow: var(--shadow-sm); }
.kb-card:active { cursor: grabbing; }
.kb-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.kb-score { font-weight: 800; }
.kb-card h4 { margin: 0 0 5px; font-size: 14.5px; font-weight: 700; letter-spacing: -0.2px; }
.kb-card p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kb-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.kb-move { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: var(--cf-orange); padding: 6px 10px; border-radius: 8px; background: var(--el-color-primary-light-9); }
.kb-empty { border: 1.5px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--ink-3); font-size: 13px; }
.kb-hint { text-align: center; color: var(--ink-3); font-size: 12.5px; padding: 0 16px; }

/* ---------- sheets / dialogs ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(8, 10, 16, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet-wrap { position: fixed; inset: 0; z-index: 81; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.sheet-wrap-sm { align-items: center; padding: 20px; }
.sheet { pointer-events: auto; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; background: var(--card); border-radius: 22px 22px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sheet-head h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.capture-score-row { display: flex; align-items: center; gap: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 14px; }
.capture-score-num { font-size: 34px; font-weight: 800; letter-spacing: -1.5px; color: var(--cf-orange); }
.capture-score-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); }
.capture-score-hint { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.capture-form { padding-bottom: 6px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.capture-save { width: 100%; margin-top: 8px; }
.action-sheet { pointer-events: auto; width: 100%; max-width: 420px; background: var(--card); border-radius: 22px; padding: 10px 14px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); }
.action-title { font-size: 13px; font-weight: 700; color: var(--ink-3); text-align: center; margin-bottom: 10px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px; font-size: 16px; font-weight: 600; border-top: 1px solid var(--line); color: var(--ink); }
.action-opt .ic { color: var(--cf-orange); }
.action-opt.current { color: var(--cf-orange); font-weight: 800; }
.action-opt.danger { color: var(--red); }
.action-cancel { font-weight: 700; color: var(--ink-2); justify-content: center; }
.confirm-body { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }

/* ---------- detail ---------- */
.detail-overlay { position: fixed; inset: 0; z-index: 70; background: var(--bg); overflow: hidden; }
.detail { height: 100%; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; }
.detail-nav {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  background: var(--nav-blur); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--line); z-index: 2;
}
.detail-scroll { flex: 1; overflow-y: auto; padding: 16px 16px 0; }
.detail-hero { display: flex; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow-sm); margin-bottom: 14px; }
.detail-hero-copy h2 { margin: 8px 0 6px; font-size: 22px; font-weight: 800; letter-spacing: -0.7px; line-height: 1.15; }
.detail-hero-copy p { margin: 0; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.stage-stepper { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 8px; margin-bottom: 16px; overflow-x: auto; }
.step { flex: 1; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.4px; }
.step i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); transition: transform 0.2s; }
.step.done { color: var(--ink-2); }
.step.done i { background: var(--green); }
.step.cur i { transform: scale(1.5); box-shadow: 0 0 0 4px rgba(246, 130, 31, 0.2); }
.step.cur { color: var(--cf-orange-deep); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.note-add { display: flex; gap: 8px; margin-bottom: 12px; }
.note { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.note p { margin: 0 0 4px; font-size: 14px; }
.note span { font-size: 12px; color: var(--ink-3); }
.act-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.act-row:first-child { border-top: 0; }
.act-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cf-orange); flex-shrink: 0; }
.act-row .dim { margin-left: auto; }

/* ---------- analytics ---------- */
.donut-flex { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.legend-row { display: flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 5px 0; color: var(--ink-2); }
.legend-row i { width: 10px; height: 10px; border-radius: 3px; }
.legend-row b { margin-left: auto; padding-left: 18px; }
.insight-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.insight { display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow-sm); }
.insight-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #fef4e8, #fee9d1); color: var(--cf-orange-deep); display: flex; align-items: center; justify-content: center; }
[data-theme="dark"] .insight-ic { background: rgba(246, 130, 31, 0.15); }
.insight b { font-size: 14.5px; }
.insight p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------- launch / pricing ---------- */
.launch-tabs { margin-top: 4px; }
.pricing-wrap { padding: 8px 0 4px; }
.pricing-head { text-align: center; margin-bottom: 22px; }
.pricing-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -1px; }
.pricing-head p { color: var(--ink-3); font-size: 14px; margin: 8px 0 16px; }
.pricing-head .segmented { margin: 0 auto; }
.plans { display: grid; gap: 14px; grid-template-columns: 1fr; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px 20px; box-shadow: var(--shadow-sm); }
.plan.hot { border: 2px solid transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #f6821f, #635bff) border-box; box-shadow: var(--shadow-md); }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, #f6821f, #e04a1a); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.plan-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); }
.plan h3 { margin: 6px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.plan-price { font-size: 44px; font-weight: 800; letter-spacing: -2px; margin: 10px 0; }
.plan-price .cur { font-size: 22px; vertical-align: top; }
.plan-price .per { font-size: 14px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.plan-feats { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-feats li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); }
.plan-feats .ic { color: var(--green); flex-shrink: 0; }
.plan-cta { width: 100%; }
.checklist-wrap { margin-top: 16px; }
.checklist-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.checklist-progress b { font-size: 18px; }
.checklist-progress p { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.check-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--line); font-size: 15px; cursor: pointer; }
.check-box { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; transition: all 0.2s; }
.check-row.done .check-box { background: var(--green); border-color: var(--green); }
.check-row.done span:last-child { text-decoration: line-through; color: var(--ink-3); }
.ship-btn { width: 100%; margin-top: 16px; }
.ship-hint { text-align: center; color: var(--ink-3); font-size: 13px; }
.launch-pick { margin-bottom: 4px; }

/* checkout */
.checkout { pointer-events: auto; width: 100%; max-width: 440px; background: var(--card); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-lg); max-height: 92vh; overflow-y: auto; }
.co-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.co-head h2 { margin: 0; font-size: 20px; font-weight: 800; }
.co-plan { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.co-plan b { font-size: 15px; }
.co-plan p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); }
.co-amt { font-size: 24px; font-weight: 800; }
.co-cardprev { border-radius: 16px; padding: 18px; color: #fff; margin-bottom: 14px; background: linear-gradient(120deg, #1d1440, #3a1420 70%, #7a2e0e); position: relative; overflow: hidden; }
.co-cardprev::after { content: ""; position: absolute; width: 220px; height: 220px; right: -60px; top: -60px; background: radial-gradient(circle, rgba(246, 130, 31, 0.5), transparent 70%); }
.cc-chip { width: 40px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #ffd9ae, #f6821f); margin-bottom: 16px; }
.cc-num { font-size: 17px; letter-spacing: 2px; font-weight: 600; }
.cc-row { display: flex; justify-content: space-between; margin-top: 12px; font-size: 11px; letter-spacing: 1.5px; opacity: 0.75; }
.co-fields { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.co-pay { width: 100%; }
.co-pay em { font-style: normal; font-size: 11px; opacity: 0.8; border: 1px solid rgba(255, 255, 255, 0.5); padding: 2px 8px; border-radius: 999px; }
.co-processing, .co-done { text-align: center; padding: 30px 10px; }
.co-done h3 { font-size: 22px; margin: 14px 0 8px; }
.co-done p { color: var(--ink-3); font-size: 14px; line-height: 1.6; margin-bottom: 18px; }
.co-check { width: 76px; height: 76px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--cf-orange); margin: 0 auto 16px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- settings ---------- */
.set-profile { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 20px; }
.set-profile b { font-size: 17px; }
.set-profile p { margin: 3px 0 0; font-size: 13px; color: var(--ink-3); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #f6821f, #635bff); color: #fff; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.avatar-lg { width: 54px; height: 54px; font-size: 21px; }
.set-group { margin-bottom: 20px; }
.set-label { font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--ink-3); margin: 0 0 8px 14px; }
.set-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; font-size: 15px; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; }
.set-row .dim { color: var(--ink-3); }
.set-row.danger span:first-child, .link.danger { color: var(--red); }
.set-note { font-size: 12.5px; color: var(--ink-3); margin: 8px 14px 0; line-height: 1.5; }

/* ---------- transitions ---------- */
.fade-enter-active, .fade-leave-active { transition: opacity 0.25s; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.slide-up-enter-active { transition: transform 0.45s cubic-bezier(0.32, 1.2, 0.4, 1), opacity 0.3s; }
.slide-up-leave-active { transition: transform 0.3s ease-in, opacity 0.25s; }
.slide-up-enter-from, .slide-up-leave-to { transform: translateY(100%); opacity: 0.6; }
/* static (screenshot / no-motion) mode: no transitions, final states only */
.static .fade-enter-active, .static .fade-leave-active,
.static .slide-up-enter-active, .static .slide-up-leave-active { transition: none !important; }
.static .fade-enter-from, .static .fade-leave-to { opacity: 1 !important; }
.static .slide-up-enter-from, .static .slide-up-leave-to { transform: none !important; opacity: 1 !important; }

/* ---------- Element Plus overrides ---------- */
.el-button--primary { --el-button-bg-color: #f6821f; --el-button-border-color: #f6821f; --el-button-hover-bg-color: #e07415; --el-button-hover-border-color: #e07415; --el-button-active-bg-color: #d96a0b; --el-button-active-border-color: #d96a0b; }
.el-input__wrapper, .el-textarea__inner, .el-select__wrapper { border-radius: 12px !important; }
.el-form-item__label { font-weight: 700 !important; font-size: 13px !important; color: var(--ink-2) !important; }
.el-dialog { border-radius: 20px !important; background: var(--card) !important; }
.el-dialog__title { font-weight: 800 !important; color: var(--ink) !important; }
.el-table { --el-table-bg-color: transparent; --el-table-header-bg-color: transparent; --el-table-border-color: var(--line); --el-table-text-color: var(--ink-2); --el-table-header-text-color: var(--ink-3); border-radius: 12px; font-size: 13.5px; }
.el-table th { font-weight: 700 !important; text-transform: uppercase; font-size: 11px; letter-spacing: 0.6px; }
.el-table__row { cursor: pointer; }
.el-tabs__item { font-weight: 700 !important; font-size: 15px !important; }
.el-tabs__active-bar { background-color: var(--cf-orange) !important; }
.el-tabs__item.is-active, .el-tabs__item:hover { color: var(--cf-orange) !important; }
.el-switch.is-checked .el-switch__core { border-color: var(--cf-orange) !important; background-color: var(--cf-orange) !important; }
.el-slider__bar { background-color: var(--cf-orange) !important; }
.el-slider__button { border-color: var(--cf-orange) !important; }
.el-rate .el-rate__icon.is-active, .el-rate__item.is-active .el-rate__icon { color: #f79009 !important; }
.el-checkbox__input.is-checked .el-checkbox__inner { background-color: var(--cf-orange) !important; border-color: var(--cf-orange) !important; }
.el-tag { border-radius: 999px !important; }
.el-message { border-radius: 14px !important; }
.el-date-editor, .el-select { width: 100%; }
[data-theme="dark"] .el-input__wrapper, [data-theme="dark"] .el-textarea__inner, [data-theme="dark"] .el-select__wrapper { background: #1d2433 !important; box-shadow: 0 0 0 1px #2b3547 inset !important; }
[data-theme="dark"] .el-input__inner, [data-theme="dark"] .el-textarea__inner { color: var(--ink) !important; }
[data-theme="dark"] .el-table__row:hover > td { background: #1a2130 !important; }
.el-popper { border-radius: 14px !important; }

/* ---------- desktop ---------- */
@media (min-width: 1024px) {
  .tabbar, .fab { display: none; }
  #app-shell { display: flex; }
  .sidebar {
    display: flex; flex-direction: column; width: 248px; flex-shrink: 0; position: sticky; top: 0; height: 100vh;
    background: var(--card); border-right: 1px solid var(--line); padding: 20px 14px;
  }
  .side-brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; cursor: pointer; }
  .side-mark { width: 36px; height: 36px; border-radius: 12px; background: linear-gradient(135deg, #f6821f, #e04a1a); color: #fff; display: flex; align-items: center; justify-content: center; }
  .side-word { font-size: 22px; font-weight: 800; letter-spacing: -0.8px; }
  .side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
  .side-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); text-align: left; transition: all 0.15s; }
  .side-item:hover { background: var(--bg); }
  .side-item.active { background: #fef4e8; color: var(--cf-orange-deep); font-weight: 700; }
  [data-theme="dark"] .side-item.active { background: rgba(246, 130, 31, 0.14); }
  .side-foot { display: flex; flex-direction: column; gap: 12px; }
  .side-capture { display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, #f6821f, #e04a1a); color: #fff; font-weight: 700; padding: 12px; border-radius: 12px; box-shadow: 0 8px 20px rgba(246, 130, 31, 0.35); }
  .side-user { display: flex; align-items: center; gap: 10px; padding: 10px; font-size: 14px; font-weight: 600; border-top: 1px solid var(--line); }
  .main-col { flex: 1; min-width: 0; }
  .view-root { padding: 0 32px; }
  .view-pad { height: 48px; }
  .hero { margin: 20px 0 0; border-radius: 28px; }
  .hero-inner { padding: 84px 56px 56px; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-2col { grid-template-columns: 1fr 1fr; gap: 16px; }
  .dash-2col .card { margin-bottom: 16px; }
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .plan.hot { transform: scale(1.04); }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .sheet-wrap { align-items: center; padding: 24px; }
  .sheet { border-radius: 22px; }
  .detail-overlay { background: rgba(8, 10, 16, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 24px; }
  .detail { background: var(--bg); border-radius: 24px; height: auto; max-height: 92vh; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; }
  .detail-nav { border-radius: 24px 24px 0 0; }
  .slide-up-enter-from, .slide-up-leave-to { transform: translateY(40px) scale(0.98); opacity: 0; }
  .kb-wrap { margin: 0; }
  .kb-scroll { margin: 0; padding: 4px 2px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .fab, .blob { animation: none !important; }
}
