* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, sans-serif;
}

body {
  background: radial-gradient(circle at top, #120f2a, #05040c);
  height: 200vh;
  color: white;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 18px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* 🔑 logo left, nav right */
  backdrop-filter: blur(14px);
  z-index: 1000;
}



.navbar.scrolled {
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}

.logo {
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(90deg, #b084ff, #7a5cff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}


.nav-links a {
  text-decoration: none;
  color: #ddd;
  font-size: 15px;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: #b084ff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #b084ff;
  transition: width .3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.cta {
  background: linear-gradient(90deg, #7a5cff, #b084ff);
  border: none;
  padding: 10px 20px;
  border-radius: 999px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(122,92,255,.4);
}

.cta:hover {
  box-shadow: 0 0 30px rgba(176,132,255,.6);
}


* { box-sizing: border-box; font-family: Inter, sans-serif; }
body {
  background: radial-gradient(circle at top, #120f2a, #05040c);
  color: #fff;
  min-height: 100vh;
  padding: 155px 10px;
}

.app {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 2400px;
  padding: 29px;
  width: 100%;
}

.app h1 { text-align: center; margin-bottom: 30px; }

.swap-card {
  width: 520px;
  background: linear-gradient(180deg, #1a1535, #0d0b1c);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,.8), 0 0 40px rgba(120,100,255,.25);
}

.destination {
  margin-top: 18px;
}

.destination-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #aaa;
  margin-bottom: 8px;
}

.destination-coin {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #1f1c3d;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  color: #fff;
}

.destination-coin img {
  width: 18px;
  height: 18px;
}

.destination input {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: #14122a;
  border: 1px solid rgba(130,100,255,.2);
  color: #fff;
  font-size: 14px;
}

.destination input::placeholder {
  color: #666;
}

.destination input:focus {
  outline: none;
  border-color: #7a5cff;
  box-shadow: 0 0 0 1px rgba(122,92,255,.4);
}


.swap-row span { color: #aaa; font-size: 13px; }
.swap-input {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  padding: 0;
  margin-top: 6px;
  appearance: none;
}

.swap-input input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 18px;
  width: 50%;
}

.swap-input button {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #1f1c3d;
  border: none;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
}

.swap-input img { width: 22px; height: 22px; }

.swap-divider {
  display: flex;
  align-items: center;
  margin: 14px 0;
}

.separator-line {
  height: 1px;
  background: rgba(255,255,255,0.08);
  flex: 1;
}

.swap-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b2356, #1a1538);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff4fd8;
  font-size: 16px;
  margin: 0 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.swap-btn {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(90deg, #7a5cff, #b084ff);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
    margin-bottom: 8px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden { display: none; }

.crypto-modal {
  width: 420px;
  max-height: 70vh;
  background: linear-gradient(180deg, #1a1535, #0b0917);
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(130,100,255,.2), 0 20px 60px rgba(0,0,0,.8);
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 18px;
  display: flex;
  justify-content: space-between;
}

.modal-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.modal-search {
  padding: 0 18px 10px;
}

.modal-search input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: #14122a;
  border: none;
  color: #fff;
}

.popular-header {
  padding: 0 12px 10px;
}

.popular-header h3 {
  font-size: 12px;
  font-weight: 500;
  color: rgb(136, 136, 136);
  margin: 0;
}

.crypto-list {
  overflow-y: auto;
  padding: 8px;
}

.crypto-list::-webkit-scrollbar {
  width: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.crypto-list::-webkit-scrollbar-thumb {
  background: rgba(255, 79, 216, 0.6);
  border-radius: 4px;
}

.crypto-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
}

.crypto-item:hover {
  background: rgba(120,100,255,.15);
}

.crypto-item img { width: 32px; height: 32px; }

.crypto-symbol { font-weight: 600; }
.crypto-name { font-size: 12px; color: #aaa; }
