/* battlepass.css — сезонный баттл-пасс: виджет в кабинете + витрина /battlepass.
   Использует брендовые переменные сайта (dashboard.css :root): --primary-rune
   (фиолетовый, премиум), --secondary-rune, --accent-rail (золото, бесплатная ветка). */

/* ══════════ Значок Premium в шапке профиля (dashboard.php) ══════════ */
.bp-premium-pill {
    display: inline-flex; align-items: center; gap: .3rem;
    margin-left: .6rem; padding: .18rem .6rem .18rem .5rem;
    border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .04em;
    text-transform: uppercase; vertical-align: middle;
    color: #1e1e2e; background: linear-gradient(135deg, #f9e2af, #cba6f7);
    box-shadow: 0 0 12px rgba(203,166,247,.55);
}
.bp-premium-pill i { font-size: .95em; }

/* ══════════ «Онлайн сейчас» (вкладка Профиль, dashboard.php) ══════════ */
.bp-online-card {
    margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 16px;
    background: rgba(24,24,37,.55); border: 1px solid rgba(148,226,213,.22);
}
.bp-online-head { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: #94e2d5; font-size: .92rem; margin-bottom: .7rem; }
.bp-online-head i.fa-signal { color: #a6e3a1; }
.bp-online-count { color: #cdd6f4; font-weight: 700; }
.bp-online-count::before { content: '· '; color: #6c7086; font-weight: 400; }
.bp-online-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.bp-online-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .28rem .7rem; border-radius: 999px; font-size: .82rem; color: #cdd6f4;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
}
.bp-online-chip.premium {
    color: #f5c2e7; background: linear-gradient(135deg, rgba(203,166,247,.18), rgba(249,226,175,.1));
    border-color: rgba(203,166,247,.45);
}
.bp-online-chip.premium i { color: #f9e2af; }

/* ══════════ Значок премиума в рейтингах (top-donaters.php) ══════════ */
/* Отдельная от podium-crown (там корона = 1 место рейтинга) метка — фиолетовый
   самоцвет, тот же смысл, что и bp-premium-pill/nav-premium-crown в других местах. */
.bp-premium-mark {
    margin-left: .35rem; font-size: .82em; color: #cba6f7;
    filter: drop-shadow(0 0 4px rgba(203,166,247,.65));
}

/* ══════════ Виджет в личном кабинете (внутри #panel-daily) ══════════ */
#bpWidget {
    margin-top: .95rem;
    padding-top: .9rem;
    border-top: 1px solid rgba(108,112,134,.18);
}
.bp-widget-head {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 700; font-size: .92rem; color: #f9e2af; margin-bottom: .55rem;
}
.bp-widget-head i.fa-award { color: var(--primary-rune, #8a6dff); }
.bp-widget-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-widget-timer { font-size: .74rem; font-weight: 600; color: #9399b2; white-space: nowrap; }
.bp-widget-bar { height: 8px; border-radius: 5px; background: rgba(108,112,134,.28); overflow: hidden; margin-bottom: .4rem; }
.bp-widget-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent-rail,#c99c33), #f9e2af); width: 0; transition: width .5s ease; }
.bp-widget-sub { font-size: .78rem; color: #a6adc8; margin-bottom: .6rem; }
.bp-widget-next { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: #cdd6f4; background: rgba(203,166,247,.07); border: 1px solid rgba(203,166,247,.18); border-radius: 8px; padding: .4rem .55rem; margin-bottom: .6rem; }
.bp-widget-next i { color: #cba6f7; }
.bp-widget-open {
    display: flex; align-items: center; gap: .5rem; justify-content: center;
    padding: .5rem .65rem; border-radius: 9px;
    background: linear-gradient(135deg, rgba(138,109,255,.18), rgba(201,156,51,.12));
    border: 1px solid rgba(138,109,255,.35); color: #cdd6f4; text-decoration: none;
    font-size: .85rem; font-weight: 600; transition: background .15s, border-color .15s;
}
.bp-widget-open:hover { background: linear-gradient(135deg, rgba(138,109,255,.3), rgba(201,156,51,.2)); border-color: rgba(138,109,255,.55); }

/* ══════════ Полная витрина /battlepass ══════════ */
.bp-page { max-width: 1100px; margin: 0 auto; padding: 6.5rem 1.25rem 3rem; }

.bp-hero {
    position: relative; overflow: hidden;
    border-radius: var(--card-radius, 20px);
    padding: 2.2rem 2rem;
    background: linear-gradient(135deg, rgba(138,109,255,.22), rgba(93,66,245,.14) 45%, rgba(201,156,51,.1));
    border: 1px solid rgba(138,109,255,.3);
    box-shadow: var(--card-shadow, 0 20px 40px rgba(0,0,0,.5));
    margin-bottom: 1.6rem;
}
.bp-hero-icon { font-size: 2.4rem; color: var(--accent-rail,#c99c33); margin-bottom: .6rem; text-shadow: 0 0 24px rgba(201,156,51,.5); }
.bp-hero-name { font-family: 'Cinzel', serif; font-size: 1.9rem; color: #f5f5f5; margin: 0 0 .5rem; }
.bp-hero-desc { color: #c8c8d8; font-size: .98rem; max-width: 640px; line-height: 1.55; margin-bottom: 1rem; }
.bp-hero-meta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.bp-hero-timer, .bp-hero-xp {
    display: inline-flex; align-items: center; gap: .5rem;
    background: rgba(17,17,27,.5); border: 1px solid rgba(255,255,255,.1);
    border-radius: 999px; padding: .4rem .9rem; font-size: .88rem; color: #e5e5f0;
}
.bp-hero-timer i { color: #f9e2af; }
.bp-hero-xp i { color: var(--primary-rune,#8a6dff); }

.bp-premium-card {
    display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
    border-radius: 16px; padding: 1.1rem 1.3rem; margin-bottom: 1.8rem;
    background: linear-gradient(135deg, rgba(203,166,247,.12), rgba(24,24,37,.85));
    border: 1px solid rgba(203,166,247,.3);
}
.bp-premium-card i.fa-crown { font-size: 1.8rem; color: #cba6f7; flex-shrink: 0; }
.bp-premium-info { flex: 1; min-width: 220px; }
.bp-premium-title { font-weight: 700; color: #f5f5f5; font-size: 1.02rem; margin-bottom: .2rem; }
.bp-premium-sub { font-size: .85rem; color: #a6adc8; }
.bp-premium-btn {
    border: none; border-radius: 10px; padding: .65rem 1.3rem; font-size: .92rem; font-weight: 700;
    cursor: pointer; color: #11111b; white-space: nowrap;
    background: linear-gradient(135deg, #cba6f7, #8a6dff);
    box-shadow: 0 8px 22px rgba(138,109,255,.35);
    transition: transform .15s, box-shadow .15s;
}
.bp-premium-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(138,109,255,.45); }
.bp-premium-btn:disabled { opacity: .55; cursor: default; transform: none; }
.bp-premium-owned { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #a6e3a1; font-size: .95rem; white-space: nowrap; }

.bp-track-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: .9rem; }
.bp-track-title { font-family: 'Cinzel', serif; font-size: 1.15rem; color: #f5f5f5; }
.bp-claim-all {
    display: inline-flex; align-items: center; gap: .5rem; border: none; border-radius: 9px;
    padding: .5rem 1rem; font-size: .85rem; font-weight: 700; cursor: pointer; color: #11111b;
    background: linear-gradient(135deg, #a6e3a1, #94e2d5);
}
.bp-claim-all:disabled { opacity: .5; cursor: default; }

.bp-track {
    display: flex; gap: 0; overflow-x: auto; padding: .6rem .2rem 1rem;
    scrollbar-width: thin; scrollbar-color: rgba(138,109,255,.5) transparent;
}
.bp-track::-webkit-scrollbar { height: 8px; }
.bp-track::-webkit-scrollbar-thumb { background: linear-gradient(90deg, rgba(138,109,255,.5), rgba(201,156,51,.4)); border-radius: 6px; }

.bp-tier { flex: 0 0 148px; display: flex; flex-direction: column; align-items: center; padding: 0 .35rem; position: relative; }
.bp-tier-rail { position: absolute; top: 50%; left: -50%; width: 100%; height: 3px; background: rgba(108,112,134,.25); z-index: 0; }
.bp-tier:first-child .bp-tier-rail { display: none; }
.bp-tier.reached .bp-tier-rail { background: linear-gradient(90deg, var(--accent-rail,#c99c33), #f9e2af); }

.bp-reward-slot {
    position: relative; z-index: 1; width: 100%; min-height: 88px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
    padding: .55rem .4rem; margin-bottom: .5rem; text-align: center;
    background: rgba(24,24,37,.7); border: 1.5px solid rgba(108,112,134,.3); color: #6c7086;
}
.bp-reward-slot i.slot-icon { font-size: 1.35rem; }
.bp-reward-slot .slot-label { font-size: .72rem; line-height: 1.25; color: inherit; }
.bp-reward-slot .slot-coins { font-size: .74rem; font-weight: 700; }
.bp-reward-slot.empty { opacity: .35; }
.bp-reward-slot.premium.locked  { border-color: rgba(203,166,247,.25); color: #9399b2; }
.bp-reward-slot.premium.ready   { border-color: #cba6f7; color: #f5c2e7; background: rgba(203,166,247,.12); cursor: pointer; animation: bpPulse 2.2s infinite; }
.bp-reward-slot.premium.claimed { border-color: rgba(166,227,161,.5); color: #a6e3a1; background: rgba(166,227,161,.08); }
.bp-reward-slot.premium.need-premium { border-color: rgba(203,166,247,.35); color: #cba6f7; }
.bp-reward-slot.free.locked  { border-color: rgba(108,112,134,.3); color: #6c7086; }
.bp-reward-slot.free.ready   { border-color: var(--accent-rail,#c99c33); color: #f9e2af; background: rgba(201,156,51,.12); cursor: pointer; animation: bpPulse 2.2s infinite; }
.bp-reward-slot.free.claimed { border-color: rgba(166,227,161,.5); color: #a6e3a1; background: rgba(166,227,161,.08); }
@keyframes bpPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(249,226,175,.25); } 50% { box-shadow: 0 0 0 6px rgba(249,226,175,.02); } }

/* Флаг «это развилка» — уголок слота, виден пока награда не получена (и локнутой, и готовой к выбору) */
.choice-flag {
    position: absolute; top: 6px; right: 7px; font-size: .68rem; color: var(--primary-rune,#8a6dff);
    filter: drop-shadow(0 0 3px rgba(138,109,255,.7));
}

/* ── Пикер варианта развилки (модалка поверх страницы) ── */
.bp-choice-overlay {
    position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
    background: rgba(10,10,16,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; pointer-events: none; transition: opacity .18s ease; padding: 1rem;
}
.bp-choice-overlay.show { opacity: 1; pointer-events: auto; }
.bp-choice-modal {
    position: relative; width: 100%; max-width: 460px; border-radius: 18px; padding: 1.5rem 1.4rem 1.3rem;
    background: linear-gradient(160deg, rgba(30,30,46,.98), rgba(17,17,27,.98));
    border: 1px solid rgba(138,109,255,.35); box-shadow: 0 30px 70px rgba(0,0,0,.6);
}
.bp-choice-close { position: absolute; top: .8rem; right: .8rem; background: none; border: none; color: #9399b2; font-size: 1.1rem; cursor: pointer; }
.bp-choice-close:hover { color: #f5f5f5; }
.bp-choice-modal-title { font-family: 'Cinzel', serif; font-size: 1.1rem; color: #f5f5f5; margin-bottom: 1rem; display: flex; align-items: center; gap: .55rem; }
.bp-choice-modal-title i { color: var(--primary-rune,#8a6dff); }
.bp-choice-options { display: flex; flex-direction: column; gap: .6rem; }
.bp-choice-option {
    display: flex; align-items: center; gap: .8rem; width: 100%; text-align: left;
    border: 1.5px solid rgba(138,109,255,.25); border-radius: 12px; padding: .75rem .9rem;
    background: rgba(138,109,255,.06); color: #cdd6f4; cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
}
.bp-choice-option:hover { border-color: var(--primary-rune,#8a6dff); background: rgba(138,109,255,.16); transform: translateX(2px); }
.bp-choice-option i { font-size: 1.15rem; color: var(--primary-rune,#8a6dff); flex-shrink: 0; width: 22px; text-align: center; }
.bp-choice-option-label { flex: 1; font-size: .92rem; font-weight: 600; }
.bp-choice-option-coins { font-size: .8rem; font-weight: 700; color: #f9e2af; white-space: nowrap; }

.bp-tier-num {
    position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700;
    background: #1e1e2e; border: 2px solid rgba(108,112,134,.4); color: #9399b2; margin-bottom: .5rem;
}
.bp-tier.reached .bp-tier-num { border-color: var(--accent-rail,#c99c33); color: #f9e2af; }
.bp-tier-xp { font-size: .68rem; color: #6c7086; margin-top: .1rem; white-space: nowrap; }

.bp-empty-state {
    text-align: center; color: #9399b2; padding: 3rem 1.5rem; border-radius: 16px;
    background: rgba(24,24,37,.6); border: 1px dashed rgba(108,112,134,.3);
}
.bp-empty-state i { font-size: 2rem; color: #6c7086; margin-bottom: .7rem; display: block; }

@media (max-width: 640px) {
    .bp-hero-name { font-size: 1.5rem; }
    .bp-tier { flex-basis: 122px; }
}
