.kb-shop,
.kb-shop.landing-stage,
.kb-shop.profile-stage {
  width: min(100%, 46rem);
  max-width: 46rem;
  margin-inline: auto;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 6rem;
  box-sizing: border-box;
  overflow: visible;
  max-height: none;
}

.kb-shop .profile-card,
.kb-shop .feed-card,
.kb-shop-section {
  width: 100%;
}

.kb-shop .auth-kicker,
.kb-shop-kicker {
  margin: 0;
  color: #edf6ff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-shadow:
    0 0 4px #fff,
    0 0 10px rgba(140, 210, 255, 1),
    0 0 22px rgba(70, 160, 255, 0.85),
    0 0 38px rgba(255, 55, 190, 0.5);
}

.kb-shop-kicker {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.55rem;
}

.kb-shop-kicker span {
  color: #d7dcff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(120, 190, 255, 0.9),
    0 0 18px rgba(255, 80, 200, 0.4);
}

.kb-shop-section {
  display: grid;
  gap: 0.55rem;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.kb-shop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0 0.1rem;
}

.kb-shop-head h2 {
  margin: 0;
  color: #eef1f8;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 12px rgba(210, 220, 255, 0.28);
}

.kb-shop-more {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: #d8dce8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(200, 210, 255, 0.35);
}

.kb-shop-more span {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.85;
}

.kb-shop-banner {
  position: relative;
  margin: 0.9rem 0 0;
}

.kb-shop-banner__viewport {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 1rem;
  background: #10160f;
  box-shadow: 0 0 0 1px rgba(150, 140, 255, 0.16);
}

.kb-shop-banner__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

.kb-shop-banner__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.kb-shop-banner__link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.kb-shop-banner__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-shop-banner__copy {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
  padding: 1.15rem 1rem 1.05rem;
  background: linear-gradient(transparent, rgba(4, 8, 4, 0.88) 55%);
}

.kb-shop-banner__copy h2 {
  margin: 0;
  font-size: 1.12rem;
  color: #dbd8ff;
}

.kb-shop-banner__copy p {
  margin: 0.28rem 0 0;
  font-size: 0.84rem;
  color: #b1b0d6;
}

.kb-shop-banner__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.kb-shop-banner__arrow {
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(150, 140, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 12, 8, 0.7);
  color: #dbd8ff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.kb-shop-banner__dots {
  display: flex;
  gap: 0.35rem;
}

.kb-shop-banner__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(150, 140, 255, 0.28);
  cursor: pointer;
}

.kb-shop-banner__dot.is-active {
  background: #978eff;
}

@media (prefers-reduced-motion: reduce) {
  .kb-shop-banner__slide {
    transition: none;
  }
}

.kb-shop-flash {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.kb-shop-flash li {
  color: #c8caf6;
  background: rgba(12, 18, 10, 0.55);
  border-radius: 0.6rem;
  padding: 0.45rem 0.7rem;
}

.kb-shop-flash .error {
  color: #ffd0c4;
}

.kb-shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 0.8rem;
  width: 100%;
  overflow: visible;
}

.kb-shop-grid > .profile-copy {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .kb-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Floating product cards: no frame, just image, title and price. */
.kb-shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: inherit;
  text-decoration: none;
  text-align: right;
}

a.kb-shop-card:focus-visible {
  outline: 2px solid rgba(152, 138, 255, 0.7);
  outline-offset: 3px;
  border-radius: 0.8rem;
}

.kb-shop-cover,
.kb-shop-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 0.8rem;
  background: #10160f;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

/* Product page banner: same 16:10 crop as the cards, never stretched. */
.kb-shop-hero .kb-shop-cover {
  width: min(100%, 30rem);
  height: auto;
  aspect-ratio: 16 / 10;
  max-height: none;
  margin: 0 auto 0.85rem;
  object-fit: cover;
  object-position: center;
}

.kb-shop-card h3 {
  margin: 0.15rem 0 0;
  overflow: hidden;
  color: #eef1f8;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-shop-card p,
.kb-shop-card strong {
  margin: 0;
}

.kb-shop-card strong {
  color: #978eff;
  font-size: 0.82rem;
  font-weight: 800;
  text-shadow: 0 0 10px rgba(170, 140, 255, 0.25);
}

/* Horizontal rows, same pattern as the tournament banners row (native scroll, no autoplay). */
.kb-shop-rail {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  direction: rtl;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.15rem 0.1rem 0.6rem;
  box-sizing: border-box;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: 0.1rem;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  scrollbar-width: none;
  pointer-events: auto;
}

.kb-shop-rail::-webkit-scrollbar {
  display: none;
}

.kb-shop-rail > .kb-shop-card {
  flex: 0 0 min(42%, 11rem);
  width: min(42%, 11rem);
  scroll-snap-align: start;
}

.kb-shop-rail > .profile-copy {
  margin: 0;
}

@media (min-width: 640px) {
  .kb-shop-rail > .kb-shop-card {
    flex-basis: min(30%, 13rem);
    width: min(30%, 13rem);
  }
}

/* Small round category icons (same look as the tournament shortcuts). */
.kb-shop-shortcuts {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(0.08rem, 1.1vw, 0.42rem);
  margin: 0.9rem 0 0;
  padding: 0.15rem 0.05rem 0.4rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  pointer-events: auto;
}

.kb-shop-shortcuts::-webkit-scrollbar {
  display: none;
}

.kb-shop-shortcut {
  flex: 1 1 0;
  min-width: 3.4rem;
  display: grid;
  justify-items: center;
  gap: 0.32rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e8edf6;
  font: inherit;
  font-size: clamp(0.5rem, 2.15vw, 0.68rem);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.kb-shop-shortcut > span:last-child {
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kb-shop-shortcut .kb-tour-shortcut__icon {
  display: grid;
  place-items: center;
  width: clamp(2.35rem, 10.8vw, 3.55rem);
  height: clamp(2.35rem, 10.8vw, 3.55rem);
  overflow: hidden;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

.kb-shop-shortcut .kb-tour-shortcut__icon svg {
  width: clamp(1.05rem, 4.8vw, 1.55rem);
  height: clamp(1.05rem, 4.8vw, 1.55rem);
}

.kb-shop-shortcut .kb-tour-shortcut__icon.has-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kb-shop-shortcut.is-neon .kb-tour-shortcut__icon {
  border: 2px solid rgba(255, 90, 200, 0.85);
  background: radial-gradient(circle at 35% 30%, #2a2038 0%, #0c0a14 70%);
  box-shadow:
    0 0 0 2px rgba(80, 180, 255, 0.35),
    0 0 18px rgba(255, 70, 190, 0.45);
}

.kb-shop-shortcut.is-gold .kb-tour-shortcut__icon {
  background: linear-gradient(180deg, #ffb24a 0%, #ff6a1a 100%);
  box-shadow: 0 0 16px rgba(255, 120, 40, 0.45);
}

.kb-shop-shortcut.is-red .kb-tour-shortcut__icon {
  background: linear-gradient(180deg, #ff5d5d 0%, #b40d1c 100%);
  box-shadow: 0 0 16px rgba(255, 50, 60, 0.5);
}

.kb-shop-shortcut.is-violet .kb-tour-shortcut__icon {
  background: linear-gradient(180deg, #9b7bff 0%, #5b35e6 100%);
  box-shadow: 0 0 16px rgba(120, 90, 255, 0.45);
}

.kb-shop-shortcut.is-green .kb-tour-shortcut__icon {
  background: linear-gradient(180deg, #5fe0ff 0%, #1597c9 100%);
  box-shadow: 0 0 16px rgba(70, 200, 255, 0.4);
}

.kb-shop-shortcut.is-blue .kb-tour-shortcut__icon {
  background: linear-gradient(180deg, #5cc8ff 0%, #1a6fd6 100%);
  box-shadow: 0 0 16px rgba(60, 160, 255, 0.45);
}

.kb-shop-shortcut .kb-tour-shortcut__icon.has-img {
  background: #0c0a14;
}

.kb-shop a.auth-btn,
.kb-shop button.auth-btn,
.kb-shop-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid rgba(210, 220, 255, 0.38);
  border-radius: var(--kb-art-btn-radius);
  background: linear-gradient(180deg, rgba(48, 50, 62, 0.96) 0%, rgba(18, 18, 26, 0.96) 100%);
  color: #f4f7ff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 0 14px rgba(120, 170, 255, 0.18);
  cursor: pointer;
}

.kb-shop-cta--ghost {
  width: auto;
  margin-top: 0.15rem;
  padding-inline: 1rem;
  background: var(--kb-art-control-bg);
}

.kb-shop-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.kb-shop-form input,
.kb-shop-form select,
.kb-shop-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 0.7rem;
  border: 1px solid rgba(150, 140, 255, 0.22);
  background: rgba(6, 10, 6, 0.75);
  color: #dbd8ff;
  padding: 0.55rem 0.7rem;
  font: inherit;
}

.kb-shop-pay {
  display: grid;
  gap: 0.3rem;
  margin: 0.4rem 0;
}

.kb-shop-bale {
  display: grid;
  gap: 0.75rem;
}

.kb-shop-bale__status {
  margin: 0;
  color: #978eff;
  font-weight: 700;
}

.kb-shop-bale__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.kb-shop-pay label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.kb-shop-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.kb-shop-log li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid rgba(150, 140, 255, 0.12);
}

.kb-shop-steps {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.kb-shop-steps li {
  position: relative;
  padding: 0.55rem 0.8rem 0.55rem 2.2rem;
  border-radius: 0.75rem;
  background: rgba(8, 12, 8, 0.5);
  color: #9eaf90;
}

.kb-shop-steps li::before {
  content: "";
  position: absolute;
  right: 0.7rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #3a4634;
}

.kb-shop-steps li.is-done,
.kb-shop-steps li.is-current {
  color: #dbd8ff;
}

.kb-shop-steps li.is-done::before,
.kb-shop-steps li.is-current::before {
  background: #978eff;
}

.kb-shop-back {
  margin-top: 0.6rem;
}

/* J5: wallet withdraw */
.kb-withdraw__st { padding: 0.08rem 0.5rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.kb-withdraw__st.is-pending { color: #ffb067; }
.kb-withdraw__st.is-approved { color: #8fc9ff; }
.kb-withdraw__st.is-paid { color: #ffd36a; }
.kb-withdraw__st.is-rejected { color: #ff8a8a; }
.kb-withdraw__open { color: #ffe3a3; }
