/* 基礎重設 */
:root {
  --font-main: 'Outfit', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bg-primary: #080c14;
  --bg-glow-1: rgba(16, 185, 129, 0.15); /* Emerald glow */
  --bg-glow-2: rgba(59, 130, 246, 0.15);  /* Blue glow */
  
  --glass-bg: rgba(17, 25, 40, 0.75);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --color-emerald: #10b981;
  --color-emerald-hover: #059669;
  --color-emerald-glow: rgba(16, 185, 129, 0.25);
  
  --color-blue: #3b82f6;
  --color-blue-hover: #2563eb;
  
  --color-danger: #ef4444;
  --color-danger-hover: #dc2626;
  
  --color-warning: #f59e0b;
  --color-gold: #fbbf24;
  --color-silver: #cbd5e1;
  --color-bronze: #b45309;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 16px;
  overflow-x: hidden;
}

/* 霓虹背景發光 */
.app-background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg-primary);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.glow-1 {
  width: 350px;
  height: 350px;
  top: -100px;
  right: -50px;
  background: var(--bg-glow-1);
}

.glow-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -100px;
  background: var(--bg-glow-2);
}

/* 容器與卡片 */
.app-container {
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  display: none;
  animation: cardFadeIn 0.4s ease-out forwards;
}

.glass-card.active {
  display: block;
}

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

/* 首頁 Header */
.app-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
}

.logo-icon {
  font-size: 2.2rem;
  color: var(--color-emerald);
  animation: rotateLogo 8s linear infinite;
}

@keyframes rotateLogo {
  100% { transform: rotate(360deg); }
}

.app-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #a7f3d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* 表單與欄位 */
.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

input[type="text"],
input[type="number"] {
  width: 100%;
  padding: 14px 14px 14px 44px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-smooth);
  outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus {
  border-color: var(--color-emerald);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--color-emerald-glow);
}

/* 雙頁籤 */
.tab-buttons {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  cursor: pointer;
  border-radius: calc(var(--radius-md) - 2px);
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background: var(--color-emerald);
  color: #0b0f19;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.settings-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.settings-row input {
  padding-left: 16px; /* 沒有 icon 時 */
}

/* 快速配置 */
.quick-settings {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

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

.quick-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.quick-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-secondary);
}

/* 按鈕系統 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--color-blue);
  color: white;
}

.btn-primary:hover {
  background: var(--color-blue-hover);
}

.btn-emerald {
  background: var(--color-emerald);
  color: #0b0f19;
}

.btn-emerald:hover {
  background: var(--color-emerald-hover);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.btn-danger {
  background: var(--color-danger);
  color: white;
}

.btn-danger:hover {
  background: var(--color-danger-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-secondary);
}

.btn-full-width {
  width: 100%;
}

.btn-lg {
  padding: 16px 28px;
}

.btn-text {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.text-danger {
  color: var(--color-danger) !important;
}

.text-danger:hover {
  color: #f87171 !important;
}

/* 房間資訊 */
.room-header {
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 18px;
  margin-bottom: 20px;
}

.room-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.room-title-bar h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-primary {
  background: rgba(59, 130, 246, 0.15);
  color: var(--color-blue);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.room-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.info-item {
  background: rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.info-item.clickable {
  cursor: pointer;
  transition: var(--transition-smooth);
}

.info-item.clickable:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.info-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-item .val {
  font-size: 0.95rem;
  font-weight: 700;
}

.info-item .val.highlight {
  color: var(--color-emerald);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.copy-icon {
  font-size: 0.85rem;
}

/* 玩家列表區 */
.players-section {
  margin-bottom: 24px;
}

.players-section h3,
.history-section h3,
.leaderboard-section h3 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.players-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 玩家卡片 */
.player-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  transition: var(--transition-smooth);
}

.player-card.is-me {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.03);
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-card.is-me .player-avatar {
  background: var(--color-emerald);
  color: #0b0f19;
  border-color: var(--color-emerald);
}

.player-meta {
  display: flex;
  flex-direction: column;
}

.player-name {
  font-weight: 700;
  font-size: 1rem;
}

.player-badge {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.player-score {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.player-score.plus {
  color: var(--color-emerald);
}

.player-score.minus {
  color: var(--color-danger);
}

.player-score.zero {
  color: var(--text-secondary);
}

.player-score.hidden-score {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* 提示訊息 */
.alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.hidden {
  display: none !important;
}

/* 歷史紀錄列表 */
.history-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.history-title-bar .val {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rounds-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

/* 自訂捲軸 */
.rounds-history-list::-webkit-scrollbar {
  width: 5px;
}

.rounds-history-list::-webkit-scrollbar-track {
  background: transparent;
}

.rounds-history-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

/* 單局歷史卡片 */
.round-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.round-card.is-hidden-detail {
  background: rgba(0, 0, 0, 0.1);
}

.round-info-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.round-number {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}

.round-detail-main {
  font-size: 0.95rem;
  font-weight: 600;
}

.round-detail-main .self-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-emerald);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  margin-left: 6px;
}

.round-detail-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.round-money {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.round-money.plus {
  color: var(--color-emerald);
}

.round-money.minus {
  color: var(--color-danger);
}

.round-money.hidden-money {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.room-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.flex-1 {
  flex: 1;
}

.exit-wrapper {
  text-align: center;
  margin-top: 18px;
}

/* ================= CUSTOM DIALOG ================= */
.custom-dialog {
  margin: auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 0;
  width: 90%;
  max-width: 440px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: var(--text-primary);
  outline: none;
}

.custom-dialog::backdrop {
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.dialog-content {
  padding: 24px;
}

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

.dialog-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-dialog {
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

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

/* 胡牌者單選按鈕組 */
.radio-card-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-card-label {
  cursor: pointer;
}

.radio-card-label input {
  display: none;
}

.player-select-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.radio-card-label input:checked + .player-select-btn {
  background: var(--color-emerald);
  color: #0b0f19;
  border-color: var(--color-emerald);
  box-shadow: 0 4px 12px var(--color-emerald-glow);
}

/* 模式選擇卡片 */
.mode-selection-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mode-radio-label {
  cursor: pointer;
}

.mode-radio-label input {
  display: none;
}

.mode-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  transition: var(--transition-smooth);
}

.mode-card i {
  font-size: 1.25rem;
}

.mode-radio-label input:checked + .mode-card {
  border-color: var(--color-emerald);
  background: rgba(16, 185, 129, 0.08);
  color: var(--color-emerald);
}

.mode-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* 台數 Grid */
.points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.point-btn-label {
  cursor: pointer;
}

.point-btn-label input {
  display: none;
}

.point-btn-label span {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 10px 0;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  font-family: 'Outfit', sans-serif;
}

.point-btn-label input:checked + span {
  background: var(--color-emerald);
  color: #0b0f19;
  border-color: var(--color-emerald);
}

/* 金額估算卡 */
.amount-preview-card {
  background: rgba(16, 185, 129, 0.03);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.preview-math {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.preview-math span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.preview-amount {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-emerald) !important;
  font-family: 'Outfit', sans-serif;
}

.preview-detail-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* 結算警告對話框 */
.dialog-body {
  padding: 12px 0 24px 0;
}

.warning-icon-large {
  font-size: 3rem;
  color: var(--color-danger);
  margin-bottom: 16px;
}

.warning-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.warning-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 12px;
}

/* ================= 結算畫面 (SETTLEMENT) ================= */
.settle-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.settle-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.trophy-icon {
  font-size: 2rem;
  color: var(--color-gold);
  animation: bounceTrophy 2s ease-in-out infinite;
}

@keyframes bounceTrophy {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.settle-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.settle-summary-bar {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 10px;
}

/* 排行榜 */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.leaderboard-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  position: relative;
  overflow: hidden;
}

.leaderboard-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.rank-1 { border-color: rgba(251, 191, 36, 0.3); background: rgba(251, 191, 36, 0.03); }
.rank-1::before { background: var(--color-gold); }

.rank-2 { border-color: rgba(203, 213, 225, 0.3); background: rgba(203, 213, 225, 0.03); }
.rank-2::before { background: var(--color-silver); }

.rank-3 { border-color: rgba(180, 83, 9, 0.3); background: rgba(180, 83, 9, 0.03); }
.rank-3::before { background: var(--color-bronze); }

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-right: 8px;
}

.rank-1 .rank-badge { background: var(--color-gold); color: #0b0f19; }
.rank-2 .rank-badge { background: var(--color-silver); color: #0b0f19; }
.rank-3 .rank-badge { background: var(--color-bronze); color: white; }
.rank-4 .rank-badge { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); }

.text-center {
  text-align: center;
}

/* 統計數據區 */
.stats-section {
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.stats-section h3 {
  margin-bottom: 14px;
}

.stat-box-large {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.15);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 700;
}

.stat-box-large .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.stat-box-large .stat-val {
  font-size: 1.15rem;
  color: var(--color-emerald);
  font-family: 'Outfit', sans-serif;
}

.stats-table-wrapper {
  overflow-x: auto;
}

.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
}

.stats-table th {
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.15);
}

.stats-table td {
  color: var(--text-primary);
  font-weight: 500;
}

.stats-table tr:last-child td {
  border-bottom: none;
}

.stats-table td:first-child {
  font-weight: 700;
  text-align: left;
}

/* 免責聲明 */
.disclaimer-wrapper {
  margin-top: 28px;
  padding: 14px 18px;
  background: rgba(239, 68, 68, 0.02);
  border: 1px dashed rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-md);
  text-align: justify;
}

.disclaimer-wrapper p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.6;
}

