@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

* {
  box-sizing: border-box;
}

/* === Global Styles === */
body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #0b0f1a;
  color: #f0f0f0;
  margin: 0;
  padding: 20px;
  text-align: center;
}

h1 {
  color: #f3ba2f;
  margin-bottom: 30px;
  font-size: 32px;
  text-shadow: 0 0 5px #f3ba2f66;
  font-family: 'Space Grotesk', sans-serif;
}

/* === Top Bar === */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #111827;
  border-bottom: 1px solid #1f2937;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
}

.logo {
  height: 200px;
  position: absolute;
  top: -60px;
}

/* === Navigation === */
.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links li a {
  color: #ddd;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 6px 4px;
  transition: color 0.3s ease;

}

.main-nav {
  margin-left: 10px;
}

.nav-links li a:hover {
  color: #f0b90b;
}

/* === Connect Wallet Buttons === */
.desktop-connect-btn {
  background-color: #fff;
  color: #111;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  margin-left: 8px;
  position: relative;
  right: 30px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.desktop-connect-btn:hover {
  background-color: #f3ba2f;
}

@media (max-width: 768px) {
  .desktop-connect-btn {
    display: none;
  }
}

/* === Wallet Info === */
.wallet-box {
  margin-bottom: 20px;
}

#walletAddress {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #ccc;
  margin-right: 30px;
}

/* === Search Box === */
.search-box {
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.search-box input {
  width: 420px;
  padding: 12px 30px;
  border-radius: 10px;
  border: 1px solid #333;
  font-size: 14px;
  background-color: #1e2026;
  color: #eee;
  transition: box-shadow 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.search-box input:focus {
  outline: none;
  box-shadow: 0 0 5px #f3ba2f99;
}

.search-box button {
  background-color: #f3ba2f;
  border: none;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.search-box button:hover {
  background-color: #dcae28;
}

/* === Main Content Margin === */
.main-content {
  margin-top: 120px;
  padding: 0 20px;
}

/* === Token Manager Layout === */
.token-manager-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 50px auto;
  padding: 0 20px;
}

/* === Instruction Box === */
.instruction-box {
  background: #1e2026;
  border: 1px solid #333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.3);
  color: rgb(100, 104, 112);
  max-width: 450px;
  font-size: 15px;
  font-family: 'Space Grotesk', sans-serif;
  text-align: left;
  animation: fadeIn 0.7s ease-in-out;
  margin-left: auto;
  margin-right: 0;
  margin-top: 10px;
}

.instruction-box h2 {
  color: #f3ba2f;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 20px;
}

.instruction-box ul {
  list-style: none;
  padding-left: 0;
}

.instruction-box li {
  margin-bottom: 10px;
}

.instruction-note {
  margin-top: 10px;
  font-size: 14px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 8px;
}

.instruction-note i {
  color: #10b981;
}

/* === Token Card === */
.token-card {
  background-color: #1e2026;
  border: 1px solid #2c2f36;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 680px;
  height: auto;
  max-height: 600px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 10px;
  white-space: normal;
  height: 492px;        

}

.token-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(243, 186, 47, 0.3);
}

.token-name {
  font-size: 25px;
  font-weight: bold;
  color: #f0b90b;
  margin-bottom: 10px;
}

.token-info {
  font-size: 16px;
  color: #ccc;
  margin-top: 8px;
  word-break: break-word;
  overflow-wrap: break-word;
}

#tokenAddress {
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
  font-size: 14px;
  color: #ccc;
}

/* === Token Actions === */
.token-actions {
  margin-top: 12px;
}

.token-actions input {
  width: 60%;
  padding: 10px;
  margin: 5px 0;
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #1e1e1e;
  color: #fff;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

.token-actions button {
  padding: 8px 12px;
  margin-left: 5px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  background-color: #f3ba2f;
  cursor: pointer;
  transition: background 0.3s ease;
}

.token-actions button:hover {
  background-color: #dcae28;
}

/* === Toast Notifications === */
.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  margin-top: 200px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  display: none;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: static;
  transform: none;
  z-index: auto;
}

.toast.show {
  display: block;
}

.toast.success {
  background-color: #f3ba2f;
  color: #ffffff;
}

.toast.error {
  background-color: #7f1d1d;
  color: #fff;
}

/* === Animations === */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulseFlash {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

/* === Social Icons === */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 20px 0 10px;
  margin-top: -35px;
}

.social-icons a {
  color: #9ca3af;
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #374151;
}

/* === Footer Note === */
.footer-note {
  color: #9ca3af;
  font-size: 13px;
  padding: 0 24px 16px;
}

.footer-note.center {
  text-align: center;
}

/* === Hamburger & Mobile Nav === */
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #f0b90b;
  position: absolute;
  top: 18px;
  z-index: 1001;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100vw;
  width: 100vw;
  height: 100%;
  background-color: #1e2026;
  padding-top: 60px;
  transition: right 0.4s ease-in-out;
  z-index: 1000;
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid #333;
}

.mobile-nav li a {
  display: block;
  padding: 30px;
  color: #ffffff;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  text-decoration: none;
}

.mobile-nav li a:hover {
  background-color: #1f2937;
}

/* === Free Label === */
.free-label {
  font-size: 10px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
  margin-top: 2px;
  font-weight: 500;
  letter-spacing: 0.3px;
  animation: pulseFlash 1.8s infinite;
}

/* === Mobile Styles === */
@media (max-width: 768px) {
  .hamburger {
    position: fixed;
    top: 18px;
    right: 20px;
    left: unset;
    z-index: 1001;
    font-size: 26px;
    cursor: pointer;
    color: #fff;
    display: block;
  }

  .main-nav {
    display: none;
  }

  .logo {
    width: 150px;
    height: auto;
    position: absolute;
    top: -25px;
    left: 10px;
  }

  .top-bar {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    height: 90px;
    padding: 12px 20px;
    gap: 10px;
  }

  .mobile-connect-btn {
    display: block;
    background-color: #fff;
    color: #111;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    margin: 200px auto;
    width: 80%;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
  }

  .mobile-connect-btn:hover {
    background-color: #f3ba2f;
  }

  .main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .instruction-box {
    order: -1;
    width: 100%;
    max-width: 95%;
    margin: 0 auto 20px auto;
  }

  .token-card {
    order: 0;
    width: 100%;
    max-width: 95%;
    margin: 0 auto;
    height: auto;
    max-height: none;
  }

  .search-box {
    max-width: 100%;
    overflow-x: hidden;
    padding: 0 10px;
    box-sizing: border-box;
  }

  .token-manager-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 10px;
  }
}
