/* 会员中心统一视觉系统 · 2026-09-12
   仅改变页面呈现，不改接口、数据结构和业务事件。 */

:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --panel2: #f6f8fc;
  --line: #e3e9f3;
  --line-strong: #d5ddea;
  --text: #14213d;
  --muted: #748198;
  --brand: #315cf5;
  --brand2: #7257f5;
  --ok: #15a46d;
  --warn: #e69022;
  --err: #e5484d;
  --cyan: #0ea5c6;
  --shadow-xs: 0 1px 2px rgba(20, 33, 61, .04);
  --shadow-sm: 0 8px 24px rgba(38, 55, 92, .07);
  --shadow-md: 0 18px 48px rgba(38, 55, 92, .12);
  --radius: 16px;
}

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 360px at 9% -8%, rgba(49, 92, 245, .10), transparent 62%),
    radial-gradient(760px 320px at 95% 4%, rgba(114, 87, 245, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}

::selection { color: #fff; background: rgba(49, 92, 245, .86); }

/* 顶部导航 */
.nav {
  min-height: 70px;
  padding: 10px max(28px, calc((100vw - 1240px) / 2));
  gap: 7px;
  flex-wrap: nowrap;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #e7edf7;
  box-shadow: none;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 22px;
  color: var(--text);
  font-size: 18px;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.nav .logo::before {
  content: "◢";
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px 2px 8px 2px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  background: #2458ea;
  box-shadow: none;
}

.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 10px;
  color: #68758d;
  font-size: 13px;
  font-weight: 560;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}

.nav a:hover {
  color: #2458ea;
  background: transparent;
}

.nav a.on {
  color: #2458ea;
  background: transparent;
  border-radius: 0;
  box-shadow: inset 0 -2px #2458ea;
  font-weight: 720;
}

.nav #nav-logout { color: var(--muted); }

.nav .btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 7px;
  box-shadow: none;
}

/* 页面骨架 */
.wrap {
  width: min(100%, 1288px);
  max-width: 1288px;
  min-height: calc(100vh - 152px);
  margin: 0 auto;
  padding: 38px 24px 72px;
}

.wrap.admin-wide {
  width: min(100%, 1680px);
  max-width: 1680px;
  padding-right: 18px;
  padding-left: 18px;
}

.view { animation: memberViewIn .24s ease both; }

@keyframes memberViewIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}

.view > h1,
.vC-head h1 {
  position: relative;
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--text);
  font-size: 27px;
  font-weight: 820;
  letter-spacing: -.7px;
}

.view > h1::before,
.vC-head h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, var(--brand), var(--brand2));
}

.sub, .sec-s, .hint { color: var(--muted); }

.sec-t {
  margin: 54px 0 7px;
  color: var(--text);
  font-size: 27px;
  font-weight: 820;
  letter-spacing: -.65px;
}

.sec-s { margin-bottom: 23px; font-size: 13.5px; }

/* 通用卡片 */
.panel,
.card,
.vC-col,
.cockpit {
  border: 1px solid rgba(220, 227, 239, .95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-xs);
}

.panel {
  margin-bottom: 18px;
  padding: 24px;
}

.panel:hover { border-color: var(--line-strong); }

.panel h2,
.vC-col h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--text);
  font-size: 16px;
  font-weight: 760;
}

.panel h2::before,
.vC-col h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 0 0 5px rgba(49, 92, 245, .08);
}

/* 按钮与表单 */
.btn {
  min-height: 40px;
  border-radius: 11px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #3568f4, #6955ee);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 7px 17px rgba(49, 92, 245, .18);
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: 0 10px 24px rgba(49, 92, 245, .24);
}

.btn:active:not(:disabled) { transform: translateY(0) scale(.985); }

.btn.ghost,
.line.btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #34425d;
  box-shadow: none;
}

.btn.ghost:hover,
.line.btn:hover {
  color: var(--brand);
  border-color: rgba(49, 92, 245, .38);
  background: #f7f9ff;
  box-shadow: none;
}

.btn.ok,
.btn.small-ok { background: linear-gradient(135deg, #12a46c, #24bc80); color: #fff; }
.btn.warn { background: linear-gradient(135deg, #e38b18, #f3a62f); }
.btn.danger { background: linear-gradient(135deg, #dd3f48, #f15a60); }

label {
  margin: 14px 0 7px;
  color: #5f6e87;
  font-size: 12.5px;
  font-weight: 650;
}

input,
select,
textarea {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fbfcfe;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:hover,
select:hover,
textarea:hover { border-color: #c6d0df; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(49, 92, 245, .7);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(49, 92, 245, .10);
}

/* 首页 */
#view-home { margin-top: -14px; }

.hero {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 66px 72px 48px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 28px;
  background:
    radial-gradient(520px 250px at 15% 10%, rgba(76, 153, 255, .33), transparent 64%),
    radial-gradient(520px 260px at 90% 15%, rgba(150, 104, 255, .27), transparent 66%),
    linear-gradient(135deg, #102650 0%, #173d85 45%, #33266f 100%);
  color: #fff;
  box-shadow: 0 28px 70px rgba(25, 45, 87, .18);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 82%);
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.hero .badge {
  position: relative;
  z-index: 2;
  margin-bottom: 17px;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 860;
  line-height: 1.13;
  letter-spacing: -2px;
  text-align: center;
}

.hero h1 em {
  background: linear-gradient(90deg, #7dd3fc, #c4b5fd 52%, #f0abfc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 20px auto 0;
  color: rgba(232, 239, 255, .77);
  font-size: 15px;
  line-height: 1.85;
  text-align: center;
}

.hero .btns { position: relative; z-index: 2; margin-top: 27px; }
.hero .btns .btn { min-width: 132px; }
.hero #btn-get-started { background: #fff; color: #1e4fd7; box-shadow: 0 12px 26px rgba(5, 14, 38, .22); }
.hero .line.btn { border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.09); color: #fff; }

.hero .shot {
  position: relative;
  z-index: 2;
  width: min(100%, 780px);
  margin-top: 40px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 16px;
  background: rgba(9, 19, 43, .58);
  box-shadow: 0 24px 48px rgba(4, 10, 28, .32);
}

.home-pv { background: rgba(12, 25, 54, .72); }
.home-pv-title { color: rgba(255,255,255,.92); }
.home-pv-task, .home-pv-list { color: rgba(234,240,255,.75); border-color: rgba(255,255,255,.09); }

.feats {
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feat {
  min-height: 172px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feat:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 92, 245, .22);
  box-shadow: var(--shadow-sm);
}

.feat .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 17px;
  border-radius: 13px;
  background: linear-gradient(135deg, #edf3ff, #f2eeff);
  font-size: 21px;
}

.feat h3 { font-size: 15px; font-weight: 760; }
.feat p { margin-top: 7px; color: var(--muted); line-height: 1.65; }
.new, .core { border-radius: 999px; padding: 2px 7px; font-size: 9px; vertical-align: 2px; }

.home-tags {
  margin-top: 17px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
}

.home-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #5f6d84;
  box-shadow: var(--shadow-xs);
}

/* 套餐 */
.plans,
.cards { gap: 18px; }

.plan,
.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.plan::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand2));
  opacity: .7;
}

.plan:hover,
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(49, 92, 245, .25);
  box-shadow: var(--shadow-sm);
}

.plan.super {
  border-color: rgba(114, 87, 245, .32);
  background: linear-gradient(160deg, #fff 35%, #f6f3ff 100%);
}

.plan-top { padding-bottom: 16px; }
.plan-switch, .ps-seg { padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: #edf1f7; }
.plan-switch button, .ps-seg button { min-height: 36px; border: 0; border-radius: 9px; font-weight: 650; }
.plan-switch button.on, .ps-seg button.on { background: #fff; color: var(--brand); box-shadow: 0 3px 10px rgba(33, 50, 87, .10); }
.plan .price, .card .price { color: var(--brand); font-size: 31px; letter-spacing: -.8px; }
.plan ul, .card ul { color: #617089; line-height: 2.15; }

/* 下载中心 */
.vC-head { margin: 0 0 25px; text-align: left; }
.vC-head h1 { margin-bottom: 2px; }
.vC-head .sec-s { padding-left: 18px; text-align: left; }
.vC-grid { grid-template-columns: .82fr 1.18fr 1fr; gap: 18px; }
.vC-col { padding: 27px; }
.vC-badge { width: 108px; height: 108px; box-shadow: 0 18px 38px rgba(49,92,245,.25); }
.vC-step { position: relative; padding: 12px 0 12px 2px; }
.vC-step:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 43px; bottom: -3px; width: 1px; background: var(--line); }
.vC-step .n { z-index: 1; width: 30px; height: 30px; background: linear-gradient(135deg, var(--brand), var(--brand2)); }
.faq-item { padding: 14px 0; }
.vC-chips { border-radius: 16px; }

/* 登录注册 */
#view-login {
  min-height: 610px;
  display: none;
  place-items: center;
}

#view-login.on { display: grid; }

#view-login .panel {
  width: min(100%, 470px);
  max-width: none !important;
  margin: 10px auto !important;
  padding: 34px 36px 36px;
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

#view-login .panel::before {
  content: "会员服务";
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--brand);
  font-size: 11px;
  font-weight: 750;
}

#view-login h2 { margin-bottom: 18px; font-size: 24px; }
#view-login .tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 22px; padding: 4px; border-radius: 12px; background: #eef2f7; }
#view-login .tabs button { border: 0; border-radius: 9px; }
#view-login .tabs button.on { border: 0; background: #fff; box-shadow: 0 3px 9px rgba(33,50,87,.09); }

/* 个人中心 */
.vip-card {
  min-height: 176px;
  margin-bottom: 18px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 21px;
  background:
    radial-gradient(360px 170px at 88% 12%, rgba(255,255,255,.15), transparent 65%),
    linear-gradient(135deg, #173a7d, #315cf5 58%, #6f54e9);
  color: #fff;
  box-shadow: 0 22px 48px rgba(36, 76, 167, .22);
  overflow: hidden;
}

.vip-card .muted,
.vip-card .tagline { color: rgba(255,255,255,.72); }
.vip-card .big { color: #fff; }
.row2col { gap: 18px; }
.redeem-card { gap: 10px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel2); }
.redeem-card input { border: 0; background: transparent; }

/* 管理后台 */
#view-admin { margin-top: -14px; }

.admin-shell {
  min-height: 720px;
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  gap: 0;
  border: 1px solid rgba(217,225,238,.98);
  border-radius: 22px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 20px 55px rgba(35,53,91,.09);
  overflow: hidden;
}

.admin-sidebar {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid #e7ecf3;
  background:
    radial-gradient(220px 150px at 0 0, rgba(49,92,245,.10), transparent 68%),
    linear-gradient(180deg, #f8faff, #f4f7fc);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 7px 22px;
  border-bottom: 1px solid #e3e9f2;
}

.admin-brand-icon {
  flex: 0 0 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #3478ff, #6951f3);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 9px 19px rgba(49,92,245,.23);
}

.admin-brand b { display: block; color: var(--text); font-size: 14.5px; }
.admin-brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 10.5px; }

.admin-nav-label {
  margin: 22px 10px 8px;
  color: #9aa4b5;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
}

.admin-nav.tabs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0;
}

.admin-nav.tabs button {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #66738a;
  font-size: 12.5px;
  font-weight: 650;
  text-align: left;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.admin-nav.tabs button:hover {
  color: var(--brand);
  background: rgba(255,255,255,.72);
  border-color: #e1e7f0;
  transform: translateX(2px);
}

.admin-nav.tabs button.on {
  border-color: rgba(49,92,245,.10);
  background: linear-gradient(135deg, #315cf5, #6856ec);
  color: #fff;
  box-shadow: 0 9px 19px rgba(49,92,245,.20);
}

.admin-tab-icon {
  flex: 0 0 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(126,139,164,.10);
  color: currentColor;
  font-size: 14px;
  line-height: 1;
}

.admin-nav button.on .admin-tab-icon { background: rgba(255,255,255,.17); }

.admin-side-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid #dce6e2;
  border-radius: 13px;
  background: rgba(255,255,255,.72);
}

.admin-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 5px rgba(21,164,109,.10);
}

.admin-side-status b { display: block; color: #287358; font-size: 11.5px; }
.admin-side-status small { display: block; margin-top: 2px; color: #8a96a8; font-size: 9.5px; }

.admin-main { min-width: 0; background: rgba(250,251,254,.72); }

.admin-page-head {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 25px;
  border-bottom: 1px solid #e6ebf3;
  background: rgba(255,255,255,.85);
}

.admin-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--brand);
  font-size: 8.5px;
  font-weight: 850;
  letter-spacing: 1.45px;
}

.admin-page-head h1 {
  margin: 0;
  color: var(--text);
  font-size: 23px;
  font-weight: 820;
  letter-spacing: -.5px;
}

.admin-page-head p { margin-top: 3px; color: var(--muted); font-size: 11.5px; }

.admin-head-actions { display: flex; align-items: center; gap: 9px; }
.admin-safe { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid #dce8e4; border-radius: 10px; background: #f3faf7; color: #398068; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.admin-safe i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(21,164,109,.10); }
.admin-refresh { min-height: 36px; padding: 8px 12px; font-size: 11px; }

.admin-content { padding: 20px; }
.admin-content > div { animation: adminPaneIn .2s ease both; }

.admin-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.admin-quick-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.admin-quick-stat {
  position: relative;
  min-height: 94px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: linear-gradient(145deg, #fff, #f7f9fd);
  overflow: hidden;
}

.admin-quick-stat::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -31px;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: currentColor;
  opacity: .055;
}

.admin-quick-stat span { display: block; color: #718096; font-size: 10.5px; font-weight: 700; }
.admin-quick-stat b { display: block; margin-top: 5px; color: currentColor; font-size: 22px; line-height: 1.1; letter-spacing: -.5px; }
.admin-quick-stat small { display: block; margin-top: 6px; color: #9aa5b5; font-size: 9.5px; }
.admin-quick-stat.c1 { color: var(--brand); border-color: rgba(49,92,245,.18); background: linear-gradient(145deg, #fff, #f3f6ff); }
.admin-quick-stat.c2 { color: var(--ok); border-color: rgba(21,164,109,.18); background: linear-gradient(145deg, #fff, #f1fbf7); }
.admin-quick-stat.c3 { color: var(--cyan); border-color: rgba(14,165,198,.18); background: linear-gradient(145deg, #fff, #f0fbfd); }
.admin-quick-stat.c4 { color: var(--err); border-color: rgba(229,72,77,.17); background: linear-gradient(145deg, #fff, #fff5f5); }

.admin-table-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 1px 10px;
}

.admin-table-label span { color: #33415c; font-size: 12px; font-weight: 780; }
.admin-table-label small { color: #919cad; font-size: 9.5px; }

@keyframes adminPaneIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

#admin-users,
#admin-plans,
#admin-orders,
#admin-codes,
#admin-updates,
#admin-downloads { min-width: 0; }

#view-admin .panel {
  padding: 20px;
  border-color: #e2e8f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(37,54,88,.045);
}

#view-admin .panel > h2:first-child {
  justify-content: flex-start;
  min-height: 34px;
  margin: -2px 0 16px;
  padding-bottom: 13px;
  border-bottom: 1px solid #edf1f6;
}

.admin-table-scroll { width: 100%; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c7d0df transparent; }
.admin-order-table { width: 100%; min-width: 980px; table-layout: auto; }
.admin-order-table th:nth-child(1), .admin-order-table td:nth-child(1) { width: 178px; white-space: nowrap; }
.admin-order-table th:nth-child(2), .admin-order-table td:nth-child(2) { min-width: 188px; }
.admin-order-table th:nth-child(3), .admin-order-table td:nth-child(3) { min-width: 180px; }
.admin-order-table th:nth-child(4), .admin-order-table td:nth-child(4) { width: 90px; white-space: nowrap; }
.admin-order-table th:nth-child(5), .admin-order-table td:nth-child(5) { width: 92px; white-space: nowrap; }
.admin-order-table th:nth-child(6), .admin-order-table td:nth-child(6) { width: 112px; white-space: nowrap; }
.admin-order-table th:nth-child(7), .admin-order-table td:nth-child(7) { width: 112px; white-space: nowrap; }
.admin-order-table .acts { flex-wrap: nowrap; }

.admin-user-filters {
  display: grid; grid-template-columns: minmax(260px,1.35fr) repeat(4,minmax(125px,.66fr)) 68px;
  align-items: center; gap: 9px; margin: 2px 0 15px; padding: 12px;
  border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg,#fbfcff,#f7f9fd);
}
.admin-user-search { display: flex; min-width: 0; min-height: 42px; align-items: center; gap: 9px; padding: 0 10px; border: 1px solid #dce3ef; border-radius: 10px; background: #fff; }
.admin-user-search > span { color: #6880a8; font-size: 18px; }
.admin-user-search input { min-width: 0; min-height: 38px; flex: 1; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; font-size: 11.5px; }
.admin-user-search button { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 7px; background: #edf1f7; color: #7e8a9d; font-size: 16px; cursor: pointer; }
.admin-user-filters select { width: 100%; min-height: 42px; padding: 0 30px 0 10px; border-color: #dce3ef; border-radius: 10px; background-color: #fff; font-size: 11px; }
.admin-user-reset { min-height: 42px; padding: 0 12px; border: 1px solid #dce3ef; border-radius: 10px; background: #fff; color: #5f6f89; font-size: 11px; font-weight: 700; cursor: pointer; }
.admin-user-reset:hover { border-color: #aebfe4; color: var(--brand); }
.admin-user-table { width: 100%; min-width: 980px; }
.admin-user-empty { display: grid; min-height: 210px; place-items: center; align-content: center; border: 1px dashed #d7dfec; border-radius: 12px; background: #fbfcff; color: var(--muted); text-align: center; }
.admin-user-empty i { margin-bottom: 7px; color: #7a8dae; font-size: 30px; font-style: normal; }
.admin-user-empty b { color: var(--text); font-size: 13px; }
.admin-user-empty span { margin-top: 5px; font-size: 10px; }

table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 12.5px;
}

th,
td { padding: 12px 11px; border-bottom: 1px solid #edf1f6; }

th {
  background: #f6f8fc;
  color: #6c7890;
  font-size: 11.5px;
  font-weight: 720;
  letter-spacing: .15px;
}

.ut thead th:first-child { border-radius: 10px 0 0 10px; }
.ut thead th:last-child { border-radius: 0 10px 10px 0; }
.ut tbody tr { transition: background .14s ease; }
.ut tbody tr:hover { background: #f8faff; }
.avatar { box-shadow: 0 5px 14px rgba(33, 50, 87, .15); }
.plan-badge, .tag { font-weight: 700; }
.acts .btn { min-height: 32px; border-radius: 9px; }

.plan-form,
.code-gen {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f7f9fc;
  padding: 17px;
}

.st-cards,
.order-stats,
.code-stats,
.cp-kpis { gap: 12px; }

.st-card,
.order-stats .os,
.code-stats > div,
.cp-kp {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f7f9fd);
  box-shadow: var(--shadow-xs);
}

.cockpit { padding: 22px; }
.cp-panel { border-radius: 14px; box-shadow: none; }
.cp-seg { background: #eef2f7; }

/* 数据分析 · 方案 A 运营驾驶舱 */
.ops-dashboard {
  min-height: 680px;
  margin: -20px;
  padding: 20px;
  background:
    radial-gradient(720px 290px at 15% -4%, rgba(49,92,245,.08), transparent 66%),
    linear-gradient(180deg, #f6f8fc, #f2f5fa);
}

.ops-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.ops-kicker { display: block; margin-bottom: 5px; color: #5870aa; font-size: 9.5px; font-weight: 800; letter-spacing: 1.4px; }
.ops-toolbar h2 { margin: 0; color: var(--text); font-size: 23px; line-height: 1.2; letter-spacing: -.55px; }
.ops-toolbar p { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; }
.ops-toolbar-actions { display: flex; align-items: center; gap: 10px; }
.ops-sync { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; padding: 0 11px; border: 1px solid #dfe6ef; border-radius: 10px; background: #fff; color: #4f607c; font-size: 11px; font-weight: 650; }
.ops-sync i { width: 7px; height: 7px; border-radius: 50%; background: #21b77a; box-shadow: 0 0 0 4px rgba(33,183,122,.11); }
.ops-toolbar .cp-seg { padding: 4px; background: #fff; }
.ops-toolbar .cp-seg span { min-width: 62px; padding: 6px 12px; text-align: center; }
.ops-toolbar .cp-seg span.on { background: linear-gradient(135deg, #3269f4, #4b77f4); color: #fff; box-shadow: 0 4px 10px rgba(49,92,245,.22); }

.ops-kpis { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; margin-bottom: 12px; }
.ops-kpi {
  position: relative;
  min-width: 0;
  min-height: 114px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid #e0e6f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(29,45,78,.045);
  overflow: hidden;
}

.ops-kpi::after { content: ""; position: absolute; width: 86px; height: 86px; right: -41px; bottom: -43px; border-radius: 50%; background: rgba(49,92,245,.06); }
.ops-kpi-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 11px; background: #edf2ff; color: #315cf5; font-size: 17px; font-weight: 800; }
.ops-kpi > div { min-width: 0; }
.ops-kpi-label { display: block; color: #64718a; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.ops-kpi strong { display: block; margin: 5px 0 3px; color: #13213c; font-size: clamp(20px, 1.65vw, 28px); line-height: 1.05; letter-spacing: -.65px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ops-kpi small { color: #19a56c; font-size: 10.5px; white-space: nowrap; }
.ops-kpi.c2 .ops-kpi-icon { background: #e9f8f1; color: #14a56d; }
.ops-kpi.c3 .ops-kpi-icon { background: #f0ebff; color: #7756ee; }
.ops-kpi.c4 .ops-kpi-icon { background: #fff2df; color: #ee961f; }
.ops-kpi.c5 .ops-kpi-icon { background: #eaf2ff; color: #2b6fe7; }
.ops-kpi.c2::after { background: rgba(20,165,109,.07); }
.ops-kpi.c3::after { background: rgba(119,86,238,.07); }
.ops-kpi.c4::after { background: rgba(238,150,31,.08); }
.ops-kpi.c5::after { background: rgba(43,111,231,.07); }
.ops-kpi-bars { position: absolute; right: 13px; bottom: 15px; height: 26px; display: flex; align-items: flex-end; gap: 3px; opacity: .22; }
.ops-kpi-bars b { width: 4px; border-radius: 3px 3px 0 0; background: #315cf5; }
.ops-kpi-bars b:nth-child(1) { height: 9px; }.ops-kpi-bars b:nth-child(2) { height: 17px; }.ops-kpi-bars b:nth-child(3) { height: 25px; }

.ops-main-grid { display: grid; grid-template-columns: minmax(0,2.15fr) minmax(290px,.85fr); gap: 12px; margin-bottom: 12px; }
.ops-bottom-grid { display: grid; grid-template-columns: minmax(250px,.9fr) minmax(280px,1fr) minmax(320px,1.15fr); gap: 12px; }
.ops-panel { min-width: 0; padding: 16px; border: 1px solid #e0e6f0; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(29,45,78,.04); }
.ops-panel-head { min-height: 36px; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.ops-panel-head h3 { margin: 0; color: #162440; font-size: 13.5px; line-height: 1.2; }
.ops-panel-head p { margin: 5px 0 0; color: #8894a8; font-size: 10.5px; }
.ops-total { flex: 0 0 auto; color: #4b5c78; font-size: 10.5px; font-weight: 700; }
.ops-panel-head button { padding: 4px 8px; border: 0; border-radius: 7px; background: #edf2ff; color: #315cf5; font-size: 10.5px; cursor: pointer; }
.ops-trend-panel .cp-line { height: 252px; }
.ops-legend { display: flex; align-items: center; gap: 12px; color: #71809a; font-size: 10.5px; }
.ops-legend span { white-space: nowrap; }
.ops-legend i { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.ops-legend i.blue { background: #315cf5; }.ops-legend i.green { background: #16a76f; }
.ops-trend-panel .cp-legend { padding-top: 8px; border-top: 1px solid #edf1f6; }
.ops-trend-panel .cp-legend b { color: #31425f; }
.ops-plan-panel .donut-wrap { min-height: 250px; align-content: center; }
.ops-plan-panel .donut-wrap svg { width: 145px !important; height: 145px !important; }
.ops-plan-panel .donut-legend { gap: 10px; }
.ops-plan-panel .dl-row { padding-block: 2px; }

.ops-funnel { display: flex; flex-direction: column; gap: 9px; padding: 4px 0 2px; }
.ops-funnel-row { min-height: 42px; display: grid; grid-template-columns: minmax(0,1fr) 53px; align-items: center; gap: 10px; }
.ops-funnel-track { min-width: 0; display: flex; align-items: center; justify-content: center; }
.ops-funnel-shape {
  position: relative; width: var(--funnel-width,100%); min-width: 56%; height: 42px; display: grid;
  grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 6px; padding: 0 10px;
  border-radius: 9px; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 5px 12px rgba(52,70,150,.12);
  overflow: hidden;
}
.ops-funnel-shape::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg,rgba(255,255,255,.12),transparent 48%,rgba(255,255,255,.05)); pointer-events: none; }
.ops-funnel-shape i { position: relative; z-index: 1; font-size: 9px; font-style: normal; font-weight: 800; letter-spacing: .5px; opacity: .66; }
.ops-funnel-shape span { position: relative; z-index: 1; min-width: 0; overflow: hidden; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.ops-funnel-shape b { position: relative; z-index: 1; font-size: 15px; font-variant-numeric: tabular-nums; }
.ops-funnel-row > small { min-width: 0; display: flex; flex-direction: column; align-items: flex-end; color: #93a0b3; font-size: 8.5px; line-height: 1.3; white-space: nowrap; }
.ops-funnel-row > small b { color: #43516b; font-size: 10.5px; font-variant-numeric: tabular-nums; }

.ops-keywords { display: flex; flex-direction: column; }
.ops-keyword-row { min-height: 42px; display: grid; grid-template-columns: 24px minmax(0,1fr) 34px; align-items: center; gap: 9px; border-bottom: 1px solid #edf1f6; }
.ops-keyword-row:last-child { border-bottom: 0; }
.ops-rank { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #edf1f7; color: #7e899d; font-size: 9.5px; font-weight: 800; }
.ops-rank.r1 { background: #fff0cc; color: #df9516; }.ops-rank.r2 { background: #edf1f7; color: #66748d; }.ops-rank.r3 { background: #fff0e8; color: #d27a4f; }
.ops-keyword-row > div { min-width: 0; }
.ops-keyword-row > div b { display: block; overflow: hidden; color: #283650; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ops-keyword-row > div i { height: 4px; display: block; margin-top: 5px; border-radius: 999px; background: #edf1f7; overflow: hidden; }
.ops-keyword-row > div em { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#315cf5,#7257f5); }
.ops-keyword-row > strong { color: #34435f; font-size: 10.5px; text-align: right; font-variant-numeric: tabular-nums; }

.ops-risk-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-bottom: 8px; }
.ops-risk-summary span { padding: 8px 6px; border-radius: 8px; background: #f6f8fb; color: #7a879c; font-size: 9px; text-align: center; }
.ops-risk-summary b { display: block; margin-bottom: 2px; color: #273650; font-size: 14px; }
.ops-risk-list > div { min-height: 42px; display: grid; grid-template-columns: 8px minmax(0,1fr) auto; align-items: center; gap: 9px; border-bottom: 1px solid #edf1f6; }
.ops-risk-list > div:last-child { border-bottom: 0; }
.ops-risk-list > div > i { width: 7px; height: 7px; border-radius: 50%; background: #e9a52d; }
.ops-risk-list > div > i.danger { background: #e5535b; }
.ops-risk-list span b { display: block; max-width: 180px; overflow: hidden; color: #2a3852; font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.ops-risk-list span small { color: #94a0b2; font-size: 9px; }
.ops-risk-list em { padding: 3px 6px; border-radius: 6px; background: #fff5df; color: #d38a16; font-size: 9px; font-style: normal; }
.ops-risk-list em.danger { background: #fff0f1; color: #de4d56; }
.ops-empty { min-height: 185px; display: grid; place-items: center; color: #8d99ac; font-size: 11px; text-align: center; }
.ops-empty.good { min-height: 118px; color: #17a56d; }

html[data-theme="dark"] .ops-dashboard { background: linear-gradient(180deg,#111a2b,#0f1727); }
html[data-theme="dark"] .ops-kpi,
html[data-theme="dark"] .ops-panel,
html[data-theme="dark"] .ops-sync,
html[data-theme="dark"] .ops-toolbar .cp-seg { background: #182238; border-color: #2c3853; }
html[data-theme="dark"] .ops-kpi strong,
html[data-theme="dark"] .ops-panel-head h3,
html[data-theme="dark"] .ops-keyword-row > div b,
html[data-theme="dark"] .ops-keyword-row > strong,
html[data-theme="dark"] .ops-risk-list span b { color: #e8edf7; }
html[data-theme="dark"] .ops-risk-summary span { background: #121c30; }

.empty {
  min-height: 116px;
  display: grid;
  place-items: center;
  color: #8793a7;
  border: 1px dashed #dbe2ed;
  border-radius: 12px;
  background: #fafbfd;
}

.pager button { min-height: 34px; border-radius: 9px; }

/* 弹窗与反馈 */
.modal {
  background: rgba(13, 24, 47, .48);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.modal-box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: min(94vw, 760px);
  max-height: min(88vh, 850px);
  max-height: min(88dvh, 850px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(12, 24, 51, .27);
  overflow: hidden;
}

.modal-head {
  flex: 0 0 auto;
  min-height: 64px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfcff);
}

.modal-head h3 { font-size: 17px; }
.modal-head button { width: 34px; height: 34px; border-radius: 10px; transition: background .15s, color .15s; }
.modal-head button:hover { background: #f1f4f9; color: var(--err); }
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  padding: 22px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Keep account actions outside the scrolling detail, even on short screens. */
#user-detail-modal .modal-box > .ud-foot {
  flex: 0 0 auto;
  flex-wrap: wrap;
  margin: 0;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--panel);
}
#ud-body .ud-card { min-width: 0; }
#ud-body .ud-tb .err { overflow-wrap: anywhere; }

.toast {
  top: 82px;
  right: 24px;
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(20, 33, 61, .92);
  color: #fff;
  box-shadow: 0 16px 38px rgba(12,24,51,.22);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

footer {
  padding: 28px 20px 36px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.54);
  color: #8b96a9;
  font-size: 11.5px;
  line-height: 1.9;
}

/* 窄屏仍留在电脑版时的安全布局 */
@media (max-width: 1100px) {
  .nav { padding-inline: 20px; }
  .nav .logo { margin-right: 10px; }
  .nav a { padding-inline: 10px; }
  .wrap { padding-inline: 18px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .vC-grid { grid-template-columns: 1fr 1fr; }
  .vC-grid .vC-col:last-child { grid-column: 1 / -1; }
  .ops-kpis { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ops-main-grid { grid-template-columns: 1fr; }
  .ops-bottom-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ops-risk-panel { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .admin-shell { grid-template-columns: minmax(0, 1fr); }
  .admin-sidebar { padding: 12px; border-right: 0; border-bottom: 1px solid #e5eaf2; }
  .admin-brand, .admin-nav-label, .admin-side-status { display: none; }
  .admin-nav.tabs { flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .admin-nav.tabs::-webkit-scrollbar { display: none; }
  .admin-nav.tabs button { width: auto; min-width: max-content; min-height: 39px; padding: 6px 11px; }
  .admin-nav.tabs button:hover { transform: none; }
  .admin-tab-icon { flex-basis: 25px; height: 25px; }
  .admin-page-head { min-height: 92px; padding: 18px 20px; }
  .admin-content { padding: 15px; }
  .admin-content .panel { overflow-x: auto; }
  .admin-content table { min-width: 760px; }
  .admin-quick-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); min-width: 0; }
  .admin-quick-stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ops-dashboard { margin: -15px; padding: 15px; }
  .ops-bottom-grid { grid-template-columns: 1fr; }
  .ops-risk-panel { grid-column: auto; }
}

@media (max-width: 760px) {
  .wrap { padding: 18px 12px 88px; }
  .hero { min-height: auto; padding: 40px 20px 28px; border-radius: 22px; }
  .hero h1 { font-size: 32px; letter-spacing: -1px; }
  .hero p { font-size: 13px; }
  .hero .shot { margin-top: 28px; }
  .feats, .plans, .cards, .vC-grid { grid-template-columns: 1fr; }
  .vC-grid .vC-col:last-child { grid-column: auto; }
  .sec-t { margin-top: 36px; font-size: 22px; }
  #view-login { min-height: auto; }
  #view-login .panel { padding: 26px 20px; }
  #view-admin { margin-top: 0; }
  .admin-shell { border-radius: 17px; }
  .admin-page-head { align-items: flex-start; padding: 16px; }
  .admin-page-head h1 { font-size: 20px; }
  .admin-page-head p { max-width: 250px; }
  .admin-safe { display: none; }
  .admin-refresh { padding-inline: 10px; }
  .admin-content { padding: 11px; }
  .admin-quick-stats,
  .admin-quick-stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-table-label { align-items: flex-start; flex-direction: column; gap: 2px; }
  .ops-dashboard { margin: -11px; padding: 12px; }
  .ops-toolbar { align-items: flex-start; flex-direction: column; }
  .ops-toolbar-actions { width: 100%; justify-content: space-between; }
  .ops-sync { display: none; }
  .ops-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .ops-kpi { min-height: 100px; padding: 12px; }
  .ops-kpi:last-child { grid-column: 1 / -1; }
  .ops-kpi strong { font-size: 21px; }
  .ops-main-grid, .ops-bottom-grid { gap: 9px; }
  .ops-trend-panel .cp-line { height: 220px; }
  .ops-panel { padding: 13px; }
  .ops-legend { display: none; }
}

/* ===== 我的中心 / 代理中心 ===== */
.me-page-head { margin: 4px 2px 18px; }
.me-page-head h1 { margin: 0; font-size: 30px; letter-spacing: -.6px; }
.me-page-head p { margin-top: 5px; color: var(--muted); font-size: 13px; }
#view-me .vip-card {
  position: relative; min-height: 192px; display: block; overflow: hidden;
  padding: 24px 26px 17px; border: 1px solid #dfe6f2; border-radius: 20px;
  background:
    radial-gradient(circle at 88% 18%, rgba(111,81,237,.09), transparent 24%),
    radial-gradient(circle at 4% 90%, rgba(47,109,246,.07), transparent 25%),
    linear-gradient(180deg, #fff 0%, #fbfcff 100%); color: var(--text);
  box-shadow: 0 16px 38px rgba(28, 46, 89, .09);
}
#view-me .vip-card::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 5px; background: linear-gradient(90deg,#2f6df6,#7651ed); }
#view-me .vip-card::after { display: none; }
#view-me .vip-card .badge2 { display: inline-flex; align-items: center; margin: 0; padding: 5px 10px; border: 1px solid #dbe6ff; border-radius: 999px; background: #edf3ff; color: #3470e8; font-size: 10.5px; font-weight: 750; }
#view-me .vip-card .lbl { margin: 0 0 7px; color: #71809b; font-size: 12px; font-weight: 550; opacity: 1; }
#view-me .vip-card .big { color: #0d2144; font-size: 31px; line-height: 1.08; letter-spacing: -.6px; }
#view-me .vip-card .tagline { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 13px 4px 0; border-top: 1px solid #e5eaf2; color: #71809b; font-size: 11.5px; opacity: 1; }
#view-me .vip-card .tagline strong { margin-left: auto; color: #50627f; font-size: 11px; font-weight: 650; }
.me-plan-note-icon { display: inline-grid; width: 19px; height: 19px; flex: 0 0 19px; place-items: center; border-radius: 50%; background: #e9f8f0; color: #16a765; font-size: 11px; font-weight: 800; }
.me-plan-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(240px,1fr) minmax(390px,1.35fr) minmax(230px,.78fr); align-items: stretch; gap: 18px; }
.me-plan-identity, .me-plan-metric { min-width: 0; }
.me-plan-identity { display: flex; min-height: 108px; flex-direction: column; justify-content: center; padding: 3px 22px 3px 3px; border-right: 1px solid #e4e9f2; }
.me-plan-status-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 8px; margin-bottom: 12px; }
.me-plan-kicker { color: #74839d; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.me-agent-badge { display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid #ead08b; border-radius: 999px; background: #fff5d8; color: #9a6815; font-size: 10.5px; font-weight: 800; }
.me-plan-subtitle { margin-top: 8px; color: #8592a8; font-size: 11px; }
.me-plan-overview { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10px; min-width: 0; }
.me-plan-metric { min-height: 108px; display: flex; align-items: center; gap: 13px; padding: 17px 18px; border: 1px solid #e5eaf4; border-radius: 15px; background: rgba(247,249,255,.86); }
.me-plan-metric-icon { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 11px; background: #eaf1ff; color: #4f71e8; font-size: 16px; }
.me-plan-metric .big span { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.me-plan-expiry .me-plan-metric-icon { background: #f0edff; color: #7558e7; }
.me-plan-expiry .big { font-size: 21px !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.me-plan-mark { position: absolute; top: -13px; right: -2px; color: rgba(91,91,225,.07); font-size: 62px; font-weight: 900; line-height: 1; letter-spacing: -5px; pointer-events: none; }
.me-plan-actions {
  position: relative; z-index: 2; display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 9px; margin: 0; padding: 9px;
  border: 1px solid #e1e7f0; border-radius: 15px; background: rgba(248,250,255,.9);
}
.me-plan-actions .me-plan-action {
  display: inline-flex; width: 100%; min-width: 0; min-height: 43px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; padding: 0 15px;
  border: 1px solid #6f83f4; border-radius: 10px; color: #4865df;
  font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.me-plan-action-icon { display: inline-grid; width: 21px; height: 21px; place-items: center; border-radius: 7px; font-size: 13px; }
.me-plan-action-redeem { background: #fff; }
.me-plan-action-redeem .me-plan-action-icon { background: #edf1ff; }
.me-plan-actions .me-plan-action-renew {
  border-color: transparent; background: linear-gradient(110deg,#306ff3,#7651ed); color: #fff;
  box-shadow: 0 7px 16px rgba(62,84,218,.22);
}
.me-plan-action-renew .me-plan-action-icon { background: rgba(255,255,255,.15); color: #fff; }
.me-plan-actions .me-plan-action:hover { transform: translateY(-1px); }
.me-plan-actions .me-plan-action-redeem:hover { background: #f5f7ff; }
.me-plan-actions .me-plan-action-renew:hover { background: linear-gradient(110deg,#2866ed,#6846e4); box-shadow: 0 9px 20px rgba(62,84,218,.28); }

/* 通过审核的代理用户使用金色会员卡主题 */
#view-me .vip-card.agent-member-card {
  border-color: #ead49c;
  background:
    radial-gradient(circle at 88% 12%, rgba(208,155,45,.18), transparent 28%),
    radial-gradient(circle at 5% 92%, rgba(245,205,108,.13), transparent 30%),
    linear-gradient(135deg,#fffef9 0%,#fffaf0 55%,#fff5d9 100%);
  box-shadow: 0 18px 42px rgba(151,103,17,.14);
}
#view-me .vip-card.agent-member-card::before { background: linear-gradient(90deg,#a86f12,#f1c75b 48%,#b57b18); }
#view-me .vip-card.agent-member-card .me-plan-identity { border-color: #eadfbe; }
#view-me .vip-card.agent-member-card .me-plan-kicker { color: #9a7432; }
#view-me .vip-card.agent-member-card .me-plan-metric { border-color: #ecdfbd; background: rgba(255,252,241,.9); }
#view-me .vip-card.agent-member-card .me-plan-metric-icon { background: #fff0c5; color: #a36d13; }
#view-me .vip-card.agent-member-card .me-plan-expiry .me-plan-metric-icon { background: #f8e4ad; color: #94600d; }
#view-me .vip-card.agent-member-card .me-plan-actions { border-color: #ead9a9; background: rgba(255,250,235,.92); }
#view-me .vip-card.agent-member-card .me-plan-action-redeem { border-color: #c79431; color: #93620d; background: #fffef9; }
#view-me .vip-card.agent-member-card .me-plan-action-redeem .me-plan-action-icon { background: #fff0c9; }
#view-me .vip-card.agent-member-card .me-plan-actions .me-plan-action-renew { background: linear-gradient(110deg,#b87b13,#e5b844); color: #fff; box-shadow: 0 7px 17px rgba(166,112,16,.22); }
#view-me .vip-card.agent-member-card .me-plan-actions .me-plan-action-renew:hover { background: linear-gradient(110deg,#a96f0e,#d9a72f); box-shadow: 0 9px 21px rgba(166,112,16,.28); }
#view-me .vip-card.agent-member-card .me-plan-mark { color: rgba(159,106,15,.08); }
#view-me .vip-card.agent-member-card .tagline { border-color: #eadfbe; }
#view-me .vip-card.agent-member-card .me-plan-note-icon { background: #fff0c9; color: #9b6912; }
.me-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); box-shadow: 0 12px 30px rgba(28, 46, 89, .06); }
.me-tabs { display: flex; align-items: center; gap: 8px; padding: 0 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fff,#fbfcff); }
.me-tabs.single { display: none; }
.me-tabs button, .agent-subtabs button {
  position: relative; border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; transition: color .15s, background .15s;
}
.me-tabs button { min-height: 62px; padding: 0 21px; }
.me-tabs button:hover, .agent-subtabs button:hover { color: var(--brand); }
.me-tabs button.on { color: var(--brand); }
.me-tabs button.on::after, .agent-subtabs button.on::after {
  content: ""; position: absolute; right: 12px; bottom: -1px; left: 12px; height: 3px;
  border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--brand), #6b5cf5);
}
.me-pane { display: none; padding: 22px; }
.me-pane.on { display: block; }
.me-inner-panel { margin: 0; border-radius: 14px; box-shadow: none; }
.me-account-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; padding: 0 2px; }
.me-account-head h2 { margin: 2px 0 3px; font-size: 20px; }
.me-account-head p { color: var(--muted); font-size: 12px; }
.me-eyebrow { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.me-account-state { flex: 0 0 auto; padding: 7px 11px; border-radius: 999px; background: #e8f8ef; color: #15975a; font-size: 11px; font-weight: 700; }
.me-account-grid { align-items: stretch; }
.me-account-grid > .panel { padding: 20px; }
.me-panel-title { display: flex; align-items: center; gap: 10px; }
.me-panel-title > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: #edf2ff; color: var(--brand); font-size: 16px; font-weight: 800; }
.me-panel-title h2 { margin: 0; font-size: 16px; }
.me-panel-title p { margin-top: 2px; color: var(--muted); font-size: 11px; }
.me-profile-panel, .me-security-panel { background: linear-gradient(180deg,#fff,#fcfdff); }
.me-orders-panel { margin-top: 18px; padding: 0; overflow: hidden; }
.me-orders-panel .me-section-head { margin: 0; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.me-section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.me-section-head h2 { margin: 0 0 4px; }
.me-section-head p { color: var(--muted); font-size: 12px; }
.me-order-actions { display: flex; align-items: center; gap: 12px; }
.me-order-actions > span { color: var(--muted); font-size: 11px; }
.me-order-actions .btn { padding: 8px 14px; font-size: 12px; }
.me-order-list { display: grid; }
.me-order-item { display: grid; grid-template-columns: 42px minmax(240px,1fr) 110px 90px 150px; align-items: center; gap: 13px; min-height: 72px; padding: 11px 20px; border-bottom: 1px solid var(--line); }
.me-order-item:last-child { border-bottom: 0; }
.me-order-item:hover { background: #fafcff; }
.me-order-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; font-size: 18px; font-weight: 800; }
.me-order-icon.buy { background: #edf3ff; color: #3474ef; }
.me-order-icon.upgrade { background: #f1edff; color: #7758e9; }
.me-order-icon.redeem { background: #e9f8f0; color: #10a467; }
.me-order-main strong, .me-order-main span { display: block; }
.me-order-main strong { font-size: 13px; }
.me-order-main strong small { margin-left: 7px; color: var(--muted); font-size: 10px; font-weight: 500; }
.me-order-main span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.me-order-price { color: #1b2b49; font-size: 13px; font-weight: 800; }
.me-order-status { text-align: center; }
.me-order-item time { color: var(--muted); font-size: 10px; text-align: right; }
.me-order-empty { display: grid; min-height: 220px; place-items: center; align-content: center; padding: 28px; text-align: center; }
.me-order-empty > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 15px; background: #edf2ff; color: var(--brand); font-size: 22px; }
.me-order-empty b { margin-top: 12px; }
.me-order-empty p { margin: 5px 0 14px; color: var(--muted); font-size: 12px; }
.me-order-empty .btn { width: auto; }
.redeem-panel { max-width: 720px; margin: 8px auto; padding: 42px; text-align: center; }
.redeem-panel > p { margin: 6px 0 24px; color: var(--muted); line-height: 1.8; }
.me-feature-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; border-radius: 16px; background: linear-gradient(135deg,rgba(37,99,235,.12),rgba(124,58,237,.12)); color: var(--brand); font-size: 25px; }
.agent-subtabs { display: flex; gap: 22px; overflow-x: auto; padding: 0 4px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.agent-subtabs::-webkit-scrollbar { display: none; }
.agent-subtabs button { flex: 0 0 auto; min-height: 48px; padding: 0 8px; }
#agent-content { padding-top: 18px; }
.agent-application-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 22px 24px; border: 1px solid rgba(82,93,225,.18); border-radius: 17px; background: linear-gradient(110deg,#f0f3ff 0%,#f8f5ff 58%,#f2f7ff 100%); }
.agent-application-hero::after { content: ""; position: absolute; top: -65px; right: 95px; width: 180px; height: 180px; border: 32px solid rgba(112,83,232,.045); border-radius: 50%; }
.agent-application-hero > div { min-width: 0; flex: 1; }
.agent-application-eyebrow { display: block; margin-bottom: 3px; color: #7458dd; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; }
.agent-application-hero h2 { margin: 0 0 5px; font-size: 19px; }
.agent-application-hero p { color: var(--muted); font-size: 12px; }
.agent-application-hero > strong { position: relative; z-index: 2; padding: 7px 12px; border: 1px solid rgba(104,73,216,.10); border-radius: 999px; background: rgba(255,255,255,.68); color: #6849d8; font-size: 10.5px; white-space: nowrap; }
.agent-application-hero > strong i { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: #7657e9; box-shadow: 0 0 0 3px rgba(118,87,233,.1); }
.agent-application-benefits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin: 13px 0; }
.agent-application-benefits > div { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(180deg,#fff,#fcfdff); box-shadow: 0 6px 14px rgba(35,51,91,.035); }
.agent-application-benefits b, .agent-application-benefits span { display: block; }
.agent-application-benefits b { font-size: 13px; }
.agent-application-benefits span { margin-top: 4px; color: var(--muted); font-size: 10.5px; }
.agent-application-benefits .agent-benefit-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; margin: 0; place-items: center; border-radius: 11px; font-size: 17px; font-weight: 800; }
.agent-benefit-icon.price { background: #fff4e8; color: #e88723 !important; }
.agent-benefit-icon.code { background: #eef2ff; color: #5e69e8 !important; }
.agent-benefit-icon.safe { background: #eaf8f1; color: #18a56d !important; }
.agent-application-state { display: flex; align-items: center; gap: 13px; margin: 14px 0; padding: 15px 17px; border-radius: 12px; }
.agent-application-state > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; font-weight: 800; }
.agent-application-state > div { min-width: 0; flex: 1; }
.agent-application-state b, .agent-application-state p { display: block; }
.agent-application-state p { margin-top: 4px; font-size: 11px; line-height: 1.65; }
.agent-application-state > em { font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.agent-application-state.pending { border: 1px solid #f4d79b; background: #fff8e7; color: #9a6500; }
.agent-application-state.pending > span { background: #ffedbd; }
.agent-application-state.rejected { border: 1px solid #fac5cd; background: #fff1f3; color: #bd3447; }
.agent-application-state.rejected > span { background: #ffdfe4; }
.agent-application-workspace { display: grid; grid-template-columns: minmax(0,1fr) 275px; align-items: stretch; gap: 13px; max-width: 1000px; margin: 14px auto 2px; }
.agent-application-form { min-width: 0; margin: 0; padding: 21px 22px 22px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(180deg,#fff,#fbfcff); box-shadow: 0 8px 20px rgba(35,51,91,.045); }
.agent-application-form-head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.agent-application-form-head > span { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 10px; background: #eef2ff; color: #5969e8; font-size: 15px; }
.agent-application-form-head > div { min-width: 0; flex: 1; }
.agent-application-form-head b, .agent-application-form-head small { display: block; }
.agent-application-form-head b { font-size: 14px; }
.agent-application-form-head small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.agent-application-form-head > em { padding: 4px 8px; border-radius: 999px; background: #fff1f2; color: #d04a5a; font-size: 9px; font-style: normal; font-weight: 750; }
.agent-application-field + .agent-application-field { margin-top: 14px; }
.agent-application-field label { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; color: #33435f; font-size: 12px; }
.agent-application-field label span { padding: 2px 6px; border-radius: 999px; background: #eef2f7; color: #7a879c; font-size: 8px; }
.agent-application-field label span.required { background: #fff0f1; color: #d04a5a; }
.agent-application-field input, .agent-application-field textarea { display: block; box-sizing: border-box; width: 100%; padding: 11px 13px; }
.agent-application-field > small { display: block; margin-top: 6px; color: var(--muted); font-size: 9.5px; }
.agent-application-form textarea { min-height: 122px; line-height: 1.7; resize: vertical; }
.agent-application-field-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; color: var(--muted); font-size: 9.5px; }
.agent-application-agree { display: flex; align-items: center; gap: 7px; margin: 13px 0; color: var(--muted); font-size: 11px; }
.agent-application-agree span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #e8f8ef; color: #15975a; font-weight: 800; }
.agent-application-form > .btn { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: center; gap: 9px; box-shadow: 0 8px 18px rgba(65,83,224,.18); }
.agent-application-form > .btn i { font-size: 16px; font-style: normal; transition: transform .15s; }
.agent-application-form > .btn:hover i { transform: translateX(3px); }
.agent-application-guide { padding: 20px; border: 1px solid #e2e6f0; border-radius: 15px; background: linear-gradient(160deg,#f7f8ff,#fff); }
.agent-application-guide-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.agent-application-guide-head span { font-size: 13px; font-weight: 750; }
.agent-application-guide-head em { color: var(--muted); font-size: 8.5px; font-style: normal; }
.agent-application-guide ol { position: relative; display: grid; gap: 20px; margin: 20px 0; padding: 0; list-style: none; }
.agent-application-guide ol::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 14px; width: 1px; background: #dce2ef; }
.agent-application-guide li { position: relative; display: flex; align-items: center; gap: 11px; }
.agent-application-guide li > i { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border: 1px solid #ced8f5; border-radius: 9px; background: #fff; color: #5268e6; font-size: 10px; font-style: normal; font-weight: 800; z-index: 1; }
.agent-application-guide li b, .agent-application-guide li span { display: block; }
.agent-application-guide li b { font-size: 11.5px; }
.agent-application-guide li span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.agent-application-guide > p { display: flex; gap: 7px; margin: 0; padding: 11px; border-radius: 10px; background: #eaf8f1; color: #288463; font-size: 9.5px; line-height: 1.5; }
.reseller-application-table { min-width: 940px; }
.reseller-application-reason { max-width: 310px; white-space: normal; line-height: 1.55; }
.reseller-application-reason small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.reseller-user-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.reseller-user-summary > span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); color: var(--muted); font-size: 11px; }
.reseller-user-summary > span b { color: var(--text); }
.reseller-user-summary > span.pending { border-color: #f3d7a0; background: #fff8e8; color: #aa6c08; }
.reseller-user-summary > span.active { border-color: #bfe8d2; background: #effbf5; color: #168557; }
.reseller-management-table { min-width: 1080px; }
.reseller-management-table th:nth-child(1) { width: 16%; }
.reseller-management-table th:nth-child(2) { width: 27%; }
.reseller-management-table th:nth-child(3) { width: 23%; }
.reseller-user-application { display: grid; gap: 4px; max-width: 330px; white-space: normal; line-height: 1.45; }
.reseller-user-application b { font-size: 11px; }
.reseller-user-application span { color: var(--text); }
.reseller-user-application small { color: var(--muted); font-size: 10px; }
.reseller-business-stats { display: flex; gap: 6px; }
.reseller-business-stats > span { min-width: 58px; padding: 6px 8px; border-radius: 8px; background: var(--panel2); color: var(--muted); font-size: 9px; text-align: center; }
.reseller-business-stats b { display: block; margin-bottom: 2px; color: var(--text); font-size: 13px; }
.reseller-tier-tag { display: inline-flex; margin-top: 6px; }
.reseller-user-disabled { display: inline-flex; margin-left: 5px; }
.agent-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; padding: 18px 20px;
  border: 1px solid rgba(98,77,226,.16); border-radius: 14px; background: linear-gradient(100deg,rgba(79,95,240,.10),rgba(137,93,238,.06));
}
.agent-banner-main { display: flex; align-items: center; gap: 14px; }
.agent-badge-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px; background: linear-gradient(135deg,#7b5cf3,#9f68e9); color: #fff; font-size: 22px; box-shadow: 0 8px 18px rgba(111,82,224,.24); }
.agent-banner h2 { margin: 0 0 5px; font-size: 17px; }
.agent-banner p { color: var(--muted); font-size: 12px; }
.agent-tier { padding: 5px 13px; border-radius: 999px; background: rgba(124,58,237,.11); color: #7147d8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.agent-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.agent-kpi { position: relative; min-height: 86px; padding: 15px 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.agent-kpi::after { content: ""; position: absolute; right: -18px; bottom: -24px; width: 72px; height: 72px; border-radius: 50%; background: rgba(37,99,235,.06); }
.agent-kpi span { color: var(--muted); font-size: 11.5px; }
.agent-kpi strong { display: block; margin-top: 7px; color: #162446; font-size: 23px; line-height: 1; }
.agent-kpi small { margin-left: 3px; color: var(--muted); font-size: 11px; font-weight: 400; }
.agent-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(280px,.8fr); gap: 14px; }
.agent-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 17px; }
.agent-card h3 { margin-bottom: 13px; font-size: 15px; }
.agent-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.agent-card-head h3 { margin: 0; }
.agent-card-head button { border: 0; background: transparent; color: var(--brand); cursor: pointer; font-family: inherit; font-size: 12px; }
.agent-quick { display: grid; gap: 9px; }
.agent-quick button { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--text); cursor: pointer; font-family: inherit; text-align: left; }
.agent-quick button:hover { border-color: rgba(37,99,235,.4); color: var(--brand); }
.agent-empty { padding: 30px 16px; color: var(--muted); text-align: center; }
.agent-table-wrap { overflow-x: auto; }
.agent-table { min-width: 680px; }
.agent-table td { vertical-align: middle; }
.agent-code { font-family: Consolas,monospace; color: #1d4ed8; font-weight: 700; letter-spacing: .35px; }
.agent-status { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.agent-status.pending { background: #fff4d9; color: #b96900; }
.agent-status.approved, .agent-status.unused { background: #e9f9f0; color: #138a4a; }
.agent-status.rejected, .agent-status.disabled { background: #feecef; color: #c63849; }
.agent-status.used { background: #edf2f9; color: #667085; }
.agent-order-builder { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(23,37,70,.045); }
.agent-builder-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg,#fbfcff,#f5f7ff); }
.agent-builder-head > div:first-child > span { display: inline-flex; margin-bottom: 4px; color: var(--brand); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.agent-builder-head h3 { margin: 0; color: #172441; font-size: 19px; }
.agent-builder-head p { margin-top: 5px; color: var(--muted); font-size: 11.5px; }
.agent-builder-steps { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; color: #94a0b3; font-size: 10.5px; font-weight: 700; }
.agent-builder-steps span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.agent-builder-steps i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #e9edf5; color: #8490a4; font-size: 9px; font-style: normal; }
.agent-builder-steps span.on { color: #4b62d8; }
.agent-builder-steps span.on i { background: #e8edff; color: #4e63db; }
.agent-builder-steps b { width: 24px; height: 1px; background: #dfe4ee; }
.agent-builder-section { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.agent-step-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.agent-step-title > i, .agent-checkout-title > i { display: grid; width: 29px; height: 29px; flex: 0 0 29px; place-items: center; border-radius: 9px; background: #eef2ff; color: #5268e6; font-size: 11px; font-style: normal; font-weight: 850; }
.agent-step-title b, .agent-step-title span, .agent-checkout-title b, .agent-checkout-title span { display: block; }
.agent-step-title b, .agent-checkout-title b { color: #1d2942; font-size: 13px; }
.agent-step-title span, .agent-checkout-title span { margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.agent-plan-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 9px; }
.agent-plan-tile { position: relative; min-height: 116px; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); cursor: pointer; font-family: inherit; text-align: left; transition: border-color .16s,box-shadow .16s,transform .16s; }
.agent-plan-tile:hover { border-color: #bbc8f5; transform: translateY(-1px); }
.agent-plan-tile.on { border-color: #6678e8; background: linear-gradient(150deg,#f8f9ff,#eef2ff); box-shadow: inset 0 0 0 1px rgba(82,104,230,.2),0 6px 15px rgba(69,84,190,.08); }
.agent-plan-check { position: absolute; top: 10px; right: 10px; display: none; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #5b6fe4; color: #fff; font-size: 9px; }
.agent-plan-tile.on .agent-plan-check { display: grid; }
.agent-plan-tile > small { display: block; margin-bottom: 5px; color: #8190a7; font-size: 9px; }
.agent-plan-tile > b { display: block; overflow: hidden; padding-right: 17px; color: #192743; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.agent-plan-tile > em { display: block; margin-top: 4px; color: var(--muted); font-size: 9.5px; font-style: normal; }
.agent-plan-tile > strong { display: block; margin-top: 11px; color: var(--brand); font-size: 17px; }
.agent-plan-tile > strong small { margin-left: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.agent-builder-quantity { background: #fcfdff; }
.agent-quantity-row { display: flex; align-items: center; gap: 16px; }
.agent-qty-control { display: grid; grid-template-columns: 38px 100px 38px; height: 40px; overflow: hidden; border: 1px solid #cfd7e7; border-radius: 10px; background: #fff; }
.agent-qty-control button { border: 0; background: #f6f8fc; color: #33415d; cursor: pointer; font-family: inherit; font-size: 18px; }
.agent-qty-control button:hover { background: #edf1fa; color: var(--brand); }
.agent-qty-control input { width: 100%; height: 40px; padding: 0 6px; border: 0; border-right: 1px solid #e3e7ef; border-left: 1px solid #e3e7ef; border-radius: 0; background: #fff; color: #172441; font-weight: 800; text-align: center; }
.agent-qty-control input::-webkit-inner-spin-button { appearance: none; }
.agent-qty-presets { display: flex; flex-wrap: wrap; gap: 7px; }
.agent-qty-presets button { min-width: 58px; height: 34px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #65738a; cursor: pointer; font-family: inherit; font-size: 10.5px; }
.agent-qty-presets button:hover, .agent-qty-presets button.on { border-color: #aebdf1; background: #eef2ff; color: #4e62d7; font-weight: 750; }
.agent-tier-strip { display: flex; align-items: center; gap: 7px; margin-top: 14px; padding-top: 13px; border-top: 1px dashed #dce2ec; }
.agent-tier-strip > span { flex: 0 0 auto; margin-right: 3px; color: var(--muted); font-size: 9.5px; }
.agent-tier-strip button { display: flex; align-items: center; gap: 5px; padding: 6px 9px; border: 1px solid transparent; border-radius: 8px; background: #f2f4f8; color: #68768c; cursor: pointer; font-family: inherit; }
.agent-tier-strip button b { font-size: 9.5px; }
.agent-tier-strip button small { color: inherit; font-size: 9px; }
.agent-tier-strip button.on { border-color: #c5d1fb; background: #edf1ff; color: #4e63d9; }
.agent-checkout { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(370px,1.4fr) minmax(230px,.9fr); align-items: center; gap: 22px; padding: 18px 22px; background: #fff; }
.agent-checkout-title { display: flex; align-items: center; gap: 10px; }
.agent-checkout-metrics { display: grid; grid-template-columns: repeat(4,minmax(70px,1fr)); align-items: center; }
.agent-checkout-metrics > div { min-height: 40px; padding: 0 14px; border-left: 1px solid var(--line); }
.agent-checkout-metrics span, .agent-checkout-metrics b { display: block; }
.agent-checkout-metrics span { color: var(--muted); font-size: 9px; }
.agent-checkout-metrics b { margin-top: 5px; color: #22304c; font-size: 12px; }
.agent-checkout-metrics b.saving { color: var(--ok); }
.agent-checkout-metrics strong { display: block; margin-top: 2px; color: #465fe0; font-size: 20px; white-space: nowrap; }
.agent-checkout-actions { display: grid; gap: 7px; }
.agent-checkout-actions .agent-agree { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 9.5px; }
.agent-checkout-actions .agent-agree input[type="checkbox"] {
  display: grid; width: 16px; min-width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0;
  place-items: center; appearance: none; border: 1.5px solid #b8c3d6; border-radius: 4px; background: #fff;
  box-shadow: none; cursor: pointer;
}
.agent-checkout-actions .agent-agree input[type="checkbox"]::after { content: "✓"; color: #fff; font-size: 11px; font-weight: 900; line-height: 1; transform: scale(0); transition: transform .12s ease; }
.agent-checkout-actions .agent-agree input[type="checkbox"]:checked { border-color: #4f68e4; background: #4f68e4; }
.agent-checkout-actions .agent-agree input[type="checkbox"]:checked::after { transform: scale(1); }
.agent-checkout-actions .agent-agree input[type="checkbox"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(79,104,228,.16); }
.agent-checkout-actions .btn { width: 100%; min-height: 40px; box-shadow: 0 7px 16px rgba(70,91,217,.17); }
.agent-builder-note { display: flex; align-items: center; gap: 7px; margin: 0 22px 17px; padding: 9px 11px; border-radius: 9px; background: #fff8e8; color: #967027; font-size: 9.5px; }
.agent-builder-note > span { display: grid; width: 18px; height: 18px; flex: 0 0 18px; place-items: center; border-radius: 50%; background: #ffe6ac; color: #a76b00; font-size: 9px; font-weight: 800; }
.agent-copy { border: 0; background: rgba(37,99,235,.08); color: var(--brand); border-radius: 7px; padding: 4px 8px; cursor: pointer; }
.agent-rules { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.reseller-pricing-shell { margin-bottom: 22px; }
.reseller-plan-switcher {
  display: flex; gap: 8px; margin-bottom: 10px; padding: 6px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 13px; background: var(--panel2); scrollbar-width: none;
}
.reseller-plan-switcher::-webkit-scrollbar { display: none; }
.reseller-plan-switcher button {
  min-width: 126px; flex: 1 0 126px; padding: 10px 12px; border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--muted); cursor: pointer; font-family: inherit; text-align: left; transition: .16s ease;
}
.reseller-plan-switcher button:hover { color: var(--text); background: #fff; }
.reseller-plan-switcher button.on { border-color: rgba(37,99,235,.2); background: #fff; color: var(--brand); box-shadow: 0 4px 13px rgba(37,99,235,.09); }
.reseller-plan-switcher b { display: block; margin-bottom: 3px; color: inherit; font-size: 13px; }
.reseller-plan-switcher small { color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.reseller-pricing-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.reseller-pricing-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fff,#fbfcff); }
.reseller-plan-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.reseller-plan-title > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: rgba(37,99,235,.09); color: var(--brand); font-size: 18px; font-weight: 800; }
.reseller-plan-title h3 { margin: 0 0 4px; font-size: 15px; }
.reseller-plan-title p { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.reseller-pricing-head > .btn { flex: 0 0 auto; }
.reseller-rule-list { padding: 0 18px; }
.reseller-rule-row {
  display: grid; grid-template-columns: minmax(180px,1.4fr) minmax(105px,.75fr) minmax(125px,.8fr) 76px 112px;
  align-items: center; gap: 14px; min-height: 78px; border-bottom: 1px solid var(--line);
}
.reseller-rule-row:last-child { border-bottom: 0; }
.reseller-rule-threshold { display: flex; align-items: center; gap: 11px; min-width: 0; }
.reseller-rule-threshold > span { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 9px; background: #eef3ff; color: var(--brand); font-size: 12px; font-weight: 800; }
.reseller-rule-threshold b { display: block; color: #172444; font-size: 14px; }
.reseller-rule-threshold small,
.reseller-rule-price small,
.reseller-rule-saving small { display: block; margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.reseller-rule-price strong { color: #13213d; font-size: 18px; }
.reseller-rule-price em { color: var(--muted); font-size: 10.5px; font-style: normal; }
.reseller-rule-saving > span { display: inline-flex; padding: 3px 8px; border-radius: 999px; background: #fff4db; color: #ad6800; font-size: 11px; font-weight: 800; }
.reseller-rule-state { text-align: center; }
.reseller-rule-actions { display: flex; justify-content: flex-end; gap: 5px; }
.reseller-rule-actions button { padding: 6px 9px; border: 1px solid rgba(37,99,235,.25); border-radius: 7px; background: #fff; color: var(--brand); cursor: pointer; font-family: inherit; font-size: 11px; }
.reseller-rule-actions button:hover { background: rgba(37,99,235,.06); }
.reseller-rule-actions button.danger { border-color: rgba(239,68,68,.25); color: var(--err); }
.reseller-rule-actions button.danger:hover { background: rgba(239,68,68,.05); }
.reseller-rule-empty { padding: 32px 16px; color: var(--muted); text-align: center; }
.reseller-price-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; padding: 12px 14px; border-radius: 10px; background: var(--panel2); }
.reseller-price-context b { font-size: 14px; }
.reseller-price-context span { color: var(--muted); font-size: 11px; }
.reseller-price-fields { gap: 10px; }
.reseller-price-preview { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 42px; margin-top: 13px; padding: 0 13px; border: 1px dashed rgba(37,99,235,.24); border-radius: 10px; background: rgba(37,99,235,.035); color: var(--muted); font-size: 11.5px; }
.reseller-price-preview b { color: #ad6800; font-size: 13px; }

@media (max-width: 1050px) {
  .admin-user-filters { grid-template-columns: 1fr 1fr; }
  .admin-user-search { grid-column: 1 / -1; }
  .admin-user-reset { grid-column: 2; }
  .me-plan-grid { grid-template-columns: minmax(220px,.85fr) minmax(390px,1.35fr); }
  .me-plan-actions { grid-column: 1 / -1; flex-direction: row; margin: 0; }
  .me-plan-actions .me-plan-action { flex: 1; }
  .reseller-rule-row { grid-template-columns: minmax(155px,1.25fr) minmax(100px,.7fr) minmax(112px,.75fr) 68px 102px; gap: 9px; }
}

@media (max-width: 920px) {
  .agent-application-workspace { grid-template-columns: 1fr; }
  .agent-application-guide { display: none; }
  .me-order-item { grid-template-columns: 42px minmax(220px,1fr) 100px 80px; }
  .me-order-item time { display: none; }
  .agent-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .agent-checkout { grid-template-columns: 1fr; gap: 14px; }
  .agent-checkout-metrics > div:first-child { border-left: 0; }
  .reseller-rule-row { grid-template-columns: 1.2fr .8fr .8fr auto; }
  .reseller-rule-state { display: none; }
  .agent-summary { position: static; }
}

@media (max-width: 760px) {
  .admin-user-filters { grid-template-columns: 1fr; }
  .admin-user-search, .admin-user-reset { grid-column: auto; }
  .me-page-head h1 { font-size: 22px; }
  #view-me .vip-card { min-height: 0; padding: 22px 20px 17px; }
  .me-plan-grid { grid-template-columns: 1fr; gap: 12px; }
  .me-plan-identity { grid-column: auto; min-height: auto; display: flex; padding: 0 0 16px; border-right: 0; border-bottom: 1px solid #e4e9f2; }
  .me-plan-status-row { margin-bottom: 10px; }
  .me-plan-overview { grid-template-columns: 1fr 1fr; }
  .me-plan-metric { min-height: 86px; padding: 13px; }
  .me-plan-metric-icon { display: none; }
  .me-plan-expiry { padding-left: 13px; border-left: 1px solid #e5eaf4; }
  .me-plan-mark { display: none; }
  .me-plan-actions { grid-column: auto; width: auto; margin: 0; }
  .me-plan-actions .me-plan-action { min-width: 0; flex: 1; }
  #view-me .vip-card .tagline strong { display: none; }
  .me-account-head { align-items: flex-start; }
  .me-account-state { display: none; }
  .me-account-grid { grid-template-columns: 1fr; }
  .me-orders-panel .me-section-head { align-items: flex-start; flex-direction: column; }
  .me-order-actions { width: 100%; justify-content: space-between; }
  .me-order-item { grid-template-columns: 38px minmax(0,1fr) auto; gap: 9px; padding: 10px 12px; }
  .me-order-price { display: none; }
  .me-order-status { text-align: right; }
  .me-tabs { gap: 2px; overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
  .me-tabs::-webkit-scrollbar { display: none; }
  .me-tabs button { flex: 0 0 auto; min-height: 52px; padding: 0 13px; }
  .me-pane { padding: 12px; }
  .redeem-panel { padding: 24px 15px; }
  .agent-banner { align-items: flex-start; flex-direction: column; }
  .agent-application-hero { align-items: flex-start; }
  .agent-application-hero > strong { display: none; }
  .agent-application-benefits { grid-template-columns: 1fr; }
  .agent-application-form { padding: 15px; }
  .agent-application-form-head > em { display: none; }
  .agent-kpis { gap: 8px; }
  .agent-kpi { min-height: 78px; padding: 12px; }
  .agent-kpi strong { font-size: 20px; }
  .agent-qty { grid-template-columns: 1fr 120px; }
  .agent-qty small { grid-column: 1 / -1; }
}
