:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --primary: #111827;
  --text: #1a1a1a;
  --text2: #6b7280;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --blue: #3b82f6;
  --blue-light: #eff6ff;
  --green: #10b981;
  --green-light: #ecfdf5;
  --red: #ef4444;
  --red-light: #fef2f2;
  --orange: #f59e0b;
  --purple: #8b5cf6;
  --purple-light: #f5f3ff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);
  --sidebar-w: 248px;
  --sidebar-collapsed-w: 64px;
  --nav-h: 56px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; transition: color 0.15s; }
a:hover { text-decoration: underline; }

/* ==================== 应用布局 ==================== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
  width: var(--sidebar-w);
  background: var(--card);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, width 0.25s ease;
  overflow-y: auto;
}
.sidebar-header {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
  flex-shrink: 0;
}
.sidebar-header .brand {
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-header .brand:hover { text-decoration: none; }
.sidebar-nav {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}
.nav-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 12px 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text2);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 2px;
  position: relative;
  text-decoration: none;
}
.nav-item:hover {
  background: var(--border-light);
  color: var(--text);
  text-decoration: none;
}
.nav-item.active {
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 600;
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 20px;
  background: var(--blue);
  border-radius: 0 3px 3px 0;
}
.nav-item svg {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.nav-item .nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}
.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}
.sidebar-user:hover { background: var(--border-light); }
.sidebar-user .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.sidebar-user .user-info {
  flex: 1;
  min-width: 0;
}
.sidebar-user .user-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user .user-plan {
  font-size: 11px;
  color: var(--text2);
}

/* 主内容区 */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.25s ease;
}
.topbar {
  height: var(--nav-h);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 12px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-title {
  font-size: 16px;
  font-weight: 700;
}
.sidebar-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text2);
}
.sidebar-toggle:hover { background: var(--border-light); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  position: relative;
  transition: background 0.15s;
}
.topbar-icon-btn:hover { background: var(--border-light); color: var(--text); }
.topbar-icon-btn .dot {
  position: absolute;
  top: 8px; right: 8px;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--card);
}
.content-area {
  flex: 1;
  padding: 24px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* 页面切换 */
.page { display: none; }
.page.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 页面标题 */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.page-header h2 {
  font-size: 22px;
  font-weight: 800;
}
.page-header .subtitle {
  font-size: 14px;
  color: var(--text2);
  margin-top: 2px;
}

/* ==================== 通用组件 ==================== */
.container { max-width: 960px; margin: 0 auto; padding: 20px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.card-hover:hover { box-shadow: var(--shadow-md); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: all 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(17,24,39,0.25); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #059669; transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #dc2626; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg); border-color: #d1d5db; }
.btn-ghost { background: transparent; color: var(--text2); }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 6px; }
.btn-lg { padding: 12px 28px; font-size: 15px; }

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--card);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
input::placeholder, textarea::placeholder { color: #9ca3af; }

label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12px; color: var(--text2); margin-top: -10px; margin-bottom: 16px; }

/* 导航栏（登录/注册等页面用） */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav-brand { font-weight: 700; font-size: 17px; }
.nav-links { display: flex; gap: 16px; align-items: center; }
.nav-links a { color: var(--text2); font-size: 14px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-ok { background: var(--green-light); color: #065f46; border: 1px solid #d1fae5; }
.alert-err { background: var(--red-light); color: #991b1b; border: 1px solid #fecaca; }
.alert-warn { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.alert-info { background: var(--blue-light); color: #1e40af; border: 1px solid #bfdbfe; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--text2); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; }
tbody tr { transition: background 0.1s; }
tbody tr:hover { background: var(--bg); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-gray { background: #f3f4f6; color: #6b7280; }
.badge-blue { background: #dbeafe; color: #1e40af; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text2);
}
.empty-state .empty-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.5;
}

/* Section 标题 */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.section-title h3 { margin: 0; }

.table-wrap { overflow-x: auto; }

/* ==================== Modal ==================== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 16px;
}
.modal-overlay.show { display: flex; animation: fadeIn 0.15s; }
.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  animation: modalSlide 0.2s ease;
}
@keyframes modalSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal h3 { margin-bottom: 20px; }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.modal-header h3 { margin: 0; }
.modal-close {
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text2);
  font-size: 20px;
}
.modal-close:hover { background: var(--border-light); color: var(--text); }

/* ==================== 统计卡片 ==================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.stat-info .num { font-size: 24px; font-weight: 800; line-height: 1.2; }
.stat-info .label { font-size: 12px; color: var(--text2); }
.icon-blue { background: rgba(59,130,246,0.1); color: var(--blue); }
.icon-green { background: rgba(16,185,129,0.1); color: var(--green); }
.icon-purple { background: rgba(139,92,246,0.1); color: var(--purple); }
.icon-orange { background: rgba(249,115,22,0.1); color: var(--orange); }
.icon-red { background: rgba(239,68,68,0.1); color: var(--red); }

/* ==================== 仓库卡片 ==================== */
.repo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.repo-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-color: #d1d5db; }
.repo-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.repo-card-title { font-weight: 600; font-size: 15px; }
.repo-card-meta { font-size: 13px; color: var(--text2); margin-bottom: 8px; }
.repo-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.token-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; background: #d1fae5; color: #065f46; margin-left: 8px; }

/* ==================== 上传区 ==================== */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.upload-zone:hover { border-color: var(--blue); background: rgba(59,130,246,0.02); }
.upload-zone.dragover { border-color: var(--blue); background: rgba(59,130,246,0.05); }
.upload-zone .upload-icon { font-size: 40px; margin-bottom: 12px; }
.upload-zone .upload-text { font-size: 14px; color: var(--text2); }
.upload-zone .upload-file { font-size: 14px; font-weight: 600; color: var(--text); margin-top: 8px; }

.progress-bar { width: 100%; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; margin-top: 12px; display: none; }
.progress-bar.show { display: block; }
.progress-fill { height: 100%; background: var(--blue); border-radius: 3px; transition: width 0.3s; }

/* ==================== 危险区域 ==================== */
.danger-zone { border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius); padding: 20px; margin-top: 20px; background: var(--red-light); }
.danger-zone h3 { color: var(--red); margin-bottom: 12px; }

.commit-link { color: var(--blue); font-family: monospace; font-size: 12px; }

/* ==================== 上传结果弹窗 ==================== */
.result-overlay { position: fixed; inset: 0; background: rgba(17,24,39,0.5); backdrop-filter: blur(4px); display: none; justify-content: center; align-items: center; z-index: 9999; padding: 16px; opacity: 0; transition: opacity 0.25s; }
.result-overlay.show { display: flex; opacity: 1; }
.result-modal { background: #fff; border-radius: 20px; width: 90%; max-width: 420px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,0.2); transform: scale(0.9) translateY(10px); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.result-overlay.show .result-modal { transform: scale(1) translateY(0); }
.result-icon-wrap { width: 72px; height: 72px; border-radius: 50%; margin: 32px auto 0; display: flex; align-items: center; justify-content: center; font-size: 34px; animation: resultPop 0.5s cubic-bezier(0.34,1.56,0.64,1); }
.result-icon-ok { background: linear-gradient(135deg,#d1fae5,#a7f3d0); color: #059669; box-shadow: 0 8px 24px rgba(16,185,129,0.2); }
.result-icon-err { background: linear-gradient(135deg,#fef2f2,#fecaca); color: #dc2626; box-shadow: 0 8px 24px rgba(239,68,68,0.2); }
.result-icon-info { background: linear-gradient(135deg,#dbeafe,#bfdbfe); color: #2563eb; box-shadow: 0 8px 24px rgba(59,130,246,0.2); }
@keyframes resultPop { 0% { transform: scale(0) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
.result-title { text-align: center; font-size: 20px; font-weight: 700; margin: 16px 0 6px; }
.result-message { text-align: center; font-size: 14px; color: var(--text2); padding: 0 28px; line-height: 1.6; }
.result-details { margin: 20px 28px; background: var(--bg); border-radius: 12px; padding: 16px; }
.result-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13px; }
.result-detail-row + .result-detail-row { border-top: 1px solid var(--border); }
.result-detail-label { color: var(--text2); }
.result-detail-value { font-weight: 600; font-family: monospace; font-size: 12px; }
.result-actions { padding: 0 28px 28px; }
.result-btn { width: 100%; padding: 12px; border-radius: 10px; font-size: 15px; font-weight: 600; border: none; cursor: pointer; transition: all 0.2s; }
.result-btn-ok { background: linear-gradient(135deg,#111827,#374151); color: #fff; }
.result-btn-ok:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(17,24,39,0.3); }
.result-btn-err { background: linear-gradient(135deg,#fef2f2,#fee2e2); color: #dc2626; border: 1px solid #fecaca; }
.result-btn-err:hover { background: #fecaca; }
.result-confetti { position: absolute; width: 8px; height: 8px; pointer-events: none; animation: confettiFall 1.2s ease-out forwards; }
@keyframes confettiFall { 0% { transform: translateY(-40px) rotate(0); opacity: 1; } 100% { transform: translateY(120px) rotate(360deg); opacity: 0; } }

/* ==================== 套餐卡片 ==================== */
.plan-card { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 14px; padding: 24px; color: #fff; margin-bottom: 24px; }
.plan-card.free { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }
.plan-card.pro { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }
.plan-card.enterprise { background: linear-gradient(135deg, #8b5cf6 0%, #5b21b6 100%); }
.plan-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.plan-card-title { font-size: 20px; font-weight: 800; }
.plan-card-price { font-size: 14px; opacity: 0.9; }
.plan-card-price strong { font-size: 28px; font-weight: 800; }
.usage-info { background: rgba(255,255,255,0.15); border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; }
.usage-info-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.usage-bar-bg { width: 100%; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; overflow: hidden; }
.usage-bar-fill { height: 100%; background: #fff; border-radius: 4px; transition: width 0.3s; }
.plan-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.plan-actions .btn { background: rgba(255,255,255,0.2); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.plan-actions .btn:hover { background: rgba(255,255,255,0.3); }

/* ==================== 文件预览列表 ==================== */
.file-preview-list { max-height: 280px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 16px; }
.file-preview-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 13px; min-height: 36px; }
.file-preview-item:last-child { border-bottom: none; }
.file-preview-item .file-path { font-family: monospace; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.file-preview-item .file-size { color: var(--text2); white-space: nowrap; margin-left: 8px; flex-shrink: 0; font-size: 12px; }

/* ==================== 升级套餐弹窗 ==================== */
.upgrade-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.upgrade-plan { border: 2px solid var(--border); border-radius: 10px; padding: 16px; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; }
.upgrade-plan:hover { border-color: var(--blue); }
.upgrade-plan.selected { border-color: var(--blue); background: rgba(59,130,246,0.05); }
.upgrade-plan.current { border-color: var(--green); }
.upgrade-plan .plan-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.upgrade-plan .plan-price { font-size: 22px; font-weight: 800; color: var(--blue); }
.upgrade-plan .plan-price small { font-size: 12px; font-weight: 400; color: var(--text2); }
.upgrade-plan .plan-features { font-size: 12px; color: var(--text2); margin-top: 8px; text-align: left; padding-left: 12px; line-height: 1.6; }
.upgrade-plan .current-tag { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 11px; padding: 2px 10px; border-radius: 10px; }

/* ==================== 批量上传 ==================== */
.batch-repo-list { max-height: 200px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; display: none; }
.batch-repo-item { display: flex; align-items: center; gap: 8px; padding: 6px 4px; cursor: pointer; font-size: 14px; }
.batch-repo-item:hover { background: rgba(59,130,246,0.03); }
.batch-repo-item input[type="checkbox"] { accent-color: var(--blue); width: 16px; height: 16px; }

/* ==================== Webhook ==================== */
.webhook-card { border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.webhook-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.webhook-info { flex: 1; min-width: 200px; }
.webhook-platform { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; background: #dbeafe; color: #1e40af; margin-right: 8px; }
.webhook-url { font-family: monospace; font-size: 13px; word-break: break-all; }
.webhook-events { font-size: 12px; color: var(--text2); margin-top: 4px; }
.webhook-actions { display: flex; gap: 6px; }

/* ==================== OAuth ==================== */
.oauth-repo-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.oauth-repo-item:last-child { border-bottom: none; }
.oauth-repo-name { font-weight: 600; }
.oauth-repo-desc { font-size: 12px; color: var(--text2); margin-top: 2px; }

/* ==================== 通知项 ==================== */
.notif-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover { background: rgba(59,130,246,0.02); }
.notif-item.unread { background: rgba(59,130,246,0.03); }

/* ==================== Tabs ==================== */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
}
.tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text2);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-sm { font-size: 13px; }
.text-muted { color: var(--text2); }
.font-mono { font-family: monospace; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.hidden { display: none; }
.w-full { width: 100%; }

/* ==================== 响应式 ==================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .grid3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    box-shadow: 2px 0 20px rgba(0,0,0,0.1);
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .upgrade-plans { grid-template-columns: 1fr; }
  .modal { padding: 20px; }
  .content-area { padding: 16px; }
  .card { padding: 18px; }
  .nav { padding: 12px 16px; }
  .nav-links { gap: 12px; }
  .container { padding: 16px; }
}

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 10px; }
  .topbar { padding: 0 16px; }
}

/* Sidebar 遮罩（移动端） */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 99;
}
.sidebar.mobile-open ~ .sidebar-overlay { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ============================================================
   GitShip Landing Page (2026 SaaS style)
   Reuses --bg / --card / --text / --text2 / --border / --primary
   / --blue / --green / --purple / --orange / --radius* / --shadow*
   ============================================================ */

/* Landing root + dark hero palette */
.landing {
  --gs-dark: #0a0a0b;
  --gs-dark-2: #111114;
  --gs-dark-3: #18181b;
  --gs-line: rgba(255,255,255,0.08);
  --gs-line-strong: rgba(255,255,255,0.14);
  --gs-muted: #a1a1aa;
  --gs-muted-2: #71717a;
  --gs-blue: #3b82f6;
  --gs-violet: #8b5cf6;
  --gs-green: #10b981;
  --gs-cyan: #06b6d4;
  --gs-pink: #ec4899;
  --gs-orange: #f59e0b;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== Landing Nav (sticky, transparent -> solid on scroll) ===== */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(10,10,11,0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.landing-nav.scrolled {
  background: rgba(10,10,11,0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--gs-line);
  padding: 10px 24px;
}
.landing-nav .ln-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.landing-nav .ln-brand:hover { text-decoration: none; }
.landing-nav .ln-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gs-blue), var(--gs-violet));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.landing-nav .ln-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.landing-nav .ln-links a {
  color: var(--gs-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.landing-nav .ln-links a:hover { color: #fff; text-decoration: none; }
.landing-nav .ln-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0b;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.landing-nav .ln-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.18);
  text-decoration: none;
  color: #0a0a0b;
}
.landing-nav .ln-burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--gs-line);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.landing-nav .ln-mobile {
  display: none;
  position: fixed;
  top: 60px; left: 12px; right: 12px;
  background: var(--gs-dark-2);
  border: 1px solid var(--gs-line);
  border-radius: 14px;
  padding: 14px;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.landing-nav .ln-mobile.open { display: flex; }
.landing-nav .ln-mobile a {
  color: var(--gs-muted);
  font-size: 15px;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
}
.landing-nav .ln-mobile a:hover { background: rgba(255,255,255,0.05); color: #fff; }
.landing-nav .ln-mobile .ln-cta { text-align: center; margin-top: 4px; }

/* ===== Hero (dark gradient) ===== */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(59,130,246,0.18), transparent 60%),
    radial-gradient(700px 400px at 85% 20%, rgba(139,92,246,0.14), transparent 55%),
    radial-gradient(600px 400px at 15% 30%, rgba(16,185,129,0.10), transparent 55%),
    var(--gs-dark);
  color: #fff;
  padding: 96px 24px 72px;
  text-align: center;
  overflow: hidden;
}
/* Slow animated gradient sheen (15s) */
.hero::after {
  content: '';
  position: absolute;
  inset: -50% -10% auto -10%;
  height: 380px;
  background: linear-gradient(120deg,
    rgba(59,130,246,0) 0%,
    rgba(59,130,246,0.22) 25%,
    rgba(139,92,246,0.22) 50%,
    rgba(16,185,129,0.18) 75%,
    rgba(59,130,246,0) 100%);
  background-size: 200% 100%;
  filter: blur(40px);
  opacity: 0.55;
  animation: heroGradient 15s ease-in-out infinite;
  pointer-events: none;
}
@keyframes heroGradient {
  0%   { background-position: 0% 50%; transform: translateY(0) scale(1); }
  50%  { background-position: 100% 50%; transform: translateY(-10px) scale(1.05); }
  100% { background-position: 0% 50%; transform: translateY(0) scale(1); }
}
/* Subtle grid backdrop */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--gs-line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--gs-muted);
  font-weight: 500;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
}
.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--gs-green);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.18);
  animation: gsPulse 2s ease-in-out infinite;
}
@keyframes gsPulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(1.25); }
}
.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hero h1 .gradient-text {
  background: linear-gradient(120deg, #60a5fa 0%, #a78bfa 45%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.hero-desc {
  font-size: clamp(15px, 2vw, 19px);
  color: var(--gs-muted);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero {
  padding: 14px 30px;
  font-size: 15px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn-hero-primary {
  background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
  color: #0a0a0b;
  box-shadow: 0 6px 20px rgba(255,255,255,0.16);
}
.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255,255,255,0.22);
  text-decoration: none;
  color: #0a0a0b;
}
.btn-hero-secondary {
  background: rgba(255,255,255,0.06);
  color: #fff;
  border-color: var(--gs-line-strong);
  backdrop-filter: blur(6px);
}
.btn-hero-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  text-decoration: none;
  color: #fff;
}

/* ===== Terminal / code preview ===== */
.terminal-preview {
  position: relative;
  max-width: 720px;
  margin: 48px auto 0;
  background: var(--gs-dark-2);
  border: 1px solid var(--gs-line);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02);
  overflow: hidden;
  text-align: left;
  font-family: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
}
.terminal-preview .tp-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--gs-line);
}
.terminal-preview .tp-dot {
  width: 12px; height: 12px; border-radius: 50%;
  display: inline-block;
}
.terminal-preview .tp-dot.r { background: #ff5f57; }
.terminal-preview .tp-dot.y { background: #febc2e; }
.terminal-preview .tp-dot.g { background: #28c840; }
.terminal-preview .tp-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--gs-muted-2);
  font-family: inherit;
}
.terminal-preview .tp-body {
  padding: 22px 24px;
  font-size: 13.5px;
  line-height: 1.85;
  color: #e4e4e7;
  overflow-x: auto;
}
.terminal-preview .tp-body .c-prompt { color: var(--gs-green); }
.terminal-preview .tp-body .c-cmd { color: #fff; }
.terminal-preview .tp-body .c-flag { color: var(--gs-cyan); }
.terminal-preview .tp-body .c-str { color: var(--gs-orange); }
.terminal-preview .tp-body .c-ok { color: var(--gs-green); }
.terminal-preview .tp-body .c-dim { color: var(--gs-muted-2); }
.terminal-preview .tp-body .c-blue { color: #60a5fa; }
.terminal-preview .tp-body .c-violet { color: #c4b5fd; }
.terminal-preview .tp-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: #fff;
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: gsBlink 1.1s steps(2) infinite;
}
@keyframes gsBlink { 0%,49%{opacity:1;} 50%,100%{opacity:0;} }
.terminal-preview .tp-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 70% 0%, rgba(59,130,246,0.10), transparent 60%);
  pointer-events: none;
}

/* ===== Stats Bar ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  background: var(--card);
  text-align: center;
  padding: 30px 16px;
}
.stat-value {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--blue), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: var(--text2);
  margin-top: 6px;
}

/* ===== Section header (light sections) ===== */
.section { padding: 84px 24px; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section-header h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.section-header p {
  color: var(--text2);
  font-size: 16px;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ===== Feature grid ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1040px;
  margin: 0 auto;
}
.feature-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59,130,246,0.25);
}
.feature-card:hover::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(139,92,246,0.3));
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.feature-icon.blue { background: rgba(59,130,246,0.1); color: var(--blue); }
.feature-icon.green { background: rgba(16,185,129,0.1); color: var(--green); }
.feature-icon.purple { background: rgba(139,92,246,0.1); color: var(--purple); }
.feature-icon.orange { background: rgba(249,115,22,0.1); color: var(--orange); }
.feature-icon.pink { background: rgba(236,72,153,0.1); color: var(--gs-pink); }
.feature-icon.cyan { background: rgba(6,182,212,0.1); color: var(--gs-cyan); }
.feature-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.feature-card p { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* ===== How it works ===== */
.how-section {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 920px;
  margin: 0 auto;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 22px; left: 16%; right: 16%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step-item { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111827 0%, #374151 100%);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(17,24,39,0.25);
  border: 4px solid var(--card);
}
.step-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step-item p { font-size: 14px; color: var(--text2); line-height: 1.65; max-width: 240px; margin: 0 auto; }

/* ===== Pricing ===== */
.pricing-section { background: var(--bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
  align-items: stretch;
}
.pricing-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border: 2px solid var(--blue);
  box-shadow: 0 18px 50px rgba(59,130,246,0.18);
}
.pricing-card.featured:hover { transform: translateY(-6px); }
.pricing-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.pricing-name { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
.pricing-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}
.pricing-price .per { font-size: 14px; font-weight: 400; color: var(--text2); }
.pricing-price.free { color: var(--text); }
.pricing-price.pro { color: var(--blue); }
.pricing-price.ent { color: var(--purple); }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  flex: 1;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-features li svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.pricing-card .btn { width: 100%; justify-content: center; }
.pricing-note {
  text-align: center;
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--green-light);
  color: #065f46;
  border: 1px solid #d1fae5;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.pricing-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text2);
  padding: 40px 0;
  font-size: 14px;
}

/* ===== Donation ===== */
.donation-section {
  background: var(--card);
  border-top: 1px solid var(--border);
}
.donation-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.donation-heart {
  font-size: 40px;
  margin-bottom: 16px;
}
.donation-message {
  color: var(--text2);
  font-size: 16px;
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto 40px;
}
.donation-qr-grid {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
}
.donation-qr {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 220px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.donation-qr:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.donation-qr .qr-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.donation-qr .qr-img img { width: 100%; height: 100%; object-fit: cover; }
.donation-qr .qr-placeholder {
  color: var(--text2);
  font-size: 12px;
  text-align: center;
  padding: 20px;
  line-height: 1.6;
}
.donation-qr .qr-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}
.donation-contact {
  margin-top: 36px;
  color: var(--text2);
  font-size: 14px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.donation-contact span { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Footer ===== */
.landing-footer {
  background: var(--gs-dark);
  color: var(--gs-muted);
  padding: 56px 24px 36px;
}
.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gs-line);
}
.footer-brand .ln-brand { margin-bottom: 14px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--gs-muted);
  font-size: 14px;
  padding: 5px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 13px; }
.footer-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.footer-stack .tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gs-line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--gs-muted);
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .landing-nav .ln-links { display: none; }
  .landing-nav .ln-burger { display: flex; }
  .hero { padding: 64px 20px 56px; }
  .section { padding: 60px 20px; }
  .feature-grid { grid-template-columns: 1fr; max-width: 460px; }
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps-grid::before { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .pricing-card.featured { transform: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-hero { width: 100%; justify-content: center; }
  .terminal-preview .tp-body { font-size: 12px; padding: 18px; }
  .donation-qr { width: 100%; max-width: 280px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero::after,
  .hero-badge .dot,
  .terminal-preview .tp-cursor { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}
