:root {
  /* Default (Dark Theme) */
  --background-color: #0c0c0c;
  --wallet-bg: rgba(255, 255, 255, 0.05);
  --wallet-border: rgba(255, 255, 255, 0.1);
  --text-light: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --accent: #ffcc00;
  --accent-color: #ffcc00;
  --button-bg: #1a1a1a;
  --button-border: #333;
}

[data-theme="light"] {
  --background-color: #f4f4f4;
  --wallet-bg: rgba(255, 255, 255, 0.9);
  --wallet-border: rgba(0, 0, 0, 0.1);
  --text-light: #000;
  --text-muted: rgba(0, 0, 0, 0.6);
  --accent: #ff9900;
  --accent-color: #ff9900;
  --button-bg: #ffffff;
  --button-border: #ccc;
}

:root {
  --score-border-color: #00ff99;
  --accent: #00ff99;
  --wallet-bg: #003248;
  --text-light: #ffffff;
  --background-color: #001f2d;
  --primary-color: #002b3a;
  --gradient-mid: #004a66;
  --bg-dark: #003248;
  --accent-color: #ffcc00;
  --hover-bg: #005473;
  --border-accent: #D8904B;
}

/* Wallet Sidebar */
.wallet-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  height: 100vh;
  background: linear-gradient(to bottom, var(--background-color), var(--primary-color), var(--gradient-mid));
  backdrop-filter: blur(4px);
  color: var(--text-light);
  z-index: 20;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.wallet-section.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Wallet Box */
.wallet-box {
  background-color: var(--wallet-bg);
  border-radius: 30px;
  border-left: 0.6vw solid var(--score-border-color);
  border-right: 0.6vw solid var(--score-border-color);
  padding: 12px 18px;
  box-shadow: 0 0 15px rgba(0, 255, 179, 0.6);
  width: 89%;
  max-width: 360px;
  margin: 10px 0;
  color: #fff;
  text-align: left;
}

/* Keep all other styles the same */
.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.wallet-header h3 {
  font-weight: 70;
  font-size: 28px;
  letter-spacing: 1.2px;
  color: #a5b8ff;
}

#ton-connect-button {
  margin: 20px;
}

#disconnect-wallet-button {
  margin-bottom: 20px;
}

#disconnect-wallet-button button {
  width: 100%;
  padding: 12px 0;
  background: #ff6b6b;
  border: none;
  border-radius: 14px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.6);
}

#disconnect-wallet-button button:hover {
  background: #ff3b3b;
  box-shadow: 0 6px 15px rgba(255, 59, 59, 0.8);
}

/* Balance Display */
#walletMarcBalance {
  font-size: 26px;
  font-weight: bold;
  color: #ffffff;
  margin-left: 8px;
}

/* Eye Icon */
#eye {
  background: none;
  border: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}
#eye:hover {
  color: var(--accent);
}

/* Wallet Actions */
.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.wallet-actions button {
  padding: 15px 5px;
  background-color: var(--wallet-bg);
  border: none;
  border-left: 0.3vw solid var(--score-border-color);
  border-right: 0.3vw solid var(--score-border-color);
  color: var(--text-light);
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.wallet-actions button:hover {
  background: linear-gradient(to bottom, #530404, var(--wallet-bg));
  box-shadow: 0 5px 5px rgba(0, 123, 255, 0.3), 0 10px 10px rgba(255, 0, 150, 0.2);
}

.wallet-actions-btn {
  padding: 10px 15px;
  background-color: var(--wallet-bg);
  border: none;
  border-radius: 60px;
  color: var(--text-light);
  font-size: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background-color 0.3s ease;
}
.wallet-actions-btn i {
  font-size: 13px;
}
.wallet-actions-btn:hover {
  background-color: #00212f;
}



/* Crypto List */
.crypto-list {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}
.crypto-list::-webkit-scrollbar {
  width: 6px;
}
.crypto-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}
.crypto-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

/* Asset Styles */
.asset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 30px;
  background-color: var(--bg-dark);
  border: 3px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 5px;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.asset:hover {
  background-color: var(--hover-bg);
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 123, 255, 0.2);
}
.asset:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}
.asset img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  margin-right: 10px;
}
.asset span {
  flex: 1;
  text-align: left;
  font-weight: bold;
  color: var(--text-light);
  font-size: 14px;
}

/* Countdown Timer */
.listing-timer {
  background-color: var(--bg-dark);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  margin-bottom: 15px;
  color: var(--text-light);
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}
#countdown {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  flex-wrap: wrap;
  font-weight: bold;
  color: var(--border-accent);
  font-size: 1.2em;
}
.time-box {
  background-color: var(--hover-bg);
  padding: 15px;
  border-radius: 10px;
  min-width: 65px;
  text-align: center;
  color: var(--text-light);
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  animation: pulse 4s infinite ease-in-out;
  position: relative;
}
.time-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 5px 5px rgba(0, 123, 255, 0.3), 0 10px 10px rgba(255, 0, 150, 0.2);
}
.time-box span:first-child {
  font-size: 26px;
  margin-bottom: 4px;
  text-shadow: 0 0 5px var(--accent-color), 0 0 10px var(--accent-color);
}
.time-box span:last-child {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.85;
}
.time-box:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

/* Listing Platforms */
.listing-platforms {
  text-align: center;
  margin-top: 20px;
  color: var(--text-light);
}
.listing-platforms .platforms {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.platform {
  display: flex;
  align-items: center;
  background-color: var(--bg-dark);
  padding: 8px 10px;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
.platform:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 5px rgba(0, 123, 255, 0.3), 0 10px 10px rgba(255, 0, 150, 0.2);
}
.platform:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 3px;
}
.platform-logo {
  width: 23px;
  height: 23px;
  margin-right: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.platform span {
  font-size: 15px;
  color: var(--text-light);
}

/* Launch Lock */
.launch-lock-msg {
  background-color: var(--bg-dark);
  margin: 10% auto;
  padding: 30px;
  border: 1px solid var(--border-accent);
  width: 60%;
  max-width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.launch-lock-msg p {
  font-weight: bold;
  color: var(--text-light);
  margin-bottom: 12px;
}
.launch-lock-msg button {
  padding: 8px 16px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Dropdown Asset List */
.custom-select img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}
.asset-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-radius: 20px;
  max-height: 180px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  z-index: 999;
}
.asset-list li {
  display: flex;
  align-items: center;
  padding: 10px;
  cursor: pointer;
}
.asset-list li:hover {
  border-left: 4px solid var(--border-accent);
  border-right: 4px solid var(--border-accent);
}
.asset-list img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Extra Adjustments */
#manageAssetsBtn,
#assetListingBtn {
  margin-left: 0px;
  transform: translateY(-15px);
}
#manageAssetsSection,
#assetListingSection {
  transform: translateY(-13px);
}

/* Pulse Animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Responsive Design */
@media (max-width: 600px) {
  .crypto-list {
    max-height: 200px;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
  }
}
@media (max-width: 480px) {
  .wallet-balance-container {
    max-width: 90%;
    padding: 10px;
  }
  .asset {
    padding: 10px;
  }
  .asset img {
    width: 30px;
    height: 30px;
  }
  .asset span {
    font-size: 12px;
  }
  .time-box {
    min-width: 30px;
    padding: 10px;
  }
  .time-box span:first-child {
    font-size: 20px;
  }
  .time-box span:last-child {
    font-size: 10px;
  }
}

.theme-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--wallet-border);
  background-color: var(--wallet-bg);
  color: var(--accent-color);
  transition: background-color 0.3s, color 0.3s, border 0.3s;
}

.theme-toggle:hover {
  background-color: var(--accent-color);
  color: var(--background-color);
  cursor: pointer;
}