/* Cloud DLC — чистые стили MPA. Фоновое видео: public/media/bg.mp4 (из оригинала). */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }
body { min-height: 100vh; background: #050505; color: #fff; overflow-x: hidden; }
a { color: inherit; }

/* ФОКУС — глобальное правило.
   Раньше в восьми местах фокус обнулялся безо всякой замены: с клавиатуры по сайту
   было не видно, где находится курсор. Теперь кольцо убирается только на :focus
   (чтобы не мигало при клике мышью) и возвращается на :focus-visible.
   Спецификачность :where() нулевая, поэтому компонентные стили (например .dropzone со
   своим фокусом через border) по-прежнему могут переопределить это правило. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus { outline: none; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #8fc7ea;
  outline-offset: 2px;
}

/* VIDEO BACKGROUND (как в оригинале: fixed, приглушённое, за контентом) */
.video-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: 0; pointer-events: none; opacity: .28; filter: grayscale(1) brightness(.42) contrast(1.15); }
.page, footer { position: relative; z-index: 1; }

/* NAVBAR — floating pill, centered, detached from top */
.navbar { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); width: min(880px, calc(100% - 64px)); z-index: 700; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; background: rgba(18,18,18,.78); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.16); border-radius: 22px; box-shadow: 0 10px 32px rgba(0,0,0,.45), 0 1px 0 rgba(255,255,255,.06) inset; }
/* button micro-animations (для всех кнопок) */
.btn-dark, .btn-nav-auth, .btn-nav-profile, .btn-nav-chat, .language-current, .abtn, .btn-buy, .btn-auth, .btn-chat-send, .dashboard-button { transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .2s ease, background .2s ease, border-color .2s, opacity .2s; will-change: transform; }
.btn-dark:hover, .btn-nav-auth:hover, .btn-nav-profile:hover, .btn-nav-chat:hover, .language-current:hover { transform: translateY(-1px) scale(1.015); }
.btn-dark:active, .btn-nav-auth:active, .language-current:active { transform: scale(.96); }
.btn-bump { animation: btnBump .32s cubic-bezier(.22,1,.36,1); }
@keyframes btnBump { 0% { transform: scale(1); } 35% { transform: scale(.92); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
.btn-press { transform: scale(.94) !important; }
.nav-logo { font-size: 1.35rem; font-weight: 800; text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-user { display: flex; align-items: center; gap: 12px; }
.language-menu { position: relative; }
.language-current { padding: 8px 14px; background: rgba(0,0,0,.35); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; height: 38px; }
.language-current img, .language-option img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.language-options { position: absolute; top: calc(100% + 8px); right: 0; display: none; min-width: 130px; padding: 6px; background: #0a0a0a; border: 1px solid rgba(255,255,255,.3); border-radius: 12px; }
.language-menu.open .language-options { display: grid; gap: 4px; }
.language-option { padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.language-option:hover { background: #2b2b2b; }
.btn-nav-auth, .btn-nav-profile, .btn-nav-chat { padding: 8px 22px; background: #fff; color: #111; border: none; border-radius: 20px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; height: 38px; }
.btn-nav-chat { padding: 8px 18px; }
.btn-nav-chat.active { box-shadow: inset 0 0 0 2px #111; }
.nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: 8px; padding: 0 5px; border-radius: 999px; background: #ffb020; color: #2a1a00; font-size: .68rem; font-weight: 800; line-height: 1; }
.btn-logout { padding: 6px 16px; background: rgba(200,60,60,.85); color: #fff; border: none; border-radius: 15px; cursor: pointer; }

/* PAGES — offset for floating navbar (16px top + ~62px bar) */
.page { padding-top: 92px; }
.hero { padding: 120px 20px 60px; text-align: center; }
.hero h1 { font-size: 4rem; margin-bottom: 15px; }
.hero p { font-size: 1.3rem; opacity: .9; }
.promo-showcase { padding: 60px 20px; text-align: center; }
.promo-showcase h2 { max-width: 900px; margin: 0 auto; font-size: 1.4rem; line-height: 1.4; }
.pricing { padding: 40px 20px 80px; text-align: center; }
.pricing h2 { font-size: 2.2rem; margin-bottom: 40px; }
.cards { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto; }
.card { flex: 1; min-width: 200px; max-width: 240px; transition: transform .22s cubic-bezier(.22,1,.36,1); will-change: transform; }
.card:hover { transform: translateY(-6px); }
.card-cloud { background: #000; border: 1px solid rgba(255,255,255,.3); border-radius: 30px; padding: 40px 20px; }
.card-cloud h3 { font-size: 1.3rem; margin-bottom: 15px; }
.card-cloud .price { font-size: 2.2rem; font-weight: 800; margin-bottom: 10px; }
.card-cloud p { opacity: .85; margin-bottom: 25px; }
.btn-buy { display: inline-block; padding: 12px 30px; background: #fff; color: #000; border: none; border-radius: 25px; font-weight: 700; cursor: pointer; text-decoration: none; }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; max-width: 1000px; margin: 50px auto 0; }
.contact-links a { display: inline-flex; align-items: center; padding: 10px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 14px; background: rgba(0,0,0,.25); text-decoration: none; }

/* ===== Pricing: белая обводка переходит к выбранной плашке ===== */
.cards { position: relative; }
.card { position: relative; z-index: 1; cursor: pointer; }
.card-cloud { transition: border-color .32s cubic-bezier(.22,1,.36,1), box-shadow .32s, transform .3s; }
.pricing-thumb { position: absolute; border: 2px solid #fff; border-radius: 30px; pointer-events: none; z-index: 2; opacity: 0; transition: left .28s cubic-bezier(.22,1,.36,1), top .28s cubic-bezier(.22,1,.36,1), width .28s cubic-bezier(.22,1,.36,1), height .28s cubic-bezier(.22,1,.36,1), opacity .18s; box-shadow: 0 10px 34px rgba(255,255,255,.14), 0 0 0 1px rgba(255,255,255,.1) inset; will-change: left, top, width, height; }
.pricing-thumb.visible { opacity: 1; }
.card.selected .card-cloud { border-color: transparent; }

/* ===== Legal pages ===== */
.legal-page { width: min(860px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 70px; }
.legal-card { background: rgba(0,0,0,.58); border: 1px solid rgba(255,255,255,.14); border-radius: 20px; padding: 32px 28px; backdrop-filter: blur(12px); }
.legal-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.legal-updated { opacity: .55; font-size: 13px; margin-bottom: 18px; }
.legal-card h2 { font-size: 1.15rem; margin: 22px 0 10px; }
.legal-card p, .legal-card li { font-size: 14px; line-height: 1.55; opacity: .9; }
.legal-card ul { padding-left: 18px; display: grid; gap: 6px; margin: 8px 0; }
.legal-card a { color: #8fc7ea; text-decoration: underline; }
.footer-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; font-size: 13px; opacity: .75; }
.footer-links a { color: inherit; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.3); padding-bottom: 1px; transition: opacity .15s, border-color .15s; }
.footer-links a:hover { opacity: 1; border-bottom-color: rgba(255,255,255,.8); }
.footer-dot { opacity: .4; }

/* AUTH */
.auth-wrap { min-height: calc(100vh - 92px); display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.auth-cloud { background: #000; border: 1px solid rgba(255,255,255,.25); border-radius: 30px; padding: 40px; width: 380px; max-width: 90vw; }
.auth-tabs { position: relative; display: flex; gap: 5px; margin-bottom: 24px; background: #141414; border-radius: 15px; padding: 4px; }
.auth-tab { position: relative; z-index: 1; flex: 1; padding: 10px; border-radius: 12px; text-align: center; text-decoration: none; color: #fff; font-weight: 600; background: transparent; }
.auth-tab.active { background: transparent; box-shadow: none; }
/* плавающий ползунок-подложка под активным табом */
.auth-thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 12px; background: #2b2b2b; box-shadow: 0 2px 8px rgba(0,0,0,.4); transition: left .35s cubic-bezier(.22,1,.36,1), width .35s cubic-bezier(.22,1,.36,1); }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form input { padding: 14px 18px; border: 1px solid rgba(255,255,255,.35); border-radius: 15px; background: #000; color: #fff; }
.auth-error { color: #ff7b7b; min-height: 20px; }
.btn-auth { padding: 14px; background: #fff; color: #111; border: none; border-radius: 15px; font-weight: 700; cursor: pointer; }

/* BUY MODAL */
.buy-modal-overlay { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; }
.buy-modal-overlay.active { display: flex; }
.buy-modal-card { position: relative; z-index: 1210; background: #000; border: 1px solid rgba(255,255,255,.3); border-radius: 30px; padding: 40px 24px; width: 560px; max-width: 92vw; position: relative; text-align: center; }
.auth-close { position: absolute; top: 12px; right: 18px; background: none; border: none; font-size: 1.6rem; color: #fff; cursor: pointer; }
.buy-options { display: flex; flex-direction: column; gap: 18px; margin-top: 20px; }
.buy-option-block { background: #111; border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 14px; }
.buy-option-title { font-weight: 800; letter-spacing: 1px; }
.buy-option-btn { display: flex; align-items: center; gap: 14px; background: #f2f2f2; color: #000; border-radius: 16px; padding: 12px; text-decoration: none; margin-top: 10px; font-weight: 700; }
.buy-option-btn img { width: 32px; height: 32px; }

/* DASHBOARD */
.dashboard { display: grid; grid-template-columns: 300px 1fr 380px; gap: 24px; width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 70px; }
.dashboard-heading { grid-column: 1 / -1; padding: 16px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(5,5,5,.72); }
.dashboard-kicker { opacity: .7; font-size: 13px; }
.dashboard-title { font-size: 28px; }
.dashboard-subtitle { opacity: .7; font-size: 14px; margin-top: 8px; }
.dashboard-card { border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(5,5,5,.72); padding: 16px; min-width: 0; max-width: 100%; overflow: hidden; }
.dashboard-card h2 { font-size: 14px; font-weight: 600; opacity: .85; }
.dashboard-card p { opacity: .7; font-size: 13px; margin-top: 6px; }
/* Раскладка по строкам НЕ задаётся числами: флеш появляется/исчезает и сдвигает всё.
   Вместо этого каждому блоку задан только свой столбец, а раскладку делает auto-placement. */
.dashboard-side { display: flex; flex-direction: column; gap: 16px; grid-column: 1; grid-row: span 2; }
.account-head { display: flex; gap: 10px; align-items: center; }
.account-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(140deg,#888,#222); flex-shrink: 0; }
.account-copy strong { display: block; font-size: 14px; }
.account-copy span { opacity: .75; font-size: 12px; }
.dashboard-card input, .dashboard-card select { width: 100%; height: 40px; margin-top: 10px; padding: 0 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: #151515; color: #fff; }
.dashboard-button { min-height: 36px; border: 0; border-radius: 11px; background: #fff; color: #111; font-weight: 700; cursor: pointer; width: 100%; margin-top: 10px; padding: 8px; justify-content: center; }
.dashboard-button:disabled { opacity: .5; cursor: not-allowed; }
.btn-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.summary-row { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.summary-value { margin-top: 8px; font-size: 15px; }
.dashboard-main { grid-column: 2; display: flex; flex-direction: column; gap: 16px; }
.launcher-card { grid-column: 3; align-self: start; }
.requirements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; padding: 14px 10px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; text-align: center; }
.support-links { display: grid; gap: 7px; margin-top: 10px; }
.support-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 8px; border-radius: 18px; background: #fff; color: #111; text-decoration: none; font-weight: 700; }
.flash { grid-column: 1 / -1; padding: 12px 16px; border-radius: 12px; }
.flash.success { background: rgba(39,174,96,.2); border: 1px solid #27ae60; }
.flash.error { background: rgba(192,57,43,.2); border: 1px solid #c0392b; }

/* CHAT */
.chat-page { display: flex; justify-content: center; padding: 40px 20px 60px; }
.chat-cloud { background: rgba(20,20,20,.9); border: 1px solid rgba(255,255,255,.2); border-radius: 24px; width: 640px; max-width: 95vw; display: flex; flex-direction: column; overflow: hidden; }
.chat-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.15); }
.chat-hint { font-size: 12px; opacity: .6; }
.chat-messages { min-height: 280px; max-height: 420px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.chat-msg { background: rgba(255,255,255,.08); border-radius: 14px; padding: 10px 14px; max-width: 85%; }
.chat-msg.own { align-self: flex-end; background: rgba(255,255,255,.16); }
.chat-msg-name { display: flex; align-items: center; gap: 4px; font-weight: 700; font-size: .85rem; }
.chat-msg-name .role-badge { margin-right: 0; }

/* ===== Кастомный ползунок чата (webkit + firefox) ===== */
.chat-messages { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.28) transparent; scroll-behavior: smooth; }
.chat-messages::-webkit-scrollbar { width: 10px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; border-radius: 999px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
.chat-messages::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.42); background-clip: content-box; }
.chat-messages::-webkit-scrollbar-thumb:active { background: rgba(255,255,255,.6); background-clip: content-box; }
.chat-msg-text { font-size: .95rem; overflow-wrap: anywhere; }
.chat-msg-time { font-size: .72rem; font-weight: 400; opacity: .5; margin-left: 4px; }
.btn-chat-del { background: transparent; border: none; color: rgba(255,255,255,.35); cursor: pointer; font-size: .75rem; line-height: 1; padding: 2px 6px; border-radius: 4px; margin-left: auto; transition: color .15s, background .15s; }
.btn-chat-del:hover { color: #e74c3c; background: rgba(231,76,60,.15); }
.chat-input { display: flex; gap: 10px; padding: 15px 18px; border-top: 1px solid rgba(255,255,255,.15); }
.chat-input input { flex: 1; padding: 12px 18px; border-radius: 20px; border: 1px solid rgba(255,255,255,.25); background: #111; color: #fff; }
.btn-chat-send { width: 45px; height: 45px; border: none; border-radius: 50%; background: #fff; color: #111; cursor: pointer; }
.btn-chat-send:disabled { opacity: .55; cursor: not-allowed; background: #666; color: #fff; font-size: 13px; font-weight: 700; }

/* ADMIN */
.admin-page { width: min(1360px, calc(100% - 32px)); max-width: 100%; margin: 0 auto; padding: 20px 0 70px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 16px; }
.admin-head h1 { margin-bottom: 4px; }
.admin-sub { opacity: .65; font-size: 13px; }
.stat-chip { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: 1 1 0; min-width: 116px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; background: rgba(255,255,255,.04); text-align: center; }
.stat-chip b { display: block; font-size: 1.2rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-chip span { display: block; font-size: .74rem; line-height: 1.25; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.stat-chip.ok b { color: #2ecc71; }
.stat-chip.warn b { color: #e74c3c; }
.admin-note { margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; font-size: 13px; background: rgba(241,196,15,.12); border: 1px solid rgba(241,196,15,.45); color: #f5d76e; }
.admin-grid { display: grid; gap: 20px; min-width: 0; width: 100%; max-width: 100%; }
.admin-panel { min-width: 0; width: 100%; max-width: 100%; display: grid; gap: 20px; }
.admin-form { display: grid; gap: 10px; margin-top: 12px; }
.admin-form label { display: grid; gap: 6px; font-size: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-search { max-width: 260px; height: 36px; padding: 0 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: #101010; color: #fff; font-size: 13px; }
.admin-search:focus { border-color: #4da6db; box-shadow: 0 0 0 3px rgba(77,166,219,.18); }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border: 1px solid rgba(255,255,255,.15); padding: 8px 10px; text-align: left; vertical-align: middle; }
.admin-table code { font-family: monospace; }
.th-actions { text-align: right !important; }
.muted { opacity: .7; }
.small { font-size: 12px; }
.empty-note { opacity: .65; font-size: 13px; margin-top: 12px; }
.key-code, .hwid-code { font-size: 12px; word-break: break-all; }

/* Кастомные админ-кнопки: вместо дефолтных серых */
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.row-actions form { display: inline; margin: 0; }
.abtn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid transparent; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease; }
.abtn:hover { transform: translateY(-1px); }
.abtn:active { transform: scale(.97); }
.abtn svg { flex-shrink: 0; }
.abtn-sm { padding: 7px 12px; font-size: 12px; }
.abtn-block { width: 100%; justify-content: center; padding: 11px; font-size: 14px; }
.abtn-primary { background: linear-gradient(180deg,#7c5cff,#5b3df5); border-color: rgba(124,92,255,.6); color: #fff; box-shadow: 0 4px 14px rgba(91,61,245,.35); }
.abtn-primary:hover { background: linear-gradient(180deg,#8d72ff,#6a4bf7); box-shadow: 0 8px 20px rgba(91,61,245,.5); }
.abtn-danger { background: rgba(192,57,43,.16); border-color: rgba(231,76,60,.55); color: #ff9d8a; }
.abtn-danger:hover { background: #c0392b; border-color: #c0392b; color: #fff; box-shadow: 0 6px 16px rgba(192,57,43,.45); }
.abtn-success { background: rgba(46,204,113,.15); border-color: rgba(46,204,113,.55); color: #7bed9f; }
.abtn-success:hover { background: #27ae60; border-color: #27ae60; color: #fff; box-shadow: 0 6px 16px rgba(39,174,96,.4); }
.abtn-warn { background: rgba(241,196,15,.13); border-color: rgba(241,196,15,.5); color: #f5d76e; }
.abtn-warn:hover { background: rgba(241,196,15,.3); border-color: #f1c40f; color: #fff; }
.abtn-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #dfe6ee; }
.abtn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }
.abtn.copied { border-color: #2ecc71; color: #7bed9f; }

/* Пилюли статусов */
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.pill-free { background: rgba(46,204,113,.15); color: #7bed9f; border: 1px solid rgba(46,204,113,.4); }
.pill-used { background: rgba(255,255,255,.07); color: #b9c4d0; border: 1px solid rgba(255,255,255,.16); }
.pill-days { background: rgba(77,166,219,.14); color: #8fc7ea; border: 1px solid rgba(77,166,219,.4); }
.pill-banned { background: #c0392b; color: #fff; }
.pill-clean { background: rgba(255,255,255,.07); color: #9aa7b5; border: 1px solid rgba(255,255,255,.14); }
.pill-audit { background: rgba(124,92,255,.14); color: #bcaeff; border: 1px solid rgba(124,92,255,.4); }
@media (max-width: 640px) {
  .admin-head { flex-direction: column; }
  .row-actions { justify-content: flex-start; }
}

footer { text-align: center; padding: 30px 20px; border-top: 1px solid rgba(255,255,255,.2); opacity: .8; }

/* ===== Тёмные pill-кнопки (как в оригинале): Войти/Выйти/Тарифы ===== */
.btn-dark { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #111111; color: #ffffff; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 10px 24px; min-height: 42px; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.btn-dark:hover { background: #222222; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.45); }
.btn-ico { flex-shrink: 0; }
.btn-nav-auth, .btn-logout { height: 42px; }
/* формы входа/регистрации: сабмит в том же стиле */
.btn-auth { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; background: #111111; color: #ffffff; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.btn-auth:hover { background: #222222; transform: translateY(-2px); }

/* ===== Переключатель темы — тёмная пилюля (как на скрине) ===== */
.language-current { background: #111111 !important; color: #ffffff !important; border: 1px solid rgba(255,255,255,.22) !important; border-radius: 999px !important; min-width: 44px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.language-current:hover { background: #222222 !important; }

/* ===== Hero: компактно + 2 кнопки ===== */
.hero-tight { padding: 90px 20px 30px; }
.hero-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ===== Промо-скриншот клиента ===== */
.promo-showcase { padding-top: 30px; }
.promo-img { display: block; width: min(1000px, 100%); height: auto; margin: 30px auto 0; border: 1px solid rgba(255,255,255,.3); border-radius: 24px; box-shadow: 0 12px 35px rgba(0,0,0,.45); }

/* ===== Client GUI demo (Combat/Movement) — draggable window, tabs, toggles ===== */
.client-gui-wrap { display: flex; justify-content: center; padding: 28px 12px 10px; }
.client-gui { width: min(980px, 100%); background: #151515; border: 1px solid rgba(255,255,255,.13); border-radius: 20px; overflow: hidden; box-shadow: 0 22px 60px rgba(0,0,0,.62), 0 1px 0 rgba(255,255,255,.05) inset; display: flex; flex-direction: column; position: relative; animation: cgIn .4s cubic-bezier(.22,1,.36,1); }
@keyframes cgIn { from { opacity:0; transform: translateY(10px) scale(.98); } to { opacity:1; transform:none; } }
.client-gui-header { display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 18px; background: #1d1d1d; border-bottom: 1px solid rgba(255,255,255,.08); }
.cg-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: .95rem; opacity: .85; min-width: 110px; }
.cg-logo i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.1); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.cg-title { font-weight: 800; font-size: 1rem; letter-spacing: .2px; flex: 1; text-align: left; padding-left: 16px; border-left: 1px solid rgba(255,255,255,.08); }
.client-gui-body { display: grid; grid-template-columns: 188px 1fr; min-height: 480px; background: #121212; }
.client-gui-sidebar { background: #111111; border-right: 1px solid rgba(255,255,255,.08); padding: 12px 8px 14px; display: flex; flex-direction: column; gap: 8px; }
.cg-search { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.1); background: #1e1e1e; color: #fff; font-size: 13px; transition: border-color .18s, background .18s; }
.cg-search::placeholder { color: rgba(255,255,255,.45); }
.cg-search:focus { border-color: rgba(255,255,255,.22); background: #222; }
.cg-cats { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.cg-cat { display: flex; align-items: center; width: 100%; padding: 10px 12px; border-radius: 12px; border: none; background: transparent; color: #aab; cursor: pointer; text-align: left; font-weight: 600; font-size: 13.5px; transition: transform .16s ease, background .16s, color .16s, box-shadow .16s; }
.cg-cat:hover { background: rgba(255,255,255,.06); color: #fff; transform: translateX(2px); }
.cg-cat.active { background: #2a2a2a; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.06); }
.cg-sidebar-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.cg-main { background: #121212; padding: 14px; overflow: auto; max-height: 520px; }
.cg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.cg-card { background: #1e1e1e; border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 6px; transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, border-color .18s, background .18s; animation: cgCardIn .32s cubic-bezier(.22,1,.36,1) backwards; }
.cg-card:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.13); box-shadow: 0 8px 22px rgba(0,0,0,.35); background: #222; }
@keyframes cgCardIn { from { opacity:0; transform: translateY(6px) scale(.98); } to { opacity:1; transform:none; } }
.cg-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cg-card-title { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.cg-card-desc { font-size: 11.5px; line-height: 1.35; opacity: .62; min-height: 28px; }
.cg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.cg-bind { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); font-size: 11px; opacity: .65; cursor: pointer; transition: background .15s, opacity .15s; }
.cg-bind:hover { background: rgba(255,255,255,.1); opacity: 1; }
.cg-toggle { width: 44px; height: 24px; border-radius: 999px; background: #2a2a2a; border: 1px solid rgba(255,255,255,.1); position: relative; cursor: pointer; transition: background .22s, border-color .22s, box-shadow .22s; flex-shrink: 0; }
.cg-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: transform .22s cubic-bezier(.22,1,.36,1); }
.cg-toggle.on { background: #2ecc71; border-color: #27ae60; box-shadow: 0 0 0 3px rgba(46,204,113,.12); }
.cg-toggle.on::after { transform: translateX(20px); }
.cg-toggle:active::after { width: 20px; }
.cg-card.on { border-color: rgba(46,204,113,.22); background: #1f2520; }
.cg-card.on .cg-card-title { color: #7bed9f; }
.cg-settings { display: none; margin-top: 8px; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.06); font-size: 12px; opacity: .85; }
.cg-card.settings-open .cg-settings { display: block; animation: cgFade .2s ease; }
@keyframes cgFade { from { opacity:0; transform: translateY(4px); } to { opacity:1; transform:none; } }
.cg-empty { grid-column: 1 / -1; padding: 28px; text-align: center; opacity: .55; font-size: 13px; border: 1px dashed rgba(255,255,255,.12); border-radius: 12px; }
@media (max-width: 860px) {
  .client-gui-body { grid-template-columns: 1fr; }
  .client-gui-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
  .cg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .client-gui-header { flex-wrap: wrap; }
  .cg-title { border-left: none; padding-left: 0; }
}

/* ===== Страница тарифов ===== */
.pricing-page { padding-top: 40px; }

/* ===== Бегущая плашка отзывов (главная) ===== */
.reviews-box { position: relative; z-index: 1; width: min(1100px, 100%); margin: 0 auto; padding: 18px 0; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(5,5,5,.72); backdrop-filter: blur(14px); overflow: hidden; }
.reviews-box-head { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px 4px; font-weight: 700; font-size: .95rem; opacity: .9; }
.reviews-empty { margin: 0; padding: 34px 16px 10px; text-align: center; font-size: .9rem; opacity: .7; }
.reviews-viewport { position: relative; overflow: hidden; height: 132px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.reviews-track { position: absolute; left: 0; top: 4px; display: flex; gap: 14px; width: max-content; will-change: transform; }
.reviews-track .review-card { width: var(--card-w, 300px); flex: 0 0 auto; }
.review-card { height: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.05); }
.review-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.review-nick { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: .85rem; }
.review-nick b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-stars { display: inline-flex; gap: 2px; flex: 0 0 auto; }
.star-svg.on { color: #ffc93c; }
.star-svg.off { color: rgba(255,255,255,.22); }
.review-text { margin: 0; font-size: .85rem; line-height: 1.45; opacity: .9; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ===== Звёзды (форма отзыва, админка) ===== */
.review-stars-static { display: inline-flex; gap: 2px; margin: 4px 0; }
.review-stars-static .star.on { color: #ffc93c; }
.review-stars-static .star.off { color: rgba(255,255,255,.22); }
.review-quote { margin: 6px 0 0; padding: 10px 12px; border-left: 2px solid rgba(255,255,255,.18); border-radius: 0 10px 10px 0; background: rgba(255,255,255,.04); font-size: .88rem; line-height: 1.45; }
.review-cell-text { max-width: 320px; line-height: 1.4; }
.star-picker { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; margin: 0; padding: 0; border: 0; }
.star-picker legend { float: left; width: 100%; margin-bottom: 6px; font-size: .8rem; opacity: .8; }
.star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-picker label { font-size: 1.9rem; line-height: 1; color: rgba(255,255,255,.22); cursor: pointer; transition: color .12s ease, transform .12s ease; }
.star-picker label:hover, .star-picker label:hover ~ label, .star-picker input:checked ~ label { color: #ffc93c; }
.star-picker label:hover { transform: scale(1.12); }
.review-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.review-form label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; opacity: .85; }
.review-form textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: #151515; color: #fff; font: inherit; font-size: .9rem; line-height: 1.45; resize: vertical; }
.review-form textarea:focus { border-color: #4da6db; }
.char-counter { font-size: .72rem; opacity: .6; text-align: right; }
.char-counter.is-short { color: #ff9a9a; opacity: 1; }
.char-counter.is-ok { color: #4ade80; opacity: .9; }
.review-form .dashboard-button:disabled { opacity: .45; cursor: not-allowed; }

/* ===== Карточка поддержки: тонкая кнопка + выезжающая панель ===== */
.dashboard-card.support-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.support-head { flex: 1 1 200px; min-width: 0; }
.support-head h2 { display: flex; align-items: center; gap: 8px; }
.support-head p { margin: 6px 0 0; }
.support-toggle { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; padding: 6px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .18s ease, border-color .18s ease; }
.support-toggle:hover { background: rgba(255,255,255,.16); }
.support-toggle[aria-expanded="true"] { background: #fff; color: #111; border-color: #fff; }
.support-caret { transition: transform .22s ease; }
.support-toggle[aria-expanded="true"] .support-caret { transform: rotate(180deg); }
.support-panel { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 100%; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .26s ease, opacity .2s ease; }
.support-panel.is-open { max-height: 160px; opacity: 1; }
.support-btn { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; font-size: .82rem; font-weight: 700; white-space: nowrap; transition: background .18s ease, transform .18s ease; }
.support-btn:hover { background: #fff; color: #111; transform: translateY(-1px); }
@media (max-width: 620px) {
  .support-toggle { flex: 1 1 100%; justify-content: center; }
}

/* ===== Облачные конфиги: витрина, свои, загрузка ===== */
.page-wide { position: relative; z-index: 1; width: min(1200px, calc(100% - 40px)); margin: 0 auto; padding: 30px 0 70px; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.list-title { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 1.6rem; font-weight: 800; }
.list-sub { margin: 6px 0 0; font-size: .85rem; opacity: .75; }
.list-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.configs-table td { vertical-align: top; }
.configs-card { grid-column: 1 / -1; }
/* Список конфигов: не таблица, а компактные строки «автор | название» + описание + кнопки */
.cfg-list { display: flex; flex-direction: column; gap: 8px; }
.cfg-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.04); transition: border-color .18s ease, background .18s ease; }
.cfg-row:hover { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.07); }
.cfg-info { flex: 1 1 auto; min-width: 0; }
.cfg-top { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.cfg-author { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; font-size: .88rem; opacity: .85; white-space: nowrap; }
.cfg-sep { flex: 0 0 auto; opacity: .35; }
.cfg-title { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cfg-desc { margin-top: 4px; font-size: .82rem; line-height: 1.4; opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-actions { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.cfg-actions form { margin: 0; }
@media (max-width: 620px) {
  .cfg-row { flex-wrap: wrap; }
  .cfg-actions { flex: 1 1 100%; justify-content: flex-end; }
}
.dashboard-config-hint { grid-column: 1 / -1; }
.cab-tabs2 { grid-column: 1 / -1; display: flex; gap: 6px; padding: 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(5,5,5,.72); }
.cab-tab2 { flex: 1; padding: 11px 12px; border: 0; border-radius: 12px; background: transparent; color: #fff; font-weight: 700; font-size: .95rem; text-align: center; text-decoration: none; transition: background .2s ease, color .2s ease; }
.cab-tab2:hover { background: rgba(255,255,255,.08); }
.cab-tab2.active { background: #fff; color: #111; }
.config-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.config-form label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; opacity: .85; }
.config-form input[type=text], .config-form textarea { width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: #151515; color: #fff; font: inherit; font-size: .9rem; }
.config-form input[type=text]:focus, .config-form textarea:focus { border-color: #4da6db; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 34px 20px; border: 2px dashed rgba(255,255,255,.22); border-radius: 18px; background: rgba(255,255,255,.03); text-align: center; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag { border-color: #4da6db; background: rgba(77,166,219,.1); outline: none; }
.dropzone b { font-size: .95rem; }
.scan-box { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; font-size: .82rem; }
.file-status { min-height: 20px; font-size: .82rem; opacity: .8; overflow-wrap: anywhere; }
.file-status.is-ok { color: #4ade80; opacity: 1; }
.file-status.is-bad { color: #ff8a8a; opacity: 1; }
.scan-box.scan-ok { border-color: rgba(46,204,113,.5); background: rgba(46,204,113,.1); }
.scan-box.scan-bad { border-color: rgba(192,57,43,.5); background: rgba(192,57,43,.12); }
.scan-report { padding: 12px 14px; border: 1px solid rgba(192,57,43,.5); border-radius: 12px; background: rgba(192,57,43,.12); font-size: .85rem; }
.scan-report ul { margin: 8px 0 0; padding-left: 20px; }
.scan-report li { margin: 2px 0; }
.config-actions { display: flex; gap: 10px; }
.config-actions > * { flex: 1; margin-top: 0; }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.dashboard-button:disabled { opacity: .5; cursor: not-allowed; }
.review-card-box .dashboard-button { margin-top: 10px; }

/* ===== Captcha (Cloudflare Turnstile) + гейт входа в панель ===== */
.captcha-box { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; margin: 4px 0 2px; }
.captcha-label { font-size: 12px; opacity: .8; }
.captcha-box .cf-turnstile { min-height: 65px; }
.captcha-missing { padding: 12px 14px; border: 1px solid rgba(232,76,60,.5); border-radius: 12px; background: rgba(232,76,60,.12); }
.captcha-missing p { margin: 0; font-size: 12px; line-height: 1.4; }
.captcha-missing code { font-size: 11px; }
.auth-cloud-wide { width: 420px; }
.panel-gate { text-align: center; }
.panel-gate > .ic { margin: 0 auto 10px; display: block; }
.panel-gate-title { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; }
.panel-gate-lead { margin: 0 0 20px; font-size: .85rem; opacity: .8; line-height: 1.45; }
.panel-gate .captcha-box { align-items: center; }
.panel-gate .captcha-label { text-align: center; }
.panel-gate-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: .82rem; opacity: .75; }
.panel-gate-back:hover { opacity: 1; }
.btn-auth:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ===== Иконки (partials/icon) ===== */
.ic { flex: 0 0 auto; width: 18px; height: 18px; vertical-align: -.28em; }
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 22px; height: 22px; }
/* Заголовки карточек: иконка + текст в одну строку, текст не должен переноситься по одному слову */
.dashboard-card h2, .media-apply-title { display: flex; align-items: center; gap: 8px; }
.dashboard-card h2 span, .media-apply-title span { min-width: 0; }
.dashboard-kicker { display: flex; align-items: center; gap: 8px; }

/* ===== Навбар: не переносим логотип и подписи, компактнее при большом числе кнопок ===== */
.nav-logo-label { white-space: nowrap; }
.navbar { flex-wrap: nowrap; }
.nav-right { flex-wrap: nowrap; min-width: 0; }
.language-current, .btn-nav-profile, .btn-nav-chat, .btn-nav-auth { white-space: nowrap; gap: 6px; padding: 8px 14px; }
.nav-user { gap: 10px; }
.btn-nav-profile .nav-username { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1180px) {
  .language-current, .btn-nav-profile, .btn-nav-chat, .btn-nav-auth { padding: 8px 10px; font-size: .82rem; }
  .nav-user { gap: 7px; }
  .nav-logo-label { font-size: 1.1rem; }
}
@media (max-width: 900px) {
  .nav-logo-label { font-size: 1rem; }
  .btn-nav-profile .nav-username { max-width: 84px; }
  .language-current span { display: none; }
}

/* ===== Стат-чипы: значение по центру, подпись не вылезает за карточку (правила выше) ===== */
.admin-stats { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }

/* ===== Кнопки заявок в таблице: ровная колонка, текст не обрезается ===== */
.app-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 180px; max-width: 280px; }
.app-actions form { display: flex; gap: 6px; align-items: center; margin: 0; }
.abtn-block { width: 100%; }
.app-actions .abtn { flex: 0 0 auto; white-space: nowrap; }
.app-actions input.admin-search { margin-top: 0 !important; height: 32px !important; padding: 0 10px !important; font-size: 12px; }
.app-actions .days-input { width: 68px !important; min-width: 58px; max-width: 76px; text-align: center; }
.app-actions .reject-note, .app-actions .warn-input { flex: 1 1 auto; min-width: 110px; }
.th-actions { width: 1%; white-space: nowrap; }

.cell-url { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-url a { color: #8fc7ea; text-decoration: underline; text-underline-offset: 2px; }
.cell-url a:hover { color: #fff; }
.cell-break { word-break: break-all; overflow-wrap: anywhere; }

/* ===== Медиа: заявка в профиле + панель куратора ===== */
.media-apply-page { width: 100%; max-width: 640px; text-align: left; box-sizing: border-box; }
.media-apply-title { margin: 0 0 10px; font-size: 1.4rem; font-weight: 800; }
.media-apply-lead { margin: 0 0 20px; font-size: .9rem; opacity: .8; }
.media-apply-back { display: inline-block; margin-top: 18px; font-size: .85rem; opacity: .7; }
.media-apply-back:hover { opacity: 1; }
.media-status-box { margin-top: 18px; padding: 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 14px; }
.media-status-box .dashboard-button { margin-top: 14px; }
.media-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.media-form label { display: flex; flex-direction: column; gap: 6px; font-size: .8rem; opacity: .8; }
.media-form .span-all { grid-column: 1 / -1; }
.media-form input { width: 100%; height: 40px; padding: 0 14px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: #151515; color: #fff; font: inherit; font-size: .88rem; }
.media-form input:focus { border-color: #4da6db; }
.media-rejected { padding: 10px 12px; border: 1px solid rgba(192,57,43,.5); border-radius: 12px; background: rgba(192,57,43,.14); }
.media-apply-card .role-badge { margin-right: 0; }
.dashboard-button, .support-btn { display: inline-flex; align-items: center; gap: 8px; text-align: center; }
.dashboard-button span, .abtn span { white-space: nowrap; }
.support-btn span { white-space: nowrap; }
.activate-hint { margin: 8px 0 0; font-size: .8rem; opacity: .75; }
.requirements strong { align-items: center; gap: 6px; justify-content: center; }
.requirements em { font-style: normal; }
.code-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.code-list li { margin: 0; }
.media-codes-fresh .key-code { display: block; padding: 10px 12px; border: 1px solid rgba(255,176,32,.45); border-radius: 12px; background: rgba(255,176,32,.1); font-size: .9rem; user-select: all; }
.admin-table tr.row-pending td { background: rgba(255,176,32,.07); }
.reject-note { min-width: 180px; }
@media (max-width: 620px) {
  .media-form { grid-template-columns: 1fr; }
  .media-form .span-all { grid-column: auto; }
}

/* ===== Админ-таблицы: без обводок ячеек, скруглённый контейнер ===== */
.table-wrap { overflow-x: auto; width: 100%; max-width: 100%; border: 1px solid rgba(255,255,255,.15); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.table-wrap::-webkit-scrollbar { height: 8px; }
.table-wrap::-webkit-scrollbar-track { background: rgba(0,0,0,.3); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.35); }
.admin-table th, .admin-table td { border: none; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-table thead th { border-bottom: 1px solid rgba(255,255,255,.16); opacity: .75; font-size: .78rem; text-transform: uppercase; letter-spacing: .5px; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover td { background: rgba(255,255,255,.03); }

/* ===== Флеш-сообщения: крестик + автозакрытие ===== */
.flash { position: relative; padding-right: 44px; transition: opacity .4s ease; }
.flash-close { position: absolute; top: 8px; right: 12px; background: none; border: none; color: inherit; font-size: 1.2rem; line-height: 1; cursor: pointer; opacity: .7; }
.flash-close:hover { opacity: 1; }
.flash-hide { opacity: 0; }

/* ===== Ролевые префиксы и бан-бейдж ===== */
.role-badge { display: inline-block; vertical-align: middle; margin-right: 6px; padding: 2px 8px; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; line-height: 1.5; }
.role-owner { background: #b366ff; color: #160826; }
.role-admin { background: #4da6db; color: #06121d; }
.role-media { background: #2ecc71; color: #062b18; }
.role-curator { background: #ffb020; color: #2a1a00; }
.banned-badge { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 3px 12px; border-radius: 999px; background: #c0392b; color: #ffffff; font-size: .75rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.chat-msg-name .role-badge { font-size: .62rem; }
.btn-nav-profile .role-badge { font-size: .6rem; margin-right: 4px; }

/* ===== Профиль кабинета (единая сетка: сайдбар / сводка / лаунчер) ===== */
.dashboard .requirements strong { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.dashboard .requirements em { display: block; margin-top: 5px; font-size: 13px; font-style: normal; opacity: .8; }
.dashboard .account-copy span { display: flex; align-items: center; flex-wrap: wrap; }
.dashboard .account-banned { margin-top: 10px; }

@media (max-width: 980px) {
  .dashboard { grid-template-columns: 1fr 1fr; }
  .dashboard-heading, .summary-row, .dashboard-main { grid-column: 1 / -1; }
  .dashboard-side { grid-column: 1 / -1; grid-row: auto; }
  .launcher-card { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .dashboard { display: flex; flex-direction: column; }
  .summary-row { display: flex; flex-direction: column; }
  .navbar { top: 10px; width: calc(100% - 16px); padding: 10px 14px; border-radius: 18px; }
  .page { padding-top: 78px; }
  .auth-wrap { min-height: calc(100vh - 78px); }
  .hero h1 { font-size: 2.6rem; }
}

/* --- Подписи полей вход/регистрация (были только placeholder) --- */
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label { font-size: .78rem; opacity: .75; text-align: left; }
.auth-field-hint { opacity: .6; }

/* --- Скроллбары и нативные контролы в тёмной теме ---
   Без color-scheme нативные <select> в Windows рисуются светлыми на тёмном фоне. */
:root { color-scheme: dark; }
select, input, textarea, button { color-scheme: inherit; }
select option { background: #151515; color: #fff; }

/* --- Безопасные зоны: вырезы и скругления на iPhone --- */
.navbar { padding-top: calc(12px + env(safe-area-inset-top)); padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* --- Модалки: скролл не уезжает на страницу под ними --- */
.buy-modal-overlay, .buy-modal-card, .auth-modal, .support-panel { overscroll-behavior: contain; }

/* --- Меньше движения: отключаем декоративные анимации и переходы --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .video-bg { display: none; }                       /* фоновое видео — декорация, не нужна */
  .btn-bump, .btn-press { animation: none !important; transform: none !important; }
  .reviews-track { will-change: auto; }
}

/* --- Заголовки: без висячих слов --- */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* --- Ссылка «к содержимому» для клавиатуры --- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 900;
  background: #fff; color: #111; padding: 10px 16px; border-radius: 0 0 10px 0;
  text-decoration: none; font-weight: 700;
}
.skip-link:focus { left: 0; outline: 2px solid #8fc7ea; }
/* --- Мобильный: убираем задержку 300мс перед zoom/dbl-tap на интерактивных элементах --- */
a, button, input, select, textarea, label, [role="button"] { touch-action: manipulation; }

/* ===== Новые удобства: HWID toggle, шкала подписки, пакет ключей, фильтры и пагинация ===== */

/* 1. Индикатор / шкала подписки в кабинете */
.sub-indicator-box { margin-top: 6px; }
.sub-indicator-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.sub-date-label { font-size: .88rem; color: rgba(255,255,255,0.85); }
.sub-status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; padding: 3px 10px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}
.sub-status-pill.ok {
  background: rgba(46, 204, 113, 0.16); color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.35);
}
.sub-status-pill.warn {
  background: rgba(243, 156, 18, 0.16); color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.35);
}
.sub-status-pill.off {
  background: rgba(231, 76, 60, 0.16); color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.35);
}
.sub-progress-wrap {
  width: 100%; height: 7px; background: rgba(255, 255, 255, 0.08);
  border-radius: 999px; overflow: hidden; margin-top: 4px;
}
.sub-progress-bar {
  height: 100%; border-radius: 999px; transition: width .3s ease;
}
.sub-progress-bar.ok { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.sub-progress-bar.warn { background: linear-gradient(90deg, #d35400, #f39c12); }
.sub-progress-bar.off { background: #555; }

/* 2. Кнопка «Показать/Скрыть HWID» */
.hwid-container {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px;
}
.hwid-code-field {
  font-family: monospace; background: rgba(0, 0, 0, 0.3);
  padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: .5px; word-break: break-all; font-size: .85rem;
}
.btn-hwid-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ccc; padding: 4px 10px; border-radius: 6px;
  cursor: pointer; font-size: .75rem; transition: background .2s, color .2s;
}
.btn-hwid-toggle:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-hwid-toggle svg { pointer-events: none; flex-shrink: 0; }

/* 3. Генерация ключей: две кнопки и карточка FunPay / маркетплейсов */
.btn-dual-row {
  display: flex; gap: 10px; align-items: center; margin-top: 12px;
}
.btn-dual-row button { flex: 1; }
.keys-batch-card {
  background: rgba(24, 28, 40, 0.9);
  border: 1px solid rgba(80, 160, 255, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 1.5rem;
}
.keys-batch-textarea {
  width: 100%; background: rgba(10, 13, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 8px;
  color: #7ecef4; font-family: monospace; font-size: .88rem;
  padding: 10px 12px; resize: vertical; margin-top: 10px;
  box-sizing: border-box; line-height: 1.5;
}
.keys-batch-textarea:focus { outline: none; border-color: #3898ec; }

/* 4. Фильтры ключей (Вкладки и селектор тарифа) */
.keys-filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin: 1rem 0;
}
.filter-tabs {
  display: inline-flex; background: rgba(0, 0, 0, 0.35);
  padding: 4px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 4px;
}
.ftab {
  background: none; border: none; color: rgba(255, 255, 255, 0.7);
  padding: 6px 14px; border-radius: 8px; font-size: .82rem; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s;
}
.ftab:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.ftab.active {
  color: #fff; background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.ftab-count { font-size: .75rem; opacity: .75; font-weight: 500; }
.select-plan-filter {
  min-width: 140px; padding: 6px 10px; font-size: .82rem;
  border-radius: 8px; background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12); color: #fff;
}

/* 5. Пагинация по 10 ключей */
.pagination-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-top: 1.2rem; padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pagination-info { font-size: .82rem; color: rgba(255, 255, 255, 0.6); }
.pagination-nav { display: inline-flex; align-items: center; gap: 6px; }
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; padding: 0 8px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.page-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); color: #fff; }
.page-btn.active {
  background: #3898ec; border-color: #3898ec; color: #fff; cursor: default;
}
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.page-arrow { font-size: 1.1rem; line-height: 1; }
.page-dots { padding: 0 4px; color: rgba(255, 255, 255, 0.4); }

/* ===== Global Announcement Banner ===== */
.site-announcement-banner {
  width: min(880px, calc(100% - 32px));
  margin: 12px auto 20px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(30, 90, 180, 0.4) 0%, rgba(15, 25, 45, 0.65) 100%);
  border: 1px solid rgba(80, 160, 255, 0.4);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 100, 255, 0.15), 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  text-align: center;
  position: relative;
  z-index: 10;
}
.site-announcement-content {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.98rem;
  font-weight: 500;
  color: #e6f1ff;
  line-height: 1.5;
}
.site-announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(45, 140, 255, 0.25);
  border: 1px solid rgba(100, 180, 255, 0.5);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #70baff;
}
.site-announcement-content a {
  color: #38bdf8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.18s, text-shadow 0.18s;
}
.site-announcement-content a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}


/* ===== ANTI-OVERLAP & RESPONSIVE POLISH (31.10.2026) ===== */

/* 1. Modal over navbar */
.buy-modal-overlay, .auth-modal-overlay, .support-panel-overlay {
  z-index: 1200 !important;
}
.buy-modal-card, .auth-modal, .support-panel {
  z-index: 1210 !important;
}

/* 2. Admin Tab Bar styling */
.admin-tab-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-bottom: 24px !important;
  padding: 6px 10px !important;
  background: rgba(14, 18, 26, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}
.admin-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.admin-tab:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}
.admin-tab.admin-tab-active {
  background: rgba(77, 166, 219, 0.2) !important;
  border-color: rgba(77, 166, 219, 0.45) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}
.tab-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: inherit !important;
}
.admin-tab-active .tab-badge {
  background: #4da6db !important;
  color: #06121d !important;
}
.admin-tab-right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

/* 3. Card head & Action forms - no overlapping on resize */
.card-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  min-width: 0 !important;
}
.card-head h2 {
  margin: 0 !important;
  min-width: 0 !important;
  word-break: break-word !important;
}
.card-head-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

/* 4. Stat chips responsive grid */
.admin-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: stretch !important;
  width: 100% !important;
}
.stat-chip {
  flex: 1 1 140px !important;
  min-width: 110px !important;
  box-sizing: border-box !important;
}
@media (max-width: 640px) {
  .stat-chip {
    flex: 1 1 calc(50% - 6px) !important;
    min-width: 0 !important;
  }
  .admin-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 14px !important;
  }
}
@media (max-width: 420px) {
  .stat-chip {
    flex: 1 1 100% !important;
  }
}

/* 5. Tables & scrolling - no text breaking out of bounds */
.table-wrap {
  overflow-x: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
}
.admin-table {
  width: 100% !important;
  min-width: 640px !important;
  border-collapse: collapse !important;
}
.admin-table th, .admin-table td {
  vertical-align: middle !important;
}
.td-actions {
  white-space: nowrap !important;
  text-align: right !important;
}
.key-code, .hwid-code {
  word-break: break-all !important;
}

/* 6. Page Top & Navbar spacing */
.site-announcement-banner {
  width: min(880px, calc(100% - 32px)) !important;
  margin: 10px auto 20px !important;
  box-sizing: border-box !important;
}
@media (max-width: 900px) {
  .page { padding-top: 108px !important; }
}
@media (max-width: 620px) {
  .page { padding-top: 102px !important; }
  .navbar { top: 8px !important; width: calc(100% - 16px) !important; padding: 8px 12px !important; }
}
