/* Icons (Lucide SVGs, see assets/icons.js) */
svg.icon{width:15px;height:15px;flex:0 0 15px;display:inline-block;vertical-align:middle;stroke-width:2.1}
.header nav a svg.icon{width:16px;height:16px;flex-basis:16px}
.tabs button svg.icon,.actions svg.icon{margin-right:2px}
.product .cart svg.icon{width:14px;height:14px}

/* One accent: blue. The close-button hover used to be red. */
.modal-title button:hover{background:#2875ce;color:#fff}
.modal-title button svg{width:16px;height:16px}

/* Header: wallet chip + avatar that opens the profile */
.header .account{display:flex;align-items:center;gap:8px}
.wallet-chip{display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 4px 0 12px;background:#242424;border:1px solid #333;border-radius:12px;font-size:14px;font-weight:700;color:#fff;font-variant-numeric:tabular-nums;line-height:1;transition:border-color .2s ease,background .2s ease}
.wallet-chip:hover{background:#2a2a2a;border-color:#3d3d3d}
.header .account>.wallet-chip{display:inline-flex}
.wallet-chip>svg.icon{width:16px;height:16px;flex:0 0 16px;color:#4d98f1;margin:0}
.wallet-chip>span:not(.wallet-plus){display:block;padding:0 2px 0 0;letter-spacing:.2px}
.wallet-plus{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:linear-gradient(180deg,#3a8ef2,#2470c9);box-shadow:inset 0 1px 0 #ffffff30,0 2px 8px #2875ce40;transition:transform .15s ease,filter .2s ease}
.wallet-plus svg{width:14px;height:14px;stroke-width:3;display:block}
.wallet-chip:hover .wallet-plus{filter:brightness(1.12)}
.wallet-chip:active .wallet-plus{transform:scale(.92)}
.avatar-link{border:1px solid #333}
.avatar-link{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;overflow:hidden;background:#2d2d2d;box-shadow:0 0 0 2px transparent;transition:box-shadow .2s ease,transform .2s ease}
.avatar-link:hover{box-shadow:0 0 0 2px #2875ce;transform:translateY(-1px)}
.avatar-link img{width:100%;height:100%;object-fit:cover;display:block}

/* Link that looks like a regular button */
a.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;background:#333;color:#fff;padding:10px 14px;font-size:14px;font-weight:700;border-radius:8px;line-height:1.2;transition:background .2s ease}
a.btn:hover{background:#3e3e3e}

/* Profile */
.profile-page .profile-head .profile-top{display:flex;align-items:center;justify-content:space-between;gap:16px;height:auto;min-height:100px;padding:0 0 20px}
.profile-page .profile-head h2{display:flex;align-items:center;flex-wrap:nowrap;gap:0;font-size:26px;margin:0;min-width:0}
.profile-page .profile-avatar{width:68px;height:68px;border-radius:12px;overflow:hidden;background:#161616;margin-right:22px;flex:none}
.profile-page .profile-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.profile-page .profile-top .actions{display:flex;gap:8px;flex:none;position:relative;z-index:1}
.profile-page .profile-top .actions>*{height:40px}
.profile-page .tabs button{gap:8px;height:40px;padding:0 14px}
.profile-page .tabs button svg.icon{width:14px;height:14px;flex-basis:14px;margin:0}
.profile-body{margin-top:24px}

.profile-general{display:grid;grid-template-columns:1fr 1fr 2fr;gap:20px}
.profile-general .stat h3{font-size:16px;margin:0 0 6px}
.profile-general .stat p{margin:0;color:#8f8f8f;font-size:14px}
.profile-general .copyable{display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.profile-general .copyable svg{width:13px;height:13px;opacity:.6}
.profile-general .copyable:hover{color:#fff}
.profile-general .balance-box{background:linear-gradient(100deg,#252525 10%,#1f4474);border-color:#2b4466}
.profile-general .balance-value{font-family:Unbounded,Arial,sans-serif;font-size:26px!important;font-weight:700;color:#fff!important;margin:6px 0 20px!important}
.profile-general .balance-box .actions{display:flex;flex-wrap:wrap;gap:8px}
.profile-general .balance-box .actions>*{height:38px}

.stats-note{color:#8f8f8f;font-size:14px;margin:0 0 16px}
.stats-summary{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:16px}
.stats-summary .stat{padding:18px;min-height:0}
.stats-summary .stat small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.stats-summary .stat hr{margin:12px 0}
.stats-details{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}
.stats-details .stat{padding:18px;min-height:0}
.stats-details .stat strong{font-size:16px}
.stats-details .stat hr{margin:12px 0 18px}
.stats-details .stat p{text-align:center;color:#8f8f8f;font-size:16px;margin:0 0 6px}
.stats-details .stat p b{color:#fff}
.stats-filters{display:flex;gap:10px;margin-top:20px}
.stats-filters .dropdown-toggle{background:#2d2d2d;font-weight:700;font-size:13px}
.stats-filters .dropdown-item.selected,.dropdown-item.selected{background:#2875ce;color:#fff}

.profile-page .empty{background:#262626;border:1px solid #303030;border-radius:12px;padding:26px}
.profile-page .empty h3{margin:0 0 10px}
.profile-page .empty .actions{display:flex;gap:10px;margin-top:18px}
.profile-login{max-width:560px;margin:40px auto}

.history-list{display:flex;flex-direction:column;gap:8px}
.history-row{display:flex;align-items:center;gap:14px;background:#262626;border:1px solid #303030;border-radius:10px;padding:14px 16px}
.history-row>div{flex:1;min-width:0}
.history-row b{display:block;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-row small{color:#8a8a8a;font-size:12px}
.history-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:#1f3550;color:#6fb0ff;flex:none}
.history-icon svg{width:17px;height:17px}
.history-amount{font-family:Unbounded,Arial,sans-serif;font-weight:700;font-size:14px;white-space:nowrap}
.history-amount.plus{color:#4d98f1}
.history-amount.minus{color:#bdbdbd}

/* Wallet modal (Пополнение / Промокод) */
dialog.wallet-modal{width:min(600px,calc(100% - 24px));padding:24px;background:#2d2d2d;border-radius:14px}
.wallet-title{margin-bottom:22px}
.seg{display:inline-flex;gap:4px;padding:4px;background:#222;border-radius:10px}
.modal-title .seg button{background:transparent;color:#aaa;font-weight:600;padding:9px 12px;height:auto;width:auto;display:inline-flex;font-size:14px}
.modal-title .seg button:focus-visible{outline:2px solid #2875ce;outline-offset:1px}
.modal-title .seg button:hover{background:#2e2e2e;color:#fff}
.modal-title .seg button.selected{background:#f2f2f2;color:#151515}
.wallet-modal .modal-title button[aria-label]{width:42px;height:42px;border-radius:10px;background:#383838}
.wallet-modal .field{margin:0 0 16px}
.wallet-modal .field span{font-weight:700;color:#e8e8e8;font-size:16px;margin-bottom:12px}
.wallet-modal .field input{height:54px;background:#383838;border:1px solid transparent;border-radius:10px;padding:0 14px;font-size:16px;font-weight:600;color:#fff;width:100%;letter-spacing:.5px}
.wallet-modal .field input:focus{outline:none;border-color:#2875ce;box-shadow:0 0 0 3px #2875ce33}
.wallet-modal .field input::placeholder{color:#7b7b7b}
.promo-help{background:#383838;border:0;border-radius:10px;margin:0 0 20px}
.promo-help summary{padding:16px 16px;font-size:15px}
.promo-help summary>svg{width:17px;height:17px;color:#bbb;flex:none}
.promo-help summary>span{flex:1}
.promo-help .detail-body{margin:0 12px 12px;padding:14px!important;background:#333;border-radius:9px;color:#bcbcbc;font-size:14px;line-height:1.55}
.promo-help .detail-body a{color:#fff;font-weight:700;text-decoration:underline;text-underline-offset:2px}
.promo-help .detail-body a:hover{color:#4d98f1}
.wallet-modal button.full{height:56px;border-radius:10px;font-size:17px}
.wallet-modal button.primary:disabled{background:#383838;color:#8a8a8a;cursor:default}
.amount-chips{display:flex;gap:8px;flex-wrap:wrap;margin:-4px 0 18px}
.amount-chips button{background:#383838;font-size:13px;padding:8px 12px}
.amount-chips button:hover{background:#2875ce}
.wallet-modal .payments{margin:0 0 18px}
.wallet-modal .payments>p{grid-column:1/-1;margin:0;padding:14px;background:#333;border-radius:10px;color:#9a9a9a}

/* Shop: real sponsors top */
.winner-avatar img,.mini-avatar img{width:100%;height:100%;object-fit:cover;display:block;border-radius:inherit}
.winner-avatar,.mini-avatar{overflow:hidden;color:#5a8fc9}
.winner-avatar svg{width:28px;height:28px}
.mini-avatar svg{width:13px;height:13px}
.winner-empty b{color:#bbb}
.sponsor-list .row-empty b{color:#7c7c7c;font-weight:500}
.sponsor-list .row-empty .price{color:#666}
.purchases-track i{background:#4d9fff}
.purchases-empty{padding-left:14px}
.purchases:has(.purchases-empty) .purchases-track{animation:none}

@media(max-width:1000px){
 .stats-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
 .profile-general{grid-template-columns:1fr 1fr}
 .profile-general .balance-box{grid-column:span 2}
}
@media(max-width:600px){
 .wallet-chip{height:36px;font-size:12px;padding:0 3px 0 9px;gap:7px}
 .wallet-plus{width:28px;height:28px}
 .avatar-link{width:36px;height:36px}
 .avatar-link{width:34px;height:34px}
 .profile-page .profile-head .profile-top{flex-direction:column;align-items:flex-start;padding-bottom:14px}
 .profile-page .profile-head h2{font-size:16px}
 .profile-page .profile-avatar{width:48px;height:48px;margin-right:12px}
 .profile-page .tabs button{height:36px;padding:0 10px}
 .stats-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .stats-details{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-general{grid-template-columns:1fr}
 .profile-general .balance-box{grid-column:auto}
 dialog.wallet-modal{padding:16px}
}

/* Smooth accordions (bound for every <details> by live.js) */
details::details-content{transition:none!important}
summary::after{transition:transform .32s cubic-bezier(.4,0,.2,1)}
details.is-closing summary::after{transform:rotate(45deg)!important}

/* Home: real servers */
.server-cards{display:flex;flex-direction:column;gap:12px;position:relative;z-index:1}
.server-card.is-offline{opacity:.7}
.server-card .server-map{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:150px}
.server-card .server-queue{color:#e6c35c;font-weight:700}
.server-card .progress i{display:block;height:100%;transition:width .6s ease}
.dot.off{background:#666!important;box-shadow:0 0 0 3px #3a3a3a!important}
.server-switch{margin:4px 0 14px}
.server-switch button.selected{background:#f2f2f2;color:#151515}
code.connect-cmd{display:block;margin-top:10px;padding:12px;background:#222;border-radius:8px;font-size:14px;user-select:all}

/* Shop: server picker + item cards */
#shopServerDropdown .dropdown-toggle{gap:8px}
#shopServerDropdown .dropdown-item .dot{width:8px;height:8px;margin:0;flex:none}
#shopServerDropdown .dropdown-item small{margin-left:auto}
.product-item .product-art{position:relative;display:grid;place-items:center}
.product-item .product-img{width:150px;height:150px;object-fit:contain;filter:drop-shadow(0 10px 18px #0007);transition:transform .25s ease}
.product-item:hover .product-img{transform:scale(1.06) rotate(-2deg)}
.product-icon{display:grid;place-items:center;width:90px;height:90px;border-radius:20px;background:#1f3550;color:#6fb0ff}
.product-icon svg{width:40px;height:40px;flex-basis:40px}
.product-amount{position:absolute;right:8px;top:8px;background:#1f3550;color:#9fcbff;font-size:12px;font-weight:800;padding:3px 8px;border-radius:6px}
.product .price s{color:#777;margin-right:4px}
.shop-item-modal .shop-item-art{display:grid;place-items:center;height:190px;margin-bottom:12px;background:radial-gradient(circle,#26486c55,transparent 70%)}
.shop-item-img{width:170px;height:170px;object-fit:contain}
.shop-item-modal .specs{height:auto!important}
.shop-item-modal .purchase-row{margin-top:14px}

/* Profile cart = real orders */
.order-art{background:#262626!important;overflow:hidden}
.order-art .order-img{width:34px;height:34px;object-fit:contain}
.order-art .product-icon{width:38px;height:38px;border-radius:9px}
.order-art .product-icon svg{width:18px;height:18px}
.order-badge{font-size:12px;font-weight:700;padding:5px 10px;border-radius:20px;background:#333;color:#bbb;white-space:nowrap}
.order-badge.pending{background:#3a3320;color:#e6c35c}
.order-badge.done{background:#1f3550;color:#7fb8ff}
.ban-banner{display:flex;align-items:center;gap:14px;margin-top:16px;padding:16px 18px;border-radius:10px;background:#2a2226;border:1px solid #4a2a30;color:#ffb3ba}
.ban-banner small{display:block;color:#c99}
.ban-banner svg{width:20px;height:20px}
.product .product-icon svg.icon{width:40px;height:40px;flex-basis:40px}
.order-art .product-icon svg.icon{width:18px;height:18px;flex-basis:18px}
.shop-item-modal .specs .row{display:flex;justify-content:space-between;align-items:center;gap:16px}
.shop-item-modal .specs .row>*{width:auto;border:0;flex:none}
.shop-item-modal .specs .row>b{text-align:right;flex:1}

/* Payment methods with logos */
.wallet-modal .payments button{background:#383838;height:auto;min-height:72px;border:2px solid transparent;border-radius:10px;display:grid;place-items:center;padding:14px;transition:border-color .2s ease,background .2s ease}
.wallet-modal .payments button:hover{background:#404040}
.wallet-modal .payments button.selected{background:#1f2d40;border-color:#2875ce;color:#fff}
.provider-logo{display:block;height:26px;width:auto;max-width:100%;object-fit:contain}
.maint-banner{display:flex;align-items:center;justify-content:center;gap:10px;padding:10px 16px;background:#1f3550;color:#cfe3ff;font-size:13px;font-weight:600;text-decoration:none;flex-wrap:wrap;text-align:center}
.maint-banner b{color:#fff}
.maint-banner:hover{background:#244068}

/* ---------- Roulette ---------- */
.rl-live{display:flex;width:100vw;position:relative;left:50%;margin-left:-50vw;height:104px;border-top:1px solid #303030;border-bottom:1px solid #303030;margin-top:-10px;margin-bottom:34px;background:#1d1d1d;overflow:hidden}
.rl-live-tag{flex:0 0 42px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-right:1px solid #2c2c2c;color:#ff4757;font:800 10px Unbounded,Arial,sans-serif}
.rl-live-tag span:last-child{writing-mode:vertical-rl;transform:rotate(180deg)}
.rl-live-tag .dot{width:7px;height:7px;border-radius:50%;background:#ff4757;box-shadow:0 0 0 4px #ff475733;margin:0;animation:live-dot-pulse 1.6s ease-in-out infinite}
.rl-live-viewport{flex:1;min-width:0;overflow:hidden}
.rl-live-track{display:flex;height:100%;width:max-content}
.rl-live-track.rl-scroll{animation:rl-scroll 40s linear infinite}
.rl-live-track:hover{animation-play-state:paused}
@keyframes rl-scroll{to{transform:translateX(-50%)}}
.rl-live-empty{display:flex;align-items:center;height:100%;padding:0 24px;color:#777;font-size:13px}
.rl-drop{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;width:236px;height:100%;padding:12px 14px 12px 18px;border-right:1px solid #2c2c2c;background:linear-gradient(110deg,#202020 40%,color-mix(in srgb,var(--rarity) 22%,#202020));overflow:hidden}
.rl-drop:before{content:'';position:absolute;left:0;right:0;top:0;height:3px;background:var(--rarity)}
.rl-drop>div{min-width:0;display:flex;flex-direction:column;gap:2px}
.rl-drop b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rl-drop small{font-size:12px;color:#9a9a9a}
.rl-drop em{font-style:normal;font-size:11px;color:#6fb0ff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rl-drop-img{width:66px;height:66px;object-fit:contain;flex:none;filter:drop-shadow(0 6px 10px #0008)}
.rl-drop .rl-coin{width:56px;height:56px}

.rl-page{text-align:center}
.rl-page h1{margin-bottom:6px}
.rl-status{color:#9a9a9a;margin:0 0 18px;min-height:22px;font-variant-numeric:tabular-nums}
.rl-actions{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:26px}
.rl-actions button{height:42px;padding:0 18px;display:inline-flex;align-items:center;gap:8px;font-size:15px}
.rl-spins{display:inline-flex;align-items:center;gap:6px;height:42px;padding:0 14px;border-radius:8px;background:#1f3550;color:#9fcbff;font-weight:700;font-size:14px}
.rl-spins[hidden]{display:none}
.rl-reel{position:relative;max-width:900px;margin:0 auto;height:150px;border-radius:12px;background:#1a1a1a;overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 12% 88%,transparent)}
.rl-marker{position:absolute;left:50%;top:0;bottom:0;width:3px;margin-left:-1.5px;background:#4d98f1;z-index:2;box-shadow:0 0 14px #4d98f1}
.rl-marker:before,.rl-marker:after{content:'';position:absolute;left:50%;transform:translateX(-50%);border:8px solid transparent}
.rl-marker:before{top:0;border-top-color:#4d98f1}
.rl-marker:after{bottom:0;border-bottom-color:#4d98f1}
.rl-track{display:flex;gap:10px;padding:15px 0;height:100%;width:max-content;will-change:transform}
.rl-card{position:relative;flex:none;width:112px;border-radius:10px;background:linear-gradient(180deg,#262626,color-mix(in srgb,var(--rarity) 18%,#222));display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 6px;overflow:hidden}
.rl-card:before{content:'';position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--rarity)}
.rl-card small{font-size:12px;font-weight:700;color:#ddd;white-space:nowrap}
.rl-img{width:72px;height:72px;object-fit:contain;filter:drop-shadow(0 6px 10px #0008)}
.rl-coin{display:grid;place-items:center;border-radius:50%;background:#1f3550;color:#6fb0ff}
.rl-coin svg{width:45%;height:45%}
.rl-img.rl-coin{width:64px;height:64px}
.rl-card.rl-win{box-shadow:0 0 0 2px var(--rarity),0 0 30px color-mix(in srgb,var(--rarity) 60%,transparent);transform:scale(1.06);transition:transform .3s ease,box-shadow .3s ease}
.rl-loot{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:14px;max-width:1100px;margin:30px auto 0}
.rl-loot-card{width:auto;padding:26px 10px 14px;gap:4px}
.rl-loot-card b{font-size:13px;line-height:1.25;min-height:32px;display:flex;align-items:center;text-align:center}
.rl-loot-card small{color:#9a9a9a;font-weight:500}
.rl-loot-card .rl-img{width:84px;height:84px}
.rl-chance{position:absolute;top:8px;right:8px;font-size:11px;font-weight:800;color:#fff;background:color-mix(in srgb,var(--rarity) 55%,#1b1b1b);padding:2px 7px;border-radius:6px}
.rl-win-modal{display:grid;place-items:center;height:170px;margin-bottom:10px;background:radial-gradient(circle,color-mix(in srgb,var(--rarity) 35%,transparent),transparent 70%)}
.rl-win-img{width:140px;height:140px;object-fit:contain}
.rl-win-modal .rl-coin{width:110px;height:110px}
.rl-packs{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin-bottom:16px}
.rl-pack{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:16px;background:#383838;border:2px solid transparent;border-radius:12px;text-align:left}
.rl-pack:hover{background:#404040}
.rl-pack.selected{background:#1f2d40;border-color:#2875ce}
.rl-pack b{font-size:15px}
.rl-pack-price{font-family:Unbounded,Arial,sans-serif;font-size:20px;font-weight:700}
.rl-pack small{color:#9a9a9a;font-size:12px}
.rl-pack em{position:absolute;top:10px;right:10px;font-style:normal;font-size:11px;font-weight:800;background:#2875ce;color:#fff;padding:2px 7px;border-radius:6px}
@media(max-width:600px){.rl-card{width:92px}.rl-img{width:58px;height:58px}.rl-reel{height:132px}.rl-loot{grid-template-columns:repeat(2,1fr)}}
.avatar-link{border-radius:12px}
.server-joining{display:flex;align-items:center;gap:6px;margin-top:8px;font-size:12px;color:#8fc0ff;font-weight:600}
.joining-dot{width:7px;height:7px;border-radius:50%;background:#4d98f1;animation:joinpulse 1.4s ease-in-out infinite}
@keyframes joinpulse{50%{opacity:.3}}
.servers-joining{color:#8fc0ff}
.rm-map{text-align:center}
.rm-image{display:block;border-radius:12px;overflow:hidden;background:#161616;max-width:900px;margin:0 auto}
.rm-image img{display:block;width:100%;height:auto}
.rm-meta{display:flex;justify-content:space-between;align-items:center;gap:12px;max-width:900px;margin:14px auto 0;flex-wrap:wrap}
.rm-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:50px 20px;color:#8a8a8a}
.rm-empty svg{width:36px;height:36px;color:#4d98f1}
.server-cards{z-index:5}
.rm-empty svg.icon{width:36px;height:36px;flex-basis:36px}
.rl-pack em{position:static;order:-1;align-self:flex-start;margin-bottom:2px}
.server-joining.is-zero{color:#8a8a8a}.server-joining.is-zero .joining-dot{background:#666;animation:none}

/* ---------- Wipe calendar (BloodSchedule) ---------- */
.calendar.wc-hidden{display:none}
.calendar.wc{display:grid;grid-template-columns:minmax(0,2.2fr) minmax(280px,1fr);gap:16px;height:auto!important;margin:55px 0 58px}
.calendar.wc>*{height:auto!important;padding:0!important;background:none}
.wc-cal,.wc-side{background:#222;border:1px solid #2c2c2c;border-radius:12px;padding:20px!important}
.wc-head{display:flex;align-items:center;gap:10px;margin-bottom:14px;flex-wrap:wrap}
.wc-head h2{font-size:18px!important;margin:0!important;min-width:150px;text-align:center}
.wc-nav{width:34px;height:34px;padding:0;display:grid;place-items:center;background:#2d2d2d;border-radius:8px}
.wc-nav svg{width:16px;height:16px}
.wc-legend{margin-left:auto;display:flex;gap:16px;font-size:12px;font-weight:700;color:#b8b8b8}
.wc-legend span{display:inline-flex;align-items:center;gap:7px}
.wc-legend i{width:12px;height:12px;border-radius:3px}
.wc-legend i.global{background:#3b82f6}.wc-legend i.wipe{background:#8fb8fa66}
.wc-week{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:6px;font-size:11px;font-weight:700;color:#666;text-align:center}
.wc-week .we{color:#b8b8b8}
.wc-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.wc-day{position:relative;height:74px;padding:7px 9px;border-radius:8px;background:#2a2a2a;border:1px solid #2f2f2f;text-align:left;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;transition:border-color .15s ease,transform .15s ease}
.wc-day:hover{border-color:#4d98f1;transform:translateY(-1px)}
.wc-day b{font-size:17px;color:#b8b8b8;font-family:Inter,Arial,sans-serif}
.wc-day i{position:absolute;top:7px;right:8px;font-style:normal;font-size:10px;color:#b8b8b8}
.wc-day small{font-size:10px;font-weight:800;letter-spacing:.3px}
.wc-day.off{background:#1d1d1d}.wc-day.off b{color:#555}
.wc-day.global{background:#3b82f6;border-color:#3b82f6}.wc-day.global b,.wc-day.global small,.wc-day.global i{color:#fff}
.wc-day.global.off{background:#3b82f659}
.wc-day.wipe{background:color-mix(in srgb,#8fb8fa 22%,#2a2a2a)}.wc-day.wipe b,.wc-day.wipe small{color:#8fb8fa}
.wc-day.wipe.off{background:color-mix(in srgb,#8fb8fa 10%,#1d1d1d)}
.wc-day.today{border-color:#777}
.wc-day.sel{border-color:#4d98f1;box-shadow:0 0 0 1px #4d98f1}
.wc-side{display:flex;flex-direction:column;gap:6px}
.wc-cap{font-size:11px;font-weight:700;color:#666;text-transform:uppercase;letter-spacing:.4px;margin-top:6px}
.wc-side h3{font-size:22px;margin:2px 0 0}
.wc-side>p{margin:0 0 8px;font-size:13px}
.wc-card{border-radius:10px;padding:14px 16px;background:#2a2a2a;border-left:3px solid #444;display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
.wc-card b{font-size:15px}.wc-card span{font-size:13px;color:#b8b8b8}
.wc-card.global{border-left-color:#3b82f6;background:linear-gradient(90deg,#3b82f62e,#2a2a2a)}
.wc-card.wipe{border-left-color:#8fb8fa;background:linear-gradient(90deg,#8fb8fa1f,#2a2a2a)}
.wc-card.none span{color:#777}
.wc-up{display:flex;flex-direction:column;gap:6px}
.wc-up-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border-radius:9px;background:#2a2a2a;border-left:3px solid #8fb8fa;text-align:left}
.wc-up-row.global{border-left-color:#3b82f6}
.wc-up-row.sel{box-shadow:0 0 0 1px #4d98f1}
.wc-up-row b{display:block;font-size:13px}.wc-up-row small{font-size:11px;font-weight:700;color:#8fb8fa}
.wc-up-row.global small{color:#6aa5ff}
.wc-up-row>span{font-size:12px;color:#b8b8b8;white-space:nowrap}
@media(max-width:900px){.calendar.wc{grid-template-columns:1fr}.wc-day{height:56px;padding:5px 6px}.wc-day b{font-size:14px}.wc-day i{display:none}.wc-legend{margin-left:0;width:100%}}

/* ---------- Privileges ---------- */
.priv-crown{display:grid;place-items:center;width:110px;height:110px;border-radius:24px;background:linear-gradient(135deg,#1f3550,#2b5d9b);color:#cfe3ff;box-shadow:0 10px 30px #2875ce33}
.priv-crown svg{width:56px;height:56px;stroke-width:1.6}
.priv-card .product-art{display:grid;place-items:center}
.priv-modal .priv-top{display:flex;gap:16px;align-items:flex-start;margin-bottom:14px}
.priv-modal .priv-top .priv-crown{width:84px;height:84px;flex:none}
.priv-modal .priv-top .priv-crown svg{width:42px;height:42px}
.priv-img{width:110px;height:110px;object-fit:contain;flex:none}
.priv-modal .priv-top p{margin:8px 0 0;color:#bdbdbd;font-size:14px;line-height:1.5}
.priv-badge{display:inline-block;margin:0 6px 4px 0;padding:4px 9px;border-radius:6px;background:#1f3550;color:#9fcbff;font-size:12px;font-weight:800}
.priv-badge.muted-badge{background:#333;color:#bbb}
.priv-features{list-style:none;margin:0 0 14px;padding:12px 14px;background:#262626;border-radius:10px;display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
.priv-features li{display:flex;gap:8px;align-items:flex-start;font-size:13px;color:#ddd}
.priv-features svg{width:15px;height:15px;color:#4d98f1;flex:none;margin-top:2px}
.priv-sub{margin:0 0 8px;font-size:14px}
.priv-kit-tabs{margin-bottom:10px}
.priv-kit-tabs button{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.priv-kit-tabs button small{font-size:10px;font-weight:600;opacity:.75}
.priv-kit-tabs button.selected{background:#2875ce;color:#fff}
.priv-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:8px;max-height:220px;overflow:auto;margin-bottom:14px}
.priv-item{position:relative;aspect-ratio:1;border-radius:8px;background:#262626;display:grid;place-items:center}
.priv-item-img{width:78%;height:78%;object-fit:contain}
.priv-item .product-icon{width:70%;height:70%;border-radius:8px}
.priv-item small{position:absolute;right:5px;bottom:3px;font-size:11px;font-weight:800;color:#fff;text-shadow:0 1px 3px #000}
dialog.priv-dialog{width:min(620px,calc(100% - 24px))}
@media(max-width:600px){.priv-features{grid-template-columns:1fr}}
.calendar.wc>.wc-cal,.calendar.wc>.wc-side{padding:20px!important;background:#222!important}
.wc-head{row-gap:8px}
.wc-legend{flex-wrap:wrap;justify-content:flex-end}

/* ---------- Privilege window (v2) ---------- */
dialog.priv-dialog{width:min(560px,calc(100% - 24px));padding:20px}
.pv{display:flex;flex-direction:column;gap:14px}
.pv-specs{max-height:200px;overflow:auto;border:1px solid #373737;border-radius:10px}
.pv-row{display:grid;grid-template-columns:1fr 110px;border-bottom:1px solid #373737}
.pv-row:last-child{border-bottom:0}
.pv-row span{padding:11px 14px;color:#9a9a9a;font-size:14px}
.pv-row b{padding:11px 14px;border-left:1px solid #373737;font-size:14px}
.pv-desc{margin:0;color:#bdbdbd;font-size:14px;line-height:1.5}
.pv-tabs{display:grid;grid-template-columns:repeat(var(--n),1fr);gap:4px;padding:4px;background:#262626;border-radius:12px;overflow-x:auto}
.pv-tabs button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 6px;background:transparent;color:#8a8a8a;border-radius:9px;min-width:0}
.pv-tabs button b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.pv-tabs button small{font-size:11px;font-weight:500;opacity:.8}
.pv-tabs button:hover{color:#ddd}
.pv-tabs button.selected{background:#f2f2f2;color:#151515}
.pv-items{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;max-height:310px;overflow:auto}
.pv-item{position:relative;aspect-ratio:1;border-radius:8px;background:#383838;display:grid;place-items:center;overflow:hidden}
.pv-item-img{width:72%;height:72%;object-fit:contain;margin-top:-10px;filter:drop-shadow(0 4px 6px #0006)}
.pv-item .product-icon{width:60%;height:60%;border-radius:8px;margin-top:-10px}
.pv-item small{position:absolute;left:0;right:0;bottom:5px;text-align:center;font-size:13px;font-weight:800;color:#fff}
.pv-empty{background:repeating-linear-gradient(135deg,#2e2e2e 0 6px,#353535 6px 12px)}
.pv-period .dropdown-toggle{height:48px;padding:0 14px;background:#383838;font-weight:700;font-size:14px}
.pv-period .dropdown-panel{width:100%}
.pv-period .dropdown-item{justify-content:space-between}
.pv-buy{display:grid;grid-template-columns:42px 1fr 42px auto;gap:8px;align-items:center}
.pv-step{height:42px;padding:0;background:#383838;font-size:18px}
.pv-buy #qty{text-align:center;font-size:15px}
.pv-pay{height:42px;padding:0 18px;background:#f2f2f2;color:#151515;font-weight:800;white-space:nowrap}
.pv-pay:hover{background:#fff}
@media(max-width:600px){.pv-items{grid-template-columns:repeat(4,1fr)}.pv-buy{grid-template-columns:38px 1fr 38px;}.pv-pay{grid-column:1/-1}}
/* shop: big top-row cards + hover glow chosen in the admin */
.privilege-grid.big-row{display:flex;flex-wrap:wrap;gap:20px}
.privilege-grid.big-row>.product{flex:1 1 calc((100% - (var(--cols,4) - 1) * 20px) / var(--cols,4));min-width:0}
.privilege-grid .big-card .product-art{height:192px}
.privilege-grid .big-card .product-art img{max-width:100%;max-height:186px;width:auto;height:auto;object-fit:contain}
/* glow only on the picture, instantly — no outline or shadow around the card */
.product.has-glow,.product.has-glow .product-art img,.product.has-glow .product-art .sprite{transition:none!important}
.product.has-glow:hover{box-shadow:none!important}
.product.has-glow:hover .product-art img,.product.has-glow:hover .product-art .sprite{filter:drop-shadow(0 0 12px var(--glow)) drop-shadow(0 0 26px color-mix(in srgb,var(--glow) 55%,transparent))}
@media(max-width:600px){.privilege-grid.big-row{gap:12px}.privilege-grid.big-row>.product{flex-basis:calc(50% - 6px)}}
.kit-grid:first-child{margin-top:0}
.priv-crown .icon,.priv-crown svg{width:46px!important;height:46px!important}
/* no blue glow inside product cards */
.priv-crown,.product-icon{box-shadow:none!important}
/* language button: same rounded square as the Telegram / Discord / VK buttons */
footer .lang-switch .dropdown-toggle{width:50px;height:50px;border-radius:8px;background:#343434}
footer .lang-switch .dropdown-toggle:hover{background:#414141}
footer .lang-switch .dropdown-toggle .fi.lang-flag{width:24px;height:18px;border-radius:3px}
@media(max-width:600px){footer .lang-switch .dropdown-toggle{width:43px;height:43px}}
/* roulette turned off in the admin panel */
.no-roulette .header nav a[href="#roulette"],.no-roulette [onclick*="go('roulette')"]{display:none!important}
/* user agreement / privacy policy pages */
.legal-doc{max-width:860px;margin:0 auto;padding:32px 40px;line-height:1.65}
.legal-doc h1{font-size:28px;margin:0 0 18px}
.legal-doc h2{font-size:18px;margin:26px 0 10px}
.legal-doc p{font-size:14px;color:#c9ccd2;margin:0 0 10px}
.legal-doc ul{margin:0 0 12px;padding-left:20px}
.legal-doc li{font-size:14px;color:#c9ccd2;margin:4px 0}
.legal-doc a{color:#6fb0ff;word-break:break-all}
.legal-switch{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:18px 0 0}
.legal-switch .btn{display:inline-flex;gap:8px;align-items:center;padding:10px 14px;border-radius:8px;background:#2d2d2d;font-weight:700;font-size:13px}
@media(max-width:600px){.legal-doc{padding:20px 16px}.legal-doc h1{font-size:22px}}
/* cookie notice */
.cookie-bar{position:fixed;left:50%;bottom:20px;z-index:50;display:flex;align-items:center;gap:14px;width:min(760px,calc(100% - 24px));padding:14px 16px;background:#262626;border:1px solid #3a3a3a;border-radius:12px;box-shadow:0 16px 50px #000a;transform:translate(-50%,140%);opacity:0;transition:transform .35s ease,opacity .35s ease}
.cookie-bar.show{transform:translate(-50%,0);opacity:1}
.cookie-bar p{flex:1;margin:0;font-size:13px;line-height:1.45;color:#cfd2d8}
.cookie-bar a{color:#6fb0ff;text-decoration:underline}
.cookie-bar .cookie-ico{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#1f3550;color:#9cc8ff;font-size:20px}
.cookie-bar .cookie-ico svg{width:20px;height:20px}
.cookie-bar button{flex:none;padding:10px 18px}
@media(max-width:600px){.cookie-bar{flex-wrap:wrap;bottom:12px}.cookie-bar p{flex-basis:calc(100% - 52px)}.cookie-bar button{width:100%}}
/* pictures sit on the bottom edge of their cards (no empty strip below) */
@media(min-width:601px){
 .bonus-person{bottom:-44px!important}
 .feature .support-person{width:285px;height:285px;bottom:-32px;right:-18px}
 .prediction-card .prediction-person{width:285px;height:285px;bottom:-22px;right:-64px}
 .advantages .adv .adv-art,.advantages .adv.selected .adv-art,.advantages .adv.edge .adv-art{bottom:-6px}
 .advantages .adv-anticheat .adv-art,.advantages .adv-anticheat.selected .adv-art{bottom:40px}
}
/* advantage cards: the card colour fades over the bottom of the picture */
.adv{--adv-bg:#3b4564}.adv-anticheat{--adv-bg:#504067}.adv-clans{--adv-bg:#345679}.adv-fps{--adv-bg:#366445}.adv-rewards{--adv-bg:#314c69}
.adv::after{content:'';position:absolute;left:0;right:0;bottom:0;height:80px;background:linear-gradient(to top,var(--adv-bg) 8%,transparent);pointer-events:none;z-index:2}
/* ---------- top-up bonuses ---------- */
.bonus-sub{margin:0 0 12px;font-size:13px;line-height:1.35;color:#9a9a9a}
.bonus-table{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bonus-table span{display:grid;place-items:center;height:48px;border-radius:10px;font-weight:800;font-size:15px}
.bonus-from{background:#343434;color:#eee}
.bonus-pct{background:linear-gradient(135deg,#7a5442,#8a604a);color:#fff}
.bonus-box .primary{margin-top:16px}
.bonus-modal{width:min(380px,calc(100% - 28px))!important}
/* top-up window */
.input-suffix{position:relative}
.input-suffix input{padding-right:46px}
.input-suffix i{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-style:normal;font-size:12px;font-weight:800;color:#aaa;background:#454545;border-radius:5px;padding:3px 6px}
.field-hint{margin:-10px 0 14px;font-size:12px;color:#8d8d8d;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.field-hint.warn{color:#e6b45c}.field-hint.ok{color:#9fd8a8}
.field-hint img{width:18px;height:18px;border-radius:4px}
.topup-sum{margin:6px 0 14px}
.topup-line{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:5px 0;font-size:15px}
.topup-line b{font-size:15px}
.bonus-link{padding:0;background:none;border:0;border-bottom:1px dotted #f0a03a;border-radius:0;color:#f0a03a;font:inherit;font-weight:700;cursor:pointer}
.bonus-link:hover{background:none;color:#ffb85c}
.bonus-val.on{color:#f0a03a}
.credit-label{border-bottom:1px dotted #777}
.bonus-inline{display:grid;grid-template-rows:0fr;transition:grid-template-rows .25s ease}
.bonus-inline>div{overflow:hidden}
.bonus-inline.open{grid-template-rows:1fr}
.bonus-inline .bonus-sub{margin:8px 0 8px}
.bonus-inline .bonus-table{gap:6px;margin-bottom:8px}
.bonus-inline .bonus-table span{height:36px;font-size:13px;border-radius:8px}
.topup-actions{display:flex;gap:10px;align-items:stretch}
.topup-actions .primary{flex:1;min-height:52px;font-size:16px}
.gift-toggle{flex:none;width:56px;min-height:52px;padding:0;display:grid;place-items:center;border-radius:10px;background:#343434;color:#cfcfcf;transition:background .15s ease,color .15s ease}
.gift-toggle:hover,.gift-toggle.active{background:#2875ce;color:#fff}
.gift-toggle .icon,.gift-toggle svg{width:20px;height:20px}
/* every close cross turns red on hover */
.modal-title>button:hover,.modal-title>button:focus-visible{background:#e5484d!important;color:#fff!important}
/* payment method buttons without a logo (Platega: СБП, cards, crypto) */
.payments button:not(.has-logo){display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center}
.payments button:not(.has-logo) b{margin:0}
.payments button:not(.has-logo) svg{width:22px!important;height:22px!important;color:#6fb0ff}
.payments button.selected:not(.has-logo){background:#1f3550;box-shadow:inset 0 0 0 2px #2875ce}
/* payment method cards */
.payments.pay-methods{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pay-method{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:flex-start!important;gap:2px!important;text-align:left!important;min-height:112px;padding:14px!important;border-radius:14px;background:#2b2b2b;color:#f2f2f2;border:0;box-shadow:none!important;transition:background .15s ease}
.pay-method:hover{background:#333}
.pay-method .pm-top{display:flex;justify-content:space-between;align-items:flex-start;width:100%;margin-bottom:10px}
.pay-method .pm-logo{display:flex;align-items:center;height:30px;max-width:110px}
.pay-method .pm-logo img{max-height:30px;max-width:110px;width:auto;object-fit:contain;display:block}
.pay-method .pm-logo svg{width:26px!important;height:26px!important;color:#6fb0ff}
.pay-method .pm-cur{font-size:12px;font-weight:800;padding:8px 10px;border-radius:9px;background:#3a3a3a;color:#9a9a9a}
.pay-method b{font-size:17px;font-weight:800;margin:0!important;color:inherit}
.pay-method small{font-size:13px;color:#8d8d8d}
.pay-method.selected{background:#f2f2f2!important;color:#151515}
.pay-method.selected .pm-cur{background:#151515;color:#fff}
.pay-method.selected small{color:#6d6d6d}
@media(max-width:600px){.pay-method{min-height:100px;padding:12px!important}.pay-method b{font-size:15px}}
/* product sale: green price, «% 60%» badge, «Скидка …, экономия …» tag on hover */
.price .sale-new{color:#4cd964;font-weight:800}
.price s{color:#8a8a8a}
.product-art{position:relative}
.sale-badge{position:absolute;top:0;left:0;z-index:3;display:inline-flex;align-items:center;gap:5px;padding:6px 9px;border-radius:9px;background:#2f4a2f;color:#5fe07a;font-size:13px;font-weight:800;line-height:1}
.sale-badge svg{width:16px!important;height:16px!important;color:#0f1f10;fill:#5fe07a}
.sale-tip{position:absolute;top:-62px;left:-30px;z-index:4;padding:9px 13px;border-radius:9px;background:#3d5a37;color:#6ff08a;font-size:12px;font-weight:700;line-height:1.25;text-align:left;transform:rotate(3deg);box-shadow:0 10px 24px #0007;opacity:0;pointer-events:none;transition:opacity .15s ease}
.product:hover .sale-tip{opacity:1}
.pay-method.selected img[src*="yoomoney"]{filter:invert(1) hue-rotate(180deg) saturate(1.4)}
.pay-method.selected,.pay-method.selected b{color:#151515!important}
.pay-method.selected small{color:#6d6d6d!important}
/* selected payment method: white card → always dark text (any button variant) */
.payments button.selected,.payments button.selected b,.payments button.selected span:not(.pm-cur),.wallet-modal .payments button.selected{color:#151515!important}
.payments button.selected small{color:#5f5f5f!important}
.payments button.selected:not(.pay-method){background:#f2f2f2!important}
.payments button.selected:not(.pay-method) svg{color:#2875ce}
.payments button.selected:hover{background:#ffffff!important}
