/* gem-shop.css — 鑽石商店樣式 */

.gs-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  z-index: 10800;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.24s;
}
.gs-overlay.open { opacity: 1; }
.gs-card {
  background: linear-gradient(180deg, #1e1e35 0%, #0d1224 100%);
  border-radius: 20px;
  max-width: 500px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  border: 1px solid rgba(255,213,79,0.28);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 40px rgba(255,213,79,0.12);
  padding: 24px 22px 22px;
  position: relative;
  transform: translateY(24px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.1), opacity 0.28s;
  overflow-x: hidden;
}
.gs-overlay.open .gs-card { transform: translateY(0) scale(1); opacity: 1; }
.gs-card::before {
  content: ''; position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(255,213,79,0.28), transparent 70%);
  pointer-events: none;
}
.gs-close {
  position: absolute; top: 12px; right: 14px;
  background: rgba(255,255,255,0.06);
  border: none; color: rgba(255,255,255,0.85);
  font-size: 22px;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.gs-close:hover { background: rgba(255,255,255,0.14); color: #fff; }

.gs-header {
  text-align: center; position: relative; z-index: 1; margin-bottom: 18px;
}
.gs-title {
  color: #fff; font-size: 22px; font-weight: 900;
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(255,213,79,0.25);
}
.gs-sub {
  color: rgba(255,255,255,0.7);
  font-size: 12px; line-height: 1.5;
}

.gs-body { position: relative; z-index: 1; }

/* ─── 方案卡 ─── */
.gs-tiers {
  display: flex; flex-direction: column; gap: 10px;
}
.gs-tier {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 14px;
  color: #fff;
  transition: all 0.18s;
  position: relative;
  overflow: hidden;
}
.gs-tier:hover {
  border-color: rgba(255,213,79,0.55);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255,140,0,0.22);
}
.gs-tier.tier-t2 { border-color: rgba(255,213,79,0.35); }
.gs-tier.tier-t3 {
  border-color: rgba(255,140,0,0.5);
  background: linear-gradient(135deg, rgba(255,140,0,0.15), rgba(255,87,34,0.08));
}
.gs-tier.tier-t3::after {
  content: '推薦';
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, #ff5722, #ff8c00);
  color: #fff;
  padding: 3px 12px;
  font-size: 10px; font-weight: 800;
  border-bottom-left-radius: 10px;
  letter-spacing: 1px;
}
.gs-tier-badge {
  font-size: 13px; font-weight: 800;
  color: #ffd54f; letter-spacing: 1px;
  grid-column: 1; grid-row: 1;
}
.gs-tier-price {
  font-size: 20px; font-weight: 900;
  color: #fff;
  grid-column: 1; grid-row: 2;
  font-variant-numeric: tabular-nums;
}
.gs-tier-gems {
  font-size: 22px; font-weight: 900;
  color: #ffd54f;
  grid-column: 2; grid-row: 1 / span 2;
  align-self: center; text-align: right;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(255,213,79,0.4);
}
.gs-tier-bonus {
  grid-column: 1; grid-row: 3;
  font-size: 11px; color: #a5d6a7; font-weight: 700;
  margin-top: 4px;
}

/* ─── 我的訂單連結 ─── */
.gs-orders-link { text-align: center; margin-top: 14px; }
.gs-link-btn {
  background: none; border: none;
  color: rgba(255,213,79,0.85);
  cursor: pointer;
  font-size: 13px;
  padding: 6px 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gs-link-btn:hover { color: #ffd54f; }

/* ─── 注意事項 ─── */
.gs-notice {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border-left: 3px solid rgba(255,213,79,0.5);
  color: rgba(255,255,255,0.65);
  font-size: 11px; line-height: 1.6;
  border-radius: 4px;
}

/* ─── 建單後付款指示 ─── */
.gs-pay-card { max-width: 460px; }
.gs-order-box {
  background: rgba(255,213,79,0.08);
  border: 1px dashed rgba(255,213,79,0.35);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.gs-order-label {
  font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 1px;
}
.gs-order-no {
  display: flex; align-items: center; gap: 10px;
  margin: 6px 0 12px;
}
.gs-order-no > span {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 22px; font-weight: 900;
  color: #ffd54f;
  letter-spacing: 2px;
  flex: 1;
}
.gs-copy-btn {
  background: rgba(255,213,79,0.15);
  border: 1px solid rgba(255,213,79,0.35);
  border-radius: 6px;
  padding: 5px 10px;
  color: #ffd54f;
  cursor: pointer;
  font-size: 12px; font-weight: 700;
}
.gs-copy-btn:hover { background: rgba(255,213,79,0.28); }
.gs-order-row {
  display: flex; justify-content: space-between;
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  padding: 4px 0;
}
.gs-order-row b { color: #fff; font-weight: 800; }

.gs-steps {
  list-style: none; padding: 0; margin: 0 0 16px;
  counter-reset: step;
}
.gs-steps li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 13px; line-height: 1.5;
  border-bottom: 1px dashed rgba(255,255,255,0.06);
}
.gs-steps li:last-child { border-bottom: none; }
.gs-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, #ffd54f, #ff8c00);
  color: #1a1a2e;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}
.gs-steps li b { color: #ffd54f; }

.gs-line-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #06c755, #04a344);
  color: #fff;
  border: none; border-radius: 12px;
  padding: 14px;
  font-size: 15px; font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 8px 20px rgba(6,199,85,0.35);
  margin-bottom: 10px;
}
.gs-line-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(6,199,85,0.5);
}
.gs-secondary-btn {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.75);
  border-radius: 10px;
  padding: 11px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.gs-secondary-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ─── 訂單列表 ─── */
.gs-orders-list { display: flex; flex-direction: column; gap: 10px; }
.gs-order-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
.gs-order-item.paid { border-color: rgba(76,175,80,0.35); }
.gs-order-item.cancelled { opacity: 0.6; }
.gs-order-item-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.gs-order-item-no {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px; font-weight: 800;
  color: #ffd54f;
  letter-spacing: 1px;
}
.gs-order-item-body {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 14px; font-weight: 700;
}
.gs-order-item-body span:nth-child(3) { color: #ffd54f; }
.gs-order-item-time {
  font-size: 11px; color: rgba(255,255,255,0.5);
  margin-top: 6px;
}
.gs-badge {
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
}
.gs-badge.pending  { background: rgba(255,193,7,0.2); color: #ffe082; }
.gs-badge.paid     { background: rgba(76,175,80,0.2); color: #a5d6a7; }
.gs-badge.cancelled { background: rgba(158,158,158,0.2); color: rgba(255,255,255,0.55); }

/* ─── 通用狀態 ─── */
.gs-loading, .gs-empty, .gs-error {
  padding: 24px; text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.gs-error { color: #ef9a9a; }

/* ─── 我的球隊商店頁的鑽石商店 banner ─── */
.mt-gemshop-banner {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, rgba(255,213,79,0.16), rgba(255,140,0,0.12));
  border: 1px solid rgba(255,213,79,0.4);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
  margin-top: 4px;
}
.mt-gemshop-banner:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255,140,0,0.28);
}
.mt-gemshop-banner-icon {
  font-size: 34px;
  filter: drop-shadow(0 0 6px rgba(255,213,79,0.5));
}
.mt-gemshop-banner-text { flex: 1; }
.mt-gemshop-banner-title { color: #ffd54f; font-size: 15px; font-weight: 900; }
.mt-gemshop-banner-sub { color: rgba(255,255,255,0.7); font-size: 11px; margin-top: 2px; }
.mt-gemshop-banner-cta {
  background: linear-gradient(135deg, #ffd54f, #ff8c00);
  color: #1a1a2e;
  padding: 6px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
}

@media (max-width: 500px) {
  .gs-card { padding: 20px 16px 18px; border-radius: 16px; }
  .gs-title { font-size: 19px; }
  .gs-tier { padding: 14px; }
  .gs-tier-price { font-size: 18px; }
  .gs-tier-gems { font-size: 20px; }
  .gs-order-no > span { font-size: 18px; letter-spacing: 1px; }
}

/* ── 首儲禮英雄區（UR 麥迪 · 黃金傳說）──
   尊榮感三件套：實卡大圖浮動、流光掃過、金框呼吸 */
.gs-ur-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #ffd455;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,212,85,0.16), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(122,240,255,0.10), transparent 55%),
    linear-gradient(150deg, #221c0e, #1a1626 55%, #101828);
  box-shadow: 0 0 16px rgba(255,212,85,0.4), inset 0 0 30px rgba(255,212,85,0.06);
  overflow: hidden;
  animation: gs-ur-breathe 3s ease-in-out infinite;
}
@keyframes gs-ur-breathe {
  0%, 100% { box-shadow: 0 0 14px rgba(255,212,85,0.35), inset 0 0 30px rgba(255,212,85,0.06); }
  50%      { box-shadow: 0 0 26px rgba(255,212,85,0.6), 0 0 40px rgba(255,122,200,0.2), inset 0 0 30px rgba(255,212,85,0.1); }
}
/* 流光：斜向亮帶每 3.2 秒掃過一次 */
.gs-ur-hero-shine {
  position: absolute;
  top: -20%; bottom: -20%;
  width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255,244,200,0.22) 45%, rgba(255,255,255,0.32) 50%, rgba(255,244,200,0.22) 55%, transparent);
  transform: skewX(-18deg);
  left: -45%;
  animation: gs-ur-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gs-ur-shine {
  0%       { left: -45%; }
  55%, 100% { left: 130%; }
}
.gs-ur-hero-portrait-wrap {
  position: relative;
  flex: 0 0 auto;
}
.gs-ur-hero-portrait {
  width: 84px;
  height: 105px;
  display: block;
  image-rendering: pixelated;
  border-radius: 10px;
  border: 2px solid rgba(255,212,85,0.7);
  background: radial-gradient(80% 60% at 50% 35%, rgba(255,212,85,0.28), rgba(0,0,0,0.5));
  box-shadow: 0 6px 16px rgba(0,0,0,0.5), 0 0 18px rgba(255,212,85,0.45);
  animation: gs-ur-float 2.8s ease-in-out infinite;
}
@keyframes gs-ur-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
.gs-ur-hero-rarity {
  position: absolute;
  top: -8px; left: -8px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px; font-weight: 900; letter-spacing: 1.5px;
  color: #1a1a2e;
  background: linear-gradient(120deg, #ffd455, #ff7ac8 55%, #7af0ff);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5), 0 0 10px rgba(255,212,85,0.6);
}
.gs-ur-hero-info { min-width: 0; }
.gs-ur-hero-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #ffd455;
  margin-bottom: 3px;
}
.gs-ur-hero-name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1px;
  background: linear-gradient(100deg, #fff3c4, #ffd455 40%, #ffb14e 70%, #fff3c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 6px;
}
.gs-ur-hero-perks {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  margin-bottom: 8px;
}
.gs-ur-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-ur-hero-tags b {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,212,85,0.55);
  color: #ffe9a8;
  background: rgba(255,212,85,0.10);
}
.gs-ur-hero-tags b.owned-tag {
  border-color: rgba(120,220,140,0.6);
  color: #b9f0c4;
  background: rgba(120,220,140,0.12);
}
.gs-ur-hero.owned { animation: none; }
.gs-ur-hero.owned .gs-ur-hero-shine { animation: none; display: none; }
@media (prefers-reduced-motion: reduce) {
  .gs-ur-hero, .gs-ur-hero-portrait { animation: none; }
  .gs-ur-hero-shine { animation: none; display: none; }
}
@media (max-width: 430px) {
  .gs-ur-hero { padding: 12px; gap: 10px; }
  .gs-ur-hero-portrait { width: 68px; height: 85px; }
  .gs-ur-hero-name { font-size: 16px; }
  .gs-ur-hero-perks { font-size: 10.5px; }
}
