/* Modal backdrop + centering */
.modal-wrapper {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;              /* hidden by default */
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 200000;              /* above most page content */
}

/* Modal “window” – now 90% wide, 50% tall */
.modal-content {
  position: absolute;
  width: 80vw;
  max-width: 320px;
  height: 90vh;
  background: linear-gradient(to bottom, #cbf0f1, #E6E6E6);
  padding: 1rem;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 200001;              /* above backdrop */
  overflow-y: auto;             /* scroll if content overflows */
  overflow-x:hidden;
}

/* ton-connect in normal flow */
#ton-connect {
  position: relative;
  z-index: 200002;
  /* you can add margins if you need spacing: */
  /* margin: 1rem; */
}

/* Tiny utility */
.ton-button { margin-bottom:1rem; }
#eth-address, #flarebalance, #picobalance { font-family: "Pixel Millennium", monospace; }
.label { color: white; margin: 8px 0; }
.value { color: white; margin: 0 0 8px; cursor: pointer; user-select: none; }




/* 1. Force the dropdown container itself above your modal */
tc-root[data-tc-dropdown-container="true"] {
  z-index: 200003 !important;
}

/* 2. Also nudge the inner dropdown panel up even higher */
[data-tc-dropdown] {
  z-index: 200004 !important;
}

tc-root[data-tc-wallets-modal-container="true"] {
  z-index: 200005 !important;
}

/* 2. Also nudge the inner dropdown panel up even higher */
[data-tc-modal] {
  z-index: 200006 !important;
}



/* close button sits at top-right of .modal-content */
#modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 200002;
}






/* SHOP TITLE */
.shop-header {
  display: flex;
  font-family: "Pixel Millennium", monospace;
  justify-content: center;
  align-items: center;
  background-color: #434959;    /* box fill */
  border-bottom: 2px solid #000;
  border-radius: 0px;
  padding: 20px 20px;
  margin-bottom: 24px;
}

.stars-balance {
  position: absolute;
  left: 20px;
  display: flex;
  align-items: center;
  margin-right: auto;           /* pushes title to the right */
}

.stars-icon {
  width: 28px;
  height: 28px;
  margin-right: 8px;
}

.stars-value {
  font-size: 25px;
  font-weight: bold;
  color: #fff;
  /* optional outline to match other text */
  -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000;
}

.shop-title {
  font-size: 32px;
  color: #fff;
  margin: 0;
  /* matching outline */
  -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000;
  text-shadow: 0px 3px #000;
}

/* === UNIFIED SHOP GRID === */
.shop-grid {
  display: grid;
  /* two columns, each only as wide as its contents */
  grid-template-columns: repeat(2, auto);
  gap: 1rem;
  
  /* size the grid container exactly to its contents */
  width: max-content;       /* modern browsers */
  /* fallback for older browsers */
  width: -moz-fit-content;
  width: fit-content;
  
  /* center it in its parent */
  margin: 1rem auto;
}
.shop-item {
  display: flex;
  justify-content: center;
}

/* make this item span both columns */
.shop-item.span-two {
  grid-column: 1 / -1;
}


/* responsive boxes */
.item-box {
  position: relative;       /* keep your absolute‐positioned children inside */
  width : clamp(100px, 40vw, 150px);
  height: clamp(100px, 40vw, 150px);
  background-color: #EFEABF;
  border: 2px solid #000;
  border-radius: 4px;       /* optional rounding */
  box-sizing: border-box;   /* make padding/border count inside width/height */
  /* remove any background-image here */
}


.item-image {
  position: absolute;
  top: 30px; left: 50%;
  transform: translateX(-50%);
  width: 60px;
  pointer-events: none;
}
.item-amount,
.button-text {
  font-family: "Pixel Millennium", monospace;
  color: #fff;
  -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000; 
}

.item-amount {
  position: absolute;
  top: 10px;               /* 10px from the top edge */
  left: 50%;               /* center horizontally */
  transform: translateX(-50%);
  font-size: 26px;
  display: inline-flex;    /* so the icon and text align nicely */
  align-items: center;
  gap: 4px;                /* space between icon and number */
  color: #fff;             /* whatever text color you need */
  text-shadow: 0px 2px #000;
  z-index: 1;              /* sit above the image if necessary */
}

/* insert the shard icon before every amount */
.item-amount::before {
  content: "";
  display: inline-block;
  width: 24px;             /* adjust to your icon’s dimensions */
  height: 24px;
  background: url("src/shard-icon.png") no-repeat center center;
  background-size: contain;
}

.buy-button {
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.buy-button img {
  display: block;
  width: 110px;
}





.button-text {
  position: absolute;
  top: 45%; left: 65%;
  transform: translate(-50%, -50%);
  font-size: 21px;
  pointer-events: none;
}

/* Base .item-box already has the size, positioning, etc. */
.item-box--empty {
  /* different fill and stroke from the normal boxes */
  background-color: #D9D9D9;      /* e.g. a darker/lighter tone */
  border: 0px dashed #fff;     /* dashed orange instead of solid black */
}

.shop-divider {
  height: 2px;                  /* thickness of the stroke */
  background-color: #000;       /* stroke color */
  margin: 10px 50px;               /* vertical spacing around it */
}


.vip-box {
  font-family: "Pixel Millennium", monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;               /* vertical space between items */
  width: 100%;
  max-width: 320px;
  min-height: 310px;
  padding: 20px;
  box-sizing: border-box;
  background: #EFEABF;
  border: 2px solid #000;
  border-radius: 4px;
  text-align: center;        /* center all text */
}

/* Title & subtitles */
.vip-title {
  margin: 0;
  font-family: "Pixel Millennium", monospace;
  -webkit-text-stroke: 1px #000;
  text-shadow: 0px 2px #000;
  font-size: 40px;
  color: #fff;
}
.vip-subtitle {
  margin: 0;
  width: 100%;
  padding: 4px 0;
  background: rgba(0, 0, 0, 0.6);
  font-size: 20px;
  color:black;
   background-color: #DED9AD;
}

/* Button row */
.button-row {
  display: flex;
  justify-content: center;
  gap: 4px;                  /* horizontal space between buttons */
}

/* Individual VIP button */
.vip-button {
  position: relative;        /* for text overlay */
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 90px;               /* keeps 3 × 90px + 2 × 8px = 286px */
  height: auto;
}

/* Button image fills its container */
.vip-button img {
  display: block;
  width: 100%;
  height: auto;
}

.vip-text {
  font-family: "Pixel Millennium", monospace;

  position: absolute;
  top: 50%;
  left: 25%;               /* (100% − 70%) ÷ 2 = 15% margin on each side */
  width: 90%;              /* make the text container 70% as wide as the button */
  transform: translateY(-50%);
  color: white;
  font-size: 20px;
  pointer-events: none;
  text-align: center;      /* or “left” if you prefer left-aligned text */
    -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000; 
}

.vip-item {
  display: flex;
  flex-direction: column;  /* stack label over button */
  align-items: center;     /* center both horizontally */
  gap: 4px;                /* small gap between label and button */
}

.vip-label {
  font-family: "Pixel Millennium", monospace;
  font-size: 20px;
  text-align: center;
      -webkit-text-stroke: 1px #000;
  text-stroke: 1px #000; 
  /* you can tweak color/margin here if needed */
}






.bundles-box {
  display: grid;
  font-family: "Pixel Millennium", monospace;
  margin: 0.3rem;
  grid-template-columns: 3fr 1fr;
  max-width: 320px;
  height: 210px;
  background-color: #EFEABF;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 20px;
  box-sizing: border-box;
}

/* Left side */
.bundles-content {
  margin-right: -100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bundles-title {
  margin-right: -120px;
  margin-top: 0px;
  /* match the same font family */
  font-family: "Pixel Millennium", monospace;
  /* same stroke (only once!) */
  -webkit-text-stroke: 1px #000;
  /* no unprefixed text-stroke here */
  
  /* same shadow as your amounts */
  text-shadow: 0px 2px #000;
  
  /* keep your existing sizing & color */
  font-size: 40px;
  color: #fff;
}

.bundles-list {
  list-style: none;
  padding: 0;
  margin-top: 0px;
  font-size: 20px;
  color: #000;

}

.bundles-list li {
  font-size:17px;
  background-color: #DED9AD;
  width: 185px;
  height: 10px;
  padding: 5px;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.bundles-icon {
  width: auto;
  height: 25px;
  margin-right: 8px;

}

/* Right side */
.bundles-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.bundles-image {
  max-width: 100%;
  height: auto;
  margin-top:20px;
}
.bundles-box .buy-button {
  position: relative;
  border: none;
  background: none;
  padding: 0px;
  cursor: pointer;
}


/* core + close */
#core-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-right: 1rem;
}
