@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --purple: #5d5a72;
    --purple2: #a7a2bd;
    --accent: #4a4860;
    --bg: #0d0d10;
    --panel: #15151a;
    --card: #141419;
    --line: rgba(255, 255, 255, 0.07);
    --txt: #e4e3e9;
    --muted: #8b8a96;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--txt);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
    background: linear-gradient(180deg, #111116 0%, var(--bg) 60%); }
.orb { display: none; }
.grid { display: none; }

.nav {
    position: sticky; top: 0; z-index: 50;
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    padding: 16px 40px;
    backdrop-filter: blur(10px);
    background: rgba(12, 11, 16, 0.8);
    border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 22px; letter-spacing: 0.3px; cursor: pointer; color: #fff; }
.logo::after { content: ''; }
.nav-links { display: flex; gap: 26px; justify-self: center; }
.nav-links a { color: var(--muted); cursor: pointer; font-weight: 500; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--txt); }
.nav-auth { display: flex; gap: 10px; align-items: center; justify-self: end; }

.btn {
    border: none; cursor: pointer; border-radius: 10px;
    padding: 10px 18px; font-size: 14px; font-weight: 600; color: #fff;
    background: var(--purple);
    transition: background .15s, transform .1s;
}
.btn:hover { background: #6b6884; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--txt); }
.btn.ghost:hover { background: rgba(255,255,255,0.05); }
.btn.big { padding: 13px 26px; font-size: 15px; }
.btn.full { width: 100%; padding: 13px; }

.page { position: relative; z-index: 2; display: none; max-width: 1080px; margin: 0 auto; padding: 40px 24px 80px; }
.page.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-title { font-size: 30px; font-weight: 800; text-align: center; margin-bottom: 6px; }
.page-sub { text-align: center; color: var(--muted); margin-bottom: 34px; }

.hero { text-align: center; padding: 48px 0 36px; }
.badge {
    display: inline-block; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 500;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--muted); margin-bottom: 20px;
}
.hero-title { font-size: 46px; font-weight: 800; line-height: 1.1; margin-bottom: 16px; color: #fff; }
.grad { color: var(--purple2); }
.hero-sub { max-width: 560px; margin: 0 auto 26px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 24px; }
.feature {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px;
    transition: border-color .15s;
}
.feature:hover { border-color: rgba(255,255,255,0.16); }
.f-ic { width: 26px; height: 26px; color: var(--purple2); margin-bottom: 14px; display: block; }
.feature h3 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.feature p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }

.shop { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.product {
    position: relative; background: var(--card); border: 1px solid var(--line);
    border-radius: 14px; padding: 28px 26px; transition: border-color .15s;
}
.product:hover { border-color: rgba(255,255,255,0.16); }
.product.best { border-color: rgba(167,162,189,0.32); }
.p-tag {
    position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 600;
    padding: 4px 10px; border-radius: 5px; background: rgba(255,255,255,0.06); color: var(--muted);
}
.p-tag.gold { color: #c9a86a; }
.p-name { font-size: 14px; color: var(--muted); }
.p-period { font-size: 24px; font-weight: 700; margin: 4px 0 14px; color: #fff; }
.p-price { font-size: 34px; font-weight: 800; margin-bottom: 20px; color: #fff; }
.p-list { list-style: none; margin-bottom: 24px; }
.p-list li { padding: 8px 0; color: var(--muted); font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.p-list li::before { content: '— '; color: var(--purple2); }

.cab { display: flex; flex-direction: column; gap: 9px; max-width: 940px; margin: 0 auto; }
.cab-row { display: flex; align-items: center; gap: 9px; }
.cab-key {
    display: flex; align-items: center; gap: 8px; width: 220px; flex-shrink: 0;
    background: var(--accent);
    color: #fff; font-weight: 600; font-size: 14px; padding: 12px 15px; border-radius: 8px;
}
.cab-val {
    flex: 1; background: var(--card); border: 1px solid var(--line);
    padding: 12px 15px; border-radius: 8px; color: var(--txt); font-size: 14px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cab-val input { width: 100%; background: none; border: none; outline: none; color: #fff; font-size: 14px; }
.cab-act { width: 150px; flex-shrink: 0; }
.cab-bottom { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cab-bottom .btn { flex: 0 0 auto; }
.cab-bottom .spacer { flex: 1; }

.overlay {
    position: fixed; inset: 0; z-index: 100; display: none;
    align-items: center; justify-content: center;
    background: rgba(6,5,10,0.7); backdrop-filter: blur(6px);
}
.overlay.show { display: flex; animation: fade .2s ease; }
.modal {
    position: relative; width: 380px; max-width: 92%;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.modal-close { position: absolute; top: 16px; right: 18px; cursor: pointer; color: var(--muted); font-size: 16px; }
.modal-close:hover { color: #fff; }
.tabs { display: flex; gap: 6px; margin-bottom: 20px; background: rgba(255,255,255,0.04); padding: 4px; border-radius: 9px; }
.tab { flex: 1; text-align: center; padding: 9px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 600; transition: all .15s; }
.tab.active { background: var(--purple); color: #fff; }
.form { display: flex; flex-direction: column; gap: 11px; }
.row { display: flex; gap: 8px; }
.row .inp { flex: 1; }
.row .btn { flex: 0 0 auto; }
.inp {
    background: rgba(255,255,255,0.04); border: 1px solid var(--line);
    border-radius: 9px; padding: 12px 14px; color: #fff; font-size: 14px; outline: none; transition: border-color .15s;
}
.inp:focus { border-color: var(--purple2); }
.msg { min-height: 18px; text-align: center; font-size: 13px; margin-top: 14px; }
.msg.err { color: #e06a6a; }
.msg.ok { color: #6bbf86; }

.sup-del { margin-left: 8px; cursor: pointer; color: #d96a6a; font-size: 11px; opacity: 0.5; }
.sup-del:hover { opacity: 1; }


.toast {
    position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120px);
    display: flex; align-items: center; gap: 11px;
    background: var(--panel); border: 1px solid var(--line); color: #fff;
    padding: 14px 20px; border-radius: 11px; z-index: 200; font-weight: 500; font-size: 14px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.55); transition: transform .3s cubic-bezier(.2,.9,.3,1); max-width: 90%;
}
.toast::before {
    content: ''; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
    background: var(--muted);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.ok { border-color: rgba(95,184,122,0.35); }
.toast.ok::before { background: #5fb87a; box-shadow: 0 0 8px rgba(95,184,122,0.5); }
.toast.err { border-color: rgba(217,106,106,0.35); }
.toast.err::before { background: #d96a6a; box-shadow: 0 0 8px rgba(217,106,106,0.5); }


.modal.dlg { width: 400px; }
.dlg-title { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.dlg-body { color: var(--muted); font-size: 14px; line-height: 1.55; margin-bottom: 22px; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; }
.dlg-actions .btn { padding: 10px 20px; }
.dlg-product {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.04); border: 1px solid var(--line);
    border-radius: 10px; padding: 16px 18px;
}
.dlg-product span { color: var(--txt); font-weight: 600; font-size: 15px; }
.dlg-product b { color: #fff; font-size: 20px; font-weight: 800; }
.dlg-li { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dlg-li:last-child { border-bottom: none; }
.dlg-li span { color: var(--txt); }
.dlg-li b { color: var(--muted); font-weight: 500; }
.dlg-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.dlg-form label { font-size: 13px; color: var(--muted); display: block; margin-bottom: 7px; }
.btn.danger { background: #9c4a4a; }
.btn.danger:hover { background: #b15656; }

@media (max-width: 800px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    .shop { grid-template-columns: 1fr; }
    .hero-title { font-size: 40px; }
    .nav { padding: 14px 18px; }
    .nav-links { display: none; }
    .cab-key { width: 150px; font-size: 12px; }
    .cab-act { width: auto; }
}



.footer {
    position: relative; z-index: 2;
    border-top: 1px solid var(--line);
    background: rgba(12, 11, 16, 0.6);
    padding: 22px 24px;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 13px; cursor: pointer; transition: color .15s; }
.footer-links a:hover { color: var(--txt); }
.footer-socials { display: flex; gap: 10px; }
.footer-socials .soc {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05); border: 1px solid var(--line);
    color: var(--muted); transition: all .15s; cursor: pointer;
}
.footer-socials .soc:hover { color: var(--txt); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.08); transform: translateY(-2px); }


.cab-admin { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.cab-admin-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.cab-admin input { width: 100%; background: none; border: none; outline: none; color: #fff; font-size: 14px; }


.support-box {
    width: 760px; max-width: 94%; height: 560px; max-height: 88vh;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.support-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.support-title { font-size: 17px; font-weight: 700; color: #fff; }
.support-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.sup-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sup-empty { color: var(--muted); font-size: 13px; text-align: center; margin: auto; padding: 20px; }
.sup-msg { display: flex; }
.sup-msg.usr { justify-content: flex-start; }
.sup-msg.adm { justify-content: flex-end; }
.sup-bubble {
    max-width: 75%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4;
    background: rgba(255,255,255,0.06); color: var(--txt); word-break: break-word;
}
.sup-msg.adm .sup-bubble { background: var(--purple); color: #fff; }
.sup-ts { display: block; font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 4px; }
.sup-input { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.sup-input .inp { flex: 1; }
.sup-input .btn { flex: 0 0 auto; }
.sup-cd { color: var(--muted); font-size: 12px; text-align: center; padding: 0 16px 12px; }

.sup-admin { flex: 1; display: flex; min-height: 0; }
.sup-list { width: 230px; flex-shrink: 0; border-right: 1px solid var(--line); overflow-y: auto; }
.sup-chat { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: background .15s; }
.sup-chat:hover { background: rgba(255,255,255,0.04); }
.sup-chat.active { background: rgba(255,255,255,0.08); }
.sup-chat-name { color: #fff; font-size: 14px; font-weight: 600; }
.sup-chat-last { color: var(--muted); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-chatview { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.sup-chat-title { padding: 12px 16px; border-bottom: 1px solid var(--line); color: #fff; font-weight: 600; }

@media (max-width: 800px) {
    .footer { flex-direction: column; text-align: center; }
    .sup-list { width: 140px; }
    .support-box { height: 80vh; }
}



.notify-stack {
    position: fixed; right: 20px; bottom: 20px; z-index: 300;
    display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
    pointer-events: none;
}
.note {
    pointer-events: auto; cursor: pointer;
    display: flex; align-items: center; gap: 12px;
    width: 320px; max-width: 86vw;
    background: var(--panel); border: 1px solid var(--line);
    border-left: 3px solid var(--purple2);
    border-radius: 12px; padding: 13px 15px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.55);
    transform: translateX(140%); opacity: 0;
    transition: transform .35s cubic-bezier(.2,.9,.3,1), opacity .35s;
}
.note.show { transform: translateX(0); opacity: 1; }
.note:hover { border-color: rgba(255,255,255,0.2); }
.note-ic {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(167,162,189,0.15); color: var(--purple2);
}
.note-body { min-width: 0; }
.note-title { color: #fff; font-size: 13.5px; font-weight: 700; }
.note-text { color: var(--muted); font-size: 12.5px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }



.section-title {
    text-align: center; font-size: 24px; font-weight: 800; color: #fff;
    margin: 48px 0 22px;
}
.stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px;
}
.stat {
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    padding: 22px 16px; text-align: center; transition: border-color .15s;
}
.stat:hover { border-color: rgba(255,255,255,0.16); }
.stat-num { font-size: 28px; font-weight: 800; color: var(--purple2); }
.stat-lbl { font-size: 13px; color: var(--muted); margin-top: 6px; }

.cta {
    margin-top: 50px; text-align: center;
    background: linear-gradient(135deg, rgba(93,90,114,0.20), rgba(167,162,189,0.10));
    border: 1px solid var(--line); border-radius: 16px; padding: 44px 24px;
}
.cta-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.cta-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }


.shop.services { grid-template-columns: 1fr; max-width: 360px; margin-top: 4px; }
.product.service { border-color: rgba(167,162,189,0.22); }
.product.service .p-period { font-size: 21px; }

@media (max-width: 800px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .section-title { font-size: 21px; }
    .cta { padding: 34px 18px; }
}



.orb { display: block; position: absolute; border-radius: 50%; filter: blur(90px); }
.orb1 { width: 380px; height: 380px; background: #5d5a72; opacity: 0.20; top: -90px; left: -70px; animation: drift1 20s ease-in-out infinite; }
.orb2 { width: 320px; height: 320px; background: #45415c; opacity: 0.18; bottom: -70px; right: -50px; animation: drift2 24s ease-in-out infinite; }
.orb3 { width: 260px; height: 260px; background: #6b6884; opacity: 0.12; top: 42%; left: 56%; animation: drift1 28s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(42px,30px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-38px,-26px); } }


.hero-preview { display: flex; justify-content: center; margin-top: 40px; }
.win {
    width: 360px; max-width: 92%;
    background: rgba(20,20,26,0.92); border: 1px solid var(--line);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--line); }
.win-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: #3a3a44; }
.win-title { margin-left: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.win-body { padding: 14px; text-align: left; }
.win-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--purple2); margin: 12px 0 7px; }
.win-cat:first-child { margin-top: 0; }
.mod {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-radius: 8px; background: rgba(255,255,255,0.03);
    margin-bottom: 6px; font-size: 13px; color: var(--muted);
}
.mod .sw { width: 30px; height: 16px; border-radius: 10px; background: rgba(255,255,255,0.1); position: relative; transition: background .2s; flex-shrink: 0; }
.mod .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #777; transition: all .2s; }
.mod.on { color: #fff; background: rgba(93,90,114,0.18); }
.mod.on .sw { background: var(--purple); }
.mod.on .sw::after { left: 16px; background: #fff; }


.feature, .product, .stat { transition: border-color .15s, transform .15s; }
.feature:hover, .product:hover, .stat:hover { transform: translateY(-3px); }



.cab-layout { display: flex; gap: 16px; align-items: flex-start; max-width: 1260px; margin: 0 auto; }
.cab-layout .cab { flex: 1; max-width: none; margin: 0; }
.gchat {
    width: 300px; flex-shrink: 0;
    background: var(--card); border: 1px solid var(--line); border-radius: 12px;
    display: flex; flex-direction: column; height: 560px; overflow: hidden;
}
.gchat-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 15px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02);
}
.gchat-title { font-weight: 700; color: #fff; font-size: 14px; }
.gchat-online { font-size: 12px; color: #5fb87a; display: flex; align-items: center; gap: 6px; }
.gchat-online::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5fb87a; box-shadow: 0 0 6px rgba(95,184,122,0.6); }
.gchat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.gc-empty { color: var(--muted); font-size: 13px; text-align: center; margin: auto; }
.gc-msg { display: flex; flex-direction: column; gap: 2px; }
.gc-name { font-size: 11px; font-weight: 700; color: var(--purple2); }
.gc-msg.mine .gc-name { color: #5fb87a; }
.gc-mod { margin-left: 8px; display: inline-flex; gap: 6px; }
.gc-mod a { cursor: pointer; font-size: 11px; opacity: 0.55; transition: opacity .15s; }
.gc-mod a:hover { opacity: 1; }
.gc-text { font-size: 13.5px; color: var(--txt); word-break: break-word; line-height: 1.4; }
.gchat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.gchat-input .inp { flex: 1; padding: 10px 12px; }
.gchat-input .btn { flex: 0 0 auto; padding: 10px 16px; }

@media (max-width: 900px) {
    .cab-layout { flex-direction: column; }
    .gchat { width: 100%; height: 360px; }
}

/* ---- Меню покупки ---- */
.modal.buy-modal { width: 430px; }
.buy-head { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.buy-name { font-size: 20px; font-weight: 800; color: #fff; margin: 4px 0 20px; line-height: 1.3; }
.buy-field { margin-bottom: 16px; }
.buy-field > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.buy-field .inp { width: 100%; }
.buy-promo-row { display: flex; gap: 8px; }
.buy-promo-row .inp { flex: 1; }
.buy-promo-row .btn { flex: 0 0 auto; }
.buy-promo-ok { margin-top: 8px; font-size: 12.5px; color: #6bd28f; }
.buy-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-method {
    border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
    cursor: pointer; background: rgba(255,255,255,0.03); transition: border-color .15s, background .15s;
}
.buy-method:hover { border-color: rgba(255,255,255,0.18); }
.buy-method.active { border-color: var(--purple2); background: rgba(167,162,189,0.12); }
.bm-name { font-size: 14px; font-weight: 700; color: #fff; }
.bm-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.buy-total {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0 18px; border-top: 1px solid var(--line); margin-top: 4px;
}
.buy-total > span:first-child { font-size: 14px; color: var(--muted); }
.buy-total-price { display: flex; align-items: center; gap: 10px; }
.buy-old { font-size: 16px; color: var(--muted); text-decoration: line-through; }
.buy-new { font-size: 24px; font-weight: 800; color: #fff; }
.buy-disc {
    font-size: 12px; font-weight: 700; color: #6bd28f;
    background: rgba(107,210,143,0.12); border-radius: 6px; padding: 3px 8px;
}

/* ---- Админ: промокоды ---- */
.promo-admin { display: grid; grid-template-columns: 230px 1fr; height: 100%; min-height: 0; }
.promo-list { border-right: 1px solid var(--line); overflow-y: auto; padding: 8px; }
.promo-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; border-radius: 9px; cursor: pointer; transition: background .15s;
}
.promo-item:hover { background: rgba(255,255,255,0.04); }
.promo-item.active { background: rgba(167,162,189,0.14); }
.promo-item-code { font-weight: 700; color: #fff; font-size: 14px; }
.promo-item-disc { font-size: 12px; color: var(--purple2); font-weight: 600; }
.promo-view { padding: 22px 24px; overflow-y: auto; }
.promo-view-code { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 18px; }
.promo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.promo-stat {
    background: rgba(255,255,255,0.03); border: 1px solid var(--line);
    border-radius: 12px; padding: 18px; text-align: center;
}
.ps-num { font-size: 28px; font-weight: 800; color: #fff; }
.ps-lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.promo-edit { margin-bottom: 18px; }
.promo-edit > label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }

@media (max-width: 700px) {
    .promo-admin { grid-template-columns: 1fr; }
    .promo-list { border-right: none; border-bottom: 1px solid var(--line); max-height: 160px; }
    .buy-methods { grid-template-columns: 1fr; }
}

/* ---- Партнёрские карточки (мои промокоды) ---- */
.partner-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--line);
    border-radius: 12px; padding: 18px; margin-bottom: 14px;
}
.partner-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.partner-code { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: .5px; }
.partner-disc { font-size: 12px; color: var(--purple2); font-weight: 600; }

/* ---- Уведомление админа о выводе (постоянное) ---- */
.wd-alert {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: 24px; z-index: 200; width: 560px; max-width: 94%;
    display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #5b2d2d, #7a2f3a);
    border: 1px solid #b15656; border-radius: 14px; padding: 18px 22px;
    box-shadow: 0 18px 50px rgba(0,0,0,0.55);
    animation: wdpulse 1.6s ease-in-out infinite;
}
@keyframes wdpulse {
    0%, 100% { box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 0 rgba(220,100,100,0.0); }
    50% { box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 6px rgba(220,100,100,0.22); }
}
.wd-alert-ic {
    flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
    background: #fff; color: #b15656; font-size: 24px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
}
.wd-alert-body { flex: 1; }
.wd-alert-title { font-size: 16px; font-weight: 800; color: #fff; }
.wd-alert-text { font-size: 12.5px; color: #f0d6d6; margin-top: 3px; line-height: 1.4; }
.wd-alert .btn { flex: 0 0 auto; background: #fff; color: #7a2f3a; font-weight: 700; }
.wd-alert .btn:hover { background: #f0e6e6; }

/* ---- Список заявок на вывод ---- */
.wd-list { padding: 14px; overflow-y: auto; }
.wd-item {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    background: rgba(255,255,255,0.03); border: 1px solid var(--line);
    border-radius: 12px; padding: 16px 18px; margin-bottom: 12px;
}
.wd-item.pending { border-color: rgba(177,86,86,0.5); }
.wd-item-amt { font-size: 22px; font-weight: 800; color: #fff; }
.wd-item-meta { font-size: 13px; color: var(--muted); margin-top: 4px; }
.wd-item-card { font-size: 13px; color: var(--txt); margin-top: 2px; }
.wd-item-ts { font-size: 11px; color: var(--muted); margin-top: 4px; }
.wd-item-act { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; }
.wd-badge { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px; }
.wd-badge.paid { background: rgba(107,210,143,0.15); color: #6bd28f; }
.wd-badge.rejected { background: rgba(177,86,86,0.15); color: #e06a6a; }

@media (max-width: 700px) {
    .wd-alert { flex-direction: column; text-align: center; }
    .wd-item { flex-direction: column; align-items: stretch; }
}

/* ---- Страница после оплаты ---- */
.paid-box {
    max-width: 520px; margin: 60px auto 0; text-align: center;
    background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; padding: 48px 36px;
}
.paid-ic {
    width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px; color: #fff;
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}
.paid-title { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.paid-sub { font-size: 15px; color: var(--muted); line-height: 1.55; margin-bottom: 26px; }
