:root {
  --bg: #292a3a;
  --surface: #23263a;
  --surface-2: #181a22;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --primary: #8000ff;
  --accent: #00ffc8;
  --border: rgba(255, 255, 255, 0.1);
  --danger: #ff6a8f;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, Arial, sans-serif; background: radial-gradient(circle at top, #3b275c 0%, var(--bg) 50%, #1d1e2b 100%); color: var(--text); }
body { min-height: 100vh; }

.hidden { display: none !important; }

.splash {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #201d33 0%, var(--bg) 100%);
  animation: fadeOut 0.4s ease 1.3s forwards;
  z-index: 10;
}

.splash-logo {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), #a14dff);
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  box-shadow: 0 0 40px rgba(128, 0, 255, 0.45);
  animation: pulse 1.1s ease-out;
}

.splash h1, .splash p { margin: 0; }
.splash p { margin-top: 8px; color: var(--muted); }

.app { padding: 32px 20px; }
.shell { max-width: 1280px; margin: 0 auto; }

.auth-card {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero-copy, .auth-form, .panel, .topbar, .mini-card, .tabbar {
  background: rgba(35, 38, 58, 0.9);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-copy {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy h1 { font-size: 52px; line-height: 1.05; margin: 8px 0 12px; }
.hero-copy p { color: var(--muted); max-width: 560px; font-size: 18px; }

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.status-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0, 255, 200, 0.08);
  border: 1px solid rgba(0, 255, 200, 0.12);
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 255, 200, 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form {
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.auth-form h2 { margin: 0 0 8px; }
label { font-size: 13px; color: var(--muted); }

input, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
}

input:focus, select:focus { border-color: var(--primary); }

.primary-btn, .ghost-btn, .text-btn, .tab-btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), #9e4cff);
  color: white;
}

.ghost-btn, .tab-btn {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--border);
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(128, 0, 255, 0.95), rgba(84, 0, 168, 0.95));
  border-color: rgba(255, 255, 255, 0.18);
}

.text-btn {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  text-align: left;
}

.message { min-height: 20px; color: var(--danger); font-size: 14px; }
.message.light { color: rgba(255,255,255,0.92); }
.muted { color: var(--muted); }

.dashboard { display: flex; flex-direction: column; gap: 18px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
}

.topbar h2 { margin: 6px 0 0; }
.topbar-copy { margin: 8px 0 0; }
.topbar-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.wallet-pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(0,255,200,0.08);
  color: var(--accent);
}

.status-grid, .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mini-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-label {
  color: var(--muted);
  font-size: 13px;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.panel { padding: 22px; }
.panel.accent { background: linear-gradient(135deg, rgba(128,0,255,0.92), rgba(75,12,140,0.92)); }
.panel h3, .panel h4 { margin-top: 0; }
.panel p { color: var(--muted); }
.panel.accent p { color: rgba(255,255,255,0.88); }

.list { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.list-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.list-item strong { display: block; margin-bottom: 4px; }
.list-item .price { color: var(--accent); font-weight: 700; }
.list-item .muted { color: var(--muted); font-size: 14px; }
.list-item button { margin-top: 10px; }

.row-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.row-actions > * { flex: 1 1 0; }

@keyframes pulse {
  from { transform: scale(0.72); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeOut {
  to { opacity: 0; visibility: hidden; }
}

@media (max-width: 900px) {
  .auth-card, .grid, .status-grid { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 40px; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .tabbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
