.topup-shell {
  background: #111;
  color: #fff;
  padding: 70px clamp(20px, 7vw, 120px);
}
.topup-head {
  max-width: 1200px;
  margin: auto auto 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}
.topup-head h2 {
  font-size: 2.1rem;
  margin: 0;
}
.demo-note {
  padding: 10px 16px;
  border: 1px solid #ffd21c;
  color: #ffd21c;
  border-radius: 8px;
}
.package-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.package-card {
  background: linear-gradient(#282828, #111);
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px #0008;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.coin-art {
  height: 125px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: #ffd21c;
  background: radial-gradient(circle, #554200, #1b1b1b 65%);
}
.package-coin-art {
  position: relative;
  overflow: hidden;
  background: #101936;
}
.package-coin-art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 53%;
}
.topup-package-card {
  position: relative;
  height: 278px;
  background-color: #181818;
  background-image: none;
}
.topup-package-card::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: #181818;
}
.topup-package-card .package-coin-art {
  height: 206px;
  min-height: 206px;
  flex: 0 0 206px;
}
.topup-package-card .package-value {
  position: absolute;
  z-index: 2;
  top: 130px;
  left: 0;
  width: 100%;
  min-height: 76px;
  height: 76px;
  padding: 8px 12px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.5) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  font-size: 1.52rem;
  line-height: 1.05;
}
.point-amount-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 9px;
}
.point-unit {
  font-size: 1.22rem;
}
.topup-package-card .bonus {
  margin: 0;
  font-size: 1rem;
  line-height: 1;
}
.topup-package-card .package-buy {
  position: relative;
  z-index: 3;
  min-height: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 13px 14px;
  background-color: transparent !important;
  background-image: none !important;
}
.topup-package-card .package-buy button {
  width: 112px;
  height: 46px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  white-space: nowrap;
}
.shop-package-card {
  position: relative;
  height: 278px !important;
  min-height: 278px;
  background: #181818;
}
.shop-package-card .shop-art-slot {
  position: relative;
  height: 206px;
  min-height: 206px;
  flex: 0 0 206px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 38%, #493270, #171126 68%);
}
.shop-package-card .shop-placeholder-icon {
  transform: translateY(-24px);
  font-size: 3.4rem;
  filter: drop-shadow(0 5px 12px #0009);
}
.shop-package-card .shop-artwork {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.shop-package-card .shop-artwork-top {
  object-position: center top;
}
.shop-package-card .shop-offline-note {
  position: absolute;
  top: 8px;
  left: 10px;
  right: 10px;
  color: #ffd84c;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.25;
  text-shadow: 0 2px 4px #000;
  z-index: 2;
}
.shop-package-card .shop-package-value {
  position: absolute;
  z-index: 2;
  top: 130px;
  left: 0;
  width: 100%;
  height: 76px;
  min-height: 76px;
  padding: 8px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.5);
  line-height: 1.1;
  text-shadow: 0 2px 5px #000, 0 0 2px #000;
}
.shop-package-card .shop-package-value strong {
  font-size: 1.08rem;
}
.shop-package-card .shop-package-value span {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  white-space: normal;
  color: #e8e2ef;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 2px 4px #000, 0 0 2px #000;
}
.shop-package-card .package-buy {
  position: relative;
  z-index: 3;
  min-height: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 13px 14px;
  background: #181818;
}
.shop-package-card .package-buy button {
  width: 112px;
  height: 46px;
  padding: 0 12px;
  display: grid;
  place-items: center;
  white-space: nowrap;
}
.shop-package-card.rename-card .shop-placeholder-icon {
  display: none;
}
.shop-package-card .rename-form {
  position: absolute;
  z-index: 3;
  top: 40px;
  left: 12px;
  right: 12px;
  min-height: 0;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) auto;
}
.shop-package-card .rename-form input,
.shop-package-card .rename-form button {
  height: 38px;
  box-sizing: border-box;
  font-size: 0.78rem;
  line-height: 1;
}
.shop-package-card .rename-form p {
  font-size: 0.75rem;
  line-height: 1.2;
  min-height: 18px;
}
.package-value {
  padding: 13px;
  text-align: center;
  background: #080808;
  font-size: 1.35rem;
  font-weight: 900;
  min-height: 54px;
  display: grid;
  place-items: center;
  line-height: 1.2;
}
.bonus {
  display: inline-block;
  margin-left: 7px;
  color: #ff5252;
  font-size: 0.85rem;
}
.package-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  color: #ffd21c;
  font-weight: 900;
  margin-top: auto;
  min-height: 72px;
  box-sizing: border-box;
}
.package-buy button {
  border: 0;
  background: #ffd21c;
  color: #111;
  padding: 11px 18px;
  font-weight: 900;
  cursor: pointer;
}
.package-buy button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.service-grid {
  margin-top: 26px;
  align-items: stretch;
}
.shop-tabs {
  max-width: 1200px;
  margin: 18px auto 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid #3e3e3e;
  border-radius: 8px;
  background: #171717;
}
.shop-tabs button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #d6d6d6;
  font-weight: 900;
  cursor: pointer;
}
.shop-tabs button.active {
  border-color: #ffd21c;
  background: #ffd21c;
  color: #111;
}
.pczone-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.pczone-card .shop-artwork {
  object-position: center center;
}
.pczone-status {
  margin: 10px 0 18px;
  padding: 11px 14px;
  border: 1px solid #5a5366;
  border-radius: 5px;
  background: #27232d;
  color: #ddd;
  font-weight: 800;
}
.pczone-status.active {
  border-color: #32c676;
  background: #12291d;
  color: #68ef9f;
}
.rename-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 0 14px 14px;
  min-height: 88px;
  box-sizing: border-box;
}
.rename-form input {
  min-width: 0;
  background: #0b0b0b;
  border: 1px solid #555;
  color: #fff;
  padding: 11px;
}
.rename-form button {
  border: 0;
  background: #ffd21c;
  color: #111;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}
.rename-form p {
  grid-column: 1/-1;
  margin: 0;
  min-height: 24px;
  color: #aaa;
}
.rename-form .name-ok {
  color: #5deb8d;
}
.rename-form .name-error {
  color: #ff6868;
}
.rename-card > p,
.unlock-card > p {
  padding: 0 14px;
  margin: 14px 0 10px;
  min-height: 48px;
  line-height: 1.45;
}
.unlock-offline-note {
  display: block;
  padding: 0 14px 12px;
  color: #ffcf54;
  min-height: 42px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.35;
}
.unlock-grid,
.service-grid {
  align-items: stretch;
}
.unlock-grid .package-card,
.service-grid .package-card {
  height: 100%;
}
.service-grid {
  grid-template-columns: repeat(3, 1fr);
}
.account-panel {
  max-width: 1200px;
  margin: 42px auto 0;
  background: #1b1b1b;
  padding: 24px;
  border-radius: 8px;
}
.history-list {
  display: grid;
  gap: 8px;
}
.history-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 10px;
  padding: 12px;
  background: #252525;
  border-radius: 6px;
}
.game-logout {
  margin: 0 0 18px;
  border: 0;
  background: #ffd21c;
  color: #111;
  padding: 10px 22px;
  font-weight: 800;
  cursor: pointer;
}
.account-history-block {
  margin-top: 20px;
}
.history-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.history-pagination button {
  min-width: 48px;
  border: 1px solid #5c536b;
  background: #29242f;
  color: #fff;
  padding: 7px 10px;
  cursor: pointer;
}
.history-pagination button.active {
  border-color: #ffd21c;
  background: #ffd21c;
  color: #111;
  font-weight: 800;
}
.status-credited {
  color: #5deb8d;
}
.status-pending,
.status-credit_pending {
  color: #ffd21c;
}
.mock-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.mock-actions button {
  border: 1px solid #666;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  cursor: pointer;
}
.mock-actions .success {
  border-color: #2cc96b;
  color: #5deb8d;
}
.mock-checkout-panel {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid #69521a;
  border-radius: 7px;
  background: #241e0f;
}
.mock-checkout-panel > h3 {
  margin: 0 0 6px;
  color: #ffd21c;
}
.mock-checkout-panel > p {
  margin: 0 0 14px;
}
.mock-checkout-list {
  display: grid;
  gap: 8px;
}
.mock-checkout-list article {
  display: grid;
  grid-template-columns: 1.25fr 0.55fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  background: #171717;
  border-radius: 5px;
}
.admin-panel {
  max-width: 1200px;
  margin: 30px auto 0;
  background: #181229;
  border: 1px solid #49327a;
  padding: 24px;
  border-radius: 8px;
}
.admin-panel.hidden {
  display: none;
}
.admin-panel details {
  margin-top: 14px;
  background: #211a35;
  border: 1px solid #443663;
  border-radius: 6px;
  padding: 14px;
}
.admin-panel summary {
  cursor: pointer;
  font-weight: 900;
  color: #d9c7ff;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.admin-stats div {
  display: grid;
  gap: 4px;
  background: #2c2148;
  padding: 16px;
  border-radius: 6px;
}
.admin-stats strong {
  font-size: 1.5rem;
  color: #ffd21c;
}
.admin-table {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.admin-table > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: #17131f;
  padding: 9px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.admin-form input,
.admin-form textarea {
  background: #100c18;
  border: 1px solid #594877;
  color: #fff;
  padding: 11px;
}
.admin-form textarea {
  grid-column: 1/-1;
  min-height: 100px;
}
.admin-form button {
  border: 0;
  background: #ffd21c;
  color: #111;
  padding: 11px;
  font-weight: 900;
  cursor: pointer;
}
@media (max-width: 850px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .mock-checkout-list article {
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-table > div,
  .admin-form {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .topup-head {
    align-items: start;
    flex-direction: column;
  }
  .package-grid {
    grid-template-columns: 1fr;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .pczone-grid,
  .shop-tabs {
    grid-template-columns: 1fr;
  }
  .history-row {
    grid-template-columns: 1fr 1fr;
  }
}
