:root {
  --pda-shadow: 0 18px 42px rgba(0, 0, 0, .58), 0 0 32px rgba(57, 255, 136, .18);
}

.shop-top {
  overflow: visible;
}

.user-pill {
  position: relative;
  z-index: 115;
}

.profile-drop {
  position: relative;
}

.profile-trigger {
  display: grid;
  grid-template-columns: 34px minmax(115px, 1fr) auto 12px;
  align-items: center;
  gap: 9px;
  min-width: 310px;
  border: 1px solid rgba(57, 255, 136, .52);
  border-radius: 5px;
  background: linear-gradient(180deg, rgba(8, 31, 18, .98), rgba(1, 7, 4, .98));
  color: var(--text);
  padding: 7px 10px;
  cursor: pointer;
  box-shadow: inset 0 0 22px rgba(57, 255, 136, .08), 0 0 22px rgba(57, 255, 136, .14);
  text-align: left;
}

.profile-trigger img,
.profile-trigger i,
.profile-head img,
.profile-head i {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  border: 1px solid var(--green);
  background: radial-gradient(circle, var(--green), #052 62%, #020403);
  box-shadow: 0 0 16px rgba(57, 255, 136, .42);
}

.profile-trigger b,
.profile-head b {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f4fff7;
  text-shadow: 0 0 10px rgba(57, 255, 136, .5);
}

.profile-trigger small,
.profile-head small {
  display: block;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9ce8b5;
  font: 800 11px Consolas, monospace;
  text-transform: uppercase;
}

.profile-trigger strong {
  color: var(--green);
  font: 950 17px Consolas, monospace;
  text-shadow: 0 0 14px rgba(57, 255, 136, .72);
  white-space: nowrap;
}

.profile-trigger em {
  color: var(--green);
  font-style: normal;
}

.profile-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  width: 330px;
  display: none;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(57, 255, 136, .65);
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, rgba(4, 19, 11, .98), rgba(1, 6, 4, .99));
  box-shadow: inset 0 0 35px rgba(57, 255, 136, .08), var(--pda-shadow);
}

.profile-menu.open {
  display: grid;
}

.shop-top nav a[hidden],
#adminNavLink[hidden] {
  display: none !important;
}

.profile-menu::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 14px rgba(57, 255, 136, .75);
}

.profile-head {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(57, 255, 136, .22);
}

.balance-screen {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(57, 255, 136, .34);
  border-radius: 5px;
  background: radial-gradient(circle at 50% 100%, rgba(57, 255, 136, .18), transparent 58%), rgba(0, 9, 4, .82);
  padding: 12px;
  color: #b8ffcf;
  font: 900 13px Consolas, monospace;
  text-transform: uppercase;
}

.balance-screen strong {
  font-size: 24px;
  color: var(--green);
  text-shadow: 0 0 18px rgba(57, 255, 136, .74);
}

.danger-lite {
  border-color: rgba(255, 54, 84, .58) !important;
  background: linear-gradient(180deg, rgba(68, 16, 22, .94), rgba(13, 3, 5, .98)) !important;
  color: #ffdce1 !important;
}

.pda-frame {
  grid-template-columns: minmax(0, .92fr) minmax(520px, 680px);
  padding-right: 0;
}

.hero-art {
  position: relative;
  min-height: 560px;
  place-items: end end;
  margin-right: -42px;
}

.hero-art::before {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 22px;
  width: min(58%, 360px);
  height: 68%;
  background: url("/assets/shop-hazmat.png") left bottom / contain no-repeat;
  opacity: .42;
  filter: drop-shadow(0 0 18px rgba(57, 255, 136, .28));
  transform: scaleX(-1);
  pointer-events: none;
}

.hero-art img {
  position: relative;
  z-index: 2;
  width: min(100%, 660px);
  max-height: 630px;
  object-fit: contain;
  object-position: right bottom;
  transform: translateY(24px);
}

.art-readout {
  z-index: 4;
  left: auto;
  right: 46px;
  bottom: 24px;
  width: min(380px, 64%);
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(3, 18, 10, .78), rgba(3, 18, 10, .94));
  border-color: rgba(57, 255, 136, .36);
  border-left: 0;
  border-right: 0;
  padding: 7px 10px;
  text-shadow: 0 0 10px rgba(57, 255, 136, .58);
}

.store-layout {
  grid-template-columns: 1fr;
}

.filters {
  position: relative;
  top: auto;
}

#categoryList {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 8px;
}

.category-tile {
  flex: 0 0 178px;
  min-height: 86px;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  padding: 14px !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 84% 72%, rgba(57, 255, 136, .22), transparent 38%),
    linear-gradient(135deg, rgba(15, 32, 22, .96), rgba(2, 8, 5, .98)) !important;
  color: #dfffe8 !important;
}

.category-tile span {
  font-size: 16px;
  color: #dfffe8;
  text-shadow: 0 0 14px rgba(57, 255, 136, .68), 0 1px 2px rgba(0, 0, 0, .9);
}

.category-tile.active {
  color: #021007;
  background: linear-gradient(180deg, #62ffa0, #21d96e) !important;
  box-shadow: 0 0 30px rgba(57, 255, 136, .44) !important;
}

.amount-line,
.card-days {
  color: var(--green2);
  font: 900 13px Consolas, monospace;
}

.kit-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin: 2px 0 4px;
}

.kit-preview span {
  position: relative;
  min-height: 66px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(57, 255, 136, .2);
  border-radius: 7px;
  background: rgba(255, 255, 255, .055);
}

.kit-preview img {
  max-width: 74%;
  max-height: 48px;
}

.kit-preview b {
  position: absolute;
  right: 5px;
  bottom: 4px;
  color: #fff;
  font: 900 11px Consolas, monospace;
  text-shadow: 0 1px 3px #000;
}

.duration-picker {
  display: inline-grid;
  grid-template-columns: 38px 58px 38px;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}

.duration-picker button,
.gift {
  min-height: 38px;
  padding: 0;
  border: 1px solid rgba(57, 255, 136, .35);
  border-radius: 6px;
  background: rgba(255, 255, 255, .075);
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
}

.duration-picker b {
  text-align: center;
  color: #fff;
}

.buy-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gift {
  width: 44px;
  font-size: 19px;
}

.shop-card {
  position: relative;
  cursor: pointer;
}

.shop-card .card-image {
  height: 230px;
  padding: 10px;
}

.shop-card .card-image img {
  max-width: 92%;
  max-height: 210px;
}

.shop-card .btn {
  pointer-events: none;
}

.product-dot {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 16px rgba(57, 255, 136, .8);
}

.product-dot.item {
  background: #28d448;
}

.product-dot.recipe {
  background: #348bff;
  box-shadow: 0 0 16px rgba(52, 139, 255, .85);
}

.tag.recipe,
.modal-tag.recipe {
  border-color: rgba(54, 142, 255, .7);
  color: #8ec4ff;
}

.card-lock {
  color: #ffd7da;
  font: 800 12px Consolas, monospace;
}

.product-dialog {
  width: min(520px, calc(100% - 28px));
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, .12), transparent 38%),
    linear-gradient(145deg, rgba(50, 54, 50, .98), rgba(20, 22, 20, .98));
  border-color: rgba(57, 255, 136, .35);
  padding: 28px 24px 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .75), inset 0 0 40px rgba(255, 255, 255, .04);
}

.modal-tag {
  position: absolute;
  left: -34px;
  top: -28px;
  min-width: 98px;
  padding: 12px 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, #62ffa0, #22b64d);
  color: #eefdf2;
  font-weight: 950;
  text-align: center;
}

.modal-image-wrap {
  height: 320px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.modal-image-wrap img {
  width: auto;
  height: auto;
  max-width: min(92%, 360px);
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 20px 16px rgba(0, 0, 0, .38));
}

.wipe-lock {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 4px 0 18px;
  color: #fff;
  font-weight: 950;
}

.wipe-lock b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: #ff3654;
}

.modal-select {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: #ddd;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
}

.product-dialog .modal-select {
  display: none !important;
}

.modal-buy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.modal-buy-row .primary {
  background: linear-gradient(180deg, #ff3b4f, #cb1d32);
  color: white;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.avatar-grid button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(57, 255, 136, .38);
  border-radius: 6px;
  background: #020403;
  overflow: hidden;
  cursor: pointer;
}

.avatar-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-preview .btn {
  min-width: 142px;
  min-height: 44px;
  white-space: nowrap;
  padding-inline: 12px;
}

.item-preview {
  align-items: center;
}

@media (max-width: 900px) {
  .profile-trigger {
    width: 100%;
    min-width: 0;
  }

  .profile-menu {
    position: static;
    width: 100%;
    margin-top: 8px;
  }

  .pda-frame {
    grid-template-columns: 1fr;
    padding-right: 18px;
  }

  .hero-art {
    min-height: 360px;
    margin-right: 0;
    place-items: end center;
  }

  .hero-art img {
    width: min(116%, 470px);
    max-height: 420px;
  }

  .art-readout {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }
}
