*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000000;
  --card: #12121a;
  --border: #1e1e2e;
  --text: #e8e8f0;
  --muted: #6b6b80;
  --accent: #39ff14;
  --accent-dim: #2ecc12;
  --accent-glow: rgba(57, 255, 20, 0.25);
  --danger: #ff4458;
  --radius: 16px;
}

html, body {
  height: 100%;
  font-family: -apple-system, 'PingFang SC', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* 星空背景 - 纯黑 + 星点 */
.stars {
  position: fixed;
  inset: 0;
  background-color: #000;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 30% 65%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 70% 45%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 45% 90%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 92% 10%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 50% 50%, rgba(255,255,255,0.2), transparent);
  z-index: 0;
  pointer-events: none;
}

.app {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 侧边栏 */
.sidebar {
  position: fixed;
  top: 0; left: -280px;
  width: 260px;
  height: 100vh;
  background: rgba(12,12,20,0.97);
  backdrop-filter: blur(20px);
  z-index: 300;
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
}
.sidebar.open { left: 0; }

.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 250;
  display: none;
}
.sidebar-overlay.show { display: block; }

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
/* 站点 LOGO 统一容器：裁剪掉图片自带的透明边，视觉上放大图片，避免圆形/圆角框出现黑边 */
.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
}
.logo-frame > img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.15);
}
.site-logo-frame {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(57,255,20,0.35);
}
.logo-text { font-size: 1.3rem; font-weight: 700; color: var(--accent); }

.sidebar-nav { flex: 1; padding: 12px 0; }
.nav-item {
  display: block;
  padding: 14px 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.nav-item.active, .nav-item:hover {
  color: var(--accent);
  background: rgba(57,255,20,0.06);
}

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.sidebar-online { font-size: 0.85rem; color: var(--muted); }
.sidebar-online strong { color: var(--accent); }

/* 顶栏 */
.topbar {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: transparent;
  position: fixed;
  top: 0; left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  z-index: 100;
}
.menu-btn, .filter-btn {
  background: none; border: none;
  color: #fff; font-size: 1.3rem;
  cursor: pointer; padding: 6px;
  display: flex; align-items: center;
}
.menu-btn { margin-right: 8px; }
.topbar-logo-frame {
  width: 30px; height: 30px;
  border-radius: 50%;
  margin-right: auto;
  border: 1px solid rgba(57,255,20,0.35);
}
.filter-btn { margin-left: auto; color: var(--accent); }
.topbar-title { flex: 1; text-align: center; font-weight: 600; font-size: 1rem; }
.topbar-online { font-size: 0.8rem; color: var(--accent); margin-left: auto; }

/* 页面 */
.main { flex: 1; padding-bottom: 60px; padding-top: 52px; }
.page { display: none; padding: 0; animation: fadeUp 0.3s; min-height: calc(100vh - 120px); }
.page.active { display: block; }
#page-home.active { padding: 0; }

/* ── 首页（截图风格） ── */
.home-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 130px);
  padding: 20px 28px 10px;
  text-align: center;
}

.brand-area { margin-bottom: 48px; }

.brand-logo-wrap {
  width: 100px; height: 100px;
  margin: 0 auto 16px;
  position: relative;
  display: flex;
  border-radius: 50%;
  border: 2px solid rgba(57,255,20,0.45);
  filter: drop-shadow(0 0 24px rgba(57,255,20,0.6));
}

.brand-name {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 6px;
  color: #fff;
  margin-bottom: 10px;
}

.brand-online {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.brand-online span:first-of-type { color: var(--muted); }
.live-dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

/* 性别大按钮 */
.gender-pick {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 340px;
  margin-bottom: 28px;
}
.gender-btn {
  flex: 1;
  aspect-ratio: 1;
  max-height: 150px;
  background: #1a1a1a;
  border: 2px solid transparent;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  transition: all 0.25s;
}
.gender-btn .gender-icon { font-size: 2rem; line-height: 1; }
.gender-btn.active {
  border-color: var(--accent);
  background: rgba(57,255,20,0.08);
  box-shadow: 0 0 20px rgba(57,255,20,0.15);
}

/* 年龄显示 */
.age-display {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 36px;
  padding: 8px 16px;
}
.age-display:hover { color: #fff; }

/* 开始聊天 - 白色大按钮 */
.btn-start-chat {
  width: 100%;
  max-width: 340px;
  background: #fff;
  color: #0a0a0f;
  border: none;
  padding: 18px;
  border-radius: 50px;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 2px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(255,255,255,0.12);
}
.btn-start-chat:active { transform: scale(0.97); }

/* 筛选弹窗 */
.filter-box { text-align: left; }
.filter-box h2 { text-align: center; margin-bottom: 16px; }
.filter-box h3 { font-size: 0.85rem; color: var(--muted); margin: 14px 0 8px; }

/* 页脚（截图风格） */
.footer {
  text-align: center;
  padding: 12px 20px 20px;
  font-size: 0.68rem;
  color: #555;
  border-top: none;
  background: transparent;
  line-height: 1.6;
}
.footer p { margin-bottom: 2px; }

.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.chip.active {
  border-color: var(--accent);
  background: rgba(57,255,20,0.1);
  color: var(--accent);
}

.age-range { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.age-range label { font-size: 0.85rem; color: var(--muted); }
.age-range label strong { color: var(--accent); }
.age-range input[type=range] { width: 100%; accent-color: var(--accent); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.6; box-shadow: 0 0 0 8px transparent; }
}
#page-discover, #page-matches, #page-chat, #page-rules, #page-about, #page-queue, #page-vip, #page-settings, #page-invite {
  padding: 16px;
}

/* 按钮 */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #0a0a0f;
  border: none;
  padding: 14px 28px;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px var(--accent-glow); }
.btn-lg { padding: 16px; font-size: 1.05rem; margin-top: 20px; }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
}

/* 固定在底部的「返回匹配页面」按钮 */
#page-matches,
#page-invite,
#page-vip,
#page-settings,
#page-rules,
#page-about {
  padding-bottom: 96px;
}
.back-match-btn {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 448px;
  margin: 0 auto;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 12px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.back-match-btn:hover,
.back-match-btn:active {
  border-color: var(--accent);
  background: rgba(57,255,20,0.06);
  transform: translateY(-1px);
}
html[data-theme="light"] .back-match-btn:hover,
html[data-theme="light"] .back-match-btn:active {
  background: rgba(21,128,61,0.08);
}
html[data-theme="light"] .back-match-btn {
  box-shadow: 0 8px 24px rgba(30, 55, 40, 0.16);
}

/* 排队 */
.queue-screen { text-align: center; padding: 60px 20px; }
.radar {
  width: 120px; height: 120px;
  margin: 0 auto 24px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  position: relative;
  animation: radar 2s infinite;
}
.radar::after {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(57,255,20,0.3);
  border-radius: 50%;
}
@keyframes radar {
  0% { box-shadow: 0 0 0 0 var(--accent-glow); }
  70% { box-shadow: 0 0 0 30px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.anon-id { color: var(--accent); margin: 12px 0; }
.queue-tip { color: var(--muted); font-size: 0.85rem; margin-bottom: 24px; }

/* 发现卡片 */
.card-stack { position: relative; height: 420px; margin-bottom: 16px; }
.profile-card {
  position: absolute; inset: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s, opacity 0.3s;
  cursor: grab;
}
.profile-card .avatar-area {
  height: 280px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  background: linear-gradient(135deg, #1a1a28, #12121a);
}
.profile-card .info { padding: 16px; }
.profile-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.profile-card .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.profile-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.profile-card .tag {
  background: rgba(57,255,20,0.1);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
}
.profile-card.swipe-left { transform: translateX(-120%) rotate(-12deg); opacity: 0; }
.profile-card.swipe-right { transform: translateX(120%) rotate(12deg); opacity: 0; }

.swipe-actions { display: flex; justify-content: center; gap: 20px; }
.swipe-btn {
  width: 56px; height: 56px;
  border-radius: 50%; border: none;
  font-size: 1.3rem; cursor: pointer;
  transition: transform 0.2s;
}
.swipe-btn:hover { transform: scale(1.1); }
.swipe-btn.skip { background: var(--card); color: var(--danger); border: 1px solid var(--border); }
.swipe-btn.like { background: var(--accent); color: #0a0a0f; }
.swipe-btn.super { background: #ffd700; color: #0a0a0f; }

/* 匹配列表 */
.match-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px; cursor: pointer;
}
.avatar-frame {
  width: 48px; height: 48px;
  flex: 0 0 48px;
  border-radius: 50%;
  border: 1px solid rgba(57,255,20,0.22);
}
.match-item h4 { font-size: 0.95rem; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.match-item p { color: var(--muted); font-size: 0.8rem; margin-top: 3px; }

.empty-state { text-align: center; color: var(--muted); padding: 40px; }
.empty-state span { display: inline-block; margin-top: 6px; font-size: 0.75rem; }

/* 性别 / VIP 标识 */
.gender-tag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  font-size: 0.72rem; font-weight: 700; line-height: 1;
  flex-shrink: 0;
}
.gender-tag.male { color: #4da3ff; background: rgba(77,163,255,0.16); }
.gender-tag.female { color: #ff6b9a; background: rgba(255,107,154,0.16); }
.vip-tag {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 1px 6px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffd700, #ff9d00);
  color: #201600;
  font-size: 0.62rem; font-weight: 700; line-height: 1.5;
  white-space: nowrap;
}

/* 聊天消息列表 */
.chat-list-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 2px 16px;
}
.chat-list-head h2 { font-size: 1.3rem; color: var(--text); }
.chat-list-sub { color: var(--muted); font-size: 0.75rem; margin-top: 4px; }
.chat-refresh-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--accent);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.15rem; cursor: pointer;
}
.chat-refresh-btn:hover { border-color: var(--accent); }
.chat-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.conversation-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.conversation-item:hover, .conversation-item:active {
  border-color: rgba(57,255,20,0.35);
  background: rgba(57,255,20,0.05);
}
.conversation-main { flex: 1; min-width: 0; }
.conversation-avatar-frame {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  border: 1px solid rgba(57,255,20,0.22);
}
.conversation-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.conversation-title-left { display: flex; align-items: center; gap: 5px; min-width: 0; }
.conversation-name {
  font-weight: 600; font-size: 0.95rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 190px;
}
.conversation-time { color: var(--muted); font-size: 0.7rem; white-space: nowrap; flex-shrink: 0; }
.conversation-title-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.conversation-unread {
  min-width: 18px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: #ff4458;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
}
.conversation-preview {
  color: var(--muted); font-size: 0.8rem; margin-top: 5px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 聊天 */
.chat-header {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  margin: -16px -16px 0;
}
.chat-back-btn {
  font-size: 1.8rem; line-height: 1;
  color: var(--text);
  padding: 0 6px 3px 0;
  flex-shrink: 0;
}
.chat-partner-wrap {
  display: flex; align-items: center; gap: 9px;
  flex: 1; min-width: 0;
}
.chat-partner-text { display: flex; flex-direction: column; min-width: 0; }
.chat-avatar-frame {
  width: 36px; height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  border: 1px solid rgba(57,255,20,0.35);
}
.chat-partner {
  font-weight: 600; color: var(--accent);
  font-size: 0.95rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-partner-meta { display: flex; align-items: center; gap: 5px; min-height: 16px; margin-top: 2px; min-width: 0; overflow: hidden; }
.chat-partner-region {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  max-width: 150px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-actions { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.chat-rematch-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin-right: 2px;
  padding: 5px 10px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.chat-rematch-btn:hover { border-color: var(--accent); background: rgba(57,255,20,0.08); }
.chat-rematch-btn:active { transform: scale(0.96); }
.chat-rematch-btn:disabled { opacity: 0.55; cursor: default; }
.chat-rematch-icon { font-size: 0.9rem; line-height: 1; }
html[data-theme="light"] .chat-rematch-btn:hover { background: rgba(21,128,61,0.08); }
@media (max-width: 340px) {
  .chat-rematch-btn { padding: 6px 8px; }
  .chat-rematch-btn .chat-rematch-text { display: none; }
}
.icon-btn {
  background: none; border: none;
  font-size: 1.2rem; cursor: pointer;
  padding: 6px; border-radius: 8px;
}
.icon-btn:hover { background: rgba(255,255,255,0.05); }

.report-btn, .block-btn { padding: 4px; }
.action-icon {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}
.report-modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.report-icon-lg {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.chat-messages {
  height: calc(100vh - 260px);
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  padding: 32px 12px;
}
.msg-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.msg-row.mine { flex-direction: row-reverse; }
.msg-main {
  display: flex;
  flex-direction: column;
  max-width: 78%;
  min-width: 0;
}
.msg-row.mine .msg-main { align-items: flex-end; }
.msg-meta {
  display: flex; align-items: center; gap: 5px;
  margin: 0 4px 4px;
  flex-wrap: wrap;
}
.msg-row.mine .msg-meta { justify-content: flex-end; }
.msg-name {
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 140px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.msg-time { font-size: 0.65rem; color: var(--muted); }
.msg-read { font-size: 0.65rem; color: var(--muted); }
.msg-read.read { color: var(--accent); }
.chat-system-msg {
  align-self: center;
  max-width: 86%;
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(255,68,88,0.12);
  border: 1px solid rgba(255,68,88,0.25);
  color: #ff8a97;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}
.chat-system-msg.muted {
  background: rgba(255,255,255,0.05);
  border-color: var(--border);
  color: var(--muted);
}
.voice-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 96px;
  background: none;
  border: none;
  color: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}
.voice-msg .voice-icon { font-size: 1rem; }
.voice-msg .voice-dur { font-size: 0.78rem; color: var(--muted); }
.voice-msg .voice-wave {
  width: 46px; height: 14px;
  background-image: linear-gradient(90deg, currentColor 2px, transparent 2px);
  background-size: 8px 100%;
  opacity: 0.55;
}
.voice-msg.playing .voice-wave { animation: voiceWave 0.9s linear infinite; }
@keyframes voiceWave {
  from { background-position-x: 0; }
  to { background-position-x: 8px; }
}
.chat-lock-tip {
  padding: 6px 4px;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}
.voice-status {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 4px;
  font-size: 0.75rem;
  color: #ff8a97;
}
.voice-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ff4458;
  animation: voicePulse 1s ease-in-out infinite;
}
@keyframes voicePulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
.icon-btn.recording { background: rgba(255,68,88,0.18); }
.icon-btn.locked { opacity: 0.35; cursor: not-allowed; }
.icon-btn.disabled, .send-btn.disabled { opacity: 0.4; cursor: not-allowed; }
.chat-input-bar input:disabled { opacity: 0.6; }
.msg-bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}
.msg-row.mine .msg-bubble {
  background: rgba(57,255,20,0.15);
  border-color: rgba(57,255,20,0.2);
  border-bottom-right-radius: 5px;
}
.msg-row.theirs .msg-bubble { border-bottom-left-radius: 5px; }
.msg-bubble-image {
  padding: 4px;
  background: transparent;
  border: none;
}
.msg-bubble .msg-img {
  max-width: 200px;
  border-radius: 12px;
  cursor: pointer;
  display: block;
}
.msg-emoji { font-size: 2rem; background: none !important; border: none !important; padding: 4px; }

.chat-input-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  position: sticky; bottom: 0;
  background: var(--bg);
}
.chat-input-bar input[type=text] {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.chat-input-bar input:focus { border-color: var(--accent); }
.send-btn {
  background: var(--accent);
  color: #0a0a0f;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.emoji-panel {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 0;
  max-height: 120px; overflow-y: auto;
}
.emoji-panel.hidden { display: none; }
.emoji-panel button {
  background: none; border: none;
  font-size: 1.5rem; cursor: pointer;
  padding: 4px; border-radius: 8px;
}
.emoji-panel button:hover { background: rgba(255,255,255,0.05); }

/* 内容页 */
.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.content-card h2 { color: var(--accent); margin-bottom: 16px; }
.content-card p { color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.rule-list { list-style: none; }
.rule-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--muted); }

/* 弹窗 */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  display: flex; align-items: center; justify-content: center;
  z-index: 400; padding: 20px;
}
.modal.hidden { display: none; }
.modal-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 340px; width: 100%;
  text-align: center;
  position: relative;
}
.modal-glow {
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 120px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.modal-box h2 { margin-bottom: 12px; color: var(--accent); }
.modal-box textarea {
  width: 100%; background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 10px;
  color: var(--text); margin: 12px 0;
  resize: none;
}
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions button { flex: 1; }
.report-preview { max-width: 100%; border-radius: 10px; margin-top: 10px; }
.report-upload { margin: 10px 0; }

/* Toast */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 10px 24px;
  border-radius: 24px;
  font-size: 0.85rem;
  z-index: 500;
  animation: fadeUp 0.3s;
}
.toast.hidden { display: none; }

.hidden { display: none !important; }

/* 滚动条 */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ── 顶栏用户名 / VIP 标识 ── */
.topbar-user {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(18,18,26,0.72);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  max-width: 190px;
  overflow: hidden;
}
.topbar-username {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
}
.vip-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  color: #ffd700;
  border: 1px solid rgba(255,215,0,0.45);
  background: rgba(255,215,0,0.1);
  padding: 2px 6px;
  border-radius: 10px;
  white-space: nowrap;
}
.vip-badge em {
  font-style: normal;
  color: #ffe98a;
  font-size: 0.6rem;
}
.topbar-settings {
  color: var(--muted);
  font-size: 1rem;
  margin-left: 4px;
}
.topbar-settings:hover { color: var(--accent); }
.topbar .filter-btn { margin-left: 4px; }
@media (max-width: 380px) {
  .topbar-username { max-width: 56px; }
  .topbar-user { max-width: 190px; padding: 6px 8px; gap: 4px; }
  .vip-badge { font-size: 0.55rem; padding: 2px 4px; }
  .vip-badge em { font-size: 0.52rem; }
}

.account-gender-tip {
  color: var(--muted);
  font-size: 0.75rem;
  margin: -18px 0 24px;
  text-align: center;
}
.gender-btn:disabled { opacity: 0.85; cursor: default; }
.match-mode-hint {
  color: var(--accent);
  font-size: 0.85rem;
  background: rgba(57,255,20,0.06);
  border: 1px solid rgba(57,255,20,0.22);
  padding: 11px 12px;
  border-radius: 10px;
  line-height: 1.5;
}

/* ── 表单 / 设置页 / VIP 页 ── */
.form-field { margin-bottom: 14px; text-align: left; }
.form-field label {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.auth-input,
.region-row select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}
.form-field input:focus,
.form-field select:focus,
.auth-input:focus,
.region-row select:focus { border-color: var(--accent); }
.form-field input:disabled { opacity: 0.6; }
.form-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
  text-align: left;
}
.form-hint a,
.content-card a { color: var(--accent); text-decoration: none; }
.region-row { display: flex; gap: 8px; }
.region-row select { flex: 1; min-width: 0; }

.settings-block {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  margin-top: 18px;
}
.settings-block h3 {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.settings-block .btn-primary { margin-top: 6px; }
.logout-btn {
  width: 100%;
  margin-top: 22px;
  color: var(--danger);
  border-color: rgba(255,68,88,0.4);
}

.vip-panel { text-align: left; }
.vip-status-box {
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,215,0,0.02));
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}
.vip-status-box p { color: #ffd700; font-size: 0.9rem; margin: 0; }
.vip-remaining { margin-top: 6px !important; font-size: 0.8rem !important; color: #ffe98a !important; }
.vip-benefits { margin-bottom: 18px; }
.vip-benefits p { color: var(--muted); font-size: 0.8rem; line-height: 1.9; margin: 0; }

/* ── 登录 / 注册 ── */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 18px 40px;
  overflow-y: auto;
}
.auth-box {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px 22px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.auth-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.auth-brand {
  color: var(--accent);
  font-size: 1.4rem;
  letter-spacing: 4px;
  margin-bottom: 18px;
}
.auth-box h3 { font-size: 1rem; color: var(--text); margin-bottom: 16px; }
.auth-input { margin-bottom: 10px; text-align: left; }
.auth-submit { margin-top: 6px; }
.auth-switch { font-size: 0.8rem; color: var(--muted); margin-top: 12px; }
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-tip { font-size: 0.78rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.auth-label { text-align: left; font-size: 0.78rem; color: var(--muted); margin: 12px 0 6px; }
.auth-gender { margin-bottom: 4px; }
.auth-gender .chip { flex: 1; }
.auth-error {
  background: rgba(255,68,88,0.12);
  border: 1px solid rgba(255,68,88,0.4);
  color: #ff6b7a;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-bottom: 14px;
  line-height: 1.5;
}
.auth-box input[readonly] { opacity: 0.7; }

/* ── 邀请好友 ── */
.invite-panel { text-align: left; }
.invite-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; line-height: 1.7; }
.invite-progress {
  font-size: 0.78rem; color: var(--text); line-height: 1.7;
  background: rgba(57, 255, 20, 0.06);
  border: 1px dashed rgba(57, 255, 20, 0.28);
  border-radius: 10px; padding: 10px 12px; margin: -6px 0 18px;
}
html[data-theme="light"] .invite-progress {
  color: #166534;
  background: rgba(21, 128, 61, 0.06);
  border-color: rgba(21, 128, 61, 0.28);
}
.invite-code-box {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, rgba(57,255,20,0.12), rgba(57,255,20,0.02));
  border: 1px solid rgba(57,255,20,0.3);
  border-radius: 14px; padding: 16px; margin-bottom: 16px;
}
.invite-code-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.invite-code-label { font-size: 0.72rem; color: var(--muted); letter-spacing: 1px; }
.invite-code-value {
  font-size: 1.25rem; color: var(--accent); letter-spacing: 2px;
  font-weight: 700; word-break: break-all;
}
.invite-code-box .btn-ghost { flex-shrink: 0; }
.invite-share-actions { display: flex; gap: 10px; margin-bottom: 20px; }
.invite-share-actions .btn-primary { flex: 1.4; padding: 12px 16px; font-size: 0.92rem; }
.invite-share-actions .btn-ghost { flex: 1; }
.invite-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.invite-stat { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 8px; text-align: center; }
.invite-stat strong { display: block; color: var(--accent); font-size: 1.25rem; margin-bottom: 4px; }
.invite-stat span { font-size: 0.72rem; color: var(--muted); }
.invite-section-title {
  font-size: 0.92rem; color: var(--accent);
  margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--border);
}
.invite-list { display: flex; flex-direction: column; gap: 10px; }
.invite-empty {
  font-size: 0.8rem; color: var(--muted); background: var(--bg);
  border: 1px dashed var(--border); border-radius: 12px;
  padding: 18px; text-align: center; margin: 0;
}
.invite-reward-row { background: var(--bg); border: 1px solid rgba(57,255,20,0.25); border-radius: 12px; padding: 14px; }
.invite-reward-main { margin-bottom: 10px; }
.invite-reward-title { font-size: 0.88rem; color: var(--text); margin-bottom: 4px; }
.invite-reward-meta { font-size: 0.74rem; color: var(--muted); margin-bottom: 8px; }
.invite-reward-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem; color: #ffd700; letter-spacing: 1.5px; word-break: break-all;
}
.invite-reward-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.invite-reward-actions .btn-ghost { flex: 1; min-width: 80px; padding: 9px 10px; font-size: 0.8rem; }
.invite-reward-actions .btn-primary {
  flex: 1.4; min-width: 110px; width: auto;
  padding: 9px 12px; font-size: 0.82rem; border-radius: 18px;
}
.invite-record-row {
  display: flex; justify-content: space-between; gap: 12px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px;
}
.invite-record-main { min-width: 0; }
.invite-record-name { font-size: 0.88rem; color: var(--text); margin-bottom: 4px; word-break: break-all; }
.invite-record-meta { font-size: 0.72rem; color: var(--muted); line-height: 1.6; }
.invite-record-right { text-align: right; flex-shrink: 0; }
.invite-record-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.8rem; color: #ffd700; letter-spacing: 1px;
  margin-bottom: 5px; word-break: break-all;
}
.invite-state {
  display: inline-block; font-size: 0.7rem; padding: 3px 9px;
  border-radius: 10px; border: 1px solid var(--border); color: var(--muted);
}
.invite-state.pending { color: #ffd700; border-color: rgba(255,215,0,0.4); background: rgba(255,215,0,0.08); }
.invite-state.claimed { color: var(--accent); border-color: rgba(57,255,20,0.35); background: rgba(57,255,20,0.08); }
.invite-state.activated { color: #8ab4ff; border-color: rgba(138,180,255,0.35); background: rgba(138,180,255,0.08); }
.invite-record-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
.invite-mini-btn {
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--muted); font-size: 0.7rem; padding: 4px 8px; cursor: pointer;
}
.invite-mini-btn:hover { color: var(--accent); border-color: var(--accent); }

/* 邀请奖励弹窗 */
.invite-gift-box { max-width: 360px; }
.invite-gift-text { font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.invite-gift-code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.35rem; font-weight: 700; letter-spacing: 3px; color: #ffd700;
  background: rgba(255,215,0,0.08); border: 1px dashed rgba(255,215,0,0.45);
  border-radius: 12px; padding: 14px 10px; word-break: break-all; margin-bottom: 10px;
}
.invite-gift-hint { font-size: 0.74rem; color: var(--muted); line-height: 1.6; margin-bottom: 4px; }
.invite-gift-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.invite-gift-actions .btn-primary { padding: 12px 18px; font-size: 0.92rem; }
.invite-gift-actions .btn-ghost { padding: 9px 16px; font-size: 0.82rem; }
.invite-gift-claim-only {
  display: block; width: 100%; margin-top: 10px;
  background: none; border: none; color: var(--muted);
  font-size: 0.74rem; text-decoration: underline; cursor: pointer;
}
.invite-gift-more { font-size: 0.74rem; color: #ffd700; margin-top: 12px; line-height: 1.6; }


/* ══════════ 主题切换：白天 / 夜间 ══════════ */
html { color-scheme: dark; }

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7f3;
  --card: #ffffff;
  --border: #dce6dd;
  --text: #18251d;
  --muted: #68786d;
  --accent: #15803d;
  --accent-dim: #0f6b32;
  --accent-glow: rgba(21, 128, 61, 0.18);
  --danger: #e11d48;
}

/* 顶栏主题切换按钮 */
.theme-toggle {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  margin-left: 4px;
}
.theme-toggle:hover { color: var(--accent); }

/* 账号设置里的外观开关 */
.theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.theme-row-text { min-width: 0; }
.theme-row-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 6px;
}
.theme-row-text .form-hint { margin: 0; }
.theme-switch {
  width: 52px;
  height: 30px;
  flex: 0 0 52px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.theme-switch-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform 0.2s, background 0.2s;
}
.theme-switch[aria-checked="true"] {
  background: var(--accent);
  border-color: var(--accent);
}
.theme-switch[aria-checked="true"] .theme-switch-knob {
  transform: translateX(22px);
  background: #fff;
}

/* ── 白天模式：背景与整体容器 ── */
html[data-theme="light"] body { background: var(--bg); }

html[data-theme="light"] .stars {
  background-color: #eef5ee;
  background-image:
    radial-gradient(760px 480px at 6% 0%, rgba(134, 239, 172, 0.32), transparent 62%),
    radial-gradient(620px 460px at 100% 100%, rgba(191, 219, 254, 0.38), transparent 64%),
    radial-gradient(2px 2px at 18% 26%, rgba(21, 128, 61, 0.12), transparent),
    radial-gradient(2px 2px at 72% 18%, rgba(21, 128, 61, 0.1), transparent),
    radial-gradient(1.5px 1.5px at 42% 72%, rgba(21, 128, 61, 0.1), transparent),
    radial-gradient(2px 2px at 88% 62%, rgba(21, 128, 61, 0.09), transparent);
}

html[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 10px 0 30px rgba(30, 60, 40, 0.08);
}
html[data-theme="light"] .sidebar-overlay { background: rgba(16, 32, 24, 0.28); }
html[data-theme="light"] .nav-item.active,
html[data-theme="light"] .nav-item:hover { background: rgba(21, 128, 61, 0.08); }

html[data-theme="light"] .logo-frame { background: #fff; }
html[data-theme="light"] .site-logo-frame,
html[data-theme="light"] .topbar-logo-frame { border-color: rgba(21, 128, 61, 0.3); }
html[data-theme="light"] .brand-logo-wrap {
  border-color: rgba(21, 128, 61, 0.4);
  filter: drop-shadow(0 10px 24px rgba(21, 128, 61, 0.22));
}

html[data-theme="light"] .menu-btn { color: var(--text); }
html[data-theme="light"] .topbar {
  background: rgba(243, 247, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(220, 230, 221, 0.7);
}
html[data-theme="light"] .brand-name { color: var(--text); }
html[data-theme="light"] .footer { color: var(--muted); }



/* ── 白天模式：首页 / 按钮 / 卡片 ── */
html[data-theme="light"] .gender-btn {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="light"] .gender-btn.active {
  border-color: var(--accent);
  background: rgba(21, 128, 61, 0.08);
  box-shadow: 0 6px 20px rgba(21, 128, 61, 0.12);
}
html[data-theme="light"] .age-display:hover { color: var(--text); }
html[data-theme="light"] .btn-start-chat {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #fff;
  box-shadow: 0 8px 24px rgba(21, 128, 61, 0.28);
}
html[data-theme="light"] .btn-primary,
html[data-theme="light"] .send-btn,
html[data-theme="light"] .swipe-btn.like { color: #fff; }

html[data-theme="light"] .profile-card .avatar-area {
  background: linear-gradient(135deg, #eef5ee, #fbfdfb);
}
html[data-theme="light"] .profile-card .tag,
html[data-theme="light"] .chip.active { background: rgba(21, 128, 61, 0.1); }
html[data-theme="light"] .match-mode-hint {
  background: rgba(21, 128, 61, 0.07);
  border-color: rgba(21, 128, 61, 0.24);
}

/* ── 白天模式：顶栏 / 聊天 / 头像 ── */
html[data-theme="light"] .topbar-user {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 2px 10px rgba(30, 60, 40, 0.06);
}
html[data-theme="light"] .icon-btn:hover,
html[data-theme="light"] .emoji-panel button:hover { background: rgba(21, 128, 61, 0.08); }

html[data-theme="light"] .avatar-frame,
html[data-theme="light"] .conversation-avatar-frame,
html[data-theme="light"] .chat-avatar-frame { border-color: rgba(21, 128, 61, 0.25); }

html[data-theme="light"] .conversation-item:hover,
html[data-theme="light"] .conversation-item:active {
  border-color: rgba(21, 128, 61, 0.3);
  background: rgba(21, 128, 61, 0.05);
}
html[data-theme="light"] .msg-row.mine .msg-bubble {
  background: rgba(21, 128, 61, 0.12);
  border-color: rgba(21, 128, 61, 0.22);
}
html[data-theme="light"] .chat-system-msg.muted {
  background: rgba(24, 37, 29, 0.05);
  border-color: var(--border);
  color: var(--muted);
}
html[data-theme="light"] .chat-system-msg {
  background: rgba(225, 29, 72, 0.08);
  border-color: rgba(225, 29, 72, 0.2);
  color: #c0264a;
}
html[data-theme="light"] .voice-status,
html[data-theme="light"] .auth-error { color: #c0264a; }

html[data-theme="light"] .modal { background: rgba(18, 32, 24, 0.38); }
html[data-theme="light"] .auth-screen { background: rgba(238, 245, 239, 0.94); }
html[data-theme="light"] .auth-box,
html[data-theme="light"] .modal-box { box-shadow: 0 20px 60px rgba(30, 55, 40, 0.16); }

html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #9aa89f; }

/* ── 白天模式：VIP / 邀请（金色与状态色加深，保证可读性） ── */
html[data-theme="light"] .vip-badge {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(245, 158, 11, 0.12);
}
html[data-theme="light"] .vip-badge em { color: #92400e; }
html[data-theme="light"] .vip-status-box p { color: #b45309; }
html[data-theme="light"] .vip-remaining { color: #92400e !important; }
html[data-theme="light"] .invite-reward-code,
html[data-theme="light"] .invite-record-code,
html[data-theme="light"] .invite-gift-code,
html[data-theme="light"] .invite-gift-more { color: #b45309; }
html[data-theme="light"] .invite-gift-code {
  border-color: rgba(180, 83, 9, 0.45);
  background: rgba(245, 158, 11, 0.1);
}
html[data-theme="light"] .invite-state.pending {
  color: #b45309;
  border-color: rgba(180, 83, 9, 0.35);
  background: rgba(245, 158, 11, 0.12);
}
html[data-theme="light"] .invite-state.activated {
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
}
html[data-theme="light"] .invite-state.claimed {
  border-color: rgba(21, 128, 61, 0.35);
  background: rgba(21, 128, 61, 0.08);
}
html[data-theme="light"] .invite-code-box {
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.1), rgba(21, 128, 61, 0.02));
  border-color: rgba(21, 128, 61, 0.28);
}
html[data-theme="light"] .invite-reward-row { border-color: rgba(21, 128, 61, 0.25); }

html[data-theme="light"] .gender-tag.male {
  color: #1d6fbf;
  background: rgba(29, 111, 191, 0.12);
}
html[data-theme="light"] .gender-tag.female {
  color: #c2255c;
  background: rgba(194, 37, 92, 0.12);
}
