:root {
  --bg-color: #0b0e14;
  --card-bg: #151a23;
  --card-border: #232a36;
  --text-main: #f0f4f8;
  --text-muted: #8b98a5;
  --accent-cyan: #05b583;
  --accent-blue: #0b63f6;
  --accent-red: #ff334b;
  --accent-yellow: #f5a623;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(5, 181, 131, 0.18) 0%, rgba(11, 99, 246, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 680px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header */
.header { text-align: center; margin-bottom: 5px; }

.badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(5, 181, 131, 0.15);
  border: 1px solid rgba(5, 181, 131, 0.4);
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  border-radius: 20px;
  margin-bottom: 12px;
}

h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, #a0aec0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle { font-size: 14px; color: var(--text-muted); }

/* General Card */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Status Card */
.status-card {
  border-left: 4px solid var(--accent-yellow);
  transition: all 0.3s;
}

.status-card.active {
  border-left-color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(5, 181, 131, 0.06) 0%, var(--card-bg) 100%);
}

.status-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.active { background: var(--accent-cyan); box-shadow: 0 0 12px var(--accent-cyan); }
.status-dot.warning { background: var(--accent-yellow); box-shadow: 0 0 10px var(--accent-yellow); }
.status-dot.error { background: var(--accent-red); box-shadow: 0 0 10px var(--accent-red); }

.status-headline { font-size: 15px; font-weight: 600; }
.status-description { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.small-btn {
  background: #1f2733;
  border: 1px solid var(--card-border);
  color: #fff;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}

.small-btn:hover { background: #2a3444; }

/* Pulse animation */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(5, 181, 131, 0.5); }
  70% { box-shadow: 0 0 0 14px rgba(5, 181, 131, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 181, 131, 0); }
}

.pulse {
  animation: pulseGlow 2s infinite;
}

/* Auto Download Notification Banner */
.auto-banner {
  background: rgba(11, 99, 246, 0.08);
  border: 1px solid rgba(11, 99, 246, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auto-banner-content { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.auto-banner-icon { font-size: 20px; }
.auto-banner-title { font-weight: 600; color: #fff; }
.auto-banner-subtitle { font-size: 12px; color: var(--text-muted); }

/* Token Card */
.token-card { border-left: 4px solid var(--accent-cyan); }

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

.token-logo-wrapper {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.token-logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  background: #111;
}

.network-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #e02424;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 8px;
}

.token-identity h2 { font-size: 18px; font-weight: 600; }
.token-symbol { font-size: 12px; color: var(--accent-cyan); font-weight: 500; }

.network-tabs {
  display: flex;
  gap: 10px;
}

.tab-btn {
  flex: 1;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.tab-btn.active {
  background: rgba(5, 181, 131, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.token-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.detail-label { color: var(--text-muted); }
.detail-value { color: var(--text-main); font-weight: 500; }

.mono { font-family: var(--font-mono); font-size: 12px; }

.copyable { cursor: pointer; transition: color 0.2s; }
.copyable:hover { color: var(--accent-cyan); text-decoration: underline; }

.disclaimer {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  padding: 10px 14px;
  border-radius: 8px;
}

/* Fast Installer Card */
.fast-card {
  border-top: 3px solid var(--accent-cyan);
}

.fast-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.fast-tag {
  background: rgba(5, 181, 131, 0.2);
  color: var(--accent-cyan);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
}

.fast-card h3 { font-size: 17px; }

/* Install Guide */
.install-card h3, .guide-card h3 { font-size: 17px; margin-bottom: 6px; }
.section-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }

.guide-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.step-badge {
  background: #1f2733;
  color: var(--accent-cyan);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  height: fit-content;
  border-radius: 6px;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.step-content h4 { font-size: 14px; font-weight: 600; color: #fff; }
.step-content p { font-size: 13px; color: var(--text-muted); }

.download-action { margin-top: 4px; margin-bottom: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #048c65 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(5, 181, 131, 0.3);
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 181, 131, 0.4);
}

.secondary-btn {
  background: #1e2634;
  border: 1px solid var(--card-border);
  color: #fff;
}

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

.download-btn { width: 100%; }

/* Hash Verifier */
.hash-verifier {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}

.hash-title { color: var(--text-muted); margin-bottom: 4px; }

.hash-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #38bdf8;
  word-break: break-all;
  background: #0f131a;
  padding: 6px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.hash-check-ui {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  cursor: pointer;
}

.file-input { font-size: 11px; color: var(--text-muted); }

.hash-result {
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

.hash-result.pass { color: var(--accent-cyan); }
.hash-result.fail { color: var(--accent-red); }

/* Browser Links */
.browser-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0;
}

.browser-chip {
  background: #1a222f;
  border: 1px solid var(--card-border);
  color: #d1d5db;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.browser-chip code {
  color: #38bdf8;
  font-family: var(--font-mono);
}

.browser-chip:hover {
  background: #232c3c;
  color: #fff;
}

.substep-text { font-size: 12px !important; color: #94a3b8 !important; }

/* Log Card */
.log-card { padding: 18px 20px; }
.log-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.audit-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: #1f2733;
  border-radius: 6px;
  color: #6ee7b7;
}

.log-console {
  background: #080a0e;
  border: 1px solid #1a202c;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.log-entry.pass { color: var(--accent-cyan); }
.log-entry.fail { color: var(--accent-red); }
.log-entry.warn { color: var(--accent-yellow); }

/* Footer */
.footer {
  text-align: center;
  font-size: 12px;
  color: #556270;
  margin-top: 6px;
}
