:root {
  --bg: #07090f;
  --bg-soft: #0e121d;
  --card: #111829;
  --accent: #3bf0c1;
  --accent-2: #5d8cff;
  --text: #e6eefc;
  --muted: #9aa4bf;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

body {
  background: radial-gradient(circle at top, #111829, #05060b 70%);
  color: var(--text);
  min-height: 100vh;
  padding: 32px 48px 60px;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(59, 240, 193, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(93, 140, 255, 0.12), transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(255, 107, 107, 0.1), transparent 45%);
  z-index: -1;
}

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

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 16px rgba(59, 240, 193, 0.6);
}

.brand h1 {
  font-size: 24px;
  letter-spacing: 1px;
}

.brand p {
  color: var(--muted);
  font-size: 13px;
}

.auth {
  display: flex;
  gap: 8px;
}

.auth input {
  background: var(--bg-soft);
  border: 1px solid #1d2538;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  min-width: 220px;
}

.auth button {
  background: var(--accent-2);
  color: #0b1020;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  background: transparent;
  border: 1px solid #1d2538;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(59, 240, 193, 0.15);
}

main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tab-panel {
  display: none;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.card {
  background: var(--card);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid #1a2233;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.card h2 {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.value {
  font-size: 28px;
  font-weight: 600;
}

.subvalue {
  margin-top: 6px;
  color: var(--muted);
}

.table-card,
.form-card {
  background: var(--card);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid #1a2233;
}

.table-card h3,
.form-card h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid #1a2233;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 500;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

.form-card form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

input,
select {
  background: var(--bg-soft);
  border: 1px solid #1d2538;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
}

button {
  font-weight: 600;
}

form button {
  background: var(--accent);
  color: #071215;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
}

.confirm {
  margin-top: 16px;
  background: rgba(59, 240, 193, 0.08);
  border: 1px solid rgba(59, 240, 193, 0.25);
  padding: 14px;
  border-radius: 12px;
}

.confirm.hidden {
  display: none;
}

.confirm-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.confirm-actions button.ghost {
  background: transparent;
  border: 1px solid #1d2538;
  color: var(--text);
}

.result {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

a {
  color: var(--accent-2);
  text-decoration: none;
}

code {
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

.wallet-actions {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.wallet-gen {
  display: flex;
  gap: 10px;
}

.wallet-gen input {
  flex: 1;
}

.wallet-gen button {
  background: var(--accent);
  color: #071215;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}

.import-section {
  background: var(--bg-soft);
  border: 1px solid #1d2538;
  border-radius: 10px;
  padding: 12px;
}

.import-section summary {
  cursor: pointer;
  color: var(--muted);
}

.import-section textarea,
.import-section input {
  width: 100%;
  margin-top: 8px;
}

.import-section button {
  margin-top: 8px;
  background: var(--accent-2);
  color: #0b1020;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

textarea {
  background: var(--bg-soft);
  border: 1px solid #1d2538;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  resize: vertical;
  font-family: monospace;
}

.small-btn {
  background: var(--accent-2);
  color: #0b1020;
  border: none;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  margin: 0 2px;
}

.small-btn.ghost {
  background: transparent;
  border: 1px solid #1d2538;
  color: var(--text);
}

@media (max-width: 720px) {
  body {
    padding: 20px;
  }

  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .auth {
    width: 100%;
  }

  .auth input {
    flex: 1;
  }
}
