body {
    font-family: Inter, system-ui;
    margin: 0;
    padding: 20px;
    background: #0d0d0f;
    color: #e0e0e0;
  }

body.modal-open {
  overflow: hidden;
}
.modal-content {
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
#sellModal {
  z-index: 1300 !important; 
}
#modal {
  z-index: 1200 !important; 
}
#collectionModal {
  z-index: 1100; 
}
.modal-content {
  background: #111;
  color: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: #aaa;
}
  
.popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
  z-index: 100000;
}
.popup-content {
  background: rgba(25, 25, 35, 0.95);
  color: #fff;
  border-radius: 15px;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}
.popup.success .popup-content { border-left: 4px solid #00ff8c; }
.popup.error .popup-content { border-left: 4px solid #ff4b4b; } 
.nft-sidebar {  
  background: #111;
  color: #fff;
  border-left: 2px solid #222;
  padding: 8px;
  overflow-y: auto;
  max-height: auto;
  border-radius: 8px;
}

.nft-sidebar table tr:hover {
  background: rgba(255,255,255,0.05);
  cursor: pointer;
}
.nft-sidebar::-webkit-scrollbar {
   display: none;
}
  table {
    width: 100%;
    border-collapse: collapse;
    color: #fff;
    font-size: 13px;
  }

  th, td {
    border: 1px solid #333; /* garis tabel */
    padding: 8px;
    text-align: center;
  }

  thead {
    background: #222;
  }

  tbody tr:nth-child(even) {
    background: #181818; 
  }

  tbody tr:hover {
    background: #2a2a2a; 
  }  

.table-wrapper {
  min-height: 500px;  
  max-height: 500px;   
  overflow-y: auto; 
  position: relative;  
}
#activeTable {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  font-size: 13px;
}
#activeTable th, #activeTable td {
  border: 1px solid #333;
  padding: 8px;
  text-align: center;
}
#activeTable thead {
  background: #222;
  position: sticky; 
  top: 0;
}
#activeTable tbody tr:nth-child(even) {
  background: #181818;
}
#activeTable tbody tr:hover {
  background: #2a2a2a;
}

a {
  color: #00bfff;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: #ffd700; 
  text-decoration: underline;
}
.arrow-link::after {
  content: "↗";
  transition: transform 0.2s;
}
.arrow-link:hover::after {
  transform: translate(2px, -1px);
}

  h1 { color:#58a6ff;text-align:center;margin-bottom:20px }
  button {
    background:#00bfff;color:#fff;border:none;padding:8px 14px;
    border-radius:15px;cursor:pointer;font-weight:500;
  }
  button:hover { background:#0099cc; }
  #grid {
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:16px;margin-top:20px;
  }

.card {
  background: #1a1a2e;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
  transition: transform 0.2s ease;
  width: 220px;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  margin: 8px 0;
}

.card p {
  margin: 4px 0;
  color: #ccc;
  font-size: 14px;
}
.card h3 {
  margin: 4px 0 6px 0;
  font-size: 14px;
  font-weight: 600;
  color: #eaeaea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.card .muted {
  font-size: 12px;
  color: #bbb;
}
/* Grid container */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  justify-items: center;
}

/* === SELL MODAL === */
#sellModal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  overflow-y: auto;
  padding: 20px; 
}
/* === CONTENT === */
#sellModal .modal-content {
  background: #1c1c20;
  border-radius: 15px;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: row;
  gap: 25px;
  color: #fff;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
/* === IMAGES NFT === */
#sellModal img {
  width: 55%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
}

/* === FORM INPUT === */
#sellModal .form-side {
  flex: 1;
  display: flex;
  flex-direction: column;
}
#sellModal h2 {
  margin: 0 0 10px;
  color: #58a6ff;
}
#sellModal h3 {
  margin: 8px 0;
  color: #00ffb3;
}
#sellModal label {
  margin-top: 8px;
  font-size: 14px;
  color: #ccc;
}
#sellModal input {
  width: 100%;
  margin-top: 10px;  
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: #2b2b30;
  color: #fff;
}
#sellModal button {
  background: #58a6ff;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}
#sellModal button:hover {
  background: #007bff;
}
#sellModal p {
  margin-top: 5px;
  color: #aaa;
  font-size: 13px;
}
#sellModal .modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  color: #aaa;
  font-size: 26px;
  z-index: 10;
}
/* === RESPONSIVE MOBILE === */
@media (max-width: 600px) {
  #sellModal {
    align-items: flex-start; 
    padding-top: 40px;
  }
  #sellModal .modal-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 95%;
    height: auto;
    padding: 15px;
  }
  #sellModal img {
    width: 100%;
    max-height: 240px; 
    object-fit: contain; 
  }
  #sellModal .form-side {
    width: 100%;
    margin-top: 10px;
  }
  #sellModal .modal-close {
    top: 8px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 22px;
  }
  #sellModal button {
    width: 100%;
  }
}

/* === POPUP === */
#modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  overflow-y: auto; 
  padding: 20px;
}
#modal .modal-content {
  background: #1c1c20;
  border-radius: 15px;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  color: #fff;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.modal-left {
  flex: 1.2;
}
.modal-left img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
}
.modal-right {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.modal-right h3 {
  margin: 0 0 10px;
  color: #58a6ff;
}
.modal-right .price {
  color: #00ffb3;
  font-weight: bold;
  margin: 5px 0;
}
.modal-right .muted {
  color: #aaa;
  font-size: 13px;
}
.modal-right button {
  background: #58a6ff;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 10px 15px;
  font-weight: bold;
  cursor: pointer;
  margin: 5px 0;
}
.modal-right button:hover {
  background: #007bff;
}
.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  color: #aaa;
  font-size: 26px;
  z-index: 10;
}
/* === RESPONSIVE (MOBILE) === */
@media (max-width: 600px) {
  #modal {
    align-items: flex-start;
    padding-top: 40px; 
  }
  #modal .modal-content {
    flex-direction: column;
    width: 95%;
    padding: 15px;
    text-align: center;
  }
  .modal-left img {
    width: 100%;
    max-height: 240px;
    height: auto;
    object-fit: contain;
  }
  .modal-right {
    width: 100%;
    margin-top: 10px;
  }
  .modal-right button {
    width: 100%;
  }
  .modal-close {
    top: 8px;
    right: 12px;
    background: rgba(0,0,0,0.5);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 22px;
  }
}

/* === HEADER=== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom:1px solid #222; 
  background: #1c1c20;
  padding: 10px 20px;
  color: white;
  flex-wrap: wrap;  
}
.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-buttons a,
.header-buttons button {
  background: #2b2b30;
  color: #fff;
  border: none;
  border-radius: 15px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}
.header-buttons a:hover,
.header-buttons button:hover {
  background: #58a6ff;
}
.header-buttons .dropdown-toggle:hover {
  background: none !important;
}
.popup-menu {
  position: absolute;
  top: 60px;
  right: 20px;
  background: #1c1c20;
  border: 1px solid #333;
  border-radius: 15px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
  width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.popup-menu p {
  margin: 0;
  font-size: 13px;
  color: #aaa;
  text-align: center;
  word-break: break-all;
}
.balance-list {
  background: #2b2b30;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}
.balance-list p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
  color: #ddd;
}
.balance-list b,  
.balance-list span {
  font-family: monospace;
}
.popup-menu button {
  width: 100%;
  background: #2b2b30;
  border: none;
  color: #fff;
  padding: 8px;
  border-radius: 15px;
  cursor: pointer;
}
.popup-menu button:hover {
  background: #007bff;
}

.wallet-controll {
  display: flex;
  align-items: center;
  position: relative;
  padding: 2px 80px;  
  overflow: visible;
  z-index: 2;
}
.wallet-controls {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,255,229,0.3);
  position: relative;
  overflow: visible;
  z-index: 2;
}
/* Tombol SwitchChain */
.dropdown-toggle {
  color: #111;
  border: none;
  padding: 8px 12px;
  background: none !important;  
  cursor: pointer;
  font-size: 20px;  
  font-weight: bold;
}
.dropdown-menu button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #222;
  color: #777;
}
/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  background: #111;
  border: 1px solid #00ffe5;
  border-radius: 8px;
  margin-top: 5px;
  z-index: 3000;
}
.dropdown-menu button {
  display: block;
  background: none;
  color: #fff;
  border: none;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
}
.dropdown-menu button:hover {
  background: #00ffe522;
}
.network-dropdown {
  position: relative;
}

/* === RESPONSIVE (MOBILE) === */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  header h1 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  .header-buttons {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .header-buttons p {
    font-size: 13px;
    padding: 3px 6px;
  }
  .header-buttons button {
    font-size: 13px;
    padding: 5px 8px;
  }
  .popup-menu {
    position: fixed;
    top: 70px; 
    right: 10px; 
    width: 90%;
    max-width: 300px;
    border-radius: 12px;
  }
}

footer {
   text-align: center;
   padding: 20px 0;
   font-size: 0.9em;
   color: #888;
   border-top: 1px solid rgba(255,255,255,0.1);
}  

.contract-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.card {
  width: 180px;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  vertical-align: middle;
  transform: translateY(2px);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.verified-badge svg {
  filter: drop-shadow(0 0 3px rgba(155, 89, 182, 0.6));
}

.verified-badge:hover {
  transform: scale(1.2) translateY(1px);
  filter: drop-shadow(0 0 6px rgba(155, 89, 182, 0.9));
}

.collection-grid {
  display: flex;
  flex-direction: row; 
  flex-wrap: wrap;     
  gap: 16px;         
  padding: 20px;
}

/* === CARD === */
.collection-card {
  width: 100%;
  max-width: 200px;
  background: #1e1e2f;
  border-radius: 16px;
  padding: 12px 14px;
  color: #fff;
  box-shadow: 0 0 12px rgba(155, 89, 182, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; 
  text-align: center;
  min-height: 260px; 
}

.collection-card:hover {
  transform: scale(1.03);
  box-shadow: 0 0 18px rgba(155, 89, 182, 0.5);
}
.collection-card img.nft-thumb {
  width: 100%;
  height: 200px;        
  border-radius: 15px;
  margin-bottom: 8px;
  object-fit: cover;     
}
.collection-card h3 {
  font-size: 13px;
  font-weight: 600;
  color: #eaeaea;
  margin: 0 0 8px 0;
  white-space: nowrap;
}
.collection-card p {
  margin: 0;
  font-size: 13px;
  color: #ccc;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(6px);

  color: #fff;
  z-index: 999;
  flex-direction: column;
  overflow-y: auto;
}

.modal-content.large {
  width: 100%;
  max-width: none;
  background: rgba(0, 0, 0, 0.6);
  margin: 0;
  padding: 10px 20px 40px;
  box-sizing: border-box;
}

#collectionTitle {
  text-align: center;
  font-size: 24px;
  margin: 5px 0 15px;
}

#closeCollectionModal {
  position: fixed;
  top: 12px;
  right: 22px;
  font-size: 24px;
  color: #fff;
  background: rgba(0,0,0,0.8);
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 1200;
}

#collectionNFTs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  padding: 0 25px 50px;
  box-sizing: border-box;
}

#collectionNFTs .card {
  background: #1e1e2f;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  box-shadow: 0 0 8px rgba(155, 89, 182, 0.25);
  transition: transform 0.2s ease;
}

#collectionNFTs .card:hover {
  transform: scale(1.04);
}

#collectionNFTs img {
  width: 95%;
  border-radius: 8px;
  object-fit: cover;
}

.tx-modal {
  display: none;              
  position: fixed;
  bottom: 20px;               
  left: 50%;
  transform: translateX(-50%); 
  background: rgba(26, 26, 26, 0.95);
  color: #fff;
  padding: 15px 25px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  word-break: break-word;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s ease, bottom 0.3s ease;
}
.tx-modal.show {
  display: block;
  opacity: 1;
  bottom: 40px; 
}

/* === MINT NFT === */
.mint-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px; 
  width: 100vw;
  min-height: 100vh;
  box-sizing: border-box;
}
.mint-card-horizontal {
  background: #111;
  border-radius: 15px;
  padding: 15px;
  align-items: center; 
  gap: 20px; 
  transition: transform 0.2s, box-shadow 0.2s;  
  width: 98%;
  height: 98%;
}
.mint-card-horizontal:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 255, 229, 0.3);
}
.mint-left {
  flex: 1;
  text-align: left;
  position: relative;  
}
.mint-right {
  flex: 1;
  text-align: right;
  position: relative;
}
.mint-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.3s, box-shadow 0.3s;
}
.mint-image:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 255, 229, 0.5);
}
/* Badge LIVE */
.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: gold;
  color: #111;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 50%;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.mint-title {
  font-size: 1.2rem;
  margin: 0 0 5px;
  color: #00ffe5;
}
.mint-description {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 10px;
}
.mint-info {
  font-size: 0.85rem;
  color: #00ffe5;
  margin-bottom: 10px;
}
.mint-input {
  width: 50%;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
  background: none;
  color: #fff;
}
.mint-button {
  padding: 8px 15px;
  background: #00ffe5;
  color: #0d1117;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
}
.mint-button:hover {
  background: #00cfc0;
}
/* === RESPONSIVE (MOBILE) === */
@media (max-width: 650px) {
  .mint-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 10px;
  }
  .mint-card-horizontal {
    flex-direction: column;
    text-align: center;
    padding: 12px;
  }
  .mint-left,
  .mint-right {
    text-align: center;
  }
  .mint-image {
    max-width: 90%;
    height: auto;
    margin: 0 auto;
  }
  .live-badge {
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    padding: 6px 10px;
  }
  .mint-input {
    width: 100%;
    font-size: 1rem;
    padding: 8px;
  }
  .mint-button {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
  }
  .mint-title {
    font-size: 1.1rem;
  }
  .mint-description {
    font-size: 0.9rem;
  }
  .mint-info {
    font-size: 0.85rem;
  }
}

    #status {
      margin-top: 15px;
      margin-bottom: 25px;
      color: #aaa;
      font-size: 0.95rem;
      min-height: 24px;
    }

    /* === After Connect Area === */
    #afterConnect {
      display: none;
      opacity: 0;
      transition: opacity 0.4s ease;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-top: 10px;
    }
    #afterConnect.show {
      display: flex;
      opacity: 1;
    }
    #afterConnect button {
      width: auto;
    }

    /* === Popup Success === */
    #successPopup {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.7);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 100000;
    }
    #successPopup.active { display: flex; }
    .popup-content {
      background: #111;
      border: 2px solid #00ffe5;
      border-radius: 16px;
      padding: 30px 40px;
      text-align: center;
      max-width: 400px;
      box-shadow: 0 0 25px rgba(0,255,255,0.3);
    }
    .popup-content h2 {
      color: #00ffe5;
      margin-bottom: 10px;
    }
    .popup-content p {
      color: #ccc;
      margin-bottom: 20px;
    }
    .popup-content button {
      background: #00ffe5;
      color: #000;
      font-weight: bold;
      padding: 10px 20px;
      border: none;
      border-radius: 10px;
      cursor: pointer;
      transition: 0.2s;
    }
    .popup-content button:hover { background: #00d1b8; }
    footer { 
      text-align: center; 
      padding: 20px 0; 
      font-size: 0.9em; 
      color: #888; 
      border-top: 1px solid rgba(255,255,255,0.1); 
    }
img {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
}

#processingPopup {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}

#processingPopup.active {
  display: flex;
}

.spinner-box {
  text-align: center;
  color: #fff;
}

.loader {
  border: 5px solid rgba(255, 255, 255, 0.2);
  border-top: 5px solid #00ffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}   

.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.btn-sell,
.btn-buy {
  border: none;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #58a6ff;
  color: #fff;  
}
.btn-buy:hover {
  background: #007bff;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;  
  gap: 15px;
}

.history-link {
  text-decoration: none;
  color: #4caf50;
  font-weight: bold;
}

.history-link:hover {
  text-decoration: underline;
}

.header-row h2 {
  margin: 0;
  text-align: right;
}
.popups {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 1.2em;
  text-align: center;
  line-height: 500px;
  z-index: 10;
  border-radius: 4px;
}
.popups.active {
  display: block;
}

/* === PANEL NOTIF === */
.notif-panel {
  position: fixed;
  top: 0;
  right: -350px; /* hidden */
  width: 350px;
  height: 100%;
  background: #1a1a1d;
  transition: right 0.3s ease;
  z-index: 9998;
  display: flex;
  flex-direction: column;
}
.notif-panel.active {
  right: 0;
}
.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid #333;
}
.notif-header h3 {
  margin: 0;
  color: #00ffe5;
  font-size: 18px;
}
.notif-header button {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  font-size: 16px;
}
.notif-header button:hover {
  color: #fff;
}
.notif-list {
  padding: 10px 15px;
  flex: 1;
  overflow-y: auto;
}
.notif-item {
  background: #2b2b30;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 0 5px rgba(0, 255, 229, 0.15);
}
.notif-item small {
  display: block;
  color: #aaa;
  margin-top: 4px;
}
.notif-empty {
  text-align: center;
  color: #777;
  margin-top: 20px;
}
/* === TOAST POPUP === */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10000;
}
.notification {
  background: #1c1c20;
  color: #fff;
  border: 1px solid #00ffe5;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  min-width: 220px;
  box-shadow: 0 0 15px rgba(0, 255, 229, 0.3);
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeIn 0.3s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOut {
  to { opacity: 0; transform: translateY(-10px); }
}

/* Drawer CSS */
#wrapDrawer {
  position: fixed;
  top: 0;
  right: -350px;
  height: 100%;
  width: 350px;
  background: #111;
  color: #fff;
  box-shadow: -5px 0 30px rgba(0,0,0,0.8);
  transition: right 0.35s ease;
  z-index: 99999;
  overflow-y: auto;
  font-family: "Poppins", sans-serif;
}
#wrapDrawer.open { right: 0; }
#wrapBackdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 99990;
}
#wrapBackdrop.visible { display: block; }

.button-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 8px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 420px) {
  #wrapDrawer {
    width: 90%;
    right: -90%;
  }
  #wrapDrawer.open {
    right: 0;
  }
}
@media (max-width: 600px) {
  #nftSearchContainer {
    width: 100% !important;
  } 
}
@media (max-width: 470px) {
  #nftSearchContainer {
    width: 100% !important;
  }
  .header-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 15px;
  }
}

 /* === PROFILE === */
    mains {
      padding: 40px;
      text-align: center;
    }
    .grids {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 15px;
      margin-top: 20px;
    }
    .cards {
      background: #1b1b1f;
      border-radius: 12px;
      padding: 10px;
      text-align: center;
      box-shadow: 0 0 6px rgba(255,255,255,0.1);
    }
    .cards img {
      width: 100%;
      border-radius: 15px;
      aspect-ratio: 1/1;
      object-fit: cover;
    }
.img-wrapper {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.img-wrapper img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.balance-label {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: none;
  color: #fff;
  padding: 4px 8px;
  font-size: 0.8em;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.logo-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(224, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  z-index: 10;
}

.logo-badge img {
  width: 8px;
  height: 8px;
  object-fit: contain;
  opacity: 0.9;
}
.cards.clickable-card {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cards.clickable-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
