.nft-grid {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
}

#xrpawn-nft-grid {
    margin-bottom: 20px;
}

.nft-card {
    background: #323232;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    width: 350px;
    height: 100px;           /* Slightly taller now */
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

/* Body: Image left + Content right */
.nft-card-body {
    display: flex;
    flex: 1;
    padding: 6px 10px 6px 6px;
    align-items: center;
    gap: 7px;
}

.nft-image {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;

}

.nft-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
}

/* Collection Title - Now inside body */
.nft-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    font-family: 'Encode Sans SC', sans-serif;
    text-align: center;
    line-height: 1.2;
    margin: -3px 0px -3px 0px;
}

/* ====================== PRICE ROW ====================== */
.price-row {
    display: flex;
    justify-content: space-between;
    gap: 0px;
    width: 100%;
    font-size: 15px;
}

.floor,
.bid {
    flex: 1;
    text-align: center;
}

.label {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    margin-bottom: 2px;
}

.value {
    font-weight: 700;
    font-size: 16.5px;
    line-height: 1.2;
}

.floor .value {
    color: white;
}

.bid .value {
    color: white;
}

/* Messages */
.loading-message,
.empty-message,
.error-message {
    text-align: center;
    width: 100%;
    font-size: 1rem;
    margin: 0;
}

.loading-message { color: #666; }
.empty-message { color: #888; margin-bottom: 15px; margin-top: -15px; }
.error-message { color: #e74c3c; }

.loading-message, 
.empty-message, 
.error-message {
    font-family: 'Encode Sans SC', sans-serif;
}

.user-nfts-title {
    text-align: center;
    margin: 10px 0 20px 0;
    font-family: 'Encode Sans SC', sans-serif;
    color: #000;
    font-size: 1.8rem;
    font-weight: 700;
}

.main-title {
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #F3BB40;
    -webkit-text-stroke: 5px #000;
    paint-order: stroke fill;
    margin: 0;
    text-align: center;
    width: 100%;           /* Optional: ensures it takes full width */
    display: block; 
}

.subtitle {
    font-family: 'Encode Sans SC', sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0 5px 10px 0;
    font-weight: 400;
    max-width: 100%;
    text-align: center;
    display: block;
}

/* ====================== MY NFTs SECTION (Exact Dashboard Style) ====================== */

/* Main Grid */
#user-nfts-grid {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

@media (max-width: 768px) {
    #user-nfts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    #user-nfts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 360px) {
    #user-nfts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
}

#user-nfts-grid .empty-message {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

}

/* Collection Card */
.dashboard-card {
    background: #282828;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-align: center;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dashboard-card:hover,
.dashboard-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.dashboard-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #1e1e1e;
}

/* Collection Name & Count */
.collection-name-p {
    margin: 5px 0 3px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1;
}

.count-p {
    margin: 0 0 3px 0;
    font-size: 0.9rem;
    color: #aaa;
}

/* Individual NFT Card */
.individual-card {
    background: #282828;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    text-align: center;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    height:auto;
    align-self:start;
}

.individual-card:hover,
.individual-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.individual-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    background: #1e1e1e;
}

.individual-name-p {
    margin: 4px 0 4px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.2;
}

/* Load More Button */
.load-more-btn {
    width: 100%;
    max-width: 100%;
    height: 80px;
    margin: auto;
    padding: 0px;
    background: #F3BB40;
    color: #1a1a1a;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    align-items: center !important;
    justify-content: center !important; 
}

.load-more-btn:hover,
.load-more-btn:focus-visible {
  background: #C69B2F;
  transform: translateY(-5px);   
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

/* Messages */
.loading-message,
.empty-message,
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.05rem;
}

.loading-message { color: #aaa; }
.empty-message { color: #777; }
.error-message { color: #ff6b6b; }

/* Make sure images stay square everywhere */
.dashboard-card img,
.individual-card img,
.img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
}

/* ====================== NFT MODAL (EXACT FROM DASHBOARD) ====================== */

/* NFT Modal Overlay */
#nftModalOverlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: hidden;
}

/* Visible state */
#nftModalOverlay.visible {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  margin: auto;
}

/* Main modal container */
.nft-modal {
  position: relative !important;
  background: #282828 !important;
  border-radius: 16px !important;
  width: 90vw !important;
  max-width: 900px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-shadow: 0 15px 40px rgba(0,0,0,0.8) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 15px !important;
  padding: ${modalPadding};
  color: white !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
}

@media (min-width: 769px) {
  .nft-modal {
    padding: 30px 0 0 8px !important;
  }
}

@media (max-width: 768px) {
  .nft-modal {
    padding: 30px 20px 0px 20px !important;
    flex-direction: column !important;
  }
}

@media (max-width: 450px) {
    .nft-modal {
      padding: 20px 20px 0px 20px !important;
    }
}

/* Close button */
.nft-modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  background: none !important;
  border: none !important;
  color: #fff !important;
  font-size: 34px !important;
  cursor: pointer !important;
  width: 44px !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10 !important;
}

.nft-modal-close::before {
    content: '';
    position: absolute;
    width: 28px;                /* ← Make circle smaller here */
    height: 28px;
    background: #000;
    border-radius: 25%;
    z-index: -1;                /* Behind the X */
    transition: all 0.2s ease;
}

/* NFT Image */
.nft-modal-image {
  width: 100% !important;
  max-width: 350px !important;
  height: auto !important;
  object-fit: contain !important;
  border-radius: 12px !important;
  align-self: flex-start !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
  margin-left: 25px !important;
}

@media (max-width: 768px) {
  .nft-modal-image {
    margin-left: 0px !important;
    margin-bottom: 0px !important;
    max-width: 100% !important;
  }
}

.nft-modal-image,
.img-clone {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    object-fit: cover !important;
}

/* Title */
.nft-modal-title {
  color: #F3BB40 !important;
  font-size: 1.8rem !important;
  margin: 7px 0 0px 0 !important;
  padding: 0 20px !important;
  word-break: break-word !important;
}

/* Meta info area */
.nft-modal-meta {
  flex: 1 !important;
  overflow-y: auto !important;
  padding-right: 10px !important;
}

/* Mobile / Desktop Helpers */
.mobile-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  padding: 10px 20px 40px 20px !important;
  box-sizing: border-box !important;
}

@media (max-width: 450px) {
  .mobile-container {
      padding: 0 0 20px 0 !important;
  }
} 

.mobile-button-wrapper {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 15px -5px 22px -5px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
}

.mobile-buttons-container {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
}

.img-clone {
  width: 90% !important;
  max-width: 350px !important;
  height: auto !important;
  border-radius: 12px !important;
  object-fit: contain !important;
  display: block !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}


/* ====================== MODAL TABS & CONTENT (EXACT FROM DASHBOARD) ====================== */

/* Tabs Container */
.tabs-container {
    width: 100% !important;
    max-width: 5000px !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Mobile Tab Buttons */
.tab-buttons-mobile {
  display: flex !important;
  margin-left: -20px !important;
  margin-right: -20px !important;
  margin-bottom: 0px !important;
}

@media (max-width: 450px) {
  .tab-buttons-mobile {
      margin-left: 0px !important;
      margin-right: 0px !important;
  }
} 

/* Desktop Tab Buttons */
.tab-buttons-desktop {
  display:flex !important;
  margin-bottom:0px !important;
  padding-right:70px !important;
}

/* Tab Button Styles */
.details-btn {
  flex: 1 !important;
  padding: 12px !important;
  border: none !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important; 
  background:#4b4b4b !important;
  color:#F3BB40 !important;
  border-radius:12px 0 0 12px !important;
}

.props-btn {
  flex: 1 !important;
  padding: 12px !important;
  border: none !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important; 
  background:#323232 !important;
  color:#ccc !important;
  border-radius:0 12px 12px 0 !important;
}

/* Active States */
.active-btn-left {
  flex: 1 !important;
  padding: 12px !important;
  border: none !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;  
  background:#4b4b4b !important;
  color:#F3BB40 !important;
  border-radius:12px 0 0 12px !important;
}

.inactive-btn-right {
  flex: 1 !important;
  padding: 12px !important;
  border: none !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;    
  background:#323232 !important;
  color:#ccc !important;
  border-radius:0 12px 12px 0 !important;
}

.active-btn-right {
  flex: 1 !important;
  padding: 12px !important;
  border: none !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important; 
  background:#4b4b4b !important;
  color:#F3BB40 !important;
  border-radius:0 12px 12px 0 !important;
}

.inactive-btn-left {
  flex: 1 !important;
  padding: 12px !important;
  border: none !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;  
  background:#323232 !important;
  color:#ccc !important;
  border-radius:12px 0 0 12px !important;
}

/* Content Areas */
.content-area-mobile {
  width: 100% !important;
  padding: 0 10px 20px 10px !important;
  box-sizing: border-box !important;
}

.content-area-desktop {
  flex:1 !important;
  overflow-y:auto !important;
  padding-right:35px !important;
}

/* Details Content */
.nft-details {
  margin-top: 10px !important;
      margin: 0 auto;
    text-align: center;
}

.nft-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1rem;
}

.nft-details li {
  padding: 12px 0;
  border-bottom: 1px dashed #444;
}

.nft-details .value {
  color: #ccc;
  word-break: break-all;
  font-size: 18px;
  font-weight: 500;
}

.nft-details .monospace {
  font-family: monospace;
}

.nft-details .highlight {
  color: #F3BB40;
  font-size: 1.1rem;
}

.no-traits {
  color: #aaa;
  margin: 20px 0 0;
  text-align: center;
}

.js-section-container {
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 12px 10px 10px 10px;
  margin: 20px auto;
  max-width: 1400px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative !important;
}

@media(max-width: 500px) {
    .js-section-container {
        margin: 20px -5px;
    }
}

.js-section-title {
  font-size: 1.8rem;
  color: #F3BB40;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin: 20px 3px 0px 0px;
}

.approved-collections-subtitle {
  font-size: 0.85rem;
  color: #888;
  margin: 4px 3px 36px 0px;
  font-weight: 400;
  text-align: center;
  display: block;  
}

@media (max-width: 768px) {
  .approved-collections-subtitle {
    font-size: 0.8rem;
    margin: 2px 3px 32px 0;
  }
}

.tab-contents-wrapper {
  padding: 0 15px;
  box-sizing: border-box;
  margin: 0 -25px;
}

@media (max-width: 481px) {
  .tab-contents-wrapper {
    padding: 0 20px;
  }
}

@media (min-width: 769px) {
  .tab-contents-wrapper {
    padding: 0 -20px;
  }
}

/* ─────────────────────────────────────────────────────────────
   FORCE NORMAL TEXT (Prevent unwanted italics)
   ───────────────────────────────────────────────────────────── */

.nft-details small,
.nft-details .value,
.nft-details span,
.nft-details li,
.nft-details p,

/* Newly requested classes */
.approved-collections-subtitle,
.resume-subtitle,
.label,
.nft-title,

/* Other common text elements in your dashboard */
.collection-name-p,
.individual-name-p,
.price-line,
.type-line,
.no-traits,
.count-p,
.loading-message,
.empty-message,
.error-message {
    font-style: normal !important;
    font-family: inherit;           /* ensures it follows your main font */
}

.floor .value,
.bid .value,
.nft-card .value,
.price-row .value {
    font-style: normal !important;
    font-family: inherit;
}

/* Extra safety for any <small> or .value inside modals */
.nft-modal small,
.nft-modal .value,
.nft-modal .label {
    font-style: normal !important;
}

.create-offer-btn {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

.sell-direct-btn {
    background: #F3BB40 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
}

.borrow-xrp-btn {
    background: linear-gradient(90deg, #00aaff, #0088cc) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    transition: all 0.3s ease !important;
}

.cancel-offer-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    display: none; /* hidden by default */
}

.get-paid-btn {
    background: #28a745 !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: 0px !important;
    margin-bottom: 0px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    display: none; /* hidden by default */
}

.create-borrow-btn {
    background: linear-gradient(90deg, #00aaff, #0088cc) !important;
    color: white !important;
    border: none !important;
    padding: 12px 24px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    margin-bottom: 0px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important;
    transition: all 0.3s ease !important;
}

.create-offer-btn:hover,
.sell-direct-btn:hover,
.borrow-xrp-btn:hover,
.cancel-offer-btn:hover,
.get-paid-btn:hover,
.create-borrow-btn:hover {
    transform: translateY(-5px);   
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.create-offer-btn:hover,
.get-paid-btn:hover {
    background: #228d3a !important;
}

.sell-direct-btn:hover {
    background: #C69B2F !important;
}

.borrow-xrp-btn:hover,
.create-borrow-btn:hover {
    background: linear-gradient(90deg, #0099ff, #0077bb) !important;
}

.cancel-offer-btn:hover {
    background: #c82333 !important;
}



/* Make sure containers look good */
.mobile-buttons-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    justify-content: center !important;
    padding: 15px 0 !important;
}

/* ====================== EXACT DESKTOP NFT MODAL STYLES FROM DASHBOARD ====================== */

.columns-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 15px;
    align-items: flex-start;
}

.left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
    max-width: 400px;
}

.right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-action-wrapper-nft {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 17px 0 30px 0 !important;
    padding: 0 40px !important;
    box-sizing: border-box !important;
    gap: 30px !important;
}

.buttons-container-nft {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

.tab-buttons-desktop {
    display: flex !important;
    margin-bottom: 0px !important;
    padding-right: 70px !important;
}

.content-area-desktop {
    flex: 1 !important;
    overflow-y: auto !important;
    padding-right: 35px !important;
}

.img-clone {
    width: 90% !important;
    max-width: 350px !important;
    height: auto !important;
    border-radius: 12px !important;
    object-fit: contain !important;
    display: block !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

/* Desktop modal padding override */
@media (min-width: 769px) {
    .nft-modal {
        padding: 30px 0 0 8px !important;
    }
}

#txModalOverlay {
    display: flex;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    z-index: 2147483648;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

  body.modal-open {
    overflow: hidden;
  }

#txModalOverlay.tx-modal-visible {
    opacity: 1;
    visibility: visible;
}

.tx-modal-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
}

.tx-open-wallet-btn {
    background: #007bff;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.tx-open-wallet-btn:hover {
    opacity: 0.90;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.tx-open-wallet-btn.wc-btn {
    background: #D83D2A;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    width: 90%;
    margin-top: 20px;
    transition: all 0.2s ease;
}

.tx-open-wallet-btn.wc-btn:hover {
    opacity: 0.90;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.tx-title {
    color: #F3BB40;
    margin: 0 0 20px 0;
    font-size: 1.6rem;
}

.tx-description {
    margin: 15px 0;
    line-height: 1.5;
    color: #e0e0e0;
}

.tx-modal-content {
    background: #1e1e1e;
    border-radius: 16px;
    padding: 30px 25px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    color: white;
    position: relative;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    font-family: 'Encode Sans SC', sans-serif; */
}

.tx-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    /*line-height: 1;
    padding: 0; */
}

.cancel-offer-btn {
    display: block;
}

.get-paid-btn {
    display: block;
}

/* Button visibility control */
.create-offer-btn.hidden,
.sell-direct-btn.hidden,
.get-paid-btn.hidden,
.cancel-offer-btn.hidden {
    display: none !important;
}

.nft-bid-prominent {
    background: rgba(0, 255, 150, 0.1);
    border: 1px solid #00ff9d;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 30px 0 5px 0;
    text-align: center;
}

@media (min-width: 769px) {
    .nft-bid-prominent {
    margin: 20px 0 -8px 0;
    }
}

.bid-label {
    font-size: 0.95rem;
    color: #aaa;
    display: block;
    margin-bottom: 4px;
}

.bid-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #00ff9d;
}

.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
  border-width: 3px;
  border-color: #4d4d4d;
  border-style: solid;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000000000000;
    font-size: 20px;
    text-align: center;
    max-width: 90%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    pointer-events: none;
}

@media (max-width: 768px) {
    .toast-notification {
        font-size: 18px;
    }
}

.toast-notification.visible {
    visibility: visible;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
}

/* ==================== RESUME SECTION ==================== */

#resume-section {
    display: none;           /* Strong default hide */
    opacity: 0;
    transition: opacity 0.2s;
}

#resume-section:not(.hidden) {
    display: block;
    opacity: 1;
}
.resume-section {
  background: rgba(30, 30, 30, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 12px 20px 10px 20px;
  margin: 20px -10px;
  max-width: 900px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  

}

@media (max-width: 500px) {
    .resume-section {
        margin: 0px -9.5px;
    }
}

/* Medium screens (769px to 900px) */
@media (min-width: 769px) and (max-width: 900px) {
    .resume-section {
        margin: 0px -6px;
    }
}

/* Large Desktop - This now wins on screens 901px and above */
@media (min-width: 901px) {
    .resume-section {
        margin: 0px auto;
    }
}


.resume-title {
  font-size: 1.8rem;
  color: #F3BB40;
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin: 15px 3px 0px 0px;
}

.resume-subtitle {
    text-align: center;
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.button-center {
  text-align: center;
}

.resume-get-paid-btn {
  background: linear-gradient(135deg, #F3BB40, #e0a800);
  color: #1a1a1a;
  border: none;
  padding: 16px 28px;
  font-size: 1.2rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  min-width: 200px;
}

.resume-get-paid-btn:hover {
  background: linear-gradient(135deg, #e0a800, #cc9900);
  transform: translateY(-5px);
}

.resume-section.hidden {
    display: none !important;
}

@media (max-width: 500px) {
    body, html {
        overflow-x: hidden;           /* Prevents horizontal scroll */
        width: 100%;
    }
}

.btn-clear-cache {
  font-size: 1.3rem;
  font-weight: 700;
  padding: 5px 10px;
  background-color: #444;
  color: #ccc;
  border: 1px solid #666;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: absolute;           /* ← Added */
  top: 18px;                    /* ← Added */
  right: 20px;                  /* ← Added */
  z-index: 10;                  /* ← Added */
  margin: 0;
}

.btn-clear-cache:active {
  background-color: #333;
}

/* Optional: make it more visible when needed */
.btn-clear-cache.has-cache {
  background-color: #6c2c2c;
  border-color: #a33;
  color: #ffcccc;
  box-shadow:0 4px 12px rgba(0,0,0,0.3);
}

@media (max-width: 450px) {
    .btn-clear-cache {
        font-size: 1.6rem;
        padding: 0px 12px 5px 12px;
        top: 30px;
        right: 9px;
    }
}

@media (min-width: 600px) {
    .btn-clear-cache {
        top: 31px;
        right: 9px;
    }
}

@media (min-width: 769px) {
    .btn-clear-cache {
        top: 32px;
        right: 9px;
    }
}

.btn-clear-cache.has-cache:hover {
  background-color: #833;
}

.btn-clear-cache.visible-inline {
    display: inline-block !important;
}

.btn-clear-cache.hidden {
    display: none !important;
}

.change-row {
    font-size: 0.85rem;
    margin-top: -2px;
    font-weight: 600;
}

.change {
    padding: 1px 6px;
    border-radius: 4px;
}

.change.up    { color: #22c55e; }   /* green */
.change.down  { color: #ef4444; }   /* red */
.change.flat  { color: #9ca3af; }   /* gray / white-ish */

.rare-tab {
    position: absolute;
    top: 7.8px;
    left: max(16px, calc( (100% - 1440px) / 2 + 16px ));
    z-index: 2;
    width: 70px;
}

@media (max-width: 450px) {
    .rare-tab {
        left: 10px;
    }
}

.rare-toggle-btn {
    width: 100%;
    background: #323232;
    color: white;
    border: 1px solid #555;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    line-height: 0.5;

    padding: 0 6px 6px 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

@media (max-width: 500px) {
    .rare-toggle-btn {
        font-size: 12px;
        max-height: 64px;
    }
}

.rare-toggle-btn:hover {
    background: #1f1f1f;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.tab-text {
    white-space: pre-wrap;
}

.rare-arrow {
    font-size: 10px;
    transition: transform 0.3s ease;
    line-height: 1;
    margin-top: 5px;
}

/* Arrow points RIGHT when closed, LEFT when open */
.rare-tab.expanded .rare-arrow {
    transform: rotate(180deg);
}

/* ==================== CONTENT OPENS TO THE RIGHT ==================== */
.rare-content {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 7.8px;
    width: 320px;
    background: #1f1f1f;
    border: 1px solid #555;
    border-radius: 12px;
    padding: 14px;
    line-height: 1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 2;
    color: white;
    text-align: center;
}

@media (max-width: 500px) {
    .rare-content {
        width: 250px;
    }
}

@media (max-width: 374px) {
    .rare-content {
        width: 237px;
    }
}

.rare-tab.expanded .rare-content {
    display: block;
}

.guide-tab {
    position: absolute;
    top: 7.8px;
    right: max(16px, calc( (100% - 1440px) / 2 + 16px ));
    z-index: 1;
}

@media (max-width: 450px) {
    .guide-tab {
        right: 10px;
    }
}

.guide-button {
    background: linear-gradient(135deg, #00ff9d, #00cc7a);
    color: #000;
    font-family: 'Encode Sans SC', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 18px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #000;
    cursor: pointer;
}

.guide-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 255, 157, 0.4);
    background: white;
}

.borrow-section {
      margin: 10px 0px 0px 0px !important;
      width: 100% !important;
      width: 550px !important;
      box-shadow: 0 0 20px rgba(102, 102, 102, 0.5);
      border-radius: 8px !important;
      padding: 20px 20px;
      text-align: center !important;
}

@media (max-width: 700px) {
  .borrow-section {
      width: 500px !important;
  }
}

@media (max-width: 650px) {
  .borrow-section {
      width: 450px !important;
  }
}

@media (max-width: 600px) {
  .borrow-section {
      width: 400px !important;
  }
}

@media (max-width: 550px) {
  .borrow-section {
      width: 350px !important;
  }
}

@media (max-width: 500px) {
  .borrow-section {
      width: 325px !important;
  }
}

@media (max-width: 450px) {
  .borrow-section {
      width: 300px !important;
  }
}

@media (max-width: 430px) {
  .borrow-section {
      width: 280px !important;
  }
}

@media (max-width: 380px) {
  .borrow-section {
      width: 265px !important;
  }
}

.borrow-section.hidden { 
    display: none; 
}

.borrow-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
}

.ltv-label {
    font-size: 1.05rem;
    white-space: nowrap;
    min-width: 50px;           /* keeps it aligned nicely */
}

.percent-sign {
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: -6px;
}

@media (max-width: 450px) {
  .percent-sign {
      margin-left: -2px;
  }
}

.borrow-input-group.centered {
    justify-content: center;
    gap: 8px;
    margin: 15px 0;
}

@media (max-width: 450px) {
  .borrow-input-group.centered {
      gap: 4px;
  }
}

.borrow-input-group input {
    width: 80px;
    padding: 8px;
    background: #282828;
    border: 2px solid #666;
    color: white;
    border-radius: 8px;
    text-align: center;
}

.borrow-slider-container {
    margin: 15px 0 10px;
    padding: 0 10px;
}

.borrow-slider-container input[type="range"] {
    width: 100%;
    accent-color: #00ccff;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    font-size: 0.85rem;
    color: #aaa;
}

.borrow-header {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.borrow-preview {
    margin: 10px 30px;
    padding: 10px;
    background: #252525;
    border-radius: 8px;
    font-size: 0.95em;
}

@media (max-width: 450px) {
  .borrow-preview {
      margin: 10px 0px;
  }
}

#borrow-percent {
      height: 30px !important;
      width: 60px !important;
      border: 2px solid #666 !important;
      border-radius: 8px !important;
      color: white !important;
      font-size: 1rem !important;
      text-align: center !important;
}
