
:root {
  --bg: #080a15;
  --panel: #121629;
  --border: #303550;
  --primary: #896cff;
  --text: #f5f5ff;
  --muted: #a3a9c2;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, #27194e, transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  min-height: 100vh;
}

button {
  cursor: pointer;
  border: none;
  font: inherit;
  transition: 0.2s ease;
}

button:hover {
  filter: brightness(1.15);
}

button:disabled {
  opacity: 0.5;
  cursor: wait;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 7%;
  border-bottom: 1px solid var(--border);
}

.logo {
  color: #b3a1ff;
  text-decoration: none;
  font-size: 25px;
  font-weight: 800;
}

.connect-btn,
.primary-btn {
  background: linear-gradient(135deg, #7856ef, #a16aff);
  color: white;
  border-radius: 12px;
  padding: 15px 25px;
  font-weight: 700;
}

main {
  max-width: 1100px;
  padding: 0 20px;
  margin: auto;
}

.hero {
  padding: 95px 0 65px;
  text-align: center;
}

.tag {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 30px;
  background: #251d48;
  border: 1px solid #4a3782;
  color: #c4b7ff;
  font-size: 12px;
  letter-spacing: 1px;
  margin-bottom: 28px;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.1;
  max-width: 850px;
  margin: auto;
}

h1 span {
  display: block;
  color: #a48aff;
}

.hero > p:not(.status) {
  max-width: 590px;
  margin: 25px auto 30px;
  line-height: 1.7;
  color: var(--muted);
}

.status {
  margin-top: 20px;
  min-height: 22px;
  color: var(--muted);
}

.status.success { color: #5ce3ab; }
.status.error { color: #ff858d; }

.dashboard {
  padding: 30px;
  margin-bottom: 75px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 25px;
}

.badge {
  background: #332b3d;
  color: #e5bc87;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 12px;
}

.badge.connected {
  background: #13392e;
  color: #5ce3ab;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.info-card,
.address-card,
.demo-card {
  background: #191e33;
  padding: 23px;
  border: 1px solid #343b59;
  border-radius: 15px;
}

.info-card label,
.address-card label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.info-card strong {
  font-size: 17px;
  overflow-wrap: anywhere;
}

.address-card {
  margin-top: 15px;
}

.address-card p {
  overflow-wrap: anywhere;
  color: #d6d9f2;
}

.demo-card {
  margin-top: 20px;
}

.demo-card h3 {
  margin-bottom: 12px;
}

.demo-card p {
  color: var(--muted);
  line-height: 1.6;
}

.secondary-btn {
  background: #34305e;
  color: white;
  border-radius: 10px;
  padding: 13px 20px;
  margin-top: 20px;
}

#simulationLog {
  color: #7be8ac;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 20px;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(9px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 85vh;
  overflow-y: auto;
  background: #171b30;
  border: 1px solid #49416b;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 25px 100px #0009;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: #303650;
  color: white;
  border-radius: 9px;
  padding: 9px 12px;
}

.modal-description,
.modal-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 17px 0;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  background: #222840;
  color: white;
  border: 1px solid #3b4361;
  border-radius: 13px;
  padding: 15px;
  margin-bottom: 10px;
  text-align: left;
}

.wallet-option img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
}

.wallet-option span {
  font-weight: 700;
}

.empty-wallets {
  color: var(--muted);
  line-height: 1.6;
  padding: 20px 0;
}

footer {
  text-align: center;
  color: #797f98;
  padding: 35px;
  font-size: 13px;
}

@media (max-width: 700px) {
  header { padding: 18px; }
  .logo { font-size: 19px; }
  .connect-btn { padding: 12px; font-size: 12px; }
  .hero { padding: 70px 0 45px; }
  .info-grid { grid-template-columns: 1fr; }
  .dashboard { padding: 18px; }
  .section-heading { flex-wrap: wrap; }
}
