/* GA-Server web shop (shop.php, gold.php) */
.shop-case { grid-template-columns: minmax(0, 1fr); max-width: 1240px; }
.shop { min-width: 0; }
.shop-hero { text-align: center; margin: 6px 0 22px; }
.shop-kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--sky); font-size: .72rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; }
.shop-kicker span { width: 46px; height: 1px; background: linear-gradient(90deg, transparent, var(--sky)); }
.shop-kicker span:last-child { transform: scaleX(-1); }
.shop-hero h1 { margin: 6px 0 0; font-family: 'Cinzel', serif; font-size: clamp(2rem, 5vw, 3rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shop-flash { margin: 0 0 14px; }

.gold-coin { display: inline-block; width: 1em; height: 1em; margin-right: 5px; vertical-align: -.14em; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7cc, #facc15 40%, #b45309 100%); box-shadow: 0 0 6px rgba(250, 204, 21, .55); }

.shop-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.shop-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.gold-pill { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(250, 204, 21, .35); background: rgba(250, 204, 21, .08); color: #fde68a; }
.gold-pill b { margin-right: 4px; color: #fff; }
.shop-link { color: var(--sub); font-weight: 600; }
.shop-link.on, .shop-link:hover { color: var(--sky); }
.shop-signin { color: var(--sub); }
.shop-search { display: flex; flex: 0 1 340px; min-width: 220px; }
.shop-search input { flex: 1; min-width: 0; margin: 0; border-radius: 12px 0 0 12px; }
.shop-search button { width: 46px; padding: 0; box-shadow: none; transform: none; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 12px 12px 0; background: rgba(56, 189, 248, .12); cursor: pointer; }
.shop-search button::before { display: none; }
.shop-search svg { width: 18px; height: 18px; fill: var(--sky); }

.shop-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.shop-cats { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.shop-cats a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: #cbd5e1; font-weight: 600; transition: background .2s, color .2s; }
.shop-cats a:hover { background: rgba(56, 189, 248, .08); color: #fff; }
.shop-cats a.on { background: linear-gradient(135deg, rgba(34, 211, 238, .22), rgba(139, 92, 246, .22)); color: #fff; box-shadow: inset 0 0 0 1px var(--line-2); }
.shop-cats .ci { width: 22px; text-align: center; }
.shop-cats .cn { flex: 1; }
.shop-cats .cc { color: var(--muted); font-size: .75rem; }
.shop-cats .sep { height: 1px; margin: 6px 4px; background: var(--line); }

.shop-main { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.shop-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 0 0 14px; }
.shop-head h2 { margin: 0; font-size: 1.35rem; }
.shop-tools { display: flex; align-items: center; gap: 12px; }
.shop-tools select { margin: 0; width: auto; }
.shop-count { color: var(--muted); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.shop-empty { padding: 40px 0; text-align: center; color: var(--sub); }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.shop-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px 14px; margin: 0; min-height: 0; border-radius: 14px;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(30, 41, 59, .7), rgba(8, 13, 27, .85)); color: var(--text); font: inherit; text-align: center; cursor: pointer;
  box-shadow: none; transform: none; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.shop-card::before { display: none; }
.shop-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 12px 28px rgba(0, 0, 0, .4), 0 0 0 1px rgba(56, 189, 248, .15); filter: none; }
.sc-price { align-self: flex-start; display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: rgba(0, 0, 0, .45); color: #fde68a; font-size: .78rem; font-weight: 700; }
.sc-price s, .sm-price s { margin-left: 5px; color: var(--muted); font-weight: 400; }
.sc-tag { position: absolute; top: 12px; right: 10px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #f0abfc; font-size: .8rem; }
.sc-img, .sm-img { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 16px; background: radial-gradient(circle at 50% 40%, rgba(148, 163, 184, .22), rgba(15, 23, 42, .2) 70%); }
.sc-img img, .sm-img img { width: 64px; height: 64px; image-rendering: auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .5)); }
.sc-name { font-size: .86rem; font-weight: 700; line-height: 1.3; color: #e2e8f0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sc-name small { color: var(--sub); font-weight: 600; }
/* item quality colours (as in game) */
.q-rare .sc-name { color: #86efac; }
.q-legend .sc-name { color: #7dd3fc; }
.q-unique .sc-name { color: #fde047; }
.q-epic .sc-name { color: #fdba74; }
.q-mythic .sc-name { color: #d8b4fe; }
.q-rare .sc-img, .sm-img.q-rare { box-shadow: inset 0 0 0 1px rgba(134, 239, 172, .35); }
.q-legend .sc-img, .sm-img.q-legend { box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .4); }
.q-unique .sc-img, .sm-img.q-unique { box-shadow: inset 0 0 0 1px rgba(253, 224, 71, .45); }
.q-epic .sc-img, .sm-img.q-epic { box-shadow: inset 0 0 0 1px rgba(253, 186, 116, .45); }
.q-mythic .sc-img, .sm-img.q-mythic { box-shadow: inset 0 0 0 1px rgba(216, 180, 254, .45); }

.shop-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 18px; }
.shop-pager a, .shop-pager span { min-width: 38px; padding: 8px 10px; border-radius: 10px; text-align: center; border: 1px solid var(--line); color: #cbd5e1; }
.shop-pager span { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
.shop-table { overflow-x: auto; margin-bottom: 20px; }
.shop-note { margin: 16px 0 0; color: var(--muted); font-size: .85rem; text-align: center; }

/* item dialog */
.shop-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(2, 6, 18, .72); backdrop-filter: blur(4px); }
.shop-modal[hidden] { display: none; }
body.modal-open { overflow: hidden; }
.sm-box { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; border-radius: 20px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, #0f1a33, #090f1f); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.sm-close { display: grid; place-items: center; position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: none; }
.sm-close::before { display: none; }
.sm-top { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; padding-right: 30px; }
.sm-name { margin: 0 0 4px; font-size: 1.15rem; }
.sm-meta { color: var(--sub); font-size: .82rem; }
.sm-price { margin-top: 8px; color: #fde68a; font-weight: 800; font-size: 1.1rem; }
.sm-desc { color: #cbd5e1; font-size: .9rem; white-space: pre-line; }
.sm-info { margin: 8px 0 0; color: var(--sub); }
.sm-form { display: grid; gap: 12px; margin-top: 8px; }
.sm-form label { display: grid; gap: 6px; color: var(--sub); font-size: .85rem; font-weight: 600; }
.sm-form select, .sm-form input[type="number"] { margin: 0; width: 100%; }
.sm-total { color: var(--sub); }
.sm-total b { color: #fde68a; }
.sm-warn { padding: 8px 12px; border-radius: 10px; background: rgba(248, 113, 113, .12); color: #fecaca; font-size: .88rem; }
.sm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sm-actions .btn3d { flex: 1; text-align: center; }
.sm-actions input[disabled] { opacity: .45; cursor: not-allowed; filter: grayscale(.6); }

/* Gold page */
.gold-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gold-pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px 16px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 204, 21, .07), rgba(8, 13, 27, .85)); cursor: pointer; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.gold-pack:hover { transform: translateY(-4px); border-color: rgba(250, 204, 21, .5); }
.gold-pack.on { border-color: #facc15; box-shadow: 0 0 0 2px rgba(250, 204, 21, .35), 0 16px 34px rgba(0, 0, 0, .45); }
.gold-pack input { position: absolute; opacity: 0; pointer-events: none; }
.gp-label { position: absolute; top: -10px; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gp-gold { font-size: 1.6rem; font-weight: 800; color: #fde68a; }
.gp-bonus { color: var(--green); font-size: .85rem; font-weight: 700; min-height: 1.2em; }
.gp-price { margin-top: 4px; font-size: 1.15rem; font-weight: 800; color: #fff; }
.gold-pay { max-width: 460px; margin: 22px auto 0; text-align: center; }
.gold-pay .pp-msg { margin: 10px 0; }

@media (max-width: 860px) {
  .shop-layout { grid-template-columns: minmax(0, 1fr); }
  .shop-cats { position: static; flex-direction: row; overflow-x: auto; padding: 8px; -webkit-overflow-scrolling: touch; }
  .shop-cats a { flex: 0 0 auto; padding: 8px 12px; }
  .shop-cats .cc, .shop-cats .sep { display: none; }
  .shop-main { padding: 12px; }
  .shop-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .shop-search { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc-img { width: 70px; height: 70px; }
  .sc-img img { width: 56px; height: 56px; }
}
