:root {
  --bg-dark: #080b14;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --border-color: #1e293b;
  --sol-purple: #9945FF;
  --sol-green: #14F195;
  --sol-cyan: #00d2ff;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --font-sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
}

/* 頂部導航 */
.top-nav {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
}

.gradient-text {
  background: linear-gradient(135deg, var(--sol-purple) 0%, var(--sol-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-solana {
  background: rgba(153, 69, 255, 0.15);
  color: #c084fc;
  border: 1px solid rgba(153, 69, 255, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active, .lang-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}

.nav-link-home {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link-home:hover {
  color: var(--sol-green);
}

/* 主容器 */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Hero 區 */
.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(20, 241, 149, 0.12);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-desc strong {
  color: var(--sol-green);
}

/* 錢包卡片 */
.wallet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 2.5rem;
}

.wallet-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.wallet-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #64748b;
}

.status-indicator.connected {
  background-color: var(--sol-green);
  box-shadow: 0 0 10px var(--sol-green);
}

.wallet-addr-text {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

/* 按鈕樣式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-connect {
  background: linear-gradient(135deg, #7c3aed 0%, #9945FF 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(153, 69, 255, 0.35);
}

.btn-connect:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* KPI 網格 */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.kpi-box {
  background: rgba(8, 11, 20, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.kpi-val {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-mono);
}

.kpi-sub {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.text-sol { color: var(--sol-cyan); }
.text-green { color: var(--sol-green); }
.text-purple { color: #c084fc; }

/* 動作列 */
.action-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.btn-reclaim {
  width: 100%;
  max-width: 480px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  background: linear-gradient(135deg, #10b981 0%, #14F195 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 6px 20px rgba(20, 241, 149, 0.35);
}

.btn-reclaim:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-reclaim:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(20, 241, 149, 0.45);
}

.action-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 帳戶表格 */
.accounts-section {
  margin-bottom: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.section-badge {
  background: rgba(148, 163, 184, 0.15);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow-x: auto;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.account-table th {
  background: rgba(8, 11, 20, 0.6);
  padding: 0.85rem 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}

.account-table td {
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  font-family: var(--font-mono);
}

.account-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.4);
}

.empty-row {
  text-align: center;
  padding: 3rem 1.5rem !important;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* 問答卡片 */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.faq-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
}

.faq-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #fff;
}

.faq-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.faq-card code {
  background: rgba(0, 0, 0, 0.4);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--sol-cyan);
  font-family: var(--font-mono);
}

@media (max-width: 640px) {
  .hero-title { font-size: 1.8rem; }
  .wallet-status-bar { flex-direction: column; align-items: stretch; }
  .btn-connect { width: 100%; }
}
