#asuggest {
	display: none;
	position: absolute;
	width:218px;
	max-height:400px;
	background: #f3f3ff;
	z-index:2000;
	border:1px solid #ededed;
	padding:2px;
	font-size:18px;
	cursor:pointer;
	margin-top:1px;
	color:#131722;
}

.suggest_row {
	cursor:pointer;
}

#rate_modal {
	width:80%; 
	left:10%;
	height:auto; 
	float:right; 
	margin:10px 25px 20px 0; 
	background:#e0e0e0;
	border:3px solid black; 
	padding:5px 5px 5px 5px;
	z-index:88;
	position:fixed;
	top:50px;
}

.btn-pink {
	background-color: #ff00ee;
	color:#fff;
}
.btn-orange {
	background-color: #fb8404;
	color:#000;
}
.image-container {
    position: relative;
    display: inline-block;
}

.tooltip {
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    position: absolute;
    bottom: 100%; /* Position the tooltip above the image */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
    white-space: nowrap;
    max-width:200px;
}

.image-container:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* ============================================================
   RESPONSIVE / MOBILE LAYER  — added 2026-08-31 by antxx-agent
   Presentation only; no page logic is touched. Every aggressive
   rule is scoped to small screens so desktop is unchanged. To
   fully revert responsiveness, delete everything below this line.
   Verified in a Bootstrap 5.2.3 harness at 375px and at desktop.
   ============================================================ */

/* Media never overflows its container.
   height:auto only for elements WITHOUT an explicit height attribute, so
   sized UI icons (e.g. <img height="20">) keep their intended size and don't
   balloon to natural resolution. */
img, canvas, svg, video, iframe { max-width: 100%; }
img:not([height]), canvas:not([height]), svg:not([height]),
video:not([height]), iframe:not([height]) { height: auto; }

@media (max-width: 991px) {
  /* Stop the whole page scrolling sideways on phones/tablets */
  html, body { max-width: 100%; overflow-x: hidden; }
  /* Wide data tables scroll within themselves instead of blowing out the
     layout — a CSS-only stand-in for .table-responsive, so no per-page
     markup is required. */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.table td, table.table th { white-space: nowrap; }
}

@media (max-width: 767px) {
  /* Header nav: stack the two halves; let the tab bars wrap / scroll */
  .topnav .col-6 { flex: 0 0 100%; max-width: 100%; text-align: left !important; }
  .topnav .col-6.text-end { margin-top: .5rem !important; text-align: left !important; }
  .nav-tabs, .nav-pills { flex-wrap: wrap; }
  .subnav .nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* Filter-select columns widen so they're tappable, not slivers. Scoped with
     :has() to ONLY columns that directly contain a <select>, so data-grid rows
     built from col-1/col-2 cells (e.g. the NFT list) are left compact. */
  .row > [class*="col-"]:has(> select) { flex: 0 0 auto; width: 48%; }
}

@media (max-width: 575px) {
  h1 { font-size: 1.6rem; }
  .container-fluid { padding-left: 8px; padding-right: 8px; }
  /* edit pages use .container-fluid.p-4: trim the 24px gutters on phones */
  .container-fluid.p-4 { padding: .75rem !important; }
}

/* ------------------------------------------------------------
   Mobile header (menuh.php): compact bar + slide-out menu.
   Needs the Bootstrap JS bundle (re-enabled in head.php).
   Desktop header is untouched — it's just hidden < md via markup.
   ------------------------------------------------------------ */
.mobile-topbar { display: none; }              /* default: hidden */
@media (max-width: 767px) {
  .mobile-topbar { display: flex; }            /* shown on phones */
  .offcanvas .accordion-button { padding: .6rem .9rem; font-weight: 600; }
  .offcanvas .list-group-item  { padding: .55rem .9rem; }
}
.offcanvas { max-width: 340px; width: 85% !important; }

/* ------------------------------------------------------------
   Wide data tables -> stacked cards on phones.
   OPT-IN: only tables with class="cards" transform; every other
   table keeps the horizontal-scroll behaviour above. Each <td>
   needs a data-label="..." (its column name) in the page markup.
   Desktop (>= 768px) is completely unaffected.
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  table.cards { display: block; border: 0; overflow: visible; }
  table.cards thead { display: none; }
  table.cards tbody, table.cards tr, table.cards td { display: block; width: 100%; }
  table.cards tr {
    border: 1px solid #dee2e6; border-radius: .6rem; margin-bottom: .7rem;
    padding: .15rem .9rem .5rem; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06);
  }
  table.cards tr.table-info    { background: #cff4fc; }   /* totals card */
  table.cards tr.table-success { background: #d1e7dd; }   /* totals card */
  table.cards td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
    border: 0 !important; padding: .28rem 0; text-align: right; white-space: normal;
  }
  table.cards td::before {
    content: attr(data-label); font-weight: 600; color: #6c757d;
    text-align: left; flex: 0 0 auto;
  }
  /* first cell of each row = the card's title (no label prefix) */
  table.cards td.card-title-cell {
    font-size: 1.15rem; font-weight: 700; margin-bottom: .25rem; padding-top: .5rem;
    border-bottom: 1px solid #eee !important; justify-content: flex-start;
  }
  table.cards td.card-title-cell::before { content: ""; }
  table.cards td a { text-decoration: none; }
}

/* ------------------------------------------------------------
   NFT list (mynftslist.php): grid-row entries -> stacked cards.
   These entries are Bootstrap .row divs (not a table), so they
   get their own treatment. Image floats to the top via flex
   `order` so the DOM order (and desktop layout) is unchanged.
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .nfthead    { display: none !important; }   /* the column-label bar */
  .hide-mobile{ display: none !important; }   /* empty spacer cells    */

  .nftcard {
    border: 1px solid #dee2e6; border-radius: .6rem;
    padding: .5rem .8rem; margin: 0 0 .85rem !important;
    background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06);
  }
  .nftcard > [class*="col-"] {
    flex: 0 0 100%; max-width: 100%; width: 100%;
    text-align: left !important; padding: .18rem 0;
  }
  .nftcard > [class*="col-"]::before {
    content: attr(data-label); display: inline-block; min-width: 74px;
    font-weight: 600; color: #6c757d; margin-right: .4rem;
  }
  /* image cell: centre it, drop the label, pull it to the top of the card */
  .nftcard > .nft-img { order: -1; text-align: center !important; padding: .2rem 0 .5rem; }
  .nftcard > .nft-img::before { content: ""; min-width: 0; }
  .nftcard > .nft-img img { width: 55% !important; max-width: 220px; height: auto; }

  .nftcard.nfttotal { background: #6c757d !important; color: #fff; }
  .nftcard.nfttotal > [class*="col-"]::before { color: #dee2e6; }
}

/* ------------------------------------------------------------
   Plan x Ratings / Plan x Wallets matrices (grid.php, wallets.php).
   The matrix is 12 grid columns of numbers; on a phone it keeps its
   shape and scrolls sideways inside .matrix-wrap instead of
   squashing into slivers. Desktop is untouched.
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: .5rem; }
  .matrix-wrap > .row { min-width: 760px; flex-wrap: nowrap; font-size: .85rem; }
}

/* ------------------------------------------------------------
   Edit forms (input_field() in crypto/functions.php): label above
   the field on phones instead of a 25%-wide label column.
   ------------------------------------------------------------ */
@media (max-width: 767px) {
  .field-row .field-label { padding: .35rem .75rem .25rem; }
  .field-row .field-label h4 { font-size: 1rem; margin: 0; }
  .field-row > .col-12 + .col-12 { padding-top: .35rem; }
}