/**
 * 面试模拟舱 — 全局样式
 * 白色轻量 SaaS 风格 + 橙色主色调
 */

/* ===== CSS Variables ===== */
:root {
  --bg-primary: #ffffff;
  --bg-secondary: #eef0f3;
  --bg-card: #ffffff;
  --bg-card-hover: #f3f4f6;
  --border-color: #dde0e4;
  --border-glow: rgba(255, 107, 0, 0.25);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #7c8798;
  --accent-blue: #ff6b00;
  --accent-purple: #ff6b00;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #ff6b00;
  --accent-red: #ef4444;
  --gradient-primary: linear-gradient(135deg, #ff6b00, #ff8c33);
  --gradient-bg: #f8f9fb;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-glow: 0 4px 20px rgba(255,107,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-blue); text-decoration: none; }
a:hover { color: #e55d00; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.35; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

/* ===== Particle Canvas (hidden in light mode) ===== */
#particles-canvas { display: none; }

/* ===== Top Navigation ===== */
#top-nav {
  position: fixed;
  top: 0; left: 0; right: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.nav-inner {
  width: 100%;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #1a1a2e;
  flex-shrink: 0;
  margin-right: 28px;
}

.nav-logo {
  width: 32px; height: 32px;
  background: url('../assets/logo-256.png') center/contain no-repeat;
  border-radius: 50%;
}

.nav-title {
  font-size: .95rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-link {
  padding: 7px 14px;
  background: none;
  border: none;
  color: #4b5563;
  cursor: pointer;
  font-size: .85rem;
  font-family: inherit;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-link:hover { background: #f5f5f5; color: #1a1a2e; }

.nav-link.train {
  background: #fff3eb;
  color: #ff6b00;
  font-weight: 600;
}

.nav-link.train:hover { background: #ff6b00; color: #fff; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-credit {
  font-size: .78rem;
  color: #6b7280;
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 12px;
}

.nav-btn {
  padding: 7px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  color: #4b5563;
  cursor: pointer;
  font-size: .82rem;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-btn:hover { background: #f5f5f5; }

.nav-btn-primary {
  background: #ff6b00;
  color: #fff;
  border: none;
  font-weight: 600;
}

.nav-btn-primary:hover { background: #e55d00; }

.nav-btn-user {
  background: #fff3eb;
  border-color: rgba(255,107,0,.2);
  color: #ff6b00;
}

.nav-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: #ff6b00;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: #fff;
}

/* ===== Profile Page ===== */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 80px 20px 60px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.profile-info h2 {
  margin: 0;
  font-size: 1.3rem;
}

.profile-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.profile-credit-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.profile-credit-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.profile-credit-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Profile Records */
.profile-section {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 20px 24px; margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.profile-section h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1rem;
}

.profile-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.profile-empty {
  text-align: center;
  padding: 30px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-records {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-record-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  flex-wrap: wrap;
}

.profile-record-item:hover {
  border-color: var(--border-glow);
}

.pr-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.pr-mode {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  flex-shrink: 0;
}

.pr-position {
  font-weight: 500;
  font-size: 0.9rem;
}

.pr-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.pr-right {
  text-align: right;
  flex-shrink: 0;
}

.pr-score {
  font-size: 1.2rem;
  font-weight: 700;
}

.pr-grade {
  font-size: 0.75rem;
  display: block;
}

.pr-detail {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.pr-detail.open {
  max-height: 3000px;
  overflow-y: auto;
}

.pr-detail-inner {
  padding: 12px 0 0;
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
}

.pr-dim {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.pr-dim-bar {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.pr-dim-bar div {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* Record Q&A detail */
.pr-qa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-qa-item {
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
}

.pr-qa-q {
  color: var(--text-primary);
  margin-bottom: 6px;
}

.pr-qa-q span {
  color: var(--accent-blue);
  font-weight: 700;
  margin-right: 4px;
}

.pr-qa-a {
  color: var(--text-secondary);
  padding: 6px 10px;
  background: rgba(68,138,255,0.04);
  border-radius: 4px;
  margin-bottom: 4px;
}

.pr-qa-a span { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; }
.pr-qa-a em { color: var(--accent-orange); font-style: normal; font-size: 0.75rem; }

.pr-qa-ref {
  color: var(--text-secondary);
  padding: 6px 10px;
  background: rgba(0,230,118,0.03);
  border-radius: 4px;
  margin-bottom: 4px;
}

.pr-qa-ref span { color: var(--text-muted); font-weight: 600; font-size: 0.75rem; }

.pr-qa-cmt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
}

/* Wrong Answer Bank */
.wrong-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wrong-item {
  padding: 14px;
  background: rgba(255,82,82,0.03);
  border: 1px solid rgba(255,82,82,0.1);
  border-radius: var(--radius-sm);
}

.wrong-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.wrong-pos {
  font-size: 0.78rem;
  padding: 2px 8px;
  background: rgba(68,138,255,0.1);
  border-radius: 10px;
  color: var(--accent-blue);
}

.wrong-level {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wrong-score {
  font-size: 0.75rem;
  font-weight: 700;
}

.wrong-score.bad { color: var(--accent-red); }

.wrong-date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.wrong-q {
  color: var(--text-primary);
  font-size: 0.85rem;
  margin-bottom: 6px;
  line-height: 1.6;
}

.wrong-q strong { color: var(--accent-blue); }

.wrong-a {
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 10px;
  background: rgba(255,152,0,0.04);
  border-left: 2px solid rgba(255,152,0,0.3);
  border-radius: 0 4px 4px 0;
  margin-bottom: 4px;
}

.wrong-a strong { color: var(--accent-orange); font-size: 0.72rem; }

.wrong-ref {
  color: var(--text-secondary);
  font-size: 0.8rem;
  padding: 6px 10px;
  background: rgba(0,230,118,0.03);
  border-left: 2px solid rgba(0,230,118,0.3);
  border-radius: 0 4px 4px 0;
  margin-bottom: 4px;
}

.wrong-ref strong { color: var(--accent-green); font-size: 0.72rem; }

.wrong-cmt {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: italic;
  margin-top: 4px;
}

/* Practice modal */
.practice-q {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.7;
  padding: 14px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
}

.practice-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.practice-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.practice-opt:hover {
  border-color: rgba(68,138,255,0.3);
}

.practice-opt.selected {
  background: rgba(68,138,255,0.12);
  border-color: var(--accent-blue);
  color: var(--text-primary);
}

.practice-opt-letter {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.practice-opt.selected .practice-opt-letter {
  background: var(--accent-blue);
  color: #fff;
}

.practice-correct {
  padding: 14px;
  background: rgba(0,230,118,0.08);
  border: 1px solid rgba(0,230,118,0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-green);
  font-weight: 600;
  font-size: 0.95rem;
}

.practice-wrong-ans {
  padding: 14px;
  background: rgba(255,82,82,0.06);
  border: 1px solid rgba(255,82,82,0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  font-size: 0.9rem;
}

.practice-hint {
  padding: 14px;
  background: rgba(68,138,255,0.04);
  border: 1px solid rgba(68,138,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--accent-blue);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Adjust page top padding for nav */
.page {
  padding-top: 0;
}

.page {
  padding-top: 80px;
}

#page-home {
  padding-top: 56px;
}

#page-login, #page-register {
  padding-top: 0;
}

/* ===== Status Bar (hidden) ===== */
#status-bar {
  display: none;
}

/* ===== App Container ===== */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-bottom: 50px;
}

/* ===== Page System ===== */
.page {
  display: none;
  animation: pageFadeIn 0.4s ease;
}

.page.active {
  display: block;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Transition Overlay ===== */
#transition-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: 9999; background: rgba(255,255,255,0.96);
  display: none; flex-direction: column; align-items: center;
  justify-content: center; pointer-events: all; user-select: none;
}

#transition-overlay.active {
  display: flex;
  animation: overlayIn 0.35s ease;
}

#transition-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.transition-content {
  text-align: center;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.transition-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
}

.transition-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--accent-blue);
  border-right-color: var(--accent-purple);
  animation: ringSpin 1.2s linear infinite;
}

.transition-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.transition-icon img {
  display: block;
  animation: iconPulse 2s ease-in-out infinite;
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.transition-messages {
  min-height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#transition-text { font-size: 1.15rem; color: #1a1a2e; letter-spacing: 1.5px; font-weight: 500; min-height: 1.6em; }
#transition-subtitle { font-size: 0.82rem; color: #9ca3af; margin-top: 6px; transition: opacity 0.5s ease; opacity: 0.6; }

.transition-progress {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  margin-top: 24px;
  overflow: hidden;
}

.transition-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: #ff6b00;
  color: #fff;
  border: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: #e55d00;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,0,0.25);
}

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover { background: #e5e7eb; }

.btn-outline {
  background: #fff;
  color: #ff6b00;
  border: 1px solid #ff6b00;
  font-weight: 500;
}

.btn-outline:hover { background: #fff3eb; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover { color: var(--text-primary); background: var(--bg-secondary); }

.btn-danger {
  background: #fef2f2;
  color: var(--accent-red);
  border: 1px solid #fecaca;
}

.btn-danger:hover { background: #fee2e2; }

.btn-large {
  padding: 14px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-small {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.back-btn {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  margin-bottom: 20px;
  transition: var(--transition);
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ===== Home Page ===== */
.home-page section {
  padding: 50px 20px;
}

.home-page section:first-child {
  padding-top: 28px;
}

/* Hero */
.home-hero-new {
  text-align: center;
  padding: 28px 20px 32px;
  max-width: 720px;
  margin: 0 auto;
}

.home-hero-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
  line-height: 1.25;
}

.home-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.home-hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.home-btn-primary {
  padding: 11px 28px;
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.home-btn-primary:hover {
  background: #e55d00;
  box-shadow: 0 4px 16px rgba(255,107,0,0.3);
}

.home-btn-outline {
  padding: 11px 28px;
  background: #fff;
  color: #ff6b00;
  border: 1.5px solid #ff6b00;
  border-radius: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.home-btn-outline:hover {
  background: #fff3eb;
}

.home-hero-stat {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.home-hero-stat strong {
  color: #ff6b00;
  font-size: 1.05rem;
}

/* Stats row */
.home-stats-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.home-stat-item {
  text-align: center;
}

.home-stat-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: #ff6b00;
}

.home-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Compare */
.home-compare {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.home-compare h2 {
  margin-bottom: 24px;
  font-size: 1.35rem;
}

.home-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .home-compare-grid { grid-template-columns: 1fr; }
}

.home-compare-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.home-compare-header {
  padding: 14px;
  background: #fafafa;
  font-weight: 700;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border-color);
}

.home-compare-body {
  padding: 6px 0;
}

.home-compare-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  border-bottom: 1px solid #f5f5f5;
}

.home-compare-row:last-child {
  border-bottom: none;
}

.home-compare-card .home-btn-primary,
.home-compare-card .home-btn-outline {
  margin: 12px 18px 16px;
  width: calc(100% - 36px);
  text-align: center;
  display: block;
}

/* Showcase */
.home-showcase {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.home-showcase-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}

.home-showcase-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: #f8f8f8;
  border-bottom: 1px solid var(--border-color);
}

.home-showcase-dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ddd;
}

.home-showcase-dots span:nth-child(1) { background: #ff5f57; }
.home-showcase-dots span:nth-child(2) { background: #ffbd2e; }
.home-showcase-dots span:nth-child(3) { background: #28c840; }

.home-showcase-body {
  display: flex;
  min-height: 160px;
}

.home-showcase-sidebar {
  width: 100px;
  padding: 14px;
  background: #fafafa;
  border-right: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 3;
}

.home-showcase-main {
  flex: 1;
  padding: 14px 22px;
}

.home-showcase-q {
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.showcase-option {
  padding: 6px 12px;
  margin-bottom: 5px;
  background: #f5f5f5;
  border-radius: 5px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.showcase-option.selected {
  background: #fff3eb;
  border: 1.5px solid #ff6b00;
  color: #ff6b00;
  font-weight: 600;
}

/* Steps */
.home-steps {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.home-steps h2 {
  margin-bottom: 24px;
  font-size: 1.35rem;
}

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

@media (max-width: 700px) {
  .home-steps-grid { grid-template-columns: 1fr; }
  .home-features-grid { grid-template-columns: 1fr; }
}

.home-step-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.home-step-num {
  width: 36px; height: 36px;
  margin: 0 auto 12px;
  background: #fff3eb;
  color: #ff6b00;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
}

.home-step-card h4 {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.home-step-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Features */
.home-features {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.home-features h2 {
  margin-bottom: 28px;
  font-size: 1.35rem;
}

.home-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.home-feature-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 22px;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: all 0.2s ease;
}

.home-feature-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-color: rgba(255,107,0,0.2);
}

.home-feature-icon {
  width: 36px; height: 36px;
  margin-bottom: 10px;
  background: #fff3eb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-feature-card h4 {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.home-feature-card p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Positions */
.home-positions {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.home-positions h2 {
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.home-positions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.home-pos-tag {
  padding: 7px 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  font-size: 0.83rem;
  color: var(--text-secondary);
  cursor: default;
  transition: all 0.2s ease;
}

.home-pos-tag:hover {
  border-color: #ff6b00;
  color: #ff6b00;
  background: #fff3eb;
}

/* CTA */
.home-cta {
  text-align: center;
  padding: 50px 20px;
  background: #fff;
  border-top: 1px solid var(--border-color);
}

.home-cta h2 {
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.home-cta p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Footer */
.home-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: #fff;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.home-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-footer-left strong {
  color: var(--text-primary);
}

.home-footer-right {
  display: flex;
  gap: 14px;
}

/* ===== Config Pages ===== */
.config-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.form-group label {
  display: block; margin-bottom: 10px; font-weight: 600;
  color: var(--text-primary); font-size: 0.88rem;
}

.config-header {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.config-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.mode1-badge {
  background: rgba(68, 138, 255, 0.15);
  color: var(--accent-blue);
}

.mode2-badge {
  background: rgba(124, 77, 255, 0.15);
  color: var(--accent-purple);
}

.config-header h2 {
  margin-bottom: 6px;
}

.config-header p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Form */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255,107,0,0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* Tag Select */
.tag-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--transition);
  user-select: none;
}

.tag-item:hover { border-color: #ff6b00; color: var(--text-primary); }
.tag-item.active { background: #fff3eb; border-color: #ff6b00; color: #ff6b00; font-weight: 500; }

/* Level Select */
.level-select {
  display: flex;
  gap: 12px;
}

.level-item {
  flex: 1; padding: 12px; text-align: center;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.9rem; transition: var(--transition); user-select: none;
}
.level-item:hover { border-color: #ff6b00; }
.level-item.active { background: #fff3eb; border-color: #ff6b00; color: #ff6b00; font-weight: 600; }

/* Salary */
.salary-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.salary-range select {
  flex: 1;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed #d1d5db; border-radius: var(--radius-md);
  padding: 40px; text-align: center; cursor: pointer;
  transition: var(--transition); background: #fafafa;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: #ff6b00; background: #fff3eb; }

.upload-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.upload-zone p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.upload-preview {
  text-align: center;
  margin-top: 12px;
}

.upload-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  object-fit: contain;
}

/* ===== Interview Page (New Design) ===== */
.interview-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
}

/* Top bar */
.iv-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card);
}

.iv-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.iv-position {
  font-weight: 600;
  font-size: 0.95rem;
}

.iv-level {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
}

.iv-timer-wrap {
  position: relative;
  width: 56px;
  height: 56px;
}

.iv-timer-svg {
  width: 56px;
  height: 56px;
}

.iv-timer-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Progress bar */
.iv-progress-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 16px;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.iv-progress-fill {
  display: none;
}

.iv-progress-dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f0f0f0; border: 2px solid #e5e7eb;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 600; color: #9ca3af;
  cursor: pointer; transition: all 0.2s ease; flex-shrink: 0;
}
.iv-progress-dot:hover { border-color: #ff6b00; }
.iv-progress-dot.current { border-color: #ff6b00; background: #fff3eb; color: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,0.12); }
.iv-progress-dot.done { border-color: #10b981; background: #ecfdf5; color: #10b981; }
.iv-progress-dot.skipped { border-color: #fecaca; background: #fef2f2; color: #ef4444; }

/* Question area */
.iv-question-area {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px 28px 24px;
  box-shadow: var(--shadow-card);
  animation: cardSlideIn 0.3s ease;
}

.iv-question-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.iv-q-badge {
  padding: 4px 12px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
}

.iv-q-num {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.iv-question-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 22px;
}

/* Options */
.iv-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iv-option {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  background: #fafafa; border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s ease;
}
.iv-option:hover { background: #fff3eb; border-color: rgba(255,107,0,0.3); }
.iv-option.selected { background: #fff3eb; border-color: #ff6b00; }
.iv-opt-letter {
  width: 32px; height: 32px; border-radius: 50%; background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: var(--text-muted);
  flex-shrink: 0; transition: all 0.2s ease;
}
.iv-option.selected .iv-opt-letter { background: #ff6b00; color: #fff; }
.iv-opt-text { font-size: 0.9rem; color: var(--text-secondary); }
.iv-option.selected .iv-opt-text { color: var(--text-primary); }

/* Inputs */
.iv-input {
  width: 100%; padding: 14px 18px; background: #f9fafb;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem; font-family: inherit;
  outline: none; transition: border-color 0.2s ease;
}
.iv-input:focus { border-color: #ff6b00; background: #fff; }

.iv-textarea {
  width: 100%; padding: 14px 18px; background: #f9fafb;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.95rem; font-family: inherit;
  outline: none; resize: vertical; min-height: 120px; line-height: 1.7;
  transition: border-color 0.2s ease;
}
.iv-textarea:focus { border-color: #ff6b00; background: #fff; }

.iv-code-input {
  width: 100%; padding: 14px 18px; background: #1e1e2e;
  border: 1px solid #2d2d3d; border-radius: var(--radius-sm);
  color: #06b6d4; font-size: 0.85rem; font-family: var(--font-mono);
  outline: none; resize: vertical; min-height: 140px;
}

/* Actions */
.iv-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.iv-btn-ghost {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.iv-btn-ghost:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text-primary);
}

.iv-btn-next {
  padding: 10px 28px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.iv-btn-next:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(68,138,255,0.35);
}


/* ===== Report Page ===== */
.report-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.report-hero {
  text-align: center; padding: 36px 20px; background: #fff;
  border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  margin-bottom: 24px; box-shadow: var(--shadow-card);
}

.score-circle {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
}

.score-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-number {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.score-unit {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.grade-badge {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.report-meta {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  flex-wrap: wrap;
}

.report-meta .sep { color: var(--text-muted); }

/* Report Sections */
.report-section {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px 32px; margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.report-section h3 {
  margin-bottom: 20px;
}

/* Radar */
.radar-wrapper {
  max-width: 400px;
  margin: 0 auto;
}

/* Review List */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.review-num {
  font-weight: 700;
  color: var(--accent-blue);
}

.review-score {
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.review-score.good { background: rgba(0, 230, 118, 0.12); color: var(--accent-green); }
.review-score.medium { background: rgba(255, 152, 0, 0.12); color: var(--accent-orange); }
.review-score.low { background: rgba(255, 82, 82, 0.12); color: var(--accent-red); }

.review-type {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: auto;
}

.review-marked { font-size: 0.75rem; color: var(--accent-orange); }
.review-skipped { font-size: 0.75rem; color: var(--accent-red); }

.review-question {
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.review-answers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

@media (max-width: 600px) {
  .review-answers { grid-template-columns: 1fr; }
}

.review-user, .review-ref {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.review-user {
  background: rgba(68, 138, 255, 0.06);
  border: 1px solid rgba(68, 138, 255, 0.15);
}

.review-ref {
  background: rgba(0, 230, 118, 0.04);
  border: 1px solid rgba(0, 230, 118, 0.12);
}

.review-user .label, .review-ref .label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-comment {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
}

/* Suggestions */
.suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.suggestion-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(68, 138, 255, 0.04);
  border: 1px solid rgba(68, 138, 255, 0.1);
  border-radius: var(--radius-sm);
}

.suggestion-num {
  width: 26px;
  height: 26px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.suggestion-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Match Card */
.match-card {
  padding: 16px 0;
}

.match-percent {
  text-align: center;
  margin-bottom: 20px;
}

.match-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 10px;
}

.match-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-purple);
}

.match-label {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.match-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.recommend-badge {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.recommend-badge span {
  display: block;
  font-weight: 400;
  font-size: 0.85rem;
  margin-top: 4px;
}

.recommend-yes {
  background: rgba(0, 230, 118, 0.08);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--accent-green);
}

.recommend-no {
  background: rgba(255, 152, 0, 0.08);
  border: 1px solid rgba(255, 152, 0, 0.2);
  color: var(--accent-orange);
}

/* Report Actions */
.report-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ===== History Page ===== */
.history-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.history-header h2 { margin-bottom: 0; }

.history-count {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Filter */
.filter-bar {
  display: flex; gap: 10px; align-items: center; padding: 16px;
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); margin-bottom: 20px; flex-wrap: wrap;
  box-shadow: var(--shadow-card);
}

.filter-bar select,
.filter-bar input {
  padding: 8px 12px; background: #fff;
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.85rem; font-family: inherit; outline: none;
}
.filter-bar input[type="text"] { flex: 1; min-width: 140px; }
.filter-bar select:focus, .filter-bar input:focus { border-color: #ff6b00; }

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* Records */
.records-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.record-item {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); overflow: hidden;
  transition: var(--transition); box-shadow: var(--shadow-card);
}

.record-item:hover {
  border-color: var(--border-glow);
}

.record-item.expanded {
  border-color: var(--accent-blue);
}

.record-summary {
  display: flex;
  align-items: center;
  padding: 18px 24px;
  cursor: pointer;
  gap: 16px;
  transition: var(--transition);
}

.record-summary:hover {
  background: rgba(255, 255, 255, 0.02);
}

.record-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.record-mode {
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.mode1-tag { background: rgba(68, 138, 255, 0.12); color: var(--accent-blue); }
.mode2-tag { background: rgba(124, 77, 255, 0.12); color: var(--accent-purple); }

.record-position {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-meta {
  display: flex;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
  flex-wrap: wrap;
}

.record-right {
  text-align: right;
  flex-shrink: 0;
}

.record-score {
  font-size: 1.5rem;
  font-weight: 700;
}

.record-grade {
  font-size: 0.8rem;
}

.record-time {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.record-expand {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.record-item.expanded .record-expand {
  transform: rotate(180deg);
}

.record-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.record-detail.open {
  max-height: 2000px;
}

.detail-content {
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.detail-section {
  margin-bottom: 20px;
}

.detail-section h4 {
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.detail-section p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

.dimension-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dim-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dim-label {
  width: 80px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  text-align: right;
}

.dim-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.dim-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  transition: width 1s ease;
}

.dim-value {
  width: 30px;
  font-size: 0.8rem;
  color: var(--text-primary);
  font-weight: 600;
  text-align: left;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

.history-actions {
  margin-top: 20px;
  text-align: center;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); z-index: 9998;
  display: none; align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-card {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); padding: 28px 32px;
  max-width: 480px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-card h3 { margin-bottom: 4px; }

/* API Config Modal */
.api-config-modal {
  max-width: 520px;
}

.api-config-modal select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238892b0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.api-config-modal select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(68, 138, 255, 0.1);
}

.api-config-modal select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.api-provider-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(68, 138, 255, 0.08);
  border: 1px solid rgba(68, 138, 255, 0.2);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.provider-logo {
  font-size: 1.4rem;
}

/* ===== Icon Replacements (non-emoji) ===== */
.icon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-blue);
  margin-right: 6px;
  vertical-align: middle;
}

.icon-gear {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
  vertical-align: middle;
  margin-right: 4px;
}

.icon-gear::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.icon-label {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.8;
}

.icon-arrow {
  font-size: 1.1em;
  color: var(--text-muted);
}

.icon-arrow-r {
  font-size: 1em;
  color: inherit;
  opacity: 0.7;
}

.icon-mark,
.icon-marked {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  vertical-align: middle;
  margin-right: 2px;
  opacity: 0.6;
}

.icon-marked {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  opacity: 0.9;
}

.icon-check {
  display: inline-block;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  vertical-align: middle;
  margin-left: 4px;
}

/* Upload icon SVG */
.upload-icon svg {
  color: var(--text-muted);
}

/* Empty state icon */
.empty-icon svg {
  color: var(--text-muted);
}

/* ===== Auth Pages (Login/Register) ===== */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.auth-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 40px 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
  width: 100%;
  max-width: 400px;
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.auth-header p {
  font-size: .88rem;
  color: #6b7280;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-form label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 4px;
}

.auth-form input {
  width: 100%;
  padding: 11px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .9rem;
  font-family: inherit;
  color: #1a1a2e;
  outline: none;
}

.auth-form input:focus {
  border-color: #ff6b00;
  box-shadow: 0 0 0 3px rgba(255,107,0,.06);
}

.auth-form button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: #ff6b00;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
}

.auth-form button[type="submit"]:hover {
  background: #e55d00;
}

.auth-error {
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #ef4444;
  font-size: .82rem;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: .88rem;
  color: #6b7280;
}

.auth-footer a {
  color: #ff6b00;
  font-weight: 600;
  cursor: pointer;
  margin-left: 4px;
}

.auth-hint {
  text-align: center;
  margin-top: 16px;
  padding: 10px;
  background: #fafafa;
  border-radius: 8px;
  font-size: .78rem;
  color: #9ca3af;
}

.login-benefits {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  margin-bottom: 20px;
}

.benefit-item {
  font-size: .85rem;
  color: #374151;
}

.benefit-icon {
  color: #10b981;
  margin-right: 6px;
  font-weight: 700;
}

/* ===== Recharge Page ===== */
.recharge-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.recharge-hero {
  text-align: center;
  margin-bottom: 32px;
}

.recharge-hero h2 {
  margin-bottom: 8px;
}

.recharge-hero p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.recharge-hero strong {
  color: var(--accent-blue);
  font-size: 1.2rem;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.package-card {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: var(--radius-md); padding: 24px 20px;
  text-align: center; cursor: pointer; transition: var(--transition);
  position: relative; box-shadow: var(--shadow-card);
}
.package-card:hover { border-color: #ff6b00; transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.package-popular {
  border-color: rgba(68, 138, 255, 0.4);
  background: rgba(68, 138, 255, 0.04);
}

.package-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 14px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.package-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 8px 0 4px;
}

.package-unit {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.package-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.package-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.price-symbol {
  font-size: 1rem;
  margin-right: 2px;
}

.package-per {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.recharge-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 12px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
}

/* ===== Payment Modal ===== */
.pay-modal-card {
  max-width: 440px !important;
  text-align: center;
  position: relative;
}

.pay-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.pay-close:hover { color: var(--text-primary); }

.pay-order-info {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  text-align: left;
}

.pay-order-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pay-order-row:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pay-order-price {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 1rem;
}

/* QR Code */
.qr-wrapper {
  position: relative;
  width: 220px;
  height: 220px;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

.qr-placeholder {
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.qr-placeholder-icon {
  width: 100px;
  height: 100px;
  border: 2px dashed #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #999;
}

.qr-scan-line {
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  animation: qrScan 2s linear infinite;
}

@keyframes qrScan {
  0% { top: 10px; }
  50% { top: 208px; }
  100% { top: 10px; }
}

/* ===== Payment Steps ===== */
.pay-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 8px;
  gap: 0;
}

.pay-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.pay-step.active { color: var(--accent-blue); }
.pay-step.done { color: var(--accent-green); }

.pay-step .step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

.pay-step.active .step-dot {
  background: var(--accent-blue);
  box-shadow: 0 0 8px rgba(68,138,255,0.5);
  animation: pulse 1.5s ease infinite;
}

.pay-step.done .step-dot {
  background: var(--accent-green);
  box-shadow: 0 0 6px rgba(0,230,118,0.4);
}

.pay-step-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 4px;
  margin-bottom: 18px;
}

/* Payment Status */
.pay-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 10px;
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius-sm);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-waiting { background: var(--accent-orange); animation: pulse 1.5s ease infinite; }
.status-detecting { background: var(--accent-blue); animation: pulse 0.8s ease infinite; }
.status-success { background: var(--accent-green); animation: none; }
.status-expired { background: var(--accent-red); animation: none; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== Admin QR Package Editor ===== */
.qr-package-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qr-package-edit {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qr-pkg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border-color);
}

.qr-pkg-title {
  font-weight: 600;
  color: var(--text-primary);
}

.qr-pkg-info {
  font-size: 0.85rem;
  color: var(--accent-blue);
}

.qr-pkg-body {
  display: flex;
  gap: 20px;
  padding: 16px;
  flex-wrap: wrap;
}

.qr-pkg-fields {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.qr-field input {
  width: 100%;
  padding: 8px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.qr-field input:focus {
  border-color: var(--accent-blue);
}

.qr-pkg-upload {
  width: 140px;
  flex-shrink: 0;
  text-align: center;
}

.qr-upload-zone {
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition);
}

.qr-upload-zone:hover {
  border-color: var(--accent-blue);
  background: rgba(68,138,255,0.04);
}

.qr-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.qr-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 1.5rem;
}

/* Pending order row */
.order-pending {
  background: rgba(255, 152, 0, 0.04) !important;
}

.pending-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(255, 152, 0, 0.15);
  color: var(--accent-orange);
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}

/* ===== Payment Verify Input ===== */
.pay-verify-section {
  margin-top: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.verify-input-row {
  display: flex;
  gap: 8px;
}

.verify-input {
  flex: 1;
  padding: 10px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,215,0,0.3);
  border-radius: var(--radius-sm);
  color: #ffd700;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  outline: none;
  transition: border-color 0.3s ease;
}

.verify-input-wide {
  font-size: 0.8rem;
  min-width: 0;
}

.verify-input:focus {
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255,215,0,0.15);
}

.verify-input.verify-error {
  border-color: var(--accent-red);
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.verify-hint {
  margin-top: 8px;
  padding: 6px 10px;
  background: rgba(255,215,0,0.06);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  word-break: break-all;
}

.verify-info-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: rgba(255,215,0,0.2);
  color: #ffd700;
  border-radius: 50%;
  text-align: center;
  line-height: 14px;
  font-size: 0.65rem;
  font-weight: 700;
  margin-right: 4px;
  font-style: italic;
  font-family: serif;
}

/* Verify code display (step 2) */
.pay-step2-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: rgba(0,230,118,0.06);
  border: 1px solid rgba(0,230,118,0.15);
  border-radius: var(--radius-sm);
}

.step2-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent-green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
}

.verify-code-display {
  text-align: center;
  padding: 18px;
  background: linear-gradient(135deg, rgba(255,215,0,0.06), rgba(255,215,0,0.02));
  border: 2px dashed rgba(255,215,0,0.3);
  border-radius: var(--radius-md);
}

.verify-code-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.verify-code-value {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  letter-spacing: 8px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.3);
  user-select: all;
}

.verify-code-note {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ===== User Bar (Home Page) ===== */
.user-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(17, 25, 40, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.guest-avatar {
  background: rgba(255,255,255,0.1);
  color: var(--text-secondary);
  border: 2px dashed rgba(255,255,255,0.2);
}

.trial-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(0, 230, 118, 0.12);
  color: var(--accent-green);
  border-radius: 10px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}

.credit-trial {
  background: rgba(0, 230, 118, 0.08) !important;
  border-color: rgba(0, 230, 118, 0.25) !important;
}

.credit-trial .credit-num {
  color: var(--accent-green) !important;
}

.trial-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.user-name {
  font-weight: 600;
  color: var(--text-primary);
}

.role-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  background: rgba(124, 77, 255, 0.2);
  color: var(--accent-purple);
  border-radius: 10px;
  font-weight: 600;
}

.user-credits {
  display: flex;
  align-items: center;
}

.credit-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 18px;
  background: rgba(68, 138, 255, 0.08);
  border: 1px solid rgba(68, 138, 255, 0.2);
  border-radius: var(--radius-sm);
  gap: 2px;
}

.credit-badge.credit-low {
  background: rgba(255, 152, 0, 0.08);
  border-color: rgba(255, 152, 0, 0.2);
}

.credit-badge.credit-empty {
  background: rgba(255, 82, 82, 0.08);
  border-color: rgba(255, 82, 82, 0.2);
}

.credit-num {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.credit-empty .credit-num { color: var(--accent-red); }
.credit-low .credit-num { color: var(--accent-orange); }

.credit-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.user-actions {
  display: flex;
  gap: 8px;
}

.cost-tag {
  background: rgba(255, 215, 0, 0.1) !important;
  color: #ffd700 !important;
  border-color: rgba(255, 215, 0, 0.2) !important;
}

.icon-user {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 2px;
  position: relative;
}

.icon-user::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

/* ===== Admin Panel Pro ===== */
.admin-layout {
  display: flex;
  gap: 0;
  min-height: calc(100vh - 56px);
  max-width: 1200px;
  margin: 0 auto;
}
.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.admin-sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border-color);
}
.admin-sidebar-avatar {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #ff6b00;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.95rem;
}
.admin-sidebar-name { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.admin-sidebar-role { font-size: 0.72rem; color: var(--text-muted); }

.admin-nav { flex: 1; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: none; background: none;
  border-radius: 8px;
  font-size: 0.88rem; color: var(--text-secondary);
  cursor: pointer; font-family: inherit;
  transition: all .15s;
  width: 100%; text-align: left;
  position: relative;
}
.admin-nav-item:hover { background: #f5f5f5; color: var(--text-primary); }
.admin-nav-item.active {
  background: #fff3eb; color: #ff6b00; font-weight: 600;
}
.admin-nav-icon { font-size: 1.1rem; width: 22px; text-align: center; flex-shrink: 0; }
.admin-nav-badge {
  margin-left: auto;
  background: #ff5252; color: #fff;
  font-size: 0.65rem; padding: 1px 6px; border-radius: 10px;
  min-width: 18px; text-align: center;
  font-weight: 700;
}
.admin-sidebar-footer { padding: 8px; border-top: 1px solid var(--border-color); }

.admin-main { flex: 1; min-width: 0; padding: 24px 28px 60px; overflow-x: hidden; }
.admin-main-header { margin-bottom: 20px; }
.admin-main-header h2 { margin: 0; font-size: 1.3rem; }
.admin-main-content { }

/* Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.admin-stat-card {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: 10px; padding: 18px 16px;
  display: flex; align-items: center; gap: 14px;
}
.admin-stat-icon { font-size: 1.3rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; }
.admin-stat-body { }
.admin-stat-value { font-size: 1.3rem; font-weight: 700; line-height: 1.3; }
.admin-stat-label { font-size: 0.75rem; color: var(--text-muted); }

/* Cards */
.admin-card {
  background: #fff; border: 1px solid var(--border-color);
  border-radius: 10px; padding: 20px 24px; margin-bottom: 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.admin-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.admin-card-header h3 { margin: 0; font-size: 1rem; }
.admin-count { font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }

/* Info grid */
.admin-info-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.admin-info-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}
.admin-info-label { color: var(--text-muted); font-size: 0.82rem; }
.admin-info-value { font-weight: 600; font-size: 0.88rem; }

/* Filter tabs */
.admin-filter-tabs {
  display: flex; gap: 4px; margin-bottom: 14px;
  background: #f5f5f5; border-radius: 8px; padding: 3px;
}
.filter-tab {
  padding: 7px 16px; border: none; background: none;
  border-radius: 6px; font-size: 0.82rem; font-family: inherit;
  color: var(--text-secondary); cursor: pointer;
  transition: all .15s;
}
.filter-tab:hover { color: var(--text-primary); }
.filter-tab.active { background: #fff; color: var(--text-primary); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.filter-count { font-size: 0.7rem; color: var(--text-muted); margin-left: 4px; }
.filter-count.pending { color: #ff9800; font-weight: 700; }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 0.72rem; font-weight: 600; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-muted { background: #f5f5f5; color: #9e9e9e; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 0.68rem; font-weight: 600; margin-left: 4px; }
.tag-admin { background: #e3f2fd; color: #1565c0; }
.admin-row { background: #fafbff; }

/* Credit badge */
.credit-badge { font-weight: 700; font-size: 0.82rem; }
.credit-badge.ok { color: #2e7d32; }
.credit-badge.warn { color: #e65100; }
.credit-badge.low { color: #c62828; }

/* Dot */
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.dot-green { background: #4caf50; }
.dot-red { background: #f44336; }

/* Tables (refined) */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.admin-table th {
  text-align: left; padding: 9px 12px;
  color: var(--text-muted); font-weight: 600; font-size: 0.75rem;
  border-bottom: 2px solid #f0f0f0; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; }
.admin-table tr:hover td { background: #fafafa; }
.admin-table .mono { font-family: var(--font-mono); font-size: 0.75rem; }
.admin-table .text-sm { font-size: 0.78rem; color: var(--text-muted); }
.admin-actions-cell { display: flex; gap: 6px; }
.admin-empty { text-align: center; padding: 40px; color: var(--text-muted); font-size: 0.9rem; }
.admin-loading { text-align: center; padding: 60px; color: var(--text-muted); }
.admin-error { text-align: center; padding: 40px; color: #c62828; }

/* Package edit */
.package-edit-list { display: flex; flex-direction: column; gap: 10px; }
.package-edit-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: #fafafa;
  border-radius: 8px; border: 1px solid #eee;
}
.package-edit-num { width: 24px; height: 24px; background: #ff6b00; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; font-weight: 700; flex-shrink: 0; }
.package-edit-fields { flex: 1; display: flex; gap: 8px; }
.package-edit-qr {
  width: 50px; height: 50px; border: 2px dashed #ddd; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; position: relative;
  overflow: hidden;
}
.qr-thumb { width: 100%; height: 100%; object-fit: cover; }
.qr-remove { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; background: #f44336; color: #fff; border: none; border-radius: 50%; font-size: 0.65rem; cursor: pointer; }
.qr-upload-hint { font-size: 0.58rem; color: var(--text-muted); text-align: center; }

/* Helpers */
.form-input { width: 100%; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.9rem; font-family: inherit; color: var(--text-primary); outline: none; background: #fff; }
.form-input:focus { border-color: #ff6b00; box-shadow: 0 0 0 2px rgba(255,107,0,.08); }
.form-input-sm { padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 0.82rem; font-family: inherit; outline: none; width: 100%; background: #fff; }
.form-input-sm:focus { border-color: #ff6b00; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.form-hint { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.btns-row { display: flex; gap: 10px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.ml-2 { margin-left: 8px; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.82rem; }
.text-success { color: #2e7d32; }
.text-danger { color: #c62828; }
.text-warning { color: #e65100; }
.btn-sm { padding: 5px 12px !important; font-size: 0.78rem !important; min-height: 32px !important; }
.preset-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.preset-tag { padding: 5px 12px; background: #f0f0f0; border-radius: 6px; font-size: 0.78rem; cursor: pointer; font-weight: 600; transition: all .15s; }
.preset-tag:hover { background: #ff6b00; color: #fff; }

/* Modal (refined) */
.modal-card { background: #fff; border-radius: 12px; padding: 24px; max-width: 400px; width: 90%; box-shadow: 0 12px 40px rgba(0,0,0,.15); }
.modal-card h3 { margin: 0 0 8px; font-size: 1.1rem; }

/* Mobile admin */
@media (max-width: 768px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%; flex-direction: row; flex-wrap: wrap;
    border-right: none; border-bottom: 1px solid var(--border-color);
    padding: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-sidebar-header { display: none; }
  .admin-sidebar-footer { display: none; }
  .admin-nav {
    flex-direction: row; gap: 2px; padding: 0;
    flex: 0 0 auto;
  }
  .admin-nav-item {
    flex-shrink: 0; width: auto;
    padding: 8px 12px; font-size: 0.78rem;
  }
  .admin-nav-icon { font-size: 0.95rem; }
  .admin-nav-badge { margin-left: 4px; }
  .admin-main { padding: 14px 10px 40px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-stat-card { padding: 12px 10px; gap: 8px; }
  .admin-stat-icon { width: 32px; height: 32px; font-size: 1rem; }
  .admin-stat-value { font-size: 1rem; }
  .admin-stat-label { font-size: 0.68rem; }
  .admin-info-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .package-edit-row { flex-wrap: wrap; }
  .package-edit-fields { flex: 1 1 100%; flex-wrap: wrap; }
  .package-edit-fields .form-input-sm { flex: 1 1 30%; min-width: 70px; }
  .admin-table { min-width: 560px; }
  .admin-actions-cell { flex-direction: row; }
}
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary);
}


/* Recharge presets */
.recharge-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.preset-tag {
  padding: 6px 14px;
  background: rgba(68,138,255,0.08);
  border: 1px solid rgba(68,138,255,0.2);
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--accent-blue);
  transition: var(--transition);
  user-select: none;
}

.preset-tag:hover {
  background: rgba(68,138,255,0.18);
}

/* ===== Toast ===== */
.toast-msg {
  position: fixed; top: 80px; left: 50%;
  transform: translateX(-50%) translateY(-120px);
  background: #1a1a2e; color: #fff; border: none;
  border-radius: var(--radius-md); padding: 12px 28px;
  font-size: 0.9rem; z-index: 10000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transition: transform 0.3s ease; pointer-events: none;
}
.toast-msg.show { transform: translateX(-50%) translateY(0); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }

/* ===== 汉堡菜单（桌面端隐藏） ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 210;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2.5px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== 响应式 ===== */

/* ---------- 平板 / 小屏笔记本 (≤768px) ---------- */
@media (max-width: 768px) {
  /* 汉堡菜单 */
  .nav-hamburger { display: flex; margin-left: auto; }
  .nav-links, .nav-right { display: none !important; }
  .nav-links.mobile-open,
  .nav-right.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: #fff;
    padding: 12px 16px;
    gap: 2px;
    overflow-y: auto;
    z-index: 199;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }
  .nav-right.mobile-open {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0; right: 0;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
  }
  .nav-links.mobile-open .nav-link {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    font-size: 0.95rem;
    border-radius: 10px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  /* 排版 */
  html { font-size: 14px; }
  .hero-title { font-size: 1.8rem; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .home-hero h1 { font-size: 2rem; }

  /* 卡片 & 布局 */
  .mode-card { padding: 24px 16px; border-radius: 12px; }
  .config-card { padding: 20px 14px; border-radius: 10px; }
  .report-section { padding: 18px; }
  .question-card { padding: 18px; }
  .interview-page-pro { padding: 12px 8px 30px; }
  section { padding: 40px 16px; }
  .profile-container { padding: 20px 14px 40px; }
  .config-page { padding: 16px 14px 40px; }

  /* 顶部导航 */
  #status-bar { padding: 6px 14px; font-size: 0.7rem; }
  .nav-inner { padding: 0 16px; }

  /* Grid 回退 */
  .home-features-grid { grid-template-columns: repeat(2, 1fr); }
  .home-steps-grid { grid-template-columns: 1fr; }
  .home-showcase-body { flex-direction: column; }
  .home-compare-grid { grid-template-columns: 1fr; }

  /* 管理后台 */
  /* 首页英雄 */
  .home-hero-stats { gap: 20px; }
  .stat-item { padding: 12px; }
}

/* ---------- 大屏手机 (≤480px) ---------- */
@media (max-width: 480px) {
  html { font-size: 13px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .home-hero h1 { font-size: 1.6rem; }
  .home-hero .subtitle { font-size: 0.95rem; }
  .home-hero { padding: 70px 14px 36px; }

  /* Grid → 全单列 */
  .home-features-grid { grid-template-columns: 1fr; }
  .home-hero-stats { flex-direction: column; gap: 12px; align-items: stretch; }
  .home-showcase-body { flex-direction: column; }
  .training-cards { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .review-answers { grid-template-columns: 1fr; }

  /* 卡片全宽 */
  .mode-card, .config-card, .report-section, .question-card {
    padding: 16px 12px;
    border-radius: 8px;
  }
  .profile-container, .config-page { padding: 14px 10px 36px; }

  /* 触控目标 ≥ 44px */
  button, .btn, .nav-link, .nav-btn, .nav-btn-user,
  .config-level-btn, .ivp-opt, .ivp-btn-ghost, .ivp-btn-next,
  select, input[type="submit"], .back-btn {
    min-height: 44px;
  }
  .btn-small { min-height: 36px; }

  /* 表单组件换行 */
  .config-level-group, .salary-range, .ivp-top,
  .filter-bar, .verify-input-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .config-level-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 80px;
    padding: 12px 8px;
    font-size: 0.8rem;
  }
  .level-select {
    flex-wrap: wrap;
    gap: 8px;
  }
  .level-select .config-level-btn {
    flex: 1 1 calc(33% - 6px);
  }

  /* 输入框全宽 */
  input, select, textarea {
    max-width: 100%;
    font-size: 16px; /* 防 iOS 缩放 */
  }

  /* 管理后台（已在主区块适配，此处仅保留小屏补丁） */
  .admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table { font-size: 0.75rem; min-width: 480px; }
  .admin-actions-cell .btn-sm { min-height: 30px; padding: 4px 8px; font-size: 0.68rem; }

  /* 首页英雄 */
  .home-hero { padding: 36px 12px 20px; }
  .home-hero h1 { font-size: 1.4rem; }
  .home-hero .subtitle { font-size: 0.85rem; }
  .home-hero-btns { flex-direction: column; gap: 8px; width: 100%; }
  .home-hero-btns button { width: 100%; min-height: 48px; font-size: 0.9rem; }
  .home-hero-stats { flex-wrap: wrap; gap: 8px; }
  .home-hero-stat { flex: 1 1 40%; min-width: 100px; padding: 10px; }
  .home-hero-stat .num { font-size: 1.2rem; }
  .home-hero-stat .label { font-size: 0.65rem; }

  /* 套餐 / 训练卡片 */
  .package-grid, .training-cards { grid-template-columns: 1fr; gap: 12px; }
  .package-card, .training-card { padding: 18px 14px; }

  /* 个人资料 */
  .profile-section { padding: 14px 10px; }
  .profile-header { flex-direction: column; text-align: center; gap: 10px; }
  .profile-avatar-large { margin: 0 auto; }
  .profile-credit-card { flex-direction: column; text-align: center; gap: 12px; }

  /* 弹窗 */
  .modal-card { width: 94%; max-width: 94%; padding: 18px 14px; border-radius: 12px; }
  .toast-msg { left: 5%; right: 5%; font-size: 0.8rem; text-align: center; }
  .pay-modal-card { max-width: 96%; padding: 16px 12px; }
  .qr-wrapper { width: 180px; height: 180px; }
  .pay-order-row { font-size: 0.82rem; }
  .verify-input-row { flex-direction: column; gap: 8px; }
  .verify-input { width: 100%; font-size: 16px; }

  /* 充值 */
  .recharge-container { padding: 12px 10px; }
  .recharge-hero { padding: 18px 12px; }
  .recharge-hero h2 { font-size: 1.2rem; }

  /* 首页展示 */
  .home-showcase-body { flex-direction: column; }
  .home-showcase-sidebar { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .home-showcase-main { min-width: auto; }

  /* 报告 */
  .report-container { padding: 12px 0; }
  .report-hero { padding: 18px 12px; }
  .score-circle { width: 140px; height: 140px; }
  .score-circle svg { width: 140px; height: 140px; }
  .review-item { padding: 14px 10px; }
  .review-header { flex-wrap: wrap; gap: 6px; }
  .report-actions { flex-direction: column; gap: 8px; }
  .report-actions .btn { width: 100%; min-height: 44px; }

  /* 导航栏 */
  .nav-brand { font-size: 0.85rem; }
  .nav-inner { padding: 0 8px; height: 48px; }
  .nav-logo { width: 28px; height: 28px; }
  .nav-links.mobile-open { top: 48px; }
  .nav-right { gap: 4px; }
  .nav-credit { font-size: 0.7rem; padding: 0 6px; }
  .nav-btn { padding: 5px 10px; font-size: 0.72rem; min-height: 36px; }
  .nav-btn-user { padding: 4px 8px; font-size: 0.72rem; }
  .nav-btn-user .nav-avatar { width: 24px; height: 24px; font-size: 0.7rem; }

  /* 面试页面 */
  .ivp-top { flex-direction: column; gap: 6px; padding: 10px 12px; }
  .ivp-dot { width: 22px; height: 22px; font-size: 0.65rem; min-width: 22px; }
  .ivp-question { font-size: 0.95rem; }
  .ivp-opt { padding: 12px 14px; margin-bottom: 6px; }

  /* 个人资料 */
  .profile-section { padding: 16px 12px; }
  .record-summary { grid-template-columns: 1fr 1fr; gap: 8px; }
  .record-item { padding: 10px; font-size: 0.8rem; }

  /* Toast / 弹窗 */
  .modal-card { width: 94%; max-width: 94%; padding: 18px 14px; }
  .toast-msg { left: 5%; right: 5%; font-size: 0.8rem; text-align: center; }
  #status-bar { padding: 4px 10px; font-size: 0.65rem; }
}

/* ---------- 小屏手机 (≤360px) ---------- */
@media (max-width: 360px) {
  html { font-size: 12px; }
  .home-hero h1 { font-size: 1.4rem; }
  .home-hero .subtitle { font-size: 0.85rem; }

  .nav-title { font-size: 0.8rem; }
  .nav-logo { width: 24px; height: 24px; }
  .nav-hamburger { width: 40px; height: 40px; }
  .nav-hamburger span { width: 20px; }

  .config-level-btn {
    flex: 1 1 100%;
    min-width: 0;
  }

  .record-summary { grid-template-columns: 1fr; }
}

/* ===== 水面 + 面试鸡漂浮（首页） ===== */
.home-pond {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: visible;
  margin: -40px 0 0;
  z-index: 10;
}
.water-layer, .water-caustics { display: none; }

/* 水面线 */
.home-pond::before {
  content: '';
  position: absolute;
  bottom: 30px;
  left: 5%; right: 5%;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05) 20%, rgba(0,0,0,0.07) 50%, rgba(0,0,0,0.05) 80%, transparent);
  pointer-events: none;
}

/* 鸡容器 — GPU加速 translateX 替代 left */
.pond-chicken {
  position: absolute;
  bottom: 16px;
  left: 0;
  width: 70px; height: 70px;
  z-index: 20;
  will-change: transform;
  transform: translateX(-80px);
}
.pond-chicken.walking {
  animation: floatCross 8s linear forwards;
}
.chicken-body {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  transform: scaleX(-1) translateZ(0);
  position: relative;
  z-index: 3;
  will-change: transform;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
}
.pond-chicken.walking .chicken-body {
  animation: floatBob 2.5s ease-in-out infinite;
}

/* GPU动画：仅用transform+opacity */
@keyframes floatBob {
  0%, 100% { transform: scaleX(-1) rotate(-2deg) translateY(0) translateZ(0); }
  50%      { transform: scaleX(-1) rotate(2deg)  translateY(-3px) translateZ(0); }
}
@keyframes floatCross {
  0%   { transform: translateX(-80px); }
  100% { transform: translateX(calc(100vw + 30px)); }
}

/* ---- 水面涟漪 ---- */
.step-ripple {
  position: absolute;
  bottom: -6px; left: 50%;
  width: 8px; height: 5px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(0,0,0,0.02);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  transform: translate(-50%, 0) translateZ(0);
}
.pond-chicken.walking .step-ripple {
  animation: pondRipple 2.5s ease-out infinite;
}
.pond-chicken .step-ripple:nth-child(3) { animation-delay: 0s; }
.pond-chicken .step-ripple:nth-child(4) { animation-delay: 0.8s; }
.pond-chicken .step-ripple:nth-child(5) { animation-delay: 1.6s; }
@keyframes pondRipple {
  0%   { opacity: 0;   transform: translate(-50%, 0) scaleX(0.3) scaleY(0.1) translateZ(0); }
  15%  { opacity: 0.4; transform: translate(-50%, 0) scaleX(2) scaleY(0.3) translateZ(0); }
  50%  { opacity: 0.1; transform: translate(-50%, 0) scaleX(12) scaleY(1.5) translateZ(0); }
  100% { opacity: 0;   transform: translate(-50%, 0) scaleX(30) scaleY(3) translateZ(0); }
}

/* ---- 对话气泡 ---- */
.chicken-speech {
  position: absolute;
  top: -42px;
  left: 50%;
  background: #fff;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 18px;
  white-space: nowrap;
  opacity: 0;
  z-index: 30;
  box-shadow: 0 3px 16px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
  pointer-events: none;
  transform: translateX(-50%);
}
.chicken-speech::after {
  content: '';
  position: absolute;
  bottom: -7px; left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}
.chicken-speech.show {
  opacity: 1;
  animation: bubbleEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes bubbleEnter {
  0%   { opacity: 0; transform: translateX(-50%) translateY(10px) scale(0.5); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}
