/* Battle Pass - modern theme. IE11-safe: no CSS variables, no grid, no flex gap, no backdrop-filter. */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  font-family: "Segoe UI", "Segoe UI Variable", Tahoma, Arial, sans-serif;
  font-size: 13px; color: #e9e7f5; background: #0b0b18;
  -ms-user-select: none; user-select: none;
}
.hidden { display: none !important; }
b { color: #fff; }
button { font-family: inherit; }

.app {
  position: relative; height: 100%; min-height: 560px; overflow: hidden;
  background: #0d0c1d;
  background-image: linear-gradient(160deg, #15123a 0%, #0d0c1d 45%, #0b0b18 100%);
}
.bg-glow {
  position: absolute; left: -120px; top: -160px; width: 520px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35) 0%, rgba(124, 92, 255, 0) 70%);
  pointer-events: none;
}

/* ---------- hero ---------- */
.hero {
  position: relative; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center;
  padding: 16px 20px 14px;
}
.hero-season { -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: #9d8cff; }
.season-name {
  margin: 2px 0 8px; font-size: 21px; font-weight: 700; color: #fff; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chips .chip { margin-right: 6px; }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.09); color: #c9c5e6;
}
.chip-time { color: #ffd38a; border-color: rgba(255, 196, 92, 0.25); background: rgba(255, 196, 92, 0.08); }

.hero-tier { display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center; width: 300px; margin: 0 16px; }
.ring { position: relative; width: 78px; height: 78px; margin-right: 14px; }
.ring-svg { width: 78px; height: 78px; -ms-transform: rotate(-90deg); transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255, 255, 255, 0.08); stroke-width: 8; }
.ring-fill {
  fill: none; stroke: #f7c35f; stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 276.46; stroke-dashoffset: 276.46; -webkit-transition: stroke-dashoffset .8s ease; transition: stroke-dashoffset .8s ease;
}
.ring-label { position: absolute; left: 0; top: 0; width: 78px; height: 78px; text-align: center; padding-top: 16px; }
.ring-tier { font-size: 26px; font-weight: 800; color: #fff; line-height: 28px; }
.ring-caption { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: #9d98bf; }
.tier-meta { -ms-flex: 1 1 0%; flex: 1 1 0%; }
.tier-of { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.xp-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.xp-fill {
  height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, #7c5cff 0%, #f7c35f 100%);
  -webkit-transition: width .8s ease; transition: width .8s ease;
}
.xp-text { font-size: 11px; color: #9d98bf; margin-top: 5px; }

.hero-premium {
  width: 176px; padding: 10px 12px; border-radius: 14px; text-align: center;
  background: linear-gradient(145deg, rgba(247, 195, 95, 0.16), rgba(255, 138, 61, 0.06));
  border: 1px solid rgba(247, 195, 95, 0.35);
}
.hero-premium.active { background: linear-gradient(145deg, rgba(247, 195, 95, 0.35), rgba(255, 138, 61, 0.18)); }
.premium-crown { font-size: 18px; color: #f7c35f; line-height: 18px; }
.premium-title { font-size: 11px; color: #ffe2a8; margin: 3px 0 7px; font-weight: 600; }

/* ---------- buttons ---------- */
.btn {
  font-size: 12px; font-weight: 700; cursor: pointer; color: #fff;
  padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  -webkit-transition: all .15s ease; transition: all .15s ease;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn:active { -ms-transform: scale(.96); transform: scale(.96); }
.btn-gold { color: #2a1605; border: 0; background: linear-gradient(90deg, #ffd776, #ff9a3d); box-shadow: 0 4px 14px rgba(255, 154, 61, 0.35); }
.btn-gold:hover { background: linear-gradient(90deg, #ffe39a, #ffab5c); }
.btn-claim { color: #04261a; border: 0; background: linear-gradient(90deg, #4ff0b0, #20c997); box-shadow: 0 4px 14px rgba(32, 201, 151, 0.35); }
.btn-claim:hover { background: linear-gradient(90deg, #7af5c6, #36d6a6); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 4px 12px; font-size: 11px; }
.btn-xs { padding: 4px 12px; font-size: 11px; }
.btn-lg { padding: 9px 22px; font-size: 13px; }

/* ---------- call-to-action banner ---------- */
.cta {
  position: relative; display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center;
  margin: 0 20px 10px; padding: 9px 12px 9px 14px; border-radius: 14px;
  background: linear-gradient(90deg, rgba(32, 201, 151, 0.20), rgba(124, 92, 255, 0.12));
  border: 1px solid rgba(79, 240, 176, 0.35);
}
.cta.info { background: linear-gradient(90deg, rgba(124, 92, 255, 0.18), rgba(124, 92, 255, 0.06)); border-color: rgba(157, 140, 255, 0.35); }
.cta.upsell { background: linear-gradient(90deg, rgba(247, 195, 95, 0.20), rgba(255, 138, 61, 0.08)); border-color: rgba(247, 195, 95, 0.4); }
.cta-icon { font-size: 22px; margin-right: 10px; -webkit-animation: bounce 1.6s ease-in-out infinite; animation: bounce 1.6s ease-in-out infinite; }
.cta-text { -ms-flex: 1 1 0%; flex: 1 1 0%; font-size: 13px; font-weight: 600; color: #fff; }
.cta-text small { display: block; font-weight: 400; color: #b9b5d8; font-size: 11px; }

/* ---------- tabs ---------- */
.tabs { padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); height: 36px; }
.tab {
  position: relative; display: inline-block; height: 36px; line-height: 36px; padding: 0 16px; margin-right: 4px;
  color: #9d98bf; text-decoration: none; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
}
.tab:hover { color: #fff; }
.tab.active { color: #fff; }
.tab.active:after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #7c5cff, #f7c35f);
}
.badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px; padding: 0 5px; margin-left: 6px;
  border-radius: 9px; background: #ff4d6d; color: #fff; font-size: 10px; text-align: center; vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.6); -webkit-animation: ping 1.8s infinite; animation: ping 1.8s infinite;
}

/* ---------- reward track ---------- */
.panel { position: relative; height: 392px; padding: 12px 20px 0; }
.track-labels { position: absolute; left: 20px; top: 12px; width: 68px; }
.track-label {
  height: 128px; margin-bottom: 30px; border-radius: 14px 0 0 14px;
  text-align: center; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 10px; padding-top: 55px;
}
.track-label.free { color: #c9c5e6; background: rgba(255, 255, 255, 0.04); }
.track-label.premium { color: #f7c35f; background: rgba(247, 195, 95, 0.09); }

.track-scroll { margin-left: 68px; height: 330px; overflow-x: auto; overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; }
.track { white-space: nowrap; height: 316px; position: relative; padding-left: 6px; }
.tier-col { display: inline-block; vertical-align: top; width: 112px; margin-right: 8px; white-space: normal; }

.card {
  position: relative; height: 128px; padding: 10px 7px 7px; border-radius: 14px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-transition: -webkit-transform .15s ease, border-color .15s ease; transition: transform .15s ease, border-color .15s ease;
}
.card:hover { -ms-transform: translateY(-2px); transform: translateY(-2px); }
.card.premium { background: linear-gradient(180deg, rgba(247, 195, 95, 0.14), rgba(247, 195, 95, 0.03)); border-color: rgba(247, 195, 95, 0.22); }
.card.empty { background: rgba(255, 255, 255, 0.015); border: 1px dashed rgba(255, 255, 255, 0.07); }
.card.empty:hover { -ms-transform: none; transform: none; }
.card.claimable { border-color: #4ff0b0; -webkit-animation: glow 1.6s ease-in-out infinite; animation: glow 1.6s ease-in-out infinite; }
.card.claimed { opacity: .5; }
.card.locked .icon { opacity: .45; -webkit-filter: grayscale(60%); filter: grayscale(60%); }
.card.premium.locked:before {
  content: ''; position: absolute; left: -40%; top: 0; width: 40%; height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 233, 180, 0.18), rgba(255, 255, 255, 0));
  -webkit-animation: shimmer 3.2s ease-in-out infinite; animation: shimmer 3.2s ease-in-out infinite;
}
.icon { width: 46px; height: 46px; margin: 0 auto 6px; }
.icon svg { width: 46px; height: 46px; }
.reward-name { height: 30px; overflow: hidden; font-size: 11px; line-height: 15px; color: #e9e7f5; font-weight: 600; }
.card-foot { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 10px; color: #8d88b0; }
.ok { color: #4ff0b0; font-weight: 700; }
.lock { color: #9d98bf; }

.tier-mid { height: 30px; line-height: 30px; text-align: center; position: relative; }
.tier-mid:before { content: ''; position: absolute; left: -8px; right: 0; top: 14px; height: 2px; background: rgba(255, 255, 255, 0.07); }
.tier-col.reached .tier-mid:before { background: linear-gradient(90deg, #7c5cff, #f7c35f); }
.tier-mid .num {
  position: relative; display: inline-block; width: 26px; height: 26px; line-height: 24px; margin-top: 2px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12); background: #15132e; font-size: 11px; font-weight: 700; color: #8d88b0;
}
.tier-col.reached .tier-mid .num { border-color: #f7c35f; color: #2a1605; background: linear-gradient(135deg, #ffd776, #ff9a3d); }
.tier-col.current .tier-mid .num { box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.35); border-color: #9d8cff; color: #fff; background: #2a2163; }
.track-nav { text-align: center; margin-top: 2px; }

/* ---------- missions ---------- */
.missions { display: -ms-flexbox; display: flex; }
.mission-col { -ms-flex: 1 1 0%; flex: 1 1 0%; margin-right: 14px; }
.mission-col:last-child { margin-right: 0; }
.col-head { margin-bottom: 8px; }
.col-head h3 { display: inline-block; margin: 0 8px 0 0; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #9d8cff; }
.chip-reset { font-size: 10px; padding: 2px 8px; }
.mission {
  display: -ms-flexbox; display: flex; -ms-flex-align: center; align-items: center;
  padding: 9px 10px; margin-bottom: 8px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06);
}
.mission.done { border-color: rgba(79, 240, 176, 0.55); background: rgba(79, 240, 176, 0.07); }
.mission.claimed { opacity: .45; }
.m-icon {
  width: 32px; height: 32px; line-height: 32px; margin-right: 10px; border-radius: 10px; text-align: center; font-size: 16px;
  background: rgba(124, 92, 255, 0.18); color: #c4b8ff;
}
.mission.done .m-icon { background: rgba(79, 240, 176, 0.18); color: #4ff0b0; }
.mission-main { -ms-flex: 1 1 0%; flex: 1 1 0%; min-width: 0; margin-right: 10px; }
.mission-name { font-weight: 600; margin-bottom: 5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mission-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.mission-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #7c5cff, #4ff0b0); }
.mission-meta { font-size: 10px; color: #8d88b0; margin-top: 3px; }
.mission-xp { width: 66px; text-align: right; color: #f7c35f; font-weight: 800; font-size: 12px; margin-right: 8px; }
.mission-act { width: 64px; text-align: right; }

/* ---------- feedback ---------- */
.toast {
  position: absolute; left: 50%; bottom: 22px; width: 380px; margin-left: -190px; padding: 11px 16px; text-align: center; border-radius: 14px;
  background: rgba(20, 18, 44, 0.97); border: 1px solid rgba(79, 240, 176, 0.5); color: #fff; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); -webkit-animation: rise .25s ease-out; animation: rise .25s ease-out;
}
.toast.error { border-color: rgba(255, 77, 109, 0.6); color: #ffd0d9; }
.float-xp {
  position: absolute; left: 50%; top: 40%; width: 200px; margin-left: -100px; text-align: center; pointer-events: none;
  font-size: 30px; font-weight: 800; color: #f7c35f; text-shadow: 0 4px 18px rgba(247, 195, 95, 0.6);
  -webkit-animation: floatup 1.2s ease-out forwards; animation: floatup 1.2s ease-out forwards;
}
.overlay { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(8, 7, 20, 0.5); }
.overlay.off { display: none; }
.spinner {
  position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: #f7c35f;
  -webkit-animation: spin 0.9s linear infinite; animation: spin 0.9s linear infinite;
}
.num-ltr { direction: ltr; unicode-bidi: embed; }

@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@-webkit-keyframes glow { 0%, 100% { box-shadow: 0 0 0 rgba(79, 240, 176, 0); } 50% { box-shadow: 0 0 18px rgba(79, 240, 176, 0.55); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 rgba(79, 240, 176, 0); } 50% { box-shadow: 0 0 18px rgba(79, 240, 176, 0.55); } }
@-webkit-keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.6); } 70% { box-shadow: 0 0 0 7px rgba(255, 77, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0.6); } 70% { box-shadow: 0 0 0 7px rgba(255, 77, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, 0); } }
@-webkit-keyframes shimmer { 0% { left: -40%; } 60%, 100% { left: 120%; } }
@keyframes shimmer { 0% { left: -40%; } 60%, 100% { left: 120%; } }
@-webkit-keyframes bounce { 0%, 100% { -webkit-transform: translateY(0); } 50% { -webkit-transform: translateY(-4px); } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@-webkit-keyframes rise { from { opacity: 0; -webkit-transform: translateY(12px); } to { opacity: 1; -webkit-transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@-webkit-keyframes floatup { 0% { opacity: 0; -webkit-transform: translateY(20px) scale(.8); } 20% { opacity: 1; -webkit-transform: translateY(0) scale(1.1); } 100% { opacity: 0; -webkit-transform: translateY(-60px) scale(1); } }
@keyframes floatup { 0% { opacity: 0; transform: translateY(20px) scale(.8); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-60px) scale(1); } }

/* ---------- RTL ---------- */
.rtl { direction: rtl; }
.rtl .chips .chip { margin-right: 0; margin-left: 6px; }
.rtl .ring { margin-right: 0; margin-left: 14px; }
.rtl .cta-icon { margin-right: 0; margin-left: 10px; }
.rtl .tab { margin-right: 0; margin-left: 4px; }
.rtl .badge { margin-left: 0; margin-right: 6px; }
.rtl .track-scroll, .rtl .track-nav, .rtl .track-labels { direction: ltr; }
.rtl .col-head h3 { margin: 0 0 0 8px; }
.rtl .mission-col { margin-right: 0; margin-left: 14px; }
.rtl .mission-col:last-child { margin-left: 0; }
.rtl .m-icon { margin-right: 0; margin-left: 10px; }
.rtl .mission-main { margin-right: 0; margin-left: 10px; }
.rtl .mission-xp, .rtl .mission-act { text-align: left; }
.rtl .mission-xp { margin-right: 0; margin-left: 8px; }
