/* ============================================================================
 * vi-translate profile.html 样式
 * ============================================================================ */
:root {
  --brand: #07C160;
  --brand-dark: #06B257;
  --ink: #1E293B;
  --canvas: #F8FAFC;
  --border: #e6e9ec;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'PingFang SC', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(900px 460px at 50% -12%, rgba(7,193,96,.10) 0%, transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #eef2f1 100%);
  color: var(--ink);
  min-height: 100vh;
}

.brand-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  transition: transform .15s ease, box-shadow .15s ease;
}
.brand-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(7,193,96,.45); }
.brand-btn:active { transform: translateY(0); }

.card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px -8px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  padding: 24px;
}

.stat-num {
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-num.brand { color: var(--brand); }

.avatar-circle {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center;
  font-size: 22px; font-weight: 600; letter-spacing: 0;
  box-shadow: 0 4px 12px -2px rgba(7,193,96,.35);
}

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
}
.pill-gray { background: #f1f5f9; color: #475569; }
.pill-green { background: rgba(7,193,96,.10); color: #06B257; }
.pill-amber { background: #fef3c7; color: #b45309; }

.skeleton {
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 6px;
  color: transparent;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.fade-in { animation: fadeIn .3s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* ========== 套餐卡片 ========== */
.plan-card {
  position: relative;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 16px 16px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(15,23,42,.10);
  border-color: var(--brand);
}
.plan-card.featured {
  border-color: var(--brand);
  box-shadow: 0 8px 24px -8px rgba(7,193,96,.30);
  background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%);
}
.plan-card .ribbon {
  position: absolute;
  top: -10px; right: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px -2px rgba(7,193,96,.35);
}
.plan-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--brand-dark);
  background: rgba(7,193,96,.08);
  padding: 2px 8px;
  border-radius: 999px;
  margin: 6px 0 10px;
}
.plan-min {
  font-size: 32px; font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.plan-min-unit { font-size: 13px; font-weight: 400; color: #94a3b8; margin-left: 2px; }
.plan-permin { font-size: 11px; color: #94a3b8; margin: 4px 0 12px; }
.plan-buy {
  width: 100%;
  padding: 8px 0;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink);
  font-size: 13px; font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.plan-buy:hover { background: var(--brand); color: #fff; }
.plan-card.featured .plan-buy {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}
.plan-card.featured .plan-buy:hover { box-shadow: 0 8px 16px -4px rgba(7,193,96,.45); }

/* ========== 账号设置行 ========== */
.setting-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}
.setting-row:last-child { border-bottom: none; }
.setting-label {
  width: 80px;
  flex-shrink: 0;
  color: #64748b;
  font-size: 14px;
}
.setting-value {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.setting-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.setting-btn:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ========== Modal ========== */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn .15s ease;
}
.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 20px 50px -10px rgba(15,23,42,.30);
}
.modal-label {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 500;
}
.modal-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: border-color .15s ease;
  font-family: inherit;
}
.modal-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(7,193,96,.10);
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15,23,42,.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  z-index: 200;
  box-shadow: 0 10px 24px -8px rgba(15,23,42,.40);
  animation: toastIn .2s ease-out;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast-ok { background: rgba(6,178,87,.95); }
.toast-err { background: rgba(220,38,38,.95); }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

/* ========== 响应式 ========== */
@media (max-width: 480px) {
  .card { padding: 18px; border-radius: 16px; }
  .stat-num { font-size: 30px; }
  .setting-label { width: 70px; }
  .plan-min { font-size: 26px; }
}