/* ModelBridge 用户门户 — 现代浅色主题（精致版） */

:root {
  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI",
          "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "SF Mono", "JetBrains Mono", "Inter", ui-monospace, monospace;

  /* 中性色 */
  --bg: #fafbfc;
  --surface: #ffffff;
  --border: #eaecf0;
  --border-2: #d0d5dd;

  /* 文字 */
  --text: #101828;
  --text-2: #475467;
  --text-3: #98a2b3;

  /* 品牌色（ModelBridge 蓝紫渐变） */
  --brand: #5b5bd6;
  --brand-2: #7c3aed;
  --brand-soft: #eef0ff;
  --accent: #06b6d4;
  --grad: linear-gradient(135deg, #5b5bd6 0%, #06b6d4 100%);
  --grad-soft: linear-gradient(135deg, #eef0ff 0%, #ecfeff 100%);

  /* 语义色 */
  --success: #10b981;
  --success-soft: #d1fae5;
  --warning: #f59e0b;
  --warning-soft: #fef3c7;
  --danger: #ef4444;
  --danger-soft: #fee2e2;
  --info: #3b82f6;
  --info-soft: #dbeafe;

  /* 阴影 */
  --sh-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --sh-2: 0 4px 12px rgba(16, 24, 40, 0.08);
  --sh-3: 0 12px 32px rgba(16, 24, 40, 0.12);

  /* 半径 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(91, 91, 214, 0.06), transparent),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea {
  font-family: inherit; outline: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 14px; border-radius: var(--r-md);
  transition: all 0.15s ease;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.12);
}
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type=checkbox] { width: auto; accent-color: var(--brand); }

/* ===================== 共用 ===================== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.row { display: flex; align-items: center; gap: 12px; }
.col { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

.h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.h3 { font-size: 16px; font-weight: 600; }
.label { font-size: 12px; font-weight: 500; color: var(--text-2); letter-spacing: 0.02em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 10px 18px; border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px; font-weight: 500;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-2); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  border-color: transparent; color: white; font-weight: 600;
  box-shadow: 0 2px 8px rgba(91, 91, 214, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(91, 91, 214, 0.35); transform: translateY(-1px); color: white; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; border-color: #dc2626; color: white; }
.btn-success { background: var(--success); border-color: var(--success); color: white; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-1);
  transition: all 0.15s ease;
}
.card:hover { box-shadow: var(--sh-2); }
.card-flat { box-shadow: none; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }

.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  background: var(--bg); color: var(--text-2);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
.tag-success { background: var(--success-soft); color: #047857; }
.tag-warning { background: var(--warning-soft); color: #b45309; }
.tag-danger  { background: var(--danger-soft);  color: #b91c1c; }
.tag-info    { background: var(--info-soft);    color: #1d4ed8; }
.tag-brand   { background: var(--brand-soft);   color: var(--brand-2); }

.toast {
  position: fixed; top: 24px; right: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand);
  padding: 14px 20px; border-radius: var(--r-md);
  z-index: 200; min-width: 260px; max-width: 420px;
  box-shadow: var(--sh-3);
  animation: slideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 14px; font-weight: 500;
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* 骨架屏 */
.skel {
  background: linear-gradient(90deg, var(--bg) 25%, #f0f1f3 50%, var(--bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ===================== Landing / Auth ===================== */
.landing {
  min-height: 100vh;
  display: flex; flex-direction: column;
  padding: 24px;
}
.landing-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; width: 100%;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700;
  color: var(--text);
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 12px rgba(91, 91, 214, 0.3);
}
.brand-logo {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: contain;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(91, 91, 214, 0.25);
  transition: box-shadow 0.2s;
}
.brand:hover .brand-logo { box-shadow: 0 6px 18px rgba(91, 91, 214, 0.35); }
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center;
  padding: 60px 24px; text-align: center;
  max-width: 800px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  background: var(--brand-soft);
  color: var(--brand-2);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 56px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 18px;
}
.hero h1 .grad {
  background: var(--grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  color: var(--text-2); font-size: 18px;
  max-width: 560px; margin-bottom: 32px; line-height: 1.6;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-cta .btn { padding: 13px 24px; font-size: 15px; }
.hero-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1100px; width: 100%; margin: 80px auto 0;
}
.feature {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all 0.2s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--brand-soft); }
.feature-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.feature p { color: var(--text-2); font-size: 13px; line-height: 1.55; }

/* Auth */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 440px;
  padding: 36px;
}
.auth-card .brand { margin-bottom: 28px; justify-content: center; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; text-align: center; }
.auth-card .sub { color: var(--text-2); margin-bottom: 28px; font-size: 13px; text-align: center; }
.auth-tabs {
  display: flex; background: var(--bg);
  border-radius: var(--r-md); padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 8px 12px; text-align: center;
  border-radius: 8px; cursor: pointer;
  color: var(--text-2); font-weight: 500; font-size: 13px;
  transition: all 0.15s;
}
.auth-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--sh-1); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 500; color: var(--text-2); }
.field .hint { font-size: 11px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--danger); min-height: 16px; }
.auth-foot { text-align: center; color: var(--text-2); font-size: 13px; margin-top: 18px; }
.auth-foot a { font-weight: 600; }

/* 注册冲突提示框 + 找回密码相关 */
.conflict-box {
  margin-top: 4px; margin-bottom: 14px; padding: 14px 16px;
  background: #fef3c7; border: 1px solid #fcd34d; border-radius: var(--r-md);
}
.conflict-head { font-size: 13px; font-weight: 600; color: #92400e; margin-bottom: 12px; }
.conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.auth-extra { text-align: right; margin: -8px 0 12px; }
.auth-extra .link-sm, .link-sm { font-size: 12px; color: var(--text-3); font-weight: 500; }
.auth-extra .link-sm:hover, .link-sm:hover { color: var(--primary); }
.ok { font-size: 12px; color: #059669; min-height: 0; margin-bottom: 10px; word-break: break-all; }

/* ===================== App Shell ===================== */
.app-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 20px 16px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 4px 8px 24px; }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.sidebar nav a {
  padding: 10px 12px; border-radius: var(--r-md);
  color: var(--text-2); display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 500;
  transition: all 0.1s;
}
.sidebar nav a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.sidebar nav a.active { background: var(--brand-soft); color: var(--brand-2); }
.sidebar nav a .ico { font-size: 16px; width: 20px; text-align: center; }
.sidebar .divider { margin: 8px 4px; }
.sidebar .user-box {
  padding: 12px;
  background: var(--bg);
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 10px;
}
.sidebar .user-box .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0;
}
.sidebar .user-box .info { flex: 1; min-width: 0; }
.sidebar .user-box .name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar .user-box .plan { font-size: 11px; color: var(--text-2); font-family: var(--font-num); }
.sidebar .user-box button {
  background: none; border: none; padding: 4px;
  color: var(--text-3); cursor: pointer;
  border-radius: 6px;
}
.sidebar .user-box button:hover { color: var(--danger); background: var(--danger-soft); }

.btn-logout {
  display: flex; align-items: center; justify-content: flex-start;
  gap: 10px;
  width: 100%; margin-top: 12px;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-2);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-logout svg { flex-shrink: 0; opacity: 0.6; transition: opacity 0.15s; }
.btn-logout:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  border-left-color: var(--danger);
  color: var(--danger);
}
.btn-logout:hover svg { opacity: 1; }
.btn-logout:active { transform: translateY(1px); }

.main { padding: 32px 40px 60px; }
.page-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px; flex-wrap: wrap;
}
.page-header h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.page-header .sub { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* ====== 配额卡 ====== */
.quota-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  overflow: hidden;
  margin-bottom: 24px;
}
.quota-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad);
}
.quota-card .top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 24px;
}
.quota-card .plan-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--brand-soft);
  color: var(--brand-2);
  border-radius: 999px;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.quota-card .plan-pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(91, 91, 214, 0.2);
}
.quota-card .reset {
  font-size: 12px; color: var(--text-2);
  display: flex; align-items: center; gap: 6px;
}
.quota-card .big {
  font-size: 56px; font-weight: 800;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 8px;
}
.quota-card .big small {
  font-size: 22px; font-weight: 600;
  color: var(--text-3); margin-left: 4px;
}
.quota-card .desc { color: var(--text-2); font-size: 14px; margin-bottom: 20px; }
.quota-card .progress {
  height: 8px; background: var(--bg);
  border-radius: 999px; overflow: hidden; margin-bottom: 8px;
  position: relative;
}
.quota-card .progress > div {
  height: 100%; background: var(--grad);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.quota-card .progress-row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-2);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}

/* ====== 网格卡 ====== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: all 0.15s;
}
.stat-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.stat-card .label {
  font-size: 12px; color: var(--text-2); font-weight: 500;
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.05em;
}
.stat-card .value {
  font-size: 28px; font-weight: 700;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-card .delta { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.stat-card.success .value { color: var(--success); }
.stat-card.warning .value { color: var(--warning); }

/* ====== 表格 ====== */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.table th {
  background: var(--bg); color: var(--text-2); font-weight: 600;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg); }
.table .mono { font-family: var(--font-num); font-size: 12px; color: var(--text-2); }
.table .right { text-align: right; }

/* ====== 套餐卡（计费页） ====== */
.plan-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 24px;
}
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  position: relative;
  transition: all 0.2s;
  display: flex; flex-direction: column;
}
.plan-card:hover { box-shadow: var(--sh-3); transform: translateY(-2px); }
.plan-card.featured {
  background: var(--grad);
  color: white;
  border-color: transparent;
  box-shadow: 0 12px 32px rgba(91, 91, 214, 0.25);
}
.plan-card.featured:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(91, 91, 214, 0.4); }
.plan-card .badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}
.plan-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.plan-card .desc { font-size: 13px; opacity: 0.8; margin-bottom: 20px; }
.plan-card.featured .desc { color: rgba(255, 255, 255, 0.85); }
.plan-card .price {
  font-size: 42px; font-weight: 800;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 4px;
}
.plan-card .price small {
  font-size: 14px; font-weight: 500; opacity: 0.7;
}
.plan-card ul { list-style: none; margin: 20px 0; flex: 1; }
.plan-card ul li {
  font-size: 13px; padding: 8px 0;
  display: flex; align-items: flex-start; gap: 10px;
  border-top: 1px solid var(--border);
}
.plan-card.featured ul li { border-top-color: rgba(255, 255, 255, 0.15); }
.plan-card ul li::before {
  content: "✓"; color: var(--success); font-weight: 800; flex-shrink: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--success-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
}
.plan-card.featured ul li::before { background: rgba(255, 255, 255, 0.2); color: white; }
.plan-card .btn { margin-top: 8px; }
.plan-card.featured .btn-primary { background: white; color: var(--brand); }
.plan-card.featured .btn-primary:hover { background: #f9fafb; color: var(--brand-2); }
.plan-card .btn[disabled] { background: var(--bg); color: var(--text-3); border-color: var(--border); }

/* ====== 用量曲线 ====== */
.chart-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 24px;
}
.chart-card h3 {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.chart-card h3 .legend {
  display: flex; gap: 16px;
  font-size: 12px; font-weight: 500;
}
.chart-card h3 .legend .item {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text-2);
}
.chart-card h3 .legend .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.chart-card h3 .legend .item.search .dot { background: var(--accent); }
.chart-card h3 .legend .item.chat .dot { background: var(--brand); }
.bars {
  display: flex; align-items: flex-end; gap: 8px;
  height: 180px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.bars .bar {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; min-width: 0;
}
.bars .bar .stack {
  width: 70%; max-width: 32px;
  display: flex; flex-direction: column; gap: 2px;
  align-items: stretch;
  min-height: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.bars .bar:hover .stack { transform: scaleY(1.05); }
.bars .bar .seg {
  width: 100%; border-radius: 3px;
  transition: opacity 0.2s;
}
.bars .bar .seg.search { background: var(--accent); }
.bars .bar .seg.chat { background: var(--brand); }
.bars .bar .val {
  font-size: 11px; font-weight: 700;
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}
.bars .bar .lbl {
  font-size: 11px; color: var(--text-3);
  font-family: var(--font-num); font-variant-numeric: tabular-nums;
}

/* ====== Modal ====== */
.modal-bg {
  position: fixed; inset: 0;
  background: rgba(16, 24, 40, 0.5);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 100;
  padding: 24px;
}
.modal-bg.show { display: flex; animation: fadeIn 0.15s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  width: 100%; max-width: 480px;
  box-shadow: var(--sh-3);
  animation: slideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal h2 { font-size: 20px; margin-bottom: 6px; }
.modal .desc { color: var(--text-2); font-size: 13px; margin-bottom: 20px; }
.modal .actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

/* ====== API Key ====== */
.key-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px;
  margin-bottom: 12px;
  transition: all 0.15s;
}
.key-card:hover { border-color: var(--border-2); box-shadow: var(--sh-1); }
.key-card.disabled { opacity: 0.6; }
.key-card .row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.key-card .name { font-size: 15px; font-weight: 600; }
.key-card .fp {
  font-family: var(--font-num); font-size: 12px;
  color: var(--text-2);
  background: var(--bg);
  padding: 3px 8px; border-radius: 6px;
}
.key-card .meta {
  font-size: 12px; color: var(--text-2);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.key-card .meta b { color: var(--text); font-weight: 600; }
.key-card .actions { margin-left: auto; }
.key-secret {
  font-family: var(--font-num); font-size: 13px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-md);
  word-break: break-all; user-select: all;
  margin: 12px 0;
}
.key-warning {
  display: flex; gap: 10px;
  padding: 12px 14px;
  background: var(--warning-soft);
  border: 1px solid #fcd34d;
  border-radius: var(--r-md);
  color: #92400e;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ====== Empty ====== */
.empty {
  text-align: center; padding: 60px 16px;
  color: var(--text-2);
}
.empty .ico {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--grad-soft);
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.empty .title { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.empty .sub { font-size: 13px; }

/* 移动端汉堡 */
.burger {
  display: none;
  position: fixed; top: 12px; left: 12px; z-index: 45;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 20px;
  align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--sh-2);
  transition: opacity 0.2s;
}
.sidebar.open ~ .burger { display: none; }

/* responsive */
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); transition: transform 0.2s; width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .burger { display: inline-flex; }
  .main { padding: 20px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 15px; }
  .quota-card .big { font-size: 42px; }
}