:root {
  --panel: rgba(18, 19, 19, 0.96);
  --red: #c91616;
  --red-soft: #8e1616;
  --text: #d7d7d7;
  --muted: #8f8f8f;
  --gold: #d9b36c;
  --shadow: 0 0 22px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }

html.shop-html,
.shop-body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at center top, rgba(180, 61, 43, .22), transparent 36%),
    linear-gradient(rgba(5, 5, 5, .70), rgba(5, 5, 5, .84)),
    url('https://www.playtropia.de/styles/BlackBoard/theme/images/bg_website.jpg') center/cover fixed;
}

button, input, select { font-family: inherit; }

.page-shell {
  width: min(1320px, calc(100% - 48px));
  margin: 16px auto 42px;
  background: rgba(10, 10, 10, .92);
  border: 1px solid #1d1d1d;
  box-shadow: var(--shadow);
  padding: 14px;
  border-radius: 6px;
}

.shop-topbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  margin-bottom: 14px;
  background: linear-gradient(#1a1a1a, #0d0d0d);
  border: 1px solid #292929;
  color: var(--muted);
  font-size: 13px;
}

.topbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.mini-logo {
    width: 200px;
    margin-right: 20px;
}

.login-mini-logo {
    display: flex;
    justify-content: center;
}

.top-time { color: var(--muted); white-space: nowrap; }

.userbar {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.userbar strong { color: #f00000; }

.diamond {
  font-size: 16px;
  line-height: 1;
  text-shadow: 0 0 8px currentColor;
}

.diamond-blue, .article-cost.blue, .detail-price.blue { color: #1676ff; }
.diamond-red, .article-cost.red, .detail-price.red { color: #e01414; }

.shop-layout {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr) 255px;
  gap: 14px;
  align-items: start;
}

.panel {
  background: var(--panel);
  border: 1px solid #202020;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
  margin-bottom: 14px;
}

.panel-title {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: linear-gradient(#252525, #121212);
  border-bottom: 1px solid #292929;
  box-shadow: inset 0 1px 8px rgba(255,255,255,.05);
  text-transform: uppercase;
  color: #aaa;
  font-size: 12px;
  font-weight: 700;
}

.panel-body { padding: 13px; }

.search-box input,
.shop-input,
.quantity-box select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #0c0c0c;
  color: var(--text);
  border: 1px solid #333;
  outline: none;
}

.search-box input:focus,
.shop-input:focus,
.quantity-box select:focus { border-color: var(--red); }

.category-list { display: grid; gap: 7px; }

.category-btn {
  width: 100%;
  border: 1px solid #2a2a2a;
  background: linear-gradient(#1e1e1e, #111);
  color: #bfbfbf;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 700;
  transition: .18s ease;
}

.category-btn:hover,
.category-btn.active {
  color: #fff;
  border-color: var(--red-soft);
  background: linear-gradient(#3a1111, #151111);
  box-shadow: inset 3px 0 0 var(--red);
}

.shop-alert,
.alert {
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #333;
  background: rgba(0,0,0,.32);
  font-size: 13px;
  line-height: 1.4;
  position: relative;
}

.shop-alert strong { text-transform: uppercase; }
.shop-alert-success, .alert-success { border-color: rgba(91, 181, 75, .65); color: #a8e69c; background: rgba(35, 88, 27, .18); }
.shop-alert-error, .alert-danger { border-color: rgba(201, 22, 22, .75); color: #ff9b9b; background: rgba(120, 10, 10, .22); }
.shop-alert-info, .alert-info { border-color: rgba(22, 118, 255, .6); color: #9fc7ff; background: rgba(22, 70, 130, .18); }
.alert-warning { border-color: rgba(217, 179, 108, .7); color: #f2d59a; background: rgba(116, 81, 25, .22); }
.alert.hide { display: none; }
.alert-icon { margin-right: 8px; font-weight: 900; }
.btn-close { position: absolute; top: 7px; right: 8px; border: 0; background: transparent; color: inherit; font-size: 20px; cursor: pointer; }

.content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.content-head h2,
.shop-title {
  margin: 0;
  color: #eee1bd;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.shop-stats { color: var(--muted); font-size: 13px; }





.popular-card,
.selected-card { text-align: center; }

.popular-ribbon {
  display: inline-block;
  margin-bottom: 9px;
  color: #111;
  background: var(--gold);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.big-icon {
  width: 118px;
  height: 118px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 58px;
  border: 1px solid #3a3a3a;
  background: radial-gradient(circle, rgba(130,16,16,.24), #090909 72%);
  position: relative;
}

.quantity-box { margin-top: 12px; text-align: left; }
.quantity-box label { display: block; margin-bottom: 6px; color: #aaa; font-size: 12px; text-transform: uppercase; font-weight: 700; }

.buy-btn,
.shop-button {
  width: 100%;
  margin-top: 13px;
  height: 42px;
  border: 1px solid #9a1515;
  background: linear-gradient(#c51616, #620b0b);
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.buy-btn:hover,
.shop-button:hover { filter: brightness(1.15); }

.selected-empty,
.no-results {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  padding: 10px 0;
}

.no-results {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
  border: 1px dashed #333;
  background: rgba(0,0,0,.22);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 12px;
}

.shop-login-panel {
  width: min(430px, 100%);
  background: rgba(15,15,15,.96);
  border: 1px solid #2a2a2a;
  box-shadow: 0 0 24px rgba(0,0,0,.65);
  padding: 18px;
}

.shop-login-panel fieldset { border: 0; padding: 0; margin: 0; }
.shop-login-panel label { display: block; margin: 12px 0 6px; color: #aaa; font-size: 12px; text-transform: uppercase; }
.shop-login-panel .remember { display: flex; align-items: center; gap: 8px; text-transform: none; }
.shop-login-panel .remember input { width: auto; }
.login-title { margin-bottom: 14px; }

@media (max-width: 1200px) {
  .shop-layout { grid-template-columns: 245px minmax(0, 1fr); }
  .right-sidebar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .page-shell { width: 100%; margin: 0; border-radius: 0; padding: 10px; }
  .shop-topbar { padding: 5px; }
  .shop-topbar, .topbar-left, .content-head { flex-direction: column; height: auto; align-items: center; }
  .mini-logo { display: flex; justify-content: center; }
  .shop-layout { grid-template-columns: 1fr; }
  .right-sidebar { display: block; }
  .article-grid { grid-template-columns: 1fr; }
  .userbar { flex-wrap: wrap; }
}
