:root {
  --bg-dark: #080a10;
  --bg-card: #10141f;
  --bg-card-hover: #161c2c;
  --border-color: #1e2638;
  --sol-purple: #9945FF;
  --sol-green: #14F195;
  --accent-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;
}

/* Nav */
.top-nav {
  background: rgba(16, 20, 31, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-container {
  max-width: 1100px;
  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-sol {
  background: rgba(153, 69, 255, 0.15);
  color: #c084fc;
  border: 1px solid rgba(153, 69, 255, 0.35);
  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;
  flex-shrink: 0;
}

.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 ease;
}

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

.lang-btn.active {
  background: rgba(153, 69, 255, 0.25);
  color: #d8b4fe;
}

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

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

/* Main */
.main-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.hero-section {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(20, 241, 149, 0.1);
  color: var(--sol-green);
  border: 1px solid rgba(20, 241, 149, 0.25);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

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

/* Calc Card */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dest-wallet-box {
  margin-bottom: 1.5rem;
}

.dest-wallet-box label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.dest-input-group input {
  width: 100%;
  background: #090c14;
  border: 1px solid var(--border-color);
  color: var(--sol-green);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.dest-input-group input:focus {
  border-color: var(--sol-green);
}

.sub-wallet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.sub-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.btn-connect:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* KPI Grid */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.kpi-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

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

.text-sol {
  color: var(--sol-purple);
}

.text-purple {
  color: #c084fc;
}

.text-green {
  color: var(--sol-green);
}

/* Sweep Button */
.action-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding-top: 0.5rem;
}

.btn-sweep {
  width: 100%;
  max-width: 480px;
  background: linear-gradient(135deg, #14F195 0%, #00d2ff 100%);
  color: #04121e;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(20, 241, 149, 0.35);
  cursor: pointer;
}

.btn-sweep:hover:not(:disabled) {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(20, 241, 149, 0.45);
}

.btn-sweep:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
  box-shadow: none;
}

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

/* Assets Table */
.assets-section {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

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

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

.section-badge {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

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

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

.assets-table th {
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.assets-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.empty-row {
  text-align: center;
  color: var(--text-muted);
  padding: 2.5rem 1rem !important;
}

.code-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  color: #93c5fd;
}

/* FAQs */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

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

.faq-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

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

@media (max-width: 640px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .sub-wallet-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .nav-controls {
    gap: 0.5rem;
  }
}
